/* ============================================
   Modern V2 Stylesheet - Milestones Children's Clinic
   ============================================ */

/* Variables - Using Logo Colors */
:root {
    --primary-color: #7b019a;
    --primary-light: #9d1ba1;
    --primary-dark: #5a0168;
    --secondary-color: #0a6795;
    --accent-color: #f46a33;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    transition: var(--transition);
    overflow: visible;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Show desktop menu on desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
}

.navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.2;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-clinic {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.2;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.4rem 0.5rem !important;
    margin: 0 0.1rem;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.btn-appointment {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    border-radius: 25px;
    padding: 0.4rem 1rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link.btn-appointment:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 1, 154, 0.4);
}

/* Dropdown hover-only behavior */
.nav-item.dropdown {
    position: relative;
}

/* Create invisible hover bridge between nav item and dropdown */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 999;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 280px;
    max-width: 500px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Enable pointer events when visible */
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    pointer-events: auto;
}

/* Uniform styling for all dropdown items */
.dropdown-menu > li {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
    width: 100%;
}

.dropdown-menu:not(.treatments-dropdown) .dropdown-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu:not(.treatments-dropdown) > li:last-child .dropdown-item {
    border-bottom: none;
}

/* Ensure grid layout is visible when dropdown is shown */
.nav-item.dropdown:hover > .treatments-dropdown,
.nav-item.dropdown .treatments-dropdown:hover {
    display: grid !important;
}

.dropdown-menu-lg-end {
    left: auto;
    right: 0;
}

.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:hover .dropdown-menu:hover,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Show regular dropdown menus */
.nav-item.dropdown:hover > .dropdown-menu:not(.treatments-dropdown),
.nav-item.dropdown .dropdown-menu:not(.treatments-dropdown):hover {
    display: block !important;
}

