/* Department Modern Styles */
:root {
    --science-color: #3B82F6;
    --arts-color: #8B5CF6;
    --commerce-color: #F59E0B;
}

.dept-header-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 24px;
    padding: 3rem 2rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.section-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #1e40af 100%);
    position: relative;
    color: white !important;
}

.section-gradient-primary h1, .section-gradient-primary p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.stat-card-glass:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Filter Bar */
.dept-filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    z-index: 20;
    position: relative;
    border: 1px solid var(--border-color);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

@media (max-width: 991.98px) {
    .dept-filter-bar {
        border-radius: 20px;
        margin-top: -20px;
        flex-direction: column;
        align-items: stretch !important;
    }
    .filter-group {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: center;
    }
    .search-box-wrapper {
        max-width: 100% !important;
    }
}

/* Department Cards */
.dept-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.dept-card:hover::before {
    opacity: 1;
}

.dept-icon-wrapper {
    width: 120px;
    height: 120px;
    background: #f8fafc;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.dept-card:hover .dept-icon-wrapper {
    background: rgba(79, 70, 229, 0.05);
    transform: rotate(-5deg) scale(1.05);
}

/* Tabbed Detail System */
.dept-detail-tabs {
    border: none;
    gap: 10px;
}

.dept-tab-link {
    border: none !important;
    background: #f1f5f9 !important;
    color: var(--text-muted) !important;
    padding: 12px 25px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dept-tab-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

@media (max-width: 767.98px) {
    .dept-detail-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .dept-tab-link {
        white-space: nowrap;
        padding: 10px 20px !important;
    }
}

/* Responsive Grid */
.dept-grid {
    transition: all 0.5s ease;
}

.dept-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    display: none;
}
