/* ================================================== */
/* --- Step 1: Global Styles & Variables --- */
/* ================================================== */
:root {
    --color-primary: #0A60AB;
    --color-primary-dark: #0A60AB;
    --color-text: #343a40;
    --color-text-light: #6c757d;
    --color-background: #ffffff;
    --font-primary: 'DM Sans', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --border-radius: 8px;
    --header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================================== */
/* --- UTILITIES & ANIMATIONS --- */
/* ================================================== */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* --- Step 2: Header & Navigation (Mobile-First) --- */
/* ================================================== */

/* --- Base styles for MOBILE --- */
.main-header {
    background-color: var(--color-background);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid #f0f0f0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.logo-image {
    height: 40px;
}

.cta-button {
    display: none;
}

/* --- NEW: Icon Toggle Logic --- */
.mobile-menu-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
    color: var(--color-primary);
}

.nav-close-btn {
    display: none;
    /* The close button is hidden by default */
}

/* When nav is open, hide the hamburger... */
.nav-is-open .hamburger-menu {
    display: none;
}

/* ...and show the close button. */
.nav-is-open .nav-close-btn {
    display: block;
}


.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}


.main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 70%;
    /* Slightly wider for better spacing */
    max-width: 300px;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background-color: var(--color-background);
    z-index: 1002;
    padding: 1rem 0;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;

    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.main-nav.active {
    transform: translateX(0);
}

.nav-links {
    display: flex;
    flex-direction: column;
}

.nav-links a {
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-links li.active>a {
    color: var(--color-primary);
}

/* --- Mobile Dropdown Styles --- */
.has-dropdown>a::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.has-dropdown.active>a::after {
    content: '−';
}

.dropdown {
    display: none;
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.has-dropdown.active .dropdown {
    display: block;
}

.dropdown a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.dropdown a:hover {
    color: var(--color-primary);
    background-color: rgba(10, 96, 171, 0.1);
}

/* --- Styles for DESKTOP (screens 992px and wider) --- */
@media (min-width: 992px) {
    .main-header {
        height: auto;
        padding: 0.75rem 0;
    }

    .logo-image {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    /* Hide the whole toggle wrapper */

    .main-nav {
        position: static;
        height: auto;
        max-height: none;
        overflow-y: visible;
        width: auto;
        max-width: none;
        background: none;
        transform: none;
        transition: none;
        padding: 0;
        z-index: 1;
        box-shadow: none;
        border: none;
    }

    .header-right {
        display: flex;
        /* 1. Turn the wrapper into a flex container */
        align-items: center;
        /* 2. Vertically align the nav and button */
        gap: 2.5rem;
        /* 3. Create the gap between the nav and the button */
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 0;
    }

    .cta-button {
        display: inline-block;
        background-color: var(--color-primary);
        color: white;
        font-family: var(--font-secondary);

        padding: 0.6rem 1.2rem;
        border-radius: var(--border-radius);
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .cta-button:hover {
        background-color: var(--color-primary-dark);
    }

    /* --- Desktop Dropdown Styles --- */
    .has-dropdown {
        position: relative;
    }

    .has-dropdown>a::after {
        display: none;
    }

    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        background-color: var(--color-background);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        padding: 0.5rem 0;
        min-width: 240px;
        z-index: 100;
        border: 1px solid #f0f0f0;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 0.75rem 1.5rem;
        color: var(--color-text);
        white-space: nowrap;
    }
}



/* ==================================================================== */
/* --- HERO SECTION (V15 - DEFINITIVE - Unique Pagination Class Fix) --- */
/* ==================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    padding: 0;
    /* background-color: #000; */
}

.hero-section .container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

@media (min-width: 768px) {
    .hero-slider {
        aspect-ratio: auto;
        height: 84vh;
        min-height: 550px;
        max-height: 700px;
    }
}

.swiper-wrapper,
.swiper-slide {
    height: 100%;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Add overlay to slides with content for better text visibility */
.swiper-slide:has(.slide-content-wrapper) .slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Alternative fallback for browsers that don't support :has() */
.swiper-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

/* .swiper-slide::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    z-index: 1;
} */

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
    /* Changed from ##0A60AB to white for better visibility */
}

.slide-content-wrapper {
    width: 60%;
    max-width: 1200px;
    margin: 0;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
    /* background: rgba(255, 255, 255, 0.1); */
    /* Semi-transparent white background */
    /* backdrop-filter: blur(10px); */
    /* Glass effect */
    /* border-radius: 15px; */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); */
}

.slide-content h1 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Add text shadow for better readability */
}

