/* =========================================
   OUR TEAM – PREMIUM 3.0
   ========================================= */



/* ---------- SECTION WRAPPER ---------- */
.team-section {
    width: 90%;
    max-width: 1300px;
    margin: 55px auto;
}

/* subtle separator between groups */
.team-section:not(:first-of-type) {
    border-top: 1px solid rgba(12, 42, 74, 0.05);
}

/* Heading per group */
.team-heading {
    font-size: 2rem;
    color: #0b3a63;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* tiny pill behind heading */
.team-heading::after {
    content: "";
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #007ACC, #4FC3FF);
}

/* ---------- GRID ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 34px;
}

/* ---------- TEAM CARD ---------- */
.team-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(79,195,255,0.18), transparent 60%),
                rgba(255,255,255,0.96);
    padding: 24px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

/* glow ring */
.team-card::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 10% 0%, rgba(79,195,255,0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* hover elevation */
.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 26px 55px rgba(0,0,0,0.14);
    border-color: rgba(79,195,255,0.4);
}
.team-card:hover::before {
    opacity: 1;
}

/* ---------- PHOTO ---------- */
.team-photo img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    transition: transform 0.7s ease;
}

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

/* ---------- TEXT CONTENT ---------- */
.team-card h3 {
    font-size: 1.28rem;
    font-weight: 700;
    margin-top: 16px;
    color: #0b3a63;
}

.team-role {
    color: #007ACC;
    font-weight: 600;
    margin-top: 4px;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-desc {
    color: #556b82;
    line-height: 1.6;
    margin: 10px 0;
    font-size: 0.95rem;
    padding: 0 4px;
}

/* ---------- HOVER PANEL (EXPERIENCE) ---------- */
.team-hover-panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,250,255,0.98));
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 26px 18px;
    text-align: center;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.team-card:hover .team-hover-panel {
    opacity: 1;
    transform: translateY(0);
}

.team-hover-panel h4 {
    font-weight: 800;
    font-size: 1rem;
    color: #007ACC;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-hover-panel p {
    color: #455a70;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* ---------- BOOK APPOINTMENT BUTTON ---------- */
.team-book-btn {
    margin-top: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #007ACC, #4FC3FF);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(79,195,255,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(79,195,255,0.45);
}

/* ---------- ANIMATIONS (PREMIUM, NO BLUR) ---------- */
.animate-left,
.animate-right {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.22,1,.36,1);
}

/* initial positions */
.animate-left {
    transform: translateX(-45px) translateY(25px);
}
.animate-right {
    transform: translateX(45px) translateY(25px);
}

/* when scroll script adds .reveal-active */
.reveal-active.animate-left {
    animation-name: teamSlideLeft;
}
.reveal-active.animate-right {
    animation-name: teamSlideRight;
}

/* keyframes */
@keyframes teamSlideLeft {
    0%   { opacity:0; transform:translateX(-45px) translateY(25px); }
    60%  { opacity:1; transform:translateX(8px) translateY(0); }
    100% { opacity:1; transform:translateX(0); }
}
@keyframes teamSlideRight {
    0%   { opacity:0; transform:translateX(45px) translateY(25px); }
    60%  { opacity:1; transform:translateX(-8px) translateY(0); }
    100% { opacity:1; transform:translateX(0); }
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 992px) {
    .team-lux-title {
        padding: 55px 0 18px;
    }
    .team-lux-title h1 {
        font-size: 2.2rem;
    }
    .team-section {
        margin: 45px auto;
    }
    .team-photo img {
        height: 230px;
    }
    .team-hover-panel {
        padding: 22px 16px;
    }
}

@media (max-width: 600px) {
    .team-lux-title h1 {
        font-size: 2rem;
    }
    .team-grid {
        gap: 26px;
    }
}
/* ======================================================
   TEAM PAGE – BOOK APPOINTMENT (PREMIUM 3.0)
   ====================================================== */

.team-appointment-wrapper {
    padding: 90px 0;
    width: 94%;
    max-width: 1280px;
    margin: auto;
}

/* Outer Card */
.team-appointment-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(245,249,255,0.95));
    padding: 50px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

/* Glow border */
.team-appointment-card::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(79,195,255,0.8), rgba(0,122,204,0.7), rgba(79,195,255,0.8));
    filter: blur(22px);
    z-index: -1;
    opacity: 0.55;
    animation: glowBorder 6s ease-in-out infinite alternate;
}

@keyframes glowBorder {
    0% { opacity: 0.3; filter: blur(14px); }
    100% { opacity: 0.75; filter: blur(26px); }
}

/* LEFT SIDE */
.team-app-pill {
    background: rgba(79,195,255,0.18);
    padding: 7px 20px;
    border-radius: 999px;
    color: #007ACC;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-app-left h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 16px;
    color: #0b3a63;
}

.team-app-left p {
    margin-top: 10px;
    color: #475f75;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
}

.team-app-benefits {
    margin-top: 18px;
    list-style: none;
    padding: 0;
}
.team-app-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b3a63;
    font-weight: 600;
    margin-bottom: 8px;
}
.team-app-benefits i {
    color: #007ACC;
    font-size: 1.1rem;
}

/* RIGHT SIDE FORM */
.team-app-form-wrapper {
    background: rgba(255,255,255,0.88);
    padding: 30px 28px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(79,195,255,0.25);
    backdrop-filter: blur(12px);
    animation: floatSoft 4s ease-in-out infinite alternate;
}

@keyframes floatSoft {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-7px); }
}

/* Form fields */
.team-app-form {
    display: grid;
    gap: 18px;
}

.team-app-form label {
    color: #0b3a63;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-app-form input,
.team-app-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 0.95rem;
    color: #0b3a63;
    background: white;
}

.team-app-form input:focus,
.team-app-form textarea:focus {
    border-color: #4FC3FF;
    box-shadow: 0 0 10px rgba(79,195,255,0.35);
}

/* Button */
.team-app-btn {
    background: linear-gradient(135deg, #007ACC, #4FC3FF);
    border: none;
    padding: 14px;
    border-radius: 999px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 12px 26px rgba(79,195,255,0.25);
}

.team-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(79,195,255,0.35);
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .team-appointment-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }
    .team-app-left h2 { font-size: 1.9rem; }
}


/* team */

.meet-dr-section-wrapper{
    background:transparent;
    padding: 0;
}

.meet-dr-section-wrapper .section-wrapper{
    grid-template-columns: unset;
}
.doctor-profiles-grid {
   margin-top: 0;
}

.team-page-wrapper .button {
    margin: 30px auto 0;
    width: max-content;
}

.doctor-card-fancy{
    width: unset;
}
.experience-circle{
    margin: 0;
}
.card-action-trigger{
    bottom: -80px;
}

.card-content{
        height: 269px;
    display: flex;
    flex-flow: column;
}
.card-content .top-details{
    flex: 1;

}
.card-name{
    min-height: 60px;
}

/* =========================================
   TEAM PAGE – LAYOUT INTEGRATION & HARDENING
   ========================================= */
.team-page-wrapper {
    background: #fff;
    overflow: hidden;
}

.team-page-wrapper img {
    max-width: 100%;
}

.team-page-wrapper .profile-image,
.team-page-wrapper .doctor-image img,
.team-page-wrapper .team-photo img {
    display: block;
    object-fit: contain !important  ;
}

.team-page-wrapper .lux-appointment-form label {
    cursor: pointer;
}

.team-page-wrapper .lux-appointment-form input,
.team-page-wrapper .lux-appointment-form textarea {
    min-width: 0;
}

.team-page-wrapper .lux-appointment-form textarea {
    resize: vertical;
    min-height: 110px;
}

