/* ==========================================================================
   Smile Healing Centre — Team Page Styles (team-page.css)
   Inherits global CSS variables, typography (Poppins & Open Sans),
   and color palette (#050748, #6a6a8e, #FEB415, #4302b2, #560097).
   ========================================================================== */

/* Section Container */
.team-page-section {
    background: #f8fafc;
    padding: 60px 0 90px;
    position: relative;
    overflow: hidden;
}

.team-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 360px;
    background: linear-gradient(180deg, rgba(254, 180, 21, 0.05) 0%, rgba(67, 2, 178, 0.03) 100%);
    pointer-events: none;
}

/* Hero Section Subtitle Override */
.team-hero-subtitle {
    color: #000000 !important;
    max-width: 720px;
    margin: 14px auto 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
}

/* Section Intro block */
.team-intro-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.team-intro-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(254, 180, 21, 0.18), rgba(255, 219, 112, 0.28));
    color: #8c6004;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(254, 180, 21, 0.35);
}

.team-intro-pill i {
    color: #e09900;
}

.team-intro-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #050748;
    line-height: 1.25;
    margin-bottom: 14px;
}

.team-intro-title span {
    color: #4302b2;
}

.team-intro-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #6a6a8e;
    margin: 0 auto;
}

/* Vertical list of cards */
.team-cards-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 1060px;
    margin: 0 auto;
}

/* Individual Team Card */
.team-member-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(5, 7, 72, 0.08);
    box-shadow: 0 12px 36px -8px rgba(5, 7, 72, 0.08);
    padding: 38px 44px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.35s ease;
}

.team-member-card::after {
    content: "";
    display: table;
    clear: both;
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -10px rgba(5, 7, 72, 0.13);
    border-color: rgba(254, 180, 21, 0.45);
}

/* Circular Photo Canvas positioned at Top Right */
.team-circle-photo-wrap {
    float: right;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    margin: 0 0 20px 28px;
    shape-outside: circle(50%);
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, #FEB415 0%, #4302b2 100%);
    box-shadow: 0 10px 25px rgba(5, 7, 72, 0.14);
    flex-shrink: 0;
}

.team-circle-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #ffffff;
    border: 3px solid #ffffff;
    transition: transform 0.45s ease;
}

.team-member-card:hover .team-circle-photo {
    transform: scale(1.05);
}

/* Team Card Header Information (Top Left, beside photo) */
.team-card-header {
    margin-bottom: 12px;
}

.team-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254, 180, 21, 0.15);
    color: #94680a;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
    border: 1px solid rgba(254, 180, 21, 0.3);
}

.team-member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #050748;
    line-height: 1.22;
    margin-bottom: 6px;
}

.team-member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: #4302b2;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specialty Tags */
.team-specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.team-tag {
    background: #f1f3fd;
    color: #3b427b;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(67, 2, 178, 0.08);
}

.team-tag i {
    color: #22c55e;
    font-size: 10px;
}

/* Bio Text Flow (Fills space beside circular photo and continues below) */
.team-bio-content {
    display: block;
}

.team-bio-snippet {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
    color: #1a1d36;
    margin-bottom: 14px;
}

.team-bio-full {
    font-family: 'Open Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.85;
    color: #4a4d6b;
    margin-bottom: 0;
    text-align: justify;
}

/* Highlight Quote box */
.team-bio-quote {
    background: #f8f9fe;
    border-left: 4px solid #FEB415;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #2b2e4a;
    margin-top: 18px;
    clear: both;
}

.team-bio-quote strong {
    font-family: 'Poppins', sans-serif;
    color: #050748;
}

/* ==========================================================================
   Last Section (CTA Banner with wa.me link)
   ========================================================================== */
.team-cta-banner {
    background: linear-gradient(135deg, #050748 0%, #151950 100%);
    border-radius: 24px;
    padding: 48px 44px;
    margin-top: 65px;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(5, 7, 72, 0.16);
    position: relative;
    overflow: hidden;
}

.team-cta-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(254, 180, 21, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.team-cta-content h3 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.team-cta-content p {
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.team-btn-whatsapp {
    background: linear-gradient(to right, #25D366 0, #128C7E 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 0 28px;
    line-height: 48px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.28);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .team-member-card {
        padding: 32px 30px;
    }
    .team-circle-photo-wrap {
        width: 150px;
        height: 150px;
        margin: 0 0 16px 20px;
    }
    .team-member-name {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .team-member-card {
        padding: 26px 22px;
    }
    .team-circle-photo-wrap {
        width: 125px;
        height: 125px;
        margin: 0 0 14px 16px;
        padding: 4px;
    }
    .team-member-name {
        font-size: 22px;
    }
    .team-member-role {
        font-size: 14px;
    }
    .team-bio-snippet {
        font-size: 15px;
        line-height: 1.65;
    }
    .team-bio-full {
        font-size: 14.5px;
        line-height: 1.75;
    }
}

@media (max-width: 520px) {
    .team-circle-photo-wrap {
        float: none;
        margin: 0 auto 18px auto;
        display: block;
        width: 135px;
        height: 135px;
    }
    .team-card-header {
        text-align: center;
    }
    .team-member-role {
        justify-content: center;
    }
    .team-specialty-tags {
        justify-content: center;
    }
    .team-cta-banner {
        padding: 34px 24px;
    }
}

/* ==========================================================================
   Dark Mode Support (.active-dark)
   ========================================================================== */
.active-dark .team-page-section {
    background: #0b0c13;
}

.active-dark .team-page-section::before {
    background: linear-gradient(180deg, rgba(254, 180, 21, 0.05) 0%, rgba(67, 2, 178, 0.04) 100%);
}

.active-dark .team-intro-title {
    color: #ffffff;
}

.active-dark .team-intro-title span {
    color: #FEB415;
}

.active-dark .team-intro-desc {
    color: #94a3b8;
}

.active-dark .team-member-card {
    background: #141724;
    border-color: #23283e;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
}

.active-dark .team-member-card:hover {
    border-color: rgba(254, 180, 21, 0.45);
    box-shadow: 0 24px 55px -12px rgba(0, 0, 0, 0.6);
}

.active-dark .team-member-name {
    color: #ffffff;
}

.active-dark .team-member-role {
    color: #FEB415;
}

.active-dark .team-bio-snippet {
    color: #ffffff;
}

.active-dark .team-bio-full {
    color: #b0b7cf;
}

.active-dark .team-tag {
    background: rgba(67, 2, 178, 0.25);
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.15);
}

.active-dark .team-bio-quote {
    background: #181c2d;
    color: #e2e8f0;
}

.active-dark .team-bio-quote strong {
    color: #ffffff;
}
