* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, Segoe UI, Roboto, sans-serif;
    background: linear-gradient(155deg, #f4ecf0 0%, #ecdfe7 50%, #e3d2dd 100%);
    background-attachment: fixed;
    color: #2a2228;
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    background: url("coreImages/corePageIcon.png") center center / 80vmin no-repeat;
    filter: saturate(0.95);
    opacity: 0;
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* fade the watermark in once the hero has scrolled out of view */
body.scrolled-past-hero::before {
    opacity: 0.2;
}

/* on mobile there's no sidebar, so center across the full screen */
@media (max-width: 768px) {
    body::before {
        left: 0;
        background-size: 70vmin;
    }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(247, 243, 245, 0.35);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
}

/* ===== SIDEBAR LAYOUT ===== */
:root {
    --sidebar-w: 264px;
}

/* Frosted fixed sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 34px 22px 26px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 40px rgba(95, 20, 58, 0.06);
    transition: transform 0.35s ease;
}

.sidebar-top {
    text-align: center;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(95, 20, 58, 0.1);
}

.sidebar-logo {
    width: 70px;
    height: auto;
    margin-bottom: 14px;
}

.sidebar-name {
    color: rgba(95, 20, 58, 0.98);
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.sidebar-tag {
    font-size: 0.78rem;
    color: #7a6f75;
    margin-top: 6px;
}

/* Vertical menu */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 28px;
    flex: 1;
}

.nav-link {
    color: #4a4047;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    border-left: 3px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover {
    background-color: rgba(95, 20, 58, 0.06);
    color: rgba(95, 20, 58, 0.98);
}

/* Active link (scroll-spy) */
.nav-link.active {
    background-color: rgba(95, 20, 58, 0.09);
    color: rgba(95, 20, 58, 0.98);
    border-left-color: rgba(95, 20, 58, 0.98);
    font-weight: bold;
}

.sidebar-foot {
    text-align: center;
    border-top: 1px solid rgba(95, 20, 58, 0.1);
    padding-top: 22px;
}

.sidebar-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
}

.sidebar-mini {
    font-size: 0.72rem;
    color: #8a7f85;
    word-break: break-all;
}

