/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0F3D6B;
    /* Deep Trust Blue */
    --color-primary-light: #1A5A99;
    --color-secondary: #0A8754;
    /* Emerald Green */
    --color-secondary-light: #12A86A;
    --color-accent: #D4AF37;
    /* Gold Accent */
    --color-accent-light: #F2D26D;

    /* Backgrounds & Surfaces */
    --color-bg-base: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F0F4F8;

    /* Text Colors (Ensuring 4.5:1 minimum contrast) */
    --color-text-main: #1A202C;
    /* High contrast dark grey */
    --color-text-muted: #4A5568;
    /* Meets 4.5:1 on light bg */
    --color-text-on-dark: #F7FAFC;
    /* Light text on dark bg */
    --color-text-on-accent: #1A202C;
    /* Dark text on gold */

    /* Borders & Dividers */
    --color-border: #E2E8F0;

    /* Typography (clamp) */
    --font-family-main: 'Cairo', system-ui, sans-serif;
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);
    --text-base: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(1.875rem, 4vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 5vw, 3.5rem);

    /* Spacing (Multiples of 8px) */
    --space-8: 0.5rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-40: 2.5rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --space-80: 5rem;
    --space-96: 6rem;
    --space-128: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --z-negative: -1;
    --z-normal: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-cursor: 9999;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
    /* Exact match for sticky header height (80px logo + 32px padding + border) */
    font-family: var(--font-family-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.6;
}

/* Hide default cursor on desktop */
@media (min-width: 1024px) {
    html {
        cursor: none;
    }

    a,
    button,
    input,
    [role="button"] {
        cursor: none;
    }
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

button {
    font-family: inherit;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: var(--space-24);
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-48);
}

.section-header h2 {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-16);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 800px;
    margin-inline: auto;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */
.bg-white {
    background-color: var(--color-bg-base);
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--color-bg-base) 0%, var(--color-bg-alt) 100%);
}

.bg-gradient-tint {
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    display: none;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    /* Gold with opacity */
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    display: none;
    transition: transform var(--transition-fast);
}

@media (min-width: 1024px) {

    .cursor-dot,
    .cursor-ring {
        display: block;
    }
}

/* Cursor Hover State (Optional embellishment) */
body.cursor-hover .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-32);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-small {
    padding: var(--space-8) var(--space-16);
    font-size: var(--text-sm);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-on-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 135, 84, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 61, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
}

/* ==========================================================================
   Animations (Intersection Observer)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    will-change: transform, opacity;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-normal);
}

.header-container {
    max-width: 1600px;
    margin-inline: auto;
    padding: var(--space-16) var(--space-24);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    margin-inline-start: var(--space-48);
}

.main-nav .nav-list {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav .nav-list {
        display: flex;
        gap: var(--space-16);
    }
}

.nav-list a {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    margin-inline-start: auto;
}

.search-bar {
    display: none;
    position: relative;
}

@media (min-width: 768px) {
    .search-bar {
        display: flex;
        align-items: center;
    }
}

.search-bar input {
    padding: var(--space-8) var(--space-40) var(--space-8) var(--space-16);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: var(--text-sm);
    width: 200px;
    transition: width var(--transition-normal), border-color var(--transition-normal);
}

.search-bar input:focus {
    outline: none;
    width: 250px;
    border-color: var(--color-primary);
}

.search-btn {
    position: absolute;
    right: var(--space-8);
    color: var(--color-text-muted);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: var(--space-8) var(--space-24);
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.login-btn:hover,
.login-btn:focus-visible {
    background-color: var(--color-primary-light);
    color: var(--color-text-on-dark);
}

.login-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-block: var(--space-64);
    overflow: hidden;
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-normal);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 107, 0.9) 0%, rgba(10, 135, 84, 0.8) 100%);
    z-index: var(--z-normal);
}

.hero-map-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: var(--z-normal);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-inline: auto;
    text-align: start;
    padding-inline: var(--space-24);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-24);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-48);
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    justify-content: start;
    margin-bottom: var(--space-48);
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: var(--space-16) var(--space-48);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: var(--text-base);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    justify-content: start;
}

.hero-ctas .btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text-on-dark);
}

.hero-ctas .btn-outline:hover,
.hero-ctas .btn-outline:focus-visible {
    background-color: var(--color-text-on-dark);
    color: var(--color-primary);
}

.hero-video-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

html[lang="en"] .hero-video-wrapper {
    transform: perspective(1000px) rotateY(5deg);
}

.hero-video-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   2. Interactive Map Section
   ========================================================================== */
.map-section {
    padding-block: var(--space-96);
}

.svg-map-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    background-color: transparent;
}

@media (min-width: 1024px) {
    .svg-map-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Map & Cards Enhanced Layout
   ========================================================================== */

.dark-card {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(15, 61, 107, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.country-list-sidebar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
}

.country-list-sidebar .sidebar-header h3 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-16);
    font-weight: 700;
}

