@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&f[]=satoshi@300,400,500,700,900&display=swap');

:root {
    --bg: #FCFCFE;
    /* white from palette */
    --surface: #ffffff;
    --surface-2: #f1f3f5;
    --border: rgba(0, 0, 0, 0.08);
    --border-h: rgba(0, 0, 0, 0.15);
    --text: #0B0B0B;
    /* onyx from palette */
    --dim: #4B4B4B;
    /* charcoal from palette */
    --accent: #51ACDD;
    /* fresh-sky from palette */
    --accent-dim: rgba(81, 172, 221, 0.1);
    --accent-dark: #3d8fbc;
    --overlay-bg: rgba(252, 252, 254, 0.95);
    --font: 'Satoshi', system-ui, sans-serif;
    --display: 'Clash Display', system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --fast: cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    --bg: #0F172A;
    /* slate-900 */
    --surface: #1E293B;
    /* slate-800 */
    --surface-1: #1E293B;
    --surface-2: #334155;
    /* slate-700 */
    --border: rgba(255, 255, 255, 0.1);
    --border-h: rgba(255, 255, 255, 0.2);
    --text: #F8FAFC;
    /* slate-50 */
    --dim: #94A3B8;
    /* slate-400 */
    --overlay-bg: rgba(15, 23, 42, 0.95);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    font-size: 12px;
    scroll-behavior: smooth
}

@media (min-width: 1200px) {
    html {
        font-size: 0.833vw; /* Makes 1rem = 12px at 1440px, scaling perfectly on all larger screens */
    }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
    opacity: 0;
    transition: opacity .5s var(--ease)
}

body.page-loaded {
    opacity: 1
}

body.page-leaving {
    opacity: 0
}

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

img {
    max-width: 100%;
    display: block
}

ul {
    list-style: none
}

::selection {
    background: var(--accent);
    color: #fff
}

/* ═══════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: var(--border-h);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.container {
    max-width: 116.66rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem)
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    z-index: 9999;
    width: 0;
    transition: none;
    pointer-events: none
}

/* ═══════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.preloader-text {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 10rem);
    font-weight: 600;
    letter-spacing: -6px;
    overflow: hidden;
    color: var(--text);
    display: flex;
    direction: ltr;
}

.preloader-text span {
    display: block;
    animation: preloaderReveal .8s var(--ease) forwards;
    opacity: 0;
    transform: translateY(100%)
}

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

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: transparent;
    transition: all .5s var(--ease)
}

.nav.scrolled {
    padding: 1rem 0;
    background: rgba(252, 252, 254, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm)
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center
}

.logo-img {
    height: 4.8rem;
    width: auto;
    object-fit: contain
}

.nav-links {
    display: flex;
    gap: 2.5rem
}

.nav-links a {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dim);
    transition: color .3s;
    position: relative
}

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

.nav-links a:hover {
    color: var(--accent)
}

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

.nav-links .mega-menu a::after {
    display: none !important;
}

.nav-cta {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    padding: .6rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    transition: all .3s var(--ease)
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 172, 221, 0.3)
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 18px;
    position: relative;
    cursor: pointer;
    z-index: 101
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all .4s var(--ease)
}

.mobile-toggle span:nth-child(1) {
    top: 0
}

.mobile-toggle span:nth-child(2) {
    top: 8px
}

.mobile-toggle span:nth-child(3) {
    top: 16px
}

.mobile-toggle.open span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg)
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0
}

.mobile-toggle.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg)
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(2rem, 6vw, 6rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease)
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: all
}

.mobile-overlay a {
    font-family: var(--display);
    font-size: clamp(2rem, 6vw, 10rem);
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--dim);
    display: block;
    padding: .5rem 0;
    transition: color .3s, transform .3s var(--ease)
}

.mobile-overlay a:hover {
    color: var(--accent);
    transform: translateX(1rem)
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(6rem, 12vh, 10rem) 0 clamp(3rem, 8vh, 6rem);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f4fc 0%, var(--bg) 100%);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    display: block;
}

.hero-inner {
    position: relative;
    z-index: 1;
    margin-top: clamp(6rem, 14vh, 12rem);
}

.hero-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    opacity: 0;
    animation: fadeIn .8s .6s var(--ease) forwards
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--accent)
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(3rem, 7.5vw, 15rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -4px;
    margin-bottom: 2.5rem;
    color: var(--text)
}

.hero h1 .line {
    display: block;
    overflow: hidden
}

.hero h1 .line>span {
    display: block;
    transform: translateY(110%);
    animation: slideUp 1s var(--ease) forwards;
    white-space: nowrap
}

.hero h1 .line:nth-child(2) span {
    animation-delay: .12s
}

.hero h1 .line:nth-child(3) span {
    animation-delay: .24s
}

.hero h1 .em {
    color: var(--accent);
    font-style: normal;
    position: relative
}

.type-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    margin-left: 4px;
    font-weight: 400
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    animation: fadeIn .8s .8s var(--ease) forwards
}

.hero-desc {
    max-width: 35rem;
    font-size: 1.1rem;
    color: var(--dim);
    line-height: 1.7;
    font-weight: 500
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    transition: gap .3s var(--ease)
}

.hero-cta:hover {
    gap: 1.5rem
}

.hero-cta .arrow-circle {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all .3s var(--ease)
}

.hero-cta:hover .arrow-circle {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(81, 172, 221, 0.35)
}

/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    overflow: hidden;
    background: var(--surface)
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content
}

.marquee-item {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dim);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0
}

.marquee-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent)
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
    padding: clamp(5rem, 12vh, 10rem) 0
}

.section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent)
}

.section-header {
    margin-bottom: clamp(3rem, 6vh, 5rem);
    max-width: 66.66rem
}

.section-header h2 {
    font-family: var(--display);
    font-size: clamp(2.5rem, 5vw, 10rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 1.5rem
}

.section-header p {
    color: var(--dim);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
    max-width: 53.33rem
}

/* ═══════════════════════════════════════════
   ABOUT — EDITORIAL GRID
   ═══════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md)
}

.about-cell {
    background: var(--surface);
    padding: clamp(2rem, 4vw, 4rem);
    transition: background .5s var(--ease)
}

.about-cell:hover {
    background: var(--surface-2)
}

.about-cell .num {
    font-family: var(--display);
    font-size: clamp(3rem, 5vw, 10rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .5rem;
    letter-spacing: -2px
}

.about-cell .label {
    font-size: .85rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600
}

.about-cell h3 {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 1rem;
    color: var(--text)
}

.about-cell p {
    color: var(--dim);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500
}

/* ═══════════════════════════════════════════
   WHY ESSAT — BENTO GRID
   ═══════════════════════════════════════════ */
