/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}

/* Dean Section */
.dean-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.dean-card {
    display: flex;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 45, 88, 0.1);
    max-width: 700px;
    width: 100%;
    position: relative;
    border-left: 5px solid var(--accent);
}

.dean-image-container {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.dean-image {
    max-height: 17rem;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
}

.dean-card:hover .dean-image {
    transform: scale(1.03);
}

.dean-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 8px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 5px 5px 0;
    z-index: 2;
}

.dean-info {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dean-name {
    margin: 0;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dean-position {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: baseline;
}

.dean-position i {
    margin-right: 8px;
    color: var(--primary);
}

.dean-email {
    background-color: var(--light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
}
.dean-email-inner{
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
}
.dean-email-inner i{
    color: var(--primary) !important;
}
.email-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.email-link:hover {
    color: var(--accent);
}

.email-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--accent);
}

.faculty-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 45, 88, 0.15);
}

.faculty-image-container {
    height: 220px;
    overflow: hidden;
}

.faculty-image {
    width: 100%;
    height: 100%;
    object-fit: fit;
    /* object-position: top; */
    transition: transform 0.4s ease;
}

.faculty-card:hover .faculty-image {
    transform: scale(1.05);
}

.faculty-info {
    flex: 1; /* Takes all available space */
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.faculty-name {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.faculty-position {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    /* padding-bottom: 15px;
    border-bottom: 1px solid #eee; */
}

.faculty-email {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    align-items: center;
    margin-top: auto;
    justify-content: space-between;
}

.email-address {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.faculty-email:hover .email-address{
    color: var(--accent);
}

.email-button {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-button:hover {
    background-color: var(--primary);
    color: var(--accent);
    transform: scale(1.1);
}

.directory-container{
    text-align: start;
}

.col-lg-4, .col-md-6, .col-sm-12 {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dean-card {
        flex-direction: column;
        max-width: 500px;
    }
    
    .dean-image-container {
        width: 100%;
        height: 250px;
    }
    
    .dean-info {
        width: 100%;
        padding: 25px;
    }
    
    .dean-name {
        font-size: 1.6rem;
    }
    
    .faculty-title {
        font-size: 2.2rem;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .directory-container {
        padding: 5px 5px;
    }
    
    .faculty-title {
        font-size: 1.8rem;
    }
    
    .faculty-subtitle {
        font-size: 1rem;
    }
    
    .dean-name {
        font-size: 1.4rem;
    }
    
    .dean-position {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: var(--light-text);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
