:root {
    --color-primary: #672323;
    --color-primary-dark: #421717;
    --color-secondary: #8b4b4b;
    --color-accent: #c9952e;
    --color-accent-dark: #8a621a;
    --color-soft-blue: #eaf3f9;
    --color-soft-ivory: #faf8f3;
    --color-surface: #ffffff;
    --color-text: #1d2935;
    --color-text-muted: #5f6b76;
    --color-border: #dce3e8;
    --font-display: Georgia, serif;
    --font-body: Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(46, 24, 24, 0.06), 0 2px 8px rgba(46, 24, 24, 0.08);
    --shadow-md: 0 2px 4px rgba(46, 24, 24, 0.07), 0 8px 24px rgba(46, 24, 24, 0.12);
    --shadow-lg: 0 4px 8px rgba(46, 24, 24, 0.08), 0 16px 40px rgba(46, 24, 24, 0.18);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--color-text);
    background-color: var(--color-soft-ivory);
    font-family: var(--font-body);
    line-height: 1.65;
}

main {
    flex: 1;
}

a {
    color: var(--color-secondary);
}

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

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: var(--color-primary-dark);
    transform: translateY(-100%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
}

.site-identity:hover {
    color: var(--color-primary-dark);
}

.site-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-navbar .container {
    position: relative;
}

/* Ribbon badge hanging below the navbar, Doon School style.
   The ribbon shape lives on ::before and the drop-shadow on the badge
   itself: clip-path on the same element would clip the shadow away. */
.site-logo-badge {
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 6.25rem;
    padding-bottom: 0.9rem;
    filter: drop-shadow(0 2px 4px rgba(46, 24, 24, 0.12)) drop-shadow(0 8px 16px rgba(46, 24, 24, 0.28));
}

.site-logo-badge::before {
    position: absolute;
    inset: 0;
    background-color: var(--color-surface);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.8rem), 50% 100%, 0 calc(100% - 0.8rem));
    content: "";
}

.site-logo {
    position: relative;
    width: calc(100% - 0.5rem);
    height: auto;
}

.site-identity.has-logo {
    padding-left: 5rem;
}

.has-site-logo .campus-highlights-panel {
    margin-left: 4.75rem;
}

/* Mobile: brand on the left, hamburger on the right; the school name
   shrinks and truncates so the toggler always stays visible. */
@media (max-width: 991.98px) {
    .site-name {
        overflow: hidden;
        font-size: 1.0625rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-brand.site-identity {
        min-width: 0;
        margin-right: 0.5rem;
    }
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
    transition: box-shadow 0.2s ease;
}

.site-navbar.is-scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-toggler {
    border-color: var(--color-border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 149, 46, 0.35);
}

.navbar-nav {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 2px;
    background-color: var(--color-accent);
    content: "";
}

.dropdown-menu {
    min-width: 13rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    padding: 0.625rem 1rem;
    color: var(--color-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--color-primary);
    background-color: var(--color-soft-blue);
}

.page-banner {
    padding: 2.5rem 0;
    color: #ffffff;
    background: var(--color-primary);
}

.page-banner .breadcrumb {
    margin-bottom: 1rem;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a,
.page-banner .breadcrumb-item.active,
.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.82);
}

.page-banner-title,
.section-heading-title {
    font-family: var(--font-display);
    font-weight: 700;
}

