/* Modern Design Updates for Praxis am Hollenbach */

/* Smooth scrolling for anchor links */
html, body {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Button Styles - Consistent rounded corners for all buttons */
.btn {
    border-radius: 8px !important; /* Consistent rounded corners */
}

.btn-primary {
    border-radius: 8px !important;
}

.btn-success {
    border-radius: 8px !important;
}

.btn-secondary {
    border-radius: 8px !important;
}

.btn-danger {
    border-radius: 8px !important;
}

.btn-warning {
    border-radius: 8px !important;
}

.btn-info {
    border-radius: 8px !important;
}

.btn-sm {
    border-radius: 8px !important;
}

.btn-lg {
    border-radius: 8px !important;
}

.fresh-hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px !important; /* Rounded corners for hero buttons */
}

.fresh-hero-buttons .btn:last-child {
    margin-right: 0;
}

/* Fresh Hero Section - 65/35 Column Layout */
.fresh-hero-section {
    padding: 60px 0; /* Reduced from 100px 0 */
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* Reduced from 100vh */
}

/* Add animated red underline for "Praxis am Hollenbach" */
.praxis-underline {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.praxis-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: #dc3545; /* Red color */
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.praxis-underline.animate-underline::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Ensure the text stays on one line */
.praxis-underline {
    white-space: nowrap;
}

.hero-content-col {
    padding-right: 2rem;
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-doctor-image {
    width: 100%;
    height: auto;
    max-height: 650px; /* Increased max height */
    object-fit: contain;
    object-position: right center; /* Position to the right as per specifications */
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    border: none !important; /* Remove any border */
    outline: none !important; /* Remove any outline */
}

.fresh-hero-title {
    transition: transform 0.3s ease;
    object-fit: contain;
}

.fresh-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.fresh-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.fresh-hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px !important; /* Rounded corners for hero buttons */
}

.fresh-hero-buttons .btn:last-child {
    margin-right: 0;
}

/* Mobile-specific styles for hero section */
@media (max-width: 991.98px) {
    body.home-page .fresh-hero-section {
        padding: 50px 0; /* Reduced from 80px 0 */
        min-height: 70vh; /* Reduced from 80vh */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
        transform: none !important;
        zoom: 1 !important;
    }
    
    /* Even more specific override for dynamic styles */
    html body.home-page .fresh-hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
    }
    
    .hero-content-col {
        padding-right: 1rem;
        padding-left: 1rem;
        margin-bottom: 2rem;
    }
    
    .fresh-hero-buttons {
        justify-content: center;
    }
    
    .hero-image-col {
        display: flex; /* Show the image column on mobile */
    }
    
    .fresh-hero-title,
    .fresh-hero-subtitle,
    .fresh-hero-buttons {
        text-align: center;
    }
    
    .fresh-hero-title {
        font-size: 2.7rem;
    }
    
    .fresh-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile-specific styles for hero section - smaller screens */
@media (max-width: 767.98px) {
    body.home-page .fresh-hero-section {
        padding: 40px 0; /* Reduced from 60px 0 */
        min-height: 60vh; /* Reduced from 70vh */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
        transform: none !important;
        zoom: 1 !important;
    }
    
    /* Even more specific override for dynamic styles */
    html body.home-page .fresh-hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
    }
    
    .fresh-hero-title {
        font-size: 1.8rem !important; /* Reduced from 2.0rem */
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        width: 100% !important;
        line-height: 1.3 !important;
    }
    
    .fresh-hero-subtitle {
        text-align: center !important;
    }
    
    .fresh-hero-buttons {
        justify-content: center !important;
    }
    
    /* Force center alignment for the entire hero content column on mobile */
    .hero-content-col {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ensure all child elements are centered */
    .hero-content-col * {
        text-align: center !important;
    }
    
    /* Override Bootstrap's default left alignment */
    .hero-content-col h1.fresh-hero-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

@media (max-width: 575.98px) {
    .fresh-hero-title {
        font-size: 1.6rem !important;
    }
    
    .fresh-hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .fresh-hero-buttons .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Hero section adjustments */
.hero-section {
    background-position: center center !important;
    background-size: cover !important;
    min-height: 80vh !important; /* Reduced from 100vh */
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    padding-top: 80px !important; /* Reduced from 100px */
    margin-bottom: 0 !important;
    padding-bottom: 40px !important; /* Reduced from 60px */
    top: 0 !important;
    background-repeat: no-repeat !important;
    /* Create smooth gradient overlay: darker on left, gradually lighter toward right */
    background: linear-gradient(to right, 
        rgba(26, 54, 93, 0.9) 0%, 
        rgba(26, 54, 93, 0.85) 25%, 
        rgba(26, 54, 93, 0.7) 50%, 
        rgba(26, 54, 93, 0.5) 75%, 
        rgba(26, 54, 93, 0.3) 100%) !important;
}

/* Create gradient overlay effect - darker on left, gradually lighter toward right */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay: darker on left, gradually lighter toward right */
}

/* Hero content centering */
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Changed from center to flex-start to move heading up */
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 10 !important; /* Ensure hero content is above background */
    top: 5px !important; /* Reduced to shift heading up more */
}

.hero-title {
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    margin-bottom: 2rem !important;
}

/* Mobile background positioning */
@media (max-width: 768px) {
    body.home-page .hero-section {
        background-position: center center !important;
        background-size: cover !important;
        min-height: 70vh !important; /* Reduced from 85vh */
        background-repeat: no-repeat !important;
        margin-top: -100px !important; /* Reduced from -145px */
        padding-top: 80px !important; /* Reduced from 100px */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
        transform: none !important;
        zoom: 1 !important;
    }
    
    /* Even more specific override for dynamic styles */
    html body.home-page .hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        background-color: transparent !important;
    }
    
    /* Mobile gradient overlay */
    body .home-page .hero-section::before {
        background: transparent !important;
    }
}

/* Make header sticky - Fixed for mobile */
.site-header {
    background: rgba(248, 248, 248, 0.8) !important; /* Off-white background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    min-height: 80px !important; /* Ensure navbar has enough height for vertical centering */
    display: flex !important;
    align-items: center !important;
    margin-top: 0px !important; /* Remove margin to eliminate gap */
    position: sticky !important; /* Make header sticky */
    top: 0 !important; /* Stick to top */
    z-index: 1000 !important; /* Ensure header stays on top */
}

/* Mobile-specific header adjustments - Fixed sticky positioning */
@media (max-width: 991px) {
    .site-header {
        background: rgba(0, 0, 0, 0.9) !important; /* Slightly more opaque on mobile */
        height: auto !important; /* Allow flexible height */
        min-height: 60px !important; /* Minimum height for mobile */
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        width: 100% !important; /* Ensure full width */
    }
    
    .logo-img {
        height: 80px !important; /* Adjusted for mobile */
        max-height: 80px !important;
    }
    
    .navbar-brand .logo-img, .site-header .logo-img {
        height: 80px !important; /* Adjusted for mobile */
        max-height: 80px !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .collapse.navbar-collapse {
        background: rgba(0, 0, 0, 0.95) !important; /* Darker background for mobile menu */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    /* Ensure header remains sticky on scroll */
    .site-header.sticky {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
    }
}

/* Top Bar Styles */
.top-bar {
    background: #03989e !important; /* Primary color as required */
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    box-shadow: 0 2px 10px rgba(3, 152, 158, 0.3) !important; /* Shiny effect with primary color */
    padding: 8px 0 !important;
    position: relative !important; /* Ensure proper positioning */
    z-index: 1001 !important; /* Ensure it's above other elements */
    margin-top: 0 !important; /* Remove any top margin */
    margin-bottom: 0 !important; /* Remove any bottom margin */
}

/* Top Bar Digital Clock */
.top-bar-digital-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
    color: white;
    font-family: 'Courier New', monospace;
    min-width: 120px; /* Ensure minimum width for content */
    z-index: 10; /* Ensure it's above other elements */
    position: relative; /* Ensure proper positioning */
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent background for visibility */
    padding: 5px 10px; /* Add some padding */
    border-radius: 5px; /* Rounded corners */
}

.digital-time {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap; /* Prevent text wrapping */
}

.digital-date {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Ensure top bar right section has proper layout */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    position: relative;
}

/* Top Bar Contact Labels */
.top-bar-contact .contact-label {
    font-weight: 500;
    margin-right: 5px;
    color: #ffffff;
}

/* Services Section - Match Design Reference */
.services-section {
    background: #f8f9fa !important;
    padding: 80px 0 !important;
}

/* Service Detail Card Highlight */
.service-detail-card.highlight-service {
    border-left: 4px solid #03989e;
    background-color: rgba(3, 152, 158, 0.05);
    transition: all 0.3s ease;
}

.services-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.services-section .section-subtitle {
    color: #6c757d !important;
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
}

.service-card {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border: none !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
}

.service-card:hover {
    transform: translateY(-5px) !important;
}

.service-card .card-body {
    padding: 2rem !important;
    text-align: center !important;
}

.service-card .service-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #03989e, #027a80) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem auto !important;
}

.service-card .service-icon i {
    color: white !important;
    font-size: 2rem !important;
}

.service-card .card-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.service-card .card-text {
    color: #6c757d !important;
    margin-bottom: 1.5rem !important;
}

.service-card .btn {
    background: #03989e !important;
    border: none !important;
    border-radius: 8px !important; /* Rounded corners for service card buttons */
    padding: 10px 30px !important;
    font-weight: 500 !important;
}

/* Doctor Specializations Styling */
.doctor-specializations {
    font-weight: normal;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: left;
}

.specialization-item {
    margin-bottom: 0.2rem;
}

.specialization-item:last-child {
    margin-bottom: 0;
}

.specializations-list {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin: 0.5rem 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: left;
    width: 100%;
}

.specializations-list li {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #03989e; /* Primary color */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    text-align: left;
    display: list-item;
}

.specializations-list li:last-child {
    margin-bottom: 0;
}

/* Team Section Adjustments */
.team-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.team-section .section-subtitle {
    color: #03989e !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
}

/* Ensure doctor section on home page has proper height */
.section.team-section {
    padding: 80px 0 !important;
}

.doctor-modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(3, 152, 158, 0.1);
    height: 100%; /* Ensure full height */
    min-height: 500px; /* Ensure minimum height */
}

.doctor-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Ensure border is visible on both home page and team page */
.team-member-card {
    background: white !important;
    border: 2px solid #03989e !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    margin-bottom: 30px !important;
}

.team-member-card:hover {
    transform: translateY(-5px) !important;
}

.team-member-card .member-image-wrapper {
    height: 300px !important;
    overflow: hidden !important;
}

.team-member-card .member-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.team-member-card .member-info {
    padding: 1.5rem !important;
    text-align: center !important;
}

.team-member-card .member-name {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
}

.team-member-card .member-title {
    color: #03989e !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
}

.team-member-card .btn {
    border-radius: 8px !important; /* Rounded corners for team card buttons */
}

/* Testimonials Section - Match Design Reference */
.testimonials-section {
    background: #f8f9fa !important;
    padding: 80px 0 !important;
}

.testimonials-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.testimonials-section .section-subtitle {
    color: #03989e !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
}

.testimonial-card {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border: none !important;
    padding: 2rem !important;
    height: 100% !important;
}

.testimonial-card .quote-icon i {
    color: #03989e !important;
    font-size: 2rem !important;
}

.testimonial-card .testimonial-text {
    font-style: italic !important;
    color: #333 !important;
    line-height: 1.6 !important;
    margin: 1.5rem 0 !important;
}

.testimonial-card .testimonial-author h5 {
    color: #1a365d !important;
    font-weight: bold !important;
}

.testimonial-card .btn {
    border-radius: 8px !important; /* Rounded corners for testimonial card buttons */
}

/* About Section Improvements */
.about-section {
    background-color: #f8f9fa !important; /* Light grey */
    margin-top: 40px !important; /* Add gap between hero and about sections */
    padding: 80px 0 !important;
}

.about-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 2rem !important;
}

.about-section .about-img {
    border-radius: 15px !important;
    object-fit: contain; /* Show full image without cutting */
    max-width: 100%; /* Ensure image doesn't exceed container width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure proper display */
    margin: 0 auto; /* Center the image */
}

.about-section .feature-item {
    margin-bottom: 1rem !important;
}

.about-section .feature-item i {
    color: #4a90e2 !important;
}

.why-us-section {
    background-color: #ffffff !important; /* White background */
}

.why-us-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

/* Appointment Section */
.appointment-form-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    padding: 80px 0 !important;
}

.appointment-form-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 2rem !important;
}