.country-list-sidebar .search-box {
    position: relative;
    margin-bottom: var(--space-16);
}

.country-list-sidebar .search-box .form-control {
    background-color: rgba(244, 247, 246, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    color: var(--color-text-main);
    padding-left: 36px;
    padding-right: 16px;
    padding-block: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.country-list-sidebar .search-box .form-control:focus {
    background-color: #ffffff;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(10, 135, 84, 0.1);
    outline: none;
}

.country-list-sidebar .search-box .form-control::placeholder {
    color: #94a3b8;
}

.search-icon {
    position: absolute;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.custom-country-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Elegant ultra-thin scrollbar */
.custom-country-list::-webkit-scrollbar {
    width: 4px;
}

.custom-country-list::-webkit-scrollbar-track {
    background: transparent;
}

.custom-country-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.custom-country-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--color-text-main);
}

.custom-country-list li:hover {
    background-color: rgba(244, 247, 246, 0.8);
}

.custom-country-list li.active {
    background-color: rgba(10, 135, 84, 0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(10, 135, 84, 0.15);
}

.country-flag-img {
    width: 24px;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Info Panel Layout */
.info-panel.dark-card {
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
}

.panel-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-16);
}

.panel-title {
    margin: 0;
    font-size: var(--text-lg);
}

.selected-country-chip {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-full);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-main-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-24);
    margin-bottom: var(--space-24);
}

.country-details-list.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.country-details-list.clean-list li {
    display: flex;
    flex-direction: column;
    font-size: var(--text-sm);
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.detail-val {
    color: white;
    font-size: var(--text-base);
}

/* Circular Progress */
.panel-progress-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    text-align: center;
}

.progress-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.circular-progress {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--color-secondary) var(--progress, 0%), rgba(255, 255, 255, 0.1) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(10, 135, 84, 0.4);
    transition: background 1s ease;
}

.progress-inner {
    width: 74px;
    height: 74px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: bold;
    color: white;
}

/* Docs Section */
.panel-docs-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    margin-bottom: var(--space-24);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-24);
}

.docs-col h4 {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--text-sm);
    margin-bottom: var(--space-12);
    color: var(--color-accent);
}

.clean-list.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.clean-list.docs-list a {
    color: white;
    text-decoration: none;
    font-size: var(--text-xs);
    display: block;
    padding: var(--space-8);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.clean-list.docs-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.panel-gallery-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--text-sm);
    margin-bottom: var(--space-12);
    color: var(--color-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Map specific overrides for dark theme */
.arab-country-path {
    fill: #2a4b7c;
    /* Darker blue for non-active */
    stroke: var(--color-primary);
    stroke-width: 0.5px;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease, transform 0.3s ease;
    transform-origin: center;
}

.arab-country-path:hover {
    fill: var(--color-secondary-light);
    stroke: white;
    stroke-width: 1px;
}

.arab-country-path.active {
    fill: var(--color-secondary);
    stroke: var(--color-accent);
    stroke-width: 1.5px;
}

.country-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    fill: white;
    pointer-events: none;
}

/* Right Sidebar: Country List (25%) */
.country-list-sidebar {
    width: 100%;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: var(--space-24);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.custom-country-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Custom Scrollbar for Country List */
.custom-country-list::-webkit-scrollbar {
    width: 6px;
}

.custom-country-list::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 4px;
}

.custom-country-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.custom-country-list li {
    padding: var(--space-12) var(--space-16);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
    color: var(--color-text-main);
    border: 1px solid transparent;
}

.custom-country-list li:hover {
    background-color: var(--color-bg-alt);
}

.custom-country-list li.active {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-accent);
}

/* Center Area: SVG Map */
.map-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust map layout to 2 columns on desktop */
.svg-map-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

@media (min-width: 1024px) {
    .svg-map-layout {
        grid-template-columns: 350px 1fr;
        /* Sidebar is 350px, Map gets the rest */
        align-items: start;
    }
}

.arab-svg-map {
    width: 100%;
    max-width: 900px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    margin: 0 auto;
}

/* ==========================================================================
   3. Application Journey
   ========================================================================== */
.journey-section {
    padding-block: var(--space-96);
}

.timeline-steps {
    display: flex;
    overflow-x: auto;
    gap: var(--space-16);
    padding-bottom: var(--space-16);
    margin-bottom: var(--space-32);
    /* Hide scrollbar */
    scrollbar-width: none;
}

.timeline-steps::-webkit-scrollbar {
    display: none;
}

.timeline-step {
    white-space: nowrap;
    padding: var(--space-16) var(--space-24);
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.timeline-step:hover,
.timeline-step:focus-visible {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.timeline-step.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-on-dark);
}

.step-details {
    display: none;
    background-color: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.step-details.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.step-details h3 {
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-8);
}

.step-details p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-24);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-16);
}

.resource-card {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-16);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-weight: 600;
}

.resource-card:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-primary);
}

