:root {
    --primary: rgba(32,54,140,1);
    --primary-hover: #1b3c5f;
    --secondary: #ffcc33;
    --secondary-hover: #e0b42c;
    --tertiary: #f5f7fa;
    --dark: #1f2e40;
    --light: #ffffff;
}

@font-face {
    font-family: 'Copperplate CC';
    /* Adjust the path below to match where you placed the file in wwwroot */
    src: url('../vendor/fonts/copperplate-cc.bold-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

html .bg-primary,
html .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

html .btn-primary:hover,
html .btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

html .text-primary {
    color: var(--primary) !important;
}

html .bg-secondary,
html .btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

html .text-secondary {
    color: var(--secondary) !important;
}

body {
    font-size: 17px;
    line-height: 1.65;
    color: #2c3d50;
}

.school-logo {
    letter-spacing: -0.02em;
}

#header .header-nav-main nav > ul > li > a {
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.86rem;
    padding: 0.45rem 0;
    margin-left: 2rem;
    border-radius: 0;
    background: transparent !important;
    color: #ffffff !important;
}

#header .header-nav-main nav > ul > li:first-child > a {
    margin-left: 0;
}

#header .header-nav-main nav > ul > li:hover > a,
#header .header-nav-main nav > ul > li.active > a,
#header .header-nav-main nav > ul > li > a.active,
#header .header-nav-main nav > ul > li > a:focus,
#header .header-nav-main nav > ul > li > a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 991px) {
    #header .header-nav-main nav > ul > li.dropdown.open > a,
    #header .header-nav-main nav > ul > li.dropdown.accessibility-open > a,
    #header .header-nav-main nav > ul > li.open > a,
    #header .header-nav-main nav > ul > li.active > a,
    #header .header-nav-main nav > ul > li > a.active {
        color: var(--dark) !important;
        background: #ffffff !important;
    }

    #header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a,
    #header .header-nav-main nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > a {
        color: var(--dark) !important;
    }
}

.school-hero-section {
    background: #ffffff;
}

.school-aerial-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.school-hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.school-tagline {
    max-width: 280px;
}

.school-feature-section h2 {
    letter-spacing: -0.01em;
}

.school-feature-image {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.school-testimonial-image {
    width: 190px;
    height: 190px;
    object-fit: cover;
}

.school-event-date {
    min-width: 48px;
}

.school-news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.school-visit-cta {
    background: linear-gradient(120deg, #1f4268 0%, #2d5d8e 100%);
}

.school-footer-soar {
    max-width: 180px;
}

#footer .list li {
    margin-bottom: 0.45rem;
}

#footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.carousel-hero-copy {
    position: relative;
    padding: 0 0 3.5rem;
}

.carousel-hero-copy .hero-copy-inner {
    position: relative;
    max-width: 700px;
    padding: 2.25rem 2.5rem 2.25rem 0;
}

.carousel-hero-copy .hero-copy-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: -18rem;
    bottom: 0;
    left: -100vw;
    background: linear-gradient(90deg, rgba(16, 28, 43, 0.78) 0%, rgba(16, 28, 43, 0.5) 58%, rgba(16, 28, 43, 0) 100%);
}

.carousel-hero-copy h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.school-about-spotlight {
    background: #f3f3f3;
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
}

.school-about-spotlight .school-spotlight-copy h2 {
    font-size: clamp(2.7rem, 4vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #203d66;
    margin-bottom: 1.75rem;
}

.school-about-spotlight .school-spotlight-copy p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #2d3a4d;
    margin-bottom: 1.5rem;
}

.school-photo-frame {
    position: relative;
    display: inline-block;
    width: min(100%, 560px);
    padding: 0.9rem 0.9rem 1.15rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #f2d59b 0%, #d09a32 100%);
    box-shadow: 0 18px 30px rgba(42, 59, 84, 0.12);
}

.school-photo-frame img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 480px;
    border-radius: 0.8rem;
    object-fit: cover;
    object-position: center;
}

.school-photo-badge {
    position: absolute;
    right: 1.25rem;
    bottom: -0.75rem;
    background: #1d4b8f;
    color: #ffffff;
    border-radius: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 14px 25px rgba(29, 75, 143, 0.22);
}

.school-about-spotlight .btn {
    min-width: 100%;
    max-width: 390px;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    font-weight: 800;
    text-transform: uppercase;
}

.school-about-spotlight {
    background: #fff;
}

#footer {
    margin-top: 0;
    background-color: var(--primary);
}




.news-events-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #d7b56a 0%, #d7b56a 100%);
    padding-bottom: 1em;
}

.news-events-section .shape-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 170px;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    background-color: white;
}

/* Theme's shape-divider svg positioning only applies when the parent has
   the "section section-with-shape-divider" classes, which this section lacks. */
.news-events-section .shape-divider svg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate3d(-50%, 0, 0);
}

.news-events-section .container {
    position: relative;
    z-index: 2;
}

.news-events-section > .container {
    position: relative;
    z-index: 1;
}

