:root {
    --school-primary: #1b365d;
    --school-primary-dark: #132742;
    --school-secondary: #e88a1a;
    --school-success: #1e7e34;
    --school-danger: #d9381e;
    --school-bg: #fdfbf7;
    --school-muted-bg: #f4efe6;
    --school-text: #2b2d42;
    --school-muted: #5a6075;
    --school-border: #eadcc8;
}

body.public-site {
    background: var(--school-bg);
    color: var(--school-text);
    font-family: "Noto Sans", sans-serif;
    overflow-x: hidden;
}

.public-site *,
.public-site *:before,
.public-site *:after {
    box-sizing: border-box;
}

.public-site img,
.public-site video,
.public-site iframe {
    max-width: 100%;
}

.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.public-site h5,
.public-site h6 {
    font-family: "Noto Serif", serif;
    letter-spacing: 0;
}

.public-topbar {
    background: var(--school-primary);
    color: #fff;
    font-size: 12px;
    padding: 5px 0;
    line-height: 1.2;
}

.public-topbar a,
.public-topbar span {
    color: #fff;
}

.topbar-info {
    min-width: 0;
    overflow: hidden;
}

.topbar-info a,
.topbar-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    flex: 0 0 auto;
}

.translate-widget {
    max-width: 155px;
    overflow: hidden;
}

.translate-widget .goog-te-gadget {
    color: transparent;
    font-size: 0;
    line-height: 1;
}

.translate-widget .goog-te-gadget-simple {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    padding: 3px 6px;
    background: rgba(255,255,255,.12);
}

.translate-widget .goog-te-menu-value span {
    color: #fff !important;
    font-size: 12px;
}

.topbar-link {
    border-left: 1px solid rgba(255,255,255,.25);
    padding-left: 12px;
    white-space: nowrap;
}

.public-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(27,54,93,.08);
}

.public-header .navbar {
    min-height: 68px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--school-primary) !important;
    flex: 0 0 360px;
    max-width: 360px;
    min-width: 0;
    margin-right: 14px;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-copy {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.public-brand strong {
    display: block;
    font-size: 21px;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-brand small {
    display: block;
    color: var(--school-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo {
    width: 54px;
    height: 54px;
    display: block;
    flex: 0 0 auto;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.public-header .nav-link {
    color: var(--school-muted) !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 7px 8px !important;
    white-space: nowrap;
    font-size: 14px;
}

.public-header .nav-link.active,
.public-header .nav-link:hover {
    background: var(--school-primary);
    color: #fff !important;
}

.btn-admission,
.btn-school-primary {
    background: var(--school-secondary);
    border: 1px solid var(--school-secondary);
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
}

.btn-admission {
    padding: 8px 12px;
    line-height: 1.15;
    white-space: nowrap;
    font-size: 14px;
}

.btn-school-outline {
    border: 1px solid var(--school-primary);
    color: var(--school-primary) !important;
    background: transparent;
    font-weight: 700;
    border-radius: 4px;
}

.public-main {
    padding-top: 96px;
}

.school-hero {
    background: linear-gradient(135deg, var(--school-primary), #244d7f);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.school-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,220,192,.24) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .45;
}

.school-hero .container {
    position: relative;
    z-index: 1;
}

.school-hero .carousel-item {
    min-height: 560px;
    padding: 80px 0 70px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .18;
}

.hero-image-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 16px 32px rgba(0,0,0,.18);
}

.hero-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.school-hero .carousel-indicators {
    margin-bottom: 18px;
}

.school-hero .carousel-control-prev,
.school-hero .carousel-control-next {
    width: 7%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--school-secondary);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.hero-title {
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    color: #d6e3ff;
}

.hero-copy {
    color: #d6e3ff;
    font-size: 17px;
    line-height: 1.7;
}

.hero-panel,
.school-card,
.notice-card {
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(27,54,93,.06), 0 1px 2px rgba(27,54,93,.04);
}

.hero-panel {
    color: var(--school-text);
    padding: 24px;
}

.stat-tile {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 18px;
}

.stat-tile strong {
    color: #ffdcc0;
    display: block;
    font-size: 30px;
    line-height: 1;
}

.section-pad {
    padding: 72px 0;
}

.section-muted {
    background: var(--school-muted-bg);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-heading p {
    color: var(--school-muted);
}

.school-card {
    height: 100%;
    padding: 24px;
    overflow-wrap: anywhere;
}

.school-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--school-primary);
    background: #e8eef5;
    margin-bottom: 18px;
}

.notice-card {
    padding: 18px;
}

.date-badge {
    color: var(--school-primary);
    background: #e8eef5;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    border: 1px dashed var(--school-border);
    border-radius: 8px;
    padding: 28px;
    color: var(--school-muted);
    background: #fff;
}

.faculty-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--school-muted-bg);
}

.gallery-tile {
    overflow: hidden;
}

.gallery-media {
    aspect-ratio: 16 / 10;
    background: var(--school-muted-bg);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-media img,
.gallery-media video,
.gallery-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
}

.principal-photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--school-border);
}

