/* ==========================================================================
   4. MEET THE TEAM PAGE SPECIFIC
   (Only affects meet-the-team.html)
   ========================================================================== */

/* Main container for the team content */
.team-container {
    max-width: 1100px;
    margin: 80px auto; /* Adds space below the header */
    padding: 0 20px;
}

/* Styling for the page title and intro text */
.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* The red line under the "Meet Our Team" title */
.header-line {
    height: 4px;
    width: 80px;
    background: var(--red);
    margin: 0 auto 20px;
}

/* The grid that puts you and Judy side-by-side */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

/* Individual profile cards */
.team-card {
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    border-bottom: 5px solid var(--red); /* The branding stripe at the bottom */
    transition: transform 0.3s ease;
}

/* Makes the card lift slightly when you hover over it */
.team-card:hover {
    transform: translateY(-10px);
}

/* The box containing the photo */
.image-box {
    width: 100%;
    height: 450px;
    background: #333; /* Fallback color if image is missing */
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos aren't stretched/squashed */
}

/* Text area inside the card */
.team-info {
    padding: 40px;
}

.team-info h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

/* Role title (Agency Owner / Partner) */
.role {
    color: var(--red);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 20px;
    
}

/* The bio text color */
.bio {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Responsive adjustment for small phones */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .image-box {
        height: 350px;
    }
}