/* Keep treatments dropdown as grid when hovering */
.nav-item.dropdown:hover > .treatments-dropdown,
.nav-item.dropdown .treatments-dropdown:hover,
.treatments-dropdown:hover {
    display: grid !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.65rem 1.2rem;
    border-radius: 0;
    transition: var(--transition);
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 42px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Two-column layout for treatments dropdown */
.treatments-dropdown {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    padding: 0.5rem 0 !important;
    min-width: 500px;
    max-width: 560px;
    gap: 0;
    column-gap: 0;
}

.treatments-dropdown > li {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
    width: 100%;
    height: 100%;
}

.treatments-dropdown .dropdown-item {
    padding: 0.65rem 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    height: 100%;
    text-align: left;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Remove right border for right column items (even numbered) */
.treatments-dropdown > li:nth-child(2n) .dropdown-item {
    border-right: none;
}

/* Remove bottom border for last row items */
.treatments-dropdown > li:nth-child(15) .dropdown-item,
.treatments-dropdown > li:nth-child(16) .dropdown-item {
    border-bottom: none;
}

.treatments-dropdown .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive dropdown */
@media (max-width: 991px) {
    .treatments-dropdown {
        grid-template-columns: 1fr;
        min-width: 280px;
        max-width: 320px;
    }
    
    .treatments-dropdown .dropdown-item {
        border-right: none;
    }
    
    .treatments-dropdown > li:last-child .dropdown-item {
        border-bottom: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mobile-menu-close:hover {
    color: var(--secondary-color);
}

.mobile-menu-list {
    list-style: none;
    padding: 80px 0 20px 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background-color: rgba(123, 1, 154, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-arrow {
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.mobile-menu-has-submenu.active .mobile-menu-arrow {
    transform: rotate(90deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-has-submenu.active .mobile-submenu {
    max-height: 2000px;
}

.mobile-submenu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    display: block;
    padding: 0.85rem 1.5rem 0.85rem 2.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-submenu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    /* Ensure navbar collapse is scrollable and clickable */
    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
        padding: 0.5rem 0;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Enable Bootstrap dropdown behavior on mobile */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(0, 0, 0, 0.03);
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--text-dark);
        pointer-events: auto !important;
        cursor: pointer;
        display: block;
        text-decoration: none;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:active,
    .navbar-nav .dropdown-item:focus {
        background-color: var(--primary-color);
        color: var(--white);
        text-decoration: none;
    }
    
    .navbar-nav .dropdown-toggle {
        pointer-events: auto !important;
        cursor: pointer;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    /* Single column for treatments dropdown on mobile */
    .treatments-dropdown {
        grid-template-columns: 1fr !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: none !important;
    }
    
    .treatments-dropdown.show {
        display: block !important;
    }
    
    .treatments-dropdown .dropdown-item {
        border-right: none !important;
        pointer-events: auto !important;
    }
    
    /* Navbar styling on mobile */
    .navbar-nav {
        padding: 1rem 0;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        pointer-events: auto !important;
        cursor: pointer;
        display: block;
        color: var(--text-dark) !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link:focus {
        color: var(--primary-color) !important;
        text-decoration: none;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Remove hover bridge on mobile */
    .nav-item.dropdown::after {
        display: none;
    }
    
    /* Ensure all nav items are clickable */
    .nav-item {
        pointer-events: auto !important;
    }
    
    .nav-item a {
        pointer-events: auto !important;
    }
    
    /* Hide desktop menu on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Hamburger button styling */
    .navbar-toggler {
        border: 1px solid var(--primary-color);
        padding: 0.4rem 0.6rem;
        pointer-events: auto !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(123, 1, 154, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28123, 1, 154, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Remove desktop hover behavior on mobile */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: none !important;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background .carousel {
    height: 100%;
}

.hero-background .carousel-inner {
    height: 100%;
}

.hero-background .carousel-item {
    height: 100vh;
    width: 100% !important;
}

.hero-background .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(1.1) contrast(1.05);
}

/* Specific fix for building images - show top without cropping */
.hero-background .carousel-item img[src*="m2.jpg"],
.hero-background .carousel-item img[src*="m3.jpg"],
.hero-background .carousel-item img[src*="m4.jpg"] {
    object-position: center top !important;
}

/* Fix for nutrition/vegetable image - show left side without cropping */
.hero-background .carousel-item img[src*="nutri_slider"],
.hero-background .carousel-item img[src*="nutrition"] {
    object-position: left center !important;
}

/* Carousel controls removed - using auto-rotate only */
.hero-background .carousel-control-prev,
.hero-background .carousel-control-next {
    display: none !important;
}

.hero-background .carousel-indicators {
    z-index: 100;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero-background .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
    transition: var(--transition);
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
}

.hero-background .carousel-indicators button.active {
    background-color: var(--white);
    width: 12px;
    border-radius: 50%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 1, 154, 0.3) 0%, rgba(10, 103, 149, 0.35) 50%, rgba(123, 1, 154, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2.5rem 0;
    pointer-events: none;
    text-align: center;
}

.hero-content .container,
.hero-content .container-fluid {
    padding-right: 0;
    max-width: 100%;
    width: 100%;
}

.hero-content .row {
    margin-right: 0;
    margin-left: 0;
}

.hero-content .col-12 {
    padding-left: 15px;
    padding-right: 15px;
}

.hero-content .hero-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-right: 400px;
    box-sizing: border-box;
}

.hero-text {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.hero-content > * {
    pointer-events: auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 400px;
}

@media (min-width: 992px) {
    .hero-title {
        text-align: left;
    }
}

@media (max-width: 1400px) {
    .hero-title,
    .hero-subtitle {
        padding-right: 400px;
    }
    
    .hero-content .hero-text {
        padding-right: 400px;
    }
}

@media (max-width: 991px) {
    .hero-title,
    .hero-subtitle {
        padding-right: 15px;
    }
    
    .hero-content .hero-text {
        padding-right: 15px;
    }
}

.hero-title .text-primary {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.typing-cursor {
    color: #ffd700;
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    padding-right: 400px;
    max-width: 100%;
}

@media (min-width: 992px) {
    .hero-subtitle {
        text-align: left;
    }
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e55a25;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 106, 51, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Appointment Card */
.appointment-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.8s ease-out;
    margin: 0;
}

.sticky-appointment {
    position: fixed;
    top: 90px;
    right: 0;
    z-index: 10;
    width: 380px;
    max-width: 100%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 15px;
    margin: 0;
    padding-right: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sticky-appointment.shrunk {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    overflow: visible;
    min-height: 60px;
}

.sticky-appointment.shrunk .card-header,
.sticky-appointment.shrunk .appointment-form {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.sticky-appointment.shrunk .appointment-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
}

.sticky-appointment.shrunk .appointment-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.appointment-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
}

.appointment-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.appointment-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.appointment-toggle:active {
    transform: scale(0.95);
}

.sticky-appointment.shrunk .appointment-toggle {
    background: var(--accent-color);
}

.sticky-appointment.shrunk .appointment-toggle:hover {
    background: var(--primary-color);
}

@media (max-width: 991px) {
    .sticky-appointment {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 2rem 15px 0;
        border-radius: 15px;
        padding-right: 1.2rem;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.card-header h3 i {
    font-size: 0.9rem;
}

.card-header p {
    color: var(--text-light);
    font-size: 0.75rem;
}

.appointment-form .form-group {
    margin-bottom: 1rem;
}

.appointment-form label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

.appointment-form label i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.appointment-form .form-control {
    border: 1px solid #ddd !important;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    transition: var(--transition);
    width: 100%;
    background-color: var(--white);
    display: block;
}

.appointment-form .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(123, 1, 154, 0.1);
    outline: none;
}

.appointment-form textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form textarea {
    border: 1px solid #ddd !important;
}

.btn-block {
    width: 100%;
}

.appointment-form .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(123, 1, 154, 0.1), rgba(10, 103, 149, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.service-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* Treatments Section */
.treatments-section {
    background: var(--white);
}

.treatments-container {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.treatment-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(123, 1, 154, 0.3);
}

.tab-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: relative;
}

.tab-panel.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.treatment-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.treatment-image img {
    width: 100%;
    height: auto;
    display: block;
}

.treatment-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.treatment-info p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.opening-hours {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.opening-hours h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.opening-hours ul {
    list-style: none;
}

.opening-hours li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: var(--text-dark);
}

.opening-hours li:last-child {
    border-bottom: none;
}

.opening-hours li strong {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-item .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.video-item {
    position: relative;
}

.gallery-item.video-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0.8;
    transition: var(--transition);
}

.gallery-item.video-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 1, 154, 0.85), rgba(10, 103, 149, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
    z-index: 3;
    position: relative;
}

.gallery-item.video-item .gallery-overlay i {
    font-size: 2rem;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer > .container {
    position: relative;
}

.footer .row {
    align-items: flex-start;
}

.footer-widget {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-widget h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.opening-hours-box {
    background: var(--white);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e9ecef;
    gap: 1.5rem;
}

.opening-hours li:last-child {
    border-bottom: none;
}

.opening-hours li span:first-child {
    min-width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.opening-hours li div {
    text-align: right;
    flex: 1;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.opening-hours li .closed {
    color: var(--accent-color);
    font-weight: 600;
    text-align: right;
}

/* Hours Widget Styling */
.hours-widget {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hours-widget h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(123, 1, 154, 0.1);
}

.hours-widget h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.hours-list li:hover {
    background-color: rgba(123, 1, 154, 0.03);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    min-width: 110px;
    flex-shrink: 0;
}

.hours-list li div {
    text-align: right;
    flex: 1;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.hours-list li div strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hours-list li .closed {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
    display: block;
    width: 100%;
}

.consultation-note {
    background: rgba(123, 1, 154, 0.15);
    border-left: 3px solid var(--primary-color);
    padding: 0.6rem 0.75rem;
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
}

.opening-hours li .closed {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-info li i {
    margin-top: 0.25rem;
    min-width: 20px;
}

.contact-info li div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* Contact Page Styles */
.contact-info-box {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info-box p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.contact-info-box a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-box a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form .form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 1, 154, 0.1);
}

.maps-section {
    margin-top: 3rem;
}

.google-maps {
    width: 100%;
    height: 450px;
}

.google-maps iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Page Styles */
.gallery-page .content-wrapper img {
    width: 100%;
    height: auto;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.gallery-page .content-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inner Pages Styles */
.page-banner {
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    color: var(--white);
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Ensure all banner images are properly positioned - prevent top cropping */
.page-banner[style*="background-image"] {
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: scroll !important;
}

/* Alternative: Use contain for banners that need full image visibility without cropping */
.page-banner.show-full-image {
    background-size: contain !important;
    background-position: center center !important;
    background-color: rgba(123, 1, 154, 0.1);
}

/* Alternative: Use contain for banners that need full image visibility */
.page-banner.show-full-image {
    background-size: contain !important;
    background-color: rgba(123, 1, 154, 0.1);
}

/* UTI Banner - Show right side (baby) without cropping */
.page-banner.uti-banner,
.page-banner[style*="Urinary-Tract-Infections"] {
    background-position: right center !important;
    background-size: cover !important;
}

@media (min-width: 992px) {
    .page-banner.uti-banner,
    .page-banner[style*="Urinary-Tract-Infections"] {
        background-position: right center !important;
        min-height: 550px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-banner.uti-banner,
    .page-banner[style*="Urinary-Tract-Infections"] {
        background-position: right center !important;
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .page-banner.uti-banner,
    .page-banner[style*="Urinary-Tract-Infections"] {
        background-position: right center !important;
        min-height: 380px;
    }
}

/* Gallery Banner - Show right side (girl) without cropping */
/* Note: Image should be cropped to show right side properly */
.page-banner.gallery-banner,
.page-banner[style*="sliders-gallery"] {
    background-position: right center !important;
    background-size: cover !important;
    /* If image is properly cropped, can use center center */
    /* background-position: center center !important; */
}

@media (min-width: 992px) {
    .page-banner.gallery-banner,
    .page-banner[style*="sliders-gallery"] {
        background-position: right center !important;
        min-height: 550px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-banner.gallery-banner,
    .page-banner[style*="sliders-gallery"] {
        background-position: right center !important;
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .page-banner.gallery-banner,
    .page-banner[style*="sliders-gallery"] {
        background-position: right center !important;
        min-height: 380px;
    }
}

/* Contact Banner - Center the image properly */
.page-banner.contact-banner,
.page-banner[style*="contact-us"] {
    background-position: center center !important;
    background-size: cover !important;
}

@media (min-width: 992px) {
    .page-banner.contact-banner,
    .page-banner[style*="contact-us"] {
        background-position: center center !important;
        min-height: 550px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-banner.contact-banner,
    .page-banner[style*="contact-us"] {
        background-position: center center !important;
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .page-banner.contact-banner,
    .page-banner[style*="contact-us"] {
        background-position: center center !important;
        min-height: 380px;
    }
}

/* Counseling Banners - Unified styling for all counseling pages */
.counseling-banner {
    background-position: center center !important;
    background-size: cover !important;
}

/* Individual Counseling Banner Positioning */
.page-banner.newborn-care-banner,
.page-banner[style*="baby%20care%20councelling"],
.page-banner[style*="baby care councelling"] {
    background-position: center center !important;
}

.page-banner.breast-feeding-banner,
.page-banner[style*="breast-feeding"] {
    background-position: center center !important;
}

.page-banner.feeding-issues-banner,
.page-banner[style*="feeding%20issues"],
.page-banner[style*="feeding issues"] {
    background-position: center center !important;
}

.page-banner.picky-eaters-banner,
.page-banner[style*="picky%20eaters"],
.page-banner[style*="picky eaters"] {
    background-position: center center !important;
}

.page-banner.gerd-banner,
.page-banner[style*="gerd%20counseling"],
.page-banner[style*="gerd counseling"] {
    background-position: center center !important;
}

.page-banner.growth-monitoring-banner,
.page-banner[style*="development.png"] {
    background-position: center center !important;
}

/* Responsive Counseling Banners */
@media (min-width: 992px) {
    .counseling-banner {
        min-height: 550px;
        padding: 140px 0 90px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .counseling-banner {
        min-height: 480px;
        padding: 130px 0 80px;
    }
}

@media (max-width: 767px) {
    .counseling-banner {
        min-height: 380px;
        padding: 110px 0 70px;
    }
}

/* Better image positioning - show top of image to prevent cropping */
@media (min-width: 992px) {
    .page-banner {
        background-size: cover;
        background-position: center top;
        background-origin: border-box;
        /* Ensure minimum height to show more of image */
        min-height: 550px;
        padding: 140px 0 90px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .page-banner {
        background-size: cover;
        background-position: center top;
        background-origin: border-box;
        min-height: 480px;
        padding: 130px 0 80px;
    }
}

/* On smaller screens, ensure proper positioning */
@media (max-width: 767px) {
    .page-banner {
        background-size: cover;
        background-position: center top;
        background-origin: border-box;
        min-height: 380px;
        padding: 110px 0 70px;
    }
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 1, 154, 0.4) 0%, rgba(10, 103, 149, 0.45) 50%, rgba(123, 1, 154, 0.4) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-banner .row {
    align-items: center;
    justify-content: center;
    margin: 0;
}

.page-banner .col-12 {
    padding: 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    width: 100%;
}

.page-content {
    padding: 3rem 0;
    background: var(--light-bg);
}

.content-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-wrapper h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.content-wrapper h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--text-color);
}

.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.widget h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget h4 i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.appointment-form .form-group {
    margin-bottom: 1rem;
}

.appointment-form label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.appointment-form .form-control {
    border: 1px solid #ddd !important;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
    background-color: var(--white);
    display: block;
}

.appointment-form .form-control:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 1, 154, 0.1);
}

.appointment-form textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form textarea {
    border: 1px solid #ddd !important;
}

.appointment-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 1, 154, 0.1);
}

.appointment-form .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.hours-list li:hover {
    background-color: rgba(123, 1, 154, 0.03);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 110px;
    flex-shrink: 0;
}

.hours-list li div {
    font-size: 0.9rem;
    text-align: right;
    color: var(--text-color);
    line-height: 1.7;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.hours-list li .closed {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 700;
    text-align: right;
    display: block;
    width: 100%;
}

/* Testimonials Page */
.testimonials-carousel {
    margin-top: 2rem;
    position: relative;
    padding-bottom: 60px; /* Space for indicators below images */
}

.testimonials-carousel .carousel-inner {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.testimonial-item {
    padding: 2rem 1.5rem 3rem 1.5rem; /* Extra bottom padding for indicators */
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: var(--transition);
    z-index: 10;
}

.testimonials-carousel .carousel-control-prev {
    left: 20px;
}

.testimonials-carousel .carousel-control-next {
    right: 20px;
}

.testimonials-carousel .carousel-control-prev:hover,
.testimonials-carousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--secondary-color);
}

.testimonials-carousel .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.testimonials-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(123, 1, 154, 0.5);
    border: 2px solid rgba(123, 1, 154, 0.8);
    margin: 0;
    padding: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.testimonials-carousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .treatment-card {
        grid-template-columns: 1fr;
    }
    
    .treatment-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
    }
    
    .hero-background {
        top: 0;
    }
    
    .hero-background .carousel {
        height: auto;
        top: 80px;
    }
    
    .hero-background .carousel-item {
        height: 100%;
    }
    
    .hero-content {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        flex: 0 0 auto;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-background .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }
    
    .hero-background .carousel-indicators button {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .treatment-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .appointment-card {
        margin-top: 2rem;
    }
    
    .sticky-appointment {
        position: relative;
        top: auto;
    }
    
    /* Inner Pages Mobile */
    .page-banner {
        padding: 80px 0 50px;
        background-size: cover;
        background-position: center center !important;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-content {
        padding: 2rem 0;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .content-wrapper h4 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .content-wrapper h5 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .content-wrapper p,
    .content-wrapper ul,
    .content-wrapper ol,
    .content-wrapper li {
        font-size: 0.9rem;
    }
    
    .widget {
        padding: 1.25rem;
    }
    
    .widget h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .appointment-form label {
        font-size: 0.85rem;
    }
    
    .appointment-form .form-control {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .appointment-form .btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .hours-list li span,
    .hours-list li div {
        font-size: 0.8rem;
    }
    
    /* Testimonials Mobile */
    .testimonials-carousel {
        padding-bottom: 50px;
    }
    
    .testimonials-carousel .carousel-inner {
        min-height: 300px;
    }
    
    .testimonial-item {
        padding: 1.5rem 1rem 2.5rem 1rem;
        min-height: 300px;
    }
    
    .testimonials-carousel .carousel-indicators {
        bottom: 5px;
        gap: 6px;
    }
    
    .testimonials-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .testimonials-carousel .carousel-control-prev,
    .testimonials-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .testimonials-carousel .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 65vh;
        padding-top: 70px;
    }
    
    .hero-background .carousel {
        height: auto;
        top: 80px;
    }
    
    .hero-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 0.75rem;
        padding: 0 0.75rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 0.75rem;
        justify-content: center;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-background .carousel-indicators {
        bottom: 15px;
        gap: 5px;
    }
    
    .hero-background .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .treatments-container {
        padding: 2rem 1.5rem;
    }
}

