/* Start custom CSS for html, class: .elementor-element-5cd0763 *//* --- Modernized Team Section Base Styling --- */
.team-section-modern {
    background-color: #f8f9fa;
    padding: 80px 0;
    font-family: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.team-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-modern {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 60px;
    position: relative;
}

.section-title-modern::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #253c98;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* --- Responsive 4-Column Grid --- */
.employee-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

/* --- Redesigned White Theme Cards --- */
.employee-card-modern {
    background-color: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.employee-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 60, 152, 0.12);
    border-color: #253c98;
}

/* --- Picture Handler: fixed pixel height (not aspect-ratio) so this can't
     be overridden by Elementor's own image widget styling, which often sets
     its own height/width on the <img> and wins against aspect-ratio. --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;      /* fixed height — same for every card, no exceptions */
    overflow: hidden;
    background-color: #f1f3f7;
}

.employee-card-modern .card-image-wrapper img.employee-pic-modern {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    /* Default bias toward the upper-middle of the photo, where a head
       usually sits. Override per-card below for any outlier photos. */
    object-position: center 20% !important;
    transition: transform 0.5s ease;
}

.employee-card-modern:hover .employee-pic-modern {
    transform: scale(1.06);
}

/* Per-card overrides — use these on any photo where the face isn't
   landing in the same spot as the rest (zoomed in too much/too little,
   or shot from a different distance). Add the class to that one <img>
   in the HTML and tune the two values until the face lines up.
   e.g. <img class="employee-pic-modern pos-adjust-1" ...> */
.employee-pic-modern.pos-adjust-1 { object-position: center 10%; }
.employee-pic-modern.pos-adjust-2 { object-position: center 30%; }

.card-body-modern {
    padding: 25px 20px;
}

.employee-name-modern {
    font-size: 1.35rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.employee-title-modern {
    color: #253c98;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* --- New: phone number sits directly under the designation --- */
.employee-phone-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #4a5b6e;
    font-size: calc(0.9rem + 1px);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0 0 16px 0;
}

.employee-phone-modern i {
    color: #253c98;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    background-color: rgba(37, 60, 152, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-id-modern {
    display: inline-block;
    color: #4a5b6e;
    font-size: calc(0.95rem + 1px);
    font-weight: 700;
    background-color: #e8ecf2;
    padding: 6px 16px;
    border-radius: 20px;
}

/* --- Sleek 3-column office info strip: Head Office / Operating Hours /
     WhatsApp Chat, centered stacked columns so a 1-line item and a
     3-line item both sit centered rather than top-aligned. --- */
.office-info-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef1f6;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 10px 24px;
    border-right: 1px solid #eef1f6;
}

.info-item:last-child {
    border-right: none;
}

.info-icon-wrapper {
    color: #253c98;
    font-size: 1.4rem;
    width: 46px;
    height: 46px;
    background-color: rgba(37, 60, 152, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-content h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Description text bumped up 1px more, per request --- */
.info-content p {
    margin: 0;
    font-size: calc(0.9rem + 2px);
    color: #4a5b6e;
    line-height: 1.5;
}

.info-content .phone-highlight {
    font-weight: 800;
    color: #253c98;
    font-size: calc(1.05rem + 1px);
    display: block;
}

.info-content .sub-detail {
    font-size: 0.78rem;
    color: #7a8b9e;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* --- Responsive Tablet Breakpoint --- */
@media (max-width: 1024px) {
    .employee-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .office-info-modern {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }
    .info-item {
        border-right: none;
        border-bottom: 1px solid #eef1f6;
        padding: 15px 10px 25px;
    }
    .info-item:last-child {
        border-bottom: none;
    }
}

/* --- Responsive Mobile Breakpoint --- */
@media (max-width: 650px) {
    .team-section-modern {
        padding: 50px 0;
    }
    .section-title-modern {
        font-size: 1.85rem;
        margin-bottom: 40px;
    }
    .employee-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .office-info-modern {
        padding: 25px;
    }
}/* End custom CSS */