/* ==================================== */
/* 1. Variables, Reset, and Typography */
/* ==================================== */

:root {
    --color-green: #4CAF50; 
    --color-red: #D32F2F; 
    --color-text-dark: #263238; 
    --color-white: #FFFFFF;
    --color-light-grey: #F5F5F5;
    --color-shadow: rgba(0,0,0,0.15);
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-green);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem; 
    font-size: 2.2rem;
    border-bottom: 3px solid var(--color-green);
    display: block; 
    padding-bottom: 0.5rem;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
}

.light-bg {
    background-color: var(--color-light-grey);
}

/* --- CTA Button Styling (Red) --- */
.cta-button {
    background-color: var(--color-red);
    color: var(--color-white) !important;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button-nav {
    background-color: var(--color-red);
    height: 2.4rem;
    color: var(--color-white) !important;
    /*padding: 0.75rem 1.75rem;*/
    border: none;
    border-radius: 15px; 
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    /*box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);*/
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #B71C1C; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.4);
}

.cta-button-nav:hover {
    background-color: #B71C1C; 
    /*transform: translateY(-2px);*/
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.4);
}

/* ==================================== */
/* 2. Header & Hero Video Styling */
/* ==================================== */

.hero-section {
    position: relative;
    height: 100vh; /* Full screen height */
    width: 100%;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the text */
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important: makes video cover the area */
}

.hero-content {
    position: absolute;
    z-index: 30; /* Above the slider */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white; /* Ensure text is visible */
    pointer-events: none; /* Allows clicking through to buttons if needed */
}

.hero-content .container {
    pointer-events: auto; /* Re-enable clicks for the button */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens video for text readability */
}

/* Ensure content is always visible regardless of slide */
.hero-content {
    position: absolute;
    z-index: 50; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content a {
    pointer-events: auto;
}


.header-top-bar {
    position: absolute;
    height: 5rem;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100000;
}

.logo {
    color: var(--color-white); 
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

/* Hero Content - Text over Video */
.hero-content {
    position: absolute;
    z-index: 50;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--color-light-grey);
    margin-bottom: 0.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-content a.cta-button {
    margin-bottom: 3rem; 
}


/* --- Mobile Navigation (Side Drawer Improvement) --- */
.main-nav {
    display: block; 
    position: fixed;
    top: 0; 
    left: 0;
    height: 100%;
    width: 189px; 
    background-color: var(--color-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.main-nav.active {
    transform: translateX(0);
}

.main-nav ul {
    list-style: none;
    padding-top: 5rem;
    gap: 0.5rem;
}

.main-nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.main-nav ul li a:hover {
    background-color: var(--color-green);
    color: var(--color-white); 
}

/* Style for the active link on the current page (Register page) */
.main-nav ul li a.active {
    background-color: var(--color-red);
    color: var(--color-white) !important;
}

/* Hamburger Icon Styling */
.hamburger {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 25; 
    position: relative; 
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-green); 
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X Transformation */
.hamburger.is-active span:nth-child(1) {
    background-color: var(--color-green); 
    transform: translateY(11px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0; 
}

.hamburger.is-active span:nth-child(3) {
    background-color: var(--color-red); 
    transform: translateY(-11px) rotate(-45deg);
}

/* ==================================== */
/* 3. Content Styling (Sections) */
/* ==================================== */

/* Services Grid */
.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

/* Service Card Styling */
.service-card {
    background-color: transparent; 
    border: none; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: none; 
    transition: transform 0.3s ease;
    text-align: left;
    display: flex; 
    flex-direction: column;
}

.service-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
} 

.service-image {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    display: block;
    /*border-radius: 0px; */
    border: none; 
}

/* Card Content (Text Block) Styling - Solid Red Background */
.card-content {
    padding: 0.3rem 0rem; 
    background-color: var(--color-red); 
    color: var(--color-white); 
    text-align: center; 
    border-radius: 0px; 
    position: relative;
}


/* Ensure nested elements maintain white contrast on red background */
.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-white); 
    font-size: 1.3rem;
    font-weight: 700;
}
.card-content p {
    color: var(--color-white); 
    margin: 0;
}
.card-content i {
    color: var(--color-white); 
    margin-right: 0.5rem;
}

/* Sticky Sidebar Logic (For Desktop only) */
@media (min-width: 993px) {
    .sidebar-sticky-wrapper {
        position: sticky;
        top: 100px; /* Keeps the booking box visible while scrolling */
    }
}

/* Sidebar Box */
.cta-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: sticky;
    top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NEW TESTIMONIALS STYLING --- */
.testimonials-slider {
    /* Testimonials remains a static grid for now, but its name suggests a potential slider */
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-green);
    text-align: center;
}

.testimonial-card i {
    color: var(--color-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--color-text-dark);
}

/* =============================== */
/* TOGGLE TESTIMONIALS SECTION */
/* =============================== */

.toggle-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    user-select: none;
}


.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

/* Hidden by default */
.testimonials-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Active state */
.testimonials-content.active {
    max-height: 2000px; 
}

.toggle-header.active .toggle-icon {
    transform: rotate(180deg);
}

