/* Google Fonts moved to index.html for LCP optimization */

:root {
    /* Modern Rose - Care, Warmth & Professionalism */
    --primary-color: #E11D48;
    --primary-dark: #BE123C;
    --secondary-color: #FFF1F2;
    --accent-color: #F43F5E;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 20px 40px rgba(225, 29, 72, 0.08);

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-height: 90px;
    --section-spacing: 6rem;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.03em;
    gap: 8px;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #E2E8F0;
}

.btn--outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #F8FAFC;
}

.btn--white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Top Bar - Green Gradient & Centered */
.top-bar {
    background: linear-gradient(90deg, #10B981 0%, #047857 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar__container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.top-bar__text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    /* More transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.2);
    /* Even more transparent when scrolled */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    height: 75px;
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Font size handled in children */
    text-decoration: none;
}

/* Logo Styling */
.logo__img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-medium);
    transition: color 0.3s;
    font-size: 1rem;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
    font-weight: 600;
}

.nav__close,
.nav__toggle {
    display: none;
}

/* Hero Section (Slideshow) */
.hero {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 4rem;
    overflow: visible;
    /* Changed from hidden to allow hand image bleeding effect */
    background: linear-gradient(135deg, #FFF1F2 0%, #FFFFFF 60%, #FFE4E6 100%);
}

.hero__slider-container {
    display: grid;
    grid-template-areas: "slide";
    align-items: center;
    min-height: 550px;
}

.hero__slide {
    grid-area: slide;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero__slide:not(.active) {
    z-index: 1;
    pointer-events: none;
}

/* Indicators */
.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(225, 29, 72, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 20px;
}

/* Hero Content Styles */
.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    gap: 8px;
}

.hero__badge span:first-child {
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.hero__title {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.15;
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Trust at TOP of slide */
.hero__trust--top {
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.hero__divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 0 0 1.25rem 0;
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-rating {
    display: flex;
    flex-direction: column;
}

.trust-stars {
    color: #F59E0B;
    font-size: 0.875rem;
}

.trust-text {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 600;
}

.trust-badge {
    background: #DCFCE7;
    /* Green 100 */
    color: #14532D;
    /* Green 900 - High Contrast */
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid #86EFAC;
    /* Green 300 */
    box-shadow: 0 2px 4px rgba(20, 83, 45, 0.1);
}

.trust-logo {
    height: 48px;
    width: auto;
    /* Creates a shadow that follows the image contour (alpha mask) */
    filter: drop-shadow(0 2px 4px rgba(20, 83, 45, 0.1));
    transition: all 0.3s ease;
}

.trust-logo:hover {
    transform: scale(1.05);
    /* Deeper shadow on hover */
    filter: drop-shadow(0 4px 8px rgba(20, 83, 45, 0.15));
}

.hero__image-wrapper {
    position: relative;
}

.hero__img {
    border-radius: 30px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-soft);
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 4s ease-in-out infinite;
}

.float-card--1 {
    top: 12%;
    left: -40px;
}

.float-card--2 {
    bottom: 15%;
    right: -30px;
    animation-delay: 2s;
}

.float-icon {
    width: 44px;
    height: 44px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.float-card--2 .float-icon {
    background: #FFE4E6;
    color: #E11D48;
}

.float-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.float-text span {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 600;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section General */
.section {
    padding: var(--section-spacing) 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
    /* Keep below tooltip z-index 1000 */
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section__subtitle {
    color: var(--text-medium);
    font-size: 1.125rem;
}

/* Services */
.services {
    background: #F8FAFC;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: #FECDD3;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.service-card:hover .service-card__icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Schedule Feature */
.schedule-feature {
    background: var(--white);
}

.schedule-feature__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.feature-visual {
    position: sticky;
    top: 110px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 420px;
    /* ADJUSTED: Reduced height */
    box-shadow: var(--shadow-soft);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-visual:hover .feature-img {
    transform: scale(1.03);
}

/* Feature Slideshow */
.feature-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.feature-slide.active {
    opacity: 1;
}

.feature-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-overlay h3 {
    margin: 0;
    color: var(--primary-color);
}

/* Schedule Styles */
.schedule-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.schedule-card-themed {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.schedule-card-themed:hover {
    box-shadow: var(--shadow-soft);
    border-color: #FECDD3;
    transform: translateY(-2px);
}

.schedule-header {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.schedule-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.schedule-icon-small {
    font-size: 1.25rem;
}

.schedule-body {
    padding: 1.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #E2E8F0;
}

.schedule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-row:first-child {
    padding-top: 0;
}

.schedule-row-detailed {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #E2E8F0;
}

.schedule-row-detailed:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-row-detailed:first-child {
    padding-top: 0;
}

.schedule-row-detailed .doctor-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: left;
}

.schedule-time {
    font-size: 0.9rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.time-badge {
    background: #F1F5F9;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.schedule-time-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.schedule-shift-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.day-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 500;
    margin-left: 0.25rem;
}

.doctor-name {
    font-weight: 600;
    color: var(--text-medium);
    text-align: right;
}

.emergency-box {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.emergency-icon {
    width: 56px;
    height: 56px;
    background: #FFF1F2;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #FECDD3;
}

/* Testimonials (Marquee) */
.testimonials {
    background: #FFF1F2;
    padding: 5rem 0;
    overflow: hidden;
    margin-bottom: 0;
}

/* New Grid Layout */
.testimonials__layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed sidebar + fluid carousel */
    gap: 4rem;
    align-items: stretch;
}

/* Sidebar Styling */
.testimonials__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonials__quote-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.testimonials .section__title {
    font-size: 2.25rem;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.testimonials .section__desc {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Rating Badge */
.testimonials__rating-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rating-text .score {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 1;
}

.rating-text .source {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Navigation Buttons */
.testimonials__nav {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom */
}

.nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
    /* Rose shadow */
}

.nav-btn:active {
    transform: translateY(0);
}

/* Carousel Track */
.testimonials__carousel-container {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar */
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    display: flex;
    flex-direction: column;
}

.testimonials__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;

    margin-bottom: -2rem;
    /* Pull back */
    padding-right: 5rem;
    /* End padding */
    height: 100%;
    align-items: stretch;
    scroll-snap-type: x mandatory;
}

/* Hide Scrollbar explicitly */
.testimonials__track::-webkit-scrollbar {
    display: none;
}

.testimonials__track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Match track height */
    min-height: 280px;
    /* Backup */
    border: 1px solid #F1F5F9;
    scroll-snap-align: center;
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #E2E8F0;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .testimonials__layout {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 3rem;
    }

    .testimonials__sidebar {
        align-items: center;
        /* Center align on mobile */
        text-align: center;
    }

    .testimonials__header,
    .testimonials .section__title,
    .testimonials .section__desc {
        text-align: center !important;
    }

    .testimonials__nav {
        justify-content: center;
    }

    .testimonials__carousel-container {
        mask-image: none;
        /* Remove mask on mobile for easier scrolling */
        -webkit-mask-image: none;
        height: auto;
        /* Remove flex height constraint */
    }

    .testimonials__track {
        height: auto;
        /* Allow natural height */
        align-items: flex-start;
        /* Don't stretch cards */
        margin-bottom: 0;
        /* Remove negative margin that clips content */
        padding-bottom: 2rem;
        /* Add proper bottom spacing */
    }

    /* Mobile specific card adjustments */
    .testimonial-card {
        height: auto;
        /* Natural content height */
        min-height: auto;
        justify-content: flex-start;
        padding: 1.5rem;
        min-width: calc(100vw - 4rem);
        max-width: calc(100vw - 4rem);
    }

    .testimonial-text {
        flex-grow: 0;
        margin-bottom: 1.5rem;
    }

    .testimonial-author {
        margin-top: 0;
    }
}



.testimonial-stars {
    color: #F59E0B;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #F1F5F9;
    padding-top: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E2E8F0;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA */
.cta {
    background: var(--white);
    padding: 5rem 0;
}

.cta__container {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta__bg-circle {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, 0.1);
}

.cta__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__text {
    color: #FECDD3;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: #F8FAFC;
    color: var(--text-medium);
    padding: 5rem 0 2rem;
    border-top: 1px solid #E2E8F0;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Simplified 3-column footer - Logo left, Map center (stretch), Contact right */
.footer__container--simple {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Left: content, Center: stretch, Right: content */
    gap: 2rem;
    align-items: flex-start;
}

.footer__map-mini {
    justify-self: stretch;
    /* Map stretches to fill center column */
}

.footer__brand p {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

/* Social Media Icons */
.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.footer__socials a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.footer__heading {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer__links ul li {
    margin-bottom: 0.75rem;
}

.footer__links ul li a {
    font-size: 0.95rem;
}

.footer__links ul li a:hover {
    color: var(--primary-color);
}

/* Mini Map in Footer */
.footer__map-mini {
    /* Inherits styling */
}

.map-container-mini {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container-mini iframe {
    display: block;
}

.footer__bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    :root {
        --header-height: 80px;
        --section-spacing: 4rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__slider-container {
        grid-template-areas: "slide";
    }

    .hero__slide {
        grid-area: slide;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__buttons,
    .hero__trust {
        justify-content: center;
    }

    .hero__description,
    .section__header {
        margin-left: auto;
        margin-right: auto;
    }

    .float-card--1 {
        left: 0;
        top: 0;
    }

    .schedule-feature__container {
        grid-template-columns: 1fr;
    }

    /* FIXED: Disable sticky on mobile/tablet */
    .feature-visual {
        position: relative;
        top: 0;
        height: auto;
        max-height: 350px;
    }

    .footer__container,
    .footer__container--simple {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .top-bar__container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav__list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        text-align: center;
    }

    #nav-menu.show .nav__list {
        display: flex;
    }

    .nav__toggle {
        display: block;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .header__actions .btn {
        display: none;
    }

    .cta__container {
        padding: 2rem;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 12px;
    }

    .services__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .service-card {
        padding: 12px !important;
        min-height: 220px;
    }

    .service-card__icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin: 0 auto 0.75rem auto !important;
    }

    .service-card__title {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .service-card__desc {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .footer__container,
    .footer__container--simple {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .doctor-name {
        text-align: left;
    }
}

/* Partners Section */
.partners {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid #F1F5F9;
    position: relative;
    z-index: 10;
    /* Ensure partners section appears above hero */
}

.partner-marquee-container {
    width: 100%;
    overflow-x: hidden;
    /* Hide horizontal scroll */
    overflow-y: visible;
    /* Allow tooltips to show vertically */
    position: relative;
    padding: 0.75rem 0;
    /* Minimal space for tooltips */
    /* Fade mask effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: partnerMarquee 30s linear infinite;
    padding: 0;
    /* Remove padding, using container padding instead */
}

.partner-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes partnerMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by 1/3 since we have 3 sets */
        transform: translateX(calc(-33.333% - 2rem));
        /* Adjust for gap */
    }
}

.partner-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo--lg {
    height: 70px;
    /* Increased from default 50px */
}

.partner-logo--xl {
    height: 80px;
    /* Significant increase for small/square logos */
}

@media (max-width: 768px) {
    .partners {
        padding: 2rem 0;
    }

    .partner-marquee-track {
        gap: 2.5rem;
        animation-duration: 20s;
        /* Slightly faster on small screens to show more */
    }

    .partner-logo {
        height: 35px;
        /* Optimize size for mobile */
    }

    .partner-logo--lg {
        height: 50px;
    }

    .partner-logo--xl {
        height: 60px;
    }
}

/* Floating Image Animation */
.hero__img--floating {
    animation: float 6s ease-in-out infinite;
}

/* Mobile JKN Slide Specifics */
#slide-mobile-jkn .hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* Explicit height for positioning context */
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-box-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    /* Red theme */
    border-radius: 50px;
    /* Optional: Soften the red box */
    opacity: 0.1;
    /* Usually these backgrounds are subtle? User said "kotak polos warnanya merah sesuai tema" */
    /* If user meant SOLID red: opacity: 1. But that interacts with text contrast. 
       Usually hero visuals are on the right side. 
       If I make it solid red, it might be too heavy. 
       Re-reading: "buat jadi kotak polos aja warnanya merah sesui tema" -> "Just make a plain box red colored matching theme". 
       I will use opacity 10% or similar to avoid overpowering, unless user meant the IMAGE WRAPPER itself is the red shape. 
       Let's stick to a shape. */
    z-index: 0;
}

.hero__img--tangan {
    position: absolute;
    bottom: -7rem;
    /* Adjusted bleeding */
    left: 0;
    transform: translateX(5%);
    /* Moved further left */
    width: auto;
    max-width: none !important;
    /* Override global img max-width */
    height: 120%;
    /* Reduced size */
    object-fit: contain;
    z-index: 1;
}

/* Ensure floating cards are above the image */
#slide-mobile-jkn .float-card {
    z-index: 5;
}

/* Refined Mobile JKN Visuals */
#slide-mobile-jkn .hero__visual {
    position: relative;
    overflow: visible;
    /* Anchor absolute children and allow bleeding */
}

/* Layer 1: Background Layer (Maintains Grid Column Width/Height) */
#slide-mobile-jkn .visual-bg-layer {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: visible;
    /* Allow hand image to bleed outside */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slide-mobile-jkn .red-box-bg {
    width: 90%;
    height: 90%;
    background-color: var(--primary-color);
    border-radius: 40px;
    opacity: 0.1;
    /* Subtle tint */
}

/* Layer 2: Hand Image (Escapes to Hero Edges) */
/* Duplicate rule removed */

/* Layer 3: Floating Cards Overlay */
#slide-mobile-jkn .visual-floating-layer {
    position: absolute;
    /* Overlay the visual column */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

/* Re-enable pointer events for cards */
#slide-mobile-jkn .visual-floating-layer .float-card {
    pointer-events: auto;
}

/* Mobile Adjustment: Hide huge absolute image or stack it */
@media (max-width: 968px) {
    .hero__img--tangan {
        position: relative;
        /* Bringing it back to flow */
        bottom: auto;
        right: auto;
        max-height: 400px;
        margin-top: 2rem;
    }

    #slide-mobile-jkn .hero__visual {
        position: relative;
        /* Restore relative context for mobile stack */
    }
}

/* UPDATE: Merged Stacking Context for Cards-RedBox-Hand Sandwich */

#slide-mobile-jkn .visual-bg-layer {
    /* REMOVED z-index so children participate in global stack with siblings */
    z-index: auto !important;
    /* Maintain relative for children (RedBox/Cards) positioning */
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slide-mobile-jkn .red-box-bg {
    /* Z-1: Lowest Layer */
    z-index: 1;
    /* Other styles same... */
    position: absolute;
    /* Re-affirm absolute in wrapper if needed, or flex item */
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 40px;
    opacity: 0.1;
}

#slide-mobile-jkn .float-card {
    /* Z-10: Highest Layer (Above Hand) */
    z-index: 10 !important;
    position: absolute;
    /* Relative to .visual-bg-layer */
    height: auto;
    align-self: auto;
}

/* Duplicate rule removed */

/* Remove old layer ref if exists */
#slide-mobile-jkn .visual-floating-layer {
    display: none;
}

/* Scroll Adjustment for Beranda Anchor */
#beranda {
    scroll-margin-top: 75px;
    /* Matches .header.scrolled height to hide top bar */
}

/* Mobile Layout Adjustments - Schedule Section & Footer */
@media (max-width: 768px) {

    .schedule-content .section__tag,
    .schedule-content .section__title,
    .schedule-content .section__subtitle {
        text-align: center;
        display: block;
        /* Ensure full width for centering text */
        margin-left: auto;
        margin-right: auto;
    }

    .footer__brand,
    .footer__heading {
        text-align: center;
    }

    .footer__brand .logo {
        justify-content: center;
    }
}

/* Match user request: Paragraph centered, Socials centered on MOBILE only */
@media (max-width: 768px) {
    .footer__brand p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        /* Ensure it can span full width if constrained previously */
    }

    .footer__socials {
        justify-content: center;
        width: 100%;
    }
}

/* WhatsApp Appointment Badge */
.wa-appointment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #DCFCE7;
    /* Light Green */
    color: #166534;
    /* Dark Green Text */
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #BBF7D0;
}

.wa-appointment-badge:hover {
    background-color: #BBF7D0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Outline White Button for CTA */
.btn--outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    transition: all 0.3s ease;
}

.btn--outline-white:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer 4-Column Layout Adjustment */
.footer__container--simple {
    grid-template-columns: 1fr 0.8fr 0.8fr 1.2fr;
    /* Adjusted for 4 columns */
}

@media (max-width: 1024px) {
    .footer__container--simple {
        grid-template-columns: 1fr 1fr;
        /* 2x2 on Tablet */
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer__container--simple {
        grid-template-columns: 1fr;
        /* Stack on Mobile */
    }
}

/* Feedback Form Styles */
.footer__feedback {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.footer__feedback .footer__heading {
    color: var(--white);
    margin-bottom: 1rem;
}

.feedback-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feedback-input {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    resize: vertical;
    margin-bottom: 1rem;
    transition: all 0.2s;
    background-color: #F8FAFC;
    box-shadow: none;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.feedback-input::placeholder {
    color: #94A3B8;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Align Feedback Heading with other Footer Headings */
@media (min-width: 1024px) {
    .footer__feedback {
        margin-top: -2.5rem;
        /* Pull up so Heading aligns with others */
        padding-top: 2.5rem;
        /* compensated padding + extra */
        padding-bottom: 2rem;
        position: relative;
        z-index: 10;
        /* Ensure it floats above if needed */
    }
}

/* Accreditation Number Style */
.accreditation-number {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* Updated Accreditation Number Style */
.accreditation-number {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 600;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #CBD5E1;
    display: inline-block;
    line-height: 1.4;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .accreditation-number {
        line-height: 1.2;
        margin-left: 0.5rem;
        /* Reduced gap for mobile */
        padding-left: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Refine Accreditation Layout for Mobile */
@media (max-width: 768px) {

    /* 1. Reduce gap for badge area */
    .hero__trust--top {
        gap: 0.5rem;
        /* Tighter gap */
    }

    /* 2. Larger Logo on Mobile */
    .trust-logo {
        height: 42px;
        /* Revert to smaller height */
        width: auto;
        /* Allow natural width */
        max-width: none;
        /* Ensure no constraint */
    }

    /* 3. Shift Badge/Text */
    .trust-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        line-height: 1.2;
        /* Tighter line height for badge text */
        /* margin-left adjustment if needed, but flex gap handles it */
    }

    /* 4. Tighter Accreditation Number */
    .accreditation-number {
        margin-left: 0.25rem;
        /* Even closer */
        padding-left: 0.5rem;
        border-left-width: 1.5px;
        /* Thinner border */
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Enhanced Service Cards */
.service-card {
    padding: 0 !important;
    /* Override previous padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Indicate clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card:hover .service-card__bg {
    transform: scale(1.1);
    /* Zoom effect on hover */
    filter: brightness(0.6);
    /* Darken slightly more on hover */
}

.service-card__header {
    position: relative;
    height: 140px;
    /* Approx 1/3 of card height */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.service-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.5);
    /* Make icon pop */
    z-index: 1;
}

.service-card__icon {
    position: relative;
    z-index: 2;
    background: transparent !important;
    /* Reset any existing bg */
    margin: 0 !important;
    /* Reset margin */
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card__body {
    padding: 1.5rem;
    flex-grow: 1;
    background: var(--white);
    z-index: 2;
    position: relative;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s;
}

.lightbox__caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox__close:hover,
.lightbox__close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Mobile JKN Modal Styles */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10000;
    /* Highest z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s;
    position: relative;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* FIX 4K LAYOUT: Only for true 4K/ultra-wide screens */
@media (min-width: 2560px) {
    #slide-mobile-jkn .hero__visual {
        position: relative !important;
        /* Anchor image to the column/container */
    }

    .hero__img--tangan {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: -6rem !important;

        /* Scale to match reference: phone should fill ~85% of pink box */
        width: auto !important;
        height: 120% !important;
        max-width: none !important;
        max-height: none !important;
    }
}