.why-section {
    background: var(--surface-2)
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(2rem, 3vw, 3rem);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease)
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dim)
}

.why-card:hover::before {
    transform: scaleX(1)
}

.why-card--wide {
    grid-column: span 2
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: all .3s var(--ease)
}

.why-card:hover .why-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05)
}

.why-card h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: .75rem;
    color: var(--text)
}

.why-card p {
    color: var(--dim);
    font-size: .95rem;
    line-height: 1.8;
    font-weight: 500
}

/* ═══════════════════════════════════════════
   PROGRAMS — ACCORDION STYLE
   ═══════════════════════════════════════════ */
.programs-list {
    border-top: 1px solid var(--border)
}

.prog-item {
    border-bottom: 1px solid var(--border);
    transition: background .4s var(--ease)
}

.prog-item:hover {
    background: var(--surface)
}

.prog-link {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem clamp(1rem, 2vw, 2rem);
    text-decoration: none;
    color: inherit
}

.prog-num {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dim)
}

.prog-name {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.5vw, 5rem);
    font-weight: 600;
    letter-spacing: -1px;
    transition: color .3s;
    color: var(--text)
}

.prog-item:hover .prog-name {
    color: var(--accent)
}

.prog-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--ease);
    font-size: 1.2rem;
    color: var(--text)
}

.prog-item:hover .prog-arrow {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    transform: rotate(-45deg)
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials-section {
    background: var(--bg)
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(2rem, 3vw, 3rem);
    transition: all .4s var(--ease);
    display: flex;
    flex-direction: column
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dim)
}

.testimonial-quote {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: .5
}

.testimonial-card p {
    color: var(--dim);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
    flex: 1;
    margin-bottom: 2rem
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem
}

.testimonial-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text)
}

.testimonial-role {
    font-size: .8rem;
    color: var(--dim);
    font-weight: 500;
    margin-top: .15rem
}

/* ═══════════════════════════════════════════
   NEWS — NATIVE CARDS
   ═══════════════════════════════════════════ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: 2.5rem clamp(1.5rem, 2vw, 2.5rem);
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .4s var(--ease)
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-dim)
}

.news-date-block {
    text-align: center;
    min-width: 70px;
    background: var(--surface-2);
    padding: 1rem;
    border-radius: 16px
}

.news-date-block .day {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--accent)
}

.news-date-block .month {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dim);
    margin-top: .2rem
}

.news-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.news-info .tag {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: .5rem;
    display: inline-block;
    background: var(--accent-dim);
    padding: .3rem .8rem;
    border-radius: 999px
}

.news-info h3 {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -.5px;
    margin-bottom: .5rem;
    color: var(--text)
}

.news-info p {
    color: var(--dim);
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem
}

.news-media {
    margin-top: 0;
    width: 100%;
    max-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border)
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.news-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all .3s var(--ease)
}

.news-item:hover .news-arrow {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff
}

/* ═══════════════════════════════════════════
   CONTACT CTA
   ═══════════════════════════════════════════ */
