/* ==========================================================
   PROVATI SAHITYA SANSKRITIK SANGSAD
   Unified Global Stylesheet — v4.2
   Design system: Green × Orange on cream
   Changelog v4.2:
     • Added `body.nav-open .site-header { backdrop-filter: none }`
       so that when the mobile drawer or lightbox is open, the
       fixed-position drawer + backdrop resolve against the
       viewport rather than the header's box — keeps them
       anchored correctly even when the page is scrolled.
   ========================================================== */

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
    --primary:        #1E4D3B;
    --primary-light:  #2D6E55;
    --primary-soft:   #EAF2EE;

    --accent:         #E65127;
    --accent-light:   #F3734C;
    --accent-soft:    #FDF0EB;

    --brand-orange:   #ff6a07;

    --dark:           #111827;
    --dark-light:     #1F2937;

    --surface:        #FFFFFF;
    --background:     #FDFBF7;
    --background-alt: #F6F1E8;

    --text-primary:   #1F2937;
    --text-muted:     #6B7280;
    --border:         #E5E7EB;

    --text:  var(--text-primary);
    --muted: var(--text-muted);

    --radius-sm:   10px;
    --radius:      16px;
    --radius-lg:   24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(17,24,39,.06);
    --shadow-md: 0 6px 20px #e6502762;
    --shadow-lg: 0 18px 45px rgba(17,24,39,.12);
    --shadow-xl: 0 28px 60px rgba(17,24,39,.16);

    --ease-out:   cubic-bezier(.22,.9,.35,1);
    --transition: all .35s var(--ease-out);
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip; /* hard stop for horizontal scroll drift */
}

body {
    font-family: 'Hind Siliguri', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(900px 520px at 10% -8%, rgba(30,77,59,.045), transparent 60%),
        radial-gradient(820px 480px at 92% 6%, rgba(255,106,7,.035), transparent 62%);
}

main, section { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

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

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--background-alt); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand-orange), var(--accent));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================
   3. LAYOUT PRIMITIVES
   ========================================================== */
.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { position: relative; padding: 55px 0; }
.section-padding--ruled { border-bottom: 3px solid var(--brand-orange); }

.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 14px;
    letter-spacing: -.2px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
}
.section-title p {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}
.section-title--invert h2 { color: #fff; }
.section-title--invert p  { color: rgba(255,255,255,.82); }

/* ==========================================================
   4. REVEAL SYSTEM (single source of truth)
   ========================================================== */
.reveal {
    opacity: 0;
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(.94); }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal--slow { transition-duration: 1s; }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }
.delay-3 { transition-delay: .30s; }

@media (max-width: 768px) {
    .reveal-left,
    .reveal-right { transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================
   5. BUTTONS
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 6px 18px rgba(30,77,59,.28);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30,77,59,.38);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.btn--accent {
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,106,7,.35);
}
.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255,106,7,.48);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 22px;
}
.btn--outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn--youtube { background: #ff0000; color: #fff; }
.btn--youtube:hover { background: #cc0000; transform: translateY(-2px); }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--lg { padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ==========================================================
   6. CARD BASE
   ========================================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--background-alt);
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.card-desc  { color: var(--text-muted); line-height: 1.7; font-size: .95rem; flex-grow: 1; }
.card-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: .5rem; }

/* ==========================================================
   7. SECTION CARDS (constitution / setups)
   ========================================================== */
.constitution-clause {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.8rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    font-family: 'Anek Bangla', 'Hind Siliguri', sans-serif;
    line-height: 1.7;
    transition: var(--transition);
    overflow: hidden;
}
.constitution-clause::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--brand-orange));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ease-out);
}
.constitution-clause:hover::before { transform: scaleY(1); }
.constitution-clause:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.constitution-clause strong {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-block;
    transition: color .3s;
}
.constitution-clause:hover strong { color: var(--brand-orange); }
.constitution-clause img { vertical-align: middle; transition: transform .3s; }
.constitution-clause:hover img { transform: scale(1.05); }

