/* ==========================================================================
   CAMPUS & FACILITIES PAGE - REDESIGN (MATCHING REFERENCE EXACTLY)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-canvas: #faf8f5;
    --primary-navy: #0c1d36;
    --navy-panel: #061325;
    --primary-orange: #ee6a17;
    --orange-hover: #d8590b;
    --accent-brown: #a85827;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(12, 29, 54, 0.05);
    --card-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* ================= BACKGROUND BOTANICAL DECORATIONS ================= */
.bg-botanical-decor {
    position: absolute;
    width: 380px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.bg-botanical-decor.left-top {
    top: 40px;
    left: 0;
}

.bg-botanical-decor.right-top {
    top: 60px;
    right: 0;
}

.bg-botanical-decor.left-mid {
    top: 1100px;
    left: 0;
}

.bg-botanical-decor.right-bottom {
    bottom: 200px;
    right: 0;
}

/* ================= MAIN WRAPPER & CONTAINERS ================= */
.facility-page-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* ================= HERO SECTION ================= */
.facility-hero-section {
    padding: 50px 0 70px 0;
    position: relative;
}

.hero-grid-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-left-content {
    position: relative;
    padding-right: 20px;
}

.hero-tagline {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-tagline::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-orange);
}

.hero-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.18;
    margin-bottom: 22px;
}

.hero-main-title span.highlight-orange {
    color: var(--primary-orange);
}

.hero-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 35px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-primary-orange {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ee6a17 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(238, 106, 23, 0.28);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(238, 106, 23, 0.38);
    background: linear-gradient(135deg, #ee6a17 0%, #d8590b 100%);
    color: #ffffff;
}

.hero-script-annotation {
    font-family: 'Caveat', cursive;
    font-size: 27px;
    color: var(--accent-brown);
    line-height: 1.1;
    transform: rotate(-7deg);
    position: absolute;
    top: 52%;
    right: -20px;
    text-align: center;
    pointer-events: none;
}

.hero-right-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(12, 29, 54, 0.12);
    border: 6px solid #ffffff;
    background-color: #ffffff;
}

.hero-image-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

.hero-leaf-backdrop {
    position: absolute;
    width: 220px;
    bottom: -30px;
    left: -40px;
    z-index: -1;
    opacity: 0.8;
}

/* ================= SECTION HEADER ================= */
.section-center-header {
    text-align: center;
    max-width: 760px;
    margin: 40px auto 50px auto;
}

.section-eyebrow-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title-serif {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-title-serif span.highlight-orange {
    color: var(--primary-orange);
}

.section-subtitle-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ================= CAMPUS FACILITIES GRID ================= */
.facilities-grid-section {
    margin-bottom: 70px;
}

.facilities-row-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.facilities-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.facility-card-item {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s ease;
    overflow: hidden;
}

.facility-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(12, 29, 54, 0.1);
    border-color: rgba(238, 106, 23, 0.3);
}

.card-img-cutout-box {
    width: 100%;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background-color: #f1f5f9;
}

.card-img-cutout-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-card-item:hover .card-img-cutout-box img {
    transform: scale(1.05);
}

.card-body-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    padding-bottom: 25px;
}

.card-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ee6a17 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    box-shadow: 0 6px 15px rgba(238, 106, 23, 0.25);
}

.card-title-text {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.card-desc-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-arrow-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.facility-card-item:hover .card-arrow-btn {
    background-color: var(--primary-navy);
    transform: translateX(3px);
}

/* ================= ROW 2 CALLOUT CARD ================= */
.callout-card-item {
    background: transparent;
    border-radius: var(--card-radius);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.callout-script-heading {
    font-family: 'Caveat', cursive;
    font-size: 38px;
    font-weight: 700;
    color: var(--accent-brown);
    line-height: 1.1;
    transform: rotate(-4deg);
    margin-bottom: 20px;
    position: relative;
}

.callout-script-heading::after {
    content: '';
    display: block;
    width: 140px;
    height: 3px;
    background-color: var(--accent-brown);
    opacity: 0.6;
    margin: 6px auto 0 auto;
    border-radius: 2px;
}

.callout-icon-sketch {
    font-size: 48px;
    color: rgba(168, 88, 39, 0.35);
    margin-bottom: 25px;
}

/* ================= EXPANDABLE ADDITIONAL FACILITIES ================= */
.additional-facilities-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.additional-facilities-wrapper.expanded {
    max-height: 2500px;
    margin-top: 24px;
}

.additional-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 70px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: var(--primary-navy);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid rgba(12, 29, 54, 0.15);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 106, 23, 0.15);
}

/* ================= SECTION 3: OUR IMPACT ================= */
.impact-outer-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(12, 29, 54, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 70px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
}

.impact-navy-panel {
    background: var(--navy-panel);
    padding: 45px 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.impact-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.impact-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

.impact-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.btn-navy-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-navy-outline:hover {
    background: #ffffff;
    color: var(--navy-panel);
    border-color: #ffffff;
}

.impact-metrics-panel {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.metric-stat-item {
    text-align: center;
    padding: 15px 10px;
    position: relative;
}

.metric-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e2e8f0;
}

.metric-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff4ec;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px auto;
}

.metric-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ================= SECTION 4: CTA BANNER ================= */
.cta-banner-section {
    background: var(--navy-panel);
    border-radius: 24px;
    padding: 40px 50px;
    color: #ffffff;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(6, 19, 37, 0.2);
}

.cta-banner-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 580px;
}

.btn-cta-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ee6a17 100%);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(238, 106, 23, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(238, 106, 23, 0.4);
    color: #ffffff;
}

.cta-media-right {
    display: flex;
    justify-content: flex-end;
}

.cta-image-wrapper {
    width: 100%;
    max-width: 440px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.cta-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= BOOK FLIP WRAPPER INTEGRATION ================= */
.book-flip-wrapper {
    position: relative;
}

/* ================= FACILITY LIGHTBOX MODAL ================= */
.facility-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.facility-lightbox-modal.active {
    display: flex;
}

.facility-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 29, 54, 0.85);
    backdrop-filter: blur(8px);
}

.facility-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.facility-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.facility-lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.facility-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */

@media (max-width: 1200px) {
    .facilities-row-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facilities-row-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .additional-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-main-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    .hero-grid-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-script-annotation {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        transform: rotate(-4deg);
    }

    .hero-right-media {
        justify-content: center;
    }

    .impact-outer-container {
        grid-template-columns: 1fr;
    }

    .metric-stat-item:not(:last-child)::after {
        display: none;
    }

    .impact-metrics-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cta-banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-media-right {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .facility-page-container {
        padding: 0 16px;
    }

    .hero-main-title {
        font-size: 30px;
    }

    .section-title-serif {
        font-size: 28px;
    }

    .facilities-row-4col,
    .facilities-row-3col,
    .additional-facilities-grid,
    .impact-metrics-panel {
        grid-template-columns: 1fr;
    }

    .callout-card-item {
        padding: 20px 10px;
    }

    .cta-banner-section {
        padding: 30px 20px;
    }
}