/* ================= TEAM BANNER ================= */

.team-banner {
    background: #0b1c39; /* Dark Blue */
    padding: 90px 0;
    text-align: center;
}

.team-banner h1 {
    color: #c9a74d; /* Golden */
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 700;
}

.team-banner p {
    color: #ffffff;
    font-size: 16px;
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
}

/* ================= TEAM INTRO ================= */

.team-intro {
    padding: 70px 0;
    text-align: center;
    background: #f8f9fa;
}

.team-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.team-intro p {
    max-width: 750px;
    margin: auto;
    line-height: 1.7;
}

/* ================= TEAM SECTION ================= */

.team-section {
    padding: 80px 0;
    background: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ================= TEAM CARD ================= */

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-img {
    width: 100%;
    aspect-ratio: 3 / 4;   /* Perfect for portrait */
    overflow: hidden;
    background: #eee;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Fills frame properly */
    object-position: top; /* Keeps face visible */
}


.team-content {
    padding: 25px;
    text-align: center;
}

.team-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.team-content span {
    display: block;
    font-size: 14px;
    color: #c9a74d;
    margin-bottom: 12px;
    font-weight: 600;
}

.team-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