.news-events-header-wrap {
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.news-events-header {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.05rem;
    padding: 0.8rem 1.5rem 0.85rem 1rem;
    box-shadow: 0 12px 26px rgba(18, 41, 69, 0.12);
}

.news-events-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #d8e6ff;
    font-size: 1rem;
}

.news-events-header h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
}

.news-event-card {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid #d1b267;
    border-radius: 1.5rem;
    min-height: 100%;
    padding: 1.45rem 1.3rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 20px rgba(32, 55, 88, 0.04);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 120px;
    min-height: 120px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(180deg, #1a6a4d 0%, #0f5d42 100%);
    border-radius: 1rem;
    color: #fff;
    padding: 0.7rem 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
}

.event-date.green {
    background: linear-gradient(180deg, #1d7d59 0%, #0f5c42 100%);
}

.event-date .month {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.event-date .day {
    font-size: 2.25rem;
    letter-spacing: -0.08em;
    margin-top: 0.25rem;
    font-weight: 900;
}

.news-event-card h4 {
    margin: 0 0 1rem;
    color: #163a68;
    font-size: clamp(1.2rem, 1.7vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 800;
    min-height: 3.6em;
}

.event-meta {
    color: #264461;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.event-meta i {
    font-size: 0.8rem;
    color: #1d4e86;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 1px solid #c49945;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: #163a68;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: #163a68;
    border-color: #163a68;
    color: #fff;
    text-decoration: none;
}

.news-event-controls {
    margin-top: 1.35rem;
    padding-left: 0.4rem;
}

.event-arrow {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    border: 1px solid #c6963f;
    background: rgba(255, 255, 255, 0.2);
    color: #163a68;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-arrow:hover {
    background: #163a68;
    color: #fff;
    border-color: #163a68;
}

.news-calendar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 0.9rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-left: 0.6rem;
}

.news-feature-card {
    position: relative;
    border: 2px solid #d1b267;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 26px rgba(35, 52, 72, 0.08);
}

.feature-image-wrap {
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
    overflow: hidden;
    background: #d7dfe8;
}

.feature-image-wrap img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.feature-copy {
    padding: 1.25rem 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.14);
}

.feature-copy h4 {
    margin: 0;
    color: #152d4d;
    font-size: clamp(1.7rem, 2vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 800;
}

@media (max-width: 991px) {
    body {
        font-size: 15px;

    }

    #header .header-nav-main nav > ul > li > a {
        margin-left: 0;
    }

    .school-aerial-image {
        max-height: 250px;
    }

    .school-hero-image,
    .school-feature-image {
        aspect-ratio: 4 / 3;
    }

    .school-tagline {
        max-width: 250px;
    }

    .carousel-hero-copy {
        padding-bottom: 2rem;
    }

    .carousel-hero-copy .hero-copy-inner {
        padding: 1.5rem 1.5rem 1.5rem 0;
    }

    .school-about-spotlight {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .school-about-spotlight .school-spotlight-copy h2 {
        font-size: clamp(2.25rem, 7vw, 4rem);
    }
}

@media (max-width: 575px) {
    .school-hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .school-feature-section h2,
    .school-visit-cta h2 {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }

    .carousel-hero-copy {
        padding-bottom: 1rem;
    }

    .carousel-hero-copy .hero-copy-inner {
        padding: 1.25rem 1rem 1.25rem 1rem;
    }

    .carousel-hero-copy h2 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }
}


/* 1. Allow the logo to break out of the header bounds */
#header .header-body {
    overflow: visible !important;
    background-color: var(--primary);
}

/* 2. Position the brand group so the crest can overhang the hero */
#header .header-logo {
    position: absolute;
    top: 8px;
    left: 15px; /* Aligns the logo perfectly with the edge of your content grid */
    z-index: 9999;
    margin: 0;

    width: 116px;
    height: auto;
    filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, 0.35));
}


.school-wordmark {
    display: block;
    position: relative;
    margin-left: 0.8rem;
    color: #ffffff;
    font-family: "Copperplate CC", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

/* 4. Ensure the navigation pushes to the right */
#header .header-container .header-row {
    justify-content: flex-end; 
}

@media (max-width: 991px) {
    #header .header-column:first-child .header-row > a {
        display: flex;
        align-items: center;
        padding-left: 7rem;
    }

    .school-wordmark {
        top: -0.65rem;
        margin-left: 0.75rem;
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    .custom-hanging-logo {
        width: 100px;
    }
}

@media (max-width: 575px) {
    #header .header-logo {
        top: 10px;
        left: 10px;
        width: 96px;
    }

    #header .header-column:first-child .header-row > a {
        padding-left: 5.9rem;
    }

    .school-wordmark {
        top: -0.25rem;
        margin-left: 0.65rem;
        font-size: 1.2rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .custom-hanging-logo {
        width: 100px;
    }
}

@media (max-width: 390px) {
    #header .header-logo {
        top: 10px;
        left: 10px;
    }

    .school-wordmark {
        top: -0.25rem;
        margin-left: 0.65rem;
        font-size: 1rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .custom-hanging-logo {
        width: 100px;
    }
}