/* ============================================================
   SchoolMS — Public Website Styles
   Used by all public-facing school website pages.
   Uses --pub-primary defined per school in each page's <style>.
   ============================================================ */

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

:root {
    --pub-primary:   #2563eb;
    --pub-dark:      #0f172a;
    --pub-text:      #1e293b;
    --pub-muted:     #64748b;
    --pub-border:    #e2e8f0;
    --pub-bg:        #f8fafc;
    --pub-white:     #ffffff;
    --pub-radius:    12px;
    --pub-shadow:    0 4px 24px rgba(0,0,0,.08);
    --pub-shadow-lg: 0 12px 48px rgba(0,0,0,.14);
    --pub-nav-h:     70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--pub-text);
    background: var(--pub-white);
    line-height: 1.6;
}

a { color: var(--pub-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--pub-dark); margin-bottom: 8px; }
.section-sub { font-size: 1rem; color: var(--pub-muted); margin-bottom: 48px; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Navbar ───────────────────────────────────────────────── */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: var(--pub-nav-h);
}
.pub-nav-inner {
    height: var(--pub-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pub-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}
.pub-nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    padding: 4px;
}
.pub-nav-school-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pub-dark);
    line-height: 1.2;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pub-nav-board {
    font-size: .72rem;
    color: var(--pub-muted);
    font-weight: 500;
}
.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.pub-nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--pub-muted);
    transition: all .15s;
    text-decoration: none;
}
.pub-nav-links a:hover,
.pub-nav-links a.active {
    background: color-mix(in srgb, var(--pub-primary) 10%, transparent);
    color: var(--pub-primary);
}
.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-nav-login {
    padding: 8px 20px;
    background: var(--pub-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    transition: opacity .15s;
    text-decoration: none;
}
.btn-nav-login:hover { opacity: .9; text-decoration: none; }
.btn-nav-outline {
    padding: 8px 18px;
    border: 1.5px solid var(--pub-primary);
    color: var(--pub-primary) !important;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    transition: all .15s;
    text-decoration: none;
}
.btn-nav-outline:hover {
    background: var(--pub-primary);
    color: #fff !important;
    text-decoration: none;
}
.pub-nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--pub-text);
}
.pub-mobile-menu {
    display: none;
    position: absolute;
    top: var(--pub-nav-h);
    left: 0;
    right: 0;
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    padding: 12px 24px 20px;
    box-shadow: var(--pub-shadow);
    z-index: 999;
}
.pub-mobile-menu.open { display: block; }
.pub-mobile-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--pub-border);
    color: var(--pub-text);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
}
.pub-mobile-menu a:last-child { border-bottom: none; }
.pub-mobile-menu a.active { color: var(--pub-primary); }

