/* ============================================================
   A.L. CONVENT SCHOOL — STYLESHEET (Consolidated)
   Structure: Global > Topbar > Navbar > Hero > Sections >
              Gallery/Albums > Footer > Pages > Popup >
              Image Fix > Responsive (992/768/576)
   ============================================================ */

/* ============ GLOBAL ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy: #0f2a5c;
    --navy-dark: #0a1f47;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --light: #f0f4fa;
    --text: #334155;
}
body { font-family: 'Poppins', sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.bg-light { background: var(--light); }
a { text-decoration: none; }
img { max-width: 100%; }

/* ============ TOPBAR (single-line, smart truncate) ============ */
.topbar { background: var(--navy-dark); color: #cbd5e1; font-size: 12.5px; padding: 8px 0; }
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}
.topbar-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.topbar-left span:nth-child(1) { max-width: 240px; }   /* Address */
.topbar-left span:nth-child(2),
.topbar-left span:nth-child(3) { flex-shrink: 0; }     /* Phone/Email */
.topbar-left i { color: var(--orange); margin-right: 5px; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar-right a { color: #cbd5e1; }
.topbar-right a:hover { color: var(--orange); }

/* ============ NAVBAR (hanging logo) ============ */
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; padding: 0 20px; }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; align-self: flex-start; padding-top: 7px; }
.logo-icon {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    border: 2px solid #f1f5f9;
    position: relative;
    z-index: 10;
}
.logo-icon img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; }
.logo-icon.big { width: 72px; height: 72px; }

.logo h1 { font-size: 19px; color: var(--navy); font-weight: 800; line-height: 1.2; margin: 0; }
.logo .tagline { color: var(--orange); font-weight: 600; font-size: 12.5px; margin: 0; letter-spacing: .5px; }

/* ============ NAV MENU ============ */
.nav-menu { display: flex; align-items: center; gap: 25px; }
.nav-menu a { color: var(--navy); font-weight: 500; font-size: 15px; padding: 8px 0; }
.nav-menu a.active, .nav-menu a:hover { color: var(--orange); border-bottom: 3px solid var(--orange); }
.nav-menu i.fa-search { color: var(--navy); cursor: pointer; }
.hamburger { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }

/* ============ BUTTONS ============ */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; transition: .3s; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; height: 580px; overflow: hidden; background: var(--navy-dark); }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-content {
    width: 100%;
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease .4s, transform .8s ease .4s;
}
.hero-slide.active .hero-content { opacity: 1; transform: none; }

