/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}


/* Faculty Cards - Full Image Design */
.faculty-card {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.faculty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7)); */
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.2), #f3b200a0); */

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: all 0.3s ease;
}

.image-overlay-primary{
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), #002D58);
}
.image-overlay-blue{
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), #5cbdb2a5);
}
.image-overlay-yellow{
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), #f3b200a0);
}
.image-overlay-red{
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), #a11b16a5);
}

.faculty-card:hover .image-overlay {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
}
/* .faculty-card:hover .image-overlay-green {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
}
.faculty-card:hover .image-overlay-burgundy {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
}
.faculty-card:hover .image-overlay-blue {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
}
.faculty-card:hover .image-overlay-yellow {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
}
.faculty-card:hover .image-overlay-red {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.9));
} */

.faculty-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.faculty-card:hover .faculty-icon {
    background: white;
    transform: scale(1.1);
}

.faculty-name {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.faculty-description {
    color: white;
    margin-bottom: 20px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    line-height: 1.6;
}

.faculty-card:hover .faculty-description {
    height: 100px;
    opacity: 1;
}

.faculty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.faculty-btn:hover {
    gap: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.section-heading2 {
    position: relative;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
}

.section-heading2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.academics-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats-section {
    background: var(--light);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-weight: 600;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b7e 100%);
    /* background: var(--primary); */
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-btn {
    background: var(--accent);
    color: var(--primary) !important;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cta-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Responsive Design */
@media (max-width: 768px) {            
    .faculty-card {
        height: 350px;
    }
    
    .faculty-name {
        font-size: 1.5rem;
    }
    
    .faculty-card:hover .faculty-description {
        height: 120px;
    }

    .section-heading2 {
        font-size: 2rem;
    }
}


@media (max-width: 576px) {
    .faculty-card {
        height: 300px;
    }
    
    .image-overlay {
        padding: 20px;
    }
    
    .faculty-name {
        font-size: 1.5rem;
    }
    
    .faculty-card:hover .faculty-description {
        height: 140px;
    }
    .faculty-card:hover .faculty-icon {
        opacity: 0;            /* fades smoothly */
        transform: scale(0.7); /* optional shrink */
        pointer-events: none;  /* acts like display:none for clicks */
    }
    .cta-section{
        margin-top: 0;
    }
}