.blog-details-page {
    min-height: 100vh;
    background: #f8fafc;
}

.blog-details-page .blog-hero {
    padding: 64px 0 58px;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(37, 99, 235, 0.12), transparent 40%),
        linear-gradient(180deg, #eff8ff 0%, #f8fafc 100%);
}

.blog-details-page .blog-hero-container {
    display: block;
}

.blog-details-page .blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-details-page .blog-back-link {
    display: flex;
    width: max-content;
    margin: 0 auto 22px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-details-page .blog-back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.blog-details-page .section-badge-blog {
    display: table;
    margin: 0 auto 16px;
}

.blog-details-page .blog-hero-content h1 {
    margin: 14px 0 18px;
    color: var(--dark-bg);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.blog-details-page .blog-hero-content p {
    max-width: 760px;
    margin: 0 auto;
    color: #52627a;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-details-page .blog-details-main {
    padding: 48px 0 88px;
    background: #f8fafc;
}

.blog-details-page .blog-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 32px;
}

.blog-details-page .blog-post-content {
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.blog-details-page .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.blog-details-page .breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.blog-details-page .breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-details-page .post-main-image {
    display: block;
    width: 100%;
    max-height: 470px;
    margin-bottom: 28px;
    border-radius: 14px;
    object-fit: cover;
    background: #e2e8f0;
}

.blog-details-page .post-main-image[hidden] {
    display: none;
}

.blog-details-page .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 0.88rem;
}

.blog-details-page .post-last-updated {
    display: inline-block;
    padding: 4px 10px;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-details-page .readability-grade {
    display: inline-block;
    padding: 4px 10px;
    color: #7c3aed;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: help;
}

.blog-details-page .blog-category {
    display: inline-block;
    margin: 0;
    padding: 5px 11px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.blog-details-page .post-title {
    margin: 0 0 24px;
    color: var(--dark-bg);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.blog-details-page .post-body {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.blog-details-page .post-body > * + * {
    margin-top: 1.15em;
}

.blog-details-page .post-body h1,
.blog-details-page .post-body h2,
.blog-details-page .post-body h3,
.blog-details-page .post-body h4,
.blog-details-page .post-body h5,
.blog-details-page .post-body h6 {
    margin-top: 1.8em;
    color: var(--dark-bg);
    font-weight: 750;
    line-height: 1.3;
}

.blog-details-page .post-body h2 {
    padding-bottom: 0.45em;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.65rem;
}

.blog-details-page .post-body h3 {
    font-size: 1.3rem;
}

.blog-details-page .post-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-details-page .post-body a:hover {
    color: #1d4ed8;
}

.blog-details-page .post-body strong {
    color: #1e293b;
}

.blog-details-page .post-body ul,
.blog-details-page .post-body ol {
    padding-left: 1.5rem;
}

.blog-details-page .post-body li + li {
    margin-top: 0.45em;
}

.blog-details-page .post-body blockquote {
    padding: 18px 22px;
    color: #334155;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
}

.blog-details-page .post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 12px;
}

.blog-details-page .post-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-details-page .post-body th,
.blog-details-page .post-body td {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.blog-details-page .post-body th {
    color: #1e293b;
    background: #f1f5f9;
}

.blog-details-page .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-details-page .sidebar-widget {
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.blog-details-page .widget-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-details-page .widget-header h3,
.blog-details-page .newsletter-widget h3 {
    color: var(--dark-bg);
    font-size: 1.05rem;
    font-weight: 750;
}

.blog-details-page .recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-details-page .recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.blog-details-page .recent-post-item:hover h4 {
    color: #2563eb;
}

.blog-details-page .recent-post-item img {
    width: 72px;
    height: 64px;
    flex: 0 0 72px;
    border-radius: 9px;
    object-fit: cover;
    background: #e2e8f0;
}

.blog-details-page .recent-post-info {
    min-width: 0;
}

.blog-details-page .recent-post-info h4 {
    margin-bottom: 5px;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-details-page .recent-post-meta {
    color: #64748b;
    font-size: 0.73rem;
    line-height: 1.45;
}

.blog-details-page .newsletter-widget {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    border: 0;
}

.blog-details-page .newsletter-widget h3 {
    color: #fff;
}

.blog-details-page .newsletter-icon {
    margin-bottom: 12px;
    font-size: 1.7rem;
}

.blog-details-page .newsletter-widget p {
    margin: 10px 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-details-page .btn-white {
    display: flex;
    width: 100%;
    padding: 12px 16px;
    color: #1d4ed8;
    background: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.blog-details-page .btn-white:hover {
    background: #eff6ff;
}

@media (max-width: 1024px) {
    .blog-details-page .blog-layout-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .blog-details-page .blog-hero {
        padding: 42px 0 38px;
    }

    .blog-details-page .blog-hero-content h1 {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .blog-details-page .blog-hero-content p {
        font-size: 1rem;
    }

    .blog-details-page .blog-details-main {
        padding: 26px 0 56px;
    }

    .blog-details-page .blog-layout-grid {
        grid-template-columns: 1fr;
    }

    .blog-details-page .blog-post-content {
        padding: 20px;
        border-radius: 14px;
    }
}

/* ── G-04: Last Updated badge ── */
.blog-details-page .post-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px 14px;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-details-page .post-last-updated[hidden] {
    display: none;
}

/* ── G-04: TL;DR Summary Box ── */
.blog-details-page .post-tldr {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 0 14px 14px 0;
}

.blog-details-page .post-tldr[hidden] {
    display: none;
}

.blog-details-page .post-tldr-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-details-page .post-tldr p {
    margin: 0;
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.7;
}

/* ── G-04: Author Bio Box ── */
.blog-details-page .post-author-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 36px;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.blog-details-page .post-author-box[hidden] {
    display: none;
}

.blog-details-page .author-avatar {
    flex: 0 0 56px;
}

.blog-details-page .author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.blog-details-page .author-info {
    min-width: 0;
}

.blog-details-page .author-label {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-details-page .author-name {
    margin: 2px 0 6px;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 750;
}

.blog-details-page .author-bio {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .blog-details-page .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}


/* =========================================
   AUTHOR BYLINE SECTION (G-12 Author System)
   ========================================= */

.blog-details-page .author-byline {
    margin: 24px 0 28px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 0 12px 12px 0;
}

.blog-details-page .author-byline-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.blog-details-page .author-avatar {
    flex: 0 0 70px;
}

.blog-details-page .author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid #16a34a;
}

.blog-details-page .author-info {
    min-width: 0;
    flex: 1;
}

.blog-details-page .author-byline-text {
    margin: 0 0 4px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-details-page .by-label {
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.blog-details-page .author-name {
    color: #16a34a;
    font-weight: 700;
}

.blog-details-page .author-name-link {
    color: #16a34a;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-details-page .author-name-link:hover {
    color: #15803d;
    text-decoration: underline;
}

.blog-details-page .author-title {
    margin: 2px 0 4px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
}

.blog-details-page .author-affiliation {
    margin: 2px 0 8px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.blog-details-page .author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 10px;
}

.blog-details-page .credential-badge {
    display: inline-block;
    padding: 4px 10px;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.blog-details-page .author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 10px;
}

.blog-details-page .social-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #16a34a;
    background: transparent;
    border: 1px solid #16a34a;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-details-page .social-link:hover {
    color: #fff;
    background: #16a34a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

@media (max-width: 768px) {
    .blog-details-page .author-byline {
        padding: 16px 18px;
    }

    .blog-details-page .author-byline-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .blog-details-page .author-image {
        width: 60px;
        height: 60px;
    }

    .blog-details-page .author-credentials {
        justify-content: center;
    }

    .blog-details-page .author-social-links {
        justify-content: center;
    }
}

/* =========================================
   QUICK ANSWER BOX (G-13: Passage Optimization)
   ========================================= */

.quick-answer-box {
    margin: 24px 0 28px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
}

.quick-answer-label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 8px;
    color: #92400e;
    background: #fbbf24;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.quick-answer-box p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.quick-answer-box strong {
    color: #92400e;
    font-weight: 700;
}

.quick-answer-box mark {
    background: #fcd34d;
    color: #78350f;
    padding: 0 2px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .quick-answer-box {
        padding: 14px 16px;
        margin: 20px 0 24px;
    }

    .quick-answer-box p {
        font-size: 0.9rem;
    }
}

/* =========================================
   EXPERT REVIEWER SECTION (G-13 Phase 5: Author Attribution)
   ========================================= */

.expert-reviewer-section {
    margin: 28px 0 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #ede9fe 0%, #f3e8ff 100%);
    border: 1px solid #d8b4fe;
    border-left: 4px solid #a855f7;
    border-radius: 0 12px 12px 0;
}

.expert-reviewer-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.expert-reviewer-avatar {
    flex: 0 0 60px;
}

.expert-reviewer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid #a855f7;
}

.expert-reviewer-info {
    min-width: 0;
    flex: 1;
}

.expert-badge {
    display: inline-block;
    margin: 0 0 6px;
    padding: 3px 10px;
    color: #6b21a8;
    background: #e9d5ff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.expert-reviewer-label {
    margin: 0 0 2px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.expert-reviewer-label strong {
    color: #a855f7;
    font-weight: 700;
}

.expert-reviewer-title {
    margin: 2px 0 6px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
}

.expert-reviewer-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.expert-credential {
    display: inline-block;
    padding: 3px 8px;
    color: #6b21a8;
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .expert-reviewer-section {
        padding: 16px 18px;
        margin: 20px 0 24px;
    }

    .expert-reviewer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .expert-reviewer-image {
        width: 50px;
        height: 50px;
    }

    .expert-reviewer-credentials {
        justify-content: center;
    }
}

/* =========================================
   RELATED TOPICS WIDGET (G-06 Topical Authority)
   ========================================= */

.related-topics-widget {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    border: 1px solid #BFDBFE;
}

.related-topics-widget .widget-header {
    border-bottom: 1px solid #BFDBFE;
}

.related-topics-widget .widget-header h3 {
    color: #1e40af;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.topic-tag {
    display: inline-block;
    background: white;
    border: 1px solid #2563EB;
    color: #2563EB;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topic-tag:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .topic-tags {
        gap: 6px;
    }

    .topic-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}


/* =========================================
   AUTHOR PROFILE CARD (G-12 Author Pages)
   ========================================= */

.author-profile-section {
    margin-bottom: 48px;
}

.author-profile-card {
    padding: 32px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef3f8 100%);
    border: 1px solid #ddd6fe;
    border-radius: 18px;
    margin-bottom: 42px;
}

.author-card-container {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: start;
    gap: 28px;
}

.author-card-image {
    flex: 0 0 140px;
}

.author-card-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #7c3aed;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.author-card-info {
    min-width: 0;
}

.author-card-info h2 {
    margin: 0 0 4px;
    color: #6d28d9;
    font-size: 1.8rem;
    font-weight: 800;
}

.author-card-title {
    margin: 0 0 12px;
    color: #7c3aed;
    font-size: 1.05rem;
    font-weight: 600;
}

.author-card-bio {
    margin: 0 0 18px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.author-card-credentials,
.author-card-expertise,
.author-card-social {
    margin-bottom: 16px;
}

.credentials-label,
.expertise-label,
.social-label {
    margin: 0 0 8px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.credentials-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.credentials-list li {
    margin: 4px 0;
    color: #475569;
    font-size: 0.9rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-block;
    padding: 5px 12px;
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-card-social .social-link {
    padding: 6px 14px;
    color: #7c3aed;
    background: transparent;
    border: 1px solid #7c3aed;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-card-social .social-link:hover {
    color: #fff;
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .author-card-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-card-image {
        margin: 0 auto;
    }

    .expertise-tags,
    .social-links {
        justify-content: center;
    }
}

/* =========================================
   CATEGORY/TOPIC ARTICLES GRID (G-11/G-12)
   ========================================= */

.blog-category-main {
    padding: 48px 0 88px;
}

.blog-category-main .container {
    max-width: 1200px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.82rem;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.category-meta {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.category-topics {
    margin-bottom: 32px;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-item a {
    display: inline-block;
    padding: 6px 14px;
    color: #2563eb;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topic-item a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.category-articles {
    margin-bottom: 28px;
}

.category-articles h2 {
    margin-bottom: 24px;
    color: var(--dark-bg);
    font-size: 1.6rem;
    font-weight: 800;
}

.no-articles {
    padding: 32px 24px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 12px;
}

.no-articles p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.category-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.article-image {
    overflow: hidden;
    height: 160px;
    background: #e2e8f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 18px 16px;
}

.category-article-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}

.category-article-card h3 a {
    color: #1e293b;
    text-decoration: none;
}

.category-article-card h3 a:hover {
    color: #2563eb;
}

.article-excerpt {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.8rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    color: #94a3b8;
}

.read-more-link {
    display: inline-block;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.topic-related-category {
    margin-bottom: 32px;
}

.category-link-box {
    padding: 18px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 0 12px 12px 0;
}

.category-link-box p {
    margin: 0 0 12px;
    color: #166534;
    font-size: 0.95rem;
}

.btn-category-link {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    background: #16a34a;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-category-link:hover {
    background: #15803d;
}

.author-articles-section {
    margin-bottom: 42px;
}

.author-articles-section h2 {
    margin-bottom: 12px;
    color: var(--dark-bg);
    font-size: 1.6rem;
    font-weight: 800;
}

.article-count-text {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.9rem;
}


/* =========================================
   GLOSSARY & DEFINITION PAGES (G-13)
   ========================================= */

.definition-main {
    padding: 48px 0 88px;
}

.definition-card {
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.definition-content {
    max-width: 800px;
}

.definition-body h2 {
    margin: 0 0 16px;
    color: #1e293b;
    font-size: 2rem;
    font-weight: 800;
}

.definition-text {
    margin: 0 0 24px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.definition-alternate-name {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
}

.definition-related,
.definition-articles {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.definition-related h3,
.definition-articles h3 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 750;
}

.related-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-term-link {
    display: inline-block;
    padding: 6px 14px;
    color: #2563eb;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-term-link:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

.related-articles-list {
    color: #475569;
    font-size: 0.95rem;
}

.related-articles-list p {
    margin: 0 0 10px;
}

.related-articles-list ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.related-articles-list li {
    margin: 6px 0;
}

.article-link {
    color: #2563eb;
    text-decoration: none;
}

.article-link:hover {
    text-decoration: underline;
}

.definition-faq-link {
    margin-top: 32px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 0 8px 8px 0;
}

.definition-faq-link h3 {
    margin: 0 0 8px;
    color: #166534;
    font-size: 1.05rem;
    font-weight: 700;
}

.definition-faq-link p {
    margin: 0;
    color: #166534;
    font-size: 0.95rem;
}

.definition-faq-link a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.definition-faq-link a:hover {
    text-decoration: underline;
}

/* =========================================
   FAQ PAGES STYLING (G-13)
   ========================================= */

.faq-main {
    padding: 48px 0 88px;
}

.faq-categories {
    margin-bottom: 32px;
}

.faq-category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.faq-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-category-link:hover {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.faq-category-link .icon {
    font-size: 1.4rem;
}

.faq-category-section {
    margin-bottom: 48px;
}

.faq-category-header {
    margin-bottom: 24px;
}

.faq-category-header h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 800;
}

.faq-category-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.faq-item[open] {
    background: #f8fafc;
    border-color: #2563eb;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
}

.faq-item[open] .faq-question {
    color: #2563eb;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #64748b;
}

.faq-item[open] .faq-icon {
    color: #2563eb;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

.faq-item[open] .icon-plus {
    display: none;
}

.faq-item .icon-minus {
    display: none;
}

.faq-item[open] .icon-minus {
    display: block;
}

.faq-answer {
    padding: 0 20px 16px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
}

.faq-author {
    color: #64748b;
    font-weight: 500;
}

.faq-learn-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.faq-learn-more:hover {
    text-decoration: underline;
}

.faq-contact-cta {
    margin-top: 52px;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
}

.faq-contact-cta h2 {
    margin: 0 0 12px;
    color: #1d4ed8;
    font-size: 1.5rem;
    font-weight: 750;
}

.faq-contact-cta p {
    margin: 0 0 20px;
    color: #334155;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-category-links {
        grid-template-columns: 1fr;
    }

    .faq-metadata {
        flex-direction: column;
        align-items: flex-start;
    }

    .definition-card {
        padding: 20px;
    }

    .definition-body h2 {
        font-size: 1.5rem;
    }
}


/* =========================================
   AUTHOR PROFILE PAGE (G-13 Phase 5: Author Attribution)
   ========================================= */

.author-profile-page {
    min-height: 100vh;
    background: #f8fafc;
}

.author-profile-main {
    padding: 48px 0 88px;
    background: #f8fafc;
}

.author-profile-container {
    max-width: 900px;
}

.author-profile-header {
    margin-bottom: 48px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.author-profile-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.author-profile-image-wrapper {
    display: flex;
    align-items: flex-start;
}

.author-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #2563eb;
}

.author-profile-info {
    min-width: 0;
}

.author-profile-info h1 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.author-profile-title {
    margin: 0 0 16px;
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-profile-bio {
    margin: 0 0 24px;
    color: #52627a;
    font-size: 1rem;
    line-height: 1.7;
}

.author-expertise {
    margin: 24px 0;
}

.author-expertise h3 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-block;
    padding: 6px 12px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.author-credentials-list {
    margin: 24px 0;
}

.author-credentials-list h3 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.credentials-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.credentials-list li {
    margin-bottom: 8px;
    color: #52627a;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.credentials-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.author-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-social,
.btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover,
.btn-contact:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-social {
    background: #6366f1;
}

.btn-social:hover {
    background: #4f46e5;
}

.author-articles {
    margin-top: 48px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

.author-articles h2 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 1.75rem;
    font-weight: 800;
}

.articles-count {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.articles-coming-soon {
    margin: 0;
    padding: 20px;
    color: #475569;
    background: #f1f5f9;
    border-left: 4px solid #64748b;
    border-radius: 6px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .author-profile-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
        text-align: center;
    }

    .author-profile-image-wrapper {
        justify-content: center;
    }

    .author-profile-image {
        width: 150px;
        height: 150px;
    }

    .author-profile-info h1 {
        font-size: 1.75rem;
    }

    .expertise-tags {
        justify-content: center;
    }

    .author-profile-actions {
        justify-content: center;
    }

    .credentials-list li {
        padding-left: 20px;
    }

    .author-articles {
        padding: 24px;
    }
}


/* =========================================
   FAQ PAGE STYLES (G-13 Phase 5: Author Attribution)
   ========================================= */

.faq-main {
    padding: 48px 0 88px;
    background: #f8fafc;
}

.faq-categories {
    margin-bottom: 48px;
}

.faq-category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.faq-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-category-link:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.faq-category-link .icon {
    font-size: 1.5rem;
}

.faq-category-link .label {
    flex: 1;
}

.faq-category-section {
    margin-bottom: 56px;
}

.faq-category-header {
    margin-bottom: 32px;
}

.faq-category-header h2 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 1.75rem;
    font-weight: 800;
}

.faq-category-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item[open] .faq-question {
    background: #f0f9ff;
    color: #2563eb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    color: #1e293b;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
    color: #2563eb;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    position: relative;
    flex: 0 0 24px;
    height: 24px;
}

.icon-plus,
.icon-minus {
    position: absolute;
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: all 0.2s ease;
}

.icon-minus {
    opacity: 0;
}

.faq-item[open] .icon-plus {
    opacity: 0;
}

.faq-item[open] .icon-minus {
    opacity: 1;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 16px;
    color: inherit;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-metadata {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.faq-author-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.faq-author-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.faq-author-link .by-label {
    color: #64748b;
    font-weight: 500;
}

.faq-author-link strong {
    color: #2563eb;
    font-weight: 700;
}

.faq-learn-more {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.faq-learn-more:hover {
    color: #2563eb;
}

.faq-contact-cta {
    margin-top: 64px;
    padding: 48px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
}

.faq-contact-cta h2 {
    margin: 0 0 12px;
    color: var(--dark-bg);
    font-size: 1.75rem;
    font-weight: 800;
}

.faq-contact-cta p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .faq-category-links {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 16px 16px;
    }

    .faq-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .faq-contact-cta {
        padding: 32px 20px;
    }

    .faq-contact-cta h2 {
        font-size: 1.5rem;
    }
}


/* =========================================
   SNIPPET ANSWER WRAPPER (G-14: Featured Snippets)
   ========================================= */

.snippet-answer {
    position: relative;
}

.snippet-answer::before {
    content: attr(data-answer-type);
    position: absolute;
    top: -20px;
    left: 0;
    display: inline-block;
    padding: 2px 8px;
    background: #2563eb;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
}

.snippet-answer[data-answer-type="Definition"]::before {
    content: "Definition";
    background: #7c3aed;
}

.snippet-answer[data-answer-type="List"]::before {
    content: "List";
    background: #059669;
}

.snippet-answer[data-answer-type="Procedure"]::before {
    content: "Procedure";
    background: #d97706;
}

.snippet-answer[data-answer-type="Fact"]::before {
    content: "Fact";
    background: #dc2626;
}

/* Enhanced Quick Answer for Snippets */
.snippet-answer .quick-answer-box {
    margin-top: 16px;
}


/* =========================================
   SNIPPET COMPARISON TABLE (G-14: Featured Snippets)
   ========================================= */

.snippet-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.snippet-comparison-table thead {
    background: #f0f9ff;
    border-bottom: 2px solid #2563eb;
}

.snippet-comparison-table th {
    padding: 14px 16px;
    text-align: left;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.snippet-comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.snippet-comparison-table tbody tr:hover {
    background: #f8fafc;
}

.snippet-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.snippet-comparison-table td {
    padding: 12px 16px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.snippet-comparison-table tbody tr:nth-child(odd) td {
    background: #f8fafc;
}

/* Feature highlighting in comparison tables */
.snippet-comparison-table td strong {
    color: #2563eb;
    font-weight: 700;
}

.snippet-comparison-table td em {
    color: #64748b;
    font-style: italic;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .snippet-comparison-table {
        font-size: 0.85rem;
    }

    .snippet-comparison-table th,
    .snippet-comparison-table td {
        padding: 10px 12px;
    }

    .snippet-comparison-table th {
        font-size: 0.8rem;
    }
}

/* =========================================
   RELATED ARTICLES SECTION (G-14: Dynamic Related Articles)
   ========================================= */

.related-articles-section {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f3f4ff 100%);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.related-articles-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

.related-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.related-article-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-article-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.related-article-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 12px 0;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-article-title:hover {
    color: #1e40af;
    text-decoration: underline;
}

.related-article-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b5cf6;
    background: #ede9fe;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.related-article-category:hover {
    background: #ddd6fe;
    color: #6d28d9;
}

/* Mobile optimization for related articles */
@media (max-width: 768px) {
    .related-articles-section {
        padding: 24px;
        margin-top: 32px;
    }

    .related-articles-title {
        font-size: 1.25rem;
    }

    .related-articles-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-article-image {
        height: 150px;
    }

    .related-article-content {
        padding: 16px;
    }

    .related-article-title {
        font-size: 0.95rem;
    }

    .related-article-excerpt {
        font-size: 0.8125rem;
    }
}

/* Schema.org markup for related articles */
.related-articles-section[data-schema-type="ItemList"] {
    /* Used for structured data */
}


/* =========================================
   AUTHOR EXPERTISE & ARTICLES (G-14: Author Authority Clustering)
   ========================================= */

.author-expertise-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3f2 0%, #fef5f1 100%);
    border-radius: 12px;
    border: 1px solid #fed7d4;
}

.author-expertise-container {
    margin-bottom: 28px;
}

.author-articles-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #fed7d4;
}

.expertise-title,
.author-articles-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 16px 0;
    padding-bottom: 0;
}

.expertise-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    transition: all 0.2s ease;
}

.expertise-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.author-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.author-article-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.author-article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.author-article-image {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
}

.author-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-article-item:hover .author-article-image img {
    transform: scale(1.05);
}

.author-article-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-article-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ea580c;
    margin: 0 0 8px 0;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.author-article-title:hover {
    color: #c2410c;
    text-decoration: underline;
}

.author-article-excerpt {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Mobile optimization for author expertise */
@media (max-width: 768px) {
    .author-expertise-section {
        padding: 16px;
        margin-top: 24px;
    }

    .expertise-title,
    .author-articles-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .expertise-badges {
        gap: 6px;
    }

    .expertise-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .author-articles-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .author-article-image {
        height: 120px;
    }

    .author-article-content {
        padding: 12px;
    }

    .author-article-title {
        font-size: 0.9rem;
    }

    .author-article-excerpt {
        font-size: 0.75rem;
    }
}

/* Author expertise signals for schema.org */
.author-expertise-section[data-schema-type="Person"] {
    /* Used for structured data */
}

