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

        :root {
            --primary: #4F50FF;
            --primary-dark: #2F30D7;
            --accent: #00D098;
            --green: #00D098;
            --bg: #F8F9FF;
            --white: #ffffff;
            --dark: #0F0E17;
            --gray: #6B7280;
            --light-gray: #F1F5F9;
            --border: #E2E8F0;
            --radius: 20px;
            --radius-sm: 12px;
            --shadow: 0 20px 60px rgba(79,70,229,0.12);
            --shadow-sm: 0 4px 20px rgba(0,0,0,0.06);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg);
            color: var(--dark);
            overflow-x: hidden;
        }

        /* ── SCROLLBAR ── */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

        /* ── NAVBAR ── */
        nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            padding: 0 60px;
            height: 92px;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(79,70,229,0.1);
            transition: all 0.3s ease;
        }
        nav.scrolled {
            box-shadow: 0 4px 30px rgba(79,70,229,0.15);
        }
        .logo-wrap {
            display: flex; align-items: center; gap: 10px;
            font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
            color: var(--primary); text-decoration: none;
            justify-self: start;
        }
        .logo-wrap .logo-icon {
            width: auto;
            height: auto;
            /* padding: 8px 12px; */
            /* background: #fff; border-radius: 16px; */
            display: inline-flex; align-items: center; justify-content: center;
            /* border: 1px solid rgba(79,80,255,0.18); */
            /* box-shadow: 0 10px 25px rgba(79,80,255,0.12); */
            flex-shrink: 0;
        }
        .logo-wrap .logo-icon img {
            display: block;
            width: auto;
            height: auto;
            max-height: 62px;
            max-width: min(300px, 42vw);
            object-fit: contain;
        }
        .nav-links {
            display: flex; align-items: center; gap: 40px; list-style: none;
            justify-self: center;
        }
        .nav-links a {
            text-decoration: none; color: var(--dark); font-weight: 700; font-size: 16px;
            position: relative; transition: color 0.3s;
        }
        .nav-links a::after {
            content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
            height: 2px; background: var(--primary); transform: scaleX(0);
            transition: transform 0.3s; border-radius: 2px;
        }
        .nav-links a:hover { color: var(--primary); }
        .nav-links a:hover::after { transform: scaleX(1); }
        .btn-contact {
            background: var(--primary); color: #fff !important;
            padding: 10px 24px; border-radius: 50px;
            transition: all 0.3s !important; font-weight: 600 !important;
        }
        .btn-contact::after { display: none !important; }
        .btn-contact:hover { background: var(--primary-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,0.4); }
        .nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; justify-content: center; justify-self: end; flex-shrink: 0; }
        .nav-hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
        .nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
        .nav-phone {
            text-decoration: none;
            font-weight: 800;
            color: var(--dark);
            font-size: 14px;
            padding: 10px 14px;
            border-radius: 999px;
            border: 1px solid rgba(79,80,255,0.14);
            background: rgba(255,255,255,0.65);
            backdrop-filter: blur(10px);
            transition: transform 0.25s ease, border-color 0.25s ease;
        }
        .nav-phone:hover { transform: translateY(-2px); border-color: rgba(79,80,255,0.35); }
        @media (max-width: 1269px) {
            .nav-phone { display: none; }
        }

        /* ── HERO ── */
        .hero {
            min-height: 100vh;
            padding: 100px 60px 60px;
            display: flex; align-items: center;
            background: linear-gradient(135deg, #EEF2FF 0%, #F0FDF4 50%, #F0F9FF 100%);
            position: relative; overflow: hidden;
        }
        .hero-3d-bg {
            position: absolute; inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.6;
        }
        .hero-bg-photo {
            position: absolute; inset: 0;
            background-image: url('https://algorismus-school.uz/IMG/Card1.jpg');
            background-size: cover;
            background-position: center;
            opacity: 0.09;
            filter: blur(0.4px) saturate(1.08);
            mix-blend-mode: multiply;
            z-index: 0;
            pointer-events: none;
        }
        .hero-bg-photo::after{
            content:''; position:absolute; inset:0;
            background: radial-gradient(circle at 20% 20%, rgba(79,80,255,0.12) 0%, transparent 55%),
                        radial-gradient(circle at 80% 40%, rgba(0,208,152,0.11) 0%, transparent 55%),
                        linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.18) 100%);
        }
        .hero::before {
            content: '';
            position: absolute; top: -200px; right: -200px;
            width: 700px; height: 700px;
            background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero::after {
            content: '';
            position: absolute; bottom: -100px; left: -100px;
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-inner {
            max-width: 1400px; width: 100%; margin: 0 auto;
            display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
            position: relative; z-index: 1;
        }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(79,70,229,0.1); color: var(--primary);
            padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
            margin-bottom: 24px; animation: fadeUp 0.6s ease both;
            border: 1px solid rgba(79,70,229,0.2);
        }
        .hero-badge span { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
        .hero h1 {
            font-family: 'Syne', sans-serif; font-size: clamp(42px, 5vw, 68px);
            font-weight: 800; line-height: 1.1;
            animation: fadeUp 0.6s 0.1s ease both;
        }
        .hero h1 .highlight {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .hero-desc {
            margin-top: 20px; font-size: 17px; color: var(--gray); line-height: 1.7;
            max-width: 480px; animation: fadeUp 0.6s 0.2s ease both;
        }
        .hero-actions {
            margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap;
            animation: fadeUp 0.6s 0.3s ease both;
        }
        .btn-primary {
            background: var(--primary); color: #fff; padding: 16px 36px;
            border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px;
            transition: all 0.3s; box-shadow: 0 8px 30px rgba(79,70,229,0.35);
        }
        .btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(79,70,229,0.45); }
        .btn-secondary {
            background: transparent; color: var(--dark); padding: 16px 36px;
            border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px;
            border: 2px solid var(--border); transition: all 0.3s;
        }
        .btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
        .btn-secondary--video {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: #fff !important;
            border: 2px solid transparent;
            box-shadow: 0 8px 28px rgba(220, 38, 38, 0.35);
        }
        .btn-secondary--video:hover {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            border-color: transparent;
            color: #fff !important;
            transform: translateY(-3px);
            box-shadow: 0 14px 36px rgba(220, 38, 38, 0.45);
        }
        .btn-secondary--video i { color: #fff; }

        /* Hero YouTube fullscreen modal */
        .youtube-modal {
            position: fixed;
            inset: 0;
            z-index: 11000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .youtube-modal[hidden] { display: none !important; }
        .youtube-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 14, 23, 0.88);
            backdrop-filter: blur(8px);
        }
        .youtube-modal__dialog {
            position: relative;
            width: min(1160px, 96vw);
            max-height: min(90vh, 900px);
            z-index: 1;
            background: #000;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
        }
        .youtube-modal__close {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            color: var(--dark);
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, background 0.2s;
        }
        .youtube-modal__close:hover {
            background: #fff;
            transform: scale(1.06);
        }
        .youtube-modal__frame-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
        }
        .youtube-modal__iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        .hero-stats {
            display: flex; gap: 32px; margin-top: 48px;
            animation: fadeUp 0.6s 0.4s ease both;
        }
        .stat { text-align: left; }
        .stat-num {
            font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800;
            color: var(--primary);
        }
        .stat-label { font-size: 13px; color: var(--gray); font-weight: 500; }
        .hero-visual {
            position: relative; animation: fadeLeft 0.8s 0.2s ease both;
        }
        .hero-img-wrap {
            position: relative; border-radius: 30px; overflow: hidden;
            background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
            padding: 4px;
        }
        .hero-img-inner {
            border-radius: 26px; overflow: hidden; background: #fff;
            height: 520px; display: flex; align-items: center; justify-content: center;
            position: relative;
        }
        .hero-img-inner img {
            width: 100%; height: 100%; object-fit: cover;
        }
        .hero-float-card {
            position: absolute; background: #fff; border-radius: 16px;
            padding: 14px 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            animation: float 4s ease-in-out infinite;
        }
        .hero-float-card.card1 { top: 40px; left: -30px; }
        .hero-float-card.card2 { bottom: 60px; right: -30px; animation-delay: 1s; }
        .hero-float-card.card3 { top: 50%; left: -40px; animation-delay: 2s; }
        .float-card-label { font-size: 11px; color: var(--gray); font-weight: 500; }
        .float-card-val { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--dark); }
        .float-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

        /* ── SECTION BASE ── */
        section { padding: 100px 60px; }
        .section-inner { max-width: 1400px; margin: 0 auto; }
        .section-tag {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 13px; font-weight: 600; color: var(--primary);
            background: rgba(79,70,229,0.08); padding: 6px 14px; border-radius: 50px;
            margin-bottom: 16px; border: 1px solid rgba(79,70,229,0.15);
        }
        .section-title {
            font-family: 'Syne', sans-serif; font-size: clamp(32px, 4vw, 52px);
            font-weight: 800; line-height: 1.15;
        }
        .section-subtitle { font-size: 17px; color: var(--gray); line-height: 1.7; max-width: 560px; margin-top: 12px; }

        /* ── ADMISSION ── */
        .admission-section { background: #fff; }
        .admission-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 60px;
        }
        .mission-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
        .mission-card {
            background: var(--light-gray); border-radius: var(--radius); padding: 24px;
            transition: all 0.3s; cursor: pointer; border: 2px solid transparent;
            position: relative; overflow: hidden;
        }
        .mission-card::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
            opacity: 0; transition: opacity 0.3s;
        }
        .mission-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
        .mission-card:hover::before { opacity: 0.05; }
        .mission-icon {
            width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), #818CF8);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 18px; margin-bottom: 12px;
        }
        .mission-card h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
        .mission-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
        .admission-img {
            border-radius: 30px; overflow: hidden; position: relative;
            height: 560px; background: linear-gradient(180deg, #EEF2FF, #E0E7FF);
        }
        .admission-img img { width: 100%; height: 100%; object-fit: cover; }
        .admission-img-badge {
            position: absolute; bottom: 30px; left: 30px; right: 30px;
            background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
            border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
        }
        .admission-img-badge h5 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
        .admission-img-badge p { font-size: 13px; color: var(--gray); }
        .progress-bar-wrap { margin-top: 12px; }
        .progress-bar {
            height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
        }
        .progress-bar-inner {
            height: 100%; border-radius: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            animation: progressFill 2s ease 0.5s both;
        }

        /* ── OUR SCHOOL ── */
        .school-section { background: var(--bg); }
        .school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
        .school-card {
            background: #fff; border-radius: var(--radius); overflow: hidden;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: var(--shadow-sm); border: 1px solid var(--border);
        }
        .school-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow); }
        .school-card-img { height: 220px; overflow: hidden; position: relative; }
        .school-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
        .school-card:hover .school-card-img img { transform: scale(1.06); }
        .school-card-img-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(180deg, transparent 50%, rgba(79,70,229,0.6) 100%);
            opacity: 0; transition: opacity 0.3s;
        }
        .school-card:hover .school-card-img-overlay { opacity: 1; }
        .school-card-body { padding: 24px; }
        .school-card-tag { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
        .school-card-body h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
        .school-card-body p { font-size: 14px; color: var(--gray); line-height: 1.65; }
        .school-card-footer {
            padding: 0 24px 24px;
        }
        .btn-card {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--primary); color: #fff; padding: 10px 20px;
            border-radius: 50px; font-size: 13px; font-weight: 600; text-decoration: none;
            transition: all 0.3s;
        }
        .btn-card:hover { background: var(--primary-dark); transform: translateX(4px); }

        /* ── ABOUT: full-width flex row + proportional images (#about) ── */
        .school-about-section .about-cards-carousel {
            display: flex;
            flex-direction: row;
            justify-content: stretch;
            align-items: stretch;
            width: 100%;
            margin-top: 52px;
            padding: 28px 0 48px;
            gap: clamp(16px, 2.2vw, 28px);
            position: relative;
            isolation: isolate;
        }
        .about-carousel-card {
            flex-grow: 1;
            flex-shrink: 1;
            flex-basis: 0;
            min-width: 0;
            width: auto;
            position: relative;
            min-height: clamp(360px, 48vh, 520px);
            border-radius: 22px;
            overflow: hidden;
            background: #17141d;
            box-shadow:
                0 14px 40px rgba(15, 14, 23, 0.18),
                0 8px 28px rgba(79, 70, 229, 0.1);
            cursor: default;
            outline: none;
            transition:
                flex-grow 0.65s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.6s cubic-bezier(0.32, 0.72, 0, 1),
                box-shadow 0.5s ease;
            z-index: 1;
        }
        .about-carousel-card:nth-child(1) { z-index: 1; }
        .about-carousel-card:nth-child(2) { z-index: 2; }
        .about-carousel-card:nth-child(3) { z-index: 3; }
        .about-carousel-card:hover,
        .about-carousel-card:focus-within {
            flex-grow: 1.85;
            transform: translateY(-14px);
            z-index: 8;
            box-shadow:
                0 22px 52px rgba(15, 14, 23, 0.24),
                0 14px 40px rgba(79, 70, 229, 0.2);
        }
        .about-carousel-card:focus-visible {
            outline: 3px solid rgba(79, 80, 255, 0.55);
            outline-offset: 4px;
        }
        .about-carousel-card-media {
            position: absolute;
            inset: 0;
            z-index: 0;
            background: #17141d;
        }
        .about-carousel-card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: left center;
            transform-origin: left center;
            display: block;
            transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .about-carousel-card:hover .about-carousel-card-media img,
        .about-carousel-card:focus-within .about-carousel-card-media img {
            transform: scale(1.07);
        }
        .about-carousel-card-gradient {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(
                185deg,
                rgba(15, 14, 23, 0.15) 0%,
                rgba(15, 14, 23, 0.42) 40%,
                rgba(15, 14, 23, 0.88) 76%,
                rgba(15, 14, 23, 0.95) 100%
            );
        }
        .about-carousel-card-body {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            padding: 18px 20px 22px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .about-carousel-card-kicker {
            display: inline-flex;
            align-self: flex-start;
            align-items: center;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: #fff;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.22);
            padding: 5px 11px;
            border-radius: 999px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .about-carousel-card-title {
            font-family: 'Syne', sans-serif;
            font-size: clamp(15px, 1.65vw, 21px);
            font-weight: 800;
            color: #fff;
            margin: 0;
            line-height: 1.2;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
        }
        .about-carousel-card-text {
            font-size: 13px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.92);
            margin: 0;
            max-width: 42ch;
            text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
            opacity: 0.96;
        }
        .about-carousel-bar {
            position: relative;
            height: 5px;
            width: 100%;
            max-width: 160px;
            margin-top: 10px;
            border-radius: 4px;
            overflow: hidden;
            opacity: 0.85;
        }
        .about-carousel-bar-track {
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.14);
        }
        .about-carousel-bar-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            border-radius: 4px;
            background: linear-gradient(90deg, #5c6d8a 0%, #4a5d7a 38%, #0f766e 72%, #059669 100%);
            transition: width 0.55s cubic-bezier(0.33, 1, 0.68, 1);
        }
        .about-carousel-card:hover .about-carousel-bar-fill,
        .about-carousel-card:focus-within .about-carousel-bar-fill {
            width: 100%;
        }

        /* ── SLIDER SECTION ── */
        .activities-section { background: linear-gradient(135deg, var(--primary) 0%, #6366F1 50%, #818CF8 100%); overflow: hidden; }
        .activities-section .section-tag { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }
        .activities-section .section-title { color: #fff; }
        .activities-section .section-subtitle { color: rgba(255,255,255,0.75); }
        .slider-track-wrap { margin-top: 48px; overflow: hidden; width: calc(100% + 120px); margin-left: -60px; }
        .slider-track {
            display: flex; gap: 20px;
            animation: slideTrack 25s linear infinite;
            width: max-content;
            padding: 10px 60px;
        }
        .slider-track:hover { animation-play-state: paused; }
        .activity-card {
            background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 20px; padding: 24px; min-width: 260px;
            transition: all 0.3s; cursor: pointer; flex-shrink: 0;
        }
        .activity-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
        .activity-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
        .activity-card-icon {
            width: 42px; height: 42px; background: rgba(255,255,255,0.2);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 18px; color: #fff;
        }
        .activity-card-arrow {
            width: 34px; height: 34px; background: rgba(255,255,255,0.15);
            border-radius: 10px; display: flex; align-items: center; justify-content: center;
            color: #fff; transition: all 0.3s;
        }
        .activity-card:hover .activity-card-arrow { background: #fff; color: var(--primary); transform: rotate(-45deg); }
        .activity-card h4 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
        .activity-card p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.55; }

        /* ── GALLERY ── */
        .gallery-section { background: #fff; }
        .gallery-grid--home {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-top: 48px;
        }
        .gallery-grid--home .gallery-item {
            aspect-ratio: 4 / 3;
            min-height: 120px;
        }
        .gallery-page-section { background: var(--bg); }
        .gallery-page-section .pagination-nav { margin-top: 40px; }
        .gallery-grid--page {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 18px;
            margin-top: 40px;
        }
        .gallery-grid--page .gallery-page-cell {
            aspect-ratio: 4 / 3;
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            display: block;
            text-decoration: none;
            color: inherit;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .gallery-grid--page .gallery-page-cell:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }
        .gallery-grid--page .gallery-page-cell:focus-visible {
            outline: 3px solid rgba(0, 208, 152, 0.55);
            outline-offset: 3px;
        }
        .gallery-grid--page .gallery-page-cell img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .gallery-grid--page .gallery-page-cell:hover img { transform: scale(1.06); }
        .gallery-item {
            border-radius: 20px; overflow: hidden; cursor: pointer; position: relative;
            display: block;
            text-decoration: none;
            color: inherit;
        }
        .gallery-item img {
            width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block;
        }
        .gallery-item:hover img { transform: scale(1.06); }
        .gallery-item-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(180deg, transparent 40%, rgba(79,70,229,0.8) 100%);
            opacity: 0; transition: opacity 0.3s;
            display: flex; align-items: flex-end; padding: 20px;
            pointer-events: none;
        }
        .gallery-item:hover .gallery-item-overlay { opacity: 1; }
        .gallery-item-overlay span { color: #fff; font-weight: 600; font-size: 14px; }
        .gallery-cta { text-align: center; margin-top: 40px; }
        .gallery-item:focus-visible { outline: 3px solid rgba(0,208,152,0.6); outline-offset: 4px; }

        /* ── PARTNERS ── */
        .partners-section { background: var(--bg); }
        .partners-track-wrap { margin-top: 48px; overflow: hidden; width: calc(100% + 120px); margin-left: -60px; }
        .partners-track {
            display: flex; gap: 24px; align-items: center;
            animation: slideTrack 20s linear infinite;
            width: max-content; padding: 10px 60px;
        }
        .partners-track:hover { animation-play-state: paused; }
        .partner-chip {
            background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
            padding: 16px 28px; display: flex; align-items: center; gap: 12px;
            transition: all 0.3s; cursor: pointer; white-space: nowrap; flex-shrink: 0;
        }
        .partner-chip:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
        .partner-chip img { height: 32px; width: auto; object-fit: contain; filter: grayscale(1); transition: filter 0.3s; }
        .partner-chip:hover img { filter: none; }

        /* ── YOUTUBE SHORTS (marquee) ── */
        .youtube-shorts-section { background: var(--bg); }
        .youtube-shorts-track-wrap {
            margin-top: 48px;
            overflow: hidden;
            width: calc(100% + 120px);
            margin-left: -60px;
            mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
        }
        .youtube-shorts-track {
            display: flex;
            gap: 20px;
            align-items: center;
            animation: slideTrack 45s linear infinite;
            width: max-content;
            padding: 10px 60px;
        }
        .youtube-shorts-track:hover { animation-play-state: paused; }
        .youtube-shorts-card {
            flex-shrink: 0;
            width: 168px;
            --shorts-scale: 1;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            gap: 10px;
            transform: scale(var(--shorts-scale));
            transform-origin: center center;
            transition: transform 0.45s ease;
            will-change: transform;
        }
        .youtube-shorts-card:hover { transform: scale(var(--shorts-scale)) translateY(-6px); }
        .youtube-shorts-card-frame {
            position: relative;
            aspect-ratio: 9 / 16;
            border-radius: 16px;
            overflow: hidden;
            border: 1.5px solid var(--border);
            background: var(--dark);
            box-shadow: var(--shadow-sm);
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .youtube-shorts-card:hover .youtube-shorts-card-frame {
            border-color: var(--primary);
            box-shadow: 0 16px 40px rgba(79, 70, 229, 0.2);
        }
        .youtube-shorts-card-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease, filter 0.35s ease;
        }
        .youtube-shorts-card:hover .youtube-shorts-card-frame img,
        .youtube-shorts-card:focus-within .youtube-shorts-card-frame img {
            transform: scale(1.04);
            filter: brightness(1.05);
        }
        .youtube-shorts-card-play {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
            pointer-events: none;
            color: #f00;
            opacity: 1;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        .youtube-shorts-card-play svg {
            width: clamp(44px, 32%, 68px);
            height: auto;
            filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
        }
        .youtube-shorts-card:hover .youtube-shorts-card-play,
        .youtube-shorts-card:focus-within .youtube-shorts-card-play,
        .youtube-shorts-card.is-previewing .youtube-shorts-card-play {
            opacity: 0;
            transform: scale(0.92);
        }
        .youtube-shorts-preview-iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            z-index: 1;
            pointer-events: none;
        }
        .youtube-shorts-card-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* YouTube Shorts fullscreen viewer (vertical) */
        .youtube-shorts-modal {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
        }
        .youtube-shorts-modal[hidden] { display: none !important; }
        .youtube-shorts-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(10, 10, 16, 0.9);
            backdrop-filter: blur(10px);
        }
        .youtube-shorts-modal__dialog {
            position: relative;
            z-index: 1;
            width: min(380px, 92vw);
            max-height: min(92vh, 880px);
            background: #000;
            border-radius: 20px;
            overflow: visible;
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
        }
        .youtube-shorts-modal__close {
            position: absolute;
            top: -6px;
            right: -6px;
            z-index: 4;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            color: var(--dark);
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, background 0.2s;
        }
        .youtube-shorts-modal__close:hover {
            background: #fff;
            transform: scale(1.06);
        }
        .youtube-shorts-modal__frame-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 9 / 16;
            border-radius: 20px;
            overflow: hidden;
            background: #111;
            touch-action: pan-y;
        }
        .youtube-shorts-modal__iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        .youtube-shorts-modal__nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 4;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.92);
            color: var(--dark);
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
            transition: transform 0.2s, background 0.2s;
        }
        .youtube-shorts-modal__nav:hover {
            background: #fff;
            transform: translateY(-50%) scale(1.06);
        }
        .youtube-shorts-modal__nav--prev { left: -14px; }
        .youtube-shorts-modal__nav--next { right: -14px; }
        @media (max-width: 520px) {
            .youtube-shorts-modal__nav--prev { left: 6px; }
            .youtube-shorts-modal__nav--next { right: 6px; }
            .youtube-shorts-modal__close { top: 8px; right: 8px; }
        }
        .youtube-shorts-modal__caption {
            margin: 12px 8px 0;
            padding: 0 8px 14px;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            text-align: center;
            line-height: 1.4;
        }
        .youtube-shorts-modal__caption:empty,
        .youtube-shorts-modal__caption[hidden] {
            display: none !important;
        }

        /* ── FAQ ── */
        .faq-section { background: #fff; }
        .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
        .faq-visual {
            position: sticky; top: 100px;
            background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
            border-radius: 30px; padding: 48px; text-align: center;
        }
        .faq-visual-icon { font-size: 72px; margin-bottom: 24px; }
        .faq-visual h3 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 12px; }
        .faq-visual p { font-size: 15px; color: var(--gray); line-height: 1.6; }
        .faq-list { display: flex; flex-direction: column; gap: 12px; }
        .faq-item {
            background: var(--light-gray); border-radius: 16px; overflow: hidden;
            border: 2px solid transparent; transition: border-color 0.3s;
        }
        .faq-item.active { border-color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
        .faq-question {
            padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
            cursor: pointer; user-select: none;
        }
        .faq-question:focus { outline: none; }
        .faq-question:focus-visible {
            outline: 3px solid rgba(79, 70, 229, 0.45);
            outline-offset: 2px;
        }
        .faq-question span { font-weight: 600; font-size: 15px; flex: 1; padding-right: 16px; }
        .faq-toggle {
            width: 32px; height: 32px; border-radius: 10px;
            background: var(--border); display: flex; align-items: center; justify-content: center;
            transition: all 0.3s; color: var(--dark); flex-shrink: 0;
        }
        .faq-item.active .faq-toggle { background: var(--primary); color: #fff; transform: rotate(45deg); }
        .faq-answer {
            max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
        }
        .faq-item.active .faq-answer { max-height: 500px; }
        .faq-answer-inner {
            padding: 0 24px 20px; font-size: 14px; color: var(--gray); line-height: 1.7;
        }
        .faq-answer-inner ol { padding-left: 18px; }
        .faq-answer-inner li { margin-bottom: 8px; }

        /* ── CONTACT ── */
        .contact-section {
            background: var(--bg);
            scroll-margin-top: 100px;
        }
        .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 60px; }
        .contact-form { background: #fff; border-radius: 30px; padding: 48px; box-shadow: var(--shadow); }
        .contact-flash {
            padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.5;
        }
        .contact-flash--success {
            background: rgba(34, 197, 94, 0.12); color: #166534; border: 1px solid rgba(34, 197, 94, 0.35);
        }
        .contact-flash--error {
            background: rgba(239, 68, 68, 0.1); color: #991b1b; border: 1px solid rgba(239, 68, 68, 0.35);
        }
        .contact-flash-list { margin: 0; padding-left: 1.25em; }
        .contact-flash-list li { margin-bottom: 4px; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
        .form-group input,
        .form-group textarea {
            width: 100%; background: var(--light-gray); border: 2px solid transparent;
            border-radius: 12px; padding: 14px 18px; font-size: 15px;
            font-family: 'DM Sans', sans-serif; color: var(--dark);
            transition: all 0.3s; outline: none; resize: none;
        }
        .form-group input:focus,
        .form-group textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.08); }
        .form-group textarea { height: 120px; }
        .btn-submit {
            width: 100%; background: linear-gradient(135deg, var(--primary), #818CF8);
            color: #fff; padding: 16px; border: none; border-radius: 12px;
            font-size: 16px; font-weight: 600; font-family: 'DM Sans', sans-serif;
            cursor: pointer; transition: all 0.3s;
        }
        .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(79,70,229,0.4); }
        .contact-visual { display: flex; flex-direction: column; gap: 24px; }
        .contact-info-card {
            background: #fff; border-radius: 20px; padding: 28px;
            display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow-sm);
            border: 1px solid var(--border); transition: all 0.3s;
        }
        .contact-info-card:hover { transform: translateX(8px); border-color: var(--primary); }
        .contact-icon {
            width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
            background: linear-gradient(135deg, var(--primary), #818CF8);
            display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
        }
        .contact-info-card h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
        .contact-info-card p { font-size: 14px; color: var(--gray); }
        .contact-social { display: flex; gap: 12px; margin-top: 8px; }
        .social-btn {
            width: 40px; height: 40px; border-radius: 10px; background: var(--light-gray);
            display: flex; align-items: center; justify-content: center; color: var(--gray);
            text-decoration: none; transition: all 0.3s; font-size: 16px;
        }
        .social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

        /* ── MAP ── */
        .map-section { padding: 0 60px 100px; }
        .map-inner { max-width: 1400px; margin: 0 auto; }
        .map-wrap { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
        .map-wrap iframe { display: block; }

        /* ── FOOTER ── */
        footer {
            background: var(--dark); color: #fff; padding: 60px 60px 40px;
        }
        .footer-inner { max-width: 1400px; margin: 0 auto; }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
        .footer-brand .logo-wrap { color: #fff; }
        .footer-brand .logo-wrap .logo-icon {
            width: auto;
            height: auto;
            padding: 8px 12px;
            border-radius: 16px;
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .footer-brand .logo-wrap .logo-icon img {
            display: block;
            width: auto;
            height: auto;
            max-height: 60px;
            max-width: min(260px, 70vw);
            object-fit: contain;
        }
        .footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 16px; max-width: 260px; }
        .footer-col h5 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 20px; color: rgba(255,255,255,0.9); }
        .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
        .footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.3s; }
        .footer-col ul a:hover { color: var(--accent); }
        .footer-bottom {
            margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
            display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
        }
        .footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
        .footer-social { display: flex; gap: 10px; }
        .footer-social a {
            width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07);
            display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
            text-decoration: none; transition: all 0.3s;
        }
        .footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

        /* ── ANIMATIONS ── */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeLeft {
            from { opacity: 0; transform: translateX(40px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(0.8); }
        }
        @keyframes slideTrack {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }
        @keyframes progressFill {
            from { width: 0; }
            to { width: 78%; }
        }

        /* ── SCROLL REVEAL ── */
        .reveal {
            opacity: 0; transform: translateY(40px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }
        .reveal.visible { opacity: 1; transform: none; }
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }

        /* ── NEWS (archive + article) ── */
        .news-archive-section .section-title { margin-bottom: 0; }
        .news-page-layout {
            display: grid;
            grid-template-columns: minmax(220px, 280px) 1fr;
            gap: 40px;
            align-items: start;
            margin-top: 48px;
        }
        .news-sidebar {
            background: #fff;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            padding: 24px;
            position: sticky;
            top: 92px;
        }
        .news-sidebar-title {
            font-family: 'Syne', sans-serif;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--dark);
        }
        .news-categories {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .news-categories a {
            display: block;
            padding: 12px 14px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            font-size: 14px;
            border: 1px solid transparent;
            transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
        }
        .news-categories a:hover {
            background: var(--light-gray);
            color: var(--primary);
        }
        .news-categories a.active {
            background: rgba(79, 70, 229, 0.1);
            color: var(--primary);
            border-color: rgba(79, 70, 229, 0.22);
        }
        .news-main .school-grid { margin-top: 0; }
        .news-archive-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
        .news-card-date {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--gray);
            margin-bottom: 8px;
            letter-spacing: 0.02em;
        }
        .news-empty-state {
            text-align: center;
            padding: 64px 28px;
            background: #fff;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .news-empty-state-text {
            font-size: 18px;
            color: var(--gray);
            margin-bottom: 24px;
            line-height: 1.6;
        }
        .pagination-nav { margin-top: 48px; width: 100%; }
        .pagination-theme { width: 100%; }
        .pagination-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        .pagination-stats {
            font-size: 14px;
            color: var(--gray);
            text-align: center;
        }
        .pagination-stats strong { color: var(--dark); font-weight: 700; }
        .pagination-list {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            align-items: center;
        }
        .pagination-item .pagination-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 44px;
            padding: 0 14px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: #fff;
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            font-size: 14px;
            transition: all 0.25s ease;
        }
        .pagination-item .pagination-link:hover {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: var(--shadow-sm);
        }
        .pagination-item.is-active .pagination-link {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            cursor: default;
        }
        .pagination-item.is-disabled .pagination-link {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
        .news-article-section { padding-top: 120px; }
        .news-article-wrap { max-width: 820px; }
        .news-article {
            background: #fff;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            padding: clamp(24px, 4vw, 48px);
            margin-bottom: 40px;
        }
        .news-hero {
            border-radius: 24px;
            overflow: hidden;
            margin-bottom: 32px;
            box-shadow: var(--shadow);
            line-height: 0;
        }
        .news-hero img {
            width: 100%;
            max-height: 420px;
            object-fit: cover;
            display: block;
        }
        .news-article-header { margin-bottom: 28px; }
        .news-article-title { font-size: clamp(28px, 4vw, 40px) !important; margin-top: 12px; }
        .news-article-meta {
            margin-top: 16px;
            font-size: 14px;
            color: var(--gray);
            font-weight: 500;
        }
        .news-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .news-meta-item i { color: var(--primary); }
        .news-prose {
            font-size: 17px;
            line-height: 1.8;
            color: var(--dark);
        }
        .news-prose > *:first-child { margin-top: 0; }
        .news-prose p { margin-bottom: 1.25em; }
        .news-prose h2,
        .news-prose h3,
        .news-prose h4 {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            line-height: 1.25;
            margin-top: 1.5em;
            margin-bottom: 0.65em;
            color: var(--dark);
        }
        .news-prose h2 { font-size: clamp(22px, 3vw, 28px); }
        .news-prose h3 { font-size: clamp(18px, 2.5vw, 22px); }
        .news-prose ul,
        .news-prose ol {
            margin: 0 0 1.25em 1.25em;
            padding-left: 0.5em;
        }
        .news-prose li { margin-bottom: 0.5em; }
        .news-prose a {
            color: var(--primary);
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 3px;
        }
        .news-prose a:hover { color: var(--primary-dark); }
        .news-prose img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-sm);
            margin: 1.5em 0;
            box-shadow: var(--shadow-sm);
        }
        .news-prose video,
        .news-prose .news-embedded-video {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-sm);
            margin: 1.5em 0;
            box-shadow: var(--shadow-sm);
            background: #000;
        }
        .news-prose blockquote {
            margin: 1.5em 0;
            padding: 16px 20px;
            border-left: 4px solid var(--primary);
            background: var(--light-gray);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            font-style: italic;
            color: var(--gray);
        }
        .news-article-footer {
            margin-top: 40px;
            padding-top: 28px;
            border-top: 1px solid var(--border);
        }
        .news-article-back {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .news-article-back i { font-size: 14px; }
        .related-news {
            margin-top: 56px;
            padding-top: 40px;
            border-top: 1px solid var(--border);
        }
        .related-news-title {
            font-size: clamp(26px, 3.2vw, 36px) !important;
            margin-bottom: 28px;
        }
        .related-news .school-grid { margin-top: 0; }

        /* ── MOBILE ── */
        @media (max-width: 1100px) {
            nav { padding: 0 30px; }
            section { padding: 80px 30px; }
            .hero { padding: 100px 30px 60px; }
            .map-section { padding: 0 30px 80px; }
            footer { padding: 60px 30px 40px; }
        }
        @media (max-width: 900px) {
            .hero-inner { grid-template-columns: 1fr; }
            .hero-visual { display: none; }
            .admission-grid { grid-template-columns: 1fr; }
            .school-grid { grid-template-columns: 1fr; }
            .school-about-section .about-cards-carousel {
                flex-direction: column;
                align-items: stretch;
                margin-top: 40px;
                padding: 16px 0 36px;
                gap: 20px;
            }
            .school-about-section .about-carousel-card {
                flex: 0 0 auto;
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100%;
                min-height: clamp(300px, 58vh, 440px);
            }
            .school-about-section .about-carousel-card:hover,
            .school-about-section .about-carousel-card:focus-within {
                flex: 0 0 auto;
                width: 100% !important;
                transform: translateY(-6px);
            }
            .school-about-section .about-carousel-card:hover ~ .about-carousel-card,
            .school-about-section .about-carousel-card:focus-within ~ .about-carousel-card {
                transform: none;
            }
            .faq-grid { grid-template-columns: 1fr; }
            .faq-visual { display: none; }
            .contact-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
            .gallery-grid--home { grid-template-columns: repeat(2, 1fr); }
            .gallery-grid--page { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
            .nav-links { display: none; }
            .nav-hamburger { display: flex; }
            /* backdrop-filter fixed ichidagi menyuni tor “containing block” ga qisqartirishi mumkin */
            nav {
                grid-template-columns: 1fr auto;
                backdrop-filter: none;
                background: rgba(255, 255, 255, 0.97);
            }
            .nav-actions { display: flex; align-items: center; gap: 14px; }
            .nav-hamburger {
                flex-direction: column;
                justify-content: center;
                gap: 6px;
                padding: 8px;
                margin: 0;
            }
            .nav-hamburger span { width: 30px; height: 3px; border-radius: 2px; }
            .nav-hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
            .nav-hamburger.active span:nth-child(2) { opacity: 0; }
            .nav-hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
            ul.nav-links.active {
                display: flex !important;
                flex-direction: column;
                position: fixed;
                top: 92px;
                left: 0;
                width: 100vw;
                max-width: 100vw;
                right: 0;
                bottom: 0;
                min-height: calc(100vh - 92px);
                box-sizing: border-box;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(16px);
                padding: 28px 24px max(48px, env(safe-area-inset-bottom));
                gap: 0;
                z-index: 999;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
            }
            ul.nav-links.active li {
                border-bottom: 1px solid var(--border);
            }
            ul.nav-links.active li a {
                display: block;
                padding: 20px 12px;
                font-size: clamp(18px, 4.2vw, 22px);
                font-weight: 700;
                line-height: 1.35;
            }
            ul.nav-links.active li a::after { display: none; }
            /* .logo-wrap .logo-icon { padding: 6px 10px; } */
            .logo-wrap .logo-icon img {
                max-height: 56px;
                max-width: min(220px, 55vw);
            }
            .news-page-layout { grid-template-columns: 1fr; gap: 28px; }
            .news-sidebar { position: static; }
            .news-archive-grid { grid-template-columns: 1fr !important; }
            .pagination-inner { align-items: stretch; }
        }
        @media (max-width: 600px) {
            .hero-stats { gap: 20px; }
            .mission-cards { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .hero-actions { flex-direction: column; }
        }
    
