/* =====================================================
   TEAM SECTION
===================================================== */

.team-section {
    width: 100%;

    padding: 78px 25px 72px;

    background: #f8f4f0;

    overflow: hidden;
}


/* =====================================================
   CONTAINER
===================================================== */

.team-container {
    width: 100%;

    max-width: 960px;

    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.team-header {
    text-align: center;

    margin-bottom: 43px;
}


/* Label */

.team-label {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-bottom: 9px;

    color: #a60038;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.team-label span {
    color: #d88926;

    font-size: 12px;
}


/* Heading */

.team-header h2 {
    margin: 0;

    color: #171310;

    font-family: "Playfair Display", serif;

    font-size: clamp(35px, 4vw, 42px);

    line-height: 1.12;

    font-weight: 500;

    letter-spacing: -1px;
}


/* Description */

.team-header p {
    margin: 11px auto 0;

    color: #706762;

    font-size: 12px;

    line-height: 1.55;
}


/* =====================================================
   TEAM GRID
===================================================== */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 19px;
}


/* =====================================================
   TEAM CARD
===================================================== */

.team-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #f0dce0;

    border-radius: 11px;

    box-shadow:
        0 3px 8px rgba(55, 31, 18, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.team-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 28px rgba(55, 31, 18, 0.11);
}


/* =====================================================
   TEAM IMAGE
===================================================== */

.team-image {
    width: 100%;

    height: 212px;

    overflow: hidden;

    background: #ddd;
}


.team-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    transition:
        transform 0.5s ease;
}


.team-card:hover .team-image img {
    transform: scale(1.05);
}


/* =====================================================
   TEAM CONTENT
===================================================== */

.team-content {
    padding: 18px 18px 17px;

    text-align: center;
}


/* Name */

.team-content h3 {
    margin: 0;

    color: #171310;

    font-family: "Playfair Display", serif;

    font-size: 16px;

    line-height: 1.25;

    font-weight: 600;
}


/* Role */

.team-role {
    margin-top: 7px;

    color: #a60038;

    font-size: 8px;

    line-height: 1.3;

    font-weight: 700;

    letter-spacing: 0.3px;
}


/* =====================================================
   EXPERIENCE
===================================================== */

.team-experience {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 10px;

    padding: 4px 9px;

    border: 1px solid #f0c84b;

    border-radius: 20px;

    color: #876719;

    background: #fffdf4;

    font-size: 8px;

    line-height: 1;
}


.team-experience i {
    color: #c49b21;

    font-size: 9px;
}


/* =====================================================
   SPECIALITY
===================================================== */

.team-speciality {
    /* min-height: 30px; */

    margin: 12px 0 15px;

    color: #817974;

    font-size: 8px;

    line-height: 1.5;
}


/* =====================================================
   BOOK BUTTON
===================================================== */

.team-book-btn {
    width: 100%;

    min-height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 7px 8px;

    border-radius: 5px;

    background: #fff0f2;

    color: #a60038;

    text-decoration: none;

    font-size: 8px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 0.4px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.team-book-btn i {
    font-size: 9px;
}


.team-book-btn:hover {
    background: #a60038;

    color: #ffffff;

    transform: translateY(-1px);
}


/* =====================================================
   LARGE LAPTOP
===================================================== */

@media (max-width: 1100px) {

    .team-container {
        max-width: 900px;
    }

    .team-grid {
        gap: 15px;
    }

    .team-image {
        height: 200px;
    }

    .team-content {
        padding: 16px 13px;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 850px) {

    .team-section {
        padding: 65px 25px 65px;
    }

    .team-container {
        max-width: 700px;
    }

    .team-header {
        margin-bottom: 35px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 18px;
    }

    .team-image {
        height: 270px;
    }

    .team-content {
        padding: 18px;
    }

    .team-content h3 {
        font-size: 18px;
    }

    .team-role {
        font-size: 9px;
    }

    .team-experience {
        font-size: 9px;
    }

    .team-speciality {
        font-size: 10px;
    }

    .team-book-btn {
        min-height: 32px;

        font-size: 9px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .team-section {
        padding: 52px 16px 55px;
    }

    .team-header {
        margin-bottom: 28px;
    }


    /* Header */

    .team-label {
        font-size: 9px;

        letter-spacing: 0.8px;
    }

    .team-header h2 {
        font-size: 32px;

        line-height: 1.15;
    }

    .team-header p {
        margin-top: 9px;

        font-size: 10px;

        line-height: 1.55;
    }

    .team-desktop {
        display: none;
    }


    /* Grid */

    .team-grid {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }


    /* Image */

    .team-image {
        height: 190px;
    }


    /* Content */

    .team-content {
        padding: 13px 9px 11px;
    }

    .team-content h3 {
        font-size: 13px;
    }

    .team-role {
        margin-top: 5px;

        font-size: 7px;
    }


    /* Experience */

    .team-experience {
        margin-top: 8px;

        padding: 4px 6px;

        font-size: 7px;

        gap: 3px;
    }

    .team-experience i {
        font-size: 7px;
    }


    /* Speciality */

    .team-speciality {
        min-height: 30px;

        margin: 9px 0 10px;

        font-size: 7.5px;

        line-height: 1.45;
    }


    /* Button */

    .team-book-btn {
        min-height: 27px;

        padding: 6px 4px;

        font-size: 7px;

        letter-spacing: 0.2px;
    }

    .team-book-btn i {
        font-size: 7px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .team-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .team-grid {
        gap: 10px;
    }

    .team-image {
        height: 175px;
    }

    .team-content {
        padding: 12px 7px 9px;
    }

    .team-content h3 {
        font-size: 12px;
    }

    .team-role {
        font-size: 6.5px;
    }

    .team-experience {
        font-size: 6.5px;

        padding: 4px 5px;
    }

    .team-speciality {
        font-size: 7px;
    }

    .team-book-btn {
        font-size: 6.5px;

        min-height: 25px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 340px) {

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-image {
        height: 250px;
    }

    .team-content {
        padding: 17px;
    }

    .team-content h3 {
        font-size: 17px;
    }

    .team-role {
        font-size: 8px;
    }

    .team-experience {
        font-size: 8px;
    }

    .team-speciality {
        font-size: 9px;
    }

    .team-book-btn {
        min-height: 32px;

        font-size: 8px;
    }

}