/* =========================================
   STUDENT INFO STYLES
   ========================================= */

/* --- 1. Hero Section --- */
.hero-centered {
    background-color: var(--deep-blue);
    color: var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: center;
}

.hero-centered h1 {
    color: var(--white);
    font-family: var(--font-serif);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.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; }

/* --- 2. Main Tabs (UG/PG) --- */
.team-tabs-wrapper {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 75px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.team-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-grey);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(62, 92, 154, 0.05);
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. Layout --- */
.info-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* --- 4. Sidebar Navigation --- */
.info-sidebar {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 180px;
}

.nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.nav-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.nav-btn.active {
    background-color: rgba(62, 92, 154, 0.08);
    color: var(--deep-blue);
    border-left-color: var(--deep-blue);
}

/* --- 5. Content Area --- */
.info-content-wrapper {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px 35px;
    min-height: 400px;
}

.sub-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sub-tab-content.active { display: block; }

h2.section-title {
    font-family: var(--font-serif);
    color: var(--deep-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

h3.sub-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #555;
}

li { margin-bottom: 8px; }

/* --- 6. Data Tables --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.info-table th {
    background-color: var(--deep-blue);
    color: white;
    font-weight: 600;
}

.info-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.info-acc-title { display: none; }

/* --- 7. Responsive --- */
@media (max-width: 992px) {
    .info-sidebar { display: none !important; }

    .info-content-wrapper {
        padding: 2px;
        box-shadow: none;
        background: transparent;
        min-height: 0;
    }

    .info-container {
        padding: 0 2px;
    }

    .sub-tab-content {
        display: block !important;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        margin-bottom: 12px;
        overflow: hidden;
        animation: none;
    }

    .info-acc-title {
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        padding: 16px 18px;
        font-family: var(--font-sans);
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--deep-blue);
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
    }

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

    .sub-tab-content.acc-open .info-acc-title::after {
        content: '\2212';
    }

    .info-acc-body {
        display: none;
        padding: 0 18px 18px;
    }

    .sub-tab-content.acc-open .info-acc-body {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero-centered { padding-top: 80px; min-height: 220px; }
    .hero-centered h1 { font-size: 2rem; }

    .team-tabs {
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .team-tabs::-webkit-scrollbar { display: none; }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .info-container {
        flex-direction: column;
        margin-top: 20px;
        gap: 20px;
    }
    
    /* Horizontal Chips for Mobile */
    .info-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        padding: 10px 5px;
        white-space: nowrap;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .info-sidebar::-webkit-scrollbar { display: none; }

    .nav-btn {
        flex: 0 0 auto;
        width: auto;
        border: 1px solid #e0e0e0;
        border-radius: 50px;
        padding: 8px 18px;
        background: #fff;
        margin: 0;
        font-size: 0.85rem;
        border-left: 1px solid #e0e0e0 !important;
    }
    
    .nav-btn.active {
        background-color: var(--deep-blue);
        color: #fff;
        border-color: var(--deep-blue) !important;
        border-left: 1px solid var(--deep-blue) !important;
    }
    
    .info-content-wrapper { padding: 20px; }
    
    .info-table { font-size: 0.85rem; }
    .info-table th, .info-table td { padding: 8px; }
}