/* ── Hero ─────────────────────────────────────────────────── */
.pub-hero {
    background: linear-gradient(135deg, var(--pub-primary) 0%, color-mix(in srgb, var(--pub-primary) 55%, #0f172a) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.pub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pub-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.pub-hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.3);
    object-fit: contain;
    padding: 12px;
    flex-shrink: 0;
}
.pub-hero-content { flex: 1; min-width: 280px; }
.pub-hero-content h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.pub-hero-content p { font-size: 1rem; opacity: .85; margin-bottom: 24px; max-width: 560px; }
.pub-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pub-chip {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: .82rem;
    font-weight: 500;
}
.pub-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    padding: 12px 28px;
    background: #fff;
    color: var(--pub-primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); text-decoration: none; }
.btn-hero-outline {
    padding: 12px 28px;
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ── Stats bar ────────────────────────────────────────────── */
.pub-stats {
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    padding: 24px 0;
    box-shadow: var(--pub-shadow);
}
.pub-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    text-align: center;
}
.pub-stat {
    padding: 12px 16px;
    border-right: 1px solid var(--pub-border);
}
.pub-stat:last-child { border-right: none; }
.pub-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pub-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.pub-stat-label { font-size: .78rem; color: var(--pub-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* ── Cards ────────────────────────────────────────────────── */
.pub-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    overflow: hidden;
}
.pub-card-body { padding: 24px; }

/* ── Info rows ────────────────────────────────────────────── */
.pub-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pub-bg);
}
.pub-info-row:last-child { border-bottom: none; }
.pub-info-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--pub-primary) 10%, transparent);
    color: var(--pub-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pub-info-label { font-size: .75rem; color: var(--pub-muted); font-weight: 500; margin-bottom: 2px; }
.pub-info-value { font-size: .92rem; color: var(--pub-text); font-weight: 600; }

/* ── Notices ticker ───────────────────────────────────────── */
.pub-notice-bar {
    background: color-mix(in srgb, var(--pub-primary) 8%, transparent);
    border-top: 2px solid var(--pub-primary);
    border-bottom: 2px solid var(--pub-primary);
    padding: 10px 0;
    overflow: hidden;
}
.pub-notice-bar-label {
    background: var(--pub-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 0 20px 20px 0;
    white-space: nowrap;
    margin-right: 16px;
    flex-shrink: 0;
}
.pub-notice-bar-inner { display: flex; align-items: center; }
.pub-notice-ticker { overflow: hidden; flex: 1; }
.pub-notice-ticker-track {
    display: flex;
    gap: 48px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}
.pub-notice-ticker-track:hover { animation-play-state: paused; }
.pub-notice-ticker-item { font-size: .85rem; color: var(--pub-text); font-weight: 500; white-space: nowrap; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── About section ────────────────────────────────────────── */
.pub-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.pub-about-img {
    border-radius: 20px;
    overflow: hidden;
    height: 360px;
    background: linear-gradient(135deg, var(--pub-primary), color-mix(in srgb, var(--pub-primary) 50%, #0f172a));
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-about-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-about-text h2 { font-size: 1.9rem; font-weight: 800; color: var(--pub-dark); margin-bottom: 12px; }
.pub-about-text p { color: var(--pub-muted); line-height: 1.8; margin-bottom: 24px; }
.pub-about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-tag {
    background: color-mix(in srgb, var(--pub-primary) 10%, transparent);
    color: var(--pub-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
}

/* ── Facilities grid ──────────────────────────────────────── */
.pub-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.pub-facility-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}
.pub-facility-card:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow-lg); }
.pub-facility-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--pub-primary) 12%, transparent);
    color: var(--pub-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.pub-facility-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--pub-dark); }
.pub-facility-card p { font-size: .88rem; color: var(--pub-muted); line-height: 1.7; }

/* ── Gallery ──────────────────────────────────────────────── */
.pub-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.pub-filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--pub-border);
    background: var(--pub-white);
    color: var(--pub-muted);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.pub-filter-btn:hover,
.pub-filter-btn.active {
    background: var(--pub-primary);
    border-color: var(--pub-primary);
    color: #fff;
}
.pub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.pub-gallery-item {
    border-radius: var(--pub-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    background: var(--pub-bg);
}
.pub-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.pub-gallery-item:hover img { transform: scale(1.05); }
.pub-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    opacity: 0;
    transition: opacity .25s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.pub-gallery-item:hover .pub-gallery-overlay { opacity: 1; }
.pub-gallery-caption { color: #fff; font-size: .85rem; font-weight: 600; }
.pub-gallery-empty {
    text-align: center;
    padding: 60px;
    color: var(--pub-muted);
    background: var(--pub-bg);
    border-radius: var(--pub-radius);
    border: 2px dashed var(--pub-border);
}

/* Lightbox */
.pub-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pub-lightbox.open { display: flex; }
.pub-lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.pub-lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255,255,255,.15);
    border: none; cursor: pointer;
    color: #fff; width: 44px; height: 44px;
    border-radius: 50%; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.pub-lightbox-close:hover { background: rgba(255,255,255,.3); }
.pub-lightbox-caption {
    position: absolute;
    bottom: 24px; left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,.8);
    font-size: .88rem;
}

/* ── Contact ──────────────────────────────────────────────── */
.pub-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}
.pub-contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--pub-dark); }
.pub-map-wrap {
    border-radius: var(--pub-radius);
    overflow: hidden;
    border: 1px solid var(--pub-border);
    height: 420px;
}
.pub-map-wrap iframe { width: 100%; height: 100%; border: 0; }
.pub-contact-form { background: var(--pub-white); border: 1px solid var(--pub-border); border-radius: var(--pub-radius); padding: 32px; }

