﻿/* ============================================================
   SJCO — SCHOLARSHIPS PAGE (MSI PREMIUM STYLE)
   File: /css/admission-scholarships.css
   Author: SmartSchoolCore
============================================================ */

/* ------------------------------------------------------------
   COLOR VARIABLES
------------------------------------------------------------ */
:root {
    --sjco-green: #0c3a23;
    --sjco-green-light: #e8f2eb;
    --gold-soft: #eac341;
    --gold-pale: #f7e7a3;
    --text-dark: #1f1f1f;
    --text-light: #555;
    --white: #fff;
    --modal-bg: rgba(0, 0, 0, 0.65);
}


/* ============================================================
   HERO SECTION — MSI PREMIUM
============================================================ */
.scholar-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

/* Background image */
.scholar-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/slide3.jpg') center/cover no-repeat;
    filter: brightness(0.65);
    z-index: 1;
}

/* MSI gradient overlay */
.scholar-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;
}

/* Content */
.scholar-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 60px;
    color: var(--white);
}

.scholar-title {
    font-size: 3.1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.scholar-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.scholar-desc {
    margin-top: 15px;
    font-size: 1.15rem;
    line-height: 1.55;
    max-width: 540px;
}


/* ============================================================
   CONTENT SECTIONS
============================================================ */
.msi-section {
    padding: 55px 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;
}


/* ============================================================
   SCHOLARSHIP GRID
============================================================ */
.scholar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Card */
.scholar-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    transition: all .25s ease;
    cursor: pointer;
}

    .scholar-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(0,0,0,0.18);
    }

/* Icon */
.scholar-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

/* Title */
.scholar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sjco-green);
    margin-bottom: 10px;
}

/* Summary */
.scholar-summary {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.55;
}


/* ============================================================
   MODAL VIEWER (Luxury MSI Style)
============================================================ */
.scholar-modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .25s ease-out;
    z-index: 9999;
}

.scholar-modal {
    background: var(--white);
    border-radius: 14px;
    width: 90%;
    max-width: 750px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    overflow: hidden;
    animation: popIn .28s ease-out;
}

/* Modal inner body */
.modal-body {
    padding: 35px 30px;
}

    .modal-body h2 {
        font-weight: 800;
        font-size: 1.9rem;
        color: var(--sjco-green);
        margin-bottom: 10px;
    }

.modal-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Lists */
.modal-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

    .modal-list li {
        margin-bottom: 7px;
        font-size: 1.05rem;
    }

/* Close button */
.modal-close {
    margin-top: 15px;
    background: var(--sjco-green);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease;
}

    .modal-close:hover {
        background: #0f4a2b;
    }


/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .scholar-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .scholar-hero {
        height: 360px;
        text-align: center;
        justify-content: center;
    }

    .scholar-hero-content {
        padding-left: 0;
        padding: 0 20px;
    }

    .scholar-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .scholar-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 25px 20px;
    }
}
