
/* ══════════════════════════════════════════
    TEAM AREA (Teachers) - MODERN REDESIGN
══════════════════════════════════════════ */
.team-area {
    padding: 100px 0;
    background: var(--cream-dk, #f9f8f6);
    position: relative;
    overflow: hidden;
}

/* Cleaner Section Heading Design */
.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading .sub-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold, #c9962a);
    display: inline-block;
    margin-bottom: 8px;
}

.section-heading h3 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--navy, #0d1b3e);
    margin: 0;
}

.title-divider {
    width: 50px;
    height: 3px;
    background: var(--gold, #c9962a);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* Fluid Responsive Grid Layout */
.teamContainer { 
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 100%;
}

@media (min-width: 576px) {
    .teamContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .teamContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .teamContainer {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Card Architecture */
.teamContainer-card {
    background: var(--white, #ffffff);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border, #eaecef);
    box-shadow: 0 10px 30px rgba(13, 27, 62, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teamContainer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 27, 62, 0.08);
    border-color: rgba(201, 150, 42, 0.2);
}

/* Image Wrapper and Animation Logic */
.member-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for clean image alignment */
    overflow: hidden;
    background: #f1f3f5;
}

.teamContainer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.teamContainer-card:hover img {
    transform: scale(1.06);
}

/* Modern Overlay Interaction Pattern */
.socials-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 27, 62, 0.85) 0%,
        rgba(13, 27, 62, 0.2) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    opacity: 0;
    transition: all 0.4s ease;
}

.socials-links {
    display: flex;
    gap: 12px;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teamContainer-card:hover .socials-overlay {
    opacity: 1;
}

.teamContainer-card:hover .socials-links {
    transform: translateY(0);
}

/* Individual Social Icon Buttons */
.social-icon {
    width: 40px;
    height: 40px;
    background: var(--white, #ffffff);
    color: var(--navy, #0d1b3e) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
    background: var(--gold, #c9962a);
    color: var(--white, #ffffff) !important;
    transform: translateY(-3px);
}

/* Typography & Content Layout */
.teamContainer-card .content {
    padding: 10px 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content h2.name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy, #0d1b3e);
    margin: 0 0 6px 0;
}

.content h5.role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold, #c9962a);
    margin: 0 0 14px 0;
}

.content p.desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-mid, #64748b);
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Clips multi-line text cleanly */
    -webkit-box-orient: vertical;
    overflow: hidden;
}