/* ==========================================================================
   Team Block Layout (team.css)
   ========================================================================== */

/* Base Wrapper */
 html, body { margin: 0;
       padding: 0;
       overflow-x: hidden;
       max-width: 100vw;
       box-sizing: border-box;
       overscroll-behavior: none;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.team-page-wrapper {
    background-color: #fcfcfc;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header Text Styling */
.team-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-header h2 {
    font-size: 36px;
    color: #222222;
    margin-bottom: 10px;
    font-weight: 700;
}

.team-header p {
    font-size: 16px;
    color: #777777;
}

/* ==========================================
   Grid Layout (Mobile First: Vertical)
   ========================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacks vertically on small screens */
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================
   Team Card Styling
   ========================================== */
.team-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Subtle lift effect when hovered over */
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper and Sizing */
.card-image-wrapper {
    width: 100%;
    padding-top: 35px;
}

.team-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%; /* Makes the image a perfect circle */
    border: 4px solid #f0f0f0;
    margin: 0 auto;
    display: block;
}

/* Text Content Inside Card */
.card-content {
    padding: 25px 30px 40px;
}

.member-name {
    font-size: 22px;
    color: #111111;
    margin-bottom: 5px;
    font-weight: 600;
}

.member-role {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0f766e; /* A professional, subtle green accent */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Desktop Layout (Horizontal)
   ========================================== */
@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr; /* Splits into two side-by-side columns */
        gap: 40px;
    }
}