/* Classic Department Section Styles */
.department-classic {
    background: #f8f9fa;
    position: relative;
    z-index: 2;
}

.department-card.classic-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e8ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.department-card.classic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(95, 45, 237, 0.15);
    border-color: #5f2ded;
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.department-card:hover .card-image img {
    transform: scale(1.05);
}

.icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #5f2ded 0%, #764ba2 100%);
}

.course-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #5f2ded;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.department-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.department-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f2ded;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.read-more-btn:hover {
    color: #4a1fb8;
    text-decoration: none;
    gap: 12px;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

.read-more-btn.disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.read-more-btn.disabled:hover {
    color: #adb5bd;
    gap: 8px;
}

/* Section Title Styling */
.department-classic .section-title .sub-title {
    color: #5f2ded;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.department-classic .section-title .title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .department-classic .section-title .title {
        font-size: 2rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .department-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .department-classic {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .icon-placeholder {
        font-size: 2.5rem;
    }
}

/* Animation for cards on load */
.department-card.classic-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.department-card.classic-card:nth-child(1) { animation-delay: 0.1s; }
.department-card.classic-card:nth-child(2) { animation-delay: 0.2s; }
.department-card.classic-card:nth-child(3) { animation-delay: 0.3s; }
.department-card.classic-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}