/* =====================================================
   DEPARTMENT.CSS - Department Page Styles (BBA/BCA etc.)
   Padmashri Manibhai Desai College Website
   ===================================================== */

/* ===== DEPARTMENT ROOT ===== */
#bba-root {
    margin-top: 150px;
}

/* ===== DEPARTMENT HERO ===== */
#bba-hero {
    background: var(--gradient-vip);
    padding: var(--space-2xl) var(--space-3xl);
    border-radius: var(--radius-2xl);
    margin: 0 var(--space-lg) var(--space-2xl);
}

.bba-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: var(--max-width-md);
    margin: 0 auto;
}

.bba-hero-text h1 {
    font-size: var(--fs-3xl);
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.bba-tagline {
    font-size: var(--fs-lg);
    color: var(--text-body);
}

.bba-hero-image img {
    width: 360px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== DEPARTMENT LAYOUT ===== */
#bba-layout {
    display: flex;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
    max-width: var(--max-width-lg);
    margin: 0 auto;
}

/* ===== SIDEBAR ===== */
#bba-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 160px;
    height: fit-content;
}

#bba-sidebar button {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

#bba-sidebar button:hover,
#bba-sidebar button.active {
    background-color: #1f2f53;
    color: var(--text-light);
}

/* ===== CONTENT AREA ===== */
#bba-content {
    flex: 1;
    min-width: 0;
}

/* ===== DEPARTMENT CARDS ===== */
.bba-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.bba-card h2 {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.bba-card ul {
    padding-left: var(--space-lg);
}

.bba-card li {
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-lg);
}

.bba-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.bba-card p {
    line-height: 1.8;
    color: var(--text-body);
}

/* ===== SECTION VISIBILITY ===== */
.bba-section {
    display: none;
}

.bba-section.active {
    display: block;
}

/* ===== FACULTY GRID ===== */
#bba-faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.bba-faculty-card {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.bba-faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bba-faculty-card img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-round);
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--color-primary);
}

.bba-faculty-card h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.bba-faculty-card p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
}

.bba-faculty-card button {
    background: var(--color-primary);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.bba-faculty-card button:hover {
    background: var(--color-primary-dark);
}

/* ===== COURSE STRUCTURE TABLES ===== */
.bba-course-structure {
    margin-top: var(--space-2xl);
}

.bba-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.bba-title span {
    color: var(--color-accent);
}

.bba-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-weight: normal;
}

.bba-table-wrapper {
    overflow-x: auto;
}

.bba-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.bba-table th,
.bba-table td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #ddd;
    text-align: left;
}

.bba-table .sem-header {
    background: var(--color-primary);
    color: var(--text-light);
    text-align: center;
}

.bba-table thead tr:nth-child(2) th {
    background: var(--bg-light);
}

.bba-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.bba-table tbody tr:hover {
    background: var(--color-accent-hover);
}

.bba-note {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-style: italic;
}

/* ===== RESEARCH TABLE ===== */
.research-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.research-table th,
.research-table td {
    padding: var(--space-sm);
    border: 1px solid #ddd;
    text-align: left;
}

.research-table th {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* ===== TABLE CONTAINER (TY Course) ===== */
.table-container {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.semester-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.semester-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.course-table {
    width: 100%;
    border-collapse: collapse;
}

.course-table th,
.course-table td {
    padding: var(--space-sm);
    border: 1px solid #ddd;
    text-align: left;
}

.course-table th {
    background: var(--color-primary);
    color: var(--text-light);
}

.course-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
}

/* ===== FACULTY MODAL ===== */
#bba-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
}

#bba-modal.active {
    display: flex;
}

#bba-modal-box {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
}

#bba-modal-box .modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #bba-root {
        margin-top: 100px;
    }

    #bba-hero {
        padding: 25px 15px;
    }

    .bba-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .bba-hero-image img {
        width: 100%;
        max-width: 300px;
    }

    #bba-layout {
        flex-direction: column;
        padding: 15px;
    }

    #bba-sidebar {
        width: 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #bba-sidebar button {
        flex: 1 1 45%;
        margin-bottom: 0;
    }

    .bba-card {
        padding: 15px;
    }

    .table-container {
        flex-direction: column;
    }

    .semester-box {
        flex: 1 1 100%;
    }

    .bba-table {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #bba-layout {
        padding-top: 120px;
    }

    #bba-sidebar {
        width: 220px;
    }

    .bba-hero-image img {
        width: 300px;
    }
}