/* ==========================================================================
   Misk Global Forum — Clean Theme
   Palette centered on sky blue #7da9f7 · Fully logical properties (RTL/LTR)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Codec Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Codec-Pro-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Codec Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Codec-Pro-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Codec Pro';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Codec-Pro-Italic.ttf') format('truetype');
}

/* ---------- Design tokens ---------- */
:root {
    /* Sky-blue palette */
    --color-primary:        #7da9f7;
    --color-primary-light:  #aec9fb;
    --color-primary-dark:   #4e7be0;
    --color-primary-deep:   #3b63c4;
    --color-primary-deeper: #27499c;
    --color-navy-900:       #0a1428;
    --color-navy-800:       #101f42;
    --color-navy-700:       #1a2f5e;

    /* Supporting hues (all cool, around blue) */
    --color-cyan:    #4fd1e8;
    --color-mint:    #4fd6a5;
    --color-indigo:  #8f9df0;

    /* Neutrals */
    --color-ink:      #1d2b4d;
    --color-ink-soft: #55678f;
    --color-bg:       #f4f8ff;
    --color-card:     #ffffff;
    --color-line:     #dbe6fa;

    /* Effects */
    --gradient-btn:   linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
    --gradient-hero:  linear-gradient(180deg, rgba(10, 20, 40, .65) 0%, rgba(10, 20, 40, .35) 45%, rgba(10, 20, 40, .75) 100%);
    --shadow-card:    0 10px 30px rgba(39, 73, 156, .12);
    --shadow-lift:    0 16px 40px rgba(39, 73, 156, .22);

    --font-main: 'Codec Pro', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --container: 1200px;
    --radius:    14px;
    --radius-lg: 22px;
    --header-h:  104px;
    --ease:      cubic-bezier(.22, .8, .35, 1);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
    --color-ink:      #e9effc;
    --color-ink-soft: #a9badf;
    --color-bg:       #0a1428;
    --color-card:     #101d3a;
    --color-line:     rgba(125, 169, 247, .16);
    --shadow-card:    0 10px 30px rgba(0, 0, 0, .4);
    --shadow-lift:    0 16px 40px rgba(0, 0, 0, .55);
}
[data-theme="dark"] body { background-image: none; }
[data-theme="dark"] .bg-pattern { opacity: .4; }
[data-theme="dark"] .section-title,
[data-theme="dark"] .space-card__title,
[data-theme="dark"] .space-tile__title,
[data-theme="dark"] .report-card__title,
[data-theme="dark"] .venue__eyebrow,
[data-theme="dark"] .venue__name,
[data-theme="dark"] .about__title { color: var(--color-primary-light); }
[data-theme="dark"] .about__card { background: var(--color-card); box-shadow: 0 0 32px rgba(0, 0, 0, .5); }
[data-theme="dark"] .partner-logo { background: #fff; }

/* dark-mode hero + header */
[data-theme="dark"] .hero {
    color: #fff;
    background: linear-gradient(165deg, var(--color-navy-900) 0%, var(--color-navy-800) 55%, #152a52 100%);
}
[data-theme="dark"] .hero::before { background: radial-gradient(60% 55% at 50% 46%, rgba(125, 169, 247, .14), rgba(125, 169, 247, 0) 72%); }
[data-theme="dark"] .hero__emblem { opacity: .08; }
[data-theme="dark"] .hero__eyebrow { color: var(--color-primary-light); }
[data-theme="dark"] .hero__title { color: #fff; }
[data-theme="dark"] .hero__tagline { color: rgba(255, 255, 255, .85); }
[data-theme="dark"] .site-header::before {
    background: linear-gradient(180deg, rgba(10, 20, 40, .9) 0%, rgba(10, 20, 40, .5) 55%, rgba(10, 20, 40, 0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="dark"] .main-nav__link { color: #fff; }
[data-theme="dark"] .main-nav__link:hover { color: var(--color-primary-light); }
[data-theme="dark"] .main-nav__link--lang { border-color: rgba(255, 255, 255, .4); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, .4); color: #fff; }
[data-theme="dark"] .nav-toggle__bar { background: #fff; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-ink);
    background-color: var(--color-bg);
    /* soft ambient blobs (replaces the old bitmap background) */
    background-image:
        radial-gradient(38rem 30rem at 88% 8%,  rgba(125, 169, 247, .16), transparent 60%),
        radial-gradient(30rem 24rem at 45% 38%, rgba(79, 209, 232, .10), transparent 60%),
        radial-gradient(34rem 26rem at 60% 88%, rgba(143, 157, 240, .14), transparent 60%);
    background-attachment: fixed;
    box-shadow:
        inset 0 0 220px rgba(125, 169, 247, .22),
        inset 0 0 80px rgba(125, 169, 247, .10);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin-block: 0 .5em; font-weight: 800; }
p { margin-block: 0 1em; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

/* ---------- Animated background waves ---------- */
.bg-pattern,
.bg-pattern::before,
.bg-pattern::after {
    background-repeat: repeat-x;
}
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='470' viewBox='0 0 1400 470'%3E%3Cpath d='M0 110 C350 20 350 20 700 110 C1050 200 1050 200 1400 110' fill='none' stroke='%237da9f7' stroke-opacity='.30' stroke-width='1.6'/%3E%3Cpath d='M0 235 C350 145 350 145 700 235 C1050 325 1050 325 1400 235' fill='none' stroke='%237da9f7' stroke-opacity='.18' stroke-width='1.6'/%3E%3Cpath d='M0 360 C350 270 350 270 700 360 C1050 450 1050 450 1400 360' fill='none' stroke='%237da9f7' stroke-opacity='.10' stroke-width='1.6'/%3E%3C/svg%3E");
    background-size: 1400px 470px;
    background-position: 0 6%;
    animation: wavesFlowA 70s linear infinite;
}
@keyframes wavesFlowA {
    from { background-position: 0 6%; }
    to { background-position: -1400px 6%; }
}
/* middle wave band flowing the opposite way, slower */
.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='380' viewBox='0 0 1100 380'%3E%3Cpath d='M0 95 C275 185 275 185 550 95 C825 5 825 5 1100 95' fill='none' stroke='%234fd1e8' stroke-opacity='.22' stroke-width='1.5'/%3E%3Cpath d='M0 190 C275 280 275 280 550 190 C825 100 825 100 1100 190' fill='none' stroke='%234fd1e8' stroke-opacity='.13' stroke-width='1.5'/%3E%3Cpath d='M0 285 C275 375 275 375 550 285 C825 195 825 195 1100 285' fill='none' stroke='%234fd1e8' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1100px 380px;
    background-position: 0 44%;
    animation: wavesFlowB 110s linear infinite;
}
@keyframes wavesFlowB {
    from { background-position: 0 44%; }
    to { background-position: 1100px 44%; }
}
/* bottom wave band, fastest and faintest */
.bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300' viewBox='0 0 900 300'%3E%3Cpath d='M0 80 C225 150 225 150 450 80 C675 10 675 10 900 80' fill='none' stroke='%238f9df0' stroke-opacity='.20' stroke-width='1.4'/%3E%3Cpath d='M0 160 C225 230 225 230 450 160 C675 90 675 90 900 160' fill='none' stroke='%238f9df0' stroke-opacity='.11' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 900px 300px;
    background-position: 0 78%;
    animation: wavesFlowC 45s linear infinite;
}
@keyframes wavesFlowC {
    from { background-position: 0 78%; }
    to { background-position: -900px 78%; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-pattern, .bg-pattern::before, .bg-pattern::after { animation: none; }
}

.section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    position: relative;
}
.section, .hero, .site-footer {
    box-shadow:
        inset 0 0 140px rgba(125, 169, 247, .24),
        inset 0 0 48px rgba(125, 169, 247, .12);
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    inset-block-start: 0;
    background: var(--color-primary-deep);
    color: #fff;
    padding: .6rem 1.2rem;
    z-index: 1000;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Reveal on scroll (animate.css style, like the original) ---------- */
.reveal { opacity: 0; }
.reveal.is-visible {
    animation: animFadeInUp 1s both;
    animation-delay: var(--reveal-delay, 0s);
}
.reveal--left.is-visible { animation-name: animFadeInLeft; }
.reveal--right.is-visible { animation-name: animFadeInRight; }
.reveal--fade.is-visible { animation-name: animFadeIn; }
.reveal--bounce.is-visible { animation-name: animBounce; }
.reveal--d1 { --reveal-delay: .3s; }
.reveal--d2 { --reveal-delay: .6s; }
.reveal--d3 { --reveal-delay: 1s; }
.reveal--d4 { --reveal-delay: 1.5s; }
.reveal--d5 { --reveal-delay: 2s; }
.reveal--d6 { --reveal-delay: 2.5s; }

@keyframes animFadeInUp {
    from { opacity: 0; transform: translate3d(0, 100%, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes animFadeInLeft {
    from { opacity: 0; transform: translate3d(-100%, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes animFadeInRight {
    from { opacity: 0; transform: translate3d(100%, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes animFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes animBounce {
    from, 20%, 53%, to {
        animation-timing-function: cubic-bezier(.215, .61, .355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(.755, .05, .855, .06);
        transform: translate3d(0, -30px, 0) scaleY(1.1);
    }
    70% {
        animation-timing-function: cubic-bezier(.755, .05, .855, .06);
        transform: translate3d(0, -15px, 0) scaleY(1.05);
    }
    80% { transform: translate3d(0, 0, 0) scaleY(.95); }
    90% { transform: translate3d(0, -4px, 0) scaleY(1.02); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible { opacity: 1; animation: none; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #fff;
    background-image: var(--gradient-btn);
    box-shadow: 0 8px 22px rgba(59, 99, 196, .35);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
    text-align: center;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(59, 99, 196, .45); filter: brightness(1.06); }
.btn:active { transform: translateY(-1px); }
.btn--sm { padding: .65rem 2rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn__icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    padding-block: 1rem;
}
/* soft glass gradient — fades downward into the page */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    inset-block-end: -10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}
.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.brand { flex-shrink: 0; }
.brand img { height: 68px; width: auto; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.main-nav { flex: 1; }
.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.9rem, 1.8vw, 2rem);
}
.main-nav__list li { flex-shrink: 0; }
.main-nav__link {
    position: relative;
    color: var(--color-ink);
    font-weight: 500;
    font-size: .95rem;
    padding-block: .35rem;
    white-space: nowrap;
    transition: color .25s ease;
}
.main-nav__link::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary-dark);
    transition: width .3s var(--ease);
}
.main-nav__link:hover { color: var(--color-primary-dark); }
.main-nav__link:hover::after { width: 100%; }
.main-nav__link.active { color: var(--color-primary-dark); }
.main-nav__link.active::after { width: 100%; }
.main-nav__list li:first-child,
.main-nav__list li:last-child { margin-inline-start: auto; }
.main-nav__link--lang {
    border: 1px solid rgba(29, 43, 77, .4);
    border-radius: 999px;
    padding: .3rem 1rem;
}
.main-nav__link--lang::after { display: none; }

.theme-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(29, 43, 77, .4);
    color: var(--color-ink);
    margin-inline-start: .75rem;
    transition: background .25s ease, transform .25s var(--ease);
}
.theme-toggle:hover { background: rgba(39, 73, 156, .12); transform: rotate(15deg); }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    z-index: 110;
}
.nav-toggle__bar {
    width: 26px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--color-ink);
    transition: transform .3s var(--ease), opacity .3s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, #7da9f7 0%, #4e7be0 48%, #2c4fae 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 55% at 50% 46%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}
/* light flowing waves over the blue */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='470' viewBox='0 0 1400 470'%3E%3Cpath d='M0 110 C350 20 350 20 700 110 C1050 200 1050 200 1400 110' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.6'/%3E%3Cpath d='M0 235 C350 145 350 145 700 235 C1050 325 1050 325 1400 235' fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.6'/%3E%3Cpath d='M0 360 C350 270 350 270 700 360 C1050 450 1050 450 1400 360' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.6'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='380' viewBox='0 0 1100 380'%3E%3Cpath d='M0 95 C275 185 275 185 550 95 C825 5 825 5 1100 95' fill='none' stroke='%234fd1e8' stroke-opacity='.28' stroke-width='1.5'/%3E%3Cpath d='M0 190 C275 280 275 280 550 190 C825 100 825 100 1100 190' fill='none' stroke='%234fd1e8' stroke-opacity='.15' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x, repeat-x;
    background-size: 1400px 470px, 1100px 380px;
    background-position: 0 12%, 0 58%;
    animation: heroWaves 75s linear infinite;
}
@keyframes heroWaves {
    from { background-position: 0 12%, 0 58%; }
    to { background-position: -1400px 12%, 1100px 58%; }
}
.hero__emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vh, 80vw);
    opacity: .34;
    pointer-events: none;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding-block: clamp(7rem, 12vh, 9rem) clamp(3rem, 8vh, 6rem);
    text-align: center;
    flex: 1;
}
.hero__eyebrow {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .5px;
}
.hero__title {
    margin: 0;
    font-family: 'Changa', 'Cairo', sans-serif;
    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 24px rgba(10, 20, 40, .3);
}
.hero__title-ar {
    display: block;
    transform: scaleX(1.18);
    letter-spacing: .5px;
}
.hero__title-en {
    display: block;
    margin-block-start: .8rem;
    font-family: 'Codec Pro', 'Cairo', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 900;
    background: linear-gradient(165deg, #ffe9a8 0%, #f5c451 38%, #d4a017 72%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 3px 14px rgba(120, 84, 10, .45));
}
.hero__tagline {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1.02rem, 1.8vw, 1.3rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
}
.hero__banner img {
    width: min(92vw, 780px);
    margin-inline: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .35));
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero__actions .btn { background: #fff; background-image: none; color: var(--color-primary-deeper); box-shadow: 0 10px 28px rgba(10, 20, 40, .28); }
.hero__actions .btn:hover { box-shadow: 0 14px 34px rgba(10, 20, 40, .36); }
.hero__action-mobile { display: none; }

/* News ticker */
.news-ticker {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #b8860b 0%, #d4a017 25%, #f5c451 55%, #d4a017 85%, #b8860b 100%);
    box-shadow: 0 6px 24px rgba(120, 84, 10, .3);
    overflow: hidden;
}
.news-ticker__label {
    display: flex;
    align-items: center;
    padding-inline: 1.4rem;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    background: rgba(10, 20, 40, .55);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.news-ticker__viewport {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}
.news-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    padding-block: .7rem;
    animation: ticker-scroll 32s linear infinite;
}
.news-ticker__viewport:hover .news-ticker__track { animation-play-state: paused; }
.news-ticker__item {
    color: var(--color-navy-900);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    padding-inline: 1.6rem;
    position: relative;
}
.news-ticker__item + .news-ticker__item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    translate: 0 -50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-navy-900);
    opacity: .55;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}
[dir="ltr"] .news-ticker__track { animation-name: ticker-scroll-ltr; }
@keyframes ticker-scroll-ltr {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .news-ticker__track { animation: none; } }

/* Countdown */
.countdown { text-align: center; }
.countdown__title {
    color: rgba(255, 255, 255, .9);
    font-size: 1.3rem;
    font-weight: 700;
    margin-block-end: .9rem;
}
.countdown__grid {
    display: flex;
    justify-content: center;
    gap: clamp(.6rem, 2vw, 1.4rem);
}
.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(64px, 12vw, 92px);
    padding: .9rem .6rem .7rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.countdown__digits {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: #fff;
}
.countdown__digits.digit-flip { animation: digitFlip .3s ease; }
.countdown__label { font-size: .85rem; color: var(--color-primary-light); margin-block-start: .2rem; }
@keyframes digitFlip {
    0% { transform: translateY(-40%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Section titles ---------- */
.section-title {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: var(--color-primary-deeper);
}
.section-title--center { text-align: center; }
.section-subtitle {
    text-align: center;
    color: var(--color-ink-soft);
    font-weight: 500;
    margin-block-end: 2.5rem;
}
.divider {
    display: block;
    width: 72px;
    height: 4px;
    margin: 1rem auto 2.5rem;
    border-radius: 4px;
    background: var(--gradient-btn);
}

/* ---------- Split layouts ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; }
.split__body p { color: var(--color-ink-soft); font-size: 1.06rem; }

/* ---------- About (floating card over image, like the original) ---------- */
.about { overflow: hidden; }
.about__row {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: wrap;
}
.about__media-wrap { flex: 0 0 72%; z-index: 1; }
.about__media img { display: block; width: 100%; }
.about__card-wrap { flex: 0 0 28%; position: relative; z-index: 2; }
.about__card {
    background: #fdf9f3;
    border-radius: 10px;
    box-shadow: 0 0 32px rgba(0, 0, 0, .19);
    padding: 2.5rem 1.9rem 1.9rem 2.5rem;
}
[dir="rtl"] .about__card { transform: translateX(-2rem); }
[dir="ltr"] .about__card { transform: translateX(2rem); }
.about__title {
    color: var(--color-primary-deep);
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    font-weight: 800;
    padding-block-end: 1rem;
    margin-block-end: 0;
}
.about__text { color: var(--color-ink-soft); font-weight: 500; }
.about__text p:last-child { margin-block-end: 0; }
@media (max-width: 900px) {
    .about__media-wrap, .about__card-wrap { flex-basis: 100%; }
    .about__card-wrap { margin-block-start: -4rem; padding-inline: 1.25rem; }
    [dir] .about__card { transform: none; }
}
.theme {
    background: var(--color-navy-900) url('../images/mission-bg.jpg') top center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.theme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, .72);
    pointer-events: none;
}
.theme__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}
.theme__media { flex: 0 0 36%; }
.theme__media img {
    width: min(100%, 320px);
    margin-inline: auto;
    filter: brightness(0) invert(1) drop-shadow(0 8px 28px rgba(0, 0, 0, .5));
}
.theme__text {
    flex: 1;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    font-weight: 700;
    line-height: 1.9;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, .35);
    margin: 0;
}
@media (max-width: 900px) {
    .theme__row { flex-direction: column; text-align: center; }
    .theme__media { flex-basis: auto; }
    .theme__media img { width: 190px; }
}

/* ---------- App ---------- */
.app__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.app__body { text-align: center; }
.app__body p { color: var(--color-ink-soft); }
.app__stores { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-block-start: 1.5rem; }
.app__stores img { width: 170px; transition: transform .25s var(--ease); }
.app__stores a:hover img { transform: translateY(-4px); }
.app__phone img { margin-inline: auto; width: min(100%, 320px); }

/* ---------- Venue ---------- */
.venue__body { position: relative; }
.venue__eyebrow { color: var(--color-primary-dark); font-weight: 700; font-size: 1.05rem; margin-block-end: .2rem; }
.venue__name { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--color-primary-deeper); margin-block-end: .3rem; }
.venue__city { font-weight: 700; color: var(--color-ink); }
.venue__desc { color: var(--color-ink-soft); }
.venue__pin {
    position: absolute;
    inset-block-start: -1rem;
    inset-inline-end: 10%;
    animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Stats ---------- */
.stats {
    background: var(--color-navy-900) url('../images/stats-bg.jpg') center / cover no-repeat;
    color: #fff;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 20, 40, .9), rgba(46, 86, 166, .78));
    pointer-events: none;
}
.stats .container { position: relative; }
.stats .section-title { color: #fff; }
.stats .divider { background: #fff; }
.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    transition: transform .3s var(--ease);
}
.stat:hover { transform: translateY(-6px); }
.stat__number {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: #fff;
}
.stat__label { font-weight: 700; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }

/* ---------- Sliders ---------- */
.slider { position: relative; }
.slider--full { width: 100%; }
.slider--full .swiper { padding-inline: 1.25rem; }
.swiper { padding-block: .5rem 2.75rem; }
.swiper-button-prev,
.swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-card);
    color: var(--color-primary-deep);
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1rem; font-weight: 800; }
.swiper-button-prev:hover,
.swiper-button-next:hover { background: var(--color-primary); color: #fff; }
.swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--color-primary-light);
    opacity: .6;
    transition: opacity .25s ease, transform .25s ease;
}
.swiper-pagination-bullet-active { background: var(--color-primary-deep); opacity: 1; transform: scale(1.25); }

/* ---------- Space cards ---------- */
.space-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-line);
}
.space-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.space-card__title { font-size: 1.2rem; color: var(--color-primary-deeper); padding: 1.1rem 1.25rem .2rem; margin: 0; }
.space-card__text { color: var(--color-ink-soft); font-size: .95rem; padding: 0 1.25rem 1.25rem; margin: 0; }

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-block-start: 2.5rem;
}
.space-tile { text-align: center; }
.space-tile__img { border-radius: var(--radius); width: 100%; }
.space-tile__title { color: var(--color-primary-deeper); font-size: 1.15rem; margin-block: .9rem .3rem; }
.space-tile__text { color: var(--color-ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Art competition ---------- */
.art__inner { max-width: 900px; margin-inline: auto; text-align: start; }
.art__inner > p { color: var(--color-ink-soft); }
.art__gallery { margin-block: 2rem; }
.art__gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.art .btn { margin-block-start: .5rem; }

/* ---------- Speakers ---------- */
.speaker-card {
    position: relative;
    min-height: 390px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-end;
}
.speaker-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.speaker-card__info {
    position: relative;
    width: 100%;
    min-height: 104px;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-deeper), var(--color-primary));
    text-align: center;
}
.speaker-card__name { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 .25rem; }
.speaker-card__bio { font-size: .82rem; color: rgba(255, 255, 255, .88); margin: 0; line-height: 1.55; }

/* ---------- Agenda ---------- */
.agenda__inner {
    position: relative;
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--color-card);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
}
.agenda__inner p { color: var(--color-ink-soft); }
.agenda__corner {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 16px;
    height: 13px;
    background: url('../images/dialog-tail.svg') no-repeat center / contain;
}

/* ---------- Partners ---------- */
.partner-group { margin-block: 3rem; }
.partner-group__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-block-end: 1.75rem;
}
.partner-group__title h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}
.partner-group--strategic  .partner-group__title h2 { color: var(--color-primary-deep); }
.partner-group--excellence .partner-group__title h2 { color: #1fa3c4; }
.partner-group--success    .partner-group__title h2 { color: #1fa37a; }
.partner-group--knowledge  .partner-group__title h2 { color: #4f5fd0; }
.partner-group__title img { height: 56px; width: auto; }

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--color-card);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.partner-logo img { max-height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.partner-logo--stack {
    flex-direction: column;
    gap: .75rem;
    height: auto;
    min-height: 180px;
    padding: 1rem;
}
.partner-logo--stack img { max-height: 48px; }

/* ---------- Reports ---------- */
.reports .swiper-slide { height: auto; display: flex; }
.report-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
}
.report-card__img { width: 100%; aspect-ratio: 800 / 541; object-fit: cover; }
.report-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.report-card__badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary-dark);
    border-radius: 999px;
    padding: .22rem .85rem;
    margin-block-end: .6rem;
}
.report-card__badge--event { background: var(--color-primary); color: var(--color-primary-deep); }
.report-card__title { color: var(--color-primary-deep); font-size: 1.1rem; }
.report-card__text { color: var(--color-ink-soft); font-size: .92rem; }

