/* Department Page Styles - Clean & Mobile Responsive */

/* Social Icon Hover Effect */
a i.fa-solid, 
a i.fa-brands {
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover i.fa-solid, 
a:hover i.fa-brands {
    color: #2563eb !important;
}

/* Leadership Section */
.leadership-section {
    padding: 120px 20px 80px 20px;
    background-color: #ffffff;
}

.leadership-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.leadership-section h1 {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    color: #000000;
    margin-bottom: 60px;
    font-size: 3em;
}

/* Leadership Grid */
.leadership-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.vertical-separator {
    width: 2px;
    background: linear-gradient(to bottom, transparent, #cccccc, transparent);
    min-height: 300px;
    align-self: stretch;
}

.leadership-category {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.leadership-category h2 {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    color: #000000;
    margin-bottom: 40px;
    font-size: 2.5em;
}

/* 5-Column Grid for Leaders on Desktop */
.leadership-category > div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.leadership-category > div > div {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.leadership-category > div > div:hover {
    background-color: #f9f9f9;
    transform: translateY(-5px);
}

.leadership-category > div > div > p:first-of-type {
    font-family: 'Comfortaa', sans-serif;
    color: #000000;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 500;
}

.leadership-category > div > div > p:nth-of-type(2) {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #666666;
    font-size: 1em;
    margin-bottom: 10px;
}

.leadership-category > div > div > div {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.leadership-category a {
    color: #666666;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.leadership-category a:hover {
    color: #2563eb;
    transform: translateY(-3px) scale(1.15);
}

/* Departments Section */
.departments-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.departments-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.departments-section h1 {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    color: #000000;
    margin-bottom: 60px;
    font-size: 3em;
}

.department-item {
    margin-bottom: 100px;
}

.department-item h2 {
    font-family: 'Rajdhani', sans-serif;
    color: #000000;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-align: center;
}

/* 5-Column Grid for Department Members on Desktop */
.department-item > div {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    justify-content: center;
}

.department-item > div > div {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.department-item > div > div:hover {
    background-color: #f9f9f9;
    transform: translateY(-5px);
}

/* Department Images - Force sizing */
.department-item img,
.department-item > div > div img {
    display: block;
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000000;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.leadership-category img,
.leadership-category > div > div img {
    display: block;
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000000;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.department-item > div > div > p:first-of-type {
    font-family: 'Comfortaa', sans-serif;
    color: #000000;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 500;
}

.department-item > div > div > p:nth-of-type(2) {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #666666;
    font-size: 1em;
    margin-bottom: 10px;
}

.department-item > div > div > div {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.department-item a {
    color: #666666;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.department-item a:hover {
    color: #2563eb;
    transform: translateY(-3px) scale(1.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leadership-section h1,
    .departments-section h1 {
        font-size: 2.5em;
    }
    
    .leadership-category h2,
    .department-item h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .vertical-separator {
        display: none;
    }
    
    .leadership-grid {
        gap: 40px;
    }
    
    .leadership-section {
        padding: 100px 15px 60px 15px;
    }
    
    .departments-section {
        padding: 60px 15px;
    }
    
    .leadership-section h1,
    .departments-section h1 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .leadership-category h2,
    .department-item h2 {
        font-size: 1.7em;
        margin-bottom: 30px;
    }
    
    .leadership-category,
    .department-item {
        min-width: 100%;
    }
    
    .leadership-category > div,
    .department-item > div {
        gap: 30px;
    }
    
    .leadership-category img,
    .department-item img {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px;
        max-height: 120px;
    }
    
    .department-item {
        margin-bottom: 70px;
    }
}

@media (max-width: 480px) {
    /* 2 columns on mobile */
    .leadership-category > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .department-item > div {
        gap: 15px;
    }
    
    .department-item > div > div {
        width: calc(50% - 10px);
    }
    
    .leadership-category > div > div,
    .department-item > div > div {
        padding: 15px 10px;
    }
    
    .leadership-section {
        padding: 90px 10px 50px 10px;
    }
    
    .departments-section {
        padding: 50px 10px;
    }
    
    .leadership-section h1,
    .departments-section h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .leadership-category h2,
    .department-item h2 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    
    .leadership-category img,
    .department-item img {
        width: 110px !important;
        height: 110px !important;
        max-width: 110px;
        max-height: 110px;
        border-width: 2px;
    }
    
    .leadership-category > div > div > p:first-of-type,
    .department-item > div > div > p:first-of-type {
        font-size: 1em;
    }
    
    .leadership-category > div > div > p:nth-of-type(2),
    .department-item > div > div > p:nth-of-type(2) {
        font-size: 0.9em;
    }
    
    .leadership-category a,
    .department-item a {
        font-size: 1.3em;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .department-item {
        margin-bottom: 60px;
    }
}