/* --- END TESTIMONIALS STYLING --- */

/* ==================================== */
/*    Patient Info/FAQ Grid             */
/* ==================================== */

.info-grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* Stacks everything on mobile */
}

/* Hours & Insurance Group (Stacks on mobile, side-by-side on tablet) */
.info-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem; /* Space before FAQ on mobile */
}

.info-block {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--color-white);
    transition: box-shadow 0.3s ease; 
}
.info-block:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* card look */
.red-card {
    border-top: none; 
    border-left: 5px solid var(--color-red);
}
.green-card {
    border-top: none;
    border-left: 5px solid var(--color-green);
}

.info-block h3, .faq-section h3 {
    text-align: left;
    color: var(--color-green); 
    margin-bottom: 1rem;
    font-size: 1.4rem;
    /* Ensure H3 elements do not inherit the large H2 border style */
    border-bottom: none; 
    padding-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    display: block; 
}

.info-block i, .faq-section i {
    color: var(--color-green);
    margin-right: 0.5rem;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

.info-block ul li {
    padding: 0.3rem 0;
    font-size: 1rem;
}

/* FAQ Collapsible (Styling for button) */
.faq-title {
    display: block;
    width: 100%;
    text-align: left;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: background-color 0.3s;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.faq-title:hover {
    background-color: var(--color-light-grey);
}

.faq-content {
    /* JavaScript will toggle max-height for smooth transition */
    max-height: 0; 
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-top: none;
    margin-top: -0.5rem; 
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
}

.faq-content p {
    padding: 1rem 0;
}

/* Contact Section */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* =============================== */
/* CONTACT SECTION BACKGROUND IMAGE */
/* =============================== */

#contact {
    position: relative;
    background-image: url("../assets/images/contact-bg.jpg"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for readability */
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Bring content above overlay */
#contact .container {
    position: relative;
    z-index: 2;
}

/* Ensure text is readable */
#contact h2,
#contact h3,
#contact p{
    color: #ffffff;
}
#contact label {
    color: #4CAF50;
}

/* Keep form box clean and visible */
#contact .contact-form {
    background-color: #ffffff;
}


.contact-text {
    text-align: center;
    padding: 1rem;
}
.contact-text h3 {
    font-family: var(--font-body);
    color: var(--color-green);
}
.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--color-green);
}

/* Contact Form */
.contact-form {
    max-width: none; 
    margin: 0;
    padding: 2.5rem;
    /*background-color: var(--color-white);*/
    border: 1px solid var(--color-green);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2); 
}

.form-group {
    margin-bottom: 1.25rem;
    height: 10%;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-green);
}

.form-group input, .form-group textarea {
    width: 100%;
    height: 10%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
}

.form-group select {
    width: 100%;
    border-radius: 5px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--color-green);
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Validation Styling */
.input-error {
    border-color: var(--color-red) !important;
}
.error-message {
    color: var(--color-red);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
}

/* =============================== */
/* MOBILE "REGISTER NOW" BUTTON */
/* =============================== */

.mobile-register-btn {
    position: fixed;
    bottom: 50px;
    left: 13%;
    transform: translateX(-50%);
    background-color: var(--color-red);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px; /* Oval / pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(47, 211, 96, 0.5);
    z-index: 999;
    display: none; /* Hidden by default */
}

/* Hover / tap effect */
.mobile-register-btn:active {
    transform: translateX(-50%) scale(0.96);
}


/* Show on mobile & tablet only */
@media (max-width: 1023px) {
    .mobile-register-btn {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--color-text-dark);
    padding: 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    color: var(--color-light-grey);
    text-align: center;
    gap: 1.5rem;
}

.footer-info {
    order: 2; 
}
.footer-social {
    order: 1; 
}

.footer-grid h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-map a {
    color: var(--color-green);
    font-weight: 700;
}

.social-icons a {
    color: var(--color-green);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--color-white);
}

.copyright {
    background-color: #1a2327; 
    padding: 1rem 0;
    color: #999;
    text-align: center;
    font-size: 0.85rem;
}

/* Map Section */
#location-map {
    padding: 0;
}

/* =============================== */
/* TOGGLE LOCATION MAP */
/* =============================== */

.location-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.location-content.active {
    max-height: 2000px;
}


/* ==================================== */
/* 4. Registration Page Styling (Enhanced) */
/* ==================================== */

.register-header {
    background-color: var(--color-light-grey); 
    padding: 2rem 0;
    border-bottom: 5px solid var(--color-green);
}

.registration-logo {
    text-align: center;
}

.registration-logo h1 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--color-green);
    font-weight: 700;
    margin: 0.5rem 0 0.2rem 0;
}

.registration-logo p {
    font-size: 1.1rem;
    color: var(--color-red); /* Highlight the title in red */
    margin-top: 0;
    font-family: var(--font-body);
    font-weight: 500;
}

.header-logo-img {
    height: 60px; /* Adjust size for your logo */
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Full form box to replicate the paper document look */
.registration-form {
    max-width: 900px;
    margin: 2rem auto;
    background-color: var(--color-white);
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden; /* Important for border-radius on nested headers */
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Section Headers for visual break */
.form-section-header {
    padding: 1.5rem 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

#totalPremiumPackage {
    background-color: #f4f4f4;
    cursor: not-allowed;
}


.form-section-header h2, .form-section-header h3 {
    text-align: left;
    margin: 0;
    padding: 0;
    border-bottom: none;
    max-width: none;
    display: inline-block;
    color: var(--color-white); /* Ensure headings are white inside the colored background */
}

.form-section-header i {
    margin-right: 0.75rem;
}

.green-bg {
    background-color: var(--color-green);
    border-top: 8px solid var(--color-red);
}

.red-bg {
    background-color: var(--color-red);
}

/* Form content padding */
.registration-form .form-row, 
.registration-form .form-group:not(.form-row) {
    padding: 0 2.5rem;
}
.registration-form .form-group {
    margin-bottom: 1.5rem;
}
.registration-form textarea {
    margin-bottom: 2.5rem;
}

/* Specific styling for required fields */
.required {
    color: var(--color-red);
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Styling for inline radio/checkbox groups (Gender) */
.checkbox-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 0.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0; 
    font-weight: 400;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.checkbox-group input[type="radio"], 
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Ensure text inputs, select and textarea have a clean, distinct border */
.form-group input:not([type="radio"]):not([type="checkbox"]), 
.form-group textarea, 
.form-group select {
    border: 1px solid #aaa;
    background-color: var(--color-light-grey); 
    padding: 1rem 1rem;
    font-size: 1rem;
}

/* Overriding the default form-group label color for a cleaner look */
.registration-form .form-group label {
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Style the submit button to span the full width of the container, aligned with padding */
.registration-form .submit-button {
    width: calc(100% - 5rem); /* 100% minus 2.5rem padding on both sides */
    margin: 1.5rem 2.5rem 2.5rem 2.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==================================== */
/* 5. Floating Chat Buttons */
/* ==================================== */

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Ensure they are above other content */
}

.whatsapp-float, .livechat-float {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float {
    background-color: #25D366; /* WhatsApp Green */
}

.livechat-float {
    background-color: var(--color-green); /* Fidelity Green */
}

.whatsapp-float:hover, .livechat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* ============================== */
/* 6. Media Queries (Responsiveness) */
/* ============================== */

/* Tablet View: 768px */
@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }

    /* Header Nav */
    .header-top-bar {
        position: relative;
        padding: 1rem 0;
    }
    
    .hamburger {
        display: none;
    }

    .main-nav {
        position: static;
        display: block;
        width: auto;
        height: auto;
        box-shadow: none;
        background-color: transparent;
        transform: translateX(0);
    }

    .main-nav ul {
        display: flex;
        padding-top: 0;
        align-items: center;
        gap: 0.5rem;
    }

    .main-nav ul li a {
        padding: 0.5rem 0.8rem;
        border-bottom: none;
        color: var(--color-white); 
        font-weight: 400;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    .main-nav ul li a:hover {
        color: var(--color-text-dark); /* Corrected: Hover text should be readable */
        background-color: var(--color-green);
    }
    
    /* Active link style for desktop nav */
    .main-nav ul li a.active {
        color: var(--color-white) !important;
        background-color: var(--color-red);
        text-shadow: none;
    }

    /* Hero Content */
    .hero-content h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Patient Info Grid: Hours & Insurance side-by-side on Tablet */
    .info-group {
        grid-template-columns: repeat(2, 1fr); 
        margin-bottom: 0;
    }
    
    .info-grid-container {
        grid-template-columns: 1fr; /* Retain single column layout (stacking group + FAQ) */
    }

    /* Contact Section */
    .contact-form-wrapper {
        grid-template-columns: 1.5fr 2fr; 
        text-align: left;
    }
    .contact-text {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-info {
        order: 1; 
    }
    .footer-social {
        order: 2; 
        margin-bottom: 0;
    }
}

/* Desktop View: 1024px */
@media (min-width: 1024px) {
    
    /* Force top padding to zero to close the gap on desktop */
    #info.section { 
        padding-top: 0 !important; 
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* NEW: Desktop layout for Testimonials */
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }

    /* ==================================== */
    /* MODIFIED: Combined Info/FAQ Layout */
    /* ==================================== */
    .info-grid-container {
        display: grid;
        grid-template-columns: 1.2fr 2fr; /* Info blocks (left) and FAQ (right) */
        /* Define areas to place the H2 across the top */
        grid-template-areas: 
            "title title"
            "info faq";
        gap: 3rem;
    }
    
    /* Map H2 to the title area (to make it span both columns) */
    .info-grid-container h2 {
        grid-area: title;
    }
    
    /* Info group stacks vertically in the first grid column */
    .info-group {
        grid-area: info;
        display: flex; /* Use flexbox to stack the cards neatly */
        flex-direction: column;
        gap: 2rem;
        grid-template-columns: 1fr; /* Revert tablet side-by-side */
        margin-bottom: 0;
    }
    
    .faq-section {
        grid-area: faq;
    }
}