/* ── Admission page ───────────────────────────────────────── */
.pub-admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.pub-admission-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 32px;
    box-shadow: var(--pub-shadow);
}
.pub-admission-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; color: var(--pub-dark); }
.pub-admission-card .card-sub { font-size: .88rem; color: var(--pub-muted); margin-bottom: 24px; }
.pub-admission-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--pub-primary) 12%, transparent);
    color: var(--pub-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.pub-prospectus-badge {
    background: linear-gradient(135deg, var(--pub-primary), color-mix(in srgb, var(--pub-primary) 60%, #7c3aed));
    color: #fff;
    border-radius: var(--pub-radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.pub-prospectus-price { font-size: 2rem; font-weight: 900; }
.pub-prospectus-desc { font-size: .85rem; opacity: .85; }

/* ── Forms (public) ───────────────────────────────────────── */
.pub-form .form-group { margin-bottom: 16px; }
.pub-form label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: 6px;
}
.pub-form input,
.pub-form select,
.pub-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pub-border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--pub-text);
    background: var(--pub-white);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.pub-form input:focus,
.pub-form select:focus,
.pub-form textarea:focus {
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pub-primary) 15%, transparent);
}
.pub-form textarea { resize: vertical; min-height: 100px; }
.pub-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pub-form .form-hint { font-size: .78rem; color: var(--pub-muted); margin-top: 4px; }
.btn-pub-primary {
    width: 100%;
    padding: 12px;
    background: var(--pub-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    margin-top: 8px;
}
.btn-pub-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-pub-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pub-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 16px;
    display: none;
}
.pub-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.pub-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pub-alert.show { display: block; }

/* ── Notices section ──────────────────────────────────────── */
.pub-notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.pub-notice-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-left: 4px solid var(--pub-primary);
    border-radius: var(--pub-radius);
    padding: 20px;
    transition: box-shadow .2s;
}
.pub-notice-card:hover { box-shadow: var(--pub-shadow); }
.pub-notice-card h4 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; color: var(--pub-dark); }
.pub-notice-card .notice-date { font-size: .78rem; color: var(--pub-muted); }

/* ── CTA Banner ───────────────────────────────────────────── */
.pub-cta {
    background: linear-gradient(135deg, var(--pub-primary), color-mix(in srgb, var(--pub-primary) 55%, #0f172a));
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.pub-cta h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.pub-cta p { font-size: 1rem; opacity: .85; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.pub-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-white {
    padding: 13px 32px;
    background: #fff;
    color: var(--pub-primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .15s;
    display: inline-block;
}
.btn-cta-white:hover { transform: translateY(-2px); text-decoration: none; }
.btn-cta-ghost {
    padding: 13px 32px;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .15s;
    display: inline-block;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────── */
.pub-footer {
    background: var(--pub-dark);
    color: rgba(255,255,255,.6);
    padding: 60px 0 32px;
}
.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.pub-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pub-footer-brand img {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,.1);
    padding: 4px;
}
.pub-footer-brand-name { color: #fff; font-size: 1rem; font-weight: 700; }
.pub-footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.pub-footer-contact-item { display: flex; gap: 10px; font-size: .85rem; margin-bottom: 8px; align-items: flex-start; }
.pub-footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.pub-footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.pub-footer-links { list-style: none; }
.pub-footer-links li { margin-bottom: 8px; }
.pub-footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; text-decoration: none; transition: color .15s; }
.pub-footer-links a:hover { color: #fff; }
.pub-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    flex-wrap: wrap;
    gap: 8px;
}
.pub-footer-bottom a { color: rgba(255,255,255,.5); }

/* ── Page hero (inner pages) ──────────────────────────────── */
.pub-page-hero {
    background: linear-gradient(135deg, var(--pub-primary), color-mix(in srgb, var(--pub-primary) 55%, #0f172a));
    color: #fff;
    padding: 48px 0;
}
.pub-page-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.pub-page-hero p { opacity: .85; font-size: .95rem; }
.pub-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; opacity: .75; margin-top: 10px; }
.pub-breadcrumb a { color: rgba(255,255,255,.8); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .pub-about-grid { grid-template-columns: 1fr; }
    .pub-about-img { height: 240px; }
    .pub-contact-grid { grid-template-columns: 1fr; }
    .pub-admission-grid { grid-template-columns: 1fr; }
    .pub-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }
    .pub-hero-content h1 { font-size: 1.8rem; }
    .pub-hero { padding: 56px 0 40px; }
    .pub-nav-links, .pub-nav-actions { display: none; }
    .pub-nav-hamburger { display: flex; }
    .pub-cta h2 { font-size: 1.6rem; }
    .pub-form .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .pub-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-hero-logo { width: 80px; height: 80px; }
    .pub-hero-content h1 { font-size: 1.5rem; }
}
