/* =====================================================================
   ZBC FINAL RESPONSIVE VISUAL FIXES
   Loaded last so legacy page styles cannot re-introduce the old lines,
   oversized mobile hero buttons, or left-aligned section headings.
   ===================================================================== */

/* ---------------------------------------------------------------------
   SHARED SECTION HEADINGS
   --------------------------------------------------------------------- */
.campus-section .section-title,
.activities-section .section-title,
.academic-overview .section-title,
.academy-programs .academy-header,
.programs .section-title,
.admission-section .section-title,
.faculty-section .section-title,
.staff-section .section-title,
.principal-section .section-title {
    width: min(900px, calc(100% - 28px)) !important;
    max-width: 900px !important;
    margin: 0 auto 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    text-align: center !important;
}

.campus-section .section-title::before,
.campus-section .section-title::after,
.activities-section .section-title::before,
.activities-section .section-title::after,
.academic-overview .section-title::before,
.academic-overview .section-title::after,
.academy-programs .academy-header::before,
.academy-programs .academy-header::after,
.programs .section-title::before,
.programs .section-title::after,
.admission-section .section-title::before,
.admission-section .section-title::after,
.faculty-section .section-title::before,
.faculty-section .section-title::after,
.staff-section .section-title::before,
.staff-section .section-title::after,
.principal-section .section-title::before,
.principal-section .section-title::after {
    display: none !important;
    content: none !important;
}

.campus-section .section-title > span,
.activities-section .section-title > span,
.academic-overview .section-title > span,
.academy-programs .academy-header > span,
.programs .section-title > span,
.admission-section .section-title > span,
.faculty-section .section-title > span,
.staff-section .section-title > span,
.principal-section .section-title > span {
    display: block !important;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 10px !important;
    text-align: center !important;
}

.campus-section .section-title h2,
.activities-section .section-title h2,
.academic-overview .section-title h2,
.academy-programs .academy-header h2,
.programs .section-title h2,
.admission-section .section-title h2,
.faculty-section .section-title h2,
.staff-section .section-title h2,
.principal-section .section-title h2,
.campus-section .section-title p,
.activities-section .section-title p,
.academic-overview .section-title p,
.academy-programs .academy-header p,
.programs .section-title p,
.admission-section .section-title p,
.faculty-section .section-title p,
.staff-section .section-title p,
.principal-section .section-title p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Prevent the old generic .section-title rule from adding a portrait-like line. */
.section-title {
    border-left: 0 !important;
    border-right: 0 !important;
}

/* ---------------------------------------------------------------------
   PRINCIPAL'S DESK
   --------------------------------------------------------------------- */
.principal-wrapper {
    width: min(1200px, calc(100% - 40px)) !important;
    margin-inline: auto !important;
}

.principal-content {
    margin-inline: auto !important;
    text-align: center !important;
}

.principal-content .section-subtitle,
.principal-content h2,
.principal-content p {
    text-align: center !important;
}

.principal-content p {
    text-align: justify !important;
}

/* The portrait itself never carries a decorative vertical line. */
.principal-image,
.principal-image::before,
.principal-image::after {
    border-left: 0 !important;
}

/* ---------------------------------------------------------------------
   HOME CAMPUS + MINISTRY
   --------------------------------------------------------------------- */
.campus-section .campus-btn {
    text-align: center !important;
}

.activities-grid {
    align-items: stretch;
}

.activity-card {
    text-align: center;
}

.activity-card p {
    text-align: center !important;
}

/* ---------------------------------------------------------------------
   ACADEMIC / COURSE / FACULTY CONTENT SECTIONS
   --------------------------------------------------------------------- */
.academic-overview,
.academy-programs,
.programs,
.admission-section,
.faculty-section,
.staff-section {
    overflow: hidden;
}

.programs .section-title,
.admission-section .section-title,
.academic-overview .section-title,
.academy-programs .academy-header,
.faculty-section .section-title,
.staff-section .section-title {
    margin-bottom: 42px !important;
}

.programs .section-title p,
.admission-section .section-title p,
.academic-overview .section-title p,
.academy-programs .academy-header p,
.faculty-section .section-title p,
.staff-section .section-title p {
    max-width: 820px;
}

.faculty-section .faculty-content,
.staff-section .faculty-content {
    text-align: center !important;
}

/* ---------------------------------------------------------------------
   HERO BUTTONS — COMPACT ON MOBILE
   --------------------------------------------------------------------- */
@media (max-width: 600px) {
    .about-hero .about-buttons,
    .history-hero .history-buttons,
    .faculty-hero .faculty-buttons,
    .academic-hero .hero-buttons,
    .alumni-hero .alumni-buttons,
    .contact-hero .contact-buttons,
    .course-hero .course-buttons,
    .home-hero .hero-buttons {
        width: auto !important;
        max-width: 100%;
        margin: 24px auto 0 !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .about-hero .about-buttons a,
    .history-hero .history-buttons a,
    .faculty-hero .faculty-buttons a,
    .academic-hero .hero-buttons a,
    .alumni-hero .alumni-buttons a,
    .contact-hero .contact-buttons a,
    .course-hero .course-buttons a,
    .home-hero .hero-buttons a {
        width: auto !important;
        min-width: 145px;
        max-width: 210px;
        min-height: 44px !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
        font-size: .86rem !important;
        line-height: 1.2 !important;
    }

    .home-hero .hero-buttons a,
    .academic-hero .hero-buttons a {
        flex: 0 1 auto !important;
    }

    .campus-section .section-title,
    .activities-section .section-title,
    .academic-overview .section-title,
    .academy-programs .academy-header,
    .programs .section-title,
    .admission-section .section-title,
    .faculty-section .section-title,
    .staff-section .section-title,
    .principal-section .section-title {
        width: calc(100% - 28px) !important;
        margin-bottom: 32px !important;
    }

    .campus-section .section-title h2,
    .activities-section .section-title h2,
    .academic-overview .section-title h2,
    .academy-programs .academy-header h2,
    .programs .section-title h2,
    .admission-section .section-title h2,
    .faculty-section .section-title h2,
    .staff-section .section-title h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
        line-height: 1.2 !important;
    }

    .campus-section .section-title p,
    .activities-section .section-title p,
    .academic-overview .section-title p,
    .academy-programs .academy-header p,
    .programs .section-title p,
    .admission-section .section-title p,
    .faculty-section .section-title p,
    .staff-section .section-title p {
        font-size: .93rem !important;
        line-height: 1.72 !important;
    }

    .activity-card {
        padding: 28px 20px !important;
    }
}