/* ---------- Article (blog details) ---------- */
.article-hero { padding-block: 9rem 2.5rem; }
.article-hero__badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary-dark);
    border-radius: 999px;
    padding: .3rem 1rem;
    margin-block-end: .8rem;
}
.article-hero__badge--event { background: var(--color-primary); color: var(--color-primary-deep); }
.article-hero__title { color: var(--color-primary-deep); font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.35; }
.article-hero__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--color-ink-soft); font-size: .88rem; margin-block-start: .9rem; }
.article-hero__img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-block: 1.8rem;
}
.article-body { max-width: 860px; margin-inline: auto; padding-block-end: 3rem; }
.article-body p { color: var(--color-ink-soft); line-height: 2; margin-block-end: 1.2rem; font-size: 1.02rem; }
.article-body img { max-width: 100%; border-radius: var(--radius); height: auto; }
.article-back { margin-block-end: 2rem; }

/* ---------- Youth ---------- */
.youth-card { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.youth-card img { border-radius: var(--radius); transition: transform .4s var(--ease); }
.youth-card:hover img { transform: scale(1.04); }

/* ---------- Sessions ---------- */
.sessions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.session-card {
    position: relative;
    display: block;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
}
.session-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.session-card:hover img { transform: scale(1.05); }
.session-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.session-card__play::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 99, 196, .85);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .18);
    transition: transform .3s var(--ease), background .3s ease;
}
.session-card__play svg { position: relative; margin-inline-start: 4px; }
.session-card:hover .session-card__play::before { transform: scale(1.12); background: var(--color-primary-deep); }

