/* --- STRICT RESET & SCOPING --- */
.shb-center-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- CORE VARIABLES --- */
:root {
    --primary: #2DACC9;
    --primary-hover: #2492AB;
    --secondary: #0F172A;
    --accent: #1B2B56;
    --bg-alt: #F8FAFC;
    --bg-blue-light: #E0F2FE;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --font-sans: 'Manrope', sans-serif;
    --shb-font-display: 'Figtree', sans-serif;
    --container-width: 1400px;
    --nav-height: 90px;
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

.navbar .container {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--shb-font-display);
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 8px 16px -4px rgba(45, 172, 201, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary);
    font-family: var(--shb-font-display);
}

.brand-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--secondary);
    font-weight: 700;
}

.btn-sm {
    padding: 10px 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(45, 172, 201, 0.25);
}

.btn-sm:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Ensure all text is visible in wrapper */
.shb-center-wrapper,
.shb-center-wrapper * {
    box-sizing: border-box;
}

.shb-center-wrapper a,
.shb-center-wrapper button,
.shb-center-wrapper span {
    font-family: var(--font-sans);
}

/* Force button text visibility */
.shb-center-wrapper .btn-block,
.shb-center-wrapper .btn-white,
.shb-center-wrapper .btn-outline,
.shb-center-wrapper .menu-btn {
    font-size: 15px !important;
    line-height: 1.5 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.shb-center-wrapper .sidebar-action .btn-block {
    color: #ffffff !important;
    background-color: #0F172A !important;
}

.shb-center-wrapper .inquiry-box .btn-white {
    color: #0F172A !important;
    background-color: #ffffff !important;
}

.shb-center-wrapper .inquiry-box .btn-outline {
    color: #ffffff !important;
    background-color: transparent !important;
}

.shb-center-body {
    font-family: var(--font-sans);
    background-color: var(--bg-alt);
    color: var(--secondary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Reset headings inside container to ensuring display font */
.shb-center-container h1,
.shb-center-container h2,
.shb-center-container h3,
.shb-center-container h4,
.shb-center-container h5,
.shb-center-container h6 {
    font-family: var(--shb-font-display);
    margin: 0;
    font-weight: 700;
}

.shb-center-container a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.shb-center-container button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.shb-center-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    overflow: visible;
}

/* Ensure wrapper breaks out of theme container */
.shb-center-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background-color: var(--bg-alt);
    overflow: hidden;
}

/* --- LAYOUT GRID --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0 96px;
    align-items: start;
}

/* --- SIDEBAR --- */
.sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: sticky;
    top: 120px;
    border: 1px solid white;
}

.sidebar-header {
    padding: 32px;
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sidebar-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    transition: transform 10s ease;
}

.sidebar:hover .sidebar-header img {
    transform: scale(1.1);
}

.sidebar-content {
    position: relative;
    z-index: 10;
}

.center-badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    font-size: 29.6px;
    /* 1.85rem based on 16px */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: white !important;
}

.sidebar-desc {
    font-size: 15.2px;
    /* 0.95rem based on 16px */
    color: var(--gray-300);
    line-height: 1.5;
    margin-bottom: 0;
}

.nav-menu {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    font-weight: 600;
    color: var(--gray-500) !important;
    font-size: 15px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-btn:hover {
    background-color: var(--bg-alt);
    color: var(--secondary) !important;
    transform: translateX(4px);
}

.menu-btn.active {
    background-color: #ECFEFF;
    color: var(--primary) !important;
}

.menu-btn.active .menu-icon {
    color: var(--primary);
}

.menu-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: color 0.2s;
}

.sidebar-action {
    padding: 24px;
    border-top: 1px solid var(--gray-100);
}

.btn-block {
    width: 100%;
    padding: 14px;
    background-color: var(--secondary) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    text-decoration: none;
}

