:root {
    --primary-color: #00a1ab;
    --primary-dark: #008a93;
    --secondary-color: #002c5f;
    --accent-color: #ff6b6b;

    --success-color: #51cf66;
    --warning-color: #ffa94d;
    --danger-color: #e11d48;

    --text-dark: #222222;
    --text-light: #777777;
    --muted: #6b7280;

    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg: #f9fafb;

    --border-color: #e0e0e0;
    --border: #e5e7eb;
    --line: #e5e7eb;

    --card: #ffffff;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow: 0 4px 18px rgba(15, 23, 42, 0.08);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;

    --ink-1: #111827;

    --header-height: 72px;
}

/* Slightly smaller header on tablet/mobile */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default scrolling – no extra hacks (prevents jumpiness) */
html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    cursor: default;
}

/* If you add .has-fixed-header on body in HTML, this ensures content starts below header */
body.has-fixed-header {
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 5px auto;
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .container {
        width: min(1100px, 94vw);
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100%, 94vw);
    }
}


.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 2px 4px;
    flex-shrink: 0;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary-color);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 70%;
}

/* GET CONSULTATION BUTTON SPACING */
.nav-menu .btn-glow {
    margin-left: 10px;
}

/* Language Selector */
.language-selector-simple {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}

.language-selector-simple select {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 105px;
    min-width: 105px;
    max-width: 105px;
    height: 36px;
    padding: 8px 26px 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 161, 171, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    outline: none;
}

.language-selector-simple select:hover {
    box-shadow: 0 4px 12px rgba(0, 161, 171, 0.4);
    transform: translateY(-1px);
}

.language-selector-simple::after {
    content: "▼";
    font-size: 8px;
    color: white;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Hamburger Menu - FIXED */
.ham-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1002;
    margin-left: 15px;
}

.ham-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation (X shape) */
.ham-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-color);
}

.ham-icon.active span:nth-child(2) {
    opacity: 0;
}

.ham-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-color);
}

/* RESPONSIVE LOGO SCALING */
@media (max-width: 768px) {
    .logo img {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 35px;
        height: 35px;
    }
    .logo-text {
        font-size: 14px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .ham-icon {
        display: flex !important;
    }

    /* Hide desktop navigation on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        margin-left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 16px;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .nav-menu .btn-glow {
        margin: 20px 0 0 0;
        width: 100%;
    }

    .language-selector-simple {
        margin: 20px 0 0 0;
        width: 100%;
    }

    .language-selector-simple select {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    .glass-header .container {
        padding: 0 15px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .language-selector-simple select {
        height: 40px;
        font-size: 13px;
        padding: 9px 32px 9px 12px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 14px;
    }
}

/* =========================================================
   3. GENERIC BUTTON STYLES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 161, 171, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 161, 171, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 161, 171, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(0, 161, 171, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #37b24d 100%);
    color: white;
}

/* =========================================================
   4. SECTION TITLES / COMMON SECTIONS
   ========================================================= */

.section-title {
    text-align: center;
    margin: 32px 0 20px;
}

.section-title h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-title h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title h2 a:hover {
    color: var(--primary-dark);
}

.section-title.hospitals-title h2 a {
    color: #667eea;
}

.section-title.hospitals-title h2 a:hover {
    color: #764ba2;
}

.section-title p {
    color: var(--muted);
    font-size: 1rem;
}

/* Partners/Hospitals section wrapper */
.partners {
    padding: 56px 0;
}

/* Loading / error / empty states */
.loading,
.error,
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--muted);
}

.error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.empty-state {
    font-size: 1.1rem;
}

/* =========================================================
   5. HOSPITAL CARDS
   ========================================================= */

.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
    padding: 0;
}

.hospital-card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

.hospital-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, .18);
    border-color: #667eea;
}

.hospital-card.featured {
    border: 2px solid #f39c12;
    box-shadow: 0 4px 16px rgba(243, 156, 18, .12);
}

.hospital-card.featured:hover {
    box-shadow: 0 12px 32px rgba(243, 156, 18, .25);
}

