:root {
    --navy: #000c29;
    --blue: #002893;
    --cyan: #14c8d4;
    --yellow: #ffdd00;
    --ink: #172238;
    --muted: #687386;
    --pale: #f3f8fb;
    --line: #dbe5ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Roboto Slab", serif; }
body, button, input, textarea, select { font-family: "Roboto Slab", serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
.section-space { padding: 64px 0; }
.school-topbar { padding: 9px 0; color: rgba(255,255,255,.86); background: var(--navy); font-size: 13px; }
.school-topbar a { color: rgba(255,255,255,.86); }
.school-topbar i { margin-right: 6px; color: var(--yellow); }
.topbar-socials { display: flex; gap: 15px; }
.school-banner { display: block; background: #fff; }
.school-banner img { display: block; width: 100%; max-height: 154px; object-fit: cover; }
.school-nav { min-height: 58px; padding: 0; border-block: 1px solid #e2e8ee; background: #fff; box-shadow: 0 5px 18px rgba(0,12,41,.08); z-index: 1000; }
.school-nav .navbar-nav { align-items: stretch; flex-wrap: wrap; }
.school-nav .nav-link { position: relative; display: flex; align-items: center; gap: 5px; min-height: 57px; padding: 0 11px !important; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.school-nav .nav-link::before { position: absolute; right: 10px; bottom: 0; left: 10px; height: 3px; content: ""; background: var(--cyan); transform: scaleX(0); transition: .25s ease; }
.school-nav .nav-link:hover, .school-nav .nav-link.active { color: var(--blue); }
.school-nav .nav-link:hover::before, .school-nav .nav-link.active::before { transform: scaleX(1); }
.school-nav .dropdown-menu { min-width: 245px; margin: 0; padding: 6px 0; border: 0; border-top: 3px solid var(--cyan); border-radius: 0; background: var(--navy); box-shadow: 0 15px 35px rgba(0,12,41,.23); }
.school-nav .dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 16px; color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; font-weight: 600; white-space: normal; }
.school-nav .dropdown-item:hover, .school-nav .dropdown-item.active { color: var(--navy); background: var(--cyan); }
.school-nav .dropdown-submenu { position: relative; }
.school-nav .dropdown-submenu > .dropdown-menu { top: -6px; left: 100%; }
.school-nav .dropdown:hover > .dropdown-menu, .school-nav .dropdown-submenu:hover > .dropdown-menu { display: block; }
.navbar-brand img { max-width: 245px; max-height: 48px; object-fit: contain; }
.navbar-toggler { border: 0; }
.navbar-toggler i { color: #fff; font-size: 30px; line-height: 1; }
.mobile-menu { width: min(390px, 90vw) !important; color: #fff; background: var(--navy); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu .offcanvas-header img { max-width: 250px; max-height: 55px; }
.mobile-nav-list, .mobile-nav-list ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav-list a { display: flex; justify-content: space-between; padding: 12px 5px; color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; text-transform: uppercase; }
.mobile-nav-list ul { padding-left: 16px; }
.mobile-nav-list ul a { color: rgba(255,255,255,.7); font-size: 12px; text-transform: none; }
.home-slider { overflow: hidden; background: var(--pale); }
.hero-swiper .swiper-slide { height: clamp(290px, 40vw, 600px); }
.hero-swiper img { width: 100%; height: 100%; object-fit: cover; }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next, .gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next { width: 42px; height: 42px; color: #fff; background: rgba(0,12,41,.75); }
.hero-swiper .swiper-button-prev::after, .hero-swiper .swiper-button-next::after, .gallery-swiper .swiper-button-prev::after, .gallery-swiper .swiper-button-next::after { font-size: 16px; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--cyan); }
.flash-news-section { display: flex; min-height: 44px; overflow: hidden; border-bottom: 1px solid #c7e4e8; background: #dffcff; }
.flash-news-label { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 10px 24px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.flash-news-viewport { display: flex; align-items: center; overflow: hidden; }
.flash-news-track { display: flex; align-items: center; gap: 48px; min-width: max-content; padding-left: 30px; animation: ticker 35s linear infinite; }
.flash-news-track:hover { animation-play-state: paused; }
.flash-news-track a { color: #243249; font-size: 14px; font-weight: 600; }
.flash-news-track i { margin-right: 8px; color: #e0a800; }
@keyframes ticker { to { transform: translateX(-50%); } }
.section-kicker { display: block; margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.section-kicker.light { color: #77f3fb; }
.daily-thoughts-section { position: relative; padding: 64px 0; color: #fff; text-align: center; background: linear-gradient(135deg, rgba(0,12,41,.96), rgba(0,40,147,.88)), url("../images/bg-1.jpg") center/cover; }
.daily-thought-content { max-width: 920px; margin: auto; }
.daily-thought-content h2, .principal-section h2 { margin-bottom: 22px; color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.daily-thought-content blockquote { margin: 0; color: rgba(255,255,255,.94); font-size: clamp(18px, 2.5vw, 27px); font-weight: 500; line-height: 1.65; }
.daily-thought-content cite { display: block; margin-top: 18px; color: #8bf4fb; font-style: normal; font-weight: 600; }
.principal-section { position: relative; padding: 78px 0; color: #fff; background: linear-gradient(130deg, #074799, #087b82 60%, #0b9d77); overflow: hidden; }
.principal-section::before { position: absolute; inset: 0; content: ""; opacity: .14; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px; }
.principal-section .container { position: relative; }
.principal-photo-wrap { display: inline-block; padding: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 22px 45px rgba(0,0,0,.25); }
.principal-photo-wrap img { display: block; width: 340px; max-height: 410px; object-fit: cover; }
.principal-section h4 { color: #fff; font-size: 19px; }
.principal-section p { max-width: 760px; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.9; }
.principal-signature { margin: 22px 0; padding-left: 15px; border-left: 4px solid #77f3fb; }
.principal-signature strong, .principal-signature span { display: block; }
.principal-signature span { color: #77f3fb; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sharp-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; color: #fff; border: 0; border-radius: 0; background: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; transition: .2s; }
.sharp-btn:hover { color: var(--navy); background: var(--cyan); }
.light-btn { color: var(--navy); background: #fff; }
.news-birthday-section { background: var(--pale); }
.content-panel { padding: 25px; border-top: 4px solid var(--blue); background: #fff; box-shadow: 0 12px 30px rgba(0,12,41,.09); }
.panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-heading > i { color: var(--blue); font-size: 22px; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 800; }
.panel-heading > a { margin-left: auto; padding: 6px 12px; color: var(--blue); border: 1px solid var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.birthday-swiper { padding-bottom: 32px; }
.birthday-card { padding: 18px 5px; text-align: center; }
.birthday-card img, .birthday-placeholder { width: 145px; height: 145px; margin: 0 auto 17px; border: 4px solid #fff; outline: 3px solid var(--blue); border-radius: 50%; object-fit: cover; box-shadow: 0 9px 20px rgba(0,40,147,.17); }
.birthday-placeholder { display: grid; place-items: center; color: var(--blue); background: var(--pale); font-size: 45px; }
.birthday-card h3 { margin-bottom: 8px; font-size: 18px; }
.birthday-card span { display: inline-block; padding: 5px 12px; color: var(--blue); background: #e8f3ff; font-size: 12px; font-weight: 700; }
.birthday-pagination .swiper-pagination-bullet-active { background: var(--blue); }
.news-list { display: grid; gap: 12px; }
.news-item { display: flex; align-items: center; gap: 16px; padding: 13px; border: 1px solid #e5edf2; background: #f8fafc; transition: .2s; }
.news-item:hover { border-color: var(--cyan); background: #fff; transform: translateX(3px); }
.news-item img { flex: 0 0 118px; width: 118px; height: 84px; object-fit: cover; }
.news-item time { color: var(--muted); font-size: 11px; }
.news-item h3 { margin: 4px 0; font-size: 15px; line-height: 1.4; }
.news-item p { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.news-item a { color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.section-heading { margin-bottom: 30px; text-align: center; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.gallery-swiper { padding: 5px; }
.gallery-card { position: relative; display: block; height: 250px; overflow: hidden; background: var(--navy); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery-card span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,12,41,.65); font-size: 28px; opacity: 0; transition: .25s; }
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card:hover span { opacity: 1; }
.empty-state { min-height: 170px; display: grid; place-items: center; padding: 30px; color: var(--muted); background: var(--pale); text-align: center; }
.empty-state.compact { min-height: 280px; }
.empty-state.dark { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.empty-light { margin: 0; color: rgba(255,255,255,.8); }
.school-footer { padding-top: 40px; color: rgba(255,255,255,.78); background: var(--navy); }
.footer-logo { max-width: 235px; max-height: 65px; margin-bottom: 14px; object-fit: contain; }
.footer-copy { max-width: 390px; margin-bottom: 15px; font-size: 13px; line-height: 1.7; }
.school-footer h3 { position: relative; margin-bottom: 18px; color: var(--yellow); font-size: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 15px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.1); }
.footer-contact p { display: flex; gap: 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.6; }
.footer-contact i { color: var(--yellow); }
.footer-contact a { color: rgba(255,255,255,.78); }
.footer-bottom { margin-top: 30px; padding: 13px 0; color: rgba(255,255,255,.65); border-top: 1px solid rgba(255,255,255,.09); background: #060b18; text-align: center; font-size: 12px; }
.footer-bottom a { color: var(--yellow); }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: none; width: 40px; height: 40px; color: #fff; border: 0; border-radius: 0; background: var(--blue); }
.back-to-top.show { display: block; }
.subpage-hero { padding: 58px 0; color: #fff; background: linear-gradient(120deg, rgba(0,12,41,.97), rgba(0,40,147,.84)), url("../images/bg-1.jpg") center/cover; }
.subpage-kicker { display: block; margin-bottom: 9px; color: #77f3fb; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.subpage-hero h1 { margin-bottom: 14px; font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.subpage-hero .breadcrumb-item, .subpage-hero .breadcrumb-item.active, .subpage-hero .breadcrumb-item::before { color: rgba(255,255,255,.72); font-size: 12px; }
.subpage-hero .breadcrumb-item a { color: #fff; }
.subpage-body { min-height: 350px; }
.subpage-body .section-content, .subpage-body .maria-content-card { max-width: 1160px; margin: 50px auto; padding: 32px; border-top: 4px solid var(--blue); background: #fff; box-shadow: 0 10px 30px rgba(0,12,41,.09); }
.subpage-body p { color: #455269; line-height: 1.8; }
.contact-section { background: var(--pale); }
.contact-info-card, .contact-form-card { padding: 34px; box-shadow: 0 13px 32px rgba(0,12,41,.1); }
.contact-info-card, .contact-form-card, .contact-section .row > * { min-width: 0; }
.contact-info-card { color: rgba(255,255,255,.88); background: linear-gradient(145deg, var(--navy), var(--blue)); }
.contact-info-card h2 { color: #fff; }
.contact-info-card > p { color: rgba(255,255,255,.72); }
.contact-info-card ul { margin: 28px 0 0; padding: 0; list-style: none; }
.contact-info-card li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.contact-info-card li > i { color: #77f3fb; font-size: 20px; }
.contact-info-card strong, .contact-info-card span, .contact-info-card a { display: block; }
.contact-info-card strong { margin-bottom: 4px; color: #fff; font-size: 13px; }
.contact-info-card span, .contact-info-card a { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.7; }
.contact-form-card { background: #fff; }
.contact-form-card h2 { margin-bottom: 25px; font-weight: 800; }
.contact-form-card label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.contact-form-card input, .contact-form-card textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #f9fbfc; }
.contact-form-card input:focus, .contact-form-card textarea:focus { border-color: var(--cyan); background: #fff; }
.contact-map { margin-top: 28px; padding: 8px; background: #fff; box-shadow: 0 10px 25px rgba(0,12,41,.09); }
.contact-map iframe { display: block; }

@media (max-width: 1199px) {
    .school-nav .nav-link { padding-inline: 7px !important; font-size: 11px; }
}
@media (max-width: 991.98px) {
    .school-nav { min-height: 64px; background: var(--navy); }
    .school-nav .container { flex-wrap: nowrap; }
    .school-nav .navbar-brand { max-width: calc(100% - 62px); }
    .school-nav .navbar-toggler { position: absolute; top: 12px; right: 12px; z-index: 2; display: block; padding: 5px 8px; }
    .section-space { padding: 48px 0; }
    .principal-section { padding: 55px 0; text-align: center; }
    .principal-section p { margin-inline: auto; }
    .principal-signature { display: inline-block; text-align: left; }
}
@media (max-width: 575.98px) {
    .flash-news-label { padding-inline: 12px; font-size: 0; }
    .flash-news-label i { font-size: 17px; }
    .hero-swiper .swiper-slide { height: 235px; }
    .news-item { align-items: flex-start; }
    .news-item img { flex-basis: 88px; width: 88px; height: 75px; }
    .news-item p { display: none; }
    .content-panel, .contact-info-card, .contact-form-card { padding: 20px; }
    .contact-info-card, .contact-form-card, .contact-map { width: calc(100vw - 24px); max-width: calc(100vw - 24px); margin-inline: auto; overflow: hidden; }
    .panel-heading h2 { font-size: 17px; }
    .panel-heading > a { display: none; }
    .footer-links { grid-template-columns: 1fr; }
}