/* ---------- Footer ---------- */
.site-footer {
    margin-block-start: 3rem;
    padding-block: 3.5rem 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-primary-deeper) 140%);
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}
.footer__logo img { width: 150px; filter: brightness(0) invert(1); }
.footer__about h2 { font-size: 1.35rem; color: var(--color-primary-light); }
.footer__about p { max-width: 560px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
}
.footer__contact a { transition: color .25s ease; }
.footer__contact a:hover { color: var(--color-primary-light); }
.footer__contact p { margin: 0; }
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}
.footer__links a {
    position: relative;
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    font-size: .95rem;
    transition: color .25s ease;
}
.footer__links a::before {
    content: '‹';
    margin-inline-end: .35rem;
    color: var(--color-primary-light);
}
.footer__links a:hover { color: var(--color-primary-light); }
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    transition: background .25s ease, transform .25s var(--ease);
}
.footer__social a:hover { background: var(--color-primary); transform: translateY(-4px); }
.footer__copy { margin: 0; color: rgba(255, 255, 255, .6); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.modal[hidden] { display: none; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal__card {
    position: relative;
    width: min(100%, 430px);
    padding: 2.75rem 2rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--color-primary-deeper), var(--color-navy-800));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    animation: modalIn .35s var(--ease);
}
@keyframes modalIn {
    from { transform: translateY(24px) scale(.97); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.modal__close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    transition: background .25s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, .3); }