/* ==========================================================
   8. HEADER
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253,251,247,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--brand-orange);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(253,251,247,.97);
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    min-height: 76px;
}
.logo { display: flex; align-items: center; animation: fadeInRight 1.5s ease-in; }
.logo-img { height: 50px; margin-right: 5px; transition: var(--transition); }
.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #116031;
    margin-left: 8px;
}
.provati {
    color: var(--brand-orange);
    font-size: 25px;
    font-family: 'Mina', sans-serif;
    margin-bottom: -25px;
}
.extra { margin-top: -35px; font-size: 15px; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Desktop nav */
.nav-desktop-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}
.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-desktop > li { position: relative; }
.nav-desktop > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-desktop > li > a i {
    font-size: .82rem;
    color: var(--primary);
    transition: var(--transition);
}
.nav-desktop > li > a::after {
    content: '';
    position: absolute;
    left: 13px; right: 13px; bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
}
.nav-desktop > li > a:hover,
.nav-desktop > li > a.active {
    color: var(--primary);
    background: var(--primary-soft);
}
.nav-desktop > li > a:hover::after,
.nav-desktop > li > a.active::after { transform: scaleX(1); }

.nav-desktop li ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 236px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}
.nav-desktop li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-desktop li ul a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.nav-desktop li ul a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 20px;
}

/* Admission button (desktop) */
.admission-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 6px 18px rgba(30,77,59,.28);
    transition: var(--transition);
    white-space: nowrap;
}
.admission-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30,77,59,.38);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    color: var(--dark);
    background: var(--background-alt);
    transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--primary-soft); color: var(--primary); }

/* ── Mobile drawer ──
   Exact 100% off-screen + visibility hidden + pointer-events none
   when closed. Eliminates the swipe-to-reveal bug. */
.nav-mobile {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 84px 20px 34px;
    background: var(--surface);
    box-shadow: -20px 0 50px rgba(17,24,39,.18);

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;

    transition:
        transform .42s var(--ease-out),
        visibility 0s linear .42s;

    z-index: 1100;
    overflow-y: auto;
}
.nav-mobile.is-open,
.nav-mobile.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        transform .42s var(--ease-out),
        visibility 0s linear 0s;
}

.nav-mobile .close-menu {
    position: absolute;
    top: 18px; right: 18px;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--dark);
    background: var(--background-alt);
    transition: var(--transition);
}
.nav-mobile .close-menu:hover { background: var(--primary); color: #fff; }

.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.nav-mobile a i { width: 20px; text-align: center; font-size: .9rem; color: var(--primary); }
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--primary-soft); color: var(--primary); }
.nav-mobile a.active { font-weight: 600; }

.nav-mobile ul li ul {
    display: none;
    margin: 2px 0 6px 18px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}
.nav-mobile li.is-open > ul,
.nav-mobile li.dropdown-open > ul { display: flex; }
.nav-mobile ul li ul a {
    font-size: .86rem;
    padding: 9px 12px;
    color: var(--text-muted);
}

.mobile-admission-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 22px rgba(30,77,59,.28);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1050;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ── v4.2: While drawer/lightbox is open, drop the header's
   backdrop-filter so its fixed-position descendants (.nav-mobile,
   .nav-backdrop) resolve against the viewport rather than the
   header's box. Keeps the drawer pinned to top-right no matter
   how far the page is scrolled. ── */
body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================
   9. PAGE HERO + WAVES
   ========================================================== */
.page-header {
    position: relative;
    padding: 110px 0 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(600px 320px at 82% 12%, rgba(255,106,7,.22), transparent 62%),
        radial-gradient(520px 300px at 8% 88%, rgba(255,255,255,.08), transparent 62%),
        linear-gradient(135deg, rgba(17,24,39,.92) 0%, rgba(30,77,59,.88) 100%),
        var(--hero-image, url('https://i.ibb.co.com/tPvSSLMH/img-about.jpg')) center / cover no-repeat;
    border-bottom: 3px solid var(--brand-orange);
}
.page-header .container { position: relative; z-index: 3; padding-bottom: 20px; }
.page-header h1 {
    font-family: 'Atma', sans-serif;
    font-size: clamp(2.6rem, 6.2vw, 4rem);
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 18px;
    text-shadow: 0 6px 28px rgba(0,0,0,.35);
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .88rem;
    list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li a { color: #ffc79a; font-weight: 500; transition: var(--transition); }
.breadcrumb li a:hover { color: #fff; }
.breadcrumb li:not(:last-child)::after {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
}
.breadcrumb li:last-child { color: rgba(255,255,255,.92); }

.wave-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 190px;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
    overflow: hidden;
}
.wave-overlay svg { display: block; width: 100%; height: 100%; }
.wave-layer { fill: #FFFFFF; will-change: transform; }
.wave-layer-1 { opacity: .08; animation: waveFloatUp 8s ease-in-out infinite; }
.wave-layer-2 { opacity: .16; animation: waveFloatDown 10s ease-in-out infinite; animation-delay: -2.5s; }
.wave-layer-3 { opacity: .24; animation: waveFloatUp 11.5s ease-in-out infinite; animation-delay: -5s; }
.wave-layer-4 { opacity: .34; animation: waveFloatDown 9s ease-in-out infinite; animation-delay: -3.5s; }

@keyframes waveFloatUp   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes waveFloatDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) { .wave-layer { animation: none !important; } }

/* ==========================================================
   10. ABOUT INTRO
   ========================================================== */
.about-intro {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 64px;
}
.about-img {
    position: relative;
    display: block;
    border: 3px solid var(--brand-orange);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.about-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.about-img:hover img { transform: scale(1.03); }
.about-content { display: flex; flex-direction: column; gap: 22px; }
.about-content p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--text);
    text-align: justify;
}
.about-content p:first-child {
    position: relative;
    padding: 14px 16px 14px 22px;
    border-left: 4px solid var(--brand-orange);
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,106,7,.09), transparent 72%);
}
.highlight { color: var(--primary); font-weight: 700; }

