﻿/* ============================================
   Fonts (Variable)
   ============================================ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* ============================================
   CSS Variables & Base
   ============================================ */
:root {
    --cream: #f8f5ef;
    --paper: #fffdf9;
    --burgundy: #762d40;
    --burgundy-dark: #51202f;
    --ink: #282421;
    --muted: #827c75;
    --line: #e8e0d6;
    --gold: #d4af37;
    --font-vazirmatn: 'Vazirmatn', Tahoma, Arial, sans-serif;
    --font-inter: 'Inter', Arial, Helvetica, sans-serif;
    /* Article Detail Page Variables */
    --article-text: #282421;
    --article-text-secondary: #5c5650;
    --article-heading: #762d40;
    --article-meta: #827c75;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-vazirmatn);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body {
    font-family: var(--font-inter);
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

svg {
    display: block;
    flex-shrink: 0;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

/* ============================================
   Scroll Progress
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    z-index: 100;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

html[dir="rtl"] .scroll-progress {
    transform-origin: right;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    height: 88px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(118, 45, 64, .1);
    background: rgba(248, 245, 239, .93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    font-family: Georgia, serif;
    font-size: 23px;
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(8deg) scale(1.08);
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

    .brand-name small {
        display: block;
        margin-top: 5px;
        font-size: 10px;
        color: var(--muted);
        font-weight: 400;
    }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .desktop-nav a {
        font-size: 13px;
        color: #655d57;
        transition: color .25s;
        position: relative;
    }

        .desktop-nav a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1.5px;
            background: var(--burgundy);
            transition: width .3s ease;
        }

html[dir="rtl"] .desktop-nav a::after {
    left: auto;
    right: 0;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    color: var(--burgundy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--burgundy);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

    .language-switch:hover {
        background: rgba(118, 45, 64, 0.08);
    }

    .language-switch svg {
        transition: transform 0.3s ease;
    }

    .language-switch:hover svg {
        transform: rotate(15deg);
    }

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--burgundy);
    color: white;
    padding: 12px 17px;
    font-size: 12px;
    transition: background .25s;
    border-radius: 6px;
}

    .header-contact:hover {
        background: var(--burgundy-dark);
        color: white;
    }

.mobile-menu-button {
    display: none;
    background: transparent;
    border: 0;
    color: var(--burgundy);
    padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    padding-top: 88px;
    position: relative;
    padding-bottom: 110px;
    overflow: hidden;
    background: radial-gradient(circle at 85% 20%, rgba(118, 45, 64, .07), transparent 30%), var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.orb-a {
    width: 400px;
    height: 400px;
    background: rgba(118, 45, 64, 0.4);
    top: 10%;
    right: -100px;
    animation: orbFloatA 12s ease-in-out infinite;
}

.orb-b {
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.3);
    bottom: -50px;
    left: -50px;
    animation: orbFloatB 14s ease-in-out infinite;
}

@keyframes orbFloatA {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 35px) scale(1.18);
    }
}

@keyframes orbFloatB {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, -30px) scale(1.12);
    }
}

.hero-glyph {
    position: absolute;
    font-family: Georgia, serif;
    color: rgba(118, 45, 64, 0.08);
    font-weight: 700;
    pointer-events: none;
    user-select: none;
    animation: glyphFloat 8s ease-in-out infinite;
}

@keyframes glyphFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-24px) rotate(10deg);
        opacity: 1;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 65px;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--burgundy);
    font-size: 12px;
    letter-spacing: .5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.eyebrow-line {
    width: 35px;
    height: 1px;
    background: var(--burgundy);
    display: inline-block;
}

.hero-content h1 {
    font-size: clamp(32px, 4.5vw, 57px);
    line-height: 1.65;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 23px;
    color: var(--ink);
}

html[dir="ltr"] .hero-content h1 {
    letter-spacing: -1.5px;
    line-height: 1.3;
}

.hero-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 9px;
}

.hero-role {
    color: var(--burgundy);
    font-size: 12px;
    margin: 0 0 23px;
}

.hero-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.5;
    max-width: 530px;
    margin-bottom: 30px;
}

html[dir="ltr"] .hero-description {
    line-height: 2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button-primary,
.button-outline {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 21px;
    font-size: 12px;
    transition: all .25s;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--burgundy);
    color: white;
    border: 0;
}

    .button-primary:hover {
        background: var(--burgundy-dark);
        color: white;
    }

.button-outline {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
}

    .button-outline:hover {
        border-color: var(--burgundy);
        color: var(--burgundy);
    }

.hero-visual {
    position: relative;
    max-width: 410px;
    width: 100%;
    margin-inline: auto;
}

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #e8ded4;
    padding: 15px;
}

.portrait-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(118, 45, 64, .12), transparent 60%), #eee5db;
    border: 1px solid rgba(118, 45, 64, .2);
}

.portrait-letter {
    font-family: Georgia, serif;
    font-size: 130px;
    color: rgba(118, 45, 64, .28);
}

.portrait-caption {
    color: var(--burgundy);
    font-size: 12px;
}

.portrait-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--burgundy);
    border-right: 2px solid var(--burgundy);
    top: -17px;
    right: -17px;
    pointer-events: none;
}

html[dir="ltr"] .portrait-decoration {
    right: auto;
    left: -17px;
    border-right: 0;
    border-left: 2px solid var(--burgundy);
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
    background: var(--burgundy);
    color: var(--cream);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    font-size: 14px;
    font-weight: 700;
    font-family: Georgia, serif;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    letter-spacing: 1px;
    opacity: 0.9;
}

    .marquee-item i {
        font-style: normal;
        font-size: 10px;
        margin-inline-start: 20px;
        color: var(--gold);
    }

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   Shimmer Text & Animations
   ============================================ */
.shimmer-text {
    background: linear-gradient(120deg, #762d40 20%, #d4af37 40%, #f3e5ab 50%, #d4af37 60%, #762d40 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    display: inline-block;
}

html[dir="ltr"] .shimmer-text {
    background: linear-gradient(120deg, #51202f 20%, #b08d57 40%, #e8d5a7 50%, #b08d57 60%, #51202f 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

    .reveal-stagger.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-inline-end: 0.2em;
}

.word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%) rotate(5deg);
    animation: wordReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* ============================================
   Home Page - Section Title Row
   ============================================ */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.section-icon {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ============================================
   Articles List Section
   ============================================ */
.articles-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        color: var(--burgundy);
        font-size: 32px;
        margin: 0 0 10px;
    }

    .section-header p {
        color: var(--muted);
        font-size: 16px;
        margin: 0;
    }

/* Articles Loading on Home Page */
.articles-loading {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

    .no-articles svg {
        color: var(--muted);
        opacity: 0.5;
    }

    .no-articles p {
        color: var(--muted);
        font-size: 14px;
        margin: 0;
    }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(50, 30, 25, 0.1);
    }

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--cream);
}

.article-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--cream), var(--line));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

    .article-image-placeholder svg {
        width: 48px;
        height: 48px;
        opacity: 0.5;
    }

