:root {
    --navy: #14532d;
    --navy-deep: #0b3b24;
    --gold: #26734b;
    --gold-soft: #dcfce7;
    --cream: #f1f8f3;
    --sage: #a7d7b4;
    --text: #1f3328;
    --muted: #5e7065;
    --white: #ffffff;
    --border: rgba(20, 83, 45, 0.1);
    --shadow: 0 24px 50px rgba(11, 59, 36, 0.12);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    min-width: 320px;
    overflow-x: clip;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy);
    line-height: 1.1;
}

p {
    color: var(--muted);
}

a {
    color: var(--navy);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold);
}

.has-text-warning {
    color: var(--gold) !important;
}

.button.is-link {
    background-color: var(--gold);
    border-color: transparent;
    color: var(--white);
}

.button.is-link:hover,
.button.is-link:focus {
    background-color: var(--navy);
    color: var(--white);
}

.button.is-primary.is-light {
    background-color: var(--gold-soft);
    color: var(--navy);
}

.button.is-primary.is-light:hover {
    background-color: var(--sage);
    color: var(--navy-deep);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.125em rgba(47, 133, 90, 0.2);
}

.image-card img, .media-image, .facility-image, .news-image, .event-image, .hero-image, .gallery-grid img {
    object-fit: cover;
    width: 100%;
}

.has-background-navy {
    background-color: var(--navy) !important;
    color: var(--white);
}

.topbar {
    padding: 0.7rem 0;
    font-size: 0.8rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar .container.is-max-desktop,
.site-header .navbar.container.is-max-desktop {
    max-width: min(100% - 2rem, 1600px);
}

.topbar-links,
.topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar span,
.topbar a {
    color: rgba(255, 255, 255, 0.9);
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 5.2rem;
}

.site-header .navbar {
    min-height: 6.25rem;
}

.site-header .navbar-brand {
    align-items: center;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 !important;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), #a7d7b4);
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow);
}

.brand-logo {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.site-header .brand-logo {
    width: 82px;
    height: 82px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy);
    font-weight: 700;
}

.brand-copy small {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.59rem;
    color: var(--muted);
}

.navbar-item,
.navbar-link {
    font-weight: 600;
    color: var(--navy);
}

.navbar-item.is-active,
.navbar-item:hover,
.navbar-link:hover {
    color: var(--gold) !important;
}

.navbar-dropdown {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.navbar-dropdown-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.button.is-primary {
    background: linear-gradient(135deg, var(--gold), #2b794d);
    border: none;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1.3rem 2rem;
}

.button.is-primary:hover {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(11, 59, 36, 0.78), rgba(11, 59, 36, 0.22));
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) contrast(1.02);
    transform: scale(1.02);
    height: 100%;
}

.story-image-empty {
    display: grid;
    place-items: center;
    min-height: 340px;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(140deg, var(--navy-deep), var(--navy));
    color: var(--gold-soft);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 3rem;
}

.hero-text {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(3.2rem, 5vw, 6rem);
    color: var(--white);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button.is-light {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1.2rem 1.8rem;
}

.button.is-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.section {
    padding: 6rem 1.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 0.7rem;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.06rem;
}

.principal-welcome-section {
    padding-bottom: 0;
}

.principal-welcome {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.5fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--cream);
    box-shadow: var(--shadow);
}

.principal-welcome-photo {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    background: var(--sage);
}

.principal-welcome-copy {
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.principal-welcome-copy .eyebrow,
.section-heading .eyebrow {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.principal-welcome-copy h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}

.principal-welcome-copy > p:not(.eyebrow) {
    line-height: 1.8;
}

.principal-welcome-role {
    display: block;
    margin-top: 1rem;
    color: var(--navy);
    font-weight: 700;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.story-grid-no-image {
    grid-template-columns: 1fr;
}

.story-card img {
    border-radius: 26px;
    height: 560px;
    box-shadow: var(--shadow);
}

.home-story-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--navy-deep);
    box-shadow: var(--shadow);
}

.home-story-slide {
    position: absolute;
    inset: 0;
}

.home-story-slide[hidden] {
    display: none;
}

.home-story-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-story-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 3rem 1.5rem 5.2rem;
    color: var(--white);
    background: linear-gradient(transparent, rgba(11, 59, 36, 0.94));
}

.home-story-caption span {
    color: #b7ebc7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-story-caption h3 {
    margin: 0.35rem 0;
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.home-story-caption p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.home-story-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-story-controls > button,
.home-story-indicators button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(11, 59, 36, 0.72);
    color: var(--white);
    cursor: pointer;
}

