.team-card-container
{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 48px 32px;
}
.team-card
{
    cursor: pointer;
    background-color: white;
}
.member-photo-container
{
    /* width: 100%; */
    aspect-ratio: 5 / 6;
    position: relative;
}
.member-photo
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* box-shadow: 0px 15px 60px -10px rgba(143, 125, 109, 0.35); */
    border: 2px solid var(--theme-color-2);
}
.member-overlay-btn
{
    position: absolute;
    bottom: -25px;
    right: 80px;
}

/* Responsive Design for Team Cards */
@media (max-width: 1600px)
{
    .team-card-container
    {
        grid-template-columns: repeat(6, 1fr);
        gap: 40px 28px;
    }
}

@media (max-width: 1400px)
{
    .team-card-container
    {
        grid-template-columns: repeat(5, 1fr);
        gap: 36px 24px;
    }
}

@media (max-width: 1200px)
{
    .team-card-container
    {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 992px)
{
    .team-card-container
    {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 16px;
    }
}

@media (max-width: 768px)
{
    .team-card-container
    {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    
    .member-overlay-btn
    {
        bottom: -20px;
        right: 60px;
    }
}

@media (max-width: 512px)
{
    .team-card-container
    {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .member-overlay-btn
    {
        bottom: -15px;
        right: 40px;
    }
}

@media (max-width: 480px)
{
    .team-card-container
    {
        gap: 16px;
    }
    
    .member-overlay-btn
    {
        bottom: -10px;
        right: 30px;
    }
}

/* Team Accordion Styling */
.team-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-section {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.team-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.team-section-header:hover {
    background: var(--theme-color-2);
}

.team-section-header:hover h3 {
    color: white !important;
}

.team-section-header:hover .toggle-arrow {
    color: white;
}

.team-section-header.active {
    background: var(--theme-color-2);
    border-bottom: 1px solid #e5e5e5;
}

.team-section-header.active h3 {
    color: white !important;
}

.team-section-header.active .toggle-arrow {
    color: white;
    transform: rotate(180deg);
}

.toggle-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--theme-color-4);
}

.team-section-content {
    display: none;
    padding: 24px;
    background: white;
    animation: slideDown 0.3s ease-out;
}

.team-section-content.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Cards Container inside accordion - Responsive */
.team-section-content .team-card-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 48px 32px;
}

/* Responsive Design for Accordion Content */
@media screen and (max-width: 1600px) {
    .team-section-content .team-card-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 40px 28px;
    }
}

@media screen and (max-width: 1400px) {
    .team-section-content .team-card-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 36px 24px;
    }
}

@media screen and (max-width: 1200px) {
    .team-section-content .team-card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 20px;
    }
}

@media screen and (max-width: 992px) {
    .team-section-content .team-card-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 16px;
    }
}

@media screen and (max-width: 768px) {
    .team-section-header {
        padding: 16px 20px;
    }
    
    .team-section-content {
        padding: 20px;
    }
    
    .team-section-content .team-card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
}

@media screen and (max-width: 512px) {
    .team-section-content .team-card-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .team-section-header {
        padding: 12px 16px;
    }
    
    .team-section-header h3 {
        font-size: 20px;
    }
    
    .team-section-content {
        padding: 16px;
    }
    
    .team-section-content .team-card-container {
        gap: 16px;
    }
}