.article-body {
    padding: 20px;
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--burgundy);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
}

.badge-lesson {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--muted);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.badge-chapter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #6366f1;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.article-title {
    color: var(--ink);
    font-size: 18px;
    margin: 0 0 12px;
    line-height: 1.6;
}

    .article-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .article-title a:hover {
            color: var(--burgundy);
        }

.article-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.article-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

    .article-date svg {
        flex-shrink: 0;
    }

.article-link {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .article-link:hover {
        text-decoration: underline;
    }

    .article-link svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s;
    }

html[dir="rtl"] .article-link:hover svg {
    transform: translateX(-3px);
}

html[dir="ltr"] .article-link:hover svg {
    transform: translateX(3px);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   View All Button
   ============================================ */
.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px dashed var(--line);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--burgundy);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(118, 45, 64, 0.2);
}

    .btn-view-all:hover {
        background: var(--burgundy-dark);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(118, 45, 64, 0.3);
    }

.btn-arrow {
    transition: transform 0.3s;
    display: inline-flex;
}

.btn-view-all:hover .btn-arrow svg {
    transform: translateX(4px);
}

/* RTL arrow flip */
html[dir="rtl"] .article-link svg,
html[dir="rtl"] .btn-view-all .btn-arrow svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .article-link:hover svg {
    transform: scaleX(-1) translateX(3px);
}

