/* Container & Section */
.container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.team-section {
    background-color: #0b0b0b;
    padding: 160px 0;
    overflow-x: hidden;
}

.section-header h2 {
    color: #ffffff;
    font-family: "din-2014", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 30px;
    position: relative;
}

/* The Grid */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* --- CARD ANIMATIONS --- */
.doctor-card {
    width: 100%;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doctor-card:hover {
    transform: translateY(-10px);
    /* Lift card up on hover */
}

.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.doctor-card:hover .image-box img {
    filter: grayscale(0%);
    transform: scale(1.1);
    /* Zoom image on hover */
}

/* --- NEW BADGE WITH FLAG --- */
.badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 115, 186, 0.95);
    /* Semi-transparent WSB Blue */
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Space between flag and name */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: 0.3s ease;
}

.flag-icon {
    font-size: 14px;
    /* Slightly larger flag */
    line-height: 1;
}

.doctor-card:hover .badge {
    background: #0073ba;
    transform: scale(1.05);
}

/* Info Styling */
.doctor-info {
    padding-top: 15px;
}

.doctor-info h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: "din-2014", sans-serif;
    transition: color 0.3s ease;
}

.doctor-card:hover h4 {
    color: #0073ba;
    /* Name turns blue on hover */
}

.doctor-info p {
    line-height: 1.4;
    color: #a0a0a0;
    font-size: 12px;
    margin: 0;
    font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 1300px) {
    .doctor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .doctor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .doctor-grid {
        grid-template-columns: 1fr;
    }
}