:root {
    --navy-deep: #112A46;
    --gold-bright: #FFD700; /* Vibrant Gold for District/Preamble */
    --gold-muted: #C5A028;  /* Sophisticated Gold for Hover/Borders */
    --whatsapp-green: #25D366;
}

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

/* Response for smaller screens */
@media (max-width: 1100px) { .grid-layout { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-layout { grid-template-columns: 1fr; } }

/* The Card Container */
.director-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 42, 70, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
}

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

/* Update this block in your CSS */
.district-name-bold, .district-simple {
    font-size: 1.2rem; 
    font-weight: 900;
    color: #FFD700 !important; /* This forces the Yellow color */
    text-transform:inherit;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Image Section */
.card-image-box {
    height:400px;
    position: relative;
    background: var(--navy-deep);
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    /* 'cover' ensures the box is filled even if the photo is very tall */
    object-fit: cover; 
    
    /* Center 15% is usually the 'Sweet Spot' for portraits with headroom */
    object-position: center 15%; 
    
    transition: 0.5s ease;
}

.director-card:hover .card-image-box img {
    transform: scale(1.1) translateY(-5%); /* Scales AND moves up slightly */
}

/* --- THE BOLD DISTRICT OVERLAY --- */
.district-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Deep gradient to make bold text readable */
    background: linear-gradient(to top, rgba(17, 42, 70, 0.95) 0%, rgba(17, 42, 70, 0.7) 60%, transparent 100%);
    padding: 25px 15px 15px;
    text-align: left;
}

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

.district-name-bold {
    font-size: 1.5rem; /* Increased size */
    font-weight: 900;   /* Ultra Bold */
    color: #FFD700;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Stronger shadow for "pop" */
}

/* Content Area */
.card-content {
    padding: 15px;
    text-align: center;
    border-top: 4px solid var(--gold-bright);
}

.role-badge {
    display: inline-block;
    color:#0786C3;
    padding: 1px 3px;
    border-radius: 4px;
    font-size: 1.2rem;
    text-transform:capitalize;
    font-weight: 700;
    letter-spacing: 1px;

}

.card-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-deep);
    font-size: 1.3rem;
    margin: 2px 0;
    font-weight: 800;
}



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

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-phone { background: var(--navy-deep); }
.btn-whatsapp { background: var(--whatsapp-green); }

.action-btn:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-facebook {
    background-color: #1877F2;
    color: white !important;
}

.btn-linkedin {
    background-color: #0077b5;
    color: white !important;
}

/* Ensures all action buttons have the same size/shape */
.contact-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Default State: Dark Grey Outlines Only */
.contact-actions .action-btn {
    background-color: transparent !important; /* No fill */
    border: 1px solid #9A9595 !important;        /* Dark grey outline */
    color:#9A9595 !important;                 /* Dark grey icon */
    width: 30px;
    height: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Hover State: Fill with Color and White Icon */
.action-btn:hover {
    color: #fff !important;
    transform: translateY(-3px);
    border-color: transparent !important; /* Hide border on hover */
}

/* Brand Colors on Hover */
.action-btn.btn-phone:hover { background-color: #28a745 !important; }
.action-btn.btn-whatsapp:hover { background-color: #25D366 !important; }
.action-btn.btn-facebook:hover { background-color: #1877F2 !important; }
.action-btn.btn-linkedin:hover { background-color: #0077b5 !important; }
.action-btn.btn-email:hover { background-color: #ea4335 !important; } /* Gmail Red */
