/* ==========================================================================
   5. ABOUT SECTION STYLING
   ========================================================================== */
.about {
    background-color: var(--bg-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    height: 500px;
    background-image: url('../../images/group.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-meta {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.meta-item h4 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.meta-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* ==========================================================================
   5B. MEET THE TEAM SECTION STYLING
   ========================================================================== */
.team {
    background-color: var(--bg-cream);
}

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

.team-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.02);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

/* Enlarge the frame layout from 140px to 175px */
.team-img-wrapper {
    width: 175px;
    height: 175px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

/* Added a slight scale zoom to crop closer onto the faces */
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.15); 
    transition: transform 0.3s ease;
}

/* Gives a nice subtle immersive zoom effect on hover */
.team-card:hover .team-img-wrapper img {
    transform: scale(1.22);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.team-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBILE & TABLET ADAPTABILITY)
   ========================================================================== */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Horizontal card swiper system for tablets and mobile to prevent long scroll */
    .team-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px;
        padding: 20px 24px 30px 24px;
        margin: 0 -24px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide default scrollbar Firefox */
    }
    
    .team-grid::-webkit-scrollbar {
        display: none; /* Hide default scrollbar Chrome/Safari/Edge */
    }
    
    .team-card {
        flex: 0 0 280px !important; /* Force card width and prevent compression */
        scroll-snap-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }
}

@media (max-width: 768px) {
    /* ABOUT IMAGE FIX */
    .about-image {
        height: 40vh;
        min-height: 280px;
        background-position: center center;
    }
}