.team-page-wrapper a:focus-visible,
.team-page-wrapper button:focus-visible,
.team-page-wrapper input:focus-visible,
.team-page-wrapper textarea:focus-visible {
    outline: 3px solid rgba(0, 122, 204, 0.35);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .team-page-wrapper .main-section-padding {
        padding-left: 0;
        padding-right: 0;
    }

    .team-page-wrapper .doctor-profiles-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-page-wrapper .doctor-profile-card,
    .team-page-wrapper .doctor-card-fancy {
        width: 100%;
        max-width: 100%;
    }

    .team-page-wrapper .profile-content,
    .team-page-wrapper .card-content {
        height: auto;
    }

    .team-page-wrapper .card-name {
        min-height: 0;
    }

    .team-page-wrapper .appointment-luxury-card {
        margin-left: 15px;
        margin-right: 15px;
    }

    .team-page-wrapper .lux-form-wrapper,
    .team-page-wrapper .lux-appointment-form,
    .team-page-wrapper .form-group {
        width: 100%;
        min-width: 0;
    }

    .team-page-wrapper .button,
    .team-page-wrapper .team-book-btn,
    .team-page-wrapper .team-app-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}

/* Hover-only overlays remain readable on touch devices. */
@media (hover: none), (pointer: coarse) {
    .team-hover-panel {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 16px;
        padding: 18px 14px;
    }

    .team-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-page-wrapper *,
    .team-page-wrapper *::before,
    .team-page-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .animate-left,
    .animate-right {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   TEAM PAGE — ABOUT.PHP VISUAL ALIGNMENT
   Keeps the existing site palette/layout while making the
   team page feel native to the About page.
   ========================================================== */
body.team-page .team-page-wrapper {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 45%, #f5f9ff 100%);
}

/* Same restrained hero treatment/spacing used by the About page. */
body.team-page .team-banner {
    position: relative;
    overflow: hidden;
}

body.team-page .team-banner .hero-overlay,
body.team-page .team-banner .hero-content {
    width: 100%;
}

body.team-page .team-page-wrapper .main-section-padding {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

body.team-page .meet-dr-section-wrapper,
body.team-page .team-section {
    position: relative;
}

body.team-page .meet-dr-section-wrapper > .container,
body.team-page .team-section {
    width: min(90%, 1300px);
    margin-left: auto;
    margin-right: auto;
}

body.team-page .section-header h2,
body.team-page .team-heading {
    color: var(--secondary);
}

/* Lead doctors: light, clean cards rather than a separate design language. */
body.team-page .doctor-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

body.team-page .doctor-profile-card,
body.team-page .doctor-card-fancy {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(79, 195, 255, .28);
    border-radius: var(--radius-xl, 22px);
    box-shadow: 0 18px 44px rgba(15, 35, 52, .09);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

body.team-page .doctor-profile-card:hover,
body.team-page .doctor-card-fancy:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(15, 35, 52, .14);
    border-color: rgba(0, 122, 204, .38);
}

body.team-page .doctor-profiles-grid img,
body.team-page .doctor-card-fancy img {
    max-width: 100%;
}

body.team-page .profile-doctor-name,
body.team-page .card-name {
    color: var(--secondary);
}

body.team-page .profile-specialty,
body.team-page .card-specialty,
body.team-page .card-role {
    color: #007acc;
}

body.team-page .team-desc,
body.team-page .profile-description,
body.team-page .card-content p {
    color: var(--color-text-base, #556b82);
    line-height: 1.7;
}

body.team-page .btn-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-full, 999px);
    background: linear-gradient(135deg, #007acc, #4fc3ff);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 122, 204, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

body.team-page .btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 122, 204, .26);
}

/* Appointment block intentionally inherits about.css for an exact match. */
body.team-page .appointment-luxury-card {
    margin-top: var(--spacing-3xl);
}

/* Keep header/menu above all team-card effects and overlays. */
body.team-page .main-header,
body.team-page header,
body.team-page .mobile-menu,
body.team-page .menu-overlay,
body.team-page .mobile-menu-toggle {
    isolation: auto;
}

body.team-page .mobile-menu { z-index: 10002; }
body.team-page .menu-overlay { z-index: 10001; }
body.team-page .mobile-menu-toggle { position: relative; z-index: 10003; }

/* Custom cursor must remain visible above team cards on desktop. */
body.team-page .custom-cursor {
    z-index: 20000;
    pointer-events: none !important;
}

@media (max-width: 991px) {
    body.team-page .doctor-profiles-grid {
        grid-template-columns: 1fr;
    }

    body.team-page .meet-dr-section-wrapper > .container,
    body.team-page .team-section {
        width: min(92%, 720px);
    }
}

@media (max-width: 767px) {
    body.team-page .team-page-wrapper .main-section-padding {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    body.team-page .team-section {
        margin-top: 42px;
        margin-bottom: 42px;
    }

    body.team-page .doctor-profile-card:hover,
    body.team-page .doctor-card-fancy:hover {
        transform: none;
    }

    body.team-page .appointment-luxury-card {
        margin-left: 15px;
        margin-right: 15px;
    }
}


/* ==========================================================
   TEAM PAGE — LEAD DOCTOR SHOWCASE
   Madhav blue / red / white theme
   ========================================================== */
body.team-page .team-lead-showcase{position:relative;width:min(92%,1380px);margin:0 auto 70px;padding:clamp(28px,4vw,58px);overflow:hidden;border-radius:32px;background:linear-gradient(135deg,#f7fbff 0%,#fff 48%,#f5faff 100%);border:1px solid rgba(0,122,204,.14);box-shadow:0 26px 70px rgba(11,58,99,.10)}
body.team-page .team-lead-showcase:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;left:-210px;top:-210px;background:rgba(0,122,204,.07);animation:teamPulse 7s ease-in-out infinite}
body.team-page .team-lead-showcase:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-180px;bottom:-190px;background:rgba(216,43,55,.06);animation:teamPulse 8s ease-in-out infinite reverse}
body.team-page .team-lead-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:clamp(38px,5vw,76px);align-items:center}
body.team-page .team-lead-eyebrow{display:inline-flex;align-items:center;gap:9px;margin-bottom:18px;padding:9px 15px;border-radius:999px;background:#eaf6ff;color:#007acc;font-size:.78rem;font-weight:800;letter-spacing:.11em}
body.team-page .team-lead-eyebrow i{color:#d82b37}
body.team-page .team-lead-copy h2{max-width:760px;margin:0;color:#0b3a63;font-size:clamp(2.25rem,3.3vw,4.65rem);line-height:1.04;letter-spacing:-.045em;font-weight:800}
body.team-page .team-lead-copy h2 span{color:#007acc;position:relative;display:inline}
body.team-page .team-lead-copy h2 span:after{content:"";position:absolute;left:2px;right:0;bottom:-7px;height:4px;border-radius:20px;background:linear-gradient(90deg,#d82b37,#007acc);transform-origin:left;animation:teamLine 1.1s .5s both}
body.team-page .team-lead-intro{max-width:750px;margin:28px 0 25px;color:#52697e;font-size:1.06rem;line-height:1.85}
body.team-page .team-lead-values{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
body.team-page .team-value-card{min-height:145px;padding:18px 16px;border-radius:18px;background:#fff;border:1px solid rgba(0,122,204,.13);box-shadow:0 12px 30px rgba(11,58,99,.07);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
body.team-page .team-value-card:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(11,58,99,.13);border-color:rgba(216,43,55,.25)}
body.team-page .team-value-icon{display:grid;place-items:center;width:39px;height:39px;margin-bottom:12px;border-radius:12px;background:linear-gradient(135deg,#007acc,#4fc3ff);color:#fff;box-shadow:0 8px 18px rgba(0,122,204,.2)}
body.team-page .team-value-card:nth-child(2) .team-value-icon{background:linear-gradient(135deg,#d82b37,#ef6670)}
body.team-page .team-value-card strong{display:block;color:#0b3a63;font-size:.94rem;line-height:1.35;margin-bottom:7px}
body.team-page .team-value-card small{display:block;color:#6a7d8e;font-size:.79rem;line-height:1.55}
body.team-page .team-lead-stats{display:flex;gap:0;margin-top:20px;padding:17px 8px;border-radius:18px;background:#0b3a63;box-shadow:0 14px 30px rgba(11,58,99,.18)}
body.team-page .team-lead-stats div{flex:1;padding:0 16px;border-right:1px solid rgba(255,255,255,.18)}
body.team-page .team-lead-stats div:last-child{border-right:0}
body.team-page .team-lead-stats strong{display:block;color:#fff;font-size:1.55rem;line-height:1.1}
body.team-page .team-lead-stats span{display:block;margin-top:4px;color:#cfeaff;font-size:.73rem;letter-spacing:.02em}
body.team-page .team-lead-note{display:flex;gap:14px;align-items:flex-start;margin-top:18px;padding:16px 18px;border-left:4px solid #d82b37;border-radius:0 14px 14px 0;background:#fff7f8}
body.team-page .team-lead-note i{color:#d82b37;font-size:1.1rem;margin-top:3px}
body.team-page .team-lead-note p{margin:0;color:#5b6f80;font-size:.91rem;line-height:1.65}
body.team-page .team-lead-visual{position:relative;min-height:650px;display:flex;align-items:center;justify-content:center}
body.team-page .team-lead-photo-card{position:relative;width:min(100%,520px);padding:17px;border-radius:30px;background:linear-gradient(145deg,#eaf6ff,#fff 48%,#fff1f2);box-shadow:0 28px 65px rgba(11,58,99,.17);border:1px solid rgba(0,122,204,.13);animation:teamFloat 5s ease-in-out infinite}
body.team-page .team-lead-photo-wrap{height:560px;overflow:hidden;border-radius:23px;background:#fff}
body.team-page .team-lead-photo-wrap img{width:100%;height:100%;object-fit:contain!important;object-position:center bottom;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
body.team-page .team-lead-photo-card:hover img{transform:scale(1.035)}
body.team-page .team-lead-badge{position:absolute;z-index:3;left:30px;top:30px;display:inline-flex;gap:8px;align-items:center;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.94);color:#0b3a63;font-size:.78rem;font-weight:800;box-shadow:0 10px 26px rgba(11,58,99,.12)}
body.team-page .team-lead-badge i{color:#d82b37}
body.team-page .team-lead-doctor-card{position:absolute;z-index:4;left:-30px;right:70px;bottom:-38px;padding:22px 24px;border-radius:21px;background:rgba(255,255,255,.97);border:1px solid rgba(0,122,204,.15);box-shadow:0 22px 50px rgba(11,58,99,.17);backdrop-filter:blur(12px)}
body.team-page .team-lead-doctor-card>span{color:#d82b37;font-size:.7rem;font-weight:800;letter-spacing:.12em}
body.team-page .team-lead-doctor-card h3{margin:7px 0 6px;color:#0b3a63;font-size:1.65rem;line-height:1.2}
body.team-page .team-lead-doctor-card h3 small{font-size:.75rem;color:#728496;font-weight:700}
body.team-page .team-lead-doctor-card p{margin:0 0 13px;color:#637789;font-size:.88rem;line-height:1.55}
body.team-page .team-lead-book{display:inline-flex;align-items:center;gap:8px;color:#007acc;font-size:.86rem;font-weight:800;text-decoration:none;transition:gap .25s ease,color .25s ease}
body.team-page .team-lead-book:hover{gap:13px;color:#d82b37}
body.team-page .team-floating-trust{position:absolute;z-index:5;right:-18px;top:155px;display:flex;align-items:center;gap:10px;padding:12px 15px;border-radius:15px;background:#d82b37;color:#fff;box-shadow:0 16px 30px rgba(216,43,55,.24);animation:teamFloatSmall 4s ease-in-out infinite reverse}
body.team-page .team-floating-trust i{font-size:1.05rem}
body.team-page .team-floating-trust span{font-size:.68rem;line-height:1.3}
body.team-page .team-floating-trust strong{display:block;font-size:.8rem}
body.team-page .team-lead-orbit{position:absolute;border-radius:50%;border:1px dashed rgba(0,122,204,.2);animation:teamSpin 18s linear infinite}
body.team-page .team-lead-orbit-one{width:580px;height:580px}
body.team-page .team-lead-orbit-two{width:650px;height:650px;border-color:rgba(216,43,55,.13);animation-direction:reverse;animation-duration:24s}
@keyframes teamFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes teamFloatSmall{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes teamPulse{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.08);opacity:1}}
@keyframes teamSpin{to{transform:rotate(360deg)}}
@keyframes teamLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:1100px){body.team-page .team-lead-inner{grid-template-columns:1fr}body.team-page .team-lead-copy{text-align:center}body.team-page .team-lead-intro{margin-left:auto;margin-right:auto}body.team-page .team-lead-values{text-align:left}body.team-page .team-lead-visual{min-height:660px}body.team-page .team-lead-doctor-card{left:15px;right:15px}.team-lead-stats{text-align:left}}
@media(max-width:700px){body.team-page .team-lead-showcase{width:calc(100% - 30px);padding:25px 18px 45px;border-radius:23px}body.team-page .team-lead-copy h2{font-size:2.25rem}body.team-page .team-lead-values{grid-template-columns:1fr}body.team-page .team-value-card{min-height:0}body.team-page .team-lead-stats{flex-wrap:wrap}body.team-page .team-lead-stats div{min-width:33.33%;padding:0 8px}body.team-page .team-lead-stats strong{font-size:1.25rem}body.team-page .team-lead-stats span{font-size:.64rem}body.team-page .team-lead-visual{min-height:530px;margin-top:12px}body.team-page .team-lead-photo-wrap{height:430px}body.team-page .team-lead-doctor-card{bottom:-55px;padding:17px}body.team-page .team-lead-doctor-card h3{font-size:1.35rem}body.team-page .team-floating-trust{right:-4px;top:105px}body.team-page .team-lead-orbit{display:none}}
@media(prefers-reduced-motion:reduce){body.team-page .team-lead-showcase *,body.team-page .team-lead-showcase *:before,body.team-page .team-lead-showcase *:after{animation:none!important;transition:none!important}}


/* ==========================================================
   LEAD DOCTOR SHOWCASE — TEMPLATE COLOR CORRECTION
   ========================================================== */
body.team-page .team-lead-showcase{
 background:linear-gradient(135deg,#f7f9fc 0%,#fff 48%,#f8f9fb 100%);
 border-color:color-mix(in srgb,var(--secondary) 14%,transparent);
}
body.team-page .team-lead-showcase:before{background:color-mix(in srgb,var(--secondary) 7%,transparent)}
body.team-page .team-lead-eyebrow{background:color-mix(in srgb,var(--secondary) 8%,#fff);color:var(--secondary)}
body.team-page .team-lead-eyebrow i,
body.team-page .team-lead-doctor-card>span,
body.team-page .team-lead-note i{color:var(--primary)}
body.team-page .team-lead-copy h2,
body.team-page .team-value-card strong,
body.team-page .team-lead-badge,
body.team-page .team-lead-doctor-card h3{color:var(--secondary)}
body.team-page .team-lead-copy h2 span{color:var(--secondary)}
body.team-page .team-lead-copy h2 span:after{background:linear-gradient(90deg,var(--primary),var(--secondary))}
body.team-page .team-value-card{border-color:color-mix(in srgb,var(--secondary) 13%,transparent)}
body.team-page .team-value-card:hover{border-color:color-mix(in srgb,var(--primary) 28%,transparent)}
body.team-page .team-value-icon{background:var(--secondary);box-shadow:0 8px 18px color-mix(in srgb,var(--secondary) 20%,transparent)}
body.team-page .team-value-card:nth-child(2) .team-value-icon{background:var(--primary)}
body.team-page .team-lead-stats{background:var(--secondary);box-shadow:0 14px 30px color-mix(in srgb,var(--secondary) 20%,transparent)}
body.team-page .team-lead-stats span{color:rgba(255,255,255,.78)}
body.team-page .team-lead-note{border-left-color:var(--primary);background:color-mix(in srgb,var(--primary) 5%,#fff)}
body.team-page .team-lead-photo-card{
 background:linear-gradient(145deg,color-mix(in srgb,var(--secondary) 7%,#fff),#fff 48%,color-mix(in srgb,var(--primary) 5%,#fff));
 border-color:color-mix(in srgb,var(--secondary) 13%,transparent)
}
body.team-page .team-lead-doctor-card{border-color:color-mix(in srgb,var(--secondary) 15%,transparent)}
body.team-page .team-lead-book{color:var(--secondary)}
body.team-page .team-lead-book:hover{color:var(--primary)}
body.team-page .team-floating-trust{background:var(--primary);box-shadow:0 16px 30px color-mix(in srgb,var(--primary) 24%,transparent)}
body.team-page .team-lead-orbit{border-color:color-mix(in srgb,var(--secondary) 20%,transparent)}
body.team-page .team-lead-orbit-two{border-color:color-mix(in srgb,var(--primary) 13%,transparent)}


/* ==========================================================
   LEAD DOCTOR SHOWCASE — TEXT COLORS MATCH services.css
   Main: #102f49 | Soft: #526f85 | Muted: #7890a2
   ========================================================== */
body.team-page .team-lead-copy h2,
body.team-page .team-value-card strong,
body.team-page .team-lead-badge,
body.team-page .team-lead-doctor-card h3 {
    color: #102f49;
}

body.team-page .team-lead-copy h2 span {
    color: #102f49;
}

body.team-page .team-lead-intro,
body.team-page .team-lead-note p,
body.team-page .team-lead-doctor-card p {
    color: #526f85;
}

body.team-page .team-value-card small,
body.team-page .team-lead-doctor-card h3 small {
    color: #7890a2;
}

/* ==========================================================
   TEAM PAGE — SECOND FEATURED DOCTOR / CHIEF DENTAL SURGEON
   Uses the same main text colours as the current team theme.
   ========================================================== */
body.team-page .team-second-lead{
    position:relative;
    width:min(92%,1280px);
    margin:0 auto 72px;
    padding:clamp(28px,4vw,52px);
    overflow:hidden;
    border-radius:28px;
    background:#fff;
    border:1px solid rgba(16,47,73,.10);
    box-shadow:0 20px 55px rgba(15,35,52,.08);
}
body.team-page .team-second-lead:before{
    content:"";
    position:absolute;
    width:330px;height:330px;
    right:-180px;top:-190px;
    border-radius:50%;
    background:color-mix(in srgb,var(--secondary) 6%,transparent);
    animation:teamPulse 8s ease-in-out infinite;
}
body.team-page .team-second-lead-inner{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr);
    gap:clamp(36px,5vw,70px);
    align-items:center;
}
body.team-page .team-second-lead-visual{position:relative}
body.team-page .team-second-lead-photo{
    position:relative;
    max-width:430px;
    margin:auto;
    padding:14px;
    border-radius:25px;
    background:linear-gradient(145deg,color-mix(in srgb,var(--secondary) 6%,#fff),#fff);
    border:1px solid rgba(16,47,73,.10);
    box-shadow:0 20px 48px rgba(15,35,52,.12);
    transition:transform .35s ease,box-shadow .35s ease;
}
body.team-page .team-second-lead-photo:hover{
    transform:translateY(-6px);
    box-shadow:0 27px 58px rgba(15,35,52,.16);
}
body.team-page .team-second-lead-photo img{
    display:block;
    width:100%;
    height:430px;
    object-fit:contain!important;
    object-position:center bottom;
    border-radius:19px;
    background:#fff;
}
body.team-page .team-second-lead-badge{
    position:absolute;
    z-index:3;
    top:27px;
    left:27px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#102f49;
    font-size:.72rem;
    font-weight:800;
    box-shadow:0 8px 20px rgba(15,35,52,.10);
}
body.team-page .team-second-lead-badge i{color:var(--primary)}
body.team-page .team-second-lead-name{padding:18px 9px 7px}
body.team-page .team-second-lead-name>span{
    color:var(--primary);
    font-size:.71rem;
    font-weight:800;
    letter-spacing:.10em;
}
body.team-page .team-second-lead-name h3{
    margin:5px 0 0;
    color:#102f49;
    font-size:1.42rem;
    font-weight:800;
}
body.team-page .team-second-lead-name h3 small{
    color:#7890a2;
    font-size:.72rem;
    font-weight:700;
}
body.team-page .team-second-lead-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    padding:8px 13px;
    border-radius:999px;
    background:color-mix(in srgb,var(--secondary) 7%,#fff);
    color:var(--secondary);
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.09em;
}
body.team-page .team-second-lead-eyebrow i{color:var(--primary)}
body.team-page .team-second-lead-copy h2{
    max-width:680px;
    margin:0;
    color:#102f49;
    font-size:clamp(1.8rem,3vw,3rem);
    line-height:1.12;
    letter-spacing:-.035em;
    font-weight:800;
}
body.team-page .team-second-lead-copy h2 span{
    position:relative;
    color:#102f49;
}
body.team-page .team-second-lead-copy h2 span:after{
    content:"";
    position:absolute;
    left:0;right:0;bottom:-6px;
    height:3px;
    border-radius:20px;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
    transform-origin:left;
    animation:teamLine 1.1s .4s both;
}
body.team-page .team-second-lead-intro{
    max-width:720px;
    margin:24px 0;
    color:#526f85;
    font-size:1rem;
    line-height:1.8;
}
body.team-page .team-second-lead-points{
    display:grid;
    gap:11px;
}
body.team-page .team-second-point{
    display:flex;
    align-items:flex-start;
    gap:13px;
    padding:14px 15px;
    border-radius:15px;
    background:#fff;
    border:1px solid rgba(16,47,73,.09);
    box-shadow:0 7px 20px rgba(15,35,52,.045);
    transition:transform .28s ease,border-color .28s ease;
}
body.team-page .team-second-point:hover{
    transform:translateX(5px);
    border-color:color-mix(in srgb,var(--primary) 25%,transparent);
}
body.team-page .team-second-point>span{
    flex:0 0 36px;
    display:grid;
    place-items:center;
    width:36px;height:36px;
    border-radius:11px;
    background:var(--secondary);
    color:#fff;
}
body.team-page .team-second-point:nth-child(2)>span{background:var(--primary)}
body.team-page .team-second-point strong{
    display:block;
    color:#102f49;
    margin-bottom:3px;
    font-size:.91rem;
}
body.team-page .team-second-point small{
    display:block;
    color:#7890a2;
    font-size:.79rem;
    line-height:1.55;
}
body.team-page .team-second-lead-note{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-top:17px;
    padding:14px 16px;
    border-left:3px solid var(--primary);
    border-radius:0 12px 12px 0;
    background:color-mix(in srgb,var(--primary) 4%,#fff);
}
body.team-page .team-second-lead-note i{
    margin-top:3px;
    color:var(--primary);
}
body.team-page .team-second-lead-note p{
    margin:0;
    color:#526f85;
    font-size:.88rem;
    line-height:1.65;
}
body.team-page .team-second-lead-book{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:19px;
    color:var(--secondary);
    font-size:.88rem;
    font-weight:800;
    text-decoration:none;
    transition:gap .25s ease,color .25s ease;
}
body.team-page .team-second-lead-book:hover{
    gap:12px;
    color:var(--primary);
}

@media(max-width:991px){
    body.team-page .team-second-lead-inner{grid-template-columns:1fr}
    body.team-page .team-second-lead-visual{order:2}
    body.team-page .team-second-lead-copy{order:1}
    body.team-page .team-second-lead-photo{max-width:480px}
}
@media(max-width:600px){
    body.team-page .team-second-lead{
        width:min(94%,1280px);
        padding:24px 18px;
        border-radius:22px;
    }
    body.team-page .team-second-lead-photo img{height:360px}
    body.team-page .team-second-lead-copy h2{font-size:1.75rem}
}

/* ==========================================================
   TEAM PAGE — INHOUSE STAFFS
   Card layout inspired by the supplied reference screenshot.
   Hover/image motion mirrors the service-category-card feel:
   lift, image zoom, shine sweep and soft pointer glow.
   ========================================================== */
body.team-page .team-inhouse-section{
    --ih-blue:#087fbd;
    --ih-blue-dark:#075f91;
    --ih-accent:#43bdf2;
    --ih-red:#ef3d3d;
    --ih-text:#102f49;
    --ih-soft:#526f85;
    position:relative;
    width:min(92%,1280px);
    margin:0 auto 78px;
    padding:clamp(34px,5vw,64px) 0;
}
body.team-page .team-inhouse-heading{
    max-width:760px;
    margin:0 auto 36px;
    text-align:center;
}
body.team-page .team-inhouse-eyebrow{
    display:inline-flex;
    margin-bottom:11px;
    color:var(--ih-blue);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.15em;
}
body.team-page .team-inhouse-heading h2{
    margin:0 0 12px;
    color:var(--ih-text);
    font-size:clamp(2rem,3.5vw,3rem);
    line-height:1.05;
    font-weight:800;
}
body.team-page .team-inhouse-heading p{
    max-width:680px;
    margin:auto;
    color:var(--ih-soft);
    line-height:1.75;
}
body.team-page .team-inhouse-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
    align-items:stretch;
}
body.team-page .team-inhouse-card{
    --card-rotate-x:0deg;
    --card-rotate-y:0deg;
    --card-translate-y:0px;
    --card-glow-x:50%;
    --card-glow-y:50%;
    position:relative;
    overflow:hidden;
    min-width:0;
    border:1px solid rgba(8,127,189,.13);
    border-radius:28px;
    background:#fff;
    box-shadow:0 24px 60px -38px rgba(11,73,110,.30),0 12px 30px -22px rgba(67,189,242,.24);
    transform:perspective(1200px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translate3d(0,var(--card-translate-y),0);
    transition:transform .65s cubic-bezier(.22,1,.36,1),box-shadow .55s ease,border-color .35s ease;
    will-change:transform;
}
body.team-page .team-inhouse-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:5;
    pointer-events:none;
    opacity:0;
    background:radial-gradient(circle at var(--card-glow-x) var(--card-glow-y),rgba(255,255,255,.42),rgba(255,255,255,.10) 22%,rgba(67,189,242,.13) 38%,transparent 60%);
    transition:opacity .45s ease;
}
body.team-page .team-inhouse-card:hover,
body.team-page .team-inhouse-card:focus-within{
    --card-translate-y:-12px;
    border-color:rgba(67,189,242,.42);
    box-shadow:0 40px 86px -44px rgba(11,73,110,.38),0 18px 44px -20px rgba(67,189,242,.30);
}
body.team-page .team-inhouse-card:hover::before,
body.team-page .team-inhouse-card:focus-within::before{opacity:1}
body.team-page .team-inhouse-media{
    position:relative;
    height:330px;
    overflow:hidden;
    background:linear-gradient(180deg,#eff9fe,#dff3fc);
}
body.team-page .team-inhouse-media::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(7,75,112,0) 50%,rgba(7,75,112,.20) 100%);
}
body.team-page .team-inhouse-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    transform:scale(1.01);
    transition:transform 1s cubic-bezier(.22,1,.36,1),filter .55s ease;
}
body.team-page .team-inhouse-card:hover .team-inhouse-media img,
body.team-page .team-inhouse-card:focus-within .team-inhouse-media img{
    transform:scale(1.07);
    filter:saturate(1.05) contrast(1.02);
}
body.team-page .team-inhouse-shine{
    position:absolute;
    inset:0;
    z-index:3;
    pointer-events:none;
    background:linear-gradient(120deg,transparent 8%,rgba(255,255,255,.22) 32%,transparent 54%);
    transform:translateX(-130%);
    transition:transform .9s cubic-bezier(.22,1,.36,1);
}
body.team-page .team-inhouse-card:hover .team-inhouse-shine,
body.team-page .team-inhouse-card:focus-within .team-inhouse-shine{transform:translateX(130%)}
body.team-page .team-inhouse-number{
    position:absolute;
    top:18px;
    left:18px;
    z-index:4;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:14px;
    background:rgba(255,255,255,.94);
    color:var(--ih-blue-dark);
    font-size:.83rem;
    font-weight:800;
    box-shadow:0 12px 30px rgba(11,73,110,.12);
}
body.team-page .team-inhouse-role-badge{
    position:absolute;
    left:20px;
    bottom:18px;
    z-index:4;
    padding:9px 15px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--ih-accent),var(--ih-blue));
    color:#fff;
    font-size:.76rem;
    font-weight:800;
    box-shadow:0 12px 26px rgba(8,127,189,.24);
}
body.team-page .team-inhouse-content{
    position:relative;
    z-index:2;
    min-height:265px;
    display:flex;
    flex-direction:column;
    padding:27px 27px 25px;
}
body.team-page .team-inhouse-kicker{
    margin-bottom:9px;
    color:var(--ih-blue);
    font-size:.69rem;
    font-weight:800;
    letter-spacing:.14em;
}
body.team-page .team-inhouse-content h3{
    margin:0 0 6px;
    color:var(--ih-text);
    font-size:1.45rem;
    line-height:1.2;
    font-weight:800;
}
body.team-page .team-inhouse-content h3 small{
    color:#7890a2;
    font-size:.67rem;
}
body.team-page .team-inhouse-content>strong{
    margin-bottom:14px;
    color:var(--ih-blue);
    font-size:.88rem;
}
body.team-page .team-inhouse-content p{
    margin:0 0 20px;
    color:var(--ih-soft);
    font-size:.91rem;
    line-height:1.75;
}
body.team-page .team-inhouse-content a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    margin-top:auto;
    color:var(--ih-blue-dark);
    font-size:.82rem;
    font-weight:800;
    text-decoration:none;
    transition:gap .3s ease,color .3s ease;
}
body.team-page .team-inhouse-content a:hover{gap:12px;color:var(--ih-red)}
body.team-page .team-inhouse-card:nth-child(4){
    grid-column:2;
}

@media(max-width:1050px){
    body.team-page .team-inhouse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    body.team-page .team-inhouse-card:nth-child(4){grid-column:auto}
}
@media(max-width:680px){
    body.team-page .team-inhouse-section{width:min(94%,1280px);padding:30px 0 48px}
    body.team-page .team-inhouse-grid{grid-template-columns:1fr;gap:20px}
    body.team-page .team-inhouse-media{height:310px}
    body.team-page .team-inhouse-content{min-height:auto;padding:23px 20px 22px}
}
@media(prefers-reduced-motion:reduce){
    body.team-page .team-inhouse-card,
    body.team-page .team-inhouse-media img,
    body.team-page .team-inhouse-shine{transition:none!important}
    body.team-page .team-inhouse-card{transform:none!important}
}

/* ==========================================================
   TEAM FINAL — SERVICE-PAGE MOTION + PREMIUM CONSULTANTS
   + BACKOFFICE STAFF
   ========================================================== */
body.team-page{
    --team-blue:#087fbd;
    --team-blue-dark:#075f91;
    --team-accent:#43bdf2;
    --team-red:#ef3d3d;
    --team-text:#102f49;
    --team-soft:#526f85;
    --team-muted:#7890a2;
}

/* In-house Book Appointment: exactly the same component/class as consultants */
body.team-page .team-inhouse-content .btn-appointment{
    width:max-content;
    margin-top:auto;
    gap:0;
    color:#fff;
}
body.team-page .team-inhouse-content .btn-appointment:hover{color:#fff}

/* Service-page style reveal state shared by cards */
body.team-page [data-team-card]{
    --card-rotate-x:0deg;
    --card-rotate-y:0deg;
    --card-translate-y:0px;
    --card-glow-x:50%;
    --card-glow-y:50%;
    opacity:0;
    transform:
        perspective(1200px)
        rotateX(var(--card-rotate-x))
        rotateY(var(--card-rotate-y))
        translate3d(0,var(--card-translate-y),0);
    will-change:transform;
}
body.team-page [data-team-card].is-visible{
    animation:teamCardReveal .85s cubic-bezier(.22,1,.36,1) both;
    animation-delay:var(--reveal-delay,0ms);
}
@keyframes teamCardReveal{
    0%{opacity:0;transform:perspective(1200px) rotateX(8deg) rotateY(0) translate3d(0,42px,0) scale(.965)}
    60%{opacity:1;transform:perspective(1200px) rotateX(-1deg) rotateY(0) translate3d(0,-8px,0) scale(1.01)}
    100%{opacity:1;transform:perspective(1200px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translate3d(0,var(--card-translate-y),0) scale(1)}
}
body.team-page .team-inhouse-card[data-team-card],
body.team-page .consultant-card[data-team-card],
body.team-page .backoffice-card[data-team-card]{
    transition:transform .65s cubic-bezier(.22,1,.36,1),box-shadow .55s ease,border-color .35s ease;
}
body.team-page .team-inhouse-card[data-team-card]:hover,
body.team-page .consultant-card[data-team-card]:hover,
body.team-page .backoffice-card[data-team-card]:hover{
    --card-translate-y:-12px;
}

/* Premium section headings */
body.team-page .team-premium-heading{
    width:100%;
    max-width:790px;
    margin:0 auto 42px;
    text-align:center;
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1);
}
body.team-page .team-premium-heading.is-visible{opacity:1;transform:none}
body.team-page .team-premium-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:13px;
    padding:8px 15px;
    border:1px solid rgba(8,127,189,.18);
    border-radius:999px;
    background:#fff;
    color:var(--team-blue);
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.14em;
    box-shadow:0 12px 30px -22px rgba(8,127,189,.45);
}
body.team-page .team-premium-eyebrow:before{content:"•";color:var(--team-red)}
body.team-page .team-premium-heading h2{
    margin:0 0 13px;
    color:var(--team-text);
    font-size:clamp(2rem,3.35vw,3.15rem);
    line-height:1.08;
    letter-spacing:-.03em;
    font-weight:800;
}
body.team-page .team-premium-heading p{
    max-width:720px;
    margin:0 auto;
    color:var(--team-soft);
    font-size:.98rem;
    line-height:1.8;
}

/* Consultants */
body.team-page .team-consultants-section{
    position:relative;
    width:min(92%,1280px);
    margin:0 auto 82px;
    padding:64px 0 70px;
}
body.team-page .team-consultants-section:before{
    content:"";
    position:absolute;
    inset:0 -5vw;
    z-index:-1;
    border-radius:38px;
    background:
      radial-gradient(circle at 8% 8%,rgba(67,189,242,.12),transparent 28%),
      radial-gradient(circle at 94% 92%,rgba(239,61,61,.05),transparent 24%),
      linear-gradient(180deg,#f8fcff,#eef8fd);
}
body.team-page .team-consultants-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:26px!important;
}
body.team-page .consultant-card{
    position:relative;
    overflow:hidden;
    margin:0!important;
    border:1px solid rgba(8,127,189,.13)!important;
    border-radius:27px!important;
    background:#fff!important;
    box-shadow:0 24px 60px -38px rgba(11,73,110,.30),0 12px 30px -22px rgba(67,189,242,.24)!important;
}
body.team-page .consultant-card:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:6;
    pointer-events:none;
    opacity:0;
    background:radial-gradient(circle at var(--card-glow-x) var(--card-glow-y),rgba(255,255,255,.46),rgba(67,189,242,.10) 38%,transparent 62%);
    transition:opacity .4s ease;
}
body.team-page .consultant-card:hover:before{opacity:1}
body.team-page .consultant-card:hover{
    border-color:rgba(67,189,242,.42)!important;
    box-shadow:0 40px 86px -44px rgba(11,73,110,.38),0 18px 44px -20px rgba(67,189,242,.30)!important;
}
body.team-page .consultant-card .card-img-container{
    height:285px!important;
    background:linear-gradient(180deg,#e8f7fd,#d6effa);
}
body.team-page .consultant-card .card-img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    transition:transform 1s cubic-bezier(.22,1,.36,1),filter .55s ease;
}
body.team-page .consultant-card:hover .card-img{
    transform:scale(1.07);
    filter:saturate(1.05) contrast(1.02);
}
body.team-page .consultant-card .card-action-trigger{
    background:linear-gradient(145deg,var(--team-accent),var(--team-blue),var(--team-red))!important;
}
body.team-page .consultant-card .card-content{
    min-height:190px;
    padding:24px!important;
    background:#fff;
}
body.team-page .consultant-card .card-name{color:var(--team-text)!important}
body.team-page .consultant-card .card-role{color:var(--team-blue)!important;font-weight:700}
body.team-page .consultant-card .btn-appointment{
    margin-top:14px;
    background:linear-gradient(135deg,var(--team-accent),var(--team-blue))!important;
}
body.team-page .consultant-card .btn-appointment:hover{
    background:linear-gradient(135deg,var(--team-blue),var(--team-red))!important;
}

/* Backoffice */
body.team-page .team-backoffice-section{
    position:relative;
    width:min(92%,1180px);
    margin:0 auto 80px;
    padding:58px clamp(18px,4vw,48px);
    overflow:hidden;
    border:1px solid rgba(8,127,189,.12);
    border-radius:34px;
    background:
      radial-gradient(circle at 0 0,rgba(67,189,242,.14),transparent 34%),
      radial-gradient(circle at 100% 100%,rgba(239,61,61,.055),transparent 30%),
      #fff;
    box-shadow:0 28px 70px rgba(13,70,105,.08);
}
body.team-page .team-backoffice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:26px;
    max-width:930px;
    margin:auto;
}
body.team-page .backoffice-card{
    position:relative;
    display:grid;
    grid-template-columns:150px 1fr;
    min-height:245px;
    overflow:hidden;
    border:1px solid rgba(8,127,189,.13);
    border-radius:25px;
    background:linear-gradient(145deg,#fff,#f8fcff);
    box-shadow:0 20px 48px -30px rgba(11,73,110,.28);
}
body.team-page .backoffice-card:hover{
    border-color:rgba(67,189,242,.40);
    box-shadow:0 32px 68px -34px rgba(11,73,110,.36);
}
body.team-page .backoffice-card__accent{
    position:absolute;
    left:0;top:0;bottom:0;width:4px;
    background:linear-gradient(180deg,var(--team-accent),var(--team-blue) 70%,var(--team-red));
}
body.team-page .backoffice-card__icon{
    position:absolute;
    top:16px;
    right:16px;
    z-index:4;
    display:grid;
    place-items:center;
    width:42px;height:42px;
    border-radius:13px;
    background:linear-gradient(145deg,var(--team-accent),var(--team-blue));
    color:#fff;
    box-shadow:0 12px 24px rgba(8,127,189,.20);
    transition:transform .45s cubic-bezier(.22,1,.36,1);
}
body.team-page .backoffice-card:hover .backoffice-card__icon{transform:rotate(-7deg) scale(1.08)}
body.team-page .backoffice-card__photo{position:relative;overflow:hidden}
body.team-page .backoffice-card__photo img{
    width:100%;height:100%;object-fit:cover;object-position:center top;
    transition:transform 1s cubic-bezier(.22,1,.36,1),filter .55s ease;
}
body.team-page .backoffice-card:hover .backoffice-card__photo img{transform:scale(1.08);filter:saturate(1.04)}
body.team-page .backoffice-card__shine{
    position:absolute;inset:0;
    background:linear-gradient(120deg,transparent 8%,rgba(255,255,255,.26) 32%,transparent 54%);
    transform:translateX(-130%);
    transition:transform .9s cubic-bezier(.22,1,.36,1);
}
body.team-page .backoffice-card:hover .backoffice-card__shine{transform:translateX(130%)}
body.team-page .backoffice-card__content{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:30px 24px;
}
body.team-page .backoffice-card__label{
    margin-bottom:7px;
    color:var(--team-red);
    font-size:.65rem;
    font-weight:800;
    letter-spacing:.13em;
}
body.team-page .backoffice-card h3{
    margin:0 0 4px;
    color:var(--team-text);
    font-size:1.45rem;
    font-weight:800;
}
body.team-page .backoffice-card strong{
    margin-bottom:12px;
    color:var(--team-blue);
    font-size:.84rem;
}
body.team-page .backoffice-card p{
    margin:0;
    color:var(--team-soft);
    font-size:.88rem;
    line-height:1.7;
}

@media(max-width:1050px){
    body.team-page .team-consultants-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body.team-page .team-backoffice-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
    body.team-page .team-consultants-section{width:min(94%,1280px);padding:45px 0 50px}
    body.team-page .team-consultants-grid{grid-template-columns:1fr!important}
    body.team-page .team-backoffice-section{width:min(94%,1180px);padding:42px 16px}
    body.team-page .backoffice-card{grid-template-columns:112px 1fr;min-height:220px}
    body.team-page .backoffice-card__content{padding:24px 17px}
}
@media(prefers-reduced-motion:reduce){
    body.team-page [data-team-card],
    body.team-page .team-premium-heading,
    body.team-page .consultant-card .card-img,
    body.team-page .backoffice-card__photo img,
    body.team-page .backoffice-card__shine{
        opacity:1!important;
        transform:none!important;
        animation:none!important;
        transition:none!important;
    }
}

/* ==========================================================
   FINAL ALIGNMENT
   Consultants use the exact Inhouse Staff card system.
   Backoffice cards intentionally contain no descriptions.
   ========================================================== */
body.team-page .team-consultants-same{
    margin-top:0;
    padding-top:34px;
}
body.team-page .team-consultants-inhouse-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
body.team-page .team-consultants-inhouse-grid .team-inhouse-card:nth-child(4){
    grid-column:auto;
}
body.team-page .team-consultant-card .team-inhouse-role-badge{
    max-width:calc(100% - 40px);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
body.team-page .team-consultant-card .team-inhouse-content h3{
    min-height:0;
}
body.team-page .team-backoffice-section .team-premium-heading{
    margin-bottom:32px;
}
body.team-page .backoffice-card__content{
    min-height:150px;
}
@media(max-width:1050px){
    body.team-page .team-consultants-inhouse-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:680px){
    body.team-page .team-consultants-inhouse-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   TEAM CLEANUP — 2026-09-27
   Fixes the fourth-card grid gap and introduces compact,
   premium Backoffice Staff cards.
   ========================================================== */

/* IMPORTANT: there are now 6 in-house doctors.
   Do not force card 4 into column 2 (this caused the blank space before Dr. Namitha). */
body.team-page .team-inhouse-grid > .team-inhouse-card:nth-child(4){
    grid-column:auto !important;
}

/* Keep doctor cards visually even when descriptions differ slightly. */
body.team-page .team-inhouse-content{
    min-height:285px;
}
body.team-page .team-inhouse-content p{
    flex:1 1 auto;
}
body.team-page .team-inhouse-content .btn-appointment{
    margin-top:auto;
}

/* Backoffice / support team — intentionally no descriptions. */
body.team-page .team-support-section{
    --support-blue:#087fbd;
    --support-blue-dark:#075f91;
    --support-accent:#43bdf2;
    --support-red:#ef3d3d;
    --support-text:#102f49;
    width:min(92%,1280px);
    margin:8px auto 78px;
    padding:58px clamp(20px,4vw,52px);
    position:relative;
    overflow:hidden;
    border:1px solid rgba(8,127,189,.12);
    border-radius:34px;
    background:
        radial-gradient(circle at 5% 0%,rgba(67,189,242,.15),transparent 30%),
        radial-gradient(circle at 100% 100%,rgba(239,61,61,.06),transparent 28%),
        linear-gradient(145deg,#f8fcff 0%,#fff 52%,#f4faff 100%);
    box-shadow:0 28px 70px rgba(13,70,105,.08);
}
body.team-page .team-support-section::before{
    content:"";
    position:absolute;
    width:210px;height:210px;
    right:-90px;top:-100px;
    border-radius:50%;
    border:34px solid rgba(67,189,242,.07);
    pointer-events:none;
}
body.team-page .team-support-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
}
body.team-page .team-support-card{
    --card-rotate-x:0deg;
    --card-rotate-y:0deg;
    --card-translate-y:0px;
    position:relative;
    overflow:hidden;
    min-width:0;
    border:1px solid rgba(8,127,189,.13);
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 42px -28px rgba(11,73,110,.30);
    transform:perspective(1200px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translate3d(0,var(--card-translate-y),0);
    transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .45s ease,border-color .35s ease;
}
body.team-page .team-support-card:hover{
    --card-translate-y:-9px;
    border-color:rgba(67,189,242,.42);
    box-shadow:0 30px 58px -30px rgba(11,73,110,.38);
}
body.team-page .team-support-photo{
    position:relative;
    height:235px;
    overflow:hidden;
    background:linear-gradient(180deg,#eaf7fd,#d9f0fa);
}
body.team-page .team-support-photo::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:42%;
    background:linear-gradient(180deg,transparent,rgba(7,75,112,.16));
    pointer-events:none;
}
body.team-page .team-support-photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    transition:transform .9s cubic-bezier(.22,1,.36,1),filter .45s ease;
}
body.team-page .team-support-card:hover .team-support-photo img{
    transform:scale(1.065);
    filter:saturate(1.04);
}
body.team-page .team-support-number{
    position:absolute;
    top:14px;left:14px;
    z-index:3;
    display:grid;
    place-items:center;
    width:40px;height:40px;
    border-radius:13px;
    background:rgba(255,255,255,.95);
    color:var(--support-blue-dark);
    font-size:.76rem;
    font-weight:800;
    box-shadow:0 10px 24px rgba(11,73,110,.12);
}
body.team-page .team-support-shine{
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:linear-gradient(120deg,transparent 8%,rgba(255,255,255,.28) 31%,transparent 54%);
    transform:translateX(-130%);
    transition:transform .85s cubic-bezier(.22,1,.36,1);
}
body.team-page .team-support-card:hover .team-support-shine{transform:translateX(130%)}
body.team-page .team-support-info{
    position:relative;
    min-height:156px;
    padding:24px 20px 22px;
    border-top:3px solid transparent;
    border-image:linear-gradient(90deg,var(--support-blue),var(--support-accent),var(--support-red)) 1;
}
body.team-page .team-support-icon{
    position:absolute;
    right:18px;top:-24px;
    z-index:4;
    display:grid;
    place-items:center;
    width:46px;height:46px;
    border-radius:15px;
    background:linear-gradient(145deg,var(--support-accent),var(--support-blue));
    color:#fff;
    box-shadow:0 12px 25px rgba(8,127,189,.24);
    transition:transform .4s cubic-bezier(.22,1,.36,1);
}
body.team-page .team-support-card:hover .team-support-icon{transform:rotate(-6deg) scale(1.07)}
body.team-page .team-support-label{
    display:block;
    max-width:calc(100% - 42px);
    margin-bottom:8px;
    color:var(--support-red);
    font-size:.62rem;
    font-weight:800;
    letter-spacing:.12em;
    line-height:1.35;
}
body.team-page .team-support-info h3{
    margin:0 0 7px;
    color:var(--support-text);
    font-size:1.18rem;
    line-height:1.2;
    font-weight:800;
}
body.team-page .team-support-info h3 small{
    color:#7890a2;
    font-size:.72rem;
    font-weight:700;
}
body.team-page .team-support-info strong{
    display:block;
    color:var(--support-blue);
    font-size:.82rem;
    line-height:1.45;
}
@media(max-width:1100px){
    body.team-page .team-support-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
    body.team-page .team-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
    body.team-page .team-support-section{width:min(94%,1280px);padding:42px 15px}
    body.team-page .team-support-grid{grid-template-columns:1fr}
    body.team-page .team-support-photo{height:300px}
}
@media(prefers-reduced-motion:reduce){
    body.team-page .team-support-card,
    body.team-page .team-support-photo img,
    body.team-page .team-support-shine{
        transform:none!important;
        transition:none!important;
    }
}



/* ==========================================================
   TEAM BANNER — PATIENT CONFIDENCE TILES
   Service-page style overlap: half in / half out of banner.
   Uses the existing Madhav blue, red and white palette.
   ========================================================== */
body.team-page .team-banner{
    overflow:visible;
}

body.team-page .team-banner-trust{
    position:relative;
    z-index:8;
    width:100%;
    margin-top:-76px;
    padding:0 24px;
    pointer-events:none;
}

body.team-page .team-banner-trust-inner{
    width:min(92%,1380px);
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

body.team-page .team-banner-trust-card{
    --tile-accent:#007acc;
    position:relative;
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:18px;
    align-items:center;
    min-height:154px;
    padding:24px 24px;
    overflow:hidden;
    border-radius:22px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(0,122,204,.17);
    box-shadow:0 18px 46px rgba(11,58,99,.13);
    pointer-events:auto;
    opacity:0;
    transform:translate3d(0,28px,0);
    animation:teamTrustTileIn .7s cubic-bezier(.2,.75,.25,1) forwards;
    transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

body.team-page .team-banner-trust-card:nth-child(1){animation-delay:.16s}
body.team-page .team-banner-trust-card:nth-child(2){animation-delay:.28s}
body.team-page .team-banner-trust-card:nth-child(3){animation-delay:.40s}

body.team-page .team-banner-trust-card--red{
    --tile-accent:#ef3c3c;
    border-color:rgba(239,60,60,.17);
}

body.team-page .team-banner-trust-card:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--tile-accent),rgba(79,195,255,.72));
}

body.team-page .team-banner-trust-card:after{
    content:"";
    position:absolute;
    width:120px;
    height:120px;
    right:-52px;
    bottom:-58px;
    border-radius:50%;
    background:rgba(0,122,204,.07);
    transition:transform .4s ease;
}

body.team-page .team-banner-trust-icon{
    position:relative;
    z-index:1;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:18px;
    color:#fff;
    font-size:1.25rem;
    background:linear-gradient(145deg,var(--tile-accent),#28a9e6);
    box-shadow:0 12px 26px rgba(0,122,204,.22);
}

body.team-page .team-banner-trust-card--red .team-banner-trust-icon{
    background:linear-gradient(145deg,#ef3c3c,#ff6868);
}
body.team-page .team-banner-trust-card--red:after{background:rgba(239,60,60,.07)}
body.team-page .team-banner-trust-card--red .team-banner-trust-icon{box-shadow:0 12px 26px rgba(239,60,60,.20)}
@media (hover:hover){body.team-page .team-banner-trust-card--red:hover{border-color:rgba(239,60,60,.32)}}

body.team-page .team-banner-trust-kicker{
    display:block;
    margin-bottom:6px;
    color:var(--tile-accent);
    font-size:.70rem;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.12em;
}

body.team-page .team-banner-trust-card h3{
    margin:0 0 7px;
    color:#0b3a63;
    font-size:clamp(1.05rem,1.25vw,1.28rem);
    line-height:1.25;
    font-weight:800;
}

body.team-page .team-banner-trust-card p{
    margin:0;
    color:#52697e;
    font-size:.91rem;
    line-height:1.58;
}

@media (hover:hover){
    body.team-page .team-banner-trust-card:hover{
        transform:translateY(-7px);
        border-color:rgba(0,122,204,.34);
        box-shadow:0 24px 56px rgba(11,58,99,.17);
    }
    body.team-page .team-banner-trust-card:hover:after{
        transform:scale(1.25);
    }
    body.team-page .team-banner-trust-card:hover .team-banner-trust-icon{
        animation:teamTrustIcon .55s ease;
    }
}

@keyframes teamTrustTileIn{
    from{opacity:0;transform:translate3d(0,28px,0)}
    to{opacity:1;transform:translate3d(0,0,0)}
}

@keyframes teamTrustIcon{
    0%,100%{transform:translateY(0) scale(1)}
    50%{transform:translateY(-3px) scale(1.05)}
}

/* Give the lead section breathing room below the overlapping tiles. */
body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding{
    padding-top:clamp(72px,7vw,104px);
}

@media (max-width:991px){
    body.team-page .team-banner-trust{
        margin-top:-54px;
        padding:0 18px;
    }
    body.team-page .team-banner-trust-inner{
        width:min(94%,760px);
        grid-template-columns:1fr;
        gap:14px;
    }
    body.team-page .team-banner-trust-card{
        min-height:0;
        padding:20px;
    }
    body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding{
        padding-top:58px;
    }
}

@media (max-width:575px){
    body.team-page .team-banner-trust{
        margin-top:-38px;
        padding:0 14px;
    }
    body.team-page .team-banner-trust-card{
        grid-template-columns:52px minmax(0,1fr);
        gap:14px;
        padding:17px 16px;
        border-radius:18px;
    }
    body.team-page .team-banner-trust-icon{
        width:50px;
        height:50px;
        border-radius:15px;
        font-size:1.05rem;
    }
    body.team-page .team-banner-trust-card p{
        font-size:.86rem;
        line-height:1.5;
    }
}

@media (prefers-reduced-motion:reduce){
    body.team-page .team-banner-trust-card{
        opacity:1;
        transform:none;
        animation:none;
    }
}


/* ==========================================================
   TEAM BANNER TILES — FINAL OVERLAP / SPACING FIX
   ========================================================== */

body.team-page .team-banner{
    overflow:visible;
}

body.team-page .team-banner-trust{
    position:relative;
    z-index:8;
    width:100%;
    margin-top:-76px;
    padding:0 24px 18px;
    pointer-events:none;
    background:linear-gradient(
        to bottom,
        transparent 0,
        transparent 76px,
        #f5f9ff 76px,
        #f5f9ff 100%
    );
}

body.team-page .team-banner-trust-inner{
    position:relative;
    z-index:2;
}

/* Reduce unwanted space before the first Team content. */
body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding{
    padding-top:34px;
}

body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding > :first-child,
body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding .team-lead-showcase:first-child{
    margin-top:0;
}

/* Clean background below the banner tiles. */
body.team-page .team-page-wrapper{
    background:linear-gradient(
        180deg,
        #f5f9ff 0%,
        #ffffff 44%,
        #f5f9ff 100%
    );
}

@media (max-width:991px){
    body.team-page .team-banner-trust{
        margin-top:-54px;
        padding:0 18px 16px;
        background:linear-gradient(
            to bottom,
            transparent 0,
            transparent 54px,
            #f5f9ff 54px,
            #f5f9ff 100%
        );
    }

    body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding{
        padding-top:30px;
    }
}

@media (max-width:575px){
    body.team-page .team-banner-trust{
        margin-top:-38px;
        padding:0 14px 14px;
        background:linear-gradient(
            to bottom,
            transparent 0,
            transparent 38px,
            #f5f9ff 38px,
            #f5f9ff 100%
        );
    }

    body.team-page .team-banner-trust + .team-page-wrapper .main-section-padding{
        padding-top:24px;
    }
}
