@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    overflow-x: hidden !important; /* Force prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw; /* Ensure body doesn't exceed viewport width */
    position: relative;
}

/* Add helper class for debugging mobile view */
body.mobile-view .carousel-item.active {
    position: relative !important;
    left: 0 !important;
}
.navbar {
    width: 100%;
    background: #3a658c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 8vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.navbar .nav-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.navbar .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar .nav-icon {
    height: 45px;
    width: 45px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}
.navbar .nav-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88vh; /* Increased from 82vh to 88vh for more height */
    padding: 8vh 8vw 6vh; /* Added bottom padding */
    background: #fff;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    background-image: 
        linear-gradient(rgba(58, 101, 140, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 101, 140, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    box-sizing: border-box;
    width: 100%;
}
.hero-content {
    flex: 0 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Ensure left alignment on desktop */
    text-align: left; /* Ensure text is left-aligned on desktop */
    z-index: 3;
    animation: heroFadeIn 1.2s cubic-bezier(.77,0,.18,1) 0.2s both;
}
/* Background pattern animation - very slow horizontal movement */
@keyframes gridMoveHorizontal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

.hero-section {
    animation: gridMoveHorizontal 120s infinite linear;
    position: relative;
    padding-bottom: 10px;
}

/* Add a subtle gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}
.hero-content h1 .highlight {
    color: #3a658c;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.2rem;
}
.hero-content .cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    width: 100%;
    max-width: 400px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Left-aligned by default for desktop */
}

.hero-content .cta-btn {
    background: #fff;
    color: #3a658c;
    border: 2px solid #3a658c;
    border-radius: 6px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(51,88,124,0.08);
    text-decoration: none;
}
.hero-content .cta-btn:hover {
    background: #3a658c;
    color: #fff;
}

.hero-content .book-now-btn {
    background: #bb342f;
    color: #fff;
    border: 2px solid #bb342f;
}
.hero-content .book-now-btn:hover {
    background: #fff;
    color: #bb342f;
}
.hero-content .desc-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.2rem;
}
.hero-content .desc-row .switch {
    width: 54px;
    height: 24px;
    background: #f2f2f2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 2px 6px;
    gap: 3px;
}
.hero-content .desc-row .switch span {
    display: block;
    width: 14px;
    height: 14px;
    background: #e0e0e0;
    border-radius: 50%;
}
.hero-content .desc-row .switch span.active {
    background: #3a658c;
}
.hero-content .desc-row .desc {
    font-size: 1rem;
    color: #222;
}
.hero-content .open-days {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}
.hero-img {
    flex: 0 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: heroImgIn 1.2s cubic-bezier(.77,0,.18,1) 0.5s both;
}
.hero-img img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(51,88,124,0.15);
    transition: transform 0.3s ease;
    object-fit: contain;
    width: 100%;
    box-sizing: border-box;
}
.hero-img img:hover {
    transform: translateY(-5px);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 50px; /* Increased from 20px to 50px to move it down */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50; /* Ensures it's on top of all content */
    cursor: pointer;
    animation: fadeInUp 1s ease-in-out 1s forwards, bounce 2s infinite 2s;
    opacity: 0;
    width: auto;
    box-sizing: border-box;
    margin: 0 auto; /* Center horizontally */
}

.scroll-arrow {
    color: #3a658c;
    font-size: 1.5rem;
    animation: arrowBounce 2s infinite;
}

.scroll-text {
    color: #3a658c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Contact Info Bar */
.contact-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 8vw; /* Increased padding from 0.75rem to 1.5rem */
    margin-top: 1.5rem; /* Added margin-top to create space after hero section */
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 10vh;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #3a658c;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(58, 101, 140, 0.1);
    border-radius: 50%;
}

.contact-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #333;
    font-size: 0.95rem;
}

.contact-value {
    font-weight: 500;
}

.contact-divider {
    margin: 0 0.6rem;
    color: #aaa;
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 8vw;
    background-color: #3a658c;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 150px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
}

.feature-icon i {
    font-size: 4.5rem;
    color: #3a658c;
}

.feature-title {
    font-size: 1.4rem;
    color: #3a658c;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.feature-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 6vw;
    background-color: #f8f9f9;
    max-width: 1500px;
    margin: 0 auto;
}

.faq-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-heading {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
}

.faq-content {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: stretch;
    min-height: 600px;
}

