/*
 * sbf.css
 * Styles for the Students' Benevolence Fund (SBF) Information Page
 */

/* ================== Hero Section (Inherits from style.css) ================== */

/* sbf.css */

.hero-centered {
    background-color: var(--deep-blue);
    color: var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* REDUCED HEIGHT VALUES */
    min-height: 180px !important;  /* Was 320px */
    padding-top: 100px !important;  /* Was 100px */
    padding-bottom: 50px !important; /* Was 60px */
    
    text-align: center;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff; /* White for contrast on dark bg */
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Optional: Make the title slightly smaller to fit the tighter space */
.hero-centered h1 {
    color: var(--white);
    font-family: var(--font-serif);
    margin-bottom: 10px;
    font-size: 2.5rem !important; /* Was 3rem */
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(62, 92, 154, 0.15) 0%, rgba(42, 64, 104, 0) 70%);
    z-index: 1; pointer-events: none;
}
.hero-content-wrapper-center { z-index: 2; position: relative; }


/* ================== Navigation Tabs ================== */

.sbf-tabs-wrapper {
    background-color: var(--bg-color); /* Match body background */
    /* Frosted glass effect for sticky nav */
    background: rgba(253, 252, 248, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 70px; /* Adjust based on main navbar height */
    z-index: 90;
    margin-bottom: 30px;
    padding: 10px 0;
}

.sbf-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sbf-tab-btn {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sbf-tab-btn i { font-size: 1rem; color: var(--primary-blue); }

.sbf-tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--deep-blue);
    transform: translateY(-2px);
}

.sbf-tab-btn.active {
    background-color: var(--deep-blue);
    border-color: var(--deep-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(42, 64, 104, 0.2);
}

.sbf-tab-btn.active i { color: var(--white); }


/* ================== Content Flow Area ================== */

.sbf-content-flow { padding-bottom: 10px; }

.flow-section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    /* Soft shadow to match main style */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.flow-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.flow-title .icon-color {
    color: var(--primary-blue);
    margin-right: 12px;
}


/* ================== Lists & Steps ================== */

/* Bullet Lists */
.flow-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.flow-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-grey);
    font-size: 1rem;
}

.flow-list li::before {
    content: "\f00c"; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-blue); /* Used Main Blue instead of Green */
    position: absolute;
    left: 0; top: 2px;
}

/* Numbered Steps */
.flow-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.flow-steps li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
    color: var(--text-grey);
}

.flow-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0; top: 0;
    height: 26px; width: 26px;
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 0.85rem;
    font-weight: bold;
}


/* ================== Documents & Notes ================== */

.document-group {
    background-color: #f8fafc;
    padding: 20px;
    border-left: 4px solid var(--primary-blue);
    border-radius: 6px;
    margin-bottom: 20px;
}

.document-heading {
    font-size: 1.2rem;
    color: var(--deep-blue);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-heading i { color: var(--primary-blue); }

.document-item {
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e1;
    color: var(--text-grey);
}
.document-item:last-child { border-bottom: none; }

.document-type {
    display: block;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 4px;
}

/* Warning/Info Boxes */
.note-box {
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 0.95rem;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.note-box i { font-size: 1.2rem; margin-top: 3px; }

.note-info {
    background-color: #ebf8ff; /* Light Blue */
    color: #2c5282;
    border: 1px solid #bee3f8;
}

.note-warning {
    background-color: #fffaf0; /* Light Orange/Yellow */
    color: #9c4221;
    border: 1px solid #feebc8;
}


/* ================== Responsive ================== */

@media (max-width: 768px) {
    .hero-centered h1 { font-size: 2.2em; }

    /* Hide tab bar — replaced by inline accordions */
    .sbf-tabs-wrapper { display: none !important; }

    /* Hide <hr> separators between sections */
    .sbf-content-flow > hr { display: none; }

    /* Each section becomes an accordion card */
    .flow-section {
        padding: 0;
        margin-bottom: 10px;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Title acts as the toggle header */
    .flow-title {
        margin: 0;
        padding: 16px 20px;
        font-size: 1rem;
        cursor: pointer;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        border-bottom: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .flow-title::after {
        content: '\002B'; /* + sign */
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-blue);
        -webkit-transition: -webkit-transform 0.3s ease;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
        line-height: 1;
    }

    .flow-section.sbf-open .flow-title::after {
        content: '\2212'; /* minus sign */
    }

    /* Hide all content inside section except the title */
    .flow-section > *:not(.flow-title) {
        display: none;
    }

    /* Show all content when open */
    .flow-section.sbf-open > *:not(.flow-title) {
        display: block;
    }

    /* Restore padding when open */
    .flow-section.sbf-open {
        padding-bottom: 20px;
    }

    .flow-section.sbf-open > *:not(.flow-title) {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Fix flex/list elements that need flex not block */
    .flow-section.sbf-open .note-box {
        display: -webkit-flex;
        display: flex;
    }

    .flow-section.sbf-open .document-heading {
        display: -webkit-flex;
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-centered {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-centered h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}