html[dir="rtl"] .btn-view-all:hover .btn-arrow svg {
    transform: scaleX(-1) translateX(4px);
}

/* ============================================
   Filters
   ============================================ */
.filter-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .filter-group:last-of-type {
        margin-bottom: 0;
    }

.filter-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 6px;
}

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

    .filter-badge:hover {
        background: var(--line);
        color: var(--burgundy);
    }

    .filter-badge.active {
        background: var(--burgundy);
        color: white;
        border-color: var(--burgundy);
        font-weight: 600;
    }

.filter-clear {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

    .filter-clear a {
        color: var(--burgundy);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

    .page-btn:hover:not(.disabled):not(.active) {
        background: var(--cream);
        border-color: var(--burgundy);
        color: var(--burgundy);
    }

    .page-btn.active {
        background: var(--burgundy);
        color: white;
        border-color: var(--burgundy);
    }

    .page-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.page-dots {
    color: var(--muted);
    padding: 0 6px;
}

/* ============================================
   Article Loading Animation (Detail Page)
   ============================================ */
.article-loading {
    max-width: 800px;
    margin: 120px auto;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--burgundy);
    animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

    .spinner-ring.delay-1 {
        inset: 6px;
        border-top-color: var(--gold);
        animation-delay: -0.15s;
        border-width: 2px;
    }

    .spinner-ring.delay-2 {
        inset: 12px;
        border-top-color: var(--muted);
        animation-delay: -0.3s;
        border-width: 2px;
    }

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.5px;
    animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   Article Not Found
   ============================================ */
.article-not-found {
    max-width: 800px;
    margin: 120px auto;
    padding: 60px 20px;
    text-align: center;
}

    .article-not-found h1 {
        font-size: 100px;
        color: var(--burgundy);
        margin: 0;
        line-height: 1;
        font-family: Georgia, serif;
        opacity: 0.3;
    }

    .article-not-found p {
        color: var(--muted);
        font-size: 16px;
        margin: 16px 0 32px;
    }

/* ============================================
   Article Details - Improved Typography
   ============================================ */
.article-details {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--article-meta);
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

    .breadcrumb a {
        color: var(--burgundy);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: opacity 0.2s;
    }

        .breadcrumb a:hover {
            opacity: 0.7;
        }

        .breadcrumb a svg {
            width: 14px;
            height: 14px;
        }

.breadcrumb-sep {
    color: var(--line);
    font-weight: 300;
}

.breadcrumb .current {
    color: var(--article-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.article-header {
    margin-bottom: 48px;
    text-align: center;
}

    .article-header .article-badges {
        justify-content: center;
        margin-bottom: 20px;
    }

.article-title-detail {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.5;
    color: var(--article-text);
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.article-summary-detail {
    font-size: 16px;
    color: var(--article-text-secondary);
    line-height: 2;
    margin: 0 0 28px;
    max-width: 650px;
    margin-inline: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--article-meta);
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .meta-item svg {
        color: var(--burgundy);
        flex-shrink: 0;
    }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    justify-content: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--article-text);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

    .tag-chip:hover {
        background: var(--burgundy);
        color: white;
        border-color: var(--burgundy);
    }

    .tag-chip svg {
        flex-shrink: 0;
    }

    .tag-chip:hover svg {
        color: white;
    }

/* ============================================
   Article Content - Readable Typography
   ============================================ */
.article-image-wrapper {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(50, 30, 25, 0.08);
}

.article-image-detail {
    width: 100%;
    height: auto;
    display: block;
}

.article-content-wrapper {
    padding: 20px 0;
}

.article-content {
    font-size: 16px;
    line-height: 2.2;
    color: var(--article-text);
}

html[dir="rtl"] .article-content {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .article-content {
    direction: ltr;
    text-align: left;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--article-heading);
    margin: 40px 0 18px;
    line-height: 1.5;
    font-weight: 700;
}

.article-content h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 17px;
}

.article-content p {
    margin: 0 0 22px;
    color: var(--article-text);
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(50, 30, 25, 0.06);
}

.article-content a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

    .article-content a:hover {
        opacity: 0.7;
    }

.article-content ul, .article-content ol {
    margin: 22px 0;
    padding-inline-start: 32px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--article-text);
}

.article-content blockquote {
    border-inline-start: 4px solid var(--burgundy);
    padding: 16px 24px;
    background: var(--cream);
    margin: 28px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: var(--article-text-secondary);
}

html[dir="rtl"] .article-content blockquote {
    border-radius: 8px 0 0 8px;
}

.article-content code {
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--burgundy-dark);
}

.article-content pre {
    background: #2c2022;
    color: #f0e4e2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 28px 0;
    font-size: 14px;
    line-height: 1.7;
}

    .article-content pre code {
        background: transparent;
        padding: 0;
        color: inherit;
    }

/* ============================================
   Related Articles
   ============================================ */
.related-articles {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 2px solid var(--line);
}

    .related-articles h3 {
        font-size: 22px;
        color: var(--burgundy);
        margin: 0 0 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .related-articles h3 svg {
            color: var(--gold);
        }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(50, 30, 25, 0.08);
    }

.related-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: var(--cream);
}