.slide-content p {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    /* margin-bottom: 1rem; */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.slide-content .btn-explore {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background-color: #25D366;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    /* margin-top: 0.5rem; */
}

@media (min-width: 768px) {
    .slide-content-wrapper {
        padding: 2rem 3rem;
        width: 50%;
        /* Slightly smaller on desktop */
    }

    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 1.3rem;
        max-width: 500px;
        line-height: 1.6;
    }

    .slide-content .btn-explore {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

@media (min-width: 992px) {
    .slide-content-wrapper {
        padding: 3rem 8rem;
        width: 54%;
        /* Smaller width on large screens */
    }

    .slide-content h1 {
        font-size: 3.2rem;
        font-weight: 700;
        font-family: var(--font-primary);
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .slide-content p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
}

.slide-content .btn-explore {
    color: white;
    background-color: #25D366;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slide-content .btn-explore:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- SLIDER CONTROLS (THE CSS SELECTOR FIX IS HERE) --- */
/* Target the new specific class */
.hero-slider .hero-pagination {
    position: absolute;
    left: 0;

    width: 100%;
    bottom: 10px !important;
    z-index: 3;
}

.hero-slider .hero-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.hero-slider .hero-pagination .swiper-pagination-bullet-active {
    background: white;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    display: none;
}

@media (min-width: 768px) {

    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        display: flex;
        z-index: 3;
        color: white;
        background-color: rgba(0, 0, 0, 0.25);
        width: 45px;
        height: 45px;
        border-radius: 50%;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem;
        font-weight: bold;
    }
}

/* ================================================== */
/* --- Step 4: Pillars Section (Mobile-First) --- */
/* ================================================== */

.pillars-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    padding-top: 30px;
}

.section-header p {
    font-size: 1rem;
    /* FIX: Changed color from white to a readable grey */
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 50px;
}

.pillar-card {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover,
.pillar-card:active {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(10, 96, 171, 0.3);
}

.pillar-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: white;
    color: var(--color-primary-dark);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .pillars-section {
        padding: 5rem 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================= */
/* --- Doctors Section (REFERENCE DESIGN) --- */
/* ============================================================= */

.doctors-section {
    padding: 4rem 1rem;
    background-color: var(--color-primary-dark);
}

.doctors-section .section-header h2,
.doctors-section .section-header p {
    color: white;
}

.doctors-swiper {
    padding: 1rem 0;
}

.doctor-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    height: 100%;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    background-color: lavenderblush;
}
.doctor-info {
    padding: 1.25rem;
}

.doctor-info h3 {
    font-family: var(--font-primary);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.doctor-info span {
    font-family: var(--font-secondary);
    /* FIX: Increased contrast for doctor's title */
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.view-all-cta {
    text-align: center;
    margin-top: 2rem;
}

.view-all-cta .btn-primary {
    background-color: var(--color-background);
    color: var(--color-primary);
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(10, 96, 171, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-all-cta .btn.btn-primary:hover {
    background-color: var(--color-text) !important;
    border-color: var(--color-background);
    color: var(--color-background) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 10px 25px rgba(10, 96, 171, 0.3) !important;
}

/* ============================================================= */
/* --- Main Footer (V4 - 2-Column Mobile View) --- */
/* ============================================================= */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 4rem 0 1.5rem;
    font-family: var(--font-secondary);
}

/* --- Top Logo --- */
.footer-logo-container {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #ffff;
}

.footer-logo-image {
    height: 45px;
    width: auto;
}

/* --- Main Grid --- */
.footer-main-grid {
    display: grid;
    /* CHANGE IS HERE: From '1fr' to '1fr 1fr' for a two-column mobile layout */
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
    /* Row and column gap */
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* --- Link Lists --- */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-list a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-link-list.multi-column {
    column-count: 1;
}

/* --- Reach Us Section --- */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ffffff;
    margin-top: 2px;
}

.contact-item p,
.contact-item a {
    color: var(--color-background);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

/* --- Social Icons --- */
.connect-title {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    color: #cccccc;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Sub-Footer --- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border-top: 1px solid #ffff;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

.copyright {
    color: #ffff;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #ffff;

}

.legal-links a:hover {
    color: #ffffff;
}

/* =================================== */
/* --- Tablet & Desktop Responsive --- */
/* =================================== */

@media (min-width: 768px) {
    /* No change needed here, it's already 2 columns */
}

@media (min-width: 992px) {
    .footer-main-grid {
        /* Switch to 3 columns on desktop */
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-link-list.multi-column {
        column-count: 2;
        column-gap: 1rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ================================================== */
/* --- Step 9: Technology Accordion (GRADIENT SPOTLIGHT) --- */
/* ================================================== */
.technology-accordion-section {
    padding: 3rem 0;
    background-color: #eaf0f6;
}

.accordion-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--color-primary-dark);
}

.tech-accordion {
    position: relative;
    z-index: 2;
    color: white;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(113, 170, 214, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.accordion-item.active::before {
    opacity: 1;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.accordion-header h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
}

.accordion-icon {
    width: 14px;
    height: 14px;
    position: relative;
    transition: transform 0.4s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.accordion-icon::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-item.active .accordion-icon {
    transform: rotate(135deg);
}

.accordion-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    position: relative;
    z-index: 3;
}

.accordion-item.active .accordion-content-wrapper {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    color: white;
}

.accordion-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
}

.technology-accordion-section .view-all-cta .btn {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: 700;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.technology-accordion-section .view-all-cta .btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .technology-accordion-section {
        padding: 5rem 0;
    }

    .accordion-header h3 {
        font-size: 1.5rem;
    }
}

.view-all-cta .btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* ================================================== */
/* --- UTILITIES & ANIMATIONS --- */
/* ================================================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================= */
/* --- Step 10: Testimonials Section (DEFINITIVE TEXT COLOR FIX) --- */
/* ============================================================= */
#testimonials {
    padding: 3rem 0;
    background-color: #ffffff;
}

.testimonials-swiper {
    overflow: hidden;
    padding: 1rem 0 3rem 0;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonial-card {
    background-color: var(--color-primary);
    border-radius: 12px;
    padding: 2rem;

    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
}

.testimonial-card img {
    width: 250px;
    background-color: #1f1f1f;
    padding: 5px;
    border-radius: 10px;
    /* object-fit: contain; */
    display: flex;
    object-position: start start;
    justify-content: start;
    align-items: start;
    /* border-radius: 20px; */
    margin-bottom: 10px;
}

.quote .full-text {
    display: none;
}

.quote.expanded .short-text {
    display: none;
}

.quote.expanded .full-text {
    display: inline;
}

.read-more-btn {
    border: none;
    background: none;
    color: var(--color-background);
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-left: 5px;
}

.patient-name {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.quote {
    font-style: normal;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.star-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .patient-name {
        font-size: 1rem;
    }

    .quote {
        font-size: 0.95rem;
    }
}

/* .testimonials-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
} */
.testimonials-pagination .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

@media (min-width: 992px) {
    #testimonials {
        padding: 5rem 0;
    }
}

/* ================================================== */
/* --- Step 11: Magic Card System (FINAL POLISHED) --- */
/* ================================================== */
.magic-card-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.magic-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
    height: 550px;
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.activation-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
}

.activation-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.magic-card-wrapper.active .activation-button {
    transform: translate(-50%, 200%) scale(0.7);
    background-color: var(--color-primary-dark);
}

.explore-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
}

.magic-card-wrapper.active .explore-text {
    opacity: 0;
}

.close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-135deg);
    transition: transform 0.4s ease 0.2s;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 300;
}

.magic-card-wrapper.active .close-icon {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.treatment-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 280px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.magic-card-wrapper.active .treatment-card {
    opacity: 1;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    border-radius: var(--border-radius);
    z-index: 1;
}

.treatment-card h3 {
    position: relative;
    z-index: 2;
    font-family: var(--font-primary);
    font-size: 1.2rem;
}

.cards-container:hover .treatment-card {
    filter: brightness(0.7);
    transform: var(--transform-active) scale(0.95) !important;
}

.cards-container .treatment-card:hover {
    filter: brightness(1);
    transform: var(--transform-active) scale(1.05) !important;
    z-index: 5;
}

.magic-card-section .view-all-cta .btn {
    background-color: rgb(8, 68, 106);
    color: white;
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.magic-card-section .view-all-cta .btn:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(10, 96, 171, 0.3);
    transform: translateY(-2px);
}

.magic-card-section .view-all-cta .btn::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.magic-card-section .view-all-cta .btn:hover::after {
    transform: translateX(4px);
}

@media (min-width: 992px) {
    .magic-card-wrapper {
        height: 500px;
    }

    .treatment-card {
        width: 220px;
        height: 320px;
    }

    .treatment-card h3 {
        font-size: 1.3rem;
    }
}

/* ============================================================= */
/* --- Animated Stats Counter Section (Blue Version) --- */
/* ============================================================= */
.stats-section {
    padding: 4rem 0;
    background-color: var(--color-primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.stat-number::after {
    content: '+';
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    right: -1.2rem;
    font-size: 2rem;
    font-weight: 500;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 700;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3.5rem;
    }

    .stat-number::after {
        right: -1.8rem;
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .stats-section {
        padding: 5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 4rem;
    }
}


/* ============================================================= */
/* --- Doctors Page (V2 - REFERENCE DESIGN) --- */
/* ============================================================= */

/* Page Header (can remain the same or be adjusted if needed) */
.doctors-page-header {
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    text-align: center;
}

.doctors-page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.doctors-page-header p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Main container for the grid of doctors */
.doctors-list-container {
    padding: 3rem 0;
    background-color: #ffffff;
}

.doctors-list-grid {
    display: grid;
    /* Mobile: 1 column */
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* --- The New Doctor Card Design --- */
.doctor-list-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.doctor-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.doctor-card-inner {
    display: flex;
    flex-direction: column;
    /* Stack image and text vertically on mobile */
    align-items: center;
}

.doctor-image-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;

    /* Circular image frame */
    overflow: hidden;
    margin: 1.5rem 0;
    /* Space above and below on mobile */
    border: 4px solid #f0f0f0;
    flex-shrink: 0;
}

.doctor-image-container img {
    width: 100%;
    height: 100%;
    object-position: 50% -20%;
    object-fit: cover;
    background-color: #cfcfcf;
}
.doctor-image-container img:nth-child(4) {
    object-position: 50% 30%;
}
.doctor-details-container {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    /* Center text on mobile */
    width: 100%;
}

.doctor-name {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
}

.doctor-specialty {
    font-family: var(--font-secondary);
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.btn-request-appointment {
    background-color: transparent;
    color: var(--color-primary);
    /* The pink color from the reference */
    border: 1px solid var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request-appointment:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* --- Tablet and Desktop Styles --- */
@media (min-width: 768px) {
    .doctors-list-grid {
        /* 2 columns on tablets */
        grid-template-columns: 1fr 1fr;
    }

    .doctor-card-inner {
        /* Side-by-side layout for image and text */
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }

    .doctor-image-container {
        margin: 0;
        /* Remove vertical margins */
    }

    .doctor-details-container {
        padding: 0 0 0 1.5rem;
        /* Add space to the left of the text */
        text-align: left;
        /* Left-align text on desktop */
    }
}

@media (min-width: 992px) {
    .doctors-list-grid {
        /* 3 columns on desktop */
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem;
    }

    .doctors-list-container {
        padding: 4rem 0;
    }
}


.why-choose-us-section {
    padding: 2rem 0;
    background-color: #fff;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-choose-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 2px solid blue;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.why-choose-card:hover {
    background-color: var(--color-bg-light);
    border-color: #DDE8F0;
}

.why-choose-card .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background-color: var(--color-primary);
    color: white;
}

.why-choose-card .icon svg {
    width: 30px;
    height: 30px;
}

.why-choose-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.why-choose-card p {
    /* FIX: Increased contrast for readability */
    color: var(--color-text);
    line-height: 1.6;
}


/* ==================================================================== */
/* --- FINAL Global Pop-up Modal (DEFINITIVE & FULLY CORRECTED) --- */
/* ==================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.glass-effect {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 96, 171, 0.2), rgba(0, 74, 141, 0.3));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content.glass-effect {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-header p {
    opacity: 0.8;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.appointment-popup-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .appointment-popup-form {
        grid-template-columns: 1fr 1fr;
    }
}

.appointment-popup-form .form-group.full-width {
    grid-column: 1 / -1;
}

.appointment-popup-form input,
.appointment-popup-form select,
.appointment-popup-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.appointment-popup-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.appointment-popup-form input:focus,
.appointment-popup-form select:focus,
.appointment-popup-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(113, 170, 214, 0.2);
}

.appointment-popup-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.appointment-popup-form select:invalid {
    color: rgba(255, 255, 255, 0.6);
}

/* Fix for white calendar icon in date inputs */
.appointment-popup-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

.form-grid input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

/* Global fix for all date inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

.appointment-popup-form option {
    background: var(--color-primary-dark);
    color: white;
}

.appointment-popup-form button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.appointment-popup-form button[type="submit"]:hover {
    background-color: var(--color-text);
    color: var(--color-background);

}

.popup-error-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #ffc4c4;
}




/* ========================================================= */
/* --- 11. AJAX Form Toast Notification --- */
/* ========================================================= */

.form-toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background-color: var(--color-text);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 500;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    cursor: pointer;
}

.form-toast-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.form-toast-notification.success {
    background-color: #28a745;
}

.form-toast-notification.error {
    background-color: #dc3545;
}

/* ========================================================= */
/* --- 12. Global Sticky CTA Buttons --- */
/* ========================================================= */

.sticky-desktop-cta {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 999;
    background-color: orange;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 74, 141, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.5s 1s ease-out forwards;
}

.sticky-desktop-cta2 {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    background-color: green;
    color: white;
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    /* box-shadow: 0 5px 20px rgba(0, 74, 141, 0.3); */
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.5s 1s ease-out forwards;
}

.sticky-whatsapp-icon {
    font-size: 20px;

}

@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sticky-desktop-cta:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 74, 141, 0.4);
}

.sticky-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
}

.sticky-mobile-bar a {
    flex-grow: 1;
    text-align: center;
    padding: 0.8rem 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sticky-mobile-bar .call-btn {
    color: var(--color-primary);
    border-right: 1px solid var(--color-bg-dividers);
}

.sticky-mobile-bar .whatsapp-btn {
    background-color: #25D366;
    color: white;
}

@media (min-width: 768px) {

    .sticky-desktop-cta,
    .sticky-desktop-cta2 {
        display: inline-block;
    }

    .sticky-mobile-bar {
        display: none;
    }
}



/* ================= PRELOADER (Advanced Logo & Text Animation) ================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    max-width: 300px;
    width: 70%;
    opacity: 0;
    animation: shrink-logo 2s ease-out forwards;
}

@keyframes shrink-logo {
    0% {
        transform: scale(1.15);
        opacity: 0;
    }

    40% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader-text {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 1px;
    opacity: 0;
    animation:
        fade-in-text 0.5s 1.5s ease-out forwards,
        pulse-text 2s 2s ease-in-out infinite;
}

@keyframes fade-in-text {
    to {
        opacity: 1;
    }
}

@keyframes pulse-text {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}


/* ==================================================================== */
/* --- HOMEPAGE Appointment Form ("Glass Effect" with BG Image) --- */
/* ==================================================================== */
.appointment-section {
    padding: 5rem 1rem;
    background-color: #f8f9fa;
}

.homepage-appointment-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    padding: 2.5rem;
    color: white;
}

.homepage-appointment-form .form-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('https://images.pexels.com/photos/890550/pexels-photo-890550.jpeg');
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.homepage-appointment-form:hover .form-bg-image {
    transform: scale(1.05);
}

.homepage-appointment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(10, 96, 171, 0.6), rgba(0, 74, 141, 0.7));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.homepage-appointment-form .form-content {
    position: relative;
    z-index: 3;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
}

.form-grid option {
    background: var(--color-primary-dark);
}

.form-grid select:invalid {
    color: rgba(255, 255, 255, 0.7);
}

.form-actions {
    margin-top: 1.5rem;
}

.form-actions .btn {
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.form-actions .btn:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* ================================================== */
/* --- MOBILE VIEW ENHANCEMENT FIXES --- */
/* ================================================== */

/* --- 1. Header Fix: Add more space on mobile --- */
@media (max-width: 767px) {
    .main-header .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* --- 2. Hero Section Fix: Adjust headline size for mobile --- */
@media (max-width: 767px) {
    .slide-content h1 {
        font-size: 1rem;
        /* Slightly smaller headline */
        margin-bottom: 0.75rem;
    }

    .slide-content p {
        font-size: 0.7rem;
        /* Adjust paragraph size slightly */
        margin-bottom: 2rem;
    }

    .slide-background {
        background-size: 100%;
        background-position: center center;
    }

    .modal-header h2 {
        font-size: 1.7rem;
    }
}

/* --- 3. Doctors Slider Fix: Show partial next slide on mobile --- */
@media (max-width: 767px) {
    .doctors-swiper {
        padding-left: 1rem;
        /* Add padding to not cut off the shadow */
        padding-right: 1rem;
    }

    .doctors-swiper .swiper-slide {
        width: 80%;
        /* Make each slide take up 80% of the container */
        margin-right: 1rem;
        /* Add a gap between slides */
    }
}

/* --- 4. Appointment Form Fix: Reduce padding on mobile --- */
@media (max-width: 767px) {
    .homepage-appointment-form {
        padding: 2rem 1.5rem;
        /* Reduce padding for smaller screens */
    }
}

/* --- 5. Footer Fix: Change to a single column on mobile --- */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Use a single column */
        gap: 2.5rem;
        /* Increase row gap for better separation */
    }
}

/* Unique Form Status Modal Styles - Blue Version */

.form-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-status-modal {
    /* Blue Glassmorphism Effect */
    background-color: rgba(10, 96, 171, 0.8);
    /* Semi-transparent BLUE background */
    backdrop-filter: blur(10px);
    /* This creates the frosted glass blur */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari browser support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Lighter border for contrast on blue */

    color: #ffffff;
    /* --- CHANGE: Sets all text inside to white --- */

    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Style for when the modal is shown */
.form-status-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.form-status-overlay.is-visible .form-status-modal {
    transform: scale(1);
}

.form-status-modal #modalTitle {
    margin-top: 0;
    font-size: 24px;
}

/* --- CHANGE: Ensures title is white regardless of success/error state --- */
.form-status-modal #modalTitle.success,
.form-status-modal #modalTitle.error {
    color: #ffffff;
}

/* Redesigned Button Style - Adjusted for Blue Background */
.form-status-modal .btn.form-status-modal__close-btn {
    background-color: #2586D8;
    /* Lighter blue for contrast */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for the button */
.form-status-modal .btn.form-status-modal__close-btn:hover {
    background-color: #3b9eff;
    /* Even lighter blue on hover */
}


/*240825 - Newly added css*/
.container {
    max-width: 1400px;
}

.clearfix {
    clear: both;
}

.float-right {
    float: right
}

.hero-section>.container {
    max-width: 1400px;
    pointer-events: revert;
    position: relative;
    margin: 0 auto;
}

.appointment-block {
    position: absolute;
    bottom: 0px;
    z-index: 99;
    right: 10px;
    width: 430px;

    max-width: 90%;
}

.appointment-block .modal-content.glass-effect {
    padding: 1.5rem;
}

.modal-content.glass-effect {
    background: linear-gradient(135deg, rgba(10, 96, 171, 1), rgba(0, 74, 141, 1));
}

.sticky-desktop-cta {
    border: 0px solid red
}

.footer-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* WhatsApp Icon with Tooltip */
.watsup-container {
    position: fixed;
    bottom: 120px;
    right: 135px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.watsup-icon {
    background-color: #4fce5d;
    color: #fff;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.watsup-container:hover .watsup-icon {
    transform: scale(1.1);
}

.watsup-tooltip {
    visibility: visible;
    opacity: 1;
    position: absolute;
    left: 100%;
    /* Position to the RIGHT of the container */
    margin-left: 15px;
    /* Space between icon and tooltip */
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* Tooltip is now always visible - no need for hover state */
.watsup-container:hover .watsup-icon {
    transform: scale(1.1);
}

/* Tooltip Arrow */
.watsup-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    /* At the left edge of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

@media (max-width:767px) {
    .appointment-block {
        position: relative;
        margin: 0 auto;
        right: 0;
    }
    .watsup-tooltip{
        display: none;
    }
    .accreditation-logos {
        flex-direction: column;
    }

    .nav-links.float-right {
        float: left
    }

    .no-mobile {
        display: none;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem 1.5rem;
        margin-bottom: 1rem;
    }

    .watsup-icon {
        display: none;
    }
}

@media (min-width: 992px) {
    .cta-button {
        border-radius: 50px;
        border: 0px solid red;
    }
}


/* -- Accreditation Logo Strip -- */
.accreditation-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
    /* A light grey background to create the "strip" effect */
}

.accreditation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* Space between logos */

}

.accreditation-logos img {
    max-height: 80px;
    /* Controls the height of the logos to keep them uniform */
    width: auto;
    object-fit: contain;
    /* Prevents image distortion */
}

.accreditation-item {
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    background-color: #ffff;
    border-radius: 20px;
}

.accreditation-item h3 {
    font-family: var(--font-primary);
    margin: 5px 0px 5px 0px;
}