/* Departments Section Styles */
.departments-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.department-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.department-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    background: var(--mbdi-blue);
    padding: 1.6rem 2rem;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    min-height: 90px;
    display: flex;
    align-items: center;
}

.card-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.description {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.president-info {
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.president-info h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.president-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.members-info {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
}

.members-info h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 45px;
}

.member-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
    padding-right: 1rem;
}

.member-position {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 1800px) {
    .department-container {
        max-width: 1600px;
    }
}

@media (max-width: 1600px) {
    .department-container {
        max-width: 1400px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .department-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 2rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .department-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding: 0 1.5rem;
    }
    
    .departments-section {
        padding: 3rem 1rem;
    }
    
    .card-header {
        padding: 1.4rem 1.8rem;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}
