/* ══════════════════════════════════════════
   CITY MITRA — Blog & Knowledge Hub Styles
   ══════════════════════════════════════════ */

.blog-hero {
    background: linear-gradient(135deg, #0a0e2a 0%, #17154e 35%, #2c1060 70%, #4a1d96 100%);
    padding: calc(var(--nav-h) + 68px) 0 75px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px),
        radial-gradient(circle at 20% 30%, rgba(234, 88, 12, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.2) 0%, transparent 45%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.blog-hero::after {
    content: '';
    position: absolute;
    width: 650px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(234, 88, 12, 0.25) 0%, rgba(124, 58, 237, 0.25) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.blog-hero .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #FFEDD5 !important;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(234, 88, 12, 0.3);
}

.blog-hero .section-title {
    color: white !important;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.blog-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.blog-search-bar {
    max-width: 620px;
    margin: 32px auto 0;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    color: white;
    font-size: 15px;
    outline: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.blog-search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--orange-lt);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.blog-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
}

/* Category Filter Chips */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.blog-cat-chip {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-cat-chip:hover, .blog-cat-chip.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-1px);
}

/* Author Spotlight Banner */
.author-spotlight {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border: 1.5px solid #FED7AA;
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 48px 0;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.06);
}

.author-avatar-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #C2410C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.author-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
}

.author-info .role-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(234, 88, 12, 0.12);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--ink-70);
    line-height: 1.6;
}

/* Blog Post Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.blog-card {
    background: white;
    border: 1px solid var(--ink-20);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--orange-lt);
}

.blog-card-header {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: white;
    padding: 24px;
    position: relative;
}

.blog-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--orange);
    color: white;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.blog-card-time {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 12px;
    opacity: 0.75;
}

.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: var(--orange);
}

.blog-card-summary {
    font-size: 0.92rem;
    color: var(--ink-60);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ink-10);
    font-size: 13px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink-80);
}

.blog-card-author-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.blog-card-cta {
    font-weight: 700;
    color: var(--orange);
}

/* ── Article Detail View ── */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-header {
    margin-bottom: 40px;
    text-align: left;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--ink-60);
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ink-05);
    border: 1px solid var(--ink-20);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-80);
}

.article-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ink);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange-xlt);
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content ul, .article-content ol {
    margin: 0 0 24px 24px;
}

.article-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-share-bar {
    margin: 48px 0;
    padding: 24px;
    background: var(--surface-warm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-20);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.article-share-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--ink-20);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-80);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.article-share-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .author-spotlight {
        flex-direction: column;
        text-align: center;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .article-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