.related-image-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--cream), var(--line));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

    .related-image-placeholder svg {
        width: 28px;
        height: 28px;
        opacity: 0.5;
    }

.related-body {
    padding: 14px;
}

    .related-body h4 {
        font-size: 14px;
        margin: 0 0 8px;
        color: var(--article-text);
        line-height: 1.5;
    }

.related-date {
    font-size: 11px;
    color: var(--article-meta);
}

/* ============================================
   Article Footer Nav
   ============================================ */
.article-footer-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.btn-back,
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--burgundy);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-back:hover,
    .btn-back-home:hover {
        background: var(--burgundy-dark);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(118, 45, 64, 0.25);
    }

/* ============================================
   Contact Section (Home Page)
   ============================================ */
.contact-section {
    background: var(--burgundy-dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-inner {
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-content h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.5;
    margin: 0 0 20px;
    color: white;
    font-weight: 800;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 2;
    margin: 0 0 32px;
}

.button-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--burgundy-dark);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}

    .button-light:hover {
        background: #f0e4e2;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

.contact-decoration {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.contact-deco-char {
    font-family: Georgia, serif;
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #2c2022;
    color: white;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-inner p {
        font-size: 10px;
        color: rgba(255, 255, 255, .65);
        margin: 0;
    }

.footer-brand-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-link-squirrel {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

    .footer-link-squirrel:hover {
        color: white;
    }

/* ============================================
   Squirrel Chase Animation
   ============================================ */
.chase {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 80px;
    height: 26px;
    margin-inline-start: 10px;
}

.chase-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.chase-squirrel {
    position: relative;
    width: 38px;
    height: 26px;
    z-index: 2;
}

.chase-acorn {
    position: relative;
    width: 14px;
    height: 18px;
    z-index: 1;
    margin-bottom: 2px;
}

.chase-pounce {
    display: block;
    width: 100%;
    height: 100%;
    animation: sq-bounce 0.6s infinite alternate ease-in-out;
}

.chase-bob {
    display: block;
    width: 100%;
    height: 100%;
    animation: sq-bob 0.3s infinite alternate ease-in-out;
}

.sq-tail {
    transform-origin: 22px 38px;
    animation: sq-tail-wag 0.4s infinite alternate ease-in-out;
}

.sq-head {
    transform-origin: 49px 24px;
    animation: sq-head-bob 0.3s infinite alternate ease-in-out;
}

.sq-leg {
    transform-origin: center top;
    animation: sq-leg-run 0.25s infinite alternate ease-in-out;
}

    .sq-leg.b {
        animation-delay: 0.12s;
    }

.sq-fur {
    fill: #d49a56;
}

.sq-light {
    fill: #f6e0bd;
}

.sq-dark {
    fill: #b57a3a;
}

.chase-acorn-hop {
    display: block;
    width: 100%;
    height: 100%;
    animation: acorn-hop 0.4s infinite alternate ease-in-out;
}

.chase-spark {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 10px;
    animation: spark-spin 1s infinite linear;
}

@keyframes sq-bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

@keyframes sq-bob {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-1.5px) rotate(-2deg);
    }
}

@keyframes sq-tail-wag {
    from {
        transform: rotate(-10deg);
    }

    to {
        transform: rotate(10deg);
    }
}

@keyframes sq-head-bob {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-1px);
    }
}