.hero-welcome { color: var(--orange); font-weight: 700; letter-spacing: 3px; font-size: 14px; }
.hero-welcome .line { display: inline-block; width: 50px; height: 2px; background: var(--orange); vertical-align: middle; margin-left: 10px; }
.hero-content h2 { font-family: 'Playfair Display', serif; font-size: 52px; margin: 15px 0; max-width: 700px; line-height: 1.2; color: #fff; }
.hero-content h2 .accent { color: var(--orange); }
.hero-sub { max-width: 480px; font-size: 17px; margin-bottom: 30px; color: #fff; }
.hero-btns { display: flex; gap: 15px; }

.hero-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 20; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots span.active { background: var(--orange); transform: scale(1.25); }

/* ============ STATS ============ */
.stats-bar { background: #fff; margin-top: -50px; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.1); border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 20px; gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 15px; border-right: 1px solid #e2e8f0; padding-right: 15px; }
.stat-item:last-child { border: none; }
.stat-icon { font-size: 32px; color: var(--orange); background: #fff4ec; padding: 15px; border-radius: 12px; }
.stat-item h3 { color: var(--navy); font-size: 22px; }
.stat-item p { font-size: 13px; }

/* ============ SECTION HEADINGS ============ */
.section-tag { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-tag.center { text-align: center; }
.section-title { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 32px; margin: 8px 0 15px; }
.section-title.center { text-align: center; }
.section-sub { text-align: center; max-width: 700px; margin: 0 auto 40px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 35px; align-items: center; }
.about-img img { border-radius: 12px; box-shadow: -10px 10px 0 var(--orange); }
.feature-item { display: flex; gap: 15px; margin-bottom: 22px; }
.feature-item i { color: var(--orange); background: #fff4ec; padding: 14px; border-radius: 10px; font-size: 18px; height: fit-content; }
.feature-item h4 { color: var(--navy); font-size: 15px; }
.feature-item p { font-size: 13px; }

/* ============ PROGRAMS ============ */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.program-card { background: #fff; padding: 30px 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,.06); position: relative; transition: .3s; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.program-icon { font-size: 28px; color: #fff; background: var(--orange); padding: 18px; border-radius: 12px; margin-bottom: 20px; }
.program-card h3 { color: var(--navy); font-size: 18px; }
.program-classes { color: var(--orange); font-weight: 600; font-size: 14px; margin: 5px 0; }
.program-card p { font-size: 14px; }
.arrow-link { position: absolute; bottom: 25px; right: 25px; color: var(--orange); }

/* ============ FACILITIES ============ */
.facilities-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 15px; }
.facility-item { text-align: center; padding: 20px 10px; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.05); transition: .3s; }
.facility-item:hover { background: var(--navy); }
.facility-item:hover p { color: #fff; }
.facility-item i { font-size: 26px; color: var(--orange); margin-bottom: 10px; }
.facility-item p { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ============ MESSAGES + NEWS (homepage) ============ */
.messages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.principal-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; box-shadow: 0 5px 20px rgba(0,0,0,.06); }
.principal-photo { width: 260px; object-fit: cover; object-position: center top; }
.principal-content { padding: 30px; }
.principal-content h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 24px; margin-bottom: 12px; }
.principal-name { font-weight: 600; color: var(--navy); margin: 10px 0 15px; }
.msg-excerpt { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.news-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,.06); }
.news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.news-header h3 { color: var(--navy); font-size: 20px; }
.view-all { background: var(--orange); color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 13px; }
.news-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid #f1f5f9; }
.news-date { background: #fff4ec; border-radius: 10px; text-align: center; padding: 8px 12px; min-width: 55px; }
.news-date .day { display: block; font-size: 20px; font-weight: 800; color: var(--orange); }
.news-date .month { font-size: 11px; font-weight: 600; color: var(--orange); }
.news-info h4 { color: var(--navy); font-size: 15px; }
.news-info p { font-size: 13px; }
.news-item > i { color: var(--orange); margin-left: auto; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid .news-item { flex-direction: column; align-items: flex-start; gap: 10px; }
.news-grid .news-item > i { display: none; }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(15,42,92,.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .3s; color: #fff; font-weight: 600; padding: 10px; text-align: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-grid.full { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }

/* ============ ALBUMS ============ */
.albums-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.home-albums { grid-template-columns: repeat(4, 1fr); }
.album-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08); transition: .3s;
    display: block; text-decoration: none;
}
.album-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,.14); }
.album-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.album-card:hover .album-cover img { transform: scale(1.08); }
.album-count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(15,42,92,.85); color: #fff;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.album-name { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.album-name h3 { color: var(--navy); font-size: 16px; margin: 0; }
.album-name span { color: var(--orange); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ============ CTA & FOOTER ============ */
.cta-banner { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 40px 0; }
.cta-inner { display: flex; align-items: center; gap: 20px; color: #fff; }
.cta-icon { font-size: 40px; color: var(--orange); }
.cta-text { flex: 1; }
.cta-text h2 { font-size: 24px; }

.footer { background: var(--navy-dark); color: #cbd5e1; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer h3 { color: #fff; font-size: 18px; }
.footer h4 { color: #fff; margin-bottom: 15px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: var(--orange); }
.footer-contact i { color: var(--orange); margin-right: 8px; width: 16px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { background: rgba(255,255,255,.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-icons a:hover { background: var(--orange); color: #fff; }
.footer-bottom { background: rgba(0,0,0,.25); padding: 15px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Footer Credit (BrainTech) */
.footer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
}
.footer-credit span { color: #94a3b8; font-size: 13px; }
.footer-credit .fa-heart {
    color: #ff4d6d;
    animation: heartBeat 1.5s infinite;
    margin: 0 2px;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15%      { transform: scale(1.3); }
    30%      { transform: scale(1); }
    45%      { transform: scale(1.25); }
}
.credit-brand {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    font-weight: 800;
    font-size: 13.5px;
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: .5px;
    box-shadow: 0 2px 10px rgba(249,115,22,.35);
    transition: .3s;
}
.credit-brand:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(249,115,22,.5);
}

/* ============ PAGE BANNER ============ */
.page-banner {
    background: linear-gradient(rgba(15,42,92,.88), rgba(15,42,92,.88)),
                url('../uploads/hero.jpg') center/cover;
    padding: 70px 0;
    color: #fff;
    text-align: center;
}
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: 42px; margin-bottom: 8px; }
.page-banner a { color: var(--orange); }
.page-banner p { color: #cbd5e1; font-size: 14px; }

/* ============ LIGHTBOX ============ */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 2000;
    align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 85vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox .caption { color: #fff; margin-top: 15px; font-size: 17px; }
.lightbox .close { position: absolute; top: 15px; right: 35px; color: #fff; font-size: 45px; cursor: pointer; line-height: 1; }
.lightbox .close:hover { color: var(--orange); }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 38px; cursor: pointer; padding: 20px; }
.lightbox .nav:hover { color: var(--orange); }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* ============ CONTENT PAGES (About etc.) ============ */
.prose {
    background: #fff;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    line-height: 1.9;
    font-size: 15.5px;
}
.prose h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 24px;
    margin: 25px 0 10px;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 15px; }

/* About page ke andar facilities 4-column */
.about-facilities { grid-template-columns: repeat(4, 1fr); margin-top: 30px; }

/* ============ MISSION / VISION CARDS ============ */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.mv-card {
    background: #fff;
    padding: 35px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    border-top: 4px solid var(--orange);
    transition: .3s;
}
.mv-card:hover { transform: translateY(-8px); }
.mv-icon {
    font-size: 26px;
    color: #fff;
    background: var(--orange);
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 18px;
}
.mv-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.mv-card p { font-size: 14px; }

/* ============ LANGUAGE SWITCH ============ */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-right: 15px; }
.lang-switch i { color: var(--orange); font-size: 16px; }
.lang-switch select {
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
}
.lang-switch select option { color: #0f2a5c; background: #fff; }

/* Google Translate default UI hide */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ============ NEWS LIST PAGE ============ */
.news-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    transition: .3s;
    display: flex; flex-direction: column;
}
.news-list-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.news-list-img { height: 180px; overflow: hidden; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { padding: 22px; position: relative; flex: 1; }
.news-list-body .news-date {
    position: absolute; top: -25px; left: 22px;
    background: #fff4ec; border-radius: 10px; text-align: center;
    padding: 8px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.news-list-body h3 { color: var(--navy); font-size: 17px; margin: 15px 0 8px; }
.news-list-body p { font-size: 14px; }
.news-readmore { display: inline-block; margin-top: 12px; color: var(--orange); font-weight: 600; font-size: 14px; }

/* ============ CONTACT PAGE ============ */
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    border-top: 4px solid var(--orange);
    transition: .3s;
}
.contact-info-card:hover { transform: translateY(-5px); }
.contact-info-card i {
    font-size: 24px; color: var(--orange);
    background: #fff4ec; padding: 16px;
    border-radius: 50%; margin-bottom: 12px;
}
.contact-info-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.contact-info-card p { font-size: 14px; word-break: break-word; }

.contact-main-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch; }
.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}
.contact-form-box h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 5px; }
.contact-form-sub { font-size: 14px; margin-bottom: 20px; }
.contact-form-box input, .contact-form-box textarea {
    width: 100%; padding: 11px 14px; margin-bottom: 14px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: inherit; font-size: 14px;
}
.contact-form-box input:focus, .contact-form-box textarea:focus {
    outline: none; border-color: var(--orange);
}
.contact-map-box { border-radius: 12px; overflow: hidden; min-height: 450px; background: var(--light); }

/* ============ POPUP NOTICE BOARD ============ */
.popup-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 20, 45, .78);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: popupFade .3s ease;
}
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
.popup-overlay.closing { opacity: 0; transition: opacity .3s; }

.popup-box {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.4);
    position: relative;
    animation: popupZoom .35s cubic-bezier(.34, 1.56, .64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes popupZoom { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

.popup-close {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.92);
    border: none; border-radius: 50%;
    font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 10;
    color: #0f2a5c;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: .2s;
}
.popup-close:hover { background: #f97316; color: #fff; transform: rotate(90deg); }

.popup-img { height: 200px; overflow: hidden; }
.popup-img img { width: 100%; height: 100%; object-fit: cover; }

.popup-body { padding: 25px 28px 28px; text-align: center; }

.popup-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff4ec; color: #f97316;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    padding: 6px 16px; border-radius: 30px;
    margin-bottom: 12px;
    text-transform: uppercase;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.4); }
    50%      { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
}
.popup-date { color: #94a3b8; font-size: 13px; margin-bottom: 10px; }
.popup-date i { color: #f97316; margin-right: 4px; }

.popup-title {
    font-family: 'Playfair Display', serif;
    color: #0f2a5c;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
}
.popup-text { color: #475569; font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; }

.popup-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.popup-btn-main {
    background: #f97316; color: #fff;
    padding: 12px 24px; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 14px;
    transition: .3s;
}
.popup-btn-main:hover { background: #ea580c; transform: translateY(-2px); }
.popup-btn-skip {
    background: none; border: 2px solid #e2e8f0;
    color: #64748b; padding: 10px 22px; border-radius: 50px;
    font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit;
    transition: .3s;
}
.popup-btn-skip:hover { border-color: #94a3b8; }

/* ============================================================
   GLOBAL IMAGE CROP FIX — face-friendly (TOP-align)
   ============================================================ */
.hero-slide { background-position: center top !important; }
.page-banner { background-position: center top !important; }
.news-list-img img,
.prose img,
.gallery-item img,
.album-cover img,
.about-img img,
.popup-img img { object-position: center top; }

/* ============================================================
   RESPONSIVE — consolidated (992 / 768 / 576)
   ============================================================ */

@media (max-width: 992px) {

    /* ---- TOPBAR: logins + email hide, address VISIBLE ---- */
    .topbar { font-size: 12px; padding: 6px 0; }
    .topbar-inner { justify-content: center; gap: 8px; }
    .topbar-left span:nth-child(3) { display: none; }   /* email hide */
    .topbar-right a { display: none; }                  /* logins hide */
    .lang-switch { margin-right: 0; }

    /* ---- NAVBAR: hanging logo OFF ---- */
    .nav-inner { height: auto; min-height: 0; padding: 10px 15px; }
    .logo { align-self: center; padding-top: 0; gap: 10px; }
    .logo-icon { width: 56px; height: 56px; }
    .logo h1 { font-size: 15px; }
    .logo .tagline { font-size: 10.5px; }

    /* ---- MOBILE MENU ---- */
    .hamburger { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px;
        border-top: 3px solid var(--orange);
        box-shadow: 0 15px 30px rgba(0,0,0,.12);
        z-index: 999;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        padding: 13px 5px;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-menu a.active, .nav-menu a:hover {
        border-bottom: 1px solid #f1f5f9;
        background: #fff7f2;
        color: var(--orange);
    }
    .nav-menu i.fa-search { display: none; }

    /* ---- GRIDS ---- */
    .stats-grid, .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid.full { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    /* ---- MESSAGES ---- */
    .messages-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .about-facilities { grid-template-columns: repeat(2, 1fr); }
    .principal-card { flex-direction: column; }
    .principal-photo { width: 100%; height: 260px; object-fit: cover; object-position: center top; }

    /* ---- LISTS ---- */
    .news-list-grid { grid-template-columns: repeat(2, 1fr); }
    .albums-grid, .home-albums { grid-template-columns: repeat(2, 1fr); }

    /* ---- CONTACT ---- */
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-main-grid { grid-template-columns: 1fr; }
    .contact-map-box { min-height: 300px; }
}

@media (max-width: 768px) {
    .hero-slider { height: 500px; }
    .hero-content h2 { font-size: 32px; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .mv-grid { grid-template-columns: 1fr; }
    .prose { padding: 25px; }
}

@media (max-width: 576px) {
    /* ---- HERO ---- */
    .hero-content h2 { font-size: 34px; }

    /* ---- GRIDS 1-col ---- */
    .stats-grid, .programs-grid, .facilities-grid,
    .gallery-grid, .gallery-grid.full, .footer-grid,
    .news-list-grid, .albums-grid, .home-albums { grid-template-columns: 1fr; }

    .facility-item { display: flex; align-items: center; gap: 12px; text-align: left; }
    .facility-item i { margin-bottom: 0; }
    .stat-item { border: none; }

    /* ---- CONTACT ---- */
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-form-box { padding: 25px; }

    /* ---- POPUP ---- */
    .popup-box { max-width: 100%; }
    .popup-img { height: 150px; }
    .popup-title { font-size: 20px; }
    .popup-btns { flex-direction: column; }

    /* ---- MESSAGES ---- */
    .principal-photo { height: 220px; }

    /* ---- TOPBAR: address compact par VISIBLE ---- */
    .topbar-left span:nth-child(1) { max-width: 150px; }

    /* ---- LOGO compact ---- */
    .logo-icon { width: 48px; height: 48px; }
    .logo h1 { font-size: 13.5px; }
    .logo .tagline { display: none; }
}