﻿/* ============================================================
   SJCO — CESO PAGE (MSI PREMIUM STYLE + PARTNERSHIPS)
   File: /css/campuslife-ceso.css
   Author: SmartSchoolCore
============================================================ */

/* ------------------------------------------------------------
   COLOR VARIABLES
------------------------------------------------------------ */
:root {
    --sjco-green: #0c3a23;
    --sjco-green-light: #e8f2eb;
    --gold-soft: #eac341;
    --text-dark: #1f1f1f;
    --text-muted: #666;
    --white: #ffffff;
}

/* ============================================================
   HERO SECTION
============================================================ */
.ceso-hero {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.ceso-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/slide3.jpg') center/cover no-repeat;
    filter: brightness(0.6);
    z-index: 1;
}

.ceso-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 58, 35, 0.85), rgba(12, 58, 35, 0.45));
    z-index: 2;
}

.ceso-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 60px;
    color: var(--white);
}

.ceso-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ceso-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.ceso-desc {
    margin-top: 15px;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 550px;
    opacity: 0.95;
}

/* ============================================================
   GENERAL SECTION STYLING
============================================================ */
.msi-section {
    padding: 50px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.msi-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--sjco-green);
    text-align: center;
    margin-bottom: 35px;
}

.center {
    text-align: center;
}

/* ============================================================
   PROGRAMS GRID
============================================================ */
.ceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.ceso-card {
    background: var(--white);
    border-radius: 14px;
    padding: 26px 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e3e3e3;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .ceso-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.18);
    }

.ceso-icon {
    font-size: 2.7rem;
    margin-bottom: 12px;
}

.ceso-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sjco-green);
    margin-bottom: 8px;
}

.ceso-card-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   PARTNERSHIP SECTION
============================================================ */
.partnerships-section {
    margin-top: 60px;
}

.partnership-intro {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* GRID */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* PARTNER CARD */
.partner-card {
    background: var(--white);
    border-radius: 14px;
    padding: 26px 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    border: 1px solid #e3e3e3;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .partner-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.2);
    }

.partner-logo {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

    .partner-logo img {
        max-height: 100%;
        max-width: 85%;
        object-fit: contain;
    }

.partner-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sjco-green);
    margin-bottom: 8px;
}

.partner-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================================
   MODAL STYLING
============================================================ */
.ceso-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.ceso-modal {
    background: var(--white);
    width: 92%;
    max-width: 650px;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    animation: fadeIn .25s ease;
}

.modal-body {
    padding: 30px;
}

.modal-summary {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.modal-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.65;
    color: var(--text-dark);
}

.partner-modal-logo {
    width: 140px;
    display: block;
    margin: 0 auto 18px auto;
}

.modal-close {
    margin-top: 22px;
    padding: 10px 24px;
    background: var(--sjco-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

    .modal-close:hover {
        background: #094826;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .ceso-hero {
        height: 350px;
        text-align: center;
        justify-content: center;
    }

    .ceso-hero-content {
        padding-left: 0;
        padding: 0 20px;
    }

    .ceso-title {
        font-size: 2.2rem;
    }

    .partnership-intro {
        font-size: 1.05rem;
    }
}
