/* ============================================================
   OUR TEAM SECTION — Homepage
   Modern, responsive, mobile-first design
   ============================================================ */

/* --- Section --- */
.atc-team-section {
    background: #f8faf9;
    padding: 80px 0;
}

/* --- Grid Layout --- */
.atc-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

/* --- Card --- */
.atc-team-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
}

.atc-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* --- Hidden cards (beyond first 4) --- */
.atc-team-card--hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.atc-team-grid.atc-team-grid--expanded .atc-team-card--hidden {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: atcTeamFadeIn 0.5s ease forwards;
}

.atc-team-grid.atc-team-grid--collapsing .atc-team-card--hidden {
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    animation: atcTeamFadeOut 0.4s ease forwards;
}

@keyframes atcTeamFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atcTeamFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* --- Profile Image --- */
.atc-team-card__img-wrap {
    width: 120px;
    height: 120px;
    margin: 28px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f4f2;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.atc-team-card:hover .atc-team-card__img-wrap {
    border-color: #2e7d32;
}

.atc-team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.atc-team-card:hover .atc-team-card__img {
    transform: scale(1.08);
}

/* --- Card Body --- */
.atc-team-card__body {
    padding: 20px 24px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.atc-team-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2e1a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.atc-team-card__designation {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2e7d32;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.atc-team-card__desc {
    font-size: 0.875rem;
    color: #5a6b5a;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

/* --- Social Icons --- */
.atc-team-card__social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.atc-team-card__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f4f2;
    color: #4a5e4a;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.atc-team-card__social a:hover {
    background: #2e7d32;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Toggle Button --- */
.atc-team-toggle {
    text-align: center;
    margin-top: 40px;
}

.atc-team-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atc-team-toggle__icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.atc-team-toggle__btn[aria-expanded="true"] .atc-team-toggle__icon {
    transform: rotate(180deg);
}

/* ============================================================
   Responsive Breakpoints (mobile-first)
   ============================================================ */

/* Tablet: 2 cards per row */
@media (min-width: 576px) {
    .atc-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop: 3 cards per row */
@media (min-width: 768px) {
    .atc-team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .atc-team-section {
        padding: 100px 0;
    }
}

/* Desktop: 4 cards per row */
@media (min-width: 1024px) {
    .atc-team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}
