/* ============================================================
   Faculty Page Premium Styles
   ============================================================ */

:root {
    --primary-purple: #800080;
    --dark-purple: #3c003c;
    --light-gray: #f9f9f9;
}

.faculty-hero {
    background: linear-gradient(rgba(128, 0, 128, 0.85), rgba(60, 0, 60, 0.95)), url('../images/Batch2.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
}

.faculty-hero h1 {
    font-size: 3.5rem;
    font-weight: 850;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -1px;
}

.faculty-grid-section {
    padding: 80px 0;
    background: #fff;
}

.faculty-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    /* Slightly narrower min-width */
    gap: 30px;
}

.faculty-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    /* Prevent it from becoming "big" on wide screens */
}

.faculty-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(128, 0, 128, 0.1);
    border-color: var(--primary-purple);
}

.faculty-img-wrapper {
    width: 100%;
    height: 320px;
    /* Synchronized height */
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    flex-shrink: 0;
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on the face */
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faculty-item:hover .faculty-img-wrapper img {
    transform: scale(1.1);
}

.faculty-details {
    padding: 25px 20px;
}

.faculty-details h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif !important;
}

.faculty-details p {
    font-size: 1rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .faculty-hero h1 {
        font-size: 2.5rem;
    }

    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .faculty-hero {
        padding: 80px 0 50px;
    }
}