.read-progress {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    z-index: 10000;
    transition: width 0.08s linear;
}

.page-article .navbar,
.page-articles .navbar {
    background: transparent;
}

.page-article .navbar::before,
.page-articles .navbar::before {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.page-article .navbar-brand,
.page-articles .navbar-brand {
    color: var(--gray-900);
}

.page-article .nav-link,
.page-articles .nav-link {
    color: var(--gray-600);
}

.page-article .nav-link.active,
.page-articles .nav-link.active {
    color: var(--primary-dark);
}

.page-article .navbar-cta,
.page-articles .navbar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
}

.page-article .navbar-toggle,
.page-articles .navbar-toggle {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.page-article .navbar-toggle-bar,
.page-articles .navbar-toggle-bar {
    background: var(--gray-800);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--primary-light);
}

.article-breadcrumb i {
    font-size: 0.625rem;
    opacity: 0.4;
}

.article-breadcrumb span {
    color: var(--primary-light);
}

.page-articles .article-breadcrumb {
    color: var(--gray-500);
}

.page-articles .article-breadcrumb a {
    color: var(--gray-600);
}

.page-articles .article-breadcrumb span {
    color: var(--primary-dark);
}

.article-hero {
    position: relative;
    padding: calc(var(--nav-height) + 48px) 0 64px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.article-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 30%, rgba(13, 148, 136, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        linear-gradient(165deg, #060a14 0%, #0c1222 40%, #0f2430 100%);
}

.article-hero-bg-hematology .article-hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 75% 25%, rgba(239, 68, 68, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 70%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
        linear-gradient(165deg, #0a0e18 0%, #121828 50%, #1a1020 100%);
}

.article-hero-bg-biochemistry .article-hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 70% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 75%, rgba(13, 148, 136, 0.18) 0%, transparent 50%),
        linear-gradient(165deg, #080c16 0%, #0e1a28 50%, #0a2028 100%);
}

.article-hero-bg-quality .article-hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 10% 60%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        linear-gradient(165deg, #0a0e18 0%, #101828 50%, #0c1a22 100%);
}

.article-hero-bg-microbiology .article-hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 75% 25%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 70%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        linear-gradient(165deg, #071310 0%, #0c201a 50%, #0a181a 100%);
}

.article-hero-bg-genetics .article-hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 75% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 70%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #0b0a1a 0%, #151128 50%, #161026 100%);
}

.article-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}

.article-hero-lab {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.article-hero-float {
    position: absolute;
    pointer-events: none;
}

.article-hero-icon {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 8%;
    color: rgba(20, 184, 166, 0.08);
    animation: articleIconFloat 15s ease-in-out infinite;
}

@keyframes articleIconFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.08; }
    50% { transform: translate(20px, -15px) rotate(10deg); opacity: 0.12; }
}

.article-hero-cell {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 15%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.08) 60%, transparent 70%);
    animation: articleCellDrift 12s ease-in-out infinite;
}

.article-hero-cell-2 {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 25%;
    animation-delay: -4s;
}

.article-hero-cell-3 {
    width: 30px;
    height: 30px;
    top: 35%;
    right: 8%;
    animation-delay: -8s;
}

@keyframes articleCellDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

.article-hero-chart-bar {
    position: absolute;
    bottom: 30%;
    right: 12%;
    width: 16px;
    height: 80px;
    background: linear-gradient(to top, rgba(20, 184, 166, 0.3), rgba(20, 184, 166, 0.1));
    border-radius: 4px 4px 0 0;
    animation: chartBarPulse 4s ease-in-out infinite;
}

.article-hero-chart-bar-2 {
    right: 18%;
    height: 120px;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
    animation-delay: -1.3s;
}

.article-hero-chart-bar-3 {
    right: 24%;
    height: 60px;
    animation-delay: -2.6s;
}

@keyframes chartBarPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.1); opacity: 1; }
}

.article-hero-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: articleRingSpin 25s linear infinite;
}

.article-hero-ring-2 {
    width: 80px;
    height: 80px;
    top: 28%;
    right: 14%;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 18s;
}

@keyframes articleRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- New: Microbiology Theme Float Assets --- */
.article-hero-bacteria {
    position: absolute;
    width: 80px;
    height: 30px;
    top: 30%;
    right: 15%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.08));
    animation: heroBacteriaSwim 10s ease-in-out infinite;
}

.article-hero-bacteria-2 {
    width: 50px;
    height: 20px;
    top: 55%;
    right: 25%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    animation-delay: -3s;
    animation-duration: 8s;
    animation-direction: reverse;
}

@keyframes heroBacteriaSwim {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(-25px, 15px) rotate(25deg); }
}

.article-hero-dna-strand {
    position: absolute;
    width: 6px;
    height: 120px;
    top: 25%;
    right: 18%;
    background: repeating-linear-gradient(to bottom, 
        rgba(139, 92, 246, 0.25) 0, rgba(139, 92, 246, 0.25) 6px, 
        transparent 6px, transparent 18px);
    animation: heroDnaFloat 12s ease-in-out infinite;
}

.article-hero-dna-strand::before,
.article-hero-dna-strand::after {
    content: '';
    position: absolute;
    left: -14px;
    width: 6px;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.15));
}

.article-hero-dna-strand::after {
    left: 14px;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.15));
}