/* ==========================================================
   11. MISSION / VISION CARDS
   ========================================================== */
.mission-vision {
    background: linear-gradient(180deg, transparent 0%, var(--background-alt) 16%, var(--background-alt) 84%, transparent 100%);
}
.grid { display: grid; gap: 30px; }
.grid--auto-300 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--auto-250 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mv-card {
    position: relative;
    padding: 42px 32px 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    overflow: hidden;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.mv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease-out);
}
.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.mv-card:hover::before { transform: scaleX(1); }
.mv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px; height: 74px;
    margin-bottom: 24px;
    border-radius: 22px;
    font-size: 1.9rem;
    color: var(--primary);
    background: var(--primary-soft);
    transition: transform .45s var(--ease-out), background .45s var(--ease-out), color .45s var(--ease-out);
}
.mv-card:hover .mv-icon {
    transform: translateY(-4px) rotate(-6deg) scale(1.06);
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    color: #fff;
}
.mv-card h3 { font-size: 1.32rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.mv-card p  { font-size: .98rem; line-height: 1.85; color: var(--text-muted); }

/* ==========================================================
   12. ACTIVITY CARDS
   ========================================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.activity-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.activity-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.activity-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.activity-card:hover .activity-img img { transform: scale(1.08); }
.activity-date {
    position: absolute;
    top: 1rem; left: 1rem;
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    color: #fff;
    padding: .4rem 1rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 600;
}
.activity-content { padding: 1.5rem; }
.activity-title { font-size: 1.3rem; margin-bottom: 1rem; color: var(--dark); }
.activity-meta {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: var(--text-muted);
}
.activity-meta i { color: var(--primary); margin-right: .5rem; }
.activity-desc { margin-bottom: 1.5rem; color: var(--text-muted); line-height: 1.7; }
.activity-desc i { color: var(--primary); margin-right: .5rem; }

/* Karjokrom (shared: index + activities) */
.karjokrom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.karjokrom-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.karjokrom-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--brand-orange));
    transition: width .3s var(--ease-out);
}
.karjokrom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.karjokrom-card:hover::before { width: 8px; }
.karjokrom-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}
.karjokrom-card:hover .karjokrom-icon {
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}
.karjokrom-content h4 { color: var(--dark); margin-bottom: .2rem; font-size: 1.05rem; transition: color .3s; }
.karjokrom-card:hover .karjokrom-content h4 { color: var(--primary); }
.karjokrom-content p { color: var(--text-muted); font-size: .88rem; }

/* Stacked variant (activities page) */
.karjokrom-card--stacked {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: .75rem;
}
.karjokrom-card--stacked .karjokrom-icon {
    width: 68px; height: 68px;
    font-size: 1.8rem;
    border-radius: var(--radius);
}

/* ==========================================================
   13. GALLERY GRID (index + activities)
   ========================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .4s var(--ease-out);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(.6);
    transition: transform .4s var(--ease-out);
}
.gallery-item:hover .gallery-icon { transform: scale(1); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff;
    padding: 1.2rem 1rem .8rem;
    text-align: center;
    font-size: .95rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform .4s var(--ease-out);
    pointer-events: none;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ==========================================================
   14. CONTACT PAGE
   ========================================================== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.contact-intro { margin-bottom: 2rem; }
.contact-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}
.contact-intro h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
}
.contact-intro p { margin-bottom: 1rem; display: flex; align-items: center; }
.contact-intro span { margin-left: 10px; }
.contact-intro i { color: var(--primary); width: 20px; text-align: center; font-size: 1.15rem; }
.contact-intro a { transition: var(--transition); }
.contact-intro a:hover { color: var(--primary); }

.business-hours {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}
.business-hours h4 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--dark); }
.business-hours .day { font-weight: 600; }

.contact-form {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-orange);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,77,59,.12);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.required::after { content: " *"; color: var(--accent); }
.form-submit { text-align: center; margin-top: 1.5rem; }

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}
.form-message.success { background: #d4edda; color: #155724; display: block; }
.form-message.error   { background: #f8d7da; color: #721c24; display: block; }

.map-section { padding: 3rem 0; }
.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* FAQ */
.faq-item {
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}
.faq-question:hover { background: var(--primary-soft); }
.faq-question i { transition: transform .3s var(--ease-out); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease-out), padding .3s;
    background: var(--background);
    color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 600px; padding: 1.4rem 1.5rem; }