.btn-block:hover {
    background-color: var(--accent) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* --- MAIN CONTENT --- */
.content-area {
    background: white;
    border-radius: 24px;
    min-height: 600px;
    overflow: hidden;
    border: 1px solid white;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
    padding: 48px;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.section-title {
    font-size: 32px;
    /* 2rem based on 16px */
    color: var(--secondary) !important;
    font-weight: 700;
    position: relative;
    margin-bottom: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- CONTENT STYLES --- */
.text-block {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 16.8px;
    /* 1.05rem based on 16px */
}

.text-block p {
    margin-bottom: 24px;
}

/* Overview Headline */
.overview-headline {
    font-size: 21.6px;
    /* 1.35rem based on 16px */
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: var(--shb-font-display);
}

.surgeon-spotlight {
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(to right, var(--bg-alt), white);
    padding: 40px;
    border-radius: 20px;
    margin-top: 48px;
    border: 1px solid var(--gray-200);
}

.surgeon-img-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.surgeon-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.surgeon-quote {
    font-style: italic;
    color: var(--gray-600);
    font-size: 17.6px;
    /* 1.1rem based on 16px */
    line-height: 1.6;
    margin-bottom: 0;
}

.surgeon-name {
    font-weight: 700;
    color: var(--secondary);
    margin-top: 16px;
    font-size: 16px;
    /* 1rem based on 16px */
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 40px;
    font-size: 15px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.data-table th {
    background-color: var(--secondary);
    color: white;
    text-align: left;
    padding: 20px 24px;
    font-weight: 600;
    font-family: var(--shb-font-display);
    font-size: 16px;
}

.data-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: top;
    line-height: 1.6;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background-color: #fafafa;
}

.data-table tr:hover td {
    background-color: #f0f9ff;
    color: var(--gray-800);
}

.row-title {
    font-weight: 700;
    color: var(--secondary);
    width: 30%;
    font-size: 15px;
}

.procedure-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(45, 172, 201, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.procedure-link:hover {
    background: var(--primary);
    color: white;
}

/* --- PROCEDURES SECTION --- */
.procedures-section {
    margin-top: 56px;
}

.procedures-title {
    font-size: 24px;
    /* 1.5rem based on 16px */
    color: var(--secondary);
    margin-bottom: 24px;
    font-weight: 700;
    font-family: var(--shb-font-display);
}

.procedures-grid {
    display: grid;
    gap: 24px;
}

.procedure-box {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 12px;
}

.procedure-name {
    display: block;
    font-size: 17.6px;
    /* 1.1rem based on 16px */
    color: var(--secondary);
    margin-bottom: 8px;
}

.procedure-desc {
    color: var(--gray-600);
    display: block;
    margin-bottom: 8px;
}

/* --- UPDATED CAROUSEL & CARD STYLES --- */
.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    padding: 20px 4px 40px 4px;
    /* Bottom padding for shadows */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: -20px -4px -40px -4px;
    /* Compensate for padding */
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.doc-slide {
    flex: 0 0 100%;
    /* Mobile default */
    scroll-snap-align: start;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doc-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(45, 172, 201, 0.15);
    border-color: var(--primary);
}

.doc-image-area {
    background: var(--bg-blue-light);
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 60px;
    /* Space for the image to overlap */
}

.doc-thumb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    bottom: -50px;
    /* Half overlapping */
    border: 6px solid white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    background: white;
}

.doc-info-area {
    padding: 0 32px 32px 32px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-name {
    font-size: 21.6px;
    /* 1.35rem based on 16px */
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.doc-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 13.6px;
    /* 0.85rem based on 16px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.doc-bio {
    color: var(--gray-500);
    font-size: 15.2px;
    /* 0.95rem based on 16px */
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
    /* Push button to bottom */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-profile-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.view-profile-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #ECFEFF;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--gray-600);
    background: white;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #ECFEFF;
    transform: scale(1.05);
}

.data-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.data-link-box {
    padding: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--secondary);
    font-weight: 700;
    font-size: 17.6px;
    /* 1.1rem based on 16px */
    transition: all 0.3s;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.data-link-box:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #ECFEFF;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(45, 172, 201, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.stat-card svg,
.stat-card i {
    display: block;
    margin: 0 auto;
}

.stat-val {
    font-size: 40px;
    /* 2.5rem based on 16px */
    font-weight: 800;
    color: var(--primary) !important;
    line-height: 1;
    margin: 16px 0 8px;
    font-family: var(--shb-font-display);
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.stat-desc {
    font-size: 14px;
    color: var(--gray-400) !important;
    margin-top: 8px;
    margin-bottom: 0;
}

.inquiry-box {
    margin-top: 64px;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(27, 43, 86, 0.85)), url('https://images.pexels.com/photos/1170979/pexels-photo-1170979.jpeg?auto=compress&cs=tinysrgb&w=1200');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
}

.inquiry-box h3 {
    margin-bottom: 0;
    color: white !important;
    font-size: 28px;
    /* 1.75rem based on 16px */
    font-weight: 700;
}

.inquiry-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-white {
    background: white !important;
    color: var(--secondary) !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover {
    background: var(--gray-100) !important;
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
}

@media (min-width: 1024px) {
    .shb-center-container {
        padding: 0 24px;
    }

    .page-layout {
        grid-template-columns: 320px 1fr;
        gap: 56px;
    }

    .sidebar {
        position: sticky;
        top: 120px;
    }

    .nav-links {
        display: flex;
    }

    .doc-slide {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}

@media (max-width: 1023px) {
    .container {
        padding: 0 24px;
    }

    .shb-center-container {
        padding: 0 16px;
    }

    .sidebar {
        position: static;
        margin-bottom: 24px;
    }

    .sidebar-header {
        padding: 32px 24px;
    }

    .data-links {
        grid-template-columns: 1fr;
    }

    .surgeon-spotlight {
        flex-direction: column;
        text-align: center;
    }

    .surgeon-name {
        border-left: none;
        border-top: 3px solid var(--primary);
        padding-left: 0;
        padding-top: 12px;
        display: inline-block;
    }
}