/*--------------------------------------------------------------
# Modern Team Section
--------------------------------------------------------------*/
.team .swiper {
    padding: 40px 10px;
}

.team .swiper-slide {
    height: auto;
    padding-bottom: 20px;
}

.team-card-modern {
    position: relative;
    height: 100%;
    margin: 10px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-inner {
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-modern:hover .team-card-inner {
    background: var(--glass-card-hover);
    border-color: rgba(242, 105, 36, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 56, 94, 0.1), 0 0 30px rgba(242, 105, 36, 0.1);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/0.85;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(30%);
}

.team-card-modern:hover .team-image-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(1, 56, 94, 0.4) 100%);
    opacity: 0.4;
    transition: opacity 0.5s;
}

.team-card-modern:hover .image-overlay {
    opacity: 0.5;
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.corner-accent.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-accent.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-accent.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-accent.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.team-card-modern:hover .corner-accent {
    opacity: 1;
}

.team-card-modern:hover .corner-accent.top-left {
    top: 15px;
    left: 15px;
}

.team-card-modern:hover .corner-accent.top-right {
    top: 15px;
    right: 15px;
}

.team-card-modern:hover .corner-accent.bottom-left {
    bottom: 15px;
    left: 15px;
}

.team-card-modern:hover .corner-accent.bottom-right {
    bottom: 15px;
    right: 15px;
}

/* Team Info */
.team-info-modern {
    padding: 10px 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.role-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(242, 105, 36, 0.3);
    transition: all 0.3s;
}

.team-card-modern:hover .role-tag {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 105, 36, 0.5);
}

.team-info-modern h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 8px 0 5px;
    color: var(--brand-blue);
    transition: color 0.3s;
}

.team-card-modern:hover .team-info-modern h4 {
    color: var(--accent-color);
}

.team-position {
    font-size: 0.75rem;
    color: var(--default-color);
    opacity: 0.7;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Social Links */
.team-social-modern {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.social-icon-modern {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 56, 94, 0.05);
    border: 1px solid rgba(1, 56, 94, 0.1);
    border-radius: 50%;
    color: var(--brand-blue);
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon-modern .ai {
    font-size: 14px;
    line-height: 1;
}

.social-icon-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-icon-modern:hover {
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 105, 36, 0.4);
}

.social-icon-modern:hover::before {
    transform: scale(1);
}

/* Category Sections */
.team-category {
    margin-bottom: 80px;
}

.team-category-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.team-category-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.team-category-header .header-line {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 50px;
}

.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Lead Section Layout */
.lead-row {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.lead-row .team-card-modern {
    max-width: 280px;
    width: 100%;
}

/* Alumni Card Styling */
.alumni-card {
    background: rgba(1, 56, 94, 0.02);
    border: 1px solid rgba(1, 56, 94, 0.05);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--accent-color);
}

.alumni-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(242, 105, 36, 0.3);
    transform: translateX(5px);
}

.alumni-card .role-tag {
    font-size: 8px;
    padding: 2px 8px;
    margin-bottom: 10px;
    width: fit-content;
}

.alumni-card h4 {
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin: 0 0 5px 0;
}

.alumni-card .team-position {
    margin: 0;
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .team-grid-modern {
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .team-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .team-info-modern {
        padding: 20px 15px;
    }

    .team-info-modern h4 {
        font-size: 1rem;
    }

    .team-category-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-card-inner {
        border-radius: 16px;
    }

    .team-image-wrapper {
        border-radius: 16px 16px 0 0;
    }
}

/* ── Past Members: Year Badge ── */
.past-year-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(242, 105, 36, 0.1);
    border: 1px solid rgba(242, 105, 36, 0.25);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 12px;
    vertical-align: middle;
}

/* ── Alumni Archive ── */
.alumni-archive {
    margin-top: 20px;
}

.archive-year-group {
    border: 1px solid rgba(1, 56, 94, 0.08);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(1, 56, 94, 0.04);
}

.archive-year-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.archive-year-toggle:hover {
    background: rgba(1, 56, 94, 0.02);
}

.archive-year-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: 1px;
    min-width: 52px;
}

.archive-member-count {
    font-size: 0.8rem;
    color: var(--default-color);
    opacity: 0.5;
    flex: 1;
}

.archive-year-toggle .toggle-chevron {
    font-size: 0.85rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.archive-year-group.open .toggle-chevron {
    transform: rotate(180deg);
}

.archive-year-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-year-group.open .archive-year-content {
    max-height: 1200px;
}

.archive-member-list {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(1, 56, 94, 0.06);
}

.archive-member-item:last-child {
    border-bottom: none;
}

.archive-member-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(1, 56, 94, 0.08);
}

.archive-member-info {
    flex: 1;
    min-width: 0;
}

.archive-member-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0 0 2px;
}

.archive-member-info span {
    font-size: 0.78rem;
    color: var(--default-color);
    opacity: 0.6;
    display: block;
}

.archive-member-info .now-at {
    color: var(--accent-color);
    opacity: 1;
    font-style: italic;
}

.archive-member-socials {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.archive-member-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 56, 94, 0.04);
    border: 1px solid rgba(1, 56, 94, 0.1);
    color: var(--brand-blue);
    font-size: 11px;
    transition: all 0.2s;
}

.archive-member-socials a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 576px) {
    .archive-member-socials {
        display: none;
    }

    .archive-year-toggle {
        padding: 16px 18px;
    }

    .archive-member-list {
        padding: 0 18px 16px;
    }
}