/* ================= SECTION ================= */

.directors-section {
    padding: 60px 40px;
    background: #f4f6f9;
    font-family: 'Montserrat', sans-serif;
}

/* ================= SLIDER ================= */

.directors-wrapper {
    overflow: hidden;
}

.directors-track {
    display: flex;
    gap: 25px;
    animation: slideDirectors 50s ease-in-out infinite;
}

/* Stop scrolling on hover */
.directors-wrapper:hover .directors-track {
    animation-play-state: paused;
}

@keyframes slideDirectors {

    0% { transform: translateX(0); }

    45% { transform: translateX(-45%); }

    55% { transform: translateX(-45%); }

    100% { transform: translateX(0); }
}

/* ================= CARD ================= */

.director-card {
    position: relative;
    min-width: 220px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: 0.4s ease;
}

/* Image */
.director-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Text Below */
.director-card h3,
.director-card p {
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
    transition: 0.4s ease;
}

.director-card h3 {
    color: #002147;
    font-weight: 600;
}

.director-card p {
    color: #666;
}

/* ================= HOVER EFFECT ================= */

.director-card:hover img {
    transform: scale(1.15);
}

/* Move text onto image */
.director-card:hover h3,
.director-card:hover p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 2;
    color: #ffffff;
}

/* Name */
.director-card:hover h3 {
    bottom: 70px;
    font-size: 18px;
    font-weight: 700;
    background: rgba(0, 33, 71, 0.85);
    padding: 6px 10px;
    border-radius: 6px;
}

/* Designation */
.director-card:hover p {
    bottom: 35px;
    font-size: 14px;
    background: rgba(255, 204, 0, 0.95);
    color: #002147;
    padding: 5px 10px;
    border-radius: 6px;
}

/* ================= PREMIUM MODAL ================= */

.director-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    width: 420px;
    border-radius: 14px;
    overflow: hidden;
    animation: modalFade 0.4s ease;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #002147, #003366);
    padding: 35px 20px;
    text-align: center;
}

.modal-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Modal Body */
.modal-body {
    padding: 25px 25px 30px;
    text-align: center;
}

.modal-body h2 {
    margin: 10px 0 5px;
    font-size: 22px;
    color: #002147;
    font-weight: 700;
}

.modal-body h4 {
    margin: 5px 0 15px;
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.modal-info p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Close */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
}

/* Animation */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .directors-section {
        padding: 40px 15px;
    }

    .directors-track {
        animation: slideDirectorsMobile 35s linear infinite;
    }

    @keyframes slideDirectorsMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-60%); }
    }

    .director-card {
        min-width: 180px;
        height: 250px;
    }

    .director-card img {
        height: 170px;
    }

    .modal-content {
        width: 90%;
    }
}

