/* Team Page Styling */
/* HERO BANNER */
.hero-banner {
    background: url('../../image/anout-banner.jpg') no-repeat center center;
    background-size: cover;
}

.team-page {
    padding: 50px 0;
    background-color: #fafbfc;
    min-height: 100vh;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-header h1 {
    font-size: 3.5rem;
    font-weight: 480;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .team-header h1 {
        font-size: 2.5rem;
    }

    .team-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .team-header h1 {
        font-size: 2rem;
    }
}

.team-header h1 span {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #333;
}

.team-header p {
    color: #777;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* Filters */
.team-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.filter-btn:hover {
    color: #1a1a1a;
}

.filter-btn.active {
    background: #fff;
    border-color: #e5e7eb;
    color: #1a1a1a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ─── Team Grid ─────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 32px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 16px;
    }

    .team-card-wrapper {
        border-width: 4px;
    }

    .team-card::after {
        width: 24px;
        height: 24px;
        font-size: 1rem;
        line-height: 24px;
        bottom: 8px;
        right: 8px;
    }

    .team-info {
        padding: 10px 10px 12px;
    }

    .team-info h3 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .team-info p {
        font-size: 11px;
    }
}

/* ─── Team Card ─────────────────────────────────────── */
.team-card-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    text-align: left;
    cursor: pointer;
    border: 10px solid #274362;
}

.team-card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Photo area */
.team-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* portrait ratio like the screenshot */
    overflow: hidden;
    background: #c9daea;
    /* light blue-grey fallback */
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.team-card-wrapper:hover .team-img {
    transform: scale(1.05);
}

/* Arrow button (bottom-right of photo) */
.team-card::after {
    content: '›';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: #27436b;
    color: #fff;
    font-size: 1.4rem;
    line-height: 34px;
    text-align: center;
    border-radius: 4px;
    pointer-events: none;
}

/* Info panel */
.team-info {
    background: #27436b;
    /* dark navy, matching screenshot */
    padding: 18px 20px 20px;
    text-align: left;
}

.team-info h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Designation — cyan/teal like in the screenshot */
.team-info p {
    margin: 0;
    font-size: 0.82rem;
    color: #5bc4e8;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

/* Practice area text (3rd line, if you add it) */
.team-info .practice-area {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #ccd6f0;
    font-weight: 400;
}