/* Content shifted right of the sidebar */
.content-wrap {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* Mobile top bar — hidden on desktop */
.mobile-bar {
    display: none;
}

.mobile-brand {
    color: rgba(95, 20, 58, 0.98);
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: rgba(95, 20, 58, 0.98);
    font-size: 1.8rem;
    cursor: pointer;
}


.hero {
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 30px 40px;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #2a2228;
    animation: fadeUp 1.1s ease;
}

.hero-logo {
    width: 76px;
    max-width: 100%;
    margin-bottom: 24px;
    filter: none;
}

.hero-kicker {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    color: rgba(95, 20, 58, 0.9);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.12;
    font-weight: normal;
    color: #2a2228;
}

.hero-text {
    font-size: 1.12rem;
    max-width: 580px;
    margin: 0 auto 18px;
    color: #5a4f55;
}

.hero-rotating-line {
    font-size: 1rem;
    margin-bottom: 34px;
    color: rgba(95, 20, 58, 0.75);
    min-height: 24px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary {
    background-color: rgba(95, 20, 58, 0.98);
    color: white;
}

.btn-primary:hover {
    background-color: rgb(120, 28, 74);
}

.btn-secondary {
    background-color: transparent;
    color: rgba(95, 20, 58, 0.98);
    border: 1px solid rgba(95, 20, 58, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(95, 20, 58, 0.06);
}

.scroll-indicator {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(3px);
    opacity: 1;
}

.quick-info {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0 60px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

/* gentle continuous float — staggered per card so they drift independently */
@keyframes floatCard {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-16px); }
    100% { transform: translateY(0); }
}

.info-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 360px;
    background-color: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 40px 32px;
    min-height: 240px;
    box-shadow: 0 14px 30px rgba(95, 20, 58, 0.10);
    animation: floatCard 5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:nth-child(1) { animation-delay: 0s; }
.info-card:nth-child(2) { animation-delay: 1.1s; }
.info-card:nth-child(3) { animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
    .info-card {
        animation: none;
    }
}

/* pause the sibling cards' float while interacting with the group */
.quick-info:hover .info-card {
    animation-play-state: paused;
}

/* the hovered card stops floating entirely so the zoom holds steady
   (a paused animation still overrides :hover transform, so we cancel it) */
.info-card:hover {
    animation: none;
    transform: translateY(-10px) scale(1.06);
    box-shadow: 0 26px 46px rgba(95, 20, 58, 0.18);
    z-index: 2;
}

.info-card h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: rgba(95, 20, 58, 0.98);
}

.info-card p {
    font-size: 1.12rem;
    color: #444;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    /* manual swipe on smaller screens */
    .quick-info {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(95, 20, 58, 0.5) rgba(95, 20, 58, 0.08);
        padding-bottom: 20px;
    }

    .quick-info::-webkit-scrollbar {
        height: 7px;
    }

    .quick-info::-webkit-scrollbar-thumb {
        background: rgba(95, 20, 58, 0.5);
        border-radius: 999px;
    }

    .info-card {
        flex: 0 0 280px;
        max-width: 280px;
        padding: 34px 28px;
    }
}

@media (max-width: 768px) {
    .mobile-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 110;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        background: rgba(247, 243, 245, 0.8);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(95, 20, 58, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        padding-top: 70px;
        overflow-y: auto;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content-wrap {
        margin-left: 0;
        padding-top: 56px;
    }

    .hero-text {
        font-size: 1rem;
    }
}
.inner-header {
    position: relative;
    background: rgba(95, 20, 58, 0.98);
}

.inner-page {
    background: #f6f4f4;
    min-height: 100vh;
}

.page-hero {
    position: relative;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(35, 18, 29, 0.75), rgba(35, 18, 29, 0.75)),
        url("coreImages/corePageIcon.png") center center / cover no-repeat;
}

.small-hero {
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.form-section,
.schools-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 0 90px;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(95, 20, 58, 0.10);
    padding: 36px 28px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-heading h2 {
    font-size: 2rem;
    color: rgba(95, 20, 58, 0.98);
    margin-bottom: 12px;
}

.section-heading p {
    color: #555;
    font-size: 1rem;
}

.styled-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 14px;
    border: 1px solid #d5d1d1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(95, 20, 58, 0.98);
    box-shadow: 0 0 0 3px rgba(95, 20, 58, 0.12);
}

.full-width {
    width: 100%;
    margin-bottom: 22px;
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-message {
    min-height: 24px;
    font-weight: 600;
    color: rgba(95, 20, 58, 0.98);
}

.schools-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.school-banner {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 3px solid rgba(95, 20, 58, 0.55);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(95, 20, 58, 0.10);
    padding: 30px 34px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.banner-main {
    flex: 1 1 320px;
}

.banner-main h3 {
    color: rgba(95, 20, 58, 0.98);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.banner-main p {
    color: #4a4a4a;
    margin-bottom: 14px;
}

.school-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.school-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.school-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(95, 20, 58, 0.85);
    font-weight: 700;
}

.banner-meta {
    flex: 1 1 260px;
}

.banner-meta .btn {
    white-space: nowrap;
}

.school-meta {
    list-style: none;
    margin-bottom: 18px;
    padding-left: 0;
}

.school-meta li {
    margin-bottom: 10px;
    color: #333;
}

.schools-cta {
    text-align: center;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(95, 20, 58, 0.10);
    padding: 36px 24px;
}

.schools-cta h2 {
    color: rgba(95, 20, 58, 0.98);
    margin-bottom: 10px;
}

.schools-cta p {
    margin-bottom: 20px;
    color: #555;
}

/* Contact modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: white;
    border-radius: 18px;
    padding: 34px 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.35s ease;
}

.modal-box h2 {
    color: rgba(95, 20, 58, 0.98);
    margin-bottom: 8px;
}

.modal-box p {
    color: #555;
    margin-bottom: 12px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #444;
}

.contact-details {
    margin-bottom: 18px;
}

.compact-form .form-group {
    margin-bottom: 14px;
}

.nav-contact {
    border: none;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .school-banner {
        gap: 18px;
        padding: 26px 24px;
    }
}

@media (max-width: 768px) {
    .form-wrapper,
    .schools-cta,
    .modal-box {
        padding: 24px 18px;
    }
}

.step-progress {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.step-pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: #ece7e7;
    color: #555;
    font-weight: 600;
    transition: all 0.25s ease;
}

.step-pill.active {
    background: rgba(95, 20, 58, 0.98);
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    color: rgba(95, 20, 58, 0.98);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.consent-box,
.checklist-box {
    background: #f8f4f5;
    border: 1px solid #e6d9df;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
}

.checklist-box h4 {
    color: rgba(95, 20, 58, 0.98);
    margin-bottom: 14px;
}

.checklist-box label,
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
}

.checklist-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #6a5f65;
    line-height: 1.45;
    background: rgba(95, 20, 58, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
}

.input-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

.field-error {
    display: block;
    color: #c62828;
    font-size: 0.85rem;
    margin-top: 4px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .step-actions {
        justify-content: center;
    }

    .step-actions .btn {
        width: 100%;
        text-align: center;
    }
}
/* ============================================================
   SINGLE-PAGE LAYOUT ADDITIONS
   ============================================================ */

html {
    scroll-behavior: smooth;
}

/* Offset anchored sections so they aren't hidden behind the fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Generic content section wrapper (replaces old per-page padding) */
.section-block {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

/* Full-bleed alternating background band */
.section-block.alt-bg {
    width: 100%;
    max-width: none;
    background: rgba(95, 20, 58, 0.035);
    padding-left: 5%;
    padding-right: 5%;
}

.section-block.alt-bg > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick-info horizontal strip: keep bottom room for the scrollbar */
.quick-info {
    padding: 0 0 18px;
}

/* Center the form wrapper within the apply section */
#apply .form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- Contact section ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: rgba(95, 20, 58, 0.98);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: #555;
    margin-bottom: 14px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(95, 20, 58, 0.10);
    padding: 30px 26px;
}

.contact-card .form-group {
    margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(95, 20, 58, 0.12);
    color: #6a5f65;
    text-align: center;
    padding: 32px 20px;
    font-size: 0.9rem;
}

/* ---------- Back-to-top button ---------- */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(95, 20, 58, 0.98);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 90;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgb(120, 28, 74);
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-block {
        padding: 60px 0;
    }
}