/* =====================================================
   VIBRANT DIRECTORS CARD — HIGH VISIBILITY DISTRICT
   ===================================================== */

:root {
    --navy-deep: #112A46;
    --gold-bright: #FFD700; 
    --gold-muted: #C5A028;  
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
}

/* --- THE CARD CONTAINER --- */
.director-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(17, 42, 70, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.director-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-muted);
    box-shadow: 0 20px 40px rgba(17, 42, 70, 0.2);
}

/* --- IMAGE BOX + GOLD FRAME --- */
.card-image-box {
    height: 420px; 
    position: relative;
    background: #112A46; 
    overflow: hidden;
}

/* Gold Frame Reveal on Hover */
.card-image-box::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold-bright);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 2; /* Sits above image but below text */
    transform: scale(1.05);
}

.director-card:hover .card-image-box::after {
    opacity: 1;
    transform: scale(1);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* FIX FOR HEAD CUT */
    transition: transform 0.6s ease;
    display: block;
}

.director-card:hover .card-image-box img {
    transform: scale(1.05);
}


/* --- DISTRICT OVERLAY --- */
.district-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* We'll use a very dark, solid-to-transparent navy background */
    background: linear-gradient(to top, 
        rgba(17, 42, 70, 1) 0%, 
        rgba(17, 42, 70, 0.9) 60%, 
        transparent 100%) !important;
    padding: 40px 15px 15px !important;
    text-align: center;
    z-index: 999; /* Just to be 100% sure */
}

/* --- THE TEXT COLOR FIX --- */
.district-name-bold {
    color: #FFD700 !important; /* This FORCES the Yellow color */
    font-size: 10.4rem !important; 
    font-weight: 900 !important;
    text-transform: uppercase !important;
    display: block !important;
    
    /* This shadow creates contrast if the image behind is light */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    
    letter-spacing: 1px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Fix for the "District" label if you use one */
.district-label {
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    display: block !important;
    margin-bottom: 2px !important;
    opacity: 0.9;
}

.district-label {
    display: block;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.district-name-bold {
    font-size: 1.4rem; 
    font-weight: 900;
    color: var(--gold-bright) !important; /* Vibrant Yellow */
    text-transform: uppercase;
    line-height: 1.1;
    /* Strong shadow so it stands out even on light backgrounds */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9); 
    margin: 0;
}

/* --- CONTENT AREA --- */
.card-content {
    padding: 22px 10px;
    text-align: center;
    background: #fff;
    border-top: 5px solid var(--gold-bright);
}

.card-content h4 {
    color: var(--navy-deep);
    font-size: 1.35rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.role-badge {
    color: #0786C3;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- ACTION BUTTONS --- */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.contact-actions .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #9A9595;
    color: #555 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.action-btn:hover {
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-3px);
}

.btn-phone:hover { background: #28a745 !important; }
.btn-whatsapp:hover { background: #25D366 !important; }
.btn-email:hover { background: #ea4335 !important; }

/* Responsive optimizations */
@media (max-width: 1100px) { .grid-layout { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .grid-layout { grid-template-columns: 1fr; }
    .card-image-box { height: 380px; }
}