@media (max-width: 420px) {
    .about-hero .about-buttons,
    .history-hero .history-buttons,
    .faculty-hero .faculty-buttons,
    .academic-hero .hero-buttons,
    .alumni-hero .alumni-buttons,
    .contact-hero .contact-buttons,
    .course-hero .course-buttons,
    .home-hero .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .about-hero .about-buttons a,
    .history-hero .history-buttons a,
    .faculty-hero .faculty-buttons a,
    .academic-hero .hero-buttons a,
    .alumni-hero .alumni-buttons a,
    .contact-hero .contact-buttons a,
    .course-hero .course-buttons a,
    .home-hero .hero-buttons a {
        width: min(210px, 100%) !important;
    }
}

/* Keep shared section copy elegant rather than inheriting uppercase/line styles. */
.campus-section .section-title p,
.activities-section .section-title p,
.academic-overview .section-title p,
.academy-programs .academy-header p,
.programs .section-title p,
.admission-section .section-title p,
.faculty-section .section-title p,
.staff-section .section-title p {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Header accent follows the hero palette. */
.btn-header {
    background: #f97316 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18);
}
.btn-header:hover {
    background: #ea580c !important;
}


/* ---------------------------------------------------------------------
   CAMPUS SECTION BACKGROUND
   The final campus rule below is the single source of truth.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   CAMPUS HEADING — WHITE
   --------------------------------------------------------------------- */
.campus-section .section-title > span,
.campus-section .section-title h2 {
    color: #ffffff !important;
}

/* ---------------------------------------------------------------------
   TABLET DROPDOWNS — ACADEMICS + ABOUT MATCH NORMAL NAV LINKS
   --------------------------------------------------------------------- */
@media (min-width: 601px) and (max-width: 900px) {
    .navbar > ul > li.dropdown {
        width: 100%;
    }

    .navbar > ul > li.dropdown > .dropdown-trigger {
        width: 100% !important;
        max-width: none !important;
        height: 48px;
        border-radius: 8px;
    }

    .navbar > ul > li.dropdown > .dropdown-trigger > .dropdown-main-link {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px;
        padding: 11px 13px !important;
        color: rgba(255,255,255,.92) !important;
        border-radius: 8px 0 0 8px;
    }

    .navbar > ul > li.dropdown > .dropdown-trigger > .dropdown-caret {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 48px;
        color: rgba(255,255,255,.92) !important;
        border-radius: 0 8px 8px 0;
    }

    .navbar > ul > li.dropdown > .dropdown-trigger:hover,
    .navbar > ul > li.dropdown.active > .dropdown-trigger {
        background: rgba(255,255,255,.08);
    }

    .navbar > ul > li.dropdown > .dropdown-trigger:hover .dropdown-main-link,
    .navbar > ul > li.dropdown > .dropdown-trigger:hover .dropdown-caret,
    .navbar > ul > li.dropdown.active > .dropdown-trigger .dropdown-main-link,
    .navbar > ul > li.dropdown.active > .dropdown-trigger .dropdown-caret {
        color: #f6c96b !important;
        background: transparent;
    }

    .navbar > ul > li.dropdown > .dropdown-menu {
        padding-left: 16px;
    }
}


/* =====================================================================
   FINAL CAMPUS SECTION — EXACT SAME BACKGROUND ON DESKTOP AND MOBILE
   ===================================================================== */
.campus-section {
    background-color: #0f172a !important;
    background-image: none !important;
    color: #ffffff !important;
    padding: 150px 0 100px !important;
    margin: 0 !important;
    isolation: isolate;
}

.campus-section .section-title {
    width: min(1370px, calc(100% - 60px)) !important;
    max-width: 1370px !important;
    margin: 0 auto 70px !important;
    padding: 0 !important;
    text-align: center !important;
}

.campus-section .section-title > span {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto 42px !important;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #142441 !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}

.campus-section .section-title h2 {
    margin: 0 0 42px !important;
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4vw, 3rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.campus-section .section-title p {
    max-width: 1300px !important;
    margin: 0 auto !important;
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    text-align: center !important;
}

@media (max-width: 900px) {
    .campus-section {
        padding: 58px 0 68px !important;
    }
    .campus-section .section-title {
        width: calc(100% - 28px) !important;
        margin-bottom: 46px !important;
    }
    .campus-section .section-title > span {
        margin-bottom: 28px !important;
        padding: 13px 18px !important;
        font-size: .9rem !important;
    }
    .campus-section .section-title h2 {
        margin-bottom: 28px !important;
        font-size: clamp(1.9rem, 8vw, 2.5rem) !important;
    }
    .campus-section .section-title p {
        font-size: .95rem !important;
        line-height: 1.72 !important;
    }
}