/* Hospital image */
.hospital-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hospital-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.hospital-card:hover .hospital-img-wrap img {
    transform: scale(1.06);
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, .4);
    text-transform: uppercase;
}

/* Hospital text content */
.hospital-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.hospital-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    min-height: 2.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Location row */
.hospital-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: .9rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.hospital-location i {
    color: #667eea;
    flex-shrink: 0;
}

.hospital-location.no-data span {
    opacity: .7;
}

/* Specialties pill */
.hospital-specialties {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, .06), rgba(118, 75, 162, .06));
    border-left: 3px solid #667eea;
}

.hospital-specialties i {
    color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.specialties-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.specialties-label {
    font-size: .72rem;
    font-weight: 800;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.specialties-list {
    font-size: .9rem;
    color: #374151;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta row */
.hospital-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}

.hospital-meta .beds {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.hospital-meta .beds i {
    color: #667eea;
}

/* Card actions */
.hospital-actions {
    padding: 0 20px 20px;
    margin-top: auto;
}

/* Primary "View Details" button */
.hospital-actions .btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(.95rem, 0.6vw + .85rem, 1rem);
    letter-spacing: .3px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-normal), filter var(--transition-fast);
}

.hospital-actions .btn-view i {
    font-size: 1rem;
    line-height: 1;
}

.hospital-actions .btn-view:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: saturate(1.05);
}

.hospital-actions .btn-view:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .85),
        0 0 0 6px rgba(102, 126, 234, .45);
}

.hospital-actions .btn-view:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.hospital-actions .btn-view[disabled],
.hospital-actions .btn-view.is-disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   6. DOCTOR CARDS
   ========================================================= */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.doctor-card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, .15);
    border-color: #007bff;
}

/* Doctor image */
.doctor-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa, #e8eef5);
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform .35s ease;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

/* Doctor info */
.doctor-info-container {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.doctor-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-specialty {
    color: #007bff;
    font-weight: 700;
    font-size: .95rem;
}

.doctor-sub_specialties {
    color: #6b7280;
    font-size: .88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-hospital {
    color: #4b5563;
    font-size: .88rem;
    display: flex;
    gap: 6px;
}

.doctor-hospital::before {
    content: "📍";
    flex-shrink: 0;
    margin-top: 2px;
}

/* Doctor stats */
.doctor-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    border: 1px solid var(--border);
}

.stat-badge i {
    color: #f59e0b;
    font-size: .9rem;
}

/* Availability */
.availability-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
    margin: 4px 0;
}

.availability-indicator.available {
    color: #059669;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.availability-indicator.unavailable {
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.availability-indicator i {
    font-size: .5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

/* Doctor actions */
.doctor-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    flex-wrap: wrap;
}

/* Scoped button styles for doctor actions */
.doctor-actions .btn-primary,
.doctor-actions .btn-profile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: clamp(.95rem, 0.6vw + .85rem, 1rem);
    letter-spacing: .3px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        filter var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
    white-space: nowrap;
}

.doctor-actions .btn-primary i,
.doctor-actions .btn-profile i {
    font-size: 1rem;
    line-height: 1;
}

.doctor-actions .btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, var(--primary-dark, #2c3e50) 100%) !important;
    color: #fff !important;
    box-shadow: var(--shadow-sm);
}

.doctor-actions .btn-profile {
    background: #fff !important;
    color: var(--primary-color, #3498db) !important;
    border: 2px solid var(--primary-color, #3498db);
    box-shadow: var(--shadow-sm);
}

.doctor-actions .btn-primary:hover,
.doctor-actions .btn-profile:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: var(--shadow-md);
}

.doctor-actions .btn-primary:active,
.doctor-actions .btn-profile:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.doctor-actions .btn-primary:focus-visible,
.doctor-actions .btn-profile:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .85),
        0 0 0 6px rgba(52, 152, 219, .45);
}

.doctor-actions .btn-primary:disabled,
.doctor-actions .btn-profile:disabled,
.doctor-actions .btn-primary.is-disabled,
.doctor-actions .btn-profile.is-disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