.cta-section {
    padding-bottom: clamp(5rem, 12vh, 10rem)
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: clamp(2.5rem, 5vw, 5rem);
    box-shadow: var(--shadow-lg);
    overflow: hidden
}

.cta-content .section-label {
    margin-bottom: 1rem
}

.cta-content h2 {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 8rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 1.5rem
}

.cta-content p {
    color: var(--dim);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 40rem
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--accent);
    color: #fff;
    padding: .9rem 2rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all .3s var(--ease)
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 172, 221, 0.35)
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 2px solid var(--border);
    color: var(--text);
    padding: .9rem 2rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all .3s var(--ease)
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px)
}

.cta-map {
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-2)
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s var(--ease);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(81, 172, 221, 0.35)
}

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

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(81, 172, 221, 0.45)
}

/* ═══════════════════════════════════════════
   QUIZ MODAL
   ═══════════════════════════════════════════ */
.quiz-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all .5s var(--ease)
}

.quiz-overlay.active {
    opacity: 1;
    pointer-events: all
}

.quiz-modal {
    background: var(--surface);
    width: 90%;
    max-width: 50rem;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: translateY(40px) scale(0.95);
    transition: all .5s var(--ease);
    position: relative
}

.quiz-overlay.active .quiz-modal {
    transform: translateY(0) scale(1)
}

.quiz-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    transition: all .3s
}

.quiz-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg)
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem
}

.quiz-header .label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: .5rem
}

.quiz-header h3 {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px
}

.quiz-question {
    display: none;
    animation: fadeIn .5s forwards
}

.quiz-question.active {
    display: block
}

.quiz-question p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text)
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.quiz-option {
    background: var(--surface-2);
    border: 2px solid transparent;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dim);
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 1rem
}

.quiz-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--dim);
    transition: all .3s;
    flex-shrink: 0;
}

.quiz-option:hover {
    background: var(--surface);
    border-color: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-2px)
}

.quiz-option:hover::before {
    border-color: var(--accent)
}

.selection-card {
    background: var(--surface-2);
    border: 2px solid transparent;
    padding: 2rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.selection-card:hover {
    background: var(--surface);
    border-color: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.quiz-result {
    display: none;
    text-align: center;
    animation: fadeIn .5s forwards
}

.quiz-result.active {
    display: block
}

.quiz-result h3 {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: -1px
}

.quiz-result p {
    color: var(--dim);
    margin-bottom: 2rem;
    font-size: 1.1rem
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: clamp(4rem, 8vh, 8rem) 0 2rem;
    background: var(--surface)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 4rem
}

.footer-logo {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -3px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1
}

.footer-logo span {
    color: var(--accent)
}

.footer-brand p {
    color: var(--dim);
    font-size: 1rem;
    margin-top: 0;
    line-height: 1.7;
    max-width: 26.66rem;
    font-weight: 500
}

.footer-col h4 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 1.5rem
}

.footer-col a {
    display: block;
    color: var(--dim);
    font-size: .95rem;
    padding: .4rem 0;
    transition: color .3s;
    font-weight: 500
}

.footer-col a:hover {
    color: var(--accent)
}

.footer-col li {
    color: var(--dim);
    font-size: .95rem;
    padding: .4rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500
}

.footer-newsletter p {
    color: var(--dim);
    font-size: .9rem;
    margin-bottom: 1rem;
    line-height: 1.5
}

.newsletter-form {
    display: flex;
    position: relative
}

.newsletter-form input {
    width: 100%;
    padding: .8rem 3rem .8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    outline: none;
    transition: border-color .3s
}

.newsletter-form input:focus {
    border-color: var(--accent)
}

.newsletter-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s
}

.newsletter-form button:hover {
    background: var(--accent-dark)
}

.footer-social {
    display: flex;
    gap: .8rem;
    margin-top: 1.5rem
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    transition: all .3s var(--ease);
    background: var(--bg)
}

.footer-social a:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px)
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: .85rem;
    color: var(--dim);
    font-weight: 500
}

.footer-big {
    margin-bottom: 4rem
}

.footer-big h2 {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: .9;
    color: var(--text)
}

