﻿/* ============================================================
   SJCO — ADMISSION REQUIREMENTS PAGE (MSI PREMIUM STYLE)
   Author: SmartSchoolCore
   Theme colors = SJCO Green + MSI Luxury Premium Style
============================================================ */

/* ------------------------------------------------------------
   COLOR VARIABLES
------------------------------------------------------------ */
:root {
    --sjco-green: #0c3a23;
    --sjco-green-light: #e8f2eb;
    --gold-soft: #eac341;
    --gold-pale: #f7e7a3;
    --text-dark: #1f1f1f;
    --text-light: #555;
    --white: #fff;
}


/* ============================================================
   HERO SECTION
============================================================ */
.req-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

/* Background image */
.req-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/slide2.jpg') center/cover no-repeat;
    filter: brightness(0.65);
    z-index: 1;
}

/* MSI-style gradient overlay */
.req-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;
}

/* Hero content */
.req-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 60px;
    color: var(--white);
}

.req-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.req-subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
}

.req-desc {
    margin-top: 15px;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 540px;
}


/* ============================================================
   SECTIONS
============================================================ */
.msi-section {
    padding: 50px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.msi-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    color: var(--sjco-green);
    margin-bottom: 35px;
}


/* ============================================================
   REQUIREMENTS GRID (MSI Premium Style)
============================================================ */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* Card container */
.req-card {
    background: var(--white);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

    /* Hover effect */
    .req-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.18);
    }

/* Poster image (full card top) */
.req-poster {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 14px 14px 0 0;
}

/* Card text area */
.req-info {
    padding: 20px 18px;
}

    .req-info h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--sjco-green);
        margin-bottom: 8px;
    }

.req-summary {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.55;
}


/* ============================================================
   MODAL VIEWER (PREMIUM STYLE)
============================================================ */
.req-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.req-modal {
    background: var(--white);
    width: 90%;
    max-width: 850px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    animation: modalFade .25s ease-out;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-cover {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.modal-body {
    padding: 25px 30px;
}

    .modal-body h2 {
        font-size: 2rem;
        font-weight: 800;
        color: var(--sjco-green);
        margin-bottom: 10px;
    }

.modal-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.modal-list li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.modal-close {
    margin-top: 25px;
    padding: 10px 18px;
    background: var(--sjco-green);
    border: none;
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s ease;
}

    .modal-close:hover {
        background: #145c36;
    }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .req-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .req-hero {
        height: 360px;
        text-align: center;
        justify-content: center;
    }

    .req-hero-content {
        padding-left: 0;
        padding: 0 20px;
    }

    .req-title {
        font-size: 2.2rem;
    }

    .req-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .req-grid {
        grid-template-columns: 1fr;
    }

    .modal-cover {
        height: 260px;
    }
}