/* ==========================================================
   15. VIDEO / PLAYLIST PAGE
   ========================================================== */
.featured-video { margin-bottom: 4rem; }
.video-container {
    position: relative;
    width: 100%; height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-info { text-align: center; }
.video-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: .5rem; }
.video-info p { color: var(--text-muted); max-width: 70%; margin: 0 auto; }

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.playlist-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.playlist-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.playlist-thumbnail { position: relative; height: 180px; overflow: hidden; }
.playlist-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.playlist-card:hover .playlist-thumbnail img { transform: scale(1.08); }
.play-play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,.92);
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s var(--ease-out);
}
.playlist-card:hover .play-play-icon { opacity: 1; }
.play-play-icon i { color: var(--primary); font-size: 1.3rem; margin-left: 3px; }
.playlist-content { padding: 1.2rem; }
.playlist-content h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: .5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.playlist-content p {
    color: var(--text-muted);
    font-size: .85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
}
.playlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .7rem;
    color: var(--text-muted);
    font-size: .8rem;
}

.channel-info {
    background:
        radial-gradient(600px 300px at 20% 30%, rgba(30,77,59,.55), transparent 60%),
        radial-gradient(600px 300px at 85% 70%, rgba(255,106,7,.15), transparent 60%),
        var(--dark);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.channel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
    justify-items: center;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--brand-orange); margin-bottom: .3rem; }
.stat-label { font-size: .9rem; opacity: .82; }

/* ==========================================================
   16. VIDEO MODAL
   ========================================================== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.video-modal.active { display: flex; }
.modal-content { width: 90%; max-width: 900px; position: relative; }
.close-modal {
    position: absolute;
    top: -50px; right: 0;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.close-modal:hover { transform: rotate(90deg); }
.modal-video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.modal-video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: var(--radius);
}

/* ==========================================================
   17. LIGHTBOX (unified)
   ========================================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s var(--ease-out);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    background: #1a1a1a;
    display: block;
}
.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    background: rgba(255,255,255,.10);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
    max-width: 640px;
}
.lightbox-caption .meta-desc { font-size: .88rem; color: rgba(255,255,255,.75); margin-top: 4px; }
.lightbox-title { font-size: 1.15rem; font-weight: 700; }
.lightbox-desc  { font-size: .9rem; color: rgba(255,255,255,.85); }
.lightbox-date  { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 4px; }

.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    background: rgba(255,255,255,.10);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.10);
    border: none;
    color: #fff;
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav button:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-50%) scale(1.05);
}
.lightbox-nav .prev { left: 25px; }
.lightbox-nav .next { right: 25px; }

.lightbox--compact .lightbox-content {
    max-width: 500px;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}
.lightbox--compact .lightbox-image {
    max-height: 55vh;
    width: 100%;
    border-radius: 0;
    background: #1a1a1a;
}
.lightbox--compact .lightbox-close {
    top: 12px; right: 12px;
    background: rgba(0,0,0,.5);
}
.lightbox--compact .lightbox-caption {
    margin: 0;
    background: #fff;
    color: var(--dark);
    padding: 16px;
    border-radius: 0;
    backdrop-filter: none;
    max-width: 100%;
    width: 100%;
}
.lightbox--compact .lightbox-caption .lightbox-title { color: var(--dark); }
.lightbox--compact .lightbox-caption .lightbox-desc  { color: var(--text-muted); }
.lightbox--compact .lightbox-caption .lightbox-date  { color: var(--text-muted); }

/* ==========================================================
   18. LOADING / ERROR / EMPTY
   ========================================================== */
.loading-spinner {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--primary);
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    grid-column: 1 / -1;
}
.loading-spinner i { font-size: 2.2rem; animation: spin 1s linear infinite; }