@keyframes sq-leg-run {
    from {
        transform: rotate(-30deg);
    }

    to {
        transform: rotate(30deg);
    }
}

@keyframes acorn-hop {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-5px) rotate(15deg);
    }
}

@keyframes spark-spin {
    from {
        transform: translateX(-50%) rotate(0deg) scale(0.8);
    }

    to {
        transform: translateX(-50%) rotate(180deg) scale(1.2);
    }
}

/* ============================================
   To Top Button
   ============================================ */
.to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--burgundy);
    color: white;
    border: none;
    display: grid;
    place-items: center;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(118, 45, 64, .3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.4) translateY(20px);
    pointer-events: none;
}

    .to-top.visible {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    .to-top:hover {
        transform: scale(1.12);
        background: var(--burgundy-dark);
    }

    .to-top svg {
        animation: bounceUp 2s ease-in-out infinite;
    }

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

html[dir="ltr"] .to-top {
    left: auto;
    right: 30px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .desktop-nav {
        gap: 17px;
    }

        .desktop-nav a {
            font-size: 11px;
        }

    .hero-grid {
        gap: 30px;
    }

    .about-grid {
        gap: 45px;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 36px);
    }

    .site-header {
        height: 75px;
    }

    .brand-icon {
        width: 39px;
        height: 39px;
        font-size: 20px;
    }

    .header-contact {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .desktop-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        padding: 22px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

        .desktop-nav.mobile-open {
            display: flex;
        }

        .desktop-nav a {
            padding: 15px 8px;
            border-bottom: 1px solid var(--line);
            font-size: 13px;
        }

    .hero-section {
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        width: min(75%, 340px);
    }

    .hero-content h1 {
        font-size: clamp(30px, 8vw, 43px);
    }

    .hero-description {
        font-size: 12px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-content h2 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .contact-content p {
        font-size: 13px;
    }

    .contact-decoration {
        display: none;
    }

    .article-details {
        padding: 0 16px;
        margin: 24px auto;
    }

    .article-title-detail {
        font-size: clamp(22px, 6vw, 28px);
    }

    .article-summary-detail {
        font-size: 14px;
    }

    .article-meta {
        gap: 12px;
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
        line-height: 2;
    }

        .article-content h2 {
            font-size: 20px;
        }

        .article-content h3 {
            font-size: 18px;
        }

    .breadcrumb .current {
        max-width: 180px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-loading, .article-not-found {
        margin: 80px auto;
    }

    .filter-group {
        gap: 8px;
    }

    .filter-label {
        min-width: 100%;
        padding-top: 0;
        font-size: 13px;
    }

    .filter-badge {
        padding: 5px 12px;
        font-size: 12px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    html[dir="ltr"] .to-top {
        left: auto;
        right: 20px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-on-scroll,
    .reveal-stagger {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .word-inner {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .chase-pounce,
    .chase-bob,
    .sq-tail,
    .sq-head,
    .sq-leg,
    .chase-acorn-hop,
    .chase-spark {
        animation: none !important;
    }

    .spinner-ring {
        animation: none !important;
        border-top-color: var(--burgundy);
    }

    .loading-text {
        animation: none !important;
        opacity: 1;
    }
}
/* ============================================
   Certificates Section
   ============================================ */
.certificate-section {
    background: var(--cream);
    padding: 110px 0;
    position: relative;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
}

    .section-heading h2 {
        font-size: clamp(25px, 3vw, 37px);
        line-height: 1.8;
        margin: 23px 0 10px;
        color: var(--ink);
    }

    .section-heading p {
        font-size: 12px;
        line-height: 2;
        color: var(--muted);
        max-width: 520px;
        margin: 0;
    }

.section-label {
    color: var(--burgundy);
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 700;
}

.section-number {
    font-family: Georgia, serif;
    font-size: 100px;
    color: rgba(118, 45, 64, 0.12);
    line-height: 1;
    flex-shrink: 0;
}

/* Journey Track */
.certificate-journey {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
    padding: 30px 35px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 45px;
}

.journey-heading h3 {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--burgundy);
    margin: 12px 0 8px;
    font-weight: 800;
}

.journey-heading p {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin: 0;
}

.journey-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

    .journey-track::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10px;
        right: 10px;
        height: 1px;
        background: var(--line);
        transform: translateY(-50%);
    }

.journey-fill {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 1.8s ease-in-out;
    z-index: 0;
}

html[dir="rtl"] .journey-fill {
    transform-origin: right;
}

.journey-fill.is-visible {
    transform: translateY(-50%) scaleX(1);
}

.journey-step {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

    .journey-step:last-child {
        background: var(--burgundy);
        color: white;
    }

    .journey-step:hover {
        transform: scale(1.18) rotate(6deg);
    }

/* Certificate Grid */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 27px;
}

.certificate-card {
    min-width: 0;
}

.certificate-real {
    cursor: pointer;
    outline: none;
}

    .certificate-real:focus-visible .certificate-image {
        box-shadow: 0 0 0 3px rgba(118, 45, 64, 0.35);
    }

.certificate-image {
    position: relative;
    aspect-ratio: 2480 / 3507;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}

.certificate-real:hover .certificate-image {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(50, 30, 25, 0.12);
}

.certificate-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

.certificate-info {
    padding-top: 18px;
}

    .certificate-info span {
        color: var(--burgundy);
        font-size: 10px;
    }

    .certificate-info h3 {
        font-size: 14px;
        margin: 9px 0;
        color: var(--ink);
        line-height: 1.5;
    }

    .certificate-info p {
        color: var(--muted);
        font-size: 10px;
        margin: 0;
    }

.certificate-desc {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

    .certificate-desc svg {
        color: var(--burgundy);
        flex-shrink: 0;
        margin-top: 2px;
    }

.certificate-note {
    margin-top: 35px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* Skeleton Loader */
.image-loading-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(118, 45, 64, 0.03) 25%, rgba(118, 45, 64, 0.08) 50%, rgba(118, 45, 64, 0.03) 75% );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

    .lightbox.open {
        display: block;
    }

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 36, 33, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: lbFade 0.3s ease-out;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    animation: lbZoom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-figure {
    margin: 0;
    max-width: min(90vw, 720px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    background: var(--paper);
    padding: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .lightbox-caption strong {
        font-size: 15px;
        color: white;
    }

    .lightbox-caption span {
        font-size: 12px;
        color: var(--gold);
    }

    .lightbox-caption em {
        font-size: 11px;
        font-style: normal;
        color: rgba(255, 255, 255, 0.6);
    }

    .lightbox-caption small {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.45);
        letter-spacing: 1px;
    }

.lightbox-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: grid;
    place-items: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

    .lightbox-close:hover {
        background: var(--burgundy);
        transform: rotate(90deg);
    }

.lightbox-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

    .lightbox-nav:hover {
        background: var(--burgundy);
        transform: scale(1.1);
    }

@keyframes lbFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lbZoom {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Certificates Responsive
   ============================================ */
@media (max-width: 900px) {
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .section-number {
        font-size: 65px;
    }

    .certificate-journey {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .journey-step {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .certificate-section {
        padding: 75px 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        padding: 70px 10px;
        gap: 8px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-img {
        max-height: 60vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-loading-skeleton {
        animation: none !important;
    }

    .lightbox-overlay, .lightbox-content {
        animation: none !important;
    }

    .journey-fill {
        transition: none !important;
    }
}
/* ============================================
   Remove Blue Focus Outline from Certificates
   ============================================ */
.certificate-real:focus,
.certificate-real:focus-visible {
    outline: none;
}