/* ==========================================================================
   4. Dashboard Section
   ========================================================================== */
.dashboard-section {
    padding-block: var(--space-96);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-48);
}

.stat-card {
    background-color: var(--color-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--color-secondary);
}

.stat-card h4 {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.stat-card .stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-primary);
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-48);
}

@media (min-width: 768px) {
    .charts-container {
        grid-template-columns: 2fr 1fr;
    }
}

.chart-wrapper {
    background-color: var(--color-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.chart-wrapper h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-16);
    color: var(--color-primary);
}

.leaderboard-container {
    background-color: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.leaderboard-container h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-24);
    color: var(--color-primary);
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-border);
}

.leaderboard-list li:last-child {
    border-bottom: none;
}

.leaderboard-list .rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-text-on-accent);
    border-radius: var(--radius-full);
    font-weight: 800;
    margin-left: var(--space-16);
}

.leaderboard-list .inst-name {
    flex-grow: 1;
    font-weight: 600;
}

.leaderboard-list .score {
    font-weight: 800;
    color: var(--color-secondary);
}

/* ==========================================================================
   5. Digital Library
   ========================================================================== */
.library-section {
    padding-block: var(--space-96);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-24);
}

.library-card {
    background-color: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.library-card .icon {
    font-size: var(--text-4xl);
    display: block;
    margin-bottom: var(--space-16);
}

.library-card h3 {
    font-size: var(--text-lg);
    color: var(--color-primary);
}

/* ==========================================================================
   6. Platform Previews
   ========================================================================== */
.previews-section {
    padding-block: var(--space-96);
}

.preview-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    align-items: center;
    margin-bottom: var(--space-64);
}

@media (min-width: 768px) {
    .preview-block {
        grid-template-columns: 1fr 1fr;
    }

    .preview-block.reverse .preview-text {
        order: 2;
    }

    .preview-block.reverse .preview-image {
        order: 1;
    }
}

.preview-text h3 {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-16);
}

.preview-text p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-24);
}

.mockup-frame {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-muted);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   7. Knowledge Center
   ========================================================================== */
.knowledge-section {
    padding-block: var(--space-96);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-32);
}

.case-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.video-thumbnail {
    background-color: var(--color-primary-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xl);
    backdrop-filter: blur(4px);
    transition: background-color var(--transition-fast);
}

.video-thumbnail:hover .play-btn {
    background-color: var(--color-accent);
}

.case-content {
    padding: var(--space-24);
}

.case-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-16);
}

.metrics {
    display: flex;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.metrics span {
    background-color: var(--color-bg-alt);
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.metrics span:last-child {
    background-color: rgba(10, 135, 84, 0.1);
    color: var(--color-secondary);
}

/* ==========================================================================
   8. Benchmarking Board
   ========================================================================== */
.benchmarking-section {
    padding-block: var(--space-96);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--space-24);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.benchmarking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.benchmarking-table th,
.benchmarking-table td {
    padding: var(--space-16) var(--space-24);
    text-align: right;
    border-bottom: 1px solid var(--color-border);
}

.benchmarking-table th {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    font-weight: 700;
}

.benchmarking-table tbody tr:hover {
    background-color: var(--color-surface-hover);
}

.benchmarking-table td {
    font-weight: 600;
}

.export-actions {
    display: flex;
    gap: var(--space-16);
    justify-content: flex-end;
}

/* ==========================================================================
   9. News & Partners
   ========================================================================== */
.news-partners-section {
    padding-block: var(--space-96);
}

.news-slider {
    margin-bottom: var(--space-64);
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-24);
}

.news-card {
    background-color: var(--color-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--color-accent);
}

.news-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.news-card h3 {
    font-size: var(--text-lg);
}

.partners-carousel {
    text-align: center;
    overflow: hidden;
}

.partners-carousel h3 {
    margin-bottom: var(--space-32);
    color: var(--color-text-muted);
}

.carousel-track {
    display: flex;
    gap: var(--space-48);
    justify-content: center;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-border);
    transition: color var(--transition-normal);
}

.partner-logo:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    padding-top: var(--space-64);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-48);
    margin-bottom: var(--space-64);
}

.footer-logo {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: var(--space-16);
}

.brand-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-24);
}

.language-switcher {
    display: flex;
    gap: var(--space-8);
}

.language-switcher button {
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
}

.language-switcher button.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-col h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-24);
    color: var(--color-accent);
}

.footer-col ul li {
    margin-bottom: var(--space-16);
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: var(--space-24);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

/* ==========================================================================
   Video Section
   ========================================================================== */
.video-section {
    padding-block: var(--space-80);
}

.video-container {
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background-color: var(--color-bg-dark);
    aspect-ratio: 16 / 9;
    border: 4px solid white;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   i18n (English Support)
   ========================================================================== */
html[lang="en"] {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] .logo-text {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html[lang="en"] .logo-img {
    transform: none;
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-img:hover {
    transform: translateY(-8px);
}