.page-banner-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-banner-subtitle {
    max-width: 42rem;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.86);
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading-eyebrow {
    margin-bottom: 0.375rem;
    color: var(--color-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading-title {
    margin-bottom: 0;
    color: var(--color-primary);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.home-section {
    padding: 4rem 0;
    background-color: var(--color-surface);
}

.home-section-soft {
    background-color: var(--color-soft-blue);
}

.home-section-primary {
    color: #ffffff;
    background-color: var(--color-primary);
}

.home-section-primary .section-heading-eyebrow {
    color: var(--color-accent);
}

.home-section-primary .section-heading-title {
    color: #ffffff;
}

/* Parallax bands: decorative layers fixed to the viewport so section
   content appears to float over them while scrolling. */
.parallax-band {
    background-image:
        radial-gradient(42rem 42rem at 85% 15%, rgba(201, 149, 46, 0.18), transparent 62%),
        radial-gradient(34rem 34rem at 8% 90%, rgba(103, 35, 35, 0.14), transparent 62%),
        repeating-linear-gradient(135deg, rgba(103, 35, 35, 0.025) 0 1px, transparent 1px 2.5rem);
    background-attachment: fixed;
}

.parallax-band-dark {
    background-image:
        radial-gradient(46rem 46rem at 88% 10%, rgba(201, 149, 46, 0.22), transparent 62%),
        radial-gradient(36rem 36rem at 6% 95%, rgba(255, 255, 255, 0.09), transparent 62%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 2.5rem);
    background-attachment: fixed;
}

.home-hero {
    color: #ffffff;
    background-color: var(--color-primary-dark);
}

.hero-slide {
    display: flex;
    align-items: end;
    min-height: max(26rem, calc(100vh - var(--hero-offset, 9rem)));
    min-height: max(26rem, calc(100dvh - var(--hero-offset, 9rem)));
    padding: 3.5rem 0;
    background:
        linear-gradient(115deg, rgba(66, 23, 23, 0.95), rgba(103, 35, 35, 0.67)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 2rem);
}

.hero-slide-image {
    background-position: center;
    background-size: cover;
}

.hero-subtitle {
    max-width: 38rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.0625rem;
}

.hero-slide-image .hero-eyebrow,
.hero-slide-image h1,
.hero-slide-image .hero-slide-title,
.hero-slide-image .hero-subtitle {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-content {
    padding-bottom: 2rem;
}

.carousel-item.active .hero-content {
    animation: hero-content-in 0.9s ease-out both;
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero h1,
.hero-slide-title,
.home-cta h2 {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-slide-title {
    max-width: 52rem;
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 12%;
}

.home-hero .carousel-indicators {
    margin-bottom: 1.25rem;
}

.campus-highlights {
    padding: 0.75rem 0;
    background-color: var(--color-soft-ivory);
}

.campus-highlights-panel {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.campus-highlights-title {
    margin: 0;
    padding: 0.6rem 1rem;
    color: #ffffff;
    background-color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 700;
}

.campus-highlights-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.campus-highlights-track {
    display: inline-flex;
    min-width: max-content;
    animation: campus-highlights-scroll 28s linear infinite;
}

.campus-highlights-track span {
    padding: 0.75rem 1rem;
    color: var(--color-primary-dark);
    font-size: 0.9375rem;
}

.campus-highlights-track span::after {
    display: inline-block;
    margin-left: 2rem;
    color: var(--color-accent);
    font-size: 0.625rem;
    vertical-align: 0.125rem;
    content: "\25C6";
}

.campus-highlights-ticker:hover .campus-highlights-track,
.campus-highlights-ticker:focus .campus-highlights-track {
    animation-play-state: paused;
}

@keyframes campus-highlights-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1rem;
    border: 1px dashed var(--color-border);
    border-radius: 0.75rem;
    color: var(--color-text-muted);
    background-color: var(--color-surface);
    font-size: 0.9375rem;
    text-align: center;
}

.placeholder-media {
    min-height: 16rem;
    color: var(--color-secondary);
    background:
        linear-gradient(135deg, rgba(46, 111, 167, 0.1), rgba(201, 149, 46, 0.14)),
        var(--color-surface);
}

.placeholder-media-tall {
    min-height: 22rem;
}

.placeholder-media-portrait {
    min-height: 22rem;
}

.placeholder-media-gallery {
    min-height: 12rem;
}

.placeholder-copy {
    min-height: 12rem;
    justify-content: flex-start;
    text-align: left;
}

.placeholder-card,
.placeholder-content-card,
.placeholder-statistic {
    min-height: 10rem;
    border-style: solid;
    box-shadow: var(--shadow-sm);
}

.placeholder-content-card {
    min-height: 15rem;
    justify-content: flex-start;
    text-align: left;
}

.placeholder-card-light,
.placeholder-statistic {
    color: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.placeholder-statistic {
    min-height: 8rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.page-section {
    padding: 3rem 0;
    background-color: var(--color-surface);
}

.page-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.page-content {
    max-width: 70ch;
}

.page-content h2,
.page-content h3 {
    margin: 1.75rem 0 0.75rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 700;
}

.page-content h2:first-child,
.page-content h3:first-child {
    margin-top: 0;
}

.page-content h2 {
    font-size: 1.5rem;
}

.page-content h3 {
    font-size: 1.1875rem;
}

.page-content blockquote {
    margin: 1.25rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-accent);
    font-style: italic;
}

/* Homepage gallery collage: one large hero tile plus smaller tiles */
.home-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mosaic-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mosaic-tile:hover,
.mosaic-tile:focus {
    box-shadow: var(--shadow-lg), 0 24px 56px rgba(46, 24, 24, 0.22);
    transform: translateY(-0.375rem);
}

.mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-tile:hover img {
    transform: scale(1.06);
}

.mosaic-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2rem 0.875rem 0.625rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(20, 8, 8, 0.78), rgba(20, 8, 8, 0));
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mosaic-tile:hover .mosaic-label,
.mosaic-tile:focus .mosaic-label {
    opacity: 1;
}

.mosaic-more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(33, 12, 12, 0.62);
    transition: background-color 0.25s ease;
}

.mosaic-tile:hover .mosaic-more {
    background-color: rgba(33, 12, 12, 0.75);
}

.mosaic-more-count {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.mosaic-more-label {
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .home-gallery-mosaic {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .home-gallery-mosaic .mosaic-tile:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .home-gallery-mosaic .mosaic-tile:first-child .mosaic-label {
        font-size: 1rem;
    }
}

/* Gallery: album cards */
.album-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.album-card:hover,
.album-card:focus {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.album-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.album-card:hover .album-card-image {
    transform: scale(1.06);
}

.album-card-image-empty {
    background:
        linear-gradient(135deg, rgba(103, 35, 35, 0.12), rgba(201, 149, 46, 0.16)),
        var(--color-soft-ivory);
}

.album-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(20, 8, 8, 0.82), rgba(20, 8, 8, 0));
}

.album-card-title {
    margin-bottom: 0.125rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.album-card-count {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
}

/* Gallery: masonry media grid */
.gallery-masonry {
    columns: 2;
    column-gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
    transition: box-shadow 0.25s ease;
}

.gallery-item:hover,
.gallery-item:focus {
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-video img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(20, 8, 8, 0.6);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-play::after {
    position: absolute;
    top: 50%;
    left: 55%;
    border-top: 0.55rem solid transparent;
    border-bottom: 0.55rem solid transparent;
    border-left: 0.9rem solid #ffffff;
    transform: translate(-50%, -50%);
    content: "";
}

.gallery-item-video:hover .gallery-play {
    background-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem 1rem 0.75rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(20, 8, 8, 0.78), rgba(20, 8, 8, 0));
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        columns: 3;
    }
}

@media (min-width: 1200px) {
    .gallery-masonry {
        columns: 4;
    }
}

.home-figure-wrap {
    position: relative;
}

.home-figure {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

/* Desktop: the image is exactly as tall as the text column and keeps its
   own aspect ratio, so its width adjusts (centered in the column). */
@media (min-width: 992px) {
    .home-figure-wrap {
        height: 100%;
        min-height: 20rem;
    }

    .home-figure {
        position: absolute;
        top: 0;
        left: 50%;
        width: auto;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateX(-50%);
    }
}

.section-copy p {
    max-width: 65ch;
}

.section-copy p:last-child {
    margin-bottom: 0;
}

.principal-quote {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-accent);
}

.principal-quote p {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: italic;
}

.principal-quote footer {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.principal-quote footer strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.0625rem;
}

.value-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
}

.value-card h3 {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.value-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9375rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
}

.news-card-date {
    margin-bottom: 0.5rem;
    color: var(--color-accent-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-card h3,
.news-card-heading {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.news-card-heading a {
    color: inherit;
    text-decoration: none;
}

.news-card-heading a:hover,
.news-card-heading a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.news-card-image {
    display: block;
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-detail-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

/* Homepage achievers slider */
.toppers-swiper {
    padding-bottom: 2.5rem;
}

.topper-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 3 / 4;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.topper-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.topper-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.topper-card:hover .topper-card-image {
    transform: scale(1.05);
}

.topper-card-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
}

.topper-card-group {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background-color: var(--color-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topper-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(20, 8, 8, 0.85), rgba(20, 8, 8, 0));
}

.topper-card-name {
    margin-bottom: 0.125rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
}

.topper-card-achievement {
    margin-bottom: 0;
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
}

.why-swiper {
    padding-bottom: 2.5rem;
}

.why-swiper .swiper-slide {
    height: auto;
}

.why-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.why-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-accent);
}

.toppers-swiper .swiper-pagination-bullet {
    background-color: var(--color-primary);
}

.toppers-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-accent);
}

.admin-topper-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    aspect-ratio: 1;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.event-card-body {
    display: flex;
    gap: 1rem;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.5rem;
    color: #ffffff;
    background-color: var(--color-primary);
    line-height: 1.1;
}

.event-date-day {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.event-date-month {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.download-group + .download-group,
.achievers-group + .achievers-group {
    margin-top: 3rem;
}

.download-group-title {
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
}

.download-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.download-item:hover {
    box-shadow: var(--shadow-md);
}

.download-item + .download-item {
    margin-top: 0.75rem;
}

.download-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-item-ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    color: var(--color-primary);
    background-color: var(--color-soft-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.download-item-title {
    font-weight: 600;
}

.download-item-meta {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.contact-card {
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.contact-card-title {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
}

.contact-item + .contact-item {
    margin-top: 1.25rem;
}

.contact-item-label {
    margin-bottom: 0.25rem;
    color: var(--color-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-item-value {
    margin-bottom: 0;
}

.contact-item-value a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-item-value a:hover,
.contact-item-value a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-socials a {
    color: var(--color-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.contact-socials a:hover,
.contact-socials a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-map {
    overflow: hidden;
    height: 100%;
    min-height: 24rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 24rem;
    border: 0;
}

.sidebar-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.news-card p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 8rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.stat-tile-value {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-tile-label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9375rem;
}

.btn-outline-school,
.btn-accent {
    min-height: 44px;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

.btn-outline-school {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}

.btn-outline-school:hover,
.btn-outline-school:focus {
    border-color: var(--color-primary);
    color: #ffffff;
    background-color: var(--color-primary);
}

.btn-accent {
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    background-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    border-color: #e0b257;
    color: var(--color-primary-dark);
    background-color: #e0b257;
}

.home-cta {
    padding: 3rem 0;
    color: #ffffff;
    background-color: var(--color-primary-dark);
}

.home-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.site-footer {
    padding: 3rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    background-color: var(--color-primary-dark);
}

.footer-school-name,
.footer-heading {
    color: #ffffff;
}

.footer-school-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-heading {
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact li {
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus {
    color: #e0b257;
    text-decoration: underline;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.875rem;
}

.admin-body {
    display: block;
    background-color: var(--color-soft-ivory);
}

.admin-navbar {
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-primary);
}

.admin-brand {
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
}

.admin-brand:hover,
.admin-brand:focus {
    color: #ffffff;
}

.admin-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link:focus {
    color: #ffffff;
}

.admin-main {
    padding: 2rem 0.5rem;
}

.admin-page-title {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-module-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.admin-module-title {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.admin-module-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.admin-thumb {
    width: 80px;
    height: 48px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.admin-image-preview {
    max-width: 20rem;
    max-height: 10rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    object-fit: cover;
}

.admin-form-section {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.admin-form-section:first-of-type {
    margin-top: 0;
}

.admin-favicon-preview {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.admin-form-card {
    max-width: 52rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.admin-form-card-wide {
    max-width: 64rem;
}

#editor {
    min-height: 18rem;
    background-color: var(--color-surface);
}

.admin-album-cover {
    width: 100%;
    border-radius: 0.5rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.admin-album-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.admin-media-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-media-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.admin-media-badge {
    position: absolute;
    bottom: 0.375rem;
    left: 0.375rem;
}

.admin-media-delete {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    padding: 0 0.5rem;
    line-height: 1.5;
}

.admin-login-body {
    display: flex;
    min-height: 100vh;
}

.admin-login-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-login-card {
    width: 100%;
    max-width: 24rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-lg);
}

.admin-login-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-primary);
    font-weight: 700;
}

.admin-login-title {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.admin-login-subtitle {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    text-align: center;
}

@media (min-width: 992px) {
    .site-name {
        font-size: 1.375rem;
    }

    .site-logo-badge {
        width: 5.25rem;
        height: 8rem;
        padding-bottom: 1.1rem;
    }

    .site-logo-badge::before {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), 50% 100%, 0 calc(100% - 1rem));
    }

    .site-logo {
        width: calc(100% - 0.5rem);
    }

    .site-identity.has-logo {
        padding-left: 6.25rem;
    }

    .has-site-logo .campus-highlights-panel {
        margin-left: 5.75rem;
    }

    .navbar-nav {
        gap: 0.25rem;
        padding: 0;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0.55rem;
    }

    .navbar-nav .nav-link.active::after {
        right: 0.55rem;
        bottom: 0;
        left: 0.55rem;
    }

    .page-banner {
        padding: 4rem 0;
    }

    .home-section {
        padding: 5.5rem 0;
    }

    .hero-slide {
        padding: 5rem 0;
    }

    .campus-highlights-panel {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .campus-highlights-title {
        display: flex;
        align-items: center;
        min-width: 11rem;
    }

    .placeholder-media-portrait {
        min-height: 25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .campus-highlights-track {
        min-width: 0;
        animation: none;
        transform: none;
    }

    .parallax-band,
    .parallax-band-dark {
        background-attachment: scroll;
    }

    .campus-highlights-track span::after {
        content: none;
    }

    .campus-highlights-ticker {
        white-space: normal;
    }

    .campus-highlights-track span[aria-hidden="true"] {
        display: none;
    }
}
