/* ================================================================
   East-Pole School - Main Stylesheet
   Inspired by Xavier School design system
   ================================================================ */

/* ----------------------------------------------------------------
   Google Fonts Import
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=League+Spartan:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------------- */
:root {
    --color-primary: #1f4f9b;
    --color-light-blue: #00a8de;
    --color-btn: #faa603;
    --color-yellow: #ffc00c;
    --color-teal: #25bea3;
    --color-text: #5a5a5a;
    --color-dark: #121212;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-border: #e5e5e5;
    --color-footer: #1a3a6b;

    --font-heading: 'Lilita One', cursive;
    --font-body: 'Montserrat', sans-serif;
    --font-sub: 'League Spartan', sans-serif;

    --radius: 12px;
    --radius-pill: 50px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    background: #fff;
}

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

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

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    font-weight: 400;
}

p { margin-bottom: 1rem; }

section { padding: 80px 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
.section__heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 54px);
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.15;
}

.section__heading.blue { color: var(--color-light-blue); }
.section__heading.dark { color: var(--color-dark); }
.section__heading.white { color: var(--color-white); }
.section__heading.teal { color: var(--color-teal); }

.section__subheading {
    text-align: center;
    color: #888;
    font-size: clamp(14px, 1.5vw, 17px);
    margin-bottom: 50px;
    font-family: var(--font-body);
    font-weight: 400;
}

.section__label {
    display: inline-block;
    background: rgba(250, 166, 3, 0.12);
    color: var(--color-btn);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    font-family: var(--font-sub);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn-school {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 1.5vw, 14px) clamp(24px, 3vw, 40px);
    border-radius: var(--radius-pill);
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: clamp(13px, 1.2vw, 15px);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-school.filled {
    background: var(--color-btn);
    color: #fff;
    border-color: var(--color-btn);
}
.btn-school.filled:hover {
    background: transparent;
    color: var(--color-btn);
    box-shadow: 0 6px 20px rgba(250,166,3,0.3);
}

.btn-school.outline {
    background: transparent;
    color: var(--color-btn);
    border-color: var(--color-btn);
}
.btn-school.outline:hover {
    background: var(--color-btn);
    color: #fff;
}

.btn-school.primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-school.primary:hover {
    background: transparent;
    color: var(--color-primary);
}

.btn-school.white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-school.white:hover {
    background: var(--color-btn);
    color: #fff;
    border-color: var(--color-btn);
}

/* ----------------------------------------------------------------
   Header & Navigation
   ---------------------------------------------------------------- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
#site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
#site-header.header-hidden {
    transform: translateY(-100%);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
    gap: 20px;
}

/* Top bar */
.header__topbar {
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    padding: 5px 0;
}
.header__topbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__topbar a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.header__topbar a:hover { color: var(--color-btn); }
.header__topbar .topbar-left,
.header__topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header__topbar i { margin-right: 5px; }
.topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.2);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.header__logo img {
    height: clamp(38px, 5vw, 52px);
    width: auto;
    object-fit: contain;
}
.header__logo-text .name {
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--color-primary);
    line-height: 1.1;
    white-space: nowrap;
}
.header__logo-text .tagline {
    font-size: 9px;
    color: #999;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Main nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    flex: 1;
    justify-content: center;
}

.nav__link {
    font-family: var(--font-sub);
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
    transition: color 0.25s ease;
    letter-spacing: 0.2px;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-btn);
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover,
.nav__link.active { color: var(--color-btn); }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--color-primary);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    z-index: 100;
}
.nav__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--color-primary);
    border-top: none;
}
.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-family: var(--font-sub);
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: all 0.2s;
}
.nav__dropdown-menu a:last-child { border-bottom: none; }
.nav__dropdown-menu a:hover { color: var(--color-btn); padding-left: 24px; background: rgba(255,255,255,0.05); }

