/* ================================
   TEAM PAGE
   ================================ */

.team-page {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 80px 20px;
}

.team-header {
    max-width: 700px;
    margin-bottom: 70px;
}

.team-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.team-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ================================
   TEAM CATEGORY
   ================================ */

.team-category {
    margin-bottom: 70px;
}

.team-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.team-category-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: capitalize;
    margin: 0;
}

.team-category-line {
    flex: 1;
    height: 1px;
    background: #333;
}


/* ================================
   MEMBER GRID
   ================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* ================================
   MEMBER CARD
   ================================ */

.team-member {
    background-color: var(--secondary-background);
    border-radius: var(--primary-border-radius);
    overflow: hidden;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.team-member:hover {
    background-color: var(--secondary-element-hover-colour);
    transform: translateY(-3px);
}


/* ================================
   MEMBER IMAGE
   ================================ */

.member-image {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* ================================
   MEMBER CONTENT
   ================================ */

.member-content {
    padding: 24px;
}

.member-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;

    margin: 0 0 4px;
}

.member-title {
    color: var(--highlight-colour);
    font-size: 0.95rem;
    font-weight: 600;

    margin: 0 0 4px;
}

.member-origin {
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 16px;
}

.member-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;

    margin: 0;
}


/* ================================
   TABLET
   ================================ */

@media (max-width: 1500px) {

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 900px) {

    .team-page {
        padding: 60px 20px;
    }

    .team-header {
        margin-bottom: 50px;
    }

    .team-header h1 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-category {
        margin-bottom: 50px;
    }

    .team-category-header {
        gap: 12px;
    }

    .team-category-header h2 {
        font-size: 1.3rem;
    }

    .member-content {
        padding: 20px;
    }
}