.notify-form { display: flex; flex-direction: column; gap: 1rem; }
.notify-form input {
    width: 100%;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    transition: border-color .25s ease, background .25s ease;
}
.notify-form input::placeholder { color: rgba(255, 255, 255, .65); }
.notify-form input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: rgba(255, 255, 255, .16);
}
.notify-form__message { margin: 0; text-align: center; color: var(--color-mint); font-weight: 700; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox__close {
    position: absolute;
    inset-block-start: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    transition: background .25s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.lightbox__content {
    position: relative;
    z-index: 1;
    max-width: min(100%, 960px);
    max-height: 100%;
    animation: modalIn .3s var(--ease);
}
.lightbox__content img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.lightbox__content .lightbox__video {
    width: min(90vw, 960px);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .stats__grid { grid-template-columns: repeat(3, 1fr); }
    .sessions__grid { grid-template-columns: repeat(2, 1fr); }
    .spaces-grid { grid-template-columns: repeat(2, 1fr); }

    /* drawer nav on tablets too — burger last, theme toggle before it */
    .header__inner { gap: .7rem; }
    .nav-toggle { display: flex; order: 3; }
    .theme-toggle { margin-inline-start: auto; }
    .main-nav {
        position: fixed;
        inset-block-start: 0;
        inset-inline: 0;
        padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
        background: linear-gradient(180deg, var(--color-navy-800), rgba(16, 31, 66, .97));
        transform: translateY(-110%);
        transition: transform .4s var(--ease);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
        z-index: 105;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .main-nav__list li:first-child,
    .main-nav__list li:last-child { margin-inline-start: 0; }
    .main-nav__link { display: block; padding: .8rem .5rem; border-block-end: 1px solid rgba(255, 255, 255, .08); color: #fff; }
    .main-nav__link::after { display: none; }
    .main-nav__link--lang { border: 0; text-align: center; margin-block-start: .5rem; background: rgba(255, 255, 255, .08); border-radius: 999px; }
}

@media (max-width: 767px) {
    :root { --header-h: 78px; }

    /* mobile hero — bigger emblem, tighter layout */
    .hero { min-height: 92svh; }
    .hero__inner { gap: 1rem; padding-block: calc(var(--header-h) + 1.5rem) 2.5rem; }
    .hero__emblem { width: 135vw; opacity: .28; }
    .hero__title { font-size: clamp(1.4rem, 6.8vw, 1.9rem); }
    .hero__title-ar { transform: none; }
    .hero__title-en { font-size: clamp(2rem, 10vw, 2.8rem); margin-block-start: .5rem; }
    .hero__tagline { font-size: .95rem; padding-inline: .5rem; }

    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: -1; }
    .app__inner { grid-template-columns: 1fr; }
    .app__phone--start { display: none; }
    .hero__actions .btn { padding: .85rem 1.6rem; font-size: .95rem; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem .8rem; }
    .stat:last-child { grid-column: 1 / -1; }
    .stat__number { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .stat__label { font-size: .95rem; }
    .spaces-grid { grid-template-columns: 1fr; }
    .sessions__grid { grid-template-columns: 1fr; }
    .art__inner { text-align: center; }
    .venue__pin { display: none; }
}

@media (max-width: 480px) {
    .hero__inner { padding-block-start: calc(var(--header-h) + 1rem); }
    .hero__actions { gap: .6rem; }
    .hero__actions .btn { padding: .7rem 1.1rem; font-size: .88rem; }
    .about__card { padding: 1.6rem 1.3rem 1.3rem 1.6rem; }
    .theme-toggle { width: 36px; height: 36px; }
    .brand img { height: 52px; }
}