/* Small devices - stack doctor buttons */
@media (max-width: 576px) {
    .doctor-actions {
        flex-direction: column;
    }

    .doctor-actions .btn-primary,
    .doctor-actions .btn-profile {
        border-radius: var(--radius-lg);
        padding: 13px 18px !important;
        font-size: 1rem;
    }
}

/* =========================================================
   7. PAGE LAYOUT WITH RIGHT SIDEBAR (BOOKING)
   ========================================================= */

.page-with-right-sidebar {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.booking-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
    z-index: 5;
}

.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    animation: bookIn .4s ease forwards .05s;
}

@keyframes bookIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-card__footer.note {
    color: var(--muted);
    font-size: .9rem;
    border-top: 1px dashed var(--line);
    text-align: center;
}

/* Responsive layout */
@media (max-width: 1120px) {
    .page-with-right-sidebar {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .page-with-right-sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .booking-sidebar {
        position: static;
        top: auto;
    }
}

/* =========================================================
   8. MODAL / BOOKING FORM
   (Used for WhatsApp booking, etc.)
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
    z-index: 99999;
    padding: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: min(680px, 100%);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn .3s ease-out;
    margin: 20px auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    transition: all .2s;
    background: transparent;
}

.modal-close:hover {
    color: #333;
    background: #f3f4f6;
}

/* Modal header */
.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.modal-header h2 {
    color: var(--ink-1);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.modal-header p {
    color: var(--muted);
    margin: 0;
}

/* Booking card header inside modal */
.booking-card__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

.booking-card__title {
    margin: 0 0 10px;
    font-size: 24px;
}

.booking-card__subtitle {
    margin: 0;
    opacity: .9;
    font-size: 16px;
}

.booking-card__specialty {
    margin: 10px 0 0;
    opacity: .95;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal body / form */
.booking-card__body {
    padding: 30px;
}

/* Form layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: .92rem;
    color: var(--ink-1);
    font-weight: 600;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.form-group label.required::after {
    content: "*";
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    appearance: none;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-card);
    transition: border-color .3s;
    box-shadow: none;
    color: var(--ink-1);
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Modal primary: WhatsApp submit button (scoped) */
.btn-modal-submit {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .3s, transform .15s ease;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .25);
}

.btn-modal-submit:hover {
    background: #20BA5A;
    transform: translateY(-1px);
}

.btn-modal-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Generic primary & secondary inside modal (scoped) */
.modal .btn-primary,
.form-actions .btn-primary {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .3s;
}

.modal .btn-primary:hover,
.form-actions .btn-primary:hover {
    background: #20BA5A;
}

.modal .btn-primary:disabled,
.form-actions .btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.modal .btn-secondary,
.form-actions .btn-secondary {
    background: #f1f3f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all .3s;
}

.modal .btn-secondary:hover,
.form-actions .btn-secondary:hover {
    background: #e9ecef;
}

/* Booking result */
.booking-result {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.booking-result.show {
    display: block;
}

.booking-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal {
        padding: .75rem;
    }

    .modal-content {
        padding: 1.25rem;
        width: min(560px, 100%);
        border-radius: 12px;
        max-height: 95vh;
    }

    .booking-card__header,
    .booking-card__body {
        padding: 20px;
    }

    .booking-card__footer {
        padding: 12px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px;
        font-size: 15px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
        justify-content: flex-start;
        margin-top: 16px;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary,
    .form-actions .btn-modal-submit {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: .5rem;
    }

    .modal-content {
        padding: 1rem;
        border-radius: 10px;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 1.25rem;
    }

    .booking-card__header {
        padding: 16px;
    }

    .booking-card__title {
        font-size: 18px;
    }

    .booking-card__subtitle {
        font-size: 13px;
    }

    .booking-card__body {
        padding: 16px;
    }

    .booking-card__footer {
        padding: 10px 16px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: .875rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary,
    .form-actions .btn-modal-submit {
        padding: 11px 14px;
        font-size: 14px;
    }
}

/* =========================================================
   9. TABS (MAIN + DEPARTMENTS)
   ========================================================= */

/* Outer tab container */
.tab-container {
    width: 90%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(2, 24, 47, .08);
    overflow: hidden;
}

/* Horizontal tab buttons (top) */
.tab-buttons {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #e6eef6;
    background: #f8fafc;
}

.tab-button {
    flex: 1 1 0;
    padding: 18px 22px;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: transparent;
    color: #41566b;
    font-weight: 800;
    letter-spacing: .2px;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
    border: 0;
    position: relative;
}

.tab-button:not(.active):hover {
    background: #f1f6fb;
    color: #0b78d1;
}

.tab-button.active {
    background: #fff;
    color: #0b78d1;
    box-shadow: inset 0 -3px 0 #0b78d1;
}

/* Tab content */
.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

/* Page title within tab page */
.page-title {
    padding: 18px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Tab interface: departments (vertical tabs + content) */
.tab-interface {
    display: flex;
    min-height: 500px;
}

.vertical-tabs {
    width: 250px;
    border-right: 2px solid #eee;
    background: #f8f9fa;
}

/* Single department tab (vertical) */
.vertical-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    text-align: left;
    gap: 15px;
    background: transparent;
}

.tab-icon {
    font-size: 2rem;
    color: #007bff;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tab-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.vertical-tab:hover {
    background: #e9ecef;
}

.vertical-tab:hover .tab-icon {
    transform: scale(1.1);
    color: #0056b3;
}

.vertical-tab.active {
    background: white;
    border-right: 3px solid #007bff;
}

.vertical-tab.active .tab-icon {
    color: #0056b3;
    transform: scale(1.1);
}

.vertical-tab.active .tab-title {
    color: #0056b3;
    font-weight: 700;
}

/* Tab content area */
.tab-content-area {
    flex: 1;
    padding: 30px;
}

/* Department content */
.department-content {
    display: none;
}

.department-content.active {
    display: block;
}

/* Tab interface responsive */
@media (max-width: 1024px) {
    .tab-interface {
        flex-direction: column;
    }

    .vertical-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #eee;
    }
}

@media (max-width: 768px) {
    .tab-container {
        width: 95%;
        margin: 20px auto;
    }

    .vertical-tabs {
        display: flex;
        overflow-x: auto;
    }

    .vertical-tab {
        min-width: 150px;
        text-align: center;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }

    .page-title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        padding: 12px;
        font-size: 0.95rem;
    }

    .page-title {
        padding: 20px 10px;
    }

    .page-title h1 {
        font-size: 1.6rem;
    }

    .page-title p {
        font-size: 0.9rem;
    }

    .tab-content-area {
        padding: 15px;
    }
}

/* =========================================================
   10. DISEASE / TREATMENT CONTENT LAYOUT
   ========================================================= */

.disease-header {
    margin-bottom: 30px;
}

.disease-header-content h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* text justify */
.disease-header-content,
.tab-content-body,
.info-section,
.content-grid {
    text-align: justify;
    text-justify: inter-word;
}

/* 2-col content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #34495e;
    margin-bottom: 15px;
}

/* Symptoms list */
.symptoms-list {
    list-style: none;
    padding-left: 0;
}

.symptoms-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.symptoms-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Disease image */
.disease-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Treatment options - OLD accordion */
.treatment-options {
    margin-top: 20px;
}

.treatment-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.treatment-dropdown.active {
    border-color: #667eea;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.18);
}

.treatment-header {
    padding: 15px 18px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.treatment-header:hover {
    background: #e9ecef;
}

.treatment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.treatment-icon {
    color: #007bff;
}

.treatment-arrow i {
    transition: transform 0.3s;
}

/* plus/minus control */
.treatment-dropdown.active .treatment-arrow .fa-plus {
    display: none;
}

.treatment-dropdown:not(.active) .treatment-arrow .fa-minus {
    display: none;
}

/* Content panel: smooth, minimal jump */
.treatment-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.treatment-content.active {
    max-height: 2000px;
}

/* inner layout */
.treatment-details {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .treatment-details {
        grid-template-columns: 1fr;
    }
}

.treatment-features {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.treatment-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.treatment-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Treatment image inside older accordion */
.treatment-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Stats bar */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA block */
.consultation-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 10px;
    color: white;
    margin-top: 40px;
}

.consultation-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.consultation-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   11. PARTNERS / HOSPITALS LIST + TESTIMONIALS
   ========================================================= */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.partner-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.partner-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.partner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
}

.partner-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.partner-location {
    font-size: 0.9rem;
    opacity: 0.9;
}

.partner-content {
    padding: 20px;
}

.partner-specialties {
    list-style: none;
    padding-left: 0;
}

.partner-specialties li {
    padding: 5px 0;
    color: #666;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: white;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #007bff;
    color: white;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.testimonial-card.active {
    display: block;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-position {
    color: #666;
    font-size: 0.95rem;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff0000;
    text-decoration: none;
    margin-top: 5px;
    font-size: 0.9rem;
}

.youtube-link:hover {
    text-decoration: underline;
}

.rating {
    margin-bottom: 20px;
}

.star {
    font-size: 1.5rem;
    color: #ffc107;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-button {
    background: #007bff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-button:hover:not(:disabled) {
    background: #0056b3;
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dots-container-inner {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #007bff;
}

.timer-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.1s linear;
}

/* =========================================================
   12. WHY US (FEATURES GRID)
   ========================================================= */

.why-us {
    padding: 60px 0;
    background: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* =========================================================
   13. COLLAPSIBLE TABS (FAQ STYLE) – IMPROVED
   ========================================================= */

/* Overall section wrapper */
.collapsible-tabs {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Single FAQ card */
.collapsible-tab {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.collapsible-tab:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header (question) */
.collapsible-tab-header {
    position: relative;
    padding: 18px 60px 18px 25px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.collapsible-tab-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
}

.collapsible-tab-header.active {
    background: linear-gradient(135deg, #4a56c7 0%, #542e7f 100%);
}

.collapsible-tab-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.collapsible-tab-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.25s ease;
}

.collapsible-tab-header.active .collapsible-tab-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Content (answer) – SMOOTHER, LESS JUMP */
.collapsible-tab-content {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.4s ease, padding 0.25s ease, opacity 0.25s ease;
    padding: 0 30px;
    opacity: 0;
}

.collapsible-tab-content.active {
    max-height: 20000px;
    padding: 25px 30px 30px;
    opacity: 1;
}

/* Content layout inside */
.tab-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Text block */
.tab-content-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-content-text h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.tab-content-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 12px;
    text-align: justify;
}

.tab-content-text .additional-desc {
    margin-top: 10px;
    padding: 16px 18px;
    background: #f7fafc;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Numbers / stats inside FAQ section */
.tab-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-stat-item {
    text-align: center;
    padding: 20px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tab-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.tab-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
    display: block;
}

.tab-stat-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

/* "Innovative approaches" block */
.innovative-approaches {
    margin: 0;
    padding: 24px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.innovative-approaches h4 {
    font-size: 1.35rem;
    color: #2d3748;
    margin-bottom: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.innovative-approaches h4:before {
    content: "💡";
    font-size: 1.5rem;
}

.approaches-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.approaches-list li {
    padding: 13px 0 13px 38px;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.approaches-list li:last-child {
    border-bottom: none;
}

.approaches-list li:hover {
    background: #f7fafc;
    padding-left: 42px;
}

.approaches-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 13px;
    width: 26px;
    height: 26px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
}

/* IMAGE INSIDE FAQ – TIGHT, CONSISTENT, NON-MESSY */
.tab-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-image {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tab-image:hover {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-3px);
}

.tab-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 380px;
    min-height: 220px;
}

/* Responsive FAQ + images */
@media (min-width: 768px) and (max-width: 1199px) {
    .collapsible-tab-header {
        padding: 16px 55px 16px 22px;
    }

    .collapsible-tab-title {
        font-size: 1.2rem;
    }

    .collapsible-tab-icon {
        right: 20px;
    }

    .collapsible-tab-content.active {
        padding: 22px 25px 28px;
    }

    .tab-content-wrapper {
        max-width: 900px;
        gap: 25px;
    }

    .tab-image {
        max-width: 650px;
    }

    .tab-image img {
        max-height: 340px;
        min-height: 210px;
    }

    .tab-content-text h3 {
        font-size: 1.4rem;
    }

    .tab-content-text p {
        font-size: 0.98rem;
    }

    .tab-stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .collapsible-tabs {
        margin: 30px 0;
        gap: 18px;
    }

    .collapsible-tab {
        border-radius: 10px;
    }

    .collapsible-tab-header {
        padding: 14px 50px 14px 20px;
    }

    .collapsible-tab-title {
        font-size: 1.1rem;
    }

    .collapsible-tab-icon {
        right: 20px;
        font-size: 1.3rem;
    }

    .collapsible-tab-content.active {
        padding: 20px 20px 24px;
    }

    .tab-content-wrapper {
        gap: 20px;
        max-width: 100%;
    }

    .tab-image {
        max-width: 100%;
    }

    .tab-image img {
        max-height: 280px;
        min-height: 190px;
    }

    .tab-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 18px 15px;
    }

    .tab-stat-item {
        padding: 16px 10px;
    }

    .tab-stat-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 479px) {
    .collapsible-tabs {
        margin: 25px 0;
        gap: 15px;
    }

    .collapsible-tab-header {
        padding: 12px 45px 12px 18px;
    }

    .collapsible-tab-title {
        font-size: 1.02rem;
    }

    .collapsible-tab-icon {
        right: 18px;
        font-size: 1.25rem;
    }

    .collapsible-tab-content.active {
        padding: 18px 16px 22px;
    }

    .tab-image img {
        max-height: 240px;
        min-height: 160px;
    }

    .tab-content-text h3 {
        font-size: 1.18rem;
    }

    .tab-content-text p {
        font-size: 0.93rem;
    }

    .tab-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 12px;
    }

    .tab-stat-value {
        font-size: 1.7rem;
    }
}

.tab-treatments-section {
    margin: 35px 0 0;
    padding: 28px;
    background: white;
    border-radius: 10px;
    border-top: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-treatments-title {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-treatments-title:before {
    content: "💊";
    font-size: 1.6rem;
}

.tab-treatments-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion card */
.tab-treatment-card {
    background: #f7fafc;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    animation: fadeInUp 0.4s ease-out;
}

.tab-treatment-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.tab-treatment-card.active {
    border-color: #667eea;
    background: white;
}

/* Header */
.tab-treatment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 20px;
    cursor: pointer;
    background: linear-gradient(90deg, #f7fafc 0%, #edf2f7 100%);
    transition: all 0.3s ease;
}

.tab-treatment-card.active .tab-treatment-header {
    background: linear-gradient(90deg, #667eea15 0%, #764ba215 100%);
}

.tab-treatment-header:hover {
    background: linear-gradient(90deg, #edf2f7 0%, #e2e8f0 100%);
}

.tab-treatment-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.tab-treatment-title i {
    font-size: 1.2rem;
    color: #667eea;
}

/* plus/minus control */
.tab-treatment-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tab-treatment-toggle i {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 1.15rem;
}

.tab-treatment-toggle .fa-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.tab-treatment-toggle .fa-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.tab-treatment-card.active .tab-treatment-toggle .fa-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.tab-treatment-card.active .tab-treatment-toggle .fa-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* Body: smoother open/close to reduce scroll jump */
.tab-treatment-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.25s ease, opacity 0.25s ease;
    padding: 0 20px;
    opacity: 0;
}

.tab-treatment-card.active .tab-treatment-body {
    max-height: 5000px;
    padding: 20px 20px 24px;
    opacity: 1;
}

/* Inner vertical layout */
.tab-treatment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

/* Treatment text content */
.tab-treatment-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-treatment-content h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: left;
}

.tab-treatment-content p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 10px;
    text-align: justify;
}

.tab-treatment-content p.additional {
    padding: 13px 16px;
    background: #f7fafc;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    font-style: italic;
    font-size: 0.96rem;
}

/* Features list */
.tab-treatment-features {
    margin: 0;
    padding: 18px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tab-treatment-features h5 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-treatment-features h5:before {
    content: "✨";
    font-size: 1.15rem;
}

.tab-treatment-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-treatment-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tab-treatment-features li:last-child {
    border-bottom: none;
}

.tab-treatment-features li:hover {
    background: white;
    padding-left: 34px;
}

.tab-treatment-features li:before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 10px;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Treatment image (bottom) – constrained, cleaner */
.tab-treatment-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-treatment-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tab-treatment-image:hover {
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.18);
    border-color: #667eea;
    transform: translateY(-2px);
}

.tab-treatment-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 320px;
    min-height: 200px;
}

/* Responsive treatments */
@media (max-width: 767px) {
    .tab-treatments-section {
        padding: 22px 18px;
    }

    .tab-treatments-title {
        font-size: 1.25rem;
    }

    .tab-treatment-header {
        padding: 15px 18px;
    }

    .tab-treatment-title {
        font-size: 1.05rem;
    }

    .tab-treatment-card.active .tab-treatment-body {
        padding: 18px 18px 22px;
    }

    .tab-treatment-wrapper {
        gap: 18px;
        max-width: 100%;
    }

    .tab-treatment-image {
        max-width: 100%;
    }

    .tab-treatment-image img {
        max-height: 260px;
        min-height: 180px;
    }

    .tab-treatment-content h4 {
        font-size: 1.16rem;
    }

    .tab-treatment-content p {
        font-size: 0.95rem;
    }

    .tab-treatment-features {
        padding: 15px;
    }

    .tab-treatment-features li {
        font-size: 0.94rem;
        padding: 9px 0 9px 28px;
    }
}

@media (max-width: 479px) {
    .tab-treatments-section {
        padding: 18px 15px;
    }

    .tab-treatments-title {
        font-size: 1.16rem;
    }

    .tab-treatment-header {
        padding: 14px 15px;
    }

    .tab-treatment-title {
        font-size: 1rem;
    }

    .tab-treatment-card.active .tab-treatment-body {
        padding: 16px 15px 20px;
    }

    .tab-treatment-image img {
        max-height: 230px;
        min-height: 160px;
    }

    .tab-treatment-content h4 {
        font-size: 1.1rem;
    }

    .tab-treatment-content p {
        font-size: 0.93rem;
    }

    .tab-treatment-features {
        padding: 14px;
    }

    .tab-treatment-features li {
        font-size: 0.92rem;
        padding: 9px 0 9px 26px;
    }
}

/* =========================================================
   15. ANIMATIONS / ON-SCROLL
   ========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hospitals-grid .hospital-card,
.stagger-animation .doctor-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.hospitals-grid .hospital-card:nth-child(1),
.stagger-animation .doctor-card:nth-child(1) {
    animation-delay: 0.05s;
}

.hospitals-grid .hospital-card:nth-child(2),
.stagger-animation .doctor-card:nth-child(2) {
    animation-delay: 0.1s;
}

.hospitals-grid .hospital-card:nth-child(3),
.stagger-animation .doctor-card:nth-child(3) {
    animation-delay: 0.15s;
}

.hospitals-grid .hospital-card:nth-child(4),
.stagger-animation .doctor-card:nth-child(4) {
    animation-delay: 0.2s;
}

.hospitals-grid .hospital-card:nth-child(5),
.stagger-animation .doctor-card:nth-child(5) {
    animation-delay: 0.25s;
}

.hospitals-grid .hospital-card:nth-child(6),
.stagger-animation .doctor-card:nth-child(6) {
    animation-delay: 0.3s;
}

.hospitals-grid .hospital-card:nth-child(7),
.stagger-animation .doctor-card:nth-child(7) {
    animation-delay: 0.35s;
}

.hospitals-grid .hospital-card:nth-child(8),
.stagger-animation .doctor-card:nth-child(8) {
    animation-delay: 0.4s;
}

.hospitals-grid .hospital-card:nth-child(9),
.stagger-animation .doctor-card:nth-child(9) {
    animation-delay: 0.45s;
}

.hospitals-grid .hospital-card:nth-child(10),
.stagger-animation .doctor-card:nth-child(10) {
    animation-delay: 0.5s;
}

/* Ensure stagger grid is visible even if JS doesn't toggle classes */
.doctors-grid.stagger-animation .doctor-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Generic "animate on scroll" helper */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-left.animated,
.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   16. FOOTER
   ========================================================= */

footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 56px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 12px;
    color: #3498db;
}

.footer-column p {
    color: #ecf0f1;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ecf0f1;
    transition: color .2s ease;
    text-decoration: none;
}

.footer-column a:hover {
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #34495e;
    border-radius: 50%;
    transition: background .2s ease;
    color: white;
    text-decoration: none;
}

.social-icons a:hover {
    background: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* RESPONSIVE STYLES - FOOTER SPECIFIC */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height, 80px) + 20px);
}

/* Smooth accordion transitions - UPDATED */
.collapsible-tab-content,
.tab-treatment-body,
.treatment-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-tab-content.active,
.tab-treatment-body.active,
.treatment-content.active {
    overflow: visible;
    max-height: none !important;
    /* Force full expansion */
}

/* Ensure wrapper doesn't restrict height */
.tab-treatment-wrapper,
.tab-content-wrapper,
.treatment-details {
    min-height: auto;
    height: auto;
}

/* Icon transitions */
.collapsible-tab-icon,
.tab-treatment-toggle i,
.treatment-arrow i {
    transition: transform 0.3s ease;
}

.collapsible-tab-header.active .collapsible-tab-icon {
    transform: rotate(180deg);
}

/* Plus/Minus icon transitions */
.tab-treatment-card .tab-treatment-toggle .fa-plus,
.tab-treatment-card .tab-treatment-toggle .fa-minus,
.treatment-dropdown .treatment-arrow .fa-plus,
.treatment-dropdown .treatment-arrow .fa-minus {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-treatment-card:not(.active) .tab-treatment-toggle .fa-minus,
.treatment-dropdown:not(.active) .treatment-arrow .fa-minus {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
}

.tab-treatment-card.active .tab-treatment-toggle .fa-plus,
.treatment-dropdown.active .treatment-arrow .fa-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.tab-treatment-card.active .tab-treatment-toggle .fa-minus,
.treatment-dropdown.active .treatment-arrow .fa-minus {
    opacity: 1;
    transform: rotate(0deg);
    position: relative;
}

/* Prevent scroll anchoring */
.collapsible-tabs,
.tab-treatments-grid,
.treatment-options {
    overflow-anchor: none;
}

/* Smooth header transitions */
.collapsible-tab-header,
.tab-treatment-header,
.treatment-header {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

/* CONSULTATION BUTTON FIX - WORKS EVERYWHERE */
.nav-consultation-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* Mobile Menu - Consultation Button Full Width */
@media (max-width: 768px) {
    .nav-menu .nav-consultation-btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 20px 0 10px 0 !important;
        padding: 14px 20px !important;
    }

    .nav-menu .language-selectator-simple {
        width: 100% !important;
        margin-top: 15px !important;
    }

    .nav-menu .language-selector-simple select {
        width: 100% !important;
        padding: 12px !important;
    }
}

@media (max-width: 768px) {
    .ham-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure the container has proper spacing */
    .glass-header .container {
        padding: 0 15px !important;
    }
    
    /* Make sure logo and hamburger don't overlap */
    .logo {
        flex-shrink: 0;
        margin-right: auto;
    }
    
    .ham-icon {
        margin-left: auto;
        order: 2;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .ham-icon {
        width: 28px;
        height: 20px;
    }
    
    .ham-icon span {
        height: 2.5px;
    }
}