.article-hero-dna-strand-2 {
    top: 50%;
    right: 28%;
    transform: scale(0.6) rotate(45deg);
    animation-duration: 9s;
    animation-delay: -4s;
}

@keyframes heroDnaFloat {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(15px) rotate(10deg); }
}

.article-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 10, 20, 0.9) 0%, transparent 50%);
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}

.article-hero-category {
    background: rgba(20, 184, 166, 0.2);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.article-hero-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.article-hero-meta i {
    margin-left: 6px;
    opacity: 0.7;
}

.article-hero-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.article-hero-excerpt {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    margin-bottom: 32px;
    max-width: 640px;
}

.article-hero-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    max-width: 360px;
}

.article-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(20, 184, 166, 0.4);
}

.article-hero-author strong {
    display: block;
    color: #fff;
    font-size: 0.9375rem;
}

.article-hero-author span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-layout {
    padding: 64px 0 80px;
    background: var(--surface);
}

.article-layout-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.article-sidebar-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.article-toc {
    background: var(--surface-muted);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.article-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.article-toc-title i {
    color: var(--primary);
}

.article-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-toc-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
}

.article-toc-link:hover {
    color: var(--primary-dark);
    background: var(--primary-50);
}

.article-toc-link.active {
    color: var(--primary-dark);
    background: var(--primary-50);
    border-right-color: var(--primary);
    font-weight: 600;
}

.article-sidebar-card {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2430 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.article-sidebar-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.article-sidebar-card h5 {
    font-size: 0.9375rem;
    color: #fff;
    margin-bottom: 8px;
}

.article-sidebar-card p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.article-back-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.article-body {
    max-width: 720px;
}

.article-section {
    margin-bottom: 56px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.article-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.article-section-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-100);
    line-height: 1;
    flex-shrink: 0;
}

.article-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.article-section-content p {
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.article-section-content p:last-child {
    margin-bottom: 0;
}

.article-callout {
    display: flex;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(204, 251, 241, 0.5) 100%);
    border-right: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 28px 0;
}

.article-callout i {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.article-callout p {
    font-size: 1rem !important;
    font-weight: 500;
    color: var(--gray-700) !important;
    margin: 0 !important;
    line-height: 1.85 !important;
}

.article-checklist {
    list-style: none;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
    padding: 14px 18px;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
}

.article-checklist i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-muted);
    border: 1px solid var(--gray-100);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
}

.article-tag i {
    color: var(--primary);
    font-size: 0.75rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.article-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-600);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.article-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.article-related-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.articles-grid-compact {
    max-width: 900px;
    margin: 0 auto;
}

.article-card-link {
    display: block;
    color: inherit;
}

.articles-page-hero {
    position: relative;
    padding: calc(var(--nav-height) + 56px) 0 72px;
    overflow: hidden;
}

.articles-page-bg {
    position: absolute;
    inset: 0;
    background: var(--navy);
}

.articles-page-bg .hero-bg-gradient {
    position: absolute;
    inset: 0;
}

.articles-page-bg .hero-hex-grid {
    position: absolute;
    inset: -50%;
}

.articles-page-dna {
    position: absolute;
    width: 80px;
    height: 125px;
    color: rgba(20, 184, 166, 0.1);
    top: 20%;
    left: 10%;
    animation: sectionDnaFloat 30s linear infinite;
}

.articles-page-dna-2 {
    width: 55px;
    height: 85px;
    bottom: 15%;
    right: 8%;
    animation-direction: reverse;
}

.articles-page-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.articles-page-hero-inner .article-breadcrumb {
    justify-content: center;
    margin-bottom: 28px;
}

.articles-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.articles-page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.85;
}

.articles-page-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.articles-page-stat {
    text-align: center;
}

.articles-page-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.articles-page-stat span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.articles-page-list {
    padding-top: 80px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.articles-list-item {
    background: var(--surface);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.articles-list-item:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.articles-list-link {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 8px;
    color: inherit;
}

.articles-list-visual {
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.articles-list-body {
    padding: 16px 8px;
}

.articles-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.articles-list-item:hover .articles-list-title {
    color: var(--primary-dark);
}

.articles-list-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-list-arrow {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-left: 16px;
    transition: all 0.35s var(--ease-out);
    flex-shrink: 0;
}

.articles-list-item:hover .articles-list-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(-4px);
}

@media (max-width: 1024px) {
    .article-layout-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar-sticky {
        position: static;
    }

    .article-toc-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .article-toc-link {
        border-right: none;
        border-bottom: 3px solid transparent;
    }

    .article-toc-link.active {
        border-right-color: transparent;
        border-bottom-color: var(--primary);
    }

    .articles-list-link {
        grid-template-columns: 160px 1fr;
    }

    .articles-list-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: auto;
        padding-bottom: 48px;
    }

    .article-hero-icon {
        width: 120px;
        height: 120px;
        opacity: 0.05;
    }

    .article-hero-author {
        max-width: none;
    }

    .articles-list-link {
        grid-template-columns: 1fr;
    }

    .articles-list-visual {
        height: 160px;
    }

    .articles-page-stats {
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-hero-icon,
    .article-hero-cell,
    .article-hero-chart-bar,
    .article-hero-ring,
    .articles-page-dna {
        animation: none !important;
    }
}
