.dept-header {
    background: #2c3e50;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.dept-header.active {
    background: #1abc9c;
}

.dept-content {
    padding: 15px;
    border: 1px solid #ddd;
}

.year-filter {
    margin-bottom: 15px;
    padding: 6px 10px;
}

.placements-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.placement-item {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.placement-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.dept-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 12px;
    border: 1px solid #fff;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #fff;
    color: #000;
    border-top: 2px solid #0073aa;
}

.tab-content {
    display: none;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

@media (max-width: 1024px) {
    .placements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .placements-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .dept-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-btn {
        flex: 0 0 auto; /* natural width */
        min-width: 140px;
        white-space: nowrap;
    }
}