:root {
    --primary-blue: #3264ff;
    --bg-light: #f8f9fa;
    --text-dark: #111;
    --text-muted: #555;
    --font-serif: 'Open sans', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    padding-bottom: 90px;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-serif);
}

/* --- Global Setup --- */
a {
    text-decoration: none;
}

.section-padding {
    padding: 24px 16px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Header Section (Blue Gradient) --- */
.main-header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
        linear-gradient(-45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.06) 30%,
            rgba(255, 255, 255, 0.06) 40%,
            transparent 40%,
            transparent 45%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0.06) 55%,
            transparent 55%,
            transparent 60%,
            rgba(255, 255, 255, 0.06) 60%,
            rgba(255, 255, 255, 0.06) 70%,
            transparent 70%),
        linear-gradient(135deg, #4f83fa 0%, var(--primary-blue) 100%);
    padding: 20px 16px 45px;
    color: white;
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.brand-title {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    flex-grow: 1;
    margin-left: 12px;
}

.currency-pill {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.currency-pill img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

/* Desktop Nav Link Placement */
.desktop-nav {
    display: none;
}

/* --- Search Bar --- */
.search-wrapper {
    position: sticky;
    top: 10px;
    z-index: 1000;
    padding: 0 16px;
    margin-top: -31px;
    /* Pulls search bar up into the blue header */
    margin-bottom: -26px;
    /* Pulls hero image up under the search bar */
}

.search-box {
    background: white;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Proper shadow match */
}

.search-box i {
    color: #888;
    font-size: 1.2rem;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: #888;
}

/* --- Hero Image Section --- */
.hero-banner {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1581093458791-9f3c3900df4b?auto=format&fit=crop&q=80') center/cover;
    padding: 54px 16px 40px;
    /* Accommodates the overlapping search bar */
    color: white;
}

.hero-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hero-banner p {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 260px;
    margin-bottom: 24px;
}

.btn-blue {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Hero Carousel Indicators --- */
.hero-carousel {
    position: relative;
}

.custom-hero-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    gap: 1px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.2);
}

.custom-hero-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 1;
    width: auto;
    height: 4px;
    padding: 0;
    margin: 0;
    text-indent: -999px;
    cursor: pointer;
    background-color: transparent !important;
    border: none;
    opacity: 1;
    transition: opacity .6s ease;
}

.custom-hero-indicators .active {
    background-color: var(--primary-blue) !important;
}


/* --- Treatments Gallery Grid --- */
.treatments-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.treatments-grid::-webkit-scrollbar {
    display: none;
}

.treatment-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    flex: 0 0 calc(31.333vw - 19px);
}

.treatment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Partner Hospitals Scroll --- */
.hospital-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.horizontal-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.hospital-card {
    background: white;
    border-radius: 12px;
    min-width: 130px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.hospital-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Tourism Packages Scroll --- */
.view-all-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.package-card {
    width: calc(100vw - 64px);
    max-width: 340px;
    height: 420px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.package-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-detail {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
}

.pkg-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pkg-badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.pkg-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.pkg-share i {
    color: white;
    font-size: 1.2rem;
}

.pkg-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.pkg-bottom .btn-blue {
    white-space: nowrap;
    flex-shrink: 0;
}

.pkg-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.pkg-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

/* --- Latest Posts Stack --- */
.post-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
}

.post-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-content {
    padding-top: 4px;
    padding-right: 24px;
}

.post-label {
    font-size: 0.7rem;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.post-share {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* --- Bottom Navigation (Mobile View) --- */
/* Bottom Nav Refinement */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* Improved dock-style shadow */
    filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, 0.03)) drop-shadow(0 -12px 30px rgba(0, 0, 0, 0.02));
    transition: transform 0.3s ease;
}

.bottom-nav {
    position: relative;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 10px 0 10px;
    height: 80px;

    /* Smoother, shallower precision calculated wide notch */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L140,0 C170,0 175,40 200,40 C225,40 230,0 260,0 L400,0 L400,80 L0,80 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L140,0 C170,0 175,40 200,40 C225,40 230,0 260,0 L400,0 L400,80 L0,80 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.notch-spacer {
    flex: 1;
    /* Increased width to match the wider SVG notch */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #000000;
    /* Dark as per reference */
    flex: 1;
    padding-bottom: 5px;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: #3266e3;
    /* Brand blue for active */
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--primary-blue);
}

.nav-fab-wrapper {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 85px;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-fab {
    width: 46px;
    height: 46px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), 0 0 0 6px white;
    color: white;
    font-size: 38px;
    border: none;
    animation: fab-pulse 2.5s infinite;
}

@keyframes fab-pulse {
    0% {
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), 0 0 0 6px white, 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), 0 0 0 6px white, 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), 0 0 0 6px white, 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    animation: none;
    /* Stop pulse on hover */
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5), 0 0 0 6px white;
}

/* --- Responsive Adjustments for Desktop --- */
@media (min-width: 768px) {
    .main-header {
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .search-wrapper {
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .hero-banner {
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .section-padding {
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .bottom-nav {
        padding-left: 15vw;
        padding-right: 15vw;
    }


    .treatment-card {
        flex: 0 0 calc((100% - 48px) / 5);
    }

    .package-card {
        width: 395px;
        min-width: 260px;
        max-width: none;
        height: 380px;
    }
}