.principal-sticky {
    position: sticky;
    top: 120px;
}

.principal-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--school-border);
    background: var(--school-muted-bg);
    flex: 0 0 auto;
}

.rich-content {
    overflow-wrap: anywhere;
}

.rich-content p,
.rich-content li,
.rich-content blockquote {
    color: var(--school-text);
    font-size: 16px;
    line-height: 1.75;
}

.rich-content blockquote {
    border-left: 4px solid var(--school-secondary);
    background: var(--school-muted-bg);
    padding: 14px 18px;
    margin: 18px 0;
}

.rich-content a {
    color: var(--school-primary);
    font-weight: 700;
}

.public-site .form-control,
.public-site .btn {
    max-width: 100%;
}

.public-site .table-responsive {
    -webkit-overflow-scrolling: touch;
}

.public-footer, .public-footer p {
    background: var(--school-primary);
    color: #d6e3ff;
}


.public-footer h6 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 16px;
}

.public-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-footer li {
    margin-bottom: 9px;
}

.public-footer a {
    color: #d6e3ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 18px;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .public-main {
        padding-top: 104px;
    }

    .hero-title {
        font-size: 34px;
    }

    .public-brand strong {
        font-size: 18px;
    }

    .public-brand {
        flex-basis: auto;
        max-width: calc(100vw - 112px);
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .public-header .navbar-collapse {
        border-top: 1px solid var(--school-border);
        margin-top: 8px;
        padding-top: 8px;
    }

    .public-header .nav-link {
        padding: 9px 10px !important;
    }

    .btn-admission {
        display: inline-flex;
        margin-top: 8px;
    }

    .public-header .navbar-nav {
        gap: 2px;
    }
}

@media (max-width: 575px) {
    .public-main {
        padding-top: 125px;
    }

    .principal-sticky {
        position: static;
    }

    .school-hero {
        padding: 0;
    }

    .school-hero .carousel-item {
        min-height: auto;
        padding: 54px 0 56px;
    }

    .hero-title {
        font-size: 30px;
    }

    .public-brand small {
        display: none;
    }

    .public-brand strong {
        font-size: 16px;
        max-width: 215px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .public-topbar {
        font-size: 11px;
    }

    .topbar-actions .topbar-link:first-child {
        display: none;
    }

    .translate-widget {
        max-width: 108px;
    }

    .translate-widget .goog-te-gadget-simple {
        padding: 2px 4px;
    }

    .translate-widget .goog-te-menu-value span {
        font-size: 10px;
    }

    .section-pad {
        padding: 42px 0;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .school-card,
    .notice-card,
    .hero-panel {
        padding: 18px;
    }

    .stat-tile {
        padding: 14px;
    }

    .stat-tile strong {
        font-size: 24px;
    }

    .hero-copy {
        font-size: 15px;
        line-height: 1.6;
    }

    .school-hero .carousel-control-prev,
    .school-hero .carousel-control-next {
        display: none;
    }

    .school-hero .carousel-indicators {
        margin-bottom: 10px;
    }

    .gallery-media {
        aspect-ratio: 16 / 11;
    }

    .public-footer .footer-bottom {
        display: block;
    }

    .public-footer .footer-bottom span {
        display: block;
        margin-bottom: 8px;
    }
}

@media (max-width: 380px) {
    .public-brand strong {
        max-width: 170px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .topbar-info {
        max-width: 155px;
    }
}