.home-story-controls > button:hover,
.home-story-indicators button[aria-current="true"] {
    background: var(--gold);
}

.home-story-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-story-indicators button {
    width: 12px;
    height: 12px;
    padding: 0;
}

.home-story-indicators [data-home-slide-toggle] {
    width: 40px;
    height: 40px;
    margin-left: 0.35rem;
}

.home-staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-staff-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 59, 36, 0.06);
}

.home-staff-card > img,
.home-staff-photo-placeholder {
    display: grid;
    width: 100%;
    height: 250px;
    place-items: center;
    object-fit: cover;
    background: var(--cream);
}

.home-staff-photo-placeholder {
    color: var(--gold);
    font-size: 3rem;
}

.home-staff-card-copy {
    padding: 1.2rem;
}

.home-staff-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.8rem;
}

.home-staff-card-copy p {
    margin-bottom: 0.25rem;
}

.home-staff-role {
    color: var(--navy);
    font-weight: 700;
}

.home-staff-bio {
    margin-top: 0.6rem;
    line-height: 1.6;
}

.home-staff-message {
    margin-top: 0.8rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--gold);
    color: var(--text);
    line-height: 1.6;
}

.story-copy {
    padding: 2rem 0;
}

.story-copy h3 {
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    margin-bottom: 1rem;
}

.story-copy p {
    margin-bottom: 1.3rem;
    line-height: 1.8;
}

.highlight-box {
    background: var(--cream);
    border: 1px solid rgba(20, 83, 45, 0.06);
    border-radius: 22px;
    padding: 1.2rem 1.4rem;
    margin-top: 1.5rem;
}

.card,
.news-card,
.event-card,
.facility-card,
.info-panel, .form-card {
    background: var(--white);
    border: 1px solid rgba(20, 83, 45, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 59, 36, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.news-card:hover,
.event-card:hover,
.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.academic-grid,
.facility-grid,
.news-grid,
.event-grid,
.gallery-grid,
.stat-grid {
    display: grid;
    gap: 1.5rem;
}

.academic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.facility-grid,
.news-grid,
.event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-image, .news-card .news-image, .event-card .event-image, .facility-card .facility-image {
    height: 240px;
}

.card-content,
.news-card .content,
.event-card .content {
    padding: 1.2rem;
}

.card-content h3,
.news-card h3,
.event-card h3 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}

.card-content p,
.news-card p,
.event-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--navy);
}

.link-arrow i {
    color: var(--gold);
}

.features-section {
    background: linear-gradient(180deg, #f9f5ee 0%, #ffffff 100%);
}

.feature-item {
    background: var(--white);
    border: 1px solid rgba(20, 83, 45, 0.08);
    border-radius: 22px;
    padding: 1.5rem;
    height: 100%;
}

.feature-item .icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(47, 133, 90, 0.12);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.promo-strip {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 1.5rem;
}

.promo-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.promo-strip h2 {
    color: var(--white);
    font-size: clamp(2.2rem, 3vw, 3.5rem);
}

.callout {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 59, 36, 0.94), rgba(11, 59, 36, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    color: var(--white);
}

.callout-inner {
    padding: 4rem 0;
    text-align: center;
}

.callout h2 {
    color: var(--white);
    font-size: clamp(2.6rem, 4vw, 4.5rem);
}

.callout p {
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem auto 2rem;
    max-width: 640px;
}

.stat-box {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    border-radius: 24px;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

.stat-box strong {
    display: block;
    font-size: 3rem;
    color: var(--gold-soft);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.stat-box span {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero {
    background: linear-gradient(135deg, rgba(11, 59, 36, 0.9), rgba(11, 59, 36, 0.74));
    padding: 6rem 1.5rem 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    opacity: 0.28;
}

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

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 4vw, 5rem);
    margin-bottom: 0.6rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
}

.info-panel {
    padding: 1.6rem;
}

.homework-list {
    display: grid;
    gap: 1rem;
}

.homework-card {
    padding: 1.5rem;
    border: 1px solid rgba(20, 83, 45, 0.1);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 59, 36, 0.06);
}

.homework-card h2,
.homework-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.homework-announcement {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--gold);
    background: rgba(47, 133, 90, 0.1);
}

.homework-announcement p {
    margin-top: 0.35rem;
}

.staff-message-card,
.testimonial-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 59, 36, 0.06);
}