.faq-list {
    flex: 0 1 48%;
}

.faq-image {
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: stretch;
}

.faq-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 500px;
    display: block;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.faq-item {
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 1.8rem 2rem;
    cursor: pointer;
    position: relative;
    gap: 1.2rem;
}

.faq-icon {
    font-size: 1.3rem;
    color: #3a658c;
    flex-shrink: 0;
    min-width: 1.3rem;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-grow: 1;
    padding-right: 2rem;
    line-height: 1.5;
}

.faq-toggle {
    background: rgba(58, 101, 140, 0.1);
    border: none;
    font-size: 1.2rem;
    color: #3a658c;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 2rem;
    border-radius: 50%;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    background-color: #f9f9f9;
}

.faq-answer p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 2rem;
}

.faq-contact {
    text-align: center;
    margin-top: 3.5rem;
    font-size: 1.15rem;
    color: #555;
    padding: 1rem 0;
}

.faq-contact p {
    margin: 0;
    line-height: 1.6;
}

.faq-contact a {
    color: #3a658c;
    font-weight: 600;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    transition: color 0.3s;
}

.faq-contact a:hover {
    color: #e96060;
    text-decoration: underline;
}

/* Testimonial Section */
.testimonial-section {
    padding: 8rem 0 4rem;  /* Increased bottom padding from 8rem to 10rem */
    margin-bottom: 4rem;
    margin-right: 0;
    margin-left: 0;
    background-color: #ffffff; /* Changed to match hero section */
    position: relative;
    overflow: visible !important; /* Changed to visible to show drop shadows */
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw; /* Ensure it never exceeds viewport width */
    /* Using the same grid pattern as hero section */
    background-image: 
        linear-gradient(rgba(58, 101, 140, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 101, 140, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Adding the same animation as hero section */
    animation: gridMoveHorizontal 120s infinite linear;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.testimonial-header {
    padding: 0 8vw 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure header appears above the pattern overlay */
}

.testimonial-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d3d56;
    margin: 0;
    text-align: center;
}

.testimonial-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    position: relative;
    z-index: 2; /* Ensure content appears above the pattern overlay */
    margin: 0 auto;
    padding: 0 4vw 4rem; /* Increased bottom padding from 2rem to 4rem */
    gap: 4rem;
    overflow: visible !important; /* Changed to visible to show drop shadows */
    box-sizing: border-box;
    width: 100%;
    position: relative; /* Added for positioning context */
    left: 0;
    right: 0;
}

.testimonial-text {
    flex: 0 1 40%;
    padding-right: 2rem;
}

.testimonial-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.testimonial-text .highlight {
    color: #3a658c;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 2rem;
}

.get-started-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3a658c;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.get-started-btn:hover {
    background-color: #0d3d56;
    transform: translateY(-3px);
}

.testimonial-carousel {
    flex: 0 1 55%;
    position: relative;
    height: 550px; /* Increased height to accommodate larger images */
    display: block;
    overflow: visible; /* Changed to visible to show drop shadows */
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 70px; /* Reduced padding */
    max-width: 100%; /* Ensure it doesn't exceed container width */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100% - 80px); /* Increased from 60px to 80px to accommodate shadow */
    perspective: 1000px;
    overflow: visible; /* Changed to visible to show drop shadows */
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure it doesn't exceed the parent width */
    left: 0;
    right: 0;
    margin: 0 auto;
    padding-bottom: 35px; /* Added padding at the bottom for shadow */
}

.carousel-item {
    position: absolute;
    width: 80%;
    height: auto; /* Changed from 100% to auto to fit content */
    min-height: 450px; /* Add minimum height to maintain card size */
    top: 0;
    left: 50%; /* Center the carousel item */
    border-radius: 10px;
    overflow: hidden; /* Changed to hidden to prevent content overflow */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Enhanced shadow */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease, left 0.5s ease;
    will-change: transform, opacity, left;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    /* Default state for desktop */
    transform: translateX(-50%) scale(0.8); /* Center + scale */
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    max-width: 100%; /* Ensure it doesn't exceed the parent width */
    right: auto; /* Prevent right positioning */
    margin-left: auto;
    margin-right: auto;
}

.carousel-item img {
    width: 100%;
    height: 240px; /* Fixed height instead of percentage */
    object-fit: cover;
    display: block; /* Prevent any extra spacing */
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 180px; /* Adjusted height for better proportions */
        object-fit: cover; /* Ensure image fills the space properly */
        width: 100%;
    }
}

