﻿/* ============================================================
   SJCO — STUDENT ORGANIZATIONS (MSI PREMIUM STYLE)
============================================================ */

/* COLORS */
:root {
    --sjco-green: #0c3a23;
    --sjco-green-light: #e8f2eb;
    --gold-soft: #eac341;
    --text-dark: #1f1f1f;
    --text-light: #555;
    --white: #fff;
}

/* ============================================================
   HERO BANNER
============================================================ */
.org-hero {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.org-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/slide3.jpg') center/cover no-repeat;
    filter: brightness(0.65);
}

.org-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, rgba(12, 58, 35, 0.85), rgba(12, 58, 35, 0.45) );
}

.org-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 60px;
    color: var(--white);
}

.org-title {
    font-size: 3.2rem;
    font-weight: 800;
}

.org-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.org-desc {
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 540px;
}

/* ============================================================
   ORGANIZATION GRID
============================================================ */
.msi-section {
    padding: 60px 20px;
    max-width: 1300px;
    margin: auto;
}

.msi-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--sjco-green);
    margin-bottom: 40px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.org-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    text-align: center;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .org-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.18);
    }

.org-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.org-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sjco-green);
    margin-bottom: 8px;
}

.org-summary {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* ============================================================
   MODAL
============================================================ */
.org-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.org-modal {
    background: var(--white);
    width: 90%;
    max-width: 650px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn .25s ease-out;
}

.modal-body h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--sjco-green);
}

.modal-summary {
    margin-top: 10px;
    color: var(--text-light);
}

.modal-list {
    padding-left: 20px;
    margin-top: 15px;
}

    .modal-list li {
        margin-bottom: 6px;
        font-size: 1.05rem;
        color: var(--text-dark);
    }

.modal-close {
    margin-top: 20px;
    width: 100%;
    background: var(--sjco-green);
    color: var(--white);
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
}

    .modal-close:hover {
        background: #145c36;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .org-hero {
        justify-content: center;
        text-align: center;
    }

    .org-hero-content {
        padding-left: 0;
        padding: 0 20px;
    }

    .org-title {
        font-size: 2.4rem;
    }
}
