﻿/* ============================================================
   SJCO — CAMPUS FACILITIES PAGE (MSI LUXURY STYLE)
   File: /css/campuslife-facilities.css
   Author: SmartSchoolCore
============================================================ */

/* ------------------------------------------------------------
   COLOR VARIABLES
------------------------------------------------------------ */
:root {
    --sjco-green: #0c3a23;
    --sjco-green-light: #e8f2eb;
    --gold-soft: #eac341;
    --white: #ffffff;
    --text-dark: #1f1f1f;
    --text-light: #666;
}



/* ============================================================
   HERO SECTION
============================================================ */
.fac-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

/* Background Image */
.fac-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/slide3.jpg') center/cover no-repeat;
    filter: brightness(0.65);
    z-index: 1;
}

/* Gradient Overlay */
.fac-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, rgba(12, 58, 35, 0.85), rgba(12, 58, 35, 0.35) );
    z-index: 2;
}

/* Content */
.fac-hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    padding-left: 60px;
    max-width: 650px;
}

.fac-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.fac-subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
}

.fac-desc {
    margin-top: 18px;
    max-width: 540px;
    font-size: 1.1rem;
    line-height: 1.6;
}



/* ============================================================
   GRID SECTION WRAPPER
============================================================ */
.msi-section {
    padding: 50px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.msi-section-title.center {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--sjco-green);
    margin-bottom: 35px;
}



/* ============================================================
   FACILITY GRID
============================================================ */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}

/* Card container */
.fac-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #e5e5e5;
}

    .fac-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.18);
    }

/* Image */
.fac-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Card info */
.fac-info {
    padding: 18px 20px;
}

    .fac-info h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--sjco-green);
        margin-bottom: 8px;
    }

.fac-summary {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}



/* ============================================================
   MODAL VIEWER
============================================================ */
.fac-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fac-modal {
    background: var(--white);
    width: 90%;
    max-width: 850px;
    border-radius: 14px;
    overflow: hidden;
    animation: fadeIn 0.25s ease-out;
}

.modal-cover {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.modal-body {
    padding: 28px;
}

    .modal-body h2 {
        margin-top: 0;
        font-size: 1.9rem;
        font-weight: 800;
        color: var(--sjco-green);
    }

.modal-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 12px 0 20px;
}

/* List items */
.mod