.testimonial-quote {
    padding: 1.25rem 1.5rem; /* Increased padding */
    height: auto; /* Auto height based on content */
    min-height: 180px; /* Ensure minimum height for desktop view */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space between quote and author */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box; /* Include padding in height calculation */
    flex: 1; /* Take remaining space in the flex container */
}

/* Banner Section */
.banner-section {
    background: linear-gradient(135deg, #3a658c 0%, #0d3d56 100%);
    padding: 5rem 0;
    margin-top: 4rem;
    margin-bottom: 6rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.banner-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background-color: #e96060;
    color: white;
    box-shadow: 0 4px 6px rgba(233, 96, 96, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: #d45050;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 96, 96, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Responsive styles for the banner section */
@media (max-width: 768px) {
    .banner-section h2 {
        font-size: 2rem;
    }
    
    .banner-section p {
        font-size: 1.1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 80%;
        text-align: center;
    }
}

.testimonial-quote p {
    font-style: italic;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0.75rem; /* Reduced margin */
    font-size: 0.95rem; /* Slightly smaller for better fit */
    position: relative;
    max-width: 100%; /* Ensure text doesn't overflow */
}

.testimonial-quote p::before {
    content: '"';
    font-size: 2.5rem; /* Smaller quote mark */
    color: #3a658c;
    opacity: 0.2;
    position: absolute;
    top: -0.7rem; /* Adjusted position */
    left: -0.3rem; /* Adjusted position */
    z-index: 0;
}

.quote-author {
    display: flex;
    flex-direction: column;
    margin-top: 1rem; /* Increased space between quote and author */
    padding: 0.5rem 0 0.75rem; /* Added more top padding */
    max-width: 100%; /* Ensure it doesn't exceed the container width */
    overflow: hidden; /* Prevent overflow */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Add a subtle separator */
}

.quote-author h4 {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.05rem 0; /* Reduced bottom margin */
    font-size: 0.95rem; /* Slightly smaller font size */
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

.quote-author span {
    font-size: 0.8rem; /* Slightly smaller */
    color: #777;
    line-height: 1.2; /* Tighter line height */
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

.carousel-item.active {
    z-index: 3;
    transform: translateX(-50%) scale(1); /* Center and scale */
    opacity: 1;
    visibility: visible;
    left: 50%;
    margin-bottom: 35px; /* Add margin to account for shadow */
}

.carousel-item.next {
    z-index: 2;
    transform: translateX(-30%) scale(0.9); /* Offset right while keeping centered */
    opacity: 0.7;
    visibility: visible;
    left: 50% !important; /* Same left position as active */
}

.carousel-item.last {
    z-index: 1;
    transform: translateX(-70%) scale(0.8); /* Offset left while keeping centered */
    opacity: 0.5;
    visibility: visible;
    left: 50% !important; /* Same left position as active */
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the controls */
    gap: 40px; /* Add consistent spacing between controls */
    margin-top: 2rem;
    width: 100%; /* Full width to allow proper centering */
    box-sizing: border-box;
    position: absolute;
    z-index: 50;
    bottom: 20px; /* Maintain position */
    left: 0; /* Align to left edge */
    right: 0; /* Align to right edge */
    left: 50%;
    transform: translateX(-50%);
}

.carousel-control {
    background: #3a658c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    margin: 0 8px;
}

.carousel-control:hover {
    background: #0d3d56;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 4px;
}

.indicator.active {
    background-color: #3a658c;
    transform: scale(1.3);
    box-shadow: 0 1px 4px rgba(58, 101, 140, 0.5);
}

/* Responsive styles for testimonial section */
@media (max-width: 1024px) {
    .testimonial-content {
        flex-direction: column;
        gap: 2rem;
        overflow: visible !important; /* Ensure overflow is visible for shadows */
    }
    
    .testimonial-text {
        flex: 0 1 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .testimonial-carousel {
        flex: 0 1 100%;
        height: 600px; /* Increased height to accommodate larger images */
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-bottom: 60px; /* Reduced padding */
        overflow: visible; /* Ensure overflow is visible for shadows */
    }
    
    .carousel-controls {
        margin: 2rem auto 0;
        position: relative;
        z-index: 50;
        width: 90%;
        max-width: 280px;
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .testimonial-header h2 {
        font-size: 2rem;
    }
    
    .testimonial-text h3 {
        font-size: 1.6rem;
    }
    
    /* Mobile carousel - simpler design with single card */
    .testimonial-carousel {
        height: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        overflow: visible;
        padding-bottom: 100px; /* Space for controls */
    }
    
    .carousel-container {
        height: auto;
        position: relative;
        width: 100%;
        overflow: visible;
        perspective: none; /* Disable 3D effects */
        transform-style: flat; /* Disable 3D effects */
        left: 0 !important; /* Reset position */
        right: 0 !important; /* Reset position */
        margin: 0 auto !important; /* Center container */
    }
    
    .carousel-item {
        width: 100%;
        height: auto;
        position: absolute;
        top: 0;
        left: 0 !important; /* Override any left positioning */
        opacity: 0;
        visibility: hidden;
        transform: none !important; /* Override any transforms */
        transition: opacity 0.4s ease;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        margin: 0 !important; /* Reset margins */
    }
    
    .carousel-item.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        left: 0 !important; /* Force left: 0 for mobile */
        transform: none !important; /* Override any transforms */
    }
    
    /* Hide non-active items completely */
    .carousel-item.next, 
    .carousel-item.last {
        display: none !important; /* Force hide with !important */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important; /* Override any transforms */
        left: 0 !important; /* Reset position */
    }
    
    /* Override any desktop positioning that might be interfering */
    body.mobile-view .carousel-item {
        transform: none !important;
        left: 0 !important;
        margin: 0 !important;
    }
    
    /* Make sure testimonial quote text is fully visible */
    .testimonial-quote {
        height: auto;
        min-height: auto; /* Auto height for mobile */
        padding: 20px;
        justify-content: flex-start; /* Top align content on mobile */
    }
}

@media (max-width: 480px) {
    .testimonial-section {
        padding-bottom: 5rem; /* Reduced padding */
        overflow: visible; /* Ensure overflow is visible for shadows */
    }
    
    .testimonial-carousel {
        height: auto;
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        overflow: visible;
        padding-bottom: 70px; /* Space for controls */
    }
    
    .carousel-item {
        border-radius: 8px;
        overflow: hidden; /* Prevent content from spilling out */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .testimonial-quote {
        height: auto;
        min-height: 35%; /* Reduced to accommodate larger images */
        padding: 12px; /* Slightly increased padding */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align content to top */
    }
    
    .testimonial-author {
        padding: 8px; /* Reduced padding */
        margin-top: 0; /* Remove margin */
    }
    
    .testimonial-quote p {
        font-size: 0.9rem; /* Reduced font size */
        line-height: 1.4; /* Reduced line height */
        margin-bottom: 0.5rem; /* Reduced margin */
    }
    
    .quote-author {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05); /* Lighter border for mobile */
    }
    
    .quote-author h4 {
        font-size: 0.95rem;
    }
    
    .quote-author span {
        font-size: 0.75rem;
    }
    
    .carousel-container {
        width: 100%;
        position: relative;
        overflow: visible; /* Changed to visible to show drop shadows */
        height: calc(100% - 80px); /* Increased from 60px to 80px */
        left: 0;
        right: 0;
        margin: 0 auto;
        padding-bottom: 30px; /* Increased padding for controls */
        display: flex;
        justify-content: center; /* Center align the container content */
    }
    
    .carousel-item {
        width: 90%; /* Reduced from 100% to match control width */
        position: absolute;
        left: 50% !important; /* Center the carousel item */
        top: 0;
        transform: translateX(-50%) !important; /* Center the carousel item */
        transform-origin: center !important;
        transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
        margin: 0 auto !important;
        height: auto; /* Allow height to adjust to content */
    }
    
    .testimonial-quote {
        height: auto; /* Allow height to adjust to content */
        min-height: 60%; /* Ensure minimum height */
    }
    
    .testimonial-quote p {
        font-size: 0.95rem; /* Slightly increased */
    }
    
    .carousel-controls {
        width: 90%; /* Match width with carousel item */
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        box-sizing: border-box;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
    }
    
    /* Improve mobile button controls */
    .carousel-control {
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

/* Footer Section */
.footer-section {
    background-color: #0d3d56;
    color: #fff;
    padding: 5rem 0 0;
    position: relative;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 0 0 100%;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 0 0 22%;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background-color: #e96060;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #e96060;
}

.contact-info li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.contact-info li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #e96060;
}

.hours li {
    display: flex;
    flex-direction: column;
    color: #ccc;
    font-size: 0.95rem;
}

.hours li span {
    font-weight: 600;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #e96060;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #e96060;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-column {
        flex: 0 0 47%;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info li {
        padding-left: 0;
    }
    
    .contact-info li i {
        position: static;
        margin-right: 5px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0;
    }
    .navbar .nav-title {
        font-size: 1.8rem;
    }
    .navbar .nav-icon {
        height: 38px;
        width: 38px;
    }
    
    .scroll-down-indicator {
        bottom: 80px; /* Positioned lower in the empty space */
        z-index: 10;
    }
    
    .hero-section {
        flex-direction: column;
        padding-top: 64px;
        padding-bottom: 80px; /* Added bottom padding for more space */
        gap: 0;
        width: 100%;
        overflow-x: hidden;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .hero-content, .hero-img {
        padding: 2vw 0;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-content {
        padding: 2vw 0;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-content .cta-buttons {
        justify-content: center; /* Center buttons on mobile */
        max-width: 100%; /* Allow buttons to use full width on mobile */
    }
    
    .hero-content .cta-btn {
        padding: 0.7rem 1.5rem; /* Slightly smaller padding on mobile */
        font-size: 1rem; /* Slightly smaller font on mobile */
        min-width: 120px; /* Ensure minimum width for buttons */
        text-align: center; /* Center text in buttons */
    }
    .hero-img {
        justify-content: center;
        padding: 0 4vw 8vw; /* Increased bottom padding from 4vw to 8vw */
        position: relative; /* Position relative for absolute positioning context */
        margin-bottom: 60px; /* Increased margin from 40px to 60px */
    }
    .hero-img img {
        max-height: 400px;
    }
    /* Mobile-specific hero section adjustments */
    .shape.square {
        width: 80px;
        height: 80px;
        bottom: 10%;
        right: 5%;
    }
    .shape.triangle {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid #3a658c;
        top: 70%;
        left: 10%;
    }
    .shape.plus {
        width: 60px;
        height: 15px;
        top: 25%;
        right: 15%;
    }
    .shape.plus::after {
        width: 15px;
        height: 60px;
        top: -22.5px;
        left: 22.5px;
    }
}

/* Added query for small mobile screens */
@media (max-width: 480px) {
    .hero-content .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    /* Fix scroll indicator position on small screens */
    .scroll-down-indicator {
        bottom: 100px; /* Moved down further to position it in the empty space */
        background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
        padding: 5px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .scroll-arrow {
        font-size: 1.2rem;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .hero-content .cta-btn {
        width: 80%; /* Make buttons wider on very small screens */
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-title {
        font-size: 1.6rem;
    }
    
    .contact-info-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 4vw;
        height: auto;
    }
    
    .contact-item {
        width: 100%;
    }
    
    .contact-details {
        font-size: 0.85rem;
    }
    
    .features-section {
        flex-direction: column;
        padding: 3rem 4vw;
        gap: 1.5rem;
    }
    
    .faq-section {
        padding: 4rem 4vw;
    }
    
    .faq-content {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .faq-heading {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .faq-image {
        order: -1;
        flex: 0 0 100%;
        max-width: 550px;
        height: 400px;
        margin: 0 auto;
    }
    
    .faq-content {
        min-height: auto;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.05rem;
    }
    
    .faq-toggle {
        right: 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.5rem;
    }
    .navbar .nav-icon {
        height: 32px;
        width: 32px;
    }
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-img img {
        max-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-img img {
        max-height: 350px;
    }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroImgIn {
    from { opacity: 0; transform: scale(0.96) translateY(40px); }
    to { opacity: 1; transform: none; }
}
@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(5px) rotate(-5deg); }
}

/* Services Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-header {
    background-color: #3a658c;
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #e0e0e0;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-intro {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-color: #3a658c;
}

.service-item i {
    font-size: 2.5rem;
    color: #3a658c;
    margin-bottom: 1rem;
}

.service-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.book-appointment-link {
    color: #3a658c;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.book-appointment-link:hover {
    color: #0d3d56;
}

body.modal-open {
    overflow: hidden;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.25rem;
    }
    
    .service-item i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-item h3 {
        font-size: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-item i {
        font-size: 1.75rem;
    }
    
    .service-item h3 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-intro {
        font-size: 1rem;
    }
}