.staff-message-card img {
    width: 76px;
    height: 76px;
    float: left;
    margin: 0 1rem 0.6rem 0;
    border-radius: 50%;
    object-fit: cover;
}

.staff-message-card blockquote,
.testimonial-quote {
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.8;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.testimonial-card > p:last-child {
    margin-bottom: 0;
}

.page-content img {
    display: block;
    max-height: 480px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.page-content > div {
    color: var(--muted);
    line-height: 1.9;
}

.info-panel h3 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.form-card {
    padding: 2rem;
}

.field-label {
    color: var(--navy);
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    border-radius: 14px;
    border: 1px solid rgba(20, 83, 45, 0.12);
    background: #fff;
    box-shadow: none;
    min-height: 48px;
}

.field textarea {
    min-height: 120px;
}

.checkbox input {
    margin-right: 0.5rem;
}

.notice {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.notice.success {
    background: rgba(47, 133, 90, 0.12);
    color: #205b3b;
    border: 1px solid rgba(47, 133, 90, 0.22);
}

.notice.error {
    background: rgba(191, 63, 63, 0.08);
    color: #af2b2b;
    border: 1px solid rgba(191, 63, 63, 0.15);
}

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

.table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-footer {
    background: var(--navy-deep);
    color: #e0eee4;
    padding: 4rem 1.5rem 2rem;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}

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

.site-footer li {
    margin-bottom: 0.6rem;
}

.site-footer a,
.site-footer li,
.site-footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-text {
    max-width: 330px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: min(100%, 360px);
}

.newsletter input {
    flex: 1;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: 0 1rem;
}

.newsletter button {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    padding: 0 1.2rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.admin-shell {
    min-height: 100vh;
    background: #f5f5f3;
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    background: var(--navy-deep);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    padding: 0.5rem 0.7rem 1.6rem;
}

.admin-sidebar-brand span:last-child {
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand strong {
    color: var(--white);
    font: 700 1.5rem 'Cormorant Garamond', serif;
}

.admin-sidebar-brand small {
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6rem;
}

.admin-menu-toggle {
    display: none;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.72);
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
    margin-bottom: 0.35rem;
    font-size: 0.91rem;
    font-weight: 600;
}

.admin-nav-link i {
    width: 1rem;
    color: var(--gold);
    font-size: 0.72rem;
}

.admin-nav-link:hover,
.admin-nav-link.is-current {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-signout {
    margin: 0;
}

.admin-signout button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.admin-main {
    min-width: 0;
    margin-left: 260px;
    padding: 2rem clamp(1rem, 3vw, 3rem);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-topbar h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.admin-topbar .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
}

.admin-user-pill {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
}

.admin-metric-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: 0 10px 24px rgba(11, 59, 36, 0.04);
}

.admin-metric-card p {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-metric-card strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--navy);
    font: 700 2.5rem 'Cormorant Garamond', serif;
}

.admin-panel h2 {
    color: var(--navy);
    font: 700 1.8rem 'Cormorant Garamond', serif;
}

.admin-panel .level {
    margin-bottom: 1rem;
}

.status-chart-row {
    margin-bottom: 0.8rem;
}

.status-chart-row > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.status-chart-row progress {
    height: 0.5rem;
    margin: 0.3rem 0 0;
}

.activity-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--border);
}

.activity-row span {
    color: var(--muted);
    font-size: 0.82rem;
}

.message-card {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.message-card h2 {
    color: var(--navy);
    font-weight: 700;
}

.message-card p {
    margin: 0.7rem 0;
    line-height: 1.65;
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 330px;
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.permission-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.6rem;
    align-items: start;
}

.permission-option input {
    grid-row: span 2;
    margin-top: 0.2rem;
}

.permission-option small {
    color: var(--muted);
}

.admin-panel {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f4eb, #f5f7f5);
    padding: 2rem;
}

.admin-login .card {
    width: min(100%, 460px);
    border-radius: 30px;
    padding: 2rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.staff-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(11, 59, 36, 0.06);
}

.staff-photo {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--cream);
}

.staff-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 4rem;
}

.staff-card-content {
    padding: 1.4rem;
}

.staff-card h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.staff-role {
    color: var(--navy);
    font-weight: 700;
}

.staff-department {
    margin-top: 0.2rem;
    font-size: 0.88rem;
}

.staff-bio {
    margin-top: 0.8rem;
    line-height: 1.65;
}

