/* Departments Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), url('../images/departments-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Departments Grid */
.departments-section {
    background-color: var(--light-gray);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.department-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--accent-red);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.department-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.hod-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hod-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hod-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--white);
}

.department-name {
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.department-content {
    padding: 25px;
}

.department-content h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
}

.department-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.department-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-left: 25px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.department-content ul li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.8rem;
}

.department-content ul li:last-child {
    border-bottom: none;
}

/* Impact Section */
.impact-section {
    background-color: var(--white);
}

.impact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.impact-text h3 {
    color: var(--primary-blue);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.impact-text h3:first-child {
    margin-top: 0;
}

.impact-text p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.impact-stat {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--white);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Department Card Animations */
.department-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.department-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .hod-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .impact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .impact-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .impact-stat {
        flex: 1;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hod-photo {
        width: 70px;
        height: 70px;
    }
    
    .hod-info h3 {
        font-size: 1.1rem;
    }
    
    .department-content {
        padding: 20px;
    }
    
    .impact-stats {
        flex-direction: column;
    }
    
    .impact-stat {
        margin: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}