/* ----------------------------------------------------------------------------------------------------------------------- */
/* Team Page Styles */
/* ----------------------------------------------------------------------------------------------------------------------- */

/* Team Hero Section */
.team_hero_section {
    min-height: 50vh;
    /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--background-white);
    /* Replace with your desired background image */
    background: url('../../assets/img/hero/team_members.avif') no-repeat center center/cover;
    /* Reusing existing hero image for now */
    /* Consider a different, more team-focused background image if available */
    /* e.g., background: url('../assets/img/team/team-hero-bg.jpg') no-repeat center center/cover; */
}

.team_hero_section .hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

.team_hero_section .container {
    position: relative;
    z-index: 2;
}

.team_hero_section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    /* Responsive title size */
    font-weight: 700;
    margin: 0;
}

/* Team Hero Section */
.team_hero_section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--background-white);
    background: url('../../assets/img/hero/team_members.avif') no-repeat center center/cover;
}

.team_hero_section .hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.team_hero_section .container {
    position: relative;
    z-index: 2;
}

.team_hero_section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
}

/* Team Members Section */
.team_members_section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.team_members_section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team_members_section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--goal-text-color-headings);
    margin-bottom: 40px;
}

.team_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.team_member_card {
    background-color: transparent;
    /* Card itself is transparent, inner handles content */
    perspective: 1000px;
    /* For 3D effect */
    border: none;
    /* Remove border from outer card */
    box-shadow: none;
    /* Remove shadow from outer card */
    height: 400px;
    /* Fixed height for consistent flip */
    max-height: 400px;
    border-radius: var(--goal-standard-border-radius);
    overflow: hidden;
    /* Ensures content stays within bounds during flip */
}

.card_inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    /* Key for 3D flip effect */
    border-radius: var(--goal-standard-border-radius);
    box-shadow: var(--goal-soft-shadow);
    /* Apply shadow to inner card */
}

.team_member_card:hover .card_inner {
    transform: rotateY(180deg);
}

.card_front,
.card_back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Hide the back of the element until flipped */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    padding: 30px;
    border-radius: var(--goal-standard-border-radius);
    box-sizing: border-box;
    /* Include padding in element's total width and height */
    background-color: var(--goal-card-background-color);
    /* Background for both sides */
    border: 1px solid var(--goal-card-border-color);
    /* Border for both sides */
}

.card_front {
    color: var(--goal-text-color-headings);
    z-index: 2;
}

.card_back {
    background-color: var(--primary_color);
    /* Different background for the back */
    color: var(--background-white);
    /* White text on the back */
    transform: rotateY(180deg);
    padding: 20px;
    /* Adjust padding for the description */
    align-items: flex-start;
    /* Align text to the left on the back */
    text-align: left;
    /* Align text to the left on the back */
}

.team_member_image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid var(--background-yellow);
    /* Add a border to the image */
}

.card_front h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--goal-text-color-headings);
    margin-bottom: 10px;
}

.card_front .title {
    font-size: 1.1rem;
    color: var(--primary_color);
    font-weight: 600;
    margin-bottom: 0;
    /* Remove margin as description moves to back */
}

.card_back .description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    /* Remove default paragraph margin */
}


/* CaraPHI Connect Section - No change here as requested */
.caraphi_connect_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.connect_member_card {
    background-color: var(--goal-card-background-color);
    border: 1px solid var(--goal-card-border-color);
    border-radius: var(--goal-standard-border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--goal-soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect_member_card:hover {
    transform: translateY(-5px);
    box-shadow: var(--goal-hover-shadow);
}

.connect_member_card h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--goal-text-color-headings);
    margin-bottom: 8px;
}

.connect_member_card .title {
    font-size: 1rem;
    color: var(--primary_color);
    font-weight: 600;
    margin-bottom: 5px;
}

.connect_member_card .location {
    font-size: 0.9rem;
    color: var(--secoundary_text);
}