@media screen and (max-width: 1024px) {
    .academic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facility-grid,
    .news-grid,
    .event-grid,
    .staff-grid,
    .home-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1679px) {
    .navbar-burger {
        display: flex;
    }

    .navbar-menu {
        display: none;
        padding: 0.75rem 1rem 1rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 14px 24px rgba(11, 59, 36, 0.08);
    }

    .navbar-menu.is-active {
        display: block;
    }

    .navbar-start,
    .navbar-end {
        display: block;
    }

    .navbar-menu .navbar-item,
    .navbar-menu .navbar-link {
        min-height: 44px;
    }

    .navbar-item.has-dropdown {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        padding: 0;
    }

    .navbar-item.has-dropdown > .navbar-link {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
    }

    .navbar-dropdown-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
        width: 44px;
        height: 44px;
    }

    .navbar-item.has-dropdown > .navbar-dropdown {
        display: none;
        grid-column: 1 / -1;
        position: static;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0.5rem 0.75rem;
    }

    .navbar-item.has-dropdown.is-open > .navbar-dropdown {
        display: block;
    }

    .navbar-dropdown .navbar-item {
        min-height: 40px;
        white-space: normal;
    }
}

@media screen and (max-width: 768px) {
    .site-header .navbar {
        min-height: 5.5rem;
    }

    .site-header .brand-logo {
        width: 64px;
        height: 64px;
    }

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        width: 100%;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        padding: 0.65rem 0.8rem;
    }

    .admin-sidebar-brand {
        display: inline-flex;
        vertical-align: middle;
        padding: 0.15rem 0.4rem;
    }

    .admin-sidebar-brand .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .admin-sidebar-brand strong {
        font-size: 1.25rem;
    }

    .admin-menu-toggle {
        display: inline-flex;
        float: right;
        align-items: center;
        justify-content: space-between;
        gap: 0.7rem;
        min-height: 44px;
        margin-top: 0.1rem;
        padding: 0.55rem 0.75rem;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 10px;
        background: rgba(255,255,255,0.08);
        color: var(--white);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
    }

    .admin-menu-toggle i {
        color: var(--gold);
        transition: transform 0.2s ease;
    }

    .admin-menu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .admin-sidebar nav {
        display: none;
        clear: both;
        padding-top: 0.65rem;
    }

    .admin-sidebar.is-open nav {
        display: block;
    }

    .admin-nav-link {
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
    }

    .admin-nav-link span {
        font-size: 0.8rem;
    }

    .admin-main {
        margin-left: 0;
        padding: 1.2rem;
    }

    .topbar-inner,
    .promo-strip .container,
    .footer-bottom {
        display: block;
    }

    .topbar-links {
        display: grid;
        gap: 0.4rem;
    }

    .topbar-social {
        margin-top: 0.65rem;
    }

    .section .columns {
        margin-right: 0;
        margin-left: 0;
    }

    .story-grid,
    .academic-grid,
    .facility-grid,
    .news-grid,
    .event-grid,
    .staff-grid,
    .home-staff-grid,
    .gallery-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 11vw, 3.2rem);
    }

    .brand-copy strong {
        font-size: 1.4rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }

    .page-hero {
        padding: 4rem 1rem 3rem;
    }

    .page-hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .story-card img {
        height: auto;
        max-height: 420px;
    }

    .principal-welcome {
        grid-template-columns: 1fr;
    }

    .principal-welcome-photo {
        height: 280px;
    }

    .home-story-slider {
        height: 360px;
    }

    .home-story-caption {
        padding: 2rem 1rem 4.5rem;
    }

    .home-story-caption h3 {
        font-size: 1.65rem;
    }

    .home-story-caption p {
        font-size: 0.9rem;
    }

    .form-card,
    .admin-panel {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .admin-main {
        padding: 1rem;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-topbar .buttons,
    .admin-topbar > .button {
        width: 100%;
    }

    .admin-topbar .buttons .button {
        flex: 1 1 auto;
    }

    .buttons .button,
    .buttons form {
        max-width: 100%;
    }

    .homework-card {
        padding: 1.1rem;
    }

    .newsletter {
        min-width: 0;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 420px) {
    .navbar {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .brand-copy strong {
        font-size: 1.2rem;
    }

    .brand-copy small {
        font-size: 0.52rem;
    }

    .navbar-burger {
        margin-left: auto;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .button {
        max-width: 100%;
        height: auto;
        white-space: normal;
        text-align: center;
    }

    .admin-main {
        padding: 0.75rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .admin-menu-toggle {
        gap: 0.4rem;
        padding: 0.5rem;
        font-size: 0.74rem;
    }

    .newsletter {
        flex-direction: column;
        align-items: stretch;
    }
}