.appointment-form-section .btn-cta-primary {
    background: #4a90e2 !important;
    border: none !important;
    border-radius: 8px !important; /* Rounded corners for appointment CTA button */
    padding: 15px 40px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

/* Form elements */
.form-control {
    border-radius: 8px !important; /* Rounded corners for form controls */
}

.form-select {
    border-radius: 8px !important; /* Rounded corners for select elements */
}

.btn {
    border-radius: 8px !important; /* Consistent rounded corners for all buttons */
}


/* General Improvements */
.animate-zoom-in, .animate-slide-in-up, .animate-slide-in-left, .animate-slide-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-zoom-in.animate, .animate-slide-in-up.animate, .animate-slide-in-left.animate, .animate-slide-in-right.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Glassy transparent header - Sticky */
.site-header {
    background: rgba(248, 248, 248, 0.8) !important; /* Off-white background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    min-height: 80px !important; /* Ensure navbar has enough height for vertical centering */
    display: flex !important;
    align-items: center !important;
    margin-top: 0 !important; /* Remove margin to eliminate gap */
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Hero section adjustments */
.hero-section {
    background-position: center center !important;
    background-size: cover !important;
    min-height: 80vh !important; /* Reduced from 100vh */
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
    padding-top: 80px !important; /* Reduced from 100px */
    margin-bottom: 0 !important;
    padding-bottom: 40px !important; /* Reduced from 60px */
    top: 0 !important;
}

/* Hero content centering */
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 10 !important; /* Ensure hero content is above background */
}

.hero-title {
    margin-bottom: 1rem !important;
}

/* Specific styles for about page hero title to prevent affecting home page */
.page-hero .hero-content .hero-title {
    /* Add any specific styles for about page hero title here */
    /* This ensures changes to about page don't affect home page */
}

/* Ensure home page hero title is not affected by other page styles */
.home-page .fresh-hero-title {
    /* Home page specific styles */
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Override the conflicting rule from style_clean.css for other pages */
body:not(.home-page) .hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Desktop-specific left alignment for home page hero title */
@media (min-width: 992px) {
    body.home-page .fresh-hero-title {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ensure other pages hero title is not affected by home page styles */
.page-hero .hero-title {
    /* Other pages specific styles */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Flip Why Us section image horizontally on home page - permanently without hover effect */
.why-us-image-wrapper {
    overflow: hidden;
    position: relative;
}

.why-us-image {
    transform: scaleX(-1) !important; /* Permanent flip */
    width: 100%;
    height: auto;
    display: block;
}

/* Remove any hover effects that might interfere with the flip */
section.why-us-section .why-us-image:hover {
    transform: scaleX(-1) !important;
    box-shadow: 0 10px 25px rgba(3, 152, 158, 0.2) !important;
}

/* Ensure Why Us image stays flipped on hover */
.why-us-image-wrapper:hover .why-us-image {
    transform: scaleX(-1) !important;
}

/* Ensure medical assistant cards on home page match team page */
.home-page .team-member-card {
    background: white !important;
    border: 2px solid #03989e !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    margin-bottom: 30px !important;
}

.home-page .team-member-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(3, 152, 158, 0.3) !important;
    z-index: 2 !important;
    position: relative !important;
}

.home-page .team-member-card:hover::before {
    content: '' !important;
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    right: -5px !important;
    bottom: -5px !important;
    background: rgba(3, 152, 158, 0.1) !important;
    border-radius: inherit !important;
    z-index: -1 !important;
    filter: blur(10px) !important;
}

.home-page .team-member-card .member-image-wrapper {
    height: 300px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.home-page .team-member-card .member-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Changed from cover to contain to prevent cropping */
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: transform 0.5s ease !important;
    transform: scale(1) !important; /* Prevent zooming to avoid head cropping */
}

.home-page .team-member-card:hover .member-image {
    transform: scale(1) !important; /* Prevent zooming on hover */
}

.home-page .team-member-card .member-info {
    padding: 25px 20px !important;
    text-align: center !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.home-page .team-member-card .member-name {
    color: #1a365d !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    margin: 0 0 10px 0 !important;
}

.home-page .team-member-card .member-title {
    color: #03989e !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin: 0 0 15px 0 !important;
}

/* Mobile-specific fixes for assistant cards on home page */
@media (max-width: 768px) {
    .home-page .team-member-card .member-image-wrapper {
        height: 250px !important; /* Reduced height for mobile */
        overflow: hidden !important;
    }
    
    .home-page .team-member-card .member-image {
        object-fit: contain !important; /* Ensure full image is visible */
        object-position: center !important;
        transform: scale(1) !important; /* Prevent zooming */
    }
    
    .home-page .team-member-card:hover .member-image {
        transform: scale(1) !important; /* Prevent zooming on hover */
    }
}

/* Ensure border is visible on both home page and team page */
.team-member-card {
    background: white !important;
    border: 2px solid #03989e !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    margin-bottom: 30px !important;
}

/* Fix zoom issue on team page assistant cards */
.team-member-card .member-image-wrapper {
    height: 300px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.team-member-card .member-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Changed from cover to contain to prevent cropping */
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: transform 0.5s ease !important;
    transform: scale(1) !important; /* Prevent zooming to avoid head cropping */
}

.team-member-card:hover .member-image {
    transform: scale(1) !important; /* Prevent zooming on hover */
}

/* Override the original zoom effect from style_clean.css */
.team-member-card:hover .member-image {
    transform: scale(1) !important;
}

/* Override border: none from style_clean.css */
.team-member-card,
.home-page .team-member-card,
.team-page .team-member-card {
    border: 2px solid #03989e !important;
}

/* Modern Assistant Card Design */
.assistant-modern-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid #03989e !important;
    height: 100%;
    margin-bottom: 30px;
    padding: 0; /* Ensure no internal padding */
}

.assistant-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Assistant Image - Fix zooming issue */
.assistant-image-wrapper {
    height: 260px; /* Increased from 220px to 260px */
    overflow: hidden; /* Changed back to hidden but with proper sizing */
    position: relative;
    background: transparent; /* Ensure no background */
    width: 100%;
    margin: 0;
    padding: 0;
}

.assistant-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image */
    object-position: center;
    transition: transform 0.4s ease;
    max-height: 100%;
    max-width: 100%;
    display: block; /* Ensure proper display */
    margin: 0 auto; /* Center the image */
    transform: scale(1); /* Prevent zooming to avoid head cropping */
}

.assistant-modern-card:hover .assistant-image {
    transform: scale(1); /* Prevent zooming to avoid head cropping */
}

.assistant-content {
    padding: 25px;
    text-align: center;
}

.assistant-name {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.assistant-position {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #03989e;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.assistant-position i {
    font-size: 0.9rem;
}

.qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.qualifications-list li:last-child {
    margin-bottom: 0;
}

.qualifications-list li i {
    color: #03989e;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Ensure proper spacing for assistant cards in the grid */
.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile-specific fixes for assistant cards - Match team-member-card behavior */
@media (max-width: 767.98px) {
    .assistant-modern-card {
        background: white !important;
        border: 2px solid #03989e !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        transition: transform 0.3s ease !important;
        height: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .assistant-modern-card .assistant-image-wrapper {
        height: 220px !important;
        overflow: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .assistant-modern-card .assistant-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Changed from cover to contain to prevent cropping */
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        transition: transform 0.5s ease !important;
        transform: scale(1) !important; /* Prevent zooming to avoid head cropping */
    }
    
    .assistant-modern-card:hover .assistant-image {
        transform: scale(1) !important; /* Prevent zooming on hover */
    }
    
    .assistant-content {
        padding: 20px !important;
        text-align: center !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure proper column padding on mobile */
    .row > [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablet-specific fixes */
@media (min-width: 768px) and (max-width: 991.98px) {
    .assistant-modern-card .assistant-image-wrapper {
        height: 240px !important;
    }
    
    .assistant-modern-card .assistant-image {
        object-fit: contain !important;
    }
}

/* Ensure services and contact hero sections are visible */
.hero-section.services-hero,
.hero-section.contact-hero {
    display: flex !important;
    visibility: visible !important;
}

/* Ensure services and contact hero sections are visible */
.hero-section.services-hero,
.hero-section.contact-hero {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 40vh !important;
    opacity: 1 !important;
    align-items: center !important;
    padding: 60px 0 !important;
    margin-top: 0 !important;
}

/* Ensure hero subtitles are visible on services and contact pages */
body.services-page .hero-subtitle,
body.contact-page .hero-subtitle,
body.team-page .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override the rule that hides hero subtitles on non-home pages */
body.services-page .hero-section .hero-subtitle,
body.contact-page .hero-section .hero-subtitle,
body.team-page .hero-section .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure background images are visible for services and contact hero sections */
.hero-section.services-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.hero-section.contact-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.hero-section.team-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Ensure hero content is visible */
.hero-section .hero-content {
    z-index: 10 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-section .hero-title {
    z-index: 11 !important;
    position: relative !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.hero-section .hero-subtitle {
    z-index: 11 !important;
    position: relative !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.hero-subtitle {
    margin-bottom: 2rem !important;
}

/* Mobile background positioning */
@media (max-width: 768px) {
    .hero-section {
        background-position: center 35% !important;
        /* Remove background overlay for mobile - use only image without color overlay */
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(3, 152, 158, 0.9) 100%), 
                    url('../images/hero1.jpg') no-repeat center center !important;
        min-height: 70vh !important; /* Reduced from 85vh */
        background-size: cover !important;
        background-repeat: no-repeat !important;
        margin-top: -100px !important; /* Reduced from -145px */
        padding-top: 80px !important; /* Reduced from 100px */
    }
}

/* Ensure hero section has proper positioning context */
.hero-section .container {
    position: relative !important;
    max-width: 100% !important;
}

/* Specific fix for appointment page hero section */
.hero-section.page-hero.appointment-page {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50vh !important;
    padding: 60px 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    background-position: center center !important;
    background-size: cover !important;
}

.hero-section.page-hero.appointment-page .hero-content {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 20px !important;
}

.hero-section.page-hero.appointment-page .hero-title {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.hero-section.page-hero.appointment-page .hero-subtitle {
    font-size: 1.25rem !important;
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4 !important;
}

/* Fix for services and contact page hero sections */
.hero-section.page-hero {
    display: flex !important;
    align-items: center !important;
    min-height: 40vh !important;
    padding: 60px 0 !important;
    margin-top: 0 !important;
    position: relative !important;
}

.hero-section.page-hero .hero-content {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 20px !important;
}

.hero-section.page-hero .hero-title {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.hero-section.page-hero .hero-subtitle {
    font-size: 1.25rem !important;
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4 !important;
}

/* Hide hero section image on mobile */
@media (max-width: 767.98px) {
    .hero-section .hero-content img {
        display: none !important;
    }
}

/* Hero appointment booking form */
.hero-appointment-form {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important; /* Glassy transparent black background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 0 !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-width: 400px !important;
    z-index: 1000 !important; /* Original z-index */
    color: white !important;
    max-height: 80vh !important; /* Limit height to make form more compact */
    overflow-y: auto !important; /* Add scrollbar if content overflows */
}

/* Ensure form doesn't extend beyond hero section */
.hero-section .hero-appointment-form {
    max-height: calc(100vh - 100px) !important;
}

/* Ensure form doesn't go outside viewport on smaller screens */
@media (max-width: 576px) {
    .hero-appointment-form {
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        width: calc(100% - 20px) !important;
    }
}

/* Form header with logo */
.hero-appointment-form .form-header {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 15px 15px 0 0 !important;
}

.hero-appointment-form .form-logo-img {
    height: 40px !important;
    width: auto !important;
    margin-right: 15px !important;
    object-fit: contain !important;
}

.hero-appointment-form .form-title {
    font-weight: bold !important;
    color: white !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
}

/* Adjust logo size on mobile */
@media (max-width: 767.98px) {
    .hero-appointment-form .form-logo-img {
        height: 30px !important;
        margin-right: 10px !important;
    }
    
    .hero-appointment-form .form-title {
        font-size: 1.1rem !important;
    }
}

/* Mobile form header */
.mobile-form-header h3 {
    color: white !important;
    margin: 0 !important;
    padding: 10px !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Center mobile form content */
@media (max-width: 767.98px) {
    .hero-appointment-form .form-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-appointment-form .form-content .row {
        width: 100% !important;
    }
    
    /* Mobile form header adjustments */
    .mobile-form-header {
        width: 100% !important;
    }
    
    /* Adjust form position on mobile */
    .hero-appointment-form {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        margin: 20px auto !important;
        border-radius: 10px !important;
    }
    
    .hero-appointment-form .form-header {
        padding: 10px !important;
    }
    
    .hero-appointment-form .form-logo-img {
        height: 30px !important;
        margin-right: 10px !important;
    }
    
    .hero-appointment-form .form-title {
        font-size: 1rem !important;
    }
}

.form-content {
    padding: 15px !important; /* Reduced padding to make form more compact */
}

.hero-appointment-form .form-label {
    color: white !important;
}

.hero-appointment-form .form-control,
.hero-appointment-form .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 4px 8px !important; /* Reduced padding for more compact fields */
    font-size: 0.9rem !important; /* Slightly smaller font */
}

.hero-appointment-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-appointment-form .form-control:focus,
.hero-appointment-form .form-select:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.hero-appointment-form .form-label {
    margin-bottom: 2px !important; /* Reduced margin for more compact layout */
    font-size: 0.85rem !important; /* Slightly smaller labels */
}

/* Mobile form specific styles */
@media (max-width: 767.98px) {
    .hero-appointment-form .form-control {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        padding: 6px 10px !important;
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .hero-appointment-form .btn-primary {
        padding: 8px 16px !important;
        font-size: 1rem !important;
        margin-top: 10px !important;
    }
    
    /* Ensure mobile form elements are properly spaced */
    .hero-appointment-form .col-12 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

.hero-appointment-form .btn {
    white-space: nowrap !important;
}

/* Hero CTA buttons */
.hero-features {
    display: flex !important;
    gap: 8px !important; /* Reduced gap */
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.hero-feature {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important; /* Reduced gap */
    margin: 3px !important; /* Reduced margin */
    padding: 8px 12px !important; /* Reduced padding for smaller buttons */
}

.hero-feature.btn-sm {
    padding: 6px 10px !important; /* Even smaller padding for btn-sm */
    font-size: 0.85rem !important; /* Smaller font size */
}

/* Center navbar content */
.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    padding: 10px 0 !important; /* Reduce padding to shift items up */
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
}

.navbar-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1 !important;
}

/* Vertically center navbar items */
.navbar-nav {
    align-items: center !important;
    margin: 0 !important;
    gap: 15px !important; /* Add gap between navbar items */
}

.navbar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
}

/* Add gap after contact item */
.navbar-nav.mx-auto .nav-item:last-child {
    margin-right: 20px !important; /* Add gap after contact item */
}

/* Adjust CTA button alignment */
.navbar-nav.ms-auto {
    align-items: center !important;
    gap: 10px !important; /* Add gap between language switcher and CTA button */
}

/* Navigation bar items */
.navbar-nav .nav-link {
    color: #ffffff !important; /* White text for contrast on dark background */
    text-shadow: none !important; /* Remove any text shadows */
    transition: color 0.3s ease !important; /* Smooth color transition */
    padding: 10px 15px !important; /* Add padding for better click area */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #03989e !important; /* Primary color on hover/focus */
    text-shadow: none !important; /* Ensure no text shadow on hover */
}

.navbar-nav .nav-link.active {
    color: #03989e !important; /* Primary color for active items */
    font-weight: 500 !important;
    text-shadow: none !important; /* Ensure no text shadow on active */
}

/* Logo styling */
.logo-img, .footer-logo, .footer-logo.img-fluid {
    max-height: 180px !important;
    height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* Specific header logo styling */
.navbar-brand .logo-img, .site-header .logo-img {
    height: 120px !important; /* Further increased size */
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* Header and Footer styling */
.site-header {
    background-color: #f5f5f5 !important; /* Light grey background to match footer */
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important; /* Ensure header stays on top */
    width: 100% !important; /* Ensure full width */
    transform: translateZ(0); /* Fix for smooth scrolling */
    -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
    min-height: 80px !important; /* Ensure minimum height */
}

.site-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.navbar {
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* Desktop body padding to account for fixed header */
body {
    padding-top: 0px !important; /* Remove padding to eliminate gap */
}

body.home-page {
    padding-top: 0px !important; /* Remove padding to eliminate gap */
}

/* More specific body padding override */
html body {
    padding-top: 0px !important;
}

html body.home-page {
    padding-top: 0px !important;
}

/* Desktop navbar item spacing */
@media (min-width: 992px) {
    .navbar-nav {
        gap: 20px !important; /* Increase gap on desktop */
    }
    
    .navbar-nav.ms-auto {
        gap: 15px !important; /* Increase gap between language switcher and CTA */
    }
    
    .navbar-nav .nav-link {
        padding: 12px 18px !important; /* Increase padding on desktop */
    }
    
    .btn-accent-header {
        padding: 10px 25px !important; /* Increase padding for CTA button on desktop */
        border-radius: 30px !important; /* Make button more rounded */
    }
    
    /* Add gap after contact item */
    .navbar-nav.mx-auto .nav-item:last-child {
        margin-right: 30px !important; /* Add gap after contact item */
    }
}

/* Mobile navbar styling */
@media (max-width: 991px) {
    .top-bar {
        display: none !important; /* Hide top bar on mobile */
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Fixed header positioning on mobile - Removed negative margin that was causing header to move up */
    .site-header {
        margin-top: 0 !important; /* Remove negative margin that was causing header to move up */
        background: rgba(0, 0, 0, 0.95) !important; /* Dark background without glass effect */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        position: sticky !important; /* Keep sticky behavior */
        top: 0 !important;
        z-index: 1000 !important;
        margin-bottom: 0 !important;
        min-height: 60px !important;
        width: 100% !important; /* Ensure full width */
        transform: translateZ(0); /* Fix for smooth scrolling */
        -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
        height: auto !important; /* Allow flexible height */
        max-height: none !important; /* Remove max height restrictions */
        overflow: visible !important; /* Ensure content is not cut off */
    }
    
    /* Ensure header maintains full visibility */
    .site-header,
    .site-header * {
        will-change: transform; /* Optimize for smooth scrolling */
    }
    
    /* Ensure all header content stays visible */
    .site-header .navbar {
        flex-wrap: nowrap !important; /* Prevent wrapping */
        align-items: center !important; /* Keep items centered */
    }
    
    .site-header .navbar-brand {
        flex-shrink: 0 !important; /* Prevent logo from shrinking */
        margin-right: auto !important; /* Push to left */
    }
    
    .site-header .navbar-toggler {
        flex-shrink: 0 !important; /* Prevent hamburger from shrinking */
        margin-left: auto !important; /* Push to right */
    }
    
    /* Ensure header stays fully visible when scrolling */
    .site-header.sticky {
        position: sticky !important;
        top: 0 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Override default body padding */
    body {
        padding-top: 0 !important;
    }
    
    body.home-page {
        padding-top: 0 !important;
    }
    
    /* Ensure no margin or padding on first child elements */
    .site-header:first-child,
    .top-bar:first-child,
    body > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any default browser margins */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .site-header .container {
        position: relative !important;
        margin-top: 0 !important;
    }

    .no-top-margin {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .doctor-name.no-top-margin {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important; /* Ensure full width */
    }
    
    /* Ensure navbar brand and toggler are properly positioned */
    .navbar-brand {
        z-index: 1001 !important; /* Ensure logo stays on top */
        position: relative !important;
    }
    
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        z-index: 1001 !important; /* Ensure hamburger stays on top */
        position: relative !important;
    }
    
    /* Ensure header content doesn't get cut off when scrolling */
    .site-header.scrolled {
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }
    
    .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-collapse {
        background: rgba(40, 40, 40, 0.95) !important; /* Dark background for menu */
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important; /* Position below the navbar */
        z-index: 1000 !important;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .nav-link.active {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-link {
        color: #ffffff !important;
        padding: 10px 15px !important;
        border-radius: 4px !important;
        margin: 5px 0 !important;
    }
    
    .nav-link:hover, .nav-link:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .btn-accent-header {
        background: #4a90e2 !important;
        border: none !important;
        color: white !important;
        margin: 10px 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 20px !important; /* Add padding for better appearance */
    }
    
    .language-switcher .nav-link {
        color: #ffffff !important;
        padding: 8px 12px !important;
    }
}

/* Tablet and mobile responsive fixes */
@media (max-width: 768px) {
    .site-header {
        background: rgba(0, 0, 0, 0.95) !important; /* Solid dark background */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        margin-top: 0 !important; /* Remove negative margin */
    }
}

@media (max-width: 480px) {
    .site-header {
        background: rgba(0, 0, 0, 0.95) !important; /* Solid dark background */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        margin-top: 0 !important; /* Remove negative margin */
    }
}

/* Additional responsive fixes for all mobile devices */
@media screen and (max-width: 991px) {
}

/* Header and Footer styling */
.site-header {
    background-color: #f5f5f5 !important; /* Light grey background to match footer */
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important; /* Ensure header stays on top */
    width: 100% !important; /* Ensure full width */
    transform: translateZ(0); /* Fix for smooth scrolling */
    -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
    min-height: 80px !important; /* Ensure minimum height */
}

/* Ensure header stays fully visible */
.site-header,
.site-header * {
    will-change: transform; /* Optimize for smooth scrolling */
}

/* Mobile-specific header adjustments - Fixed sticky behavior */
@media (max-width: 991px) {
    .top-bar {
        display: none !important; /* Hide top bar on mobile */
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Fixed header positioning on mobile */
    .site-header {
        margin-top: 0 !important; /* Remove negative margin */
        background: rgba(0, 0, 0, 0.95) !important; /* Dark background without glass effect */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        position: sticky !important; /* Keep sticky behavior */
        top: 0 !important;
        z-index: 1000 !important;
        margin-bottom: 0 !important;
        min-height: 60px !important;
        width: 100% !important; /* Ensure full width */
        transform: translateZ(0); /* Fix for smooth scrolling */
        -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
    }
    
    /* Ensure header stays fully visible when scrolling */
    .site-header.sticky {
        position: sticky !important;
        top: 0 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Override default body padding */
    body {
        padding-top: 0 !important;
    }
    
    body.home-page {
        padding-top: 0 !important;
    }
    
    /* Ensure no margin or padding on first child elements */
    .site-header:first-child,
    .top-bar:first-child,
    body > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any default browser margins */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .site-header .container {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important; /* Ensure full width */
    }
    
    /* Ensure navbar brand and toggler are properly positioned */
    .navbar-brand {
        z-index: 1001 !important; /* Ensure logo stays on top */
        position: relative !important;
    }
    
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        z-index: 1001 !important; /* Ensure hamburger stays on top */
        position: relative !important;
    }
    
    /* Ensure header content doesn't get cut off when scrolling */
    .site-header.scrolled {
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }
    
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-collapse {
        background: rgba(40, 40, 40, 0.95) !important; /* Dark background for menu */
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important; /* Position below the navbar */
        z-index: 1000 !important;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .nav-link.active {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-link {
        color: #ffffff !important;
        padding: 10px 15px !important;
        border-radius: 4px !important;
        margin: 5px 0 !important;
    }
    
    .nav-link:hover, .nav-link:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .btn-accent-header {
        background: #4a90e2 !important;
        border: none !important;
        color: white !important;
        margin: 10px 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 20px !important; /* Add padding for better appearance */
    }
    
    .language-switcher .nav-link {
        color: #ffffff !important;
        padding: 8px 12px !important;
    }
    
    /* Ensure header maintains full visibility */
    .site-header {
        min-height: 60px !important; /* Minimum height for mobile */
        height: auto !important; /* Allow flexible height */
        max-height: none !important; /* Remove max height restrictions */
        overflow: visible !important; /* Ensure content is not cut off */
        background: rgba(0, 0, 0, 0.95) !important; /* Dark background without glass effect */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        position: sticky !important; /* Keep sticky behavior */
        top: 0 !important;
        z-index: 1000 !important;
        margin-bottom: 0 !important;
        width: 100% !important; /* Ensure full width */
        transform: translateZ(0); /* Fix for smooth scrolling */
        -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
        margin-top: 0 !important; /* Remove negative margin that was causing header to move up */
    }
    
    /* Ensure all header content stays visible */
    .site-header .navbar {
        flex-wrap: nowrap !important; /* Prevent wrapping */
        align-items: center !important; /* Keep items centered */
    }
    
    .site-header .navbar-brand {
        flex-shrink: 0 !important; /* Prevent logo from shrinking */
        margin-right: auto !important; /* Push to left */
    }
    
    .site-header .navbar-toggler {
        flex-shrink: 0 !important; /* Prevent hamburger from shrinking */
        margin-left: auto !important; /* Push to right */
    }
    
    /* Ensure header stays fully visible when scrolling */
    .site-header.sticky {
        position: sticky !important;
        top: 0 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Override default body padding */
    body {
        padding-top: 0 !important;
    }
    
    body.home-page {
        padding-top: 0 !important;
    }
    
    /* Ensure no margin or padding on first child elements */
    .site-header:first-child,
    .top-bar:first-child,
    body > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any default browser margins */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .site-header .container {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important; /* Ensure full width */
    }
    
    /* Ensure navbar brand and toggler are properly positioned */
    .navbar-brand {
        z-index: 1001 !important; /* Ensure logo stays on top */
    }
    
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        z-index: 1001 !important; /* Ensure hamburger stays on top */
    }
    
    .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-collapse {
        background: rgba(40, 40, 40, 0.95) !important; /* Dark background for menu */
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important; /* Position below the navbar */
        z-index: 1000 !important;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .nav-link.active {
        color: #4a90e2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-link {
        color: #ffffff !important;
        padding: 10px 15px !important;
        border-radius: 4px !important;
        margin: 5px 0 !important;
    }
    
    .nav-link:hover, .nav-link:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .btn-accent-header {
        background: #4a90e2 !important;
        border: none !important;
        color: white !important;
        margin: 10px 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 20px !important; /* Add padding for better appearance */
    }
    
    .language-switcher .nav-link {
        color: #ffffff !important;
        padding: 8px 12px !important;
    }
}



/* Fixed Mobile Header - Consolidated & Sticky-Enabled */
@media (max-width: 991px) {
    .top-bar {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    body {
        padding-top: 0 !important; /* No padding - let sticky handle spacing */
        margin-top: 0 !important;
    }

    .site-header {
        margin-top: 0 !important; /* FIXED: Remove negative margin - this was breaking sticky */
        background: rgba(0, 0, 0, 0.95) !important; /* Solid dark background */
        backdrop-filter: none !important; /* Remove glass effect */
        -webkit-backdrop-filter: none !important; /* Remove glass effect */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: sticky !important; /* Ensure sticky positioning */
        top: 0 !important; /* Stick to top */
        z-index: 1000 !important; /* Ensure header stays on top */
        transform: translateZ(0); /* Fix for smooth scrolling */
        -webkit-transform: translateZ(0); /* Fix for smooth scrolling */
        will-change: transform; /* Optimize for smooth scrolling */
        min-height: 60px !important; /* Minimum height for mobile */
        height: auto !important; /* Allow flexible height */
        max-height: none !important; /* Remove max height restrictions */
        overflow: visible !important; /* Ensure content is not cut off */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
    
    .main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.site-footer {
    background-color: #f5f5f5 !important; /* Light grey background */
}

.main-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer text colors for better visibility - more specific selectors to override any other styles */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a,
.footer-about,
.footer-links li a,
.footer-contact-info li span,
.footer-legal li a,
.copyright {
    color: #ffffff !important; /* White text for better contrast on black background */
}

/* Section headings color */
.section-title {
    color: #03989e !important; /* Logo color for all section headings */
}

/* Button hover color */
.btn:hover, .btn:focus {
    background-color: #03989e !important; /* Primary logo color for all button hovers */
    border-color: #03989e !important;
}

.site-footer h5 {
    color: #03989e !important; /* Primary color for column headings */
}

/* Footer heading color - changed to primary color with higher specificity */
.site-footer h5,
.footer-links h5,
.site-footer .footer-links h5,
.site-footer .footer-contact-info h5,
.footer-contact-info h5,
h5 {
    color: #03989e !important; /* Primary color for column headings */
}

/* Footer link hover color - changed to primary color */
.site-footer .footer-links li a:hover,
.site-footer .footer-legal li a:hover,
.footer-links li a:hover,
.footer-legal li a:hover {
    color: #03989e !important; /* Primary color hover effect for links */
}

.copyright {
    color: #333333 !important; /* Dark text for copyright */
    text-align: center !important; /* Center the copyright text */
}

/* Footer logo sizing - match header logo */
.footer-logo, .footer-logo.img-fluid {
    max-height: 120px !important; /* Match header logo size */
    height: 120px !important;
    width: auto !important;
    background: transparent !important;
}

/* Footer Contact Labels */
.footer-contact-info .contact-label {
    font-weight: 600;
    margin-right: 5px;
    display: inline-block;
    color: #ffffff; /* White color for visibility */
}

/* Hero section CTA buttons - black transparent */
.hero-feature.btn.btn-primary {
    background-color: rgba(0, 0, 0, 0.7) !important; /* Black transparent */
    border-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important; /* White text for contrast */
}

.hero-feature.btn.btn-primary:hover,
.hero-feature.btn.btn-primary:focus {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Darker on hover/focus */
    border-color: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

/* Floating Feedback Button */
.floating-feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-feedback-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #03989e !important; /* Use primary color */
    border-color: #03989e !important;
}

.floating-feedback-btn .btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #027a80 !important; /* Darker on hover */
    border-color: #027a80 !important;
}

.floating-feedback-btn .btn i {
    font-size: 24px;
    color: white !important; /* Ensure icon is white */
}

/* Adjust positioning for mobile devices when both buttons are visible */
@media (max-width: 992px) {
    .floating-feedback-btn {
        bottom: 100px; /* Move up to make room for WhatsApp button */
    }
}

/* Hero buttons positioning */
.hero-buttons {
    position: absolute;
    right: 30%;
    bottom: 50px; /* Moved back to original position */
    display: flex;
    gap: 15px;
}

.hero-buttons .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure both buttons are the same size */
    text-align: center;
}

/* Ensure desktop CTA buttons are at the bottom */
@media (min-width: 992px) {
    .hero-buttons {
        position: absolute !important;
        right: 30% !important;
        bottom: 50px !important; /* Moved back to original position */
        display: flex !important;
        gap: 15px !important;
    }
}

/* Mobile-specific hero button positioning (keep unchanged) */
@media (max-width: 991px) {
    .hero-buttons {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 20px !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .hero-buttons .btn {
        width: 85% !important; /* Increased width */
        max-width: 320px !important; /* Increased max-width */
        margin: 5px 0 !important;
        padding: 14px 25px !important; /* Increased padding */
        font-size: 18px !important; /* Increased font size */
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 90% !important;
        font-size: 16px !important; /* Increased font size */
        padding: 12px 20px !important; /* Increased padding */
    }
}

/* Contact button - red background with primary color on hover */
.hero-buttons .btn-secondary {
    background-color: #dc3545 !important; /* Red color */
    border-color: #dc3545 !important;
    color: white !important;
}

.hero-buttons .btn-secondary:hover {
    background-color: #03989e !important; /* Primary color on hover */
    border-color: #03989e !important;
    color: white !important;
}

/* Section background colors with alternating light colors */
.section {
    padding: 80px 0 !important;
}

/* Alternating background colors for sections */
.about-section {
    background-color: #f8f9fa !important; /* Light grey */
    margin-top: 40px !important; /* Add gap between hero and about sections */
}

/* Ensure fresh sections have proper spacing */
.fresh-hero-section {
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.fresh-about-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.services-section {
    background-color: #ffffff !important; /* White background */
}

.team-section {
    background-color: #f8f9fa !important; /* Light grey */
}

.why-us-section {
    background-color: #ffffff !important; /* White background */
}

.appointment-form-section {
    background-color: #f8f9fa !important; /* Light grey */
}

.highlights-section {
    background-color: #ffffff !important; /* White background */
}

.opening-hours-section {
    background-color: #f8f9fa !important; /* Light grey */
}

.feedback-section {
    background-color: #ffffff !important; /* White background */
}

.appointment-cta-section {
    background-color: rgba(173, 216, 230, 0.8) !important; /* Light blue with transparency */
}

.appointment-cta-section .section-title {
    color: #ffffff !important; /* White heading text */
}

.appointment-cta-section .lead {
    color: #ffffff !important; /* White text for lead paragraph */
}

.appointment-cta-section .btn {
    color: #ffffff !important; /* White text for buttons */
}

/* Curved divider styles */
.section:not(.hero-section) {
    position: relative !important;
}

.section:not(.hero-section)::before {
    content: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    background-size: auto !important;
    transform: none !important;
    z-index: auto !important;
}

.section:first-child::before {
    display: none !important; /* Hide divider on first section */
}

.section:not(.hero-section) > * {
    position: static !important;
    z-index: auto !important; /* Ensure content is above the divider */
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important;
    }
    
    .service-card .card-body,
    .team-member-card .member-info,
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* Hero buttons on mobile */
    .hero-buttons {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -30px; /* Move buttons up in mobile view */
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}





/* Language switcher styles for mobile */
.navbar-nav .nav-item .nav-link .flag-icon {
    width: 20px !important;
    height: 15px !important;
    margin-right: 5px !important;
}

.navbar-nav .nav-item .nav-link {
    display: flex !important;
    align-items: center !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
    margin: 0 2px !important;
}

.navbar-nav .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-nav .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.3) !important;
}
    
    /* Top bar language switcher */
    .top-bar-language-switcher {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-left: 15px !important;
    }
    
    .top-bar-language-switcher .nav-link {
        color: white !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
    
    .top-bar-language-switcher .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .top-bar-language-switcher .nav-link.active {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .top-bar-language-switcher .flag-icon {
        width: 20px !important;
        height: 15px !important;
    }
    
    /* Primary color for Call Now button */
    .hero-mobile-cta .btn-success {
        background-color: #03989e !important; /* Primary color */
        border-color: #03989e !important;
    }
    
    .hero-mobile-cta .btn-success:hover {
        background-color: #027a80 !important; /* Darker primary color on hover */
        border-color: #027a80 !important;
    }





/* Header Styles - Glass Black Transparent */
.site-header {
    background: rgba(0, 0, 0, 0.95) !important; /* Black background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 140px !important; /* Increased height to accommodate larger logo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important; /* Shiny effect */
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Larger logo in header while maintaining proper sizing */
.logo-img {
    height: 120px !important; /* Further increased size */
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
    margin-right: 15px !important;
}

/* Ensure header text remains visible */
.navbar-nav .nav-link {
    color: #ffffff !important; /* White text for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Footer Styles - Glass Black Transparent */
.site-footer {
    background: rgba(0, 0, 0, 0.95) !important; /* Black background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important; /* Shiny effect */
}

/* Footer text colors for better visibility */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a,
.footer-about,
.footer-links li a,
.footer-contact-info li span,
.footer-legal li a,
.copyright {
    color: #ffffff !important; /* White text for better contrast on dark background */
}

.site-footer h5 {
    color: #DC3545 !important; /* Primary red color for column headings */
}

/* Footer heading color - changed to primary color */
.site-footer .footer-links h5,
.site-footer .footer-contact-info h5,
.footer-links h5,
.footer-contact-info h5 {
    color: #03989e !important; /* Primary color for column headings */
}

/* Footer link hover color - changed to primary color */
.site-footer .footer-links li a:hover,
.site-footer .footer-legal li a:hover,
.footer-links li a:hover,
.footer-legal li a:hover {
    color: #03989e !important; /* Primary color hover effect for links */
}

/* Mobile-specific header adjustments */
@media (max-width: 991px) {
    .site-header {
        background: rgba(0, 0, 0, 0.9) !important; /* Slightly more opaque on mobile */
        height: 120px !important; /* Increased for mobile */
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    .logo-img {
        height: 120px !important; /* Increased for mobile */
    }
    
    .navbar-brand .logo-img, .site-header .logo-img {
        height: 120px !important; /* Increased for mobile */
        max-height: 120px !important;
    }
    
    .navbar-nav .nav-link {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .collapse.navbar-collapse {
        background: rgba(0, 0, 0, 0.95) !important; /* Darker background for mobile menu */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    

}

/* Side CTA (Call to Action) Buttons - Fixed position on right side */
.side-cta {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 10px !important;
    /* Remove background */
    background: transparent !important;
}

/* Ensure container maintains consistent size when minimized */
.side-cta.minimized {
    width: 70px !important; /* Account for button width + padding */
    overflow: visible !important; /* Allow expanded buttons to show */
    /* Prevent layout shifts */
    will-change: transform !important;
}

/* Minimize button */
.cta-minimize-btn {
    background: #03989e !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1001 !important;
    height: 30px !important; /* Ensure button has height */
}

.cta-minimize-btn:hover {
    background: #027a80 !important;
}

.cta-button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Left align content */
    background: #03989e !important; /* Primary color as default */
    color: white !important;
    text-decoration: none !important;
    /* Changed to modern square design with slight radius instead of fully rounded */
    border-radius: 8px !important; /* Added slight radius */
    padding: 12px 20px 12px 20px !important; /* Consistent padding */
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    min-width: 50px !important;
    max-width: 220px !important; /* Increased width for longer text */
    overflow: visible !important; /* Allow text to show */
    white-space: nowrap !important;
    /* Ensure buttons are always visible */
    visibility: visible !important;
    opacity: 1 !important;
    height: 50px !important; /* Ensure buttons have height */
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.cta-button span {
    transition: opacity 0.3s ease !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    color: white !important; /* Ensure text is visible */
    /* Ensure smooth transition */
    transition: all 0.3s ease !important;
}

/* Hover effect for non-minimized state */
.cta-button:hover {
    padding: 12px 20px 12px 20px !important; /* Consistent padding */
    max-width: 220px !important; /* Increased width for longer text */
    justify-content: flex-start !important; /* Ensure left alignment */
}

/* Minimized state for CTA buttons */
.side-cta.minimized .cta-button {
    padding: 12px 12px !important;
    max-width: 50px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important; /* Hide overflow when minimized */
    /* Ensure minimized buttons are visible */
    visibility: visible !important;
    opacity: 1 !important;
    height: 50px !important; /* Ensure buttons have height */
    /* Ensure consistent transition */
    will-change: transform, max-width, padding !important;
    justify-content: center !important; /* Center icon when minimized */
}

.side-cta.minimized .cta-button span {
    opacity: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease !important;
    margin-left: 0 !important; /* Reset margin when minimized */
}

.side-cta.minimized .cta-button:hover {
    padding: 12px 15px 12px 20px !important;
    max-width: 220px !important; /* Increased width for longer text */
    margin-left: -190px !important; /* Adjusted margin to show full button */
    z-index: 1000 !important;
    position: relative !important;
    /* Add smooth transition to prevent flickering */
    transition: all 0.3s ease !important;
    overflow: visible !important; /* Show overflow when expanded */
    justify-content: flex-start !important; /* Left align when expanded */
}

.side-cta.minimized .cta-button:hover span {
    opacity: 1 !important;
    width: auto !important;
    margin-left: 10px !important; /* Add space between icon and text */
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
    overflow: visible !important; /* Ensure text is fully visible */
}

/* Ensure each button type maintains its color when hovered */
.side-cta.minimized .cta-button.appointment:hover {
    background: #dc3545 !important; /* Red color */
}

.side-cta.minimized .cta-button.call:hover {
    background: #4CAF50 !important; /* Green color */
}

.side-cta.minimized .cta-button.whatsapp:hover {
    background: #25D366 !important; /* WhatsApp color */
}

/* WhatsApp specific styling */
.cta-button.whatsapp {
    background: #25D366 !important; /* WhatsApp green */
}

/* Call specific styling */
.cta-button.call {
    background: #4CAF50 !important; /* Call green */
}

/* Appointment specific styling */
.cta-button.appointment {
    background: #dc3545 !important; /* Red color */
}

/* Ensure all CTA buttons use their respective colors on hover */
.cta-button.whatsapp:hover {
    background: #128C7E !important; /* Darker WhatsApp green on hover */
    filter: brightness(1.1) !important; /* Slight brightness increase on hover */
}

.cta-button.call:hover {
    background: #388E3C !important; /* Darker call green on hover */
    filter: brightness(1.1) !important; /* Slight brightness increase on hover */
}

.cta-button.appointment:hover {
    background: #c82333 !important; /* Darker red on hover */
    filter: brightness(1.1) !important; /* Slight brightness increase on hover */
}

.cta-button:hover {
    filter: brightness(1.1) !important; /* Slight brightness increase on hover with primary color effect */
}

/* Hide CTA on mobile devices */
@media (max-width: 992px) {
    .side-cta {
        display: none !important;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-whatsapp-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #25D366 !important; /* WhatsApp green */
    border-color: #25D366 !important;
}

.floating-whatsapp-btn .btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #128C7E !important; /* Darker WhatsApp green on hover */
    border-color: #128C7E !important;
}

.floating-whatsapp-btn .btn i {
    font-size: 24px;
    color: white !important; /* Ensure icon is white */
}

/* Hide feedback button completely (replaced with WhatsApp) */
.floating-feedback-btn {
    display: none !important;
}

/* Adjust positioning for mobile devices */
@media (max-width: 992px) {
    .floating-whatsapp-btn {
        bottom: 30px; /* Keep WhatsApp button at bottom */
    }
}

/* Mobile button spacing */
@media (max-width: 767.98px) {
    .hero-content .btn {
        margin-bottom: 10px;
    }
    
    .hero-content .btn:last-child {
        margin-bottom: 0;
    }
}

/* Welcome Popup */
.welcome-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.welcome-popup-content {
    background: #ffffff;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    max-height: 60vh;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.welcome-popup-image-container {
    flex: 0 0 25%;
    background: linear-gradient(135deg, #03989e, #027a80);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-popup-image-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.welcome-popup-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.welcome-popup-content-container {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
}

.welcome-popup-logo-container {
    text-align: center;
    margin-bottom: 8px;
}

.welcome-popup-logo {
    max-width: 50px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.welcome-popup-text {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 12px;
}

.welcome-popup-text h3 {
    color: #1a365d;
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.welcome-popup-text p {
    color: #6c757d;
    margin: 0 0 0 0;
    line-height: 1.3;
    font-size: 0.8rem;
}

.welcome-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 0;
}

.welcome-popup-buttons .btn {
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    width: 100%;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    min-height: 36px;
}

.welcome-popup-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.welcome-popup-buttons .btn-primary {
    background: #03989e;
    color: white;
}

.welcome-popup-buttons .btn-primary:hover {
    background: #027a80;
}

.welcome-popup-buttons .btn-success {
    background: #28a745;
    color: white;
}

.welcome-popup-buttons .btn-success:hover {
    background: #218838;
}

.welcome-popup-buttons .btn-whatsapp {
    background: #25D366;
    color: white;
}



/* New Hero Section Styles Based on Provided Design */
.hero-section.home-hero {
    background: linear-gradient(to right, 
        rgba(26, 54, 93, 0.9) 0%, 
        rgba(26, 54, 93, 0.85) 25%, 
        rgba(26, 54, 93, 0.7) 50%, 
        rgba(26, 54, 93, 0.5) 75%, 
        rgba(26, 54, 93, 0.3) 100%), 
                url('../images/hero1.jpg') no-repeat center center;
    background-size: 100%;
    min-height: 100vh;
    position: relative;
    margin-top: -60px;
}

/* Desktop background */
@media (min-width: 769px) {
    .hero-section.home-hero {
        background: linear-gradient(to right, 
            rgba(26, 54, 93, 0.9) 0%, 
            rgba(26, 54, 93, 0.85) 25%, 
            rgba(26, 54, 93, 0.7) 50%, 
            rgba(26, 54, 93, 0.5) 75%, 
            rgba(26, 54, 93, 0.3) 100%), 
                    url('../images/hero1.jpg') no-repeat center center;
    }
}

/* Mobile background - different image as per requirements */
@media (max-width: 768px) {
    .hero-section.home-hero {
        background: linear-gradient(to right, 
            rgba(26, 54, 93, 0.9) 0%, 
            rgba(26, 54, 93, 0.85) 25%, 
            rgba(26, 54, 93, 0.7) 50%, 
            rgba(26, 54, 93, 0.5) 75%, 
            rgba(26, 54, 93, 0.3) 100%), 
                    url('../images/doctor_with_medical_team_1.jpg') no-repeat center 35%;
        background-size: 100%;
    }
}

.hero-section.home-hero .max-w-7xl {
    max-width: 80rem;
}

.hero-section.home-hero .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.home-hero .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-section.home-hero .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section.home-hero .flow-root {
    display: flow-root;
}

.hero-section.home-hero .relative {
    position: relative;
}

.hero-section.home-hero .-m-2 {
    margin: -0.5rem;
}

.hero-section.home-hero .lg\:-m-4 {
    margin: -1rem;
}

.hero-section.home-hero .pt-24 {
    padding-top: 6rem;
}

.hero-section.home-hero .pb-16 {
    padding-bottom: 4rem;
}

.hero-section.home-hero .sm\:pt-32 {
    padding-top: 8rem;
}

.hero-section.home-hero .sm\:pb-24 {
    padding-bottom: 6rem;
}

.hero-section.home-hero .lg\:pt-40 {
    padding-top: 10rem;
}

.hero-section.home-hero .lg\:pb-32 {
    padding-bottom: 8rem;
}

.hero-section.home-hero .lg\:w-1\/2 {
    width: 50%;
}

.hero-section.home-hero .lg\:flex {
    display: flex;
}

.hero-section.home-hero .lg\:items-center {
    align-items: center;
}

.hero-section.home-hero .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-section.home-hero .lg\:px-0 {
    padding-left: 0;
    padding-right: 0;
}

.hero-section.home-hero .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.hero-section.home-hero .font-bold {
    font-weight: 700;
}

.hero-section.home-hero .tracking-tight {
    letter-spacing: -0.025em;
}

.hero-section.home-hero .text-white {
    color: #fff;
}

.hero-section.home-hero .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.hero-section.home-hero .mt-6 {
    margin-top: 1.5rem;
}

.hero-section.home-hero .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.hero-section.home-hero .leading-8 {
    line-height: 2rem;
}

.hero-section.home-hero .text-gray-100 {
    color: #f3f4f6;
}

.hero-section.home-hero .mt-10 {
    margin-top: 2.5rem;
}

.hero-section.home-hero .flex {
    display: flex;
}

.hero-section.home-hero .items-center {
    align-items: center;
}

.hero-section.home-hero .gap-x-6 {
    column-gap: 1.5rem;
}

.hero-section.home-hero .rounded-md {
    border-radius: 0.375rem;
}

.hero-section.home-hero .bg-red-600 {
    background-color: #dc2626;
}

.hero-section.home-hero .px-3\.5 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

.hero-section.home-hero .py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.hero-section.home-hero .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hero-section.home-hero .font-semibold {
    font-weight: 600;
}

.hero-section.home-hero .text-white {
    color: #fff;
}

.hero-section.home-hero .shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hero-section.home-hero .hover\:bg-red-500:hover {
    background-color: #ef4444;
}

.hero-section.home-hero .focus-visible\:outline:focus-visible {
    outline-style: solid;
}

.hero-section.home-hero .focus-visible\:outline-2:focus-visible {
    outline-width: 2px;
}

.hero-section.home-hero .focus-visible\:outline-offset-2:focus-visible {
    outline-offset: 2px;
}

.hero-section.home-hero .focus-visible\:outline-red-600:focus-visible {
    outline-color: #dc2626;
}

/* Responsive Design for New Hero Section */
@media (max-width: 1199px) {
    .hero-section.home-hero .text-4xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (max-width: 991px) {
    .hero-section.home-hero {
        padding: 80px 0 40px 0;
        margin-top: -50px;
        min-height: 90vh;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 1.25rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 2rem;
    }
    
    .hero-section.home-hero .gap-x-6 {
        column-gap: 1rem;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section.home-hero .py-2\.5 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section.home-hero {
        padding: 70px 0 30px 0;
        margin-top: -40px;
        min-height: 85vh;
    }
    
    .hero-section.home-hero .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .sm\:py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2.25rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 1rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 1.5rem;
    }
    
    .hero-section.home-hero .gap-x-6 {
        column-gap: 0.75rem;
    }
    
    .hero-section.home-hero .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section.home-hero .items-center {
        align-items: stretch;
    }
    
    .hero-section.home-hero .justify-center {
        justify-content: center;
    }
    
    .hero-section.home-hero .rounded-md {
        border-radius: 0.375rem;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



/* Mobile-specific styles for sticky header, logo, and language switcher */
@media (max-width: 768px) {
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 100px !important; /* Increased height to account for navbar */
        margin: 0 !important;
    }
}

/* Fresh Hero Section Styles */
.fresh-hero-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(3, 152, 158, 0.9) 100%), 
                url('../images/hero1.jpg') no-repeat center center;
    background-size: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 0;
    position: relative;
    z-index: 1;
}

.fresh-hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left; /* Left-aligned on desktop as per requirements */
}

.fresh-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left; /* Left-aligned on desktop as per requirements */
}

.fresh-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start; /* Left-aligned on desktop as per requirements */
    flex-wrap: wrap;
}

.fresh-hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    min-width: 220px;
    text-align: center;
}

/* Fresh About Section Styles */
.fresh-about-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.fresh-about-title {
    color: #1a365d;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.fresh-about-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.fresh-about-content p {
    margin-bottom: 1.5rem;
}

.fresh-about-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .fresh-hero-section {
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(3, 152, 158, 0.9) 100%), 
                    url('../images/hero1.jpg') no-repeat center center;
        background-size: 100%;
        padding: 80px 0 40px 0;
        min-height: 90vh;
    }
    
    .fresh-hero-title {
        font-size: 2.2rem;
        text-align: center; /* Centered on mobile as per requirements */
    }
    
    .fresh-hero-subtitle {
        font-size: 1.2rem;
        text-align: center; /* Centered on mobile as per requirements */
    }
    
    .fresh-hero-buttons {
        flex-direction: column;
        align-items: center; /* Centered on mobile as per requirements */
        gap: 1rem;
        justify-content: center; /* Centered on mobile as per requirements */
    }
    
    .fresh-hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .fresh-about-title {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .fresh-hero-title {
        font-size: 1.8rem;
    }
    
    .fresh-hero-subtitle {
        font-size: 1rem;
    }
    
    .fresh-hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .fresh-about-title {
        font-size: 1.8rem;
    }
    
    .fresh-about-img {
        max-width: 100%;
    }
}

/* Fresh Hero Section Styles */
.fresh-hero-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(3, 152, 158, 0.9) 100%), 
                url('../images/hero1.jpg') no-repeat center center;
    background-size: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 0;
    position: relative;
    z-index: 1;
}

.fresh-hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left; /* Left-aligned on desktop as per requirements */
}

.fresh-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left; /* Left-aligned on desktop as per requirements */
}

.fresh-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start; /* Left-aligned on desktop as per requirements */
    flex-wrap: wrap;
}

.fresh-hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    min-width: 220px;
    text-align: center;
}

/* Fresh About Section Styles */
.fresh-about-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.fresh-about-title {
    color: #1a365d;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Flip Text Animation for Services */
.flip-text-animation {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center; /* Center the text */
    margin-top: 3rem; /* Move down even more */
    margin-bottom: 0.2rem; /* Move closer to CTA buttons */
    min-height: 2rem;
    display: flex; /* Show on desktop */
    align-items: center;
    justify-content: center; /* Center content horizontally */
    color: #dc3545; /* Red color for animated services */
    position: relative;
    z-index: 100;
    width: 100%;
    /* Add a semi-transparent background to make it more visible */
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content; /* Make background strip match text width */
}

/* Specific rule for flip text elements with IDs to ensure proper positioning */
#flip-text, #flip-text-mobile {
    margin-top: 6rem !important; /* Reduced from 8rem */
    margin-bottom: 0.1rem !important; /* Force move closer to CTA buttons */
    position: relative !important;
    top: 1rem !important; /* Reduced from 2rem */
}

/* Hide flip text on desktop and adjust spacing */
@media (min-width: 992px) {
    .flip-text-animation {
        display: flex; /* Show on desktop */
        margin-bottom: 0.2rem; /* Move closer to CTA buttons */
        position: relative;
        z-index: 100;
    }
}

.flip-text-animation span {
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: bold; /* Make text bold for better visibility */
    text-align: center; /* Ensure text is centered */
    word-wrap: break-word; /* Prevent overflow */
    max-width: 100%; /* Ensure text doesn't exceed container */
}

.flip-text-animation.flip span {
    transform: translateY(-100%);
    opacity: 0;
}

.flip-text-animation.new span {
    transform: translateY(100%);
    opacity: 0;
}

.flip-text-animation.show span {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile-specific flip text */
@media (max-width: 991px) {
    .flip-text-animation {
        font-size: 1.1rem; /* Reduced from 1.3rem */
        text-align: center;
        margin-top: 4rem; /* Move down even more */
        margin-bottom: 0.3rem; /* Move closer to CTA buttons */
        position: relative;
        top: 1rem;
        /* Add a semi-transparent background to make it more visible */
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content; /* Make background strip match text width */
        line-height: 1.3; /* Improve readability */
    }
    
    .flip-text-animation span {
        font-size: 1.1rem; /* Ensure span has same font size */
        word-wrap: break-word; /* Prevent overflow */
        max-width: 100%; /* Ensure text doesn't exceed container */
    }
}

@media (max-width: 576px) {
    .flip-text-animation {
        font-size: 0.9rem; /* Reduced from 1.1rem */
        margin-top: 4rem; /* Move down even more */
        margin-bottom: 0.2rem; /* Move closer to CTA buttons */
        position: relative;
        top: 1rem;
        /* Add a semi-transparent background to make it more visible */
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content; /* Make background strip match text width */
        line-height: 1.2; /* Improve readability on small screens */
    }
    
    .flip-text-animation span {
        font-size: 0.9rem; /* Ensure span has same font size */
        word-wrap: break-word; /* Prevent overflow */
        max-width: 100%; /* Ensure text doesn't exceed container */
    }
}

.fresh-about-content {
    margin-bottom: 2rem;
    text-align: center;
}

.fresh-about-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.fresh-about-content p {
    margin-bottom: 1.5rem;
}

.fresh-about-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Modern Design Updates for Praxis am Hollenbach */

/* Button Styles - Consistent rounded corners for all buttons */
.btn {
    border-radius: 8px !important; /* Consistent rounded corners */
}

.btn-primary {
    border-radius: 8px !important;
}

.btn-success {
    border-radius: 8px !important;
}

.btn-secondary {
    border-radius: 8px !important;
}

.btn-danger {
    border-radius: 8px !important;
}

.btn-warning {
    border-radius: 8px !important;
}

.btn-info {
    border-radius: 8px !important;
}

.btn-sm {
    border-radius: 8px !important;
}

.btn-lg {
    border-radius: 8px !important;
}

/* Fresh Hero Section - 65/35 Column Layout */
.fresh-hero-section {
    padding: 80px 0 0 0; /* Reduced padding to move background image closer to header */
    position: relative;
    overflow: hidden;
    min-height: 80vh; /* Increased height from 70vh */
    margin-bottom: 0; /* Remove margin to eliminate gap */
    background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20%;
    background-size: 100%;
    background-position: center 20%;
    transform: scale(1);
}

/* Desktop background with higher specificity to override dynamic styles */
@media (min-width: 992px) {
    body.home-page .fresh-hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20% !important;
        background-size: 100% !important;
        background-color: transparent !important;
        background-position: center 20% !important;
    }
    
    html body.home-page .fresh-hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20% !important;
        background-size: 100% !important;
        background-color: transparent !important;
        background-position: center 20% !important;
    }
}

/* Move CTA buttons down at the bottom of hero section */
.fresh-hero-buttons {
    margin-top: 2.5rem; /* Original value */
}



/* Center buttons on desktop */
@media (min-width: 992px) {
    .home-page .fresh-hero-buttons {
        justify-content: center;
        width: 100%;
        text-align: center;
        /* Move buttons further down */
        margin-top: 2rem; /* Reduced value */
        margin-left: 20px; /* Move buttons slightly to the right */
        position: relative;
    }
    
    .home-page .hero-content-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        /* Move content down further */
        padding-top: 1rem; /* Reduced from 3rem */
    }
    
    /* Desktop background image for fresh hero section */
    .fresh-hero-section {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20% !important;
        background-size: 100% !important;
        background-position: center 20% !important;
    }
}

/* Assistant Image - Fix zooming issue */
.assistant-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.assistant-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fresh-hero-section .row {
    margin-bottom: 0; /* Remove margin to eliminate gap */
    margin-left: 0;
    margin-right: 0;
}

.fresh-hero-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 0; /* Remove padding to eliminate gap */
}

.hero-content-col {
    padding-right: 2rem;
    padding-top: 10px; /* Added to shift content up */
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    margin-bottom: 0; /* Remove margin to eliminate gap */
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end; /* Align to bottom */
    justify-content: flex-end; /* Align to the right as per specifications */
    margin-top: auto; /* Push to bottom */
    background: transparent !important; /* Ensure no background */
    min-height: 400px; /* Reduced card height */ /* Further reduced height to eliminate gap */
    margin: 0; /* Remove any margin */
    flex: 1; /* Allow it to grow and fill available space */
    padding-bottom: 0; /* Remove padding to reduce gap */
}

.hero-image-border {
    position: relative;
    width: 110%; /* Increase size */
    height: 110%; /* Increase size */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Uneven border shape */
    overflow: hidden;
    margin-left: 10%; /* Shift right */
}

.hero-image-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(45deg, #03989e, #027a80, #1a365d, #03989e);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Uneven border shape */
    opacity: 0.4; /* Reduced opacity for mobile */
}

/* Desktop version with higher opacity */
@media (min-width: 992px) {
    .hero-image-border::before {
        opacity: 0.7; /* Higher opacity on desktop */
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes borderAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-doctor-image {
    width: 100%;
    height: auto;
    max-height: 550px; /* Increased max height */
    object-fit: contain;
    object-position: right bottom; /* Position to the right and bottom */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Uneven border shape */
    box-shadow: none;
    background: transparent !important;
    border: none !important; /* Remove any border */
    outline: none !important; /* Remove any outline */
    margin-bottom: 0; /* Remove margin to reduce gap */
    display: block; /* Ensure proper display */
    position: relative;
    z-index: 2;
    animation: none; /* Remove animation */
}

.fresh-hero-title {
    transition: transform 0.3s ease;
    object-fit: contain;
}

.fresh-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem; /* Increase margin to push down flip text and CTA buttons */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    word-spacing: 1px;
}

/* Specific styles for home page hero title to prevent affecting other pages */
.home-page .fresh-hero-title {
    /* Add any specific styles for home page hero title here */
    /* This ensures changes to home page don't affect other pages */
}

.fresh-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem; /* Reduced margin to shift up */
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    width: 100%;
    max-width: 800px;
    word-spacing: 0.5px;
}

.fresh-hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem; /* Reduced margin to shift up */
    border-radius: 8px !important; /* Rounded corners for hero buttons */
}

.fresh-hero-buttons .btn:last-child {
    margin-right: 0;
}

/* Responsive adjustments for hero section */
@media (max-width: 991.98px) {
    .fresh-hero-section {
        padding: 0; /* Remove padding to eliminate gap */
        min-height: 75vh; /* Increased height */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20%;
        background-size: 100%;
        transform: scale(1);
    }
    
    .fresh-hero-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem; /* Increase margin to push down flip text and CTA buttons */
        color: white; /* White color for mobile heading */
    }
    
    .fresh-hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content-col {
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: center;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-image-col {
        display: flex; /* Show the image column on mobile */
        padding: 0;
        margin: 0;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        height: auto; /* Allow natural height */
        min-height: 430px; /* Reduced height to reduce gap */
        padding-bottom: 0; /* Remove padding to reduce gap */
    }
    
    .hero-image-border {
        min-height: 430px; /* Match the wrapper height */
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* No shift on mobile */
    }
    
    .hero-doctor-image {
        max-height: 420px; /* Increased max height */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        margin-bottom: 0; /* Remove margin to reduce gap */
        animation: none; /* Remove animation */
    }
    
    .fresh-hero-title {
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        line-height: 1.3;
    }
    
    .fresh-hero-subtitle {
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .fresh-hero-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .fresh-hero-section {
        padding: 0; /* Remove padding to eliminate gap */
        min-height: 55vh; /* Increased height */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20%;
        background-size: 100%;
        transform: scale(1);
    }
    
    .hero-content-col {
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: center;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .fresh-hero-buttons {
        justify-content: center;
    }
    
    .hero-image-col {
        padding: 0;
        margin: 0;
    }
    
    .hero-image-wrapper {
        height: auto; /* Allow natural height */
        min-height: 480px; /* Reduced height to reduce gap */
        padding-bottom: 0; /* Remove padding to reduce gap */
    }
    
    .hero-image-border {
        min-height: 480px; /* Match the wrapper height */
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* No shift on mobile */
    }
    
    .hero-doctor-image {
        max-height: 490px; /* Increased max height */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        margin-bottom: 0; /* Remove margin to reduce gap */
        animation: none; /* Remove animation */
    }
    
    .fresh-hero-title {
        font-size: 2.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        line-height: 1.3;
        color: white; /* White color for mobile heading */
    }
    
    .fresh-hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .fresh-hero-section {
        padding: 0; /* Remove padding to eliminate gap */
        min-height: 80vh; /* Increased height */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20%;
        background-size: 100%;
        transform: scale(1);
    }
    
    .hero-content-col {
        padding-top: 60px; /* Move content down more */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .hero-image-col {
        padding: 0;
        margin: 0;
    }
    
    .hero-image-wrapper {
        height: 100%; /* Fill container height */
        min-height: auto;
        margin: 0;
        display: flex;
        align-items: flex-end; /* Align to bottom */
    }
    
    .hero-image-border {
        height: 100%; /* Match the wrapper height */
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* No shift on mobile */
    }
    
    .hero-doctor-image {
        max-height: 75vh; /* Increased to increase size */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        width: 100%;
        height: auto;
        margin-bottom: 0; /* Remove margin to reduce gap */
        animation: none; /* Remove animation */
    }
    
    .fresh-hero-title {
        font-size: 2rem;
        margin-top: 50px; /* Move title down more */
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        line-height: 1.3;
        color: white; /* White color for mobile heading */
    }
    
    .fresh-hero-subtitle {
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .fresh-hero-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .fresh-hero-section {
        padding: 0; /* Remove padding to eliminate gap */
        min-height: 80vh; /* Increased height */
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20%;
        background-size: 100%;
        transform: scale(1);
    }
    
    .hero-content-col {
        padding-top: 65px; /* Move content down more */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .hero-image-col {
        padding: 0;
        margin: 0;
    }
    
    .hero-image-wrapper {
        height: 100%; /* Fill container height */
        min-height: auto;
        margin: 0;
        display: flex;
        align-items: flex-end; /* Align to bottom */
        padding-bottom: 0; /* Remove padding to reduce gap */
    }
    
    .hero-image-border {
        height: 100%; /* Match the wrapper height */
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* No shift on mobile */
    }
    
    .hero-doctor-image {
        max-height: 80vh; /* Increased to increase size */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        width: 100%;
        height: auto;
        margin-bottom: 0; /* Remove margin to reduce gap */
        animation: none; /* Remove animation */
    }
    
    .fresh-hero-title {
        font-size: 1.75rem;
        margin-top: 55px; /* Move title down more */
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        line-height: 1.3;
        color: white; /* White color for mobile heading */
    }
    
    .fresh-hero-subtitle {
        font-size: 1rem;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .fresh-hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .fresh-hero-buttons .btn {
        width: 100%;
        margin-right: 0;
        max-width: 300px;
    }
}

/* Animation for hero image */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Doctor Full Section Styles */
.doctor-full-section {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-full-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.doctor-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

.doctor-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-content {
    padding: 30px;
}

.doctor-name {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.doctor-title.lead-physician-title {
    color: #03989e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.doctor-bio {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.specializations-title {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #03989e;
}

.specializations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specialization-item {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 1rem;
    padding: 5px 0;
}

.specialization-item i {
    color: #03989e;
}

.doctor-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(3, 152, 158, 0.3);
    transition: all 0.3s ease;
}

.doctor-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 152, 158, 0.4);
}

/* Assistant Card Styles */
.assistant-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.assistant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.assistant-image-wrapper {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assistant-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.assistant-name {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.assistant-position {
    color: #03989e;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.assistant-position i {
    font-size: 0.9rem;
}

.assistant-qualifications {
    flex-grow: 1;
}

.assistant-qualifications ul li {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.assistant-qualifications ul li:last-child {
    margin-bottom: 0;
}

.assistant-qualifications ul li i {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .doctor-content {
        padding: 20px;
    }
    
    .doctor-name {
        font-size: 1.7rem;
    }
    
    .specializations-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .doctor-full-section {
        margin-bottom: 30px;
    }
    
    .doctor-content {
        padding: 15px;
    }
    
    .doctor-name {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .doctor-title.lead-physician-title {
        text-align: center;
    }
    
    .doctor-bio {
        font-size: 1rem;
    }
    
    .specializations-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .doctor-cta {
        text-align: center;
    }
    
    .assistant-image-wrapper {
        height: 180px;
    }
    
    .assistant-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .doctor-image-wrapper {
        height: 250px;
    }
    
    .assistant-image-wrapper {
        height: 150px;
    }
}

/* Make header sticky */
.site-header {
    height: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .fresh-hero-section {
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(3, 152, 158, 0.9) 100%), 
                    url('../images/hero1.jpg') no-repeat center center;
        background-size: 100%;
        padding: 0; /* Remove padding to eliminate gap */
        min-height: 50vh; /* Reduced height per mobile requirements */
    }
    
    .fresh-hero-title {
        font-size: 2.2rem;
        text-align: center; /* Centered on mobile as per requirements */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        line-height: 1.3;
    }
    
    .fresh-hero-subtitle {
        font-size: 1.2rem;
        text-align: center; /* Centered on mobile as per requirements */
    }
    
    .fresh-hero-buttons {
        flex-direction: column;
        align-items: center; /* Centered on mobile as per requirements */
        gap: 1rem;
        justify-content: center; /* Centered on mobile as per requirements */
        width: 100%;
    }
    
    .fresh-hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .fresh-about-title {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .fresh-hero-title {
        font-size: 1.8rem;
    }
    
    .fresh-hero-subtitle {
        font-size: 1rem;
    }
    
    .fresh-hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .fresh-about-title {
        font-size: 1.8rem;
    }
}

/* New Hero Section Styles */
.hero-section.home-hero .max-w-7xl {
    max-width: 80rem;
}

.hero-section.home-hero .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.home-hero .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-section.home-hero .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section.home-hero .flow-root {
    display: flow-root;
}

.hero-section.home-hero .flow-root > * {
    margin: 0 !important;
}

.hero-section.home-hero .relative {
    position: relative;
}

.hero-section.home-hero .-m-2 {
    margin: -0.5rem;
}

.hero-section.home-hero .lg\:-m-4 {
    margin: -1rem;
}

.hero-section.home-hero .pt-24 {
    padding-top: 100px !important; /* Increased height to account for navbar */
    margin: 0 !important;
}

.hero-section.home-hero .pb-16 {
    padding-bottom: 4rem;
}

.hero-section.home-hero .sm\:pt-32 {
    padding-top: 8rem;
}

.hero-section.home-hero .sm\:pb-24 {
}

/* Modern Doctor Card Design */
.doctor-modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(3, 152, 158, 0.1);
    height: 100%;
    min-height: 400px; /* Reduced card height */
    padding: 10px; /* Reduced padding from 0 to 10px */
    margin: 0;
    margin-bottom: 0;
}

.doctor-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
    min-height: 400px; /* Reduced card height */
    justify-content: space-between;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.doctor-info-container {
    flex: 0 0 55%;
    padding: 20px 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.doctor-header {
    margin-bottom: 20px; /* Reduced from 25px to 20px */
    margin-top: 0; /* Ensure no top margin */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    width: 100%;
    text-align: left;
}

.doctor-name {
    color: #1a365d;
    font-size: 2.0rem;
    font-weight: 800;
    margin-top: 0; /* Ensure no top margin */
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.doctor-name {
    color: #1a365d;
    font-size: 2.0rem; /* Reduced from 2.2rem */
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #03989e;
    font-weight: 600;
}

.doctor-experience i {
    font-size: 1.2rem;
}

.doctor-bio {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: left;
}

.doctor-bio p {
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.specializations-title {
    color: #1a365d;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(3, 152, 158, 0.2);
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: left;
    width: 100%;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.specialization-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(3, 152, 158, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.specialization-item:hover {
    background: rgba(3, 152, 158, 0.1);
    transform: translateX(5px);
}

.specialization-item i {
    color: #03989e;
    font-size: 0.9rem;
}

.doctor-cta-section {
    margin-top: auto;
}

.btn-doctor-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #03989e 0%, #027a80 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(3, 152, 158, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-doctor-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(3, 152, 158, 0.4);
}

.btn-doctor-cta i {
    font-size: 1.2rem;
}

.doctor-contact {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #03989e;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1rem;
}

.hero-section.home-hero .lg\:pt-40 {
    padding-top: 10rem;
}

.hero-section.home-hero .lg\:pb-32 {
    padding-bottom: 8rem;
}

.hero-section.home-hero .lg\:w-1\/2 {
    width: 50%;
}

.hero-section.home-hero .lg\:flex {
    display: flex;
}

.hero-section.home-hero .lg\:items-center {
    align-items: center;
}

.hero-section.home-hero .lg\:px-0 {
    padding-left: 0;
    padding-right: 0;
}

.hero-section.home-hero .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.hero-section.home-hero .font-bold {
    font-weight: 700;
}

.hero-section.home-hero .tracking-tight {
    letter-spacing: -0.025em;
}

.hero-section.home-hero .text-white {
    color: #fff;
}

.hero-section.home-hero .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.hero-section.home-hero .mt-6 {
    margin-top: 1.5rem;
}

.hero-section.home-hero .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.hero-section.home-hero .leading-8 {
    line-height: 2rem;
}

.hero-section.home-hero .text-gray-100 {
    color: #f3f4f6;
}

.hero-section.home-hero .mt-10 {
    margin-top: 2.5rem;
}

.hero-section.home-hero .flex {
    display: flex;
}

.hero-section.home-hero .items-center {
    align-items: center;
}

.hero-section.home-hero .gap-x-6 {
    column-gap: 1.5rem;
}

.hero-section.home-hero .rounded-md {
    border-radius: 0.375rem;
}

.hero-section.home-hero .bg-red-600 {
    background-color: #dc2626;
}

.hero-section.home-hero .px-3\.5 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

.hero-section.home-hero .py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.hero-section.home-hero .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hero-section.home-hero .font-semibold {
    font-weight: 600;
}

.hero-section.home-hero .shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hero-section.home-hero .hover\:bg-red-500:hover {
    background-color: #ef4444;
}

.hero-section.home-hero .focus-visible\:outline:focus-visible {
    outline-style: solid;
}

.hero-section.home-hero .focus-visible\:outline-2:focus-visible {
    outline-width: 2px;
}

.hero-section.home-hero .focus-visible\:outline-offset-2:focus-visible {
    outline-offset: 2px;
}

.hero-section.home-hero .focus-visible\:outline-red-600:focus-visible {
    outline-color: #dc2626;
}

/* Responsive Design for New Hero Section */
@media (max-width: 1199px) {
    .hero-section.home-hero .text-4xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (max-width: 991px) {
    .hero-section.home-hero {
        padding: 80px 0 40px 0;
        margin-top: -50px;
        min-height: 90vh;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 1.25rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 2rem;
    }
    
    .hero-section.home-hero .gap-x-6 {
        column-gap: 1rem;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section.home-hero .py-2\.5 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section.home-hero {
        padding: 70px 0 30px 0;
        margin-top: -40px;
        min-height: 85vh;
        text-align: center; /* Center content on mobile as per requirements */
    }
    
    .hero-section.home-hero .pt-24 {
        padding-top: 4rem;
    }
    
    .hero-section.home-hero .pb-16 {
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .sm\:pt-32 {
        padding-top: 3rem;
    }
    
    .hero-section.home-hero .sm\:pb-24 {
        padding-bottom: 3rem;
    }
    
    .hero-section.home-hero .lg\:pt-40 {
        padding-top: 5rem;
    }
    
    .hero-section.home-hero .lg\:pb-32 {
        padding-bottom: 4rem;
    }
    
    .hero-section.home-hero .lg\:w-1\/2 {
        width: 100%;
    }
    
    .hero-section.home-hero .lg\:flex {
        display: block;
    }
    
    .hero-section.home-hero .lg\:items-center {
        align-items: center;
    }
    
    .hero-section.home-hero .lg\:px-0 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2.25rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 1rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 1.5rem;
    }
    
    .hero-section.home-hero .gap-x-6 {
        column-gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section.home-hero {
        padding: 60px 0 20px 0;
        margin-top: -30px;
        min-height: 80vh;
    }
    
    .hero-section.home-hero .pt-24 {
        padding-top: 3rem;
    }
    
    .hero-section.home-hero .pb-16 {
        padding-bottom: 1.5rem;
    }
    
    .hero-section.home-hero .sm\:pt-32 {
        padding-top: 2rem;
    }
    
    .hero-section.home-hero .sm\:pb-24 {
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .lg\:pt-40 {
        padding-top: 3rem;
    }
    
    .hero-section.home-hero .lg\:pb-32 {
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 0.75rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 1rem;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section.home-hero .py-2\.5 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Old hero section styles removed */

/* Special Announcement Bar */
.special-announcement-bar {
    background-color: #ff6b6b;
    color: white;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.special-announcement-bar .announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 15px;
}

.special-announcement-bar .announcement-content i {
    color: #fff;
    font-size: 1.2rem;
}

.special-announcement-bar a {
    color: #fff;
    text-decoration: underline;
}

.special-announcement-bar a:hover {
    color: #f8f9fa;
}

/* Responsive Design - Desktop First Approach */
/* About Section Spacing */
.section.about-section {
    position: relative;
    z-index: 2; /* Ensure about section is above hero */
    margin-top: 0; /* Remove any negative margin */
}

/* Old responsive hero section styles removed */

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 20px 0;
        margin-top: -30px;
        min-height: 80vh;
    }
    
    .hero-section.home-hero .pt-24 {
        padding-top: 3rem;
    }
    
    .hero-section.home-hero .pb-16 {
        padding-bottom: 1.5rem;
    }
    
    .hero-section.home-hero .sm\:pt-32 {
        padding-top: 2rem;
    }
    
    .hero-section.home-hero .sm\:pb-24 {
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .lg\:pt-40 {
        padding-top: 3rem;
    }
    
    .hero-section.home-hero .lg\:pb-32 {
        padding-bottom: 2rem;
    }
    
    .hero-section.home-hero .text-4xl {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }
    
    .hero-section.home-hero .sm\:text-6xl {
        font-size: 2rem;
        line-height: 1;
    }
    
    .hero-section.home-hero .text-lg {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .hero-section.home-hero .mt-6 {
        margin-top: 0.75rem;
    }
    
    .hero-section.home-hero .mt-10 {
        margin-top: 1rem;
    }
    
    .hero-section.home-hero .px-3\.5 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section.home-hero .py-2\.5 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}



/* Special Announcement in Contact Page */
.special-announcement-contact {
    border-left: 4px solid #ff6b6b;
    background-color: #fff8f8;
    margin-bottom: 20px;
}

.special-announcement-contact i {
    color: #ff6b6b;
}

/* Mobile adjustments for announcement bar */
@media (max-width: 768px) {
    .special-announcement-bar .announcement-content {
        font-size: 0.9rem;
        padding: 6px 10px;
        gap: 5px;
    }
    
    .special-announcement-bar .announcement-content i {
        font-size: 1rem;
    }
    
    .special-announcement-contact {
        font-size: 0.9rem;
    }
}

.welcome-popup-buttons .btn-whatsapp:hover {
    background: #128C7E;
}

.welcome-popup-close {
    color: #aaa;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.welcome-popup-close:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-20px) scale(0.97); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* Mobile responsive adjustments for popup */
@media (max-width: 768px) {
    .welcome-popup-content {
        margin: 20% auto;
        width: 92%;
        max-width: 92%;
        max-height: 55vh;
    }
    
    .welcome-popup-image-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .welcome-popup-content-container {
        padding: 10px;
    }
    
    .welcome-popup-logo {
        max-width: 45px;
    }
    
    .welcome-popup-text h3 {
        font-size: 1rem;
        margin: 0 0 5px 0;
    }
    
    .welcome-popup-text p {
        font-size: 0.75rem;
    }
    
    .welcome-popup-buttons {
        gap: 5px;
    }
    
    .welcome-popup-buttons .btn {
        padding: 7px 8px;
        font-size: 0.7rem;
        gap: 4px;
        min-height: 32px;
    }
}

@media (max-width: 480px) {
    .welcome-popup-content {
        margin: 25% auto;
        max-height: 50vh;
    }
    
    .welcome-popup-image-container {
        flex: 0 0 22%;
    }
    
    .welcome-popup-image-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .welcome-popup-content-container {
        padding: 8px;
    }
    
    .welcome-popup-text h3 {
        font-size: 0.95rem;
    }
    
    .welcome-popup-buttons {
        gap: 4px;
    }
    
    .welcome-popup-buttons .btn {
        padding: 6px 7px;
        font-size: 0.65rem;
        min-height: 30px;
    }
    
    .welcome-popup-close {
        right: 6px;
        top: 5px;
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

/* Opening Hours Section */
.opening-hours-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

.opening-hours-section .section-title {
    color: #1a365d !important;
    font-weight: bold !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    position: relative;
    z-index: 2;
}

.hours-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Digital Watch Styles */
.digital-watch-container {
    display: none !important;
}

/* Horizontal Digital Watch Styles */
.digital-watch-horizontal {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px auto;
}

.digital-watch-horizontal .digital-watch {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
}

/* Animation Classes */
.animate-fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-down.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-zoom-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Modern Doctor Card Design */
.doctor-modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(3, 152, 158, 0.1);
    height: 100%; /* Ensure full height */
    min-height: 350px; /* Reduced minimum height */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    width: 100%;
}

/* .doctor-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
} */

.doctor-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #03989e, #027a80);
}

.doctor-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
    min-height: 400px; /* Reduced card height */
    justify-content: space-between;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.doctor-image-container {
    flex: 0 0 45%;
    position: relative;
    padding: 20px 0 30px 0;
    overflow: visible;
    width: 100%;
    height: 300px; /* Reduced image size */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    background: transparent;
}

.doctor-profile-image {
    width: 100%;
    max-width: 100%; /* Use full container width */
    height: 100%; /* Use full container height */
    object-fit: contain; /* Show full image without cutting */
    border-radius: 0; /* Simple rectangular shape */
    box-shadow: none; /* Remove box shadow for clean full container */
    object-position: center; /* Center the image */
    display: block; /* Ensure proper display */
    margin: 0 auto; /* Center the image */
    transform: scaleX(-1); /* Flip image horizontally */
    background: transparent; /* Ensure no background interference */
}





.doctor-info-container {
    flex: 0 0 55%;
    padding: 20px 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    align-self: flex-start; /* Align to top */
}

.doctor-header {
    margin-bottom: 25px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    width: 100%;
    text-align: left;
}

.doctor-name {
    color: #1a365d;
    font-size: 2.0rem; /* Reduced from 2.2rem */
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #03989e;
    font-weight: 600;
}

.doctor-experience i {
    font-size: 1.2rem;
}

.doctor-bio {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: left;
}

.doctor-bio p {
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6; /* Ensure consistent line spacing */
}

.specializations-title {
    color: #1a365d;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(3, 152, 158, 0.2);
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: left;
    width: 100%;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.specialization-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(3, 152, 158, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.specialization-item:hover {
    background: rgba(3, 152, 158, 0.1);
    transform: translateX(5px);
}

.specialization-item i {
    color: #03989e;
    font-size: 0.9rem;
}

.doctor-cta-section {
    margin-top: auto;
}

.btn-doctor-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #03989e 0%, #027a80 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(3, 152, 158, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-doctor-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(3, 152, 158, 0.4);
}

.btn-doctor-cta i {
    font-size: 1.2rem;
}

.doctor-contact {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #03989e;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1rem;
}

/* Highlight effect for target service section */
.highlight-service {
    animation: highlightService 2s ease-in-out;
}

@keyframes highlightService {
    0% { box-shadow: 0 0 0 0 rgba(3, 152, 158, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(3, 152, 158, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(3, 152, 158, 0); }
}

/* Modern Assistant Card Design */
.assistant-modern-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 30px;
    padding: 0; /* Ensure no internal padding */
}

.assistant-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Assistant Image - Fix zooming issue */
.assistant-image-wrapper {
    height: 260px; /* Increased from 220px to 260px */
    overflow: hidden; /* Changed back to hidden but with proper sizing */
    position: relative;
    background: transparent; /* Ensure no background */
    width: 100%;
    margin: 0;
    padding: 0;
}

.assistant-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image */
    object-position: center;
    transition: transform 0.4s ease;
    max-height: 100%;
    max-width: 100%;
    display: block; /* Ensure proper display */
    margin: 0 auto; /* Center the image */
    transform: scale(1); /* Prevent zooming to avoid head cropping */
}

.assistant-modern-card:hover .assistant-image {
    transform: scale(1); /* Prevent zooming to avoid head cropping */
}

.assistant-content {
    padding: 25px;
}

.assistant-name {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.assistant-position {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #03989e;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.assistant-position i {
    font-size: 0.9rem;
}

.qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.qualifications-list li:last-child {
    margin-bottom: 0;
}

.qualifications-list li i {
    color: #03989e;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Ensure proper spacing for assistant cards in the grid */
.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile-specific fixes for assistant cards - Match team-member-card behavior */
@media (max-width: 767.98px) {
    .assistant-modern-card {
        background: white !important;
        border: 2px solid #03989e !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        transition: transform 0.3s ease !important;
        height: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .assistant-modern-card .assistant-image-wrapper {
        height: 220px !important;
        overflow: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .assistant-modern-card .assistant-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Changed from cover to contain to prevent cropping */
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        transition: transform 0.5s ease !important;
        transform: scale(1) !important; /* Prevent zooming to avoid head cropping */
    }
    
    .assistant-modern-card:hover .assistant-image {
        transform: scale(1) !important; /* Prevent zooming on hover */
    }
    
    .assistant-content {
        padding: 20px !important;
        text-align: center !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure proper column padding on mobile */
    .row > [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablet-specific fixes */
@media (min-width: 768px) and (max-width: 991.98px) {
    .assistant-modern-card .assistant-image-wrapper {
        height: 240px !important;
    }
    
    .assistant-modern-card .assistant-image {
        object-fit: contain !important;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .doctor-modern-card {
        margin-bottom: 0; /* Remove margin to reduce gap */
    }
    
    .doctor-content-wrapper {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .doctor-image-container {
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
        width: 100%;
        height: 530px; /* Reduced height to reduce gap */
        align-items: center;
        justify-content: center;
        overflow: visible; /* Ensure visibility to prevent cutting */
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
        overflow: visible; /* Ensure visibility on mobile */
    }
    
    .image-frame img {
        object-position: center; /* Center align on mobile */
        transform: scale(1); /* Reset scale on mobile */
        padding: 0;
        margin: 0;
        object-fit: contain; /* Show full image without cutting */
        display: block; /* Ensure proper display */
    }
    
    .doctor-info-container {
        flex: 0 0 auto;
        padding: 30px;
        width: 100%;
    }
    
    /* Assistant images on tablet */
    .assistant-image-wrapper {
        height: 240px; /* Increased from 200px to 240px */
    }
    
    .assistant-image {
        object-fit: contain; /* Keep contain to show full image */
    }
}

@media (max-width: 767.98px) {
    .doctor-modern-card {
        border-radius: 15px;
        padding: 0;
        margin: 0;
        min-height: 350px; /* Reduced card height */ /* Reduced height */
        margin-bottom: 0; /* Remove margin to reduce gap */
    }
    
    .doctor-content-wrapper {
        padding: 0;
        margin: 0;
        flex-direction: column;
    }
    
    .doctor-image-container {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 350px; /* Reduced height to reduce gap */
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible; /* Ensure visibility to prevent cutting */
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        overflow: visible; /* Ensure visibility on mobile */
    }
    
    .image-frame img {
        object-position: center; /* Center align on mobile */
        transform: scale(1); /* Reset scale on mobile */
        padding: 0;
        margin: 0;
        object-fit: contain; /* Show full image without cutting */
        display: block; /* Ensure proper display */
    }
    
    .doctor-info-container {
        padding: 20px;
    }
    
    /* Assistant images on mobile - Fixed cropping issue */
    .assistant-image-wrapper {
        height: 220px; /* Increased from 180px to 220px */
        overflow: hidden; /* Ensure proper cropping */
    }
    
    .assistant-image {
        object-fit: contain; /* Keep contain to show full image */
        transform: scale(1); /* Prevent zooming */
    }
    
    .assistant-modern-card:hover .assistant-image {
        transform: scale(1); /* Prevent zooming on hover */
    }
}

@media (max-width: 575.98px) {
    .doctor-image-container {
        height: 350px; /* Reduced height to reduce gap */
        padding: 0;
        margin: 0;
        overflow: visible; /* Ensure visibility to prevent cutting */
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        overflow: visible; /* Ensure visibility on mobile */
    }
    
    .image-frame img {
        object-position: center; /* Center align on mobile */
        transform: scale(1); /* Reset scale on mobile */
        padding: 0;
        margin: 0;
        object-fit: contain; /* Show full image without cutting */
        display: block; /* Ensure proper display */
    }
    
    .assistant-image-wrapper {
        height: 200px; /* Increased from 160px to 200px */
        overflow: hidden; /* Ensure proper cropping */
    }
    
    .assistant-image {
        object-fit: contain; /* Keep contain to show full image */
        transform: scale(1); /* Prevent zooming */
    }
}

/* Team page specific doctor image border - simple rectangular shape */
.team-page .doctor-image-border,
.team-about-section .doctor-image-border {
    border-radius: 0; /* Simple rectangular shape */
}

.team-page .doctor-profile-image,
.team-about-section .doctor-profile-image {
    border-radius: 0; /* Simple rectangular shape */
    transform: scaleX(-1); /* Flip image horizontally */
    object-fit: contain; /* Ensure full image is visible without cropping */
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Home page team section doctor image - simple rectangular shape */
.home-page .doctor-image-border {
    border-radius: 0; /* Simple rectangular shape */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Ensure image is not cut off */
    width: 100%;
    height: 100%;
}

.home-page .doctor-profile-image {
    border-radius: 0; /* Simple rectangular shape */
    transform: scaleX(-1); /* Flip image horizontally */
    object-fit: contain; /* Ensure full image is visible without cropping */
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.assistant-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image */
    object-position: center;
    transition: transform 0.4s ease;
    max-height: 100%;
    max-width: 100%;
    display: block; /* Ensure proper display */
    margin: 0 auto; /* Center the image */
}

.assistant-modern-card:hover .assistant-image {
    transform: scale(1); /* Prevent zooming to avoid head cropping */
}

.assistant-content {
    padding: 25px;
}

.assistant-name {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.assistant-position {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #03989e;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.assistant-position i {
    font-size: 0.9rem;
}

.qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.qualifications-list li:last-child {
    margin-bottom: 0;
}

.qualifications-list li i {
    color: #03989e;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .doctor-modern-card {
        margin-bottom: 0;
    }
    
    .doctor-content-wrapper {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .doctor-image-container {
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
        width: 100%;
        height: 580px; /* Increased image size */
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
    
    .doctor-info-container {
        flex: 0 0 auto;
        padding: 30px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .doctor-modern-card {
        border-radius: 15px;
        padding: 0;
        margin: 0;
        min-height: 400px; /* Reduced card height */
        margin-bottom: 0;
    }
    
    .doctor-content-wrapper {
        padding: 0;
        margin: 0;
        flex-direction: column;
    }
    
    .doctor-image-container {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 450px; /* Increased image size */
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
    
    .doctor-info-container {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .doctor-image-container {
        height: 400px; /* Increased image size */
        padding: 0;
        margin: 0;
        overflow: visible;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .image-frame {
        max-width: 100%;
        height: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
    
    .image-frame img {
        object-position: center;
        transform: scale(1);
        padding: 0;
        margin: 0;
        object-fit: contain;
        display: block;
    }
    
    .assistant-image-wrapper {
        height: 200px;
    }
}
.digital-watch-horizontal .watch-header {
    text-align: center;
    margin-bottom: 15px;
}

.digital-watch-horizontal .watch-brand {
    color: #03989e;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.digital-watch-horizontal .watch-display {
    background: #000;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.digital-watch-horizontal .watch-time {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #03989e;
    text-shadow: 0 0 10px rgba(3, 152, 158, 0.7);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.digital-watch-horizontal .watch-date {
    font-family: 'Courier New', monospace;

    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
}

.digital-watch-horizontal .watch-bezel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    pointer-events: none;
}

/* Glowing effect for the watch */
.digital-watch-horizontal .digital-watch:hover {
    animation: watchGlow 3s infinite alternate;
}

@keyframes watchGlow {
    0% {
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.5),
            inset 0 0 10px rgba(0, 0, 0, 0.5);
    }
    100% {
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.5),
            inset 0 0 10px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(3, 152, 158, 0.3);
    }
}

/* Digital time pulsing effect */
.digital-watch-horizontal .watch-time {
    animation: timePulse 2s infinite;
}

@keyframes timePulse {
    0% { text-shadow: 0 0 5px rgba(3, 152, 158, 0.5); }
    50% { text-shadow: 0 0 15px rgba(3, 152, 158, 0.8), 0 0 25px rgba(3, 152, 158, 0.6); }
    100% { text-shadow: 0 0 5px rgba(3, 152, 158, 0.5); }
}

.hours-content {
    flex: 1;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hours-table:hover {
    transform: translateY(-5px);
}

.hours-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.hours-table th {
    background: linear-gradient(90deg, #03989e, #027a80, #03989e);
    z-index: 1;
}

.hours-table th {
    background: linear-gradient(135deg, #03989e 0%, #027a80 100%);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.hours-table th:first-child {
    border-top-left-radius: 15px;
}

.hours-table th:last-child {
    border-top-right-radius: 15px;
}

.hours-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table tr:hover {
    background: #f0f8ff;
    transform: scale(1.01);
}

.hours-table tr:hover td {
    background: linear-gradient(90deg, rgba(3, 152, 158, 0.05), transparent);
}

.day-name {
    font-weight: 600;
    color: #1a365d;
    font-size: 1.1rem;
}

.day-hours {
    color: #666;
    font-weight: 500;
}

.hours-table .closed {
    color: #dc3545;
    font-weight: 600;
}

/* Unique decorative elements */
.hours-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(3, 152, 158, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hours-decoration-1 {
    top: -50px;
    right: -50px;
}

.hours-decoration-2 {
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(3, 152, 158, 0.05) 0%, transparent 70%);
}

/* Floating elements animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hours-float {
    animation: float 6s ease-in-out infinite;
}

/* Modern card design for hours */
.hours-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(3, 152, 158, 0.1);
    border: 1px solid rgba(3, 152, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.hours-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.hours-card::before {
    height: 4px;
    background: linear-gradient(90deg, #03989e, #027a80);
}

@media (max-width: 768px) {
    .hours-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    

    
    .watch-time {
        font-size: 1.5rem;
    }
    
    .hours-table {
        font-size: 0.9rem;
    }
    
    .hours-table th,
    .hours-table td {
        padding: 15px;
    }
    
    .hours-decoration {
        display: none;
    }
}

/* Opening Hours Compact (existing styles) */
.hours-compact-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hours-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hours-compact-item {
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    text-align: center;
    transition: all 0.3s ease;
}

.hours-compact-item:hover {
    background: #03989e;
    color: white;
    transform: translateY(-5px);
}

.hours-compact-item:hover .day-name,
.hours-compact-item:hover .day-hours {
    color: white;
}

.hours-compact-item.closed {
    background: #f8d7da;
}

.hours-compact-item.closed:hover {
    background: #dc3545;
}

.day-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a365d;
}

.day-hours {
    color: #6c757d;
    font-size: 0.9rem;
}

/* About Page Image Styles */
.about-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Ensure visibility to prevent image cutting */
}

.about-image-border {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Uneven border shape */
    overflow: visible; /* Changed from hidden to visible to prevent image cutting */
}

/* Mobile-specific styles for sticky header, logo, and language switcher */
@media (max-width: 768px) {
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 100px !important; /* Increased height to account for navbar */
        margin: 0 !important;
    }
}

.day-hours {
    color: #6c757d;
    font-size: 0.9rem;
}

/* About Page Image Styles */
.about-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Ensure visibility to prevent image cutting */
}

.about-image-border {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Uneven border shape */
    overflow: visible; /* Changed from hidden to visible to prevent image cutting */
}

/* Mobile-specific styles for sticky header, logo, and language switcher */
@media (max-width: 768px) {
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 100px !important; /* Increased height to account for navbar */
        margin: 0 !important;
    }
}

/* Force white h1 on mobile - add this at the END of your CSS */
@media (max-width: 991.98px) {
    .fresh-hero-section .fresh-hero-title,
    .hero-section .fresh-hero-title,
    body.home-page .fresh-hero-title {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important; /* Improves readability on image BG */
    }
}

/* Force red flipping animation text - add this at the END of your CSS */
.flip-text-animation,
.praxis-underline,
.praxis-underline span {
    color: #dc3545 !important; /* Red for text */
}

/* Ensure flip text positioning takes precedence */
.flip-text-animation {
    margin-top: 3rem !important;
    position: relative !important;
    z-index: 100 !important;
}

#flip-text, #flip-text-mobile {
    margin-top: 8rem !important;
    position: relative !important;
    top: 2rem !important;
    z-index: 100 !important;
}

.praxis-underline::after {
    background: #dc3545 !important; /* Ensure underline stays red */
}

/* Mobile-specific for better visibility */
@media (max-width: 991.98px) {
    .flip-text-animation,
    .praxis-underline {
        color: #dc3545 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important; /* Shadow for contrast on mobile BG */
    }
}

/* Unified hero background - same image on all devices, add at END of CSS */
.fresh-hero-section,
.hero-section.home-hero {
    background: url('../images/praxisamhollenbach 1347.png') no-repeat center 20% !important;
    background-size: cover !important; /* Scales properly on mobile/desktop */
    background-position: center 20% !important; /* Consistent positioning */
}

/* If you want slight mobile adjustment (e.g., position shift) without changing image: */
@media (max-width: 991.98px) {
    .fresh-hero-section,
    .hero-section.home-hero {
        background: url('../images/praxisamhollenbach 1347.png') no-repeat center center !important;
        background-size: cover !important;
        min-height: 85vh !important; /* Increased height for mobile */
    }
}

/* Final override rules to ensure proper positioning */
.flip-text-animation {
    margin-top: 3rem !important;
    position: relative !important;
    z-index: 1000 !important;
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: fit-content !important;
}

#flip-text, #flip-text-mobile {
    margin-top: 6rem !important; /* Reduced from 8rem */
    position: relative !important;
    top: 1rem !important; /* Reduced from 2rem */
    z-index: 1000 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: fit-content !important;
    font-size: 2rem !important;
}

@media (max-width: 991px) {
    #flip-text, #flip-text-mobile {
        margin-top: 3rem !important; /* Reduced from 4rem */
        top: 0.5rem !important; /* Reduced from 1rem */
font-size: 2.5rem !important;    }
}

@media (max-width: 576px) {
    #flip-text, #flip-text-mobile {
        margin-top: 3rem !important; /* Reduced from 4rem */
        top: 0.5rem !important; /* Reduced from 1rem */
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    #flip-text, #flip-text-mobile {
        margin-top: 3rem !important; /* Reduced from 4rem */
        top: 0.5rem !important; /* Reduced from 1rem */
        font-size: 2.5rem !important;
    }
}

/* Hide hero title on all devices - placed at end to ensure override */
.home-page .fresh-hero-title {
    display: none !important;
}