.btn-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-message {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--accent);
    font-size: 1rem;
    grid-column: 1 / -1;
}
.no-data {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* ==========================================================
   19. FOOTER
   ========================================================== */
.site-footer {
    position: relative;
    padding: 72px 0 0;
    margin-top: auto;
    color: rgba(255,255,255,.78);
    background:
        radial-gradient(700px 380px at 12% 0%, rgba(30,77,59,.45), transparent 62%),
        radial-gradient(600px 340px at 90% 10%, rgba(255,106,7,.14), transparent 62%),
        radial-gradient(700px 380px at 65% 95%, rgba(30,77,59,.45), transparent 62%),
        radial-gradient(600px 340px at 35% 95%, rgba(255,106,7,.14), transparent 62%),
        var(--dark);
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange), var(--primary));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 1.2fr;
    gap: 48px;
    padding-bottom: 54px;
}
.footer-about,
.footer-links,
.footer-contact {
    opacity: 0;
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.footer-about   { transform: translateX(-70px); }
.footer-links   { transform: translateY(60px); }
.footer-contact { transform: translateX(70px); }
.footer-about.is-visible,
.footer-links.is-visible,
.footer-contact.is-visible { opacity: 1; transform: translate(0, 0); }

@media (max-width: 768px) {
    .footer-about,
    .footer-links,
    .footer-contact { transform: translateY(60px); }
}

.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { height: 50px; width: auto; }
.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.35; }
.footer-about p {
    font-size: .85rem;
    font-style: italic;
    color: rgba(255,255,255,.68);
    margin-bottom: 22px;
    max-width: 340px;
    text-align: right;
    margin-top: -15px;
}
.social-links { display: flex; gap: 10px; justify-content: center; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    transition: var(--transition);
}
.social-links a:hover {
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(255,106,7,.45);
}
.footer-links h3,
.footer-contact h3 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}
.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
}
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
}
.quick-links a {
    display: inline-block;
    padding: 6px 0;
    font-size: .92rem;
    color: rgba(255,255,255,.72);
    transition: var(--transition);
}
.quick-links a:hover { color: #ffb787; transform: translateX(4px); }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .92rem;
    color: rgba(255,255,255,.72);
}
.footer-contact i {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: .82rem;
    color: #f8f7f7;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.footer-contact a { transition: var(--transition); }
.footer-contact a:hover { color: #ffb787; }

.copyright {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}

/* ==========================================================
   20. BACK TO TOP
   ========================================================== */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange), var(--accent));
    box-shadow: 0 10px 26px rgba(255,106,7,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 900;
}
.back-to-top.is-visible,
.back-to-top.visible,
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(255,106,7,.5);
}

/* ==========================================================
   21. GLOBAL RESPONSIVE
   (family-specific rules live in style1/2/3.css)
   ========================================================== */
@media (max-width: 1080px) {
    .nav-desktop > li > a { padding: 10px 10px; font-size: .86rem; }
    .nav-desktop > li > a i { display: none; }
}

@media (max-width: 992px) {
    .nav-desktop,
    .admission-btn { display: none; }
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }

    .about-intro { grid-template-columns: 1fr; gap: 42px; }
    .about-img { max-width: 560px; margin: 0 auto; width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-about { grid-column: 1 / -1; }
    .quick-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-padding { padding: 40px 0; }
    .container { padding: 0 18px; }

    .page-header { padding: 84px 0 0; }
    .page-header .container { padding-bottom: 10px; }
    .page-header h1 { font-size: 2.4rem; }
    .breadcrumb { padding: 8px 16px; font-size: .8rem; }
    .wave-overlay { height: 120px; }

    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 1.3rem; }

    .about-img img { height: 260px; }
    .about-content p { font-size: 1rem; text-align: left; }

    .grid--auto-300,
    .grid--2,
    .grid--3 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .quick-links { grid-template-columns: repeat(2, 1fr); }

    .back-to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }

    .logo-img { height: 44px; margin-right: 4px; }
    .logo-text { font-size: 1.15rem; margin-left: 5px; }
    .provati { margin-bottom: 0; font-size: 21px; }
    .extra { font-size: 12px; }

    .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 2rem; }
    .wave-overlay { height: 90px; }
    .about-img img { height: 210px; }
    .mv-icon { width: 64px; height: 64px; font-size: 1.6rem; }
    .quick-links { grid-template-columns: 1fr 1fr; gap: 4px 12px; }

    .logo-img { height: 40px; }
    .logo-text { font-size: 1rem; }
    .provati { font-size: 19px; }
    .extra { font-size: 11px; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .gallery-item { height: 160px; }

    .copyright { font-size: 0.75rem; }
}