/*5 Our Team */

/* Background setup */
.bg-alt {
    background-color: rgba(255, 255, 255, 0.02); 
    padding: 5rem 0;
}

/* 2-Column Grid Setup */
.team-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacks on mobile */
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr; /* Side-by-side on desktop */
        gap: 60px;
    }
}

/* Typography Enhancements */
.section-title.left-align {
    text-align: left;
    margin-bottom: 0.5rem;
}

.team-subtitle {
    color: var(--construction-orange);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.culture-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

/* Value Bullets */
.team-values {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.team-values li {
    color: var(--bright-white);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.value-icon {
    color: var(--construction-orange);
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Image Styling & Offset Border Effect */
.team-image-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* The offset border behind the image */
.team-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--construction-orange);
    border-radius: 8px;
    z-index: -1;
    transition: transform var(--transition-speed) ease;
}

/* Hover effect on the image frame */
.team-image-wrapper:hover::before {
    transform: translate(-10px, -10px);
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
