/* ==========================================================================
   TEAM SECTION STYLES (Curved Premium Aesthetic)
   ========================================================================== */

.team-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 110px 0;
    background-color: var(--primary-dark, #0d1536);
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.team-container {
    max-width: 1200px;
    width: 88%;
    margin: 0 auto;
}

/* Layout Architecture */
.team-grid-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

/* Header Column */
.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 136, 41, 0.12);
    border: 1px solid rgba(192, 136, 41, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.team-badge .badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold, #C08829);
    border-radius: 50%;
}

.team-badge .section-tagline {
    color: var(--accent-gold, #C08829);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.team-main-title .text-gold {
    color: var(--accent-gold, #C08829);
}

.team-description {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 440px;
}

/* Cards Column */
.team-cards-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Modern Curved Team Card */
.team-card {
    position: relative;
    border-radius: 20px; /* Elegant curved edges */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(192, 136, 41, 0.4);
    box-shadow: 0 20px 40px rgba(192, 136, 41, 0.15);
}

.team-image-box {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 20px;
}

.team-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-image-box img {
    transform: scale(1.06);
}

/* Glassmorphism Bottom Overlay */
.team-card-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 20px;
    background: rgba(13, 21, 54, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px; /* Curved inner card overlay */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.35s ease;
}

.team-card:hover .team-card-overlay {
    background: rgba(13, 21, 54, 0.9);
    border-color: rgba(192, 136, 41, 0.3);
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.member-role {
    font-size: 0.85rem;
    color: var(--accent-gold, #C08829);
    margin: 0;
    font-weight: 600;
}

/* Action Icon Pill */
.bio-link-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(192, 136, 41, 0.15);
    color: var(--accent-gold, #C08829);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.team-card:hover .bio-link-btn {
    background: var(--accent-gold, #C08829);
    color: #ffffff;
    transform: translateX(3px);
}

/* Empty State */
.team-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    color: #94a3b8;
}

/* Buttons */
.team-desktop-action {
    display: block;
}

.team-mobile-action {
    display: none;
    margin-top: 35px;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--accent-gold, #C08829);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-gold i {
    color: var(--accent-gold, #C08829);
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold, #C08829);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(192, 136, 41, 0.3);
}

.btn-outline-gold:hover i {
    color: #ffffff;
    transform: translateX(4px);
}

.btn-outline-gold.full-width {
    width: 100%;
    justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .team-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-description {
        max-width: 100%;
    }

    .team-desktop-action {
        display: none;
    }

    .team-mobile-action {
        display: block;
    }
}

@media (max-width: 640px) {
    .team-section {
        padding: 70px 0;
    }

    .team-main-title {
        font-size: 1.9rem;
    }

    .team-cards-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-image-box {
        height: 320px;
    }
}