/* Header right: Apply + Hamburger */
.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Apply Now button — visible at all sizes, hides text on mobile */
.header__apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--color-btn);
    color: #fff !important;
    border: 2px solid var(--color-btn);
    border-radius: var(--radius-pill);
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(250,166,3,0.35);
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.header__apply-btn:hover {
    background: transparent;
    color: var(--color-btn) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250,166,3,0.4);
}
.header__apply-btn span { /* text label */ }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(31,79,155,0.08); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3.5px, 3.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(3.5px, -3.5px); }

/* Full-screen overlay mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--color-primary) 0%, #0d2e68 100%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
}
.mobile-overlay.open { display: block; }

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
    max-width: 340px;
}
.mobile-menu__nav a {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(22px, 6vw, 32px);
    color: rgba(255,255,255,0.82);
    padding: 6px 0;
    transition: color 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}
.mobile-menu__nav a:hover { color: var(--color-btn); transform: translateX(6px); }

.mobile-menu__cta {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.mobile-menu__social {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}
.mobile-menu__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu__social a:hover { background: var(--color-btn); color: #fff; }

.mobile-menu__close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1201;
}
.mobile-menu__close:hover {
    background: var(--color-btn);
    color: #fff;
    transform: rotate(90deg);
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.hero {
    margin-top: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
}

.hero__slide {
    position: absolute;
    inset: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    /* no CSS transition — JS drives it */
}

.hero__slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}


.hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 35, 80, 0.88) 0%,
        rgba(15, 35, 80, 0.65) 50%,
        rgba(15, 35, 80, 0.2) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0 40px;
    color: #fff;
}

/* Hero word spans for morph animation — JS wraps each word */
.hw {
    display: inline-block;
    will-change: opacity, transform, filter;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,168,222,0.18);
    border: 1px solid rgba(0,168,222,0.45);
    color: var(--color-light-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    font-family: var(--font-sub);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 72px);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    white-space: pre-line;
}

.hero__title span {
    color: var(--color-light-blue);
}

.hero__desc {
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Slider controls */
.hero__prev, .hero__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}
.hero__prev { left: 20px; }
.hero__next { right: 20px; }
.hero__prev:hover, .hero__next:hover {
    background: var(--color-btn);
    border-color: var(--color-btn);
}

.hero__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.hero__dot.active {
    background: var(--color-btn);
    transform: scale(1.3);
}

/* Floating art elements */
.art-float {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
    font-size: clamp(24px, 3vw, 44px);
    color: rgba(255,255,255,0.5);
}
.art-float.pos-1 { top: 15%; right: 15%; animation: floatV 3s ease-in-out infinite alternate; }
.art-float.pos-2 { bottom: 20%; right: 25%; animation: floatH 2.5s ease-in-out infinite alternate; }
.art-float.pos-3 { top: 30%; right: 8%; animation: floatV 3.5s ease-in-out infinite alternate 0.5s; }
.art-float.pos-4 { top: 60%; right: 18%; animation: floatH 2s ease-in-out infinite alternate 1s; }

@keyframes floatV {
    from { transform: translateY(-8px); }
    to { transform: translateY(8px); }
}
@keyframes floatH {
    from { transform: translateX(-8px); }
    to { transform: translateX(8px); }
}

/* Stats bar */
.hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    padding: 20px 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
}
.hero__stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.stat-item {
    text-align: center;
    padding: 0 20px;
}
.stat-item .number {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 40px);
    color: var(--color-primary);
    line-height: 1;
}
.stat-item .label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sub);
    font-weight: 600;
    margin-top: 5px;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--color-border);
}

/* ----------------------------------------------------------------
   About Section
   ---------------------------------------------------------------- */
.about {
    background: #fff;
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0,168,222,0.05);
    pointer-events: none;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}
.about__image-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.about__image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
}
.about__image-badge img { width: 60px; height: 60px; object-fit: contain; }
.about__image-badge .badge-text .title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-primary);
}
.about__image-badge .badge-text .sub {
    font-size: 11px;
    color: #888;
}

.about__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}
.about__content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 16px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}
.about__stat {
    text-align: center;
    padding: 16px;
    background: var(--color-light);
    border-radius: var(--radius);
    border-top: 3px solid var(--color-btn);
}
.about__stat .num {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
}
.about__stat .lbl {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sub);
}

/* ----------------------------------------------------------------
   IB Section
   ---------------------------------------------------------------- */
.ib-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fe 100%);
    position: relative;
}
.ib-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ib-section__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--color-light-blue);
    margin-bottom: 20px;
}
.ib-section__content p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
}
.ib-badge-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.ib-badge-wrap img { height: 80px; }
.ib-badge-wrap .ib-text .title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
}
.ib-badge-wrap .ib-text .sub { font-size: 13px; color: #888; }

.ib-section__image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

/* ----------------------------------------------------------------
   Programs / Academic Stages
   ---------------------------------------------------------------- */
.programs {
    background: #fff;
}
.programs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.program__card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    position: relative;
}
.program__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.program__card:nth-child(2) { margin-top: 30px; }
.program__card:nth-child(4) { margin-top: 30px; }

.program__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.program__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.program__card:hover .program__image img { transform: scale(1.08); }

.program__body {
    padding: 20px;
}
.program__grade {
    font-size: 11px;
    font-family: var(--font-sub);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-btn);
    margin-bottom: 8px;
}
.program__name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.program__tagline {
    font-size: 13px;
    color: #888;
}
.program__bar {
    height: 4px;
    border-radius: 2px;
    margin: 12px 0 0;
}

/* ----------------------------------------------------------------
   Why Us / School of Distinction
   ---------------------------------------------------------------- */
.why-us {
    background: var(--color-light);
}
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.distinction__card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    position: relative;
    transition: var(--transition);
    cursor: default;
}
.distinction__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--card-bg, #BEE5FF);
    z-index: 0;
    transform: translate(8px, 8px);
    transition: transform 0.25s ease;
}
.distinction__card:hover::before { transform: translate(16px, 16px); }
.distinction__card > * { position: relative; z-index: 1; }

.distinction__card:nth-child(1) { --card-bg: #FFB38C; }
.distinction__card:nth-child(2) { --card-bg: #BEE5FF; margin-top: 40px; }
.distinction__card:nth-child(3) { --card-bg: #FFC6C6; }
.distinction__card:nth-child(4) { --card-bg: #C2EBA9; margin-top: 40px; }

.distinction__icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.distinction__card:nth-child(1) .distinction__icon { background: #ff7a3d; }
.distinction__card:nth-child(2) .distinction__icon { background: var(--color-light-blue); }
.distinction__card:nth-child(3) .distinction__icon { background: #e05a5a; }
.distinction__card:nth-child(4) .distinction__icon { background: #4caf50; }

.distinction__title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.distinction__desc {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   News & Events
   ---------------------------------------------------------------- */
.news-section {
    background: #fff;
}
.news-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.news-section__header .left { text-align: left; }
.news-section__header h2 { text-align: left; margin-bottom: 0; }

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news__card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    transition: var(--transition);
}
.news__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.news__card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}
.news__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news__card:hover .news__card-img img { transform: scale(1.06); }
.news__card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-btn);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sub);
}

.news__card-body { padding: 20px; }
.news__card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
    font-family: var(--font-sub);
}
.news__card-meta i { color: var(--color-light-blue); }
.news__card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition);
}
.news__card:hover .news__card-title { color: var(--color-primary); }
.news__card-excerpt {
    font-size: 13.5px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 16px;
}
.news__card-link {
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.news__card-link:hover { color: var(--color-btn); gap: 10px; }

/* ----------------------------------------------------------------
   Faculty Section
   ---------------------------------------------------------------- */
.faculty-section {
    background: var(--color-light);
}
.faculty__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.faculty__card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.faculty__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.faculty__photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--color-border);
    transition: var(--transition);
}
.faculty__card:hover .faculty__photo { border-color: var(--color-btn); }
.faculty__name {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.faculty__role {
    font-size: 12px;
    color: var(--color-light-blue);
    font-family: var(--font-sub);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------- */
.testimonials {
    background: #fff;
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 5%;
    font-size: 300px;
    color: rgba(31,79,155,0.04);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 50px;
}
.testimonials__grid > *:nth-child(2) { margin-top: -20px; }

.testimonial__card {
    border-radius: 20px;
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.testimonial__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-color, var(--color-primary));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}
.testimonial__card:nth-child(1) { --card-color: rgba(37,194,225,0.95); }
.testimonial__card:nth-child(2) { --card-color: rgba(53,138,80,0.94); }
.testimonial__card:nth-child(3) { --card-color: rgba(243,183,24,0.95); }
.testimonial__card:hover::after { transform: translateY(0); }
.testimonial__card > * { position: relative; z-index: 1; transition: color 0.3s ease; }
.testimonial__card:hover .testimonial__text,
.testimonial__card:hover .testimonial__name,
.testimonial__card:hover .testimonial__role { color: #fff; }

.testimonial__quote {
    font-size: 40px;
    color: var(--color-btn);
    line-height: 1;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}
.testimonial__text {
    font-size: 14.5px;
    color: var(--color-text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-btn);
    flex-shrink: 0;
}
.testimonial__name {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.testimonial__role {
    font-size: 12px;
    color: #888;
    font-family: var(--font-sub);
}

/* ----------------------------------------------------------------
   Events
   ---------------------------------------------------------------- */
.events-section {
    background: linear-gradient(135deg, #1f4f9b 0%, #0d3072 100%);
    color: #fff;
}
.events-section .section__heading { color: #fff; }
.events-section .section__subheading { color: rgba(255,255,255,0.7); }

.events__list { margin-top: 40px; }
.event__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
}
.event__item:hover { background: rgba(255,255,255,0.14); transform: translateX(6px); }
.event__date-box {
    background: var(--color-btn);
    border-radius: 12px;
    width: 60px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.event__date-box .day {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    line-height: 1;
}
.event__date-box .month {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sub);
}
.event__info h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: #fff;
    margin-bottom: 5px;
}
.event__info p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.event__info p i { margin-right: 5px; color: var(--color-btn); }

/* ----------------------------------------------------------------
   Gallery Section (Homepage preview)
   ---------------------------------------------------------------- */
.gallery-preview {
    background: var(--color-light);
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 200px;
    gap: 12px;
    margin-top: 40px;
}
.gallery__item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,79,155,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }
.gallery__item-overlay i { font-size: 24px; color: #fff; }

/* ----------------------------------------------------------------
   CTA Section
   ---------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--color-light-blue) 0%, #0090c0 100%);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    color: #fff;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
}
.cta-section .cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   Downloads Section
   ---------------------------------------------------------------- */
.downloads-page {
    padding: 80px 0;
}
.download__cat-section { margin-bottom: 50px; }
.download__cat-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.download__cat-title i { color: var(--color-btn); }
.download__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download__item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 20px;
    transition: var(--transition);
}
.download__item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.download__icon {
    width: 48px;
    height: 48px;
    background: rgba(31,79,155,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.download__info .title { font-weight: 600; color: var(--color-dark); font-size: 14.5px; }
.download__info .desc { font-size: 12.5px; color: #888; margin-top: 3px; }
.download__btn {
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.download__btn:hover { background: var(--color-btn); color: #fff; }

/* ----------------------------------------------------------------
   Page Hero (inner pages)
   ---------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3072 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 56px);
    color: #fff;
    margin-bottom: 10px;
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 16px; }

/* Breadcrumb */
.breadcrumb-wrap {
    background: var(--color-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.breadcrumb-wrap .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    margin: 0;
    flex-wrap: wrap;
}
.breadcrumb-wrap .breadcrumb a { color: var(--color-primary); }
.breadcrumb-wrap .breadcrumb a:hover { color: var(--color-btn); }
.breadcrumb-wrap .breadcrumb .sep { color: #ccc; }
.breadcrumb-wrap .breadcrumb .current { color: #888; }

/* ----------------------------------------------------------------
   Blog & News Pages
   ---------------------------------------------------------------- */
.blog-page, .news-page { padding: 80px 0; }
.blog-page__inner, .news-page__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.post__card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    margin-bottom: 32px;
    transition: var(--transition);
}
.post__card:hover { box-shadow: var(--shadow-hover); }
.post__card-img { aspect-ratio: 16/9; overflow: hidden; }
.post__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post__card:hover .post__card-img img { transform: scale(1.05); }
.post__card-body { padding: 24px; }
.post__card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #aaa;
    margin-bottom: 12px;
    font-family: var(--font-sub);
}
.post__card-meta i { color: var(--color-light-blue); }
.post__card-meta .cat-tag {
    background: rgba(31,79,155,0.08);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.post__card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 12px;
    transition: var(--transition);
}
.post__card:hover .post__card-title { color: var(--color-primary); }
.post__card-excerpt { font-size: 14px; color: #888; line-height: 1.8; margin-bottom: 20px; }
.read-more-link {
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.read-more-link:hover { color: var(--color-btn); gap: 10px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar__widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.sidebar__widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-btn);
}
.category__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.category__list li:last-child { border-bottom: none; }
.category__list a { color: var(--color-text); }
.category__list a:hover { color: var(--color-primary); }
.category__list .count {
    background: var(--color-light);
    color: #888;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.recent__post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.recent__post:last-child { border-bottom: none; }
.recent__post img {
    width: 65px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.recent__post .info .title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: var(--transition);
}
.recent__post:hover .info .title { color: var(--color-primary); }
.recent__post .info .date { font-size: 11.5px; color: #aaa; }

/* ----------------------------------------------------------------
   Single Post / Detail Page
   ---------------------------------------------------------------- */
.post-detail { padding: 80px 0; }
.post-detail__inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.post__article { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.post__article-header img { width: 100%; max-height: 400px; object-fit: cover; }
.post__article-body { padding: 36px; }
.post__article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #aaa;
    font-family: var(--font-sub);
}
.post__article-meta i { color: var(--color-light-blue); }
.post__article-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--color-dark);
    margin-bottom: 24px;
    line-height: 1.25;
}
.post__article-content {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--color-text);
}
.post__article-content h2, .post__article-content h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 28px 0 12px;
}
.post__article-content p { margin-bottom: 18px; }
.post__article-content ul, .post__article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.post__article-content ul li { list-style: disc; margin-bottom: 8px; }
.post__article-content ol li { list-style: decimal; margin-bottom: 8px; }
.post__article-content blockquote {
    border-left: 4px solid var(--color-btn);
    padding: 16px 24px;
    background: var(--color-light);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
    color: #666;
}

/* ----------------------------------------------------------------
   Gallery Page
   ---------------------------------------------------------------- */
.gallery-page { padding: 80px 0; }
.gallery-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.gallery-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-page__item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-page__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-page__item:hover img { transform: scale(1.08); }
.gallery-page__item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,79,155,0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}
.gallery-page__item:hover .overlay { opacity: 1; }
.gallery-page__item .overlay i { font-size: 28px; margin-bottom: 8px; }
.gallery-page__item .overlay span { font-size: 13px; }

/* ----------------------------------------------------------------
   Contact Page
   ---------------------------------------------------------------- */
.contact-page { padding: 80px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact__info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.contact__info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact__info-icon {
    width: 48px;
    height: 48px;
    background: rgba(31,79,155,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.contact__info-text .label { font-weight: 700; color: var(--color-dark); font-size: 15px; }
.contact__info-text .value { font-size: 14px; color: #888; margin-top: 2px; }

.contact__form { background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.contact__form h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--color-dark); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-dark);
    transition: var(--transition);
    background: var(--color-light);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,79,155,0.08);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ----------------------------------------------------------------
   Programs Page
   ---------------------------------------------------------------- */
.programs-page { padding: 80px 0; }
.program-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}
.program-detail:last-child { border-bottom: none; }
.program-detail:nth-child(even) { direction: rtl; }
.program-detail:nth-child(even) > * { direction: ltr; }
.program-detail__img {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.program-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.program-detail__badge {
    display: inline-block;
    background: var(--color-btn);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
    font-family: var(--font-sub);
}
.program-detail__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--color-primary);
    margin-bottom: 16px;
}
.program-detail__desc { font-size: 15px; line-height: 1.9; color: var(--color-text); margin-bottom: 24px; }
.program-features { margin-bottom: 24px; }
.program-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.program-features li i { color: var(--color-btn); margin-top: 3px; flex-shrink: 0; }

/* ----------------------------------------------------------------
   Admissions Page
   ---------------------------------------------------------------- */
.admissions-page { padding: 80px 0; }
.admission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.admission__info h3 { font-family: var(--font-heading); font-size: 28px; color: var(--color-primary); margin-bottom: 20px; }
.admission-steps { margin-top: 30px; }
.step__item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.step__number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    flex-shrink: 0;
}
.step__content h5 { font-family: var(--font-heading); font-size: 17px; color: var(--color-primary); margin-bottom: 5px; }
.step__content p { font-size: 13.5px; color: #888; margin: 0; }

.admission__form-wrap { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
footer {
    background: var(--color-footer);
    color: rgba(255,255,255,0.8);
}

.footer__top {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer__brand .logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer__brand .logo-wrap img { height: 48px; }
.footer__brand .logo-wrap .name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
}
.footer__brand p { font-size: 13.5px; line-height: 1.8; margin-bottom: 24px; }

.footer__title {
    font-family: var(--font-heading);
    font-size: 17px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--color-btn);
    border-radius: 2px;
}

.footer__nav li { margin-bottom: 10px; }
.footer__nav a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__nav a::before {
    content: '›';
    color: var(--color-btn);
    font-size: 16px;
}
.footer__nav a:hover { color: var(--color-btn); padding-left: 6px; }

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.footer__contact li i {
    color: var(--color-btn);
    margin-top: 2px;
    width: 16px;
}

.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.footer__social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    transition: var(--transition);
}
.footer__social:hover { background: var(--color-btn); color: #fff; transform: translateY(-3px); }

.footer__bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: var(--color-btn); }

/* Developer credit — do not remove */
.dev-credit {
    background: #0d1f40;
    text-align: center;
    padding: 10px 20px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
    font-family: var(--font-body);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.dev-credit a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1px;
}
.dev-credit a:hover {
    color: var(--color-btn);
    border-bottom-color: var(--color-btn);
}
.footer__ib {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ----------------------------------------------------------------
   Scroll to Top
   ---------------------------------------------------------------- */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-btn);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(250,166,3,0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    border: none;
    z-index: 500;
}
#scroll-top.show { opacity: 1; visibility: visible; }
#scroll-top:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(250,166,3,0.5); }

/* ----------------------------------------------------------------
   Alert / Flash Messages
   ---------------------------------------------------------------- */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ----------------------------------------------------------------
   About Page - Mission/Vision
   ---------------------------------------------------------------- */
.mission-vision {
    background: var(--color-light);
    padding: 60px 0;
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-primary);
    transition: var(--transition);
}
.mv-card:nth-child(2) { border-top-color: var(--color-btn); }
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mv-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(31,79,155,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.mv-card:nth-child(2) .mv-icon { background: rgba(250,166,3,0.08); color: var(--color-btn); }
.mv-card h3 { font-family: var(--font-heading); font-size: 22px; color: var(--color-primary); margin-bottom: 16px; }
.mv-card p { font-size: 15px; line-height: 1.9; color: var(--color-text); margin: 0; }

/* ----------------------------------------------------------------
   Improved Animations
   ---------------------------------------------------------------- */

/* Entrance animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Floating animations for art elements */
@keyframes floatV {
    0%   { transform: translateY(-10px); }
    100% { transform: translateY(10px); }
}
@keyframes floatH {
    0%   { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}
@keyframes floatRotate {
    0%   { transform: translateY(-8px) rotate(-5deg); }
    100% { transform: translateY(8px) rotate(5deg); }
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(250,166,3,0.4); }
    70%  { box-shadow: 0 0 0 16px rgba(250,166,3,0); }
    100% { box-shadow: 0 0 0 0 rgba(250,166,3,0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* AOS-style scroll reveal */
[data-aos] {
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.215,0.61,0.355,1),
                transform 0.65s cubic-bezier(0.215,0.61,0.355,1);
}
[data-aos="fade-up"]    { transform: translateY(35px); }
[data-aos="fade-down"]  { transform: translateY(-35px); }
[data-aos="fade-left"]  { transform: translateX(35px); }
[data-aos="fade-right"] { transform: translateX(-35px); }
[data-aos="zoom-in"]    { transform: scale(0.88); }
[data-aos="fade-in"]    { transform: none; }
[data-aos].aos-animate  { opacity: 1; transform: none !important; }

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }

/* Admission notice pulse on CTA */
.admission-notice {
    display: flex;
    align-items: center;
    animation: fadeInDown 0.4s ease both;
}

/* Hero text elements — JS drives entrance/exit animations */

/* ----------------------------------------------------------------
   Responsive Breakpoints
   ---------------------------------------------------------------- */

/* 1400px — wide screens */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero__content { max-width: 700px; }
}

/* 1200px — large tablets / small desktops */
@media (max-width: 1200px) {
    .programs__grid  { grid-template-columns: repeat(2, 1fr); }
    .faculty__grid   { grid-template-columns: repeat(4, 1fr); }
    .why-us__grid    { grid-template-columns: repeat(2, 1fr); }
    .footer__grid    { grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
    .footer__grid > *:last-child { grid-column: 1 / -1; }
}

/* 1024px — tablets landscape */
@media (max-width: 1024px) {
    .header__nav { gap: 16px; }
    .nav__link { font-size: 12.5px; }
    .header__apply-btn span { display: none; } /* icon only */
    .header__apply-btn { padding: 9px 14px; gap: 0; }
}

/* 992px — tablets / burger menu threshold */
@media (max-width: 992px) {
    .header__nav { display: none; }
    .hamburger   { display: flex; }
    .header__apply-btn span { display: inline; } /* restore text in header cta */
    .header__apply-btn { padding: 9px 18px; gap: 6px; }

    section { padding: 70px 0; }

    .hero__slider, .hero__slide { min-height: 90vh; }
    .hero__content { max-width: 100%; padding: 0 clamp(16px, 5vw, 40px); }

    .hero__stats .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        text-align: center;
    }
    .stat-item { padding: 16px 12px; border-bottom: 1px solid var(--color-border); }
    .stat-item:nth-child(odd)  { border-right: 1px solid var(--color-border); }
    .stat-divider { display: none; }

    .about__grid,
    .ib-section__inner { grid-template-columns: 1fr; gap: 40px; }
    .about__image-badge { right: 0; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer__grid > *:last-child { grid-column: auto; }

    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: 1fr 1fr; }
    .testimonials__grid > *:nth-child(3) { display: none; }
    .testimonials__grid > *:nth-child(2) { margin-top: 0; }

    .blog-page__inner,
    .news-page__inner,
    .post-detail__inner { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }

    .contact__grid,
    .admission__grid { grid-template-columns: 1fr; gap: 36px; }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery__item:nth-child(1) { grid-row: span 1; }
}

/* 768px — mobile landscape */
@media (max-width: 768px) {
    section { padding: 55px 0; }
    .container { padding: 0 16px; }

    .header__inner { height: 64px; }

    .hero__slider, .hero__slide { min-height: 100svh; } /* safe viewport height */
    .hero__title { font-size: clamp(28px, 8vw, 48px); }
    .art-float { display: none; } /* hide floating icons on small screens */

    .hero__stats .container { grid-template-columns: 1fr 1fr; }

    .programs__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .programs__grid .program__card:nth-child(2),
    .programs__grid .program__card:nth-child(4) { margin-top: 0; }

    .faculty__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .faculty__photo { width: 75px; height: 75px; }
    .faculty__name  { font-size: 13px; }
    .faculty__role  { font-size: 10px; }

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

    .why-us__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .distinction__card:nth-child(2),
    .distinction__card:nth-child(4) { margin-top: 0; }

    .gallery-page__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .download__list { grid-template-columns: 1fr; }

    .program-detail { grid-template-columns: 1fr; gap: 30px; }
    .program-detail:nth-child(even) { direction: ltr; }

    .mv-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero__prev, .hero__next { width: 38px; height: 38px; font-size: 14px; }
    .hero__prev { left: 10px; }
    .hero__next { right: 10px; }

    .about__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .about__stat { padding: 12px 8px; }
    .about__stat .num { font-size: 22px; }

    .ib-badge-wrap { flex-direction: column; text-align: center; }

    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: clamp(22px, 6vw, 36px); }

    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__top { padding: 50px 0 36px; }
    #scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 15px; }
}

/* 576px — mobile portrait */
@media (max-width: 576px) {
    section { padding: 48px 0; }

    .header__logo-text .tagline { display: none; }
    .header__apply-btn { padding: 8px 14px; font-size: 12px; }

    .hero__slider, .hero__slide { min-height: 100svh; }
    .hero__slide.active { padding-bottom: 120px; }
    .hero__content { padding: 0 16px; }
    .hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero__actions .btn-school { width: 100%; justify-content: center; }

    .hero__stats .container { grid-template-columns: 1fr 1fr; }
    .stat-item .number { font-size: clamp(20px, 5vw, 28px); }

    .programs__grid { grid-template-columns: 1fr; gap: 16px; }

    .faculty__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .why-us__grid { grid-template-columns: 1fr; gap: 16px; }
    .distinction__card::before { display: none; } /* skip pseudo shadow on mobile */

    .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonials__grid > *:nth-child(2) { margin-top: 0; }
    .testimonials__grid > *:nth-child(3) { display: block; }

    .gallery-page__grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__socials { justify-content: flex-start; }

    .section__heading { font-size: clamp(24px, 7vw, 36px); }
    .section__subheading { font-size: 13px; margin-bottom: 32px; }

    .admission__form-wrap { padding: 24px 18px; }
    .contact__form { padding: 24px 18px; }
    .mv-card { padding: 24px; }

    .news-section__header { flex-direction: column; align-items: flex-start; gap: 16px; }

    .page-hero { padding: 110px 0 48px; }
    .page-hero h1 { font-size: clamp(24px, 7vw, 38px); }

    .cta-section .cta-actions { flex-direction: column; align-items: center; }
    .cta-section .cta-actions .btn-school { width: 100%; max-width: 280px; justify-content: center; }
}

/* 400px — very small phones */
@media (max-width: 400px) {
    .header__inner { padding: 0 12px; }
    .header__logo img { height: 32px; }
    .header__logo-text .name { font-size: 13px; }
    .hero__stats .container { grid-template-columns: 1fr 1fr; }
    .faculty__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-page__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Utility
   ---------------------------------------------------------------- */
.text-center { text-align: center; }
.text-primary-color { color: var(--color-primary); }
.text-btn-color { color: var(--color-btn); }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.admission-notice {
    background: linear-gradient(135deg, var(--color-btn) 0%, #f07f00 100%);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-family: var(--font-sub);
    font-weight: 600;
}
.admission-notice a { color: #fff; text-decoration: underline; }