.footer-big h2 em {
    font-style: normal;
    color: var(--accent)
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

[data-delay="1"] {
    transition-delay: .1s
}

[data-delay="2"] {
    transition-delay: .2s
}

[data-delay="3"] {
    transition-delay: .3s
}

[data-delay="4"] {
    transition-delay: .4s
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes slideUp {
    to {
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    to {
        opacity: 1
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media(max-width:1024px) {
    .about-grid {
        grid-template-columns: 1fr
    }

    .why-grid {
        grid-template-columns: 1fr 1fr
    }

    .why-card--wide {
        grid-column: span 1
    }

    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .cta-box {
        grid-template-columns: 1fr
    }

    .cta-map {
        min-height: 280px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {

    .nav-links,
    .nav-cta {
        display: none
    }

    .mobile-toggle {
        display: block
    }

    .hero h1 {
        letter-spacing: -2px
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem
    }

    .why-grid {
        grid-template-columns: 1fr
    }

    .prog-link {
        grid-template-columns: 40px 1fr auto
    }

    .news-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        padding: 2rem 1.5rem
    }

    .news-arrow {
        display: none
    }

    .news-date-block {
        padding: .8rem;
        min-width: 60px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: .5rem
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1.5px
    }

    .prog-link {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 2rem 1rem
    }

    .prog-num {
        display: none
    }

    .cta-actions {
        flex-direction: column
    }
}

/* ═══════════════════════════════════════════
   ARTICLE CONTENT (QUILL HTML)
   ═══════════════════════════════════════════ */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: var(--display);
    color: var(--text);
    margin: 2rem 0 1rem 0;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--dim);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover {
    color: var(--accent-dark);
}

/* ═══════════════════════════════════════════
   ADMIN PAGINATION
   ═══════════════════════════════════════════ */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: all .3s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   MEGA MENU & SEARCH OVERLAY
   ========================================================================== */

/* Search Icon in Nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.nav-search-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Mega Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.3;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -50px;
    transform: translateX(0) translateY(20px);
    width: 720px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(8px);
    pointer-events: auto;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
}

.mega-menu-split {
    display: flex;
    min-height: 280px;
}

.mega-menu-sidebar {
    width: 260px;
    background: var(--surface-1);
    padding: 1.5rem 0;
    border-right: 1px solid var(--border);
}

.mega-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--dim);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mega-sidebar-item i {
    font-size: 1.25rem;
}

.mega-sidebar-item:hover,
.mega-sidebar-item.active {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
    /* very light accent bg */
    border-left-color: var(--accent);
}

.mega-menu-panes {
    flex: 1;
    position: relative;
    padding: 2rem;
    background: #fff;
}

.mega-pane {
    display: none;
    animation: fadeInPane 0.3s ease;
}

.mega-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.mega-pane-header {
    margin-bottom: 1.5rem;
}

.mega-pane-header h4 {
    font-family: var(--display);
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.mega-pane-header p {
    font-size: 0.9rem;
    color: var(--dim);
}

.mega-pane-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    /* padding prevents box-shadow/border cutoff */
    margin: -0.2rem -0.5rem -0.2rem -0.2rem;
    /* offset padding for alignment */
}

.mega-pane-grid::-webkit-scrollbar {
    width: 5px;
}

.mega-pane-grid::-webkit-scrollbar-track {
    background: transparent;
}

.mega-pane-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.mega-pane-grid::-webkit-scrollbar-thumb:hover {
    background: var(--dim);
}

.mega-pane-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.mega-pane-link::after {
    display: none !important;
}

.mega-pane-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.mega-pane-icon {
    color: var(--accent);
    margin-top: 2px;
}

.mega-pane-text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.mega-menu-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    background: var(--surface-1);
}

.mega-menu-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent) !important;
    text-decoration: none !important;
}

.mega-menu-cta::after {
    display: none !important;
}

.mega-menu-cta:hover {
    text-decoration: underline !important;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-container h2 {
    font-family: var(--display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.search-form {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.search-input-wrapper i {
    font-size: 1.5rem;
    color: var(--dim);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
}

.search-input-wrapper button {
    border-radius: 999px;
    padding: 1rem 2rem;
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-suggestions span {
    color: var(--dim);
    font-weight: 600;
}

.search-suggestions a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface-1);
    color: var(--text);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.search-suggestions a:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 992px) {
    .nav-dropdown:hover .mega-menu {
        display: none;
    }

    .nav-actions {
        gap: 1rem;
    }

    .search-container h2 {
        font-size: 2rem;
    }

    .search-input-wrapper input {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .search-input-wrapper button {
        padding: 0.75rem 1.5rem;
    }
}

/* ==========================================================================
   URGENT TOAST NOTIFICATIONS (SSE)
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.urgent-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

/* Color Themes */
.urgent-toast.toast-error { border-left: 4px solid #ff5f56; }
.urgent-toast.toast-warning { border-left: 4px solid #ffbd2e; }
.urgent-toast.toast-info { border-left: 4px solid #51ACDD; }
.urgent-toast.toast-success { border-left: 4px solid #27c93f; }

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex-grow: 1;
    color: var(--text);
}

.toast-close {
    background: none;
    border: none;
    color: var(--dim);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 4px;
}

.toast-close:hover {
    color: var(--text);
    background: var(--surface-2);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}

@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .urgent-toast {
        width: 100%;
    }
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.3333%);
    }
}