@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Nunito:wght@400;700&display=swap');

body {
    background: #F5C1CC;
    margin: 1rem 0 0 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    height: 200px;
    background-color: #33333379;
}

.container h1 {
    font-family: 'Lora', serif;
    color: #fff;
    text-align: end;
    padding-top: 3rem;
    padding-right: 10.5rem;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.container span {
    font-family: 'Lora', serif;
    color: #fff;
    text-align: end;
    display: block;
    padding: 0 10.5rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.team-main {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-header {
    font-family: 'Lora', serif;
    color: #333;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin: 0 auto 2rem auto;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
}

.team-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.team-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.team-card {
    background: #fff;
    width: 500px;
    height: 340px;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin: 0 auto;
}

.team-card-photo {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px 0 0 18px;
}

.team-card-description {
    width: 50%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.team-card-description h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #cd51c6;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 0.5rem;
}

.team-card-description p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #333;
    font-family: 'Lora', serif;
    margin: 0.2rem 0;
}

.team-card-description ul {
    list-style-type: disc;
    margin: 0.3rem 0;
    padding-left: 1rem;
    font-family: 'Lora', serif;
    color: #333;
}

.team-card-description li {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

/* Tablets (600px - 900px) */
@media (max-width: 900px) {

    .container {
        height: 180px;
    }

    .container h1 {
        font-size: 2rem;
        padding-right: 2rem;
    }

    .container span {
        font-size: 1.2rem;
        padding-right: 2rem;
    }

    .team-main {
        max-width: 95vw;
    }
    .team-children {
        gap: 1.5rem;
    }
    .team-hierarchy {
        margin-bottom: 1.5rem;
    }
    .team-card {
        width: 400px;
        height: 350px;
    }
    .team-card-description h3 {
        font-size: 1rem;
    }
    .team-card-description p {
        font-size: 0.9rem;
    }
    .team-card-description ul {
        margin: 0.2rem 0;
        padding-left: 0.8rem;
    }
    .team-card-description li {
        font-size: 0.85rem;
    }
}

/* Small phones (<600px) */
@media (max-width: 600px) {

    .container {
        height: 160px;
    }

    .container h1 {
        font-size: 1.8rem;
        padding-right: 1rem;
    }

    .container span {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .team-header {
        font-size: 1.4REM;
    }
    .team-hierarchy {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .team-children {
        flex-direction: column;
        gap: 1.2rem;
    }
    .team-card {
        width: 400px;
        height: 360px;
    }
    .team-card-description h3 {
        font-size: 0.95rem;
    }
    .team-card-description p {
        font-size: 0.85rem;
    }
    .team-card-description ul {
        margin: 0.1rem 0;
        padding-left: 0.7rem;
    }
    .team-card-description li {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
}

@media (max-width: 400px) {

    .container {
        height: 155px;
    }

    .container h1 {
        font-size: 1.8rem;
        padding-right: 1rem;
    }

    .container span {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .team-header {
        font-size: 1.4REM;
    }
    .team-hierarchy {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .team-children {
        flex-direction: column;
        gap: 1.2rem;
    }
    .team-card {
        width: 360px;
        height: 360px;
    }

    .team-card-photo {
        width: 50%;
        height: 100%;
    }

    .team-card-description h3 {
        font-size: 0.95rem;
    }
    .team-card-description p {
        font-size: 0.85rem;
    }
    .team-card-description ul {
        margin: 0.1rem 0;
        padding-left: 0.7rem;
    }
    .team-card-description li {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
}