/* **************   Start Animation Form ****************** */
#fullscreenLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

.logo-container {
    margin-bottom: 30px;
}

.athma-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.athma-logo-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.athma-logo-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(255, 123, 0, 0.3));
}

#successMessage {
    animation: fadeIn 0.5s ease-in;
}

@keyframes drawLogo {
    0% {
        stroke-dashoffset: 8000;
        stroke-opacity: 0.3;
    }

    50% {
        stroke-opacity: 0.8;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-opacity: 1;
    }
}

.loading-text {
    margin-top: 20px;
}

.loading-text h3 {
    font-size: 24px;
    color: #166088;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.loading-text p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressMove {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(330%);
    }
}

@media (max-width: 768px) {
    .loader-content {
        padding: 20px;
        max-width: 300px;
    }

    .athma-logo-wrapper {
        width: 150px;
        height: 150px;
    }

    .spinner-ring-1 {
        width: 45px;
        height: 45px;
    }

    .spinner-ring-2 {
        width: 30px;
        height: 30px;
    }

    .spinner-ring-3 {
        width: 15px;
        height: 15px;
    }

    .loading-text h3 {
        font-size: 20px;
    }

    .loading-text p {
        font-size: 14px;
    }
}

/* **************************************  End Here **************************************/


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

p {
    margin: 0 !important;
    padding: 0 !important;
}

:root {


    --primary-color: #233d63;
    --secondary-color: #FF5722;
    --primary: rgb(63, 175, 205);
    --blue-btn: rgb(28 133 161);
    --blue-color: rgb(63, 175, 205);
    --accent-orange: #FF6B35;
    --light-blue: #E8F4F8;
    --dark-text: #2C3E50;
    --light-text: #6C757D;
    --white: #FFFFFF;
    --success-green: #28A745;
    --bg-light: #f5f7fa;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --yellow: #FFD700;
    --primary-navy: #233d63;
    --banner-radius: 40px;
    --black: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
}

/* Title underline styles */
.title-underline {
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 1px;
    background-color: #6C757D;
    bottom: -10px;
    left: 0;
    margin-bottom: 2px;
}

.title-underline-center::after {
    left: 20%;
}

/* Navigation Bar Section */
.navigation-bar-section {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation-bar-section-top-strip {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

.navigation-bar-section-top-strip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-bar-section-top-strip-left {
    display: flex;
    gap: 30px;
}

.navigation-bar-section-top-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.navigation-bar-section-main {
    padding: 15px 0;
}

.navigation-bar-section-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-bar-section-main-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-bar-section-main-logo img {
    height: 60px;
    width: auto;
}

.navigation-bar-section-main-menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.navigation-bar-section-main-menu-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.navigation-bar-section-main-menu-link:hover {
    color: var(--secondary-color);
}

.navigation-bar-section-main-cta {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.navigation-bar-section-main-cta:hover {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
}

/* --- Desktop Styles (With Animation) --- */
.emergency-full-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Animation active on Desktop */
    animation: fullEmergencyEffect 2s ease-in-out infinite;
}

.emergency-full-text i,
.emergency-link {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
}

.emergency-full-text:hover {
    animation: none !important;
    transform: scale(1.1);
    filter: blur(0) !important;
    color: #FF5722 !important;
    opacity: 1 !important;
    text-decoration: none;
}

/* Desktop Animation Keyframes */
@keyframes fullEmergencyEffect {

    0%,
    100% {
        transform: scale(1);
        filter: blur(2px);
        opacity: 0.8;
        color: var(--secondary-color);
    }

    50% {
        transform: scale(1.15);
        filter: blur(0);
        opacity: 1;
        color: #FF5722;
        text-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
    }
}

/* --- Mobile Responsive Fix --- */
@media screen and (max-width: 768px) {
    .emergency-full-text {
        /* 1. Stop all animations and effects */
        animation: none !important;
        filter: blur(0) !important;
        transform: scale(1) !important;
        opacity: 1 !important;

        /* 2. Set color to White as requested */
        color: #ffffff !important;
        font-size: 13px;
    }

    .emergency-full-text i,
    .emergency-link {
        /* Ensure link and icon are also white on mobile */
        color: #ffffff !important;
    }
}


/* =======================
   NAV BUTTONS
======================= */
.nav-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: absolute;
    z-index: 10;
    color: var(--primary-color);
    font-size: 20px;
}

.nav-btn.left {
    left: -20px;
}

.nav-btn.right {
    right: -20px;
}


/* Slider Container Styling */
.dynamic-service-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    height: 60px;
}

.text-slider {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.top-line {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.bottom-line {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-orange {
    color: #FF5722;
    /* Matches your hover/CTA color */
}

.word-main-style {
    color: var(--primary-color, #333);
    margin-left: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Fix for Slider */
@media (max-width: 768px) {
    .dynamic-service-container {
        display: none;
        /* Hide slider on mobile to save space, or adjust size */
    }
}


.hero-banner-section-content-buttons a.second-button {
    background: #ffffff;
    color: #2f4876;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-banner-section-content-buttons a.second-button:hover {
    transform: translateY(-2px);
}

.hero-banner-section-content-buttons a {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: var(--white);
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-banner-section-content-buttons a:hover {
    transform: translateY(-2px);
}

.word-main-style {
    color: var(--primary-color, #333);
    margin-left: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* ================= MOBILE RESPONSIVE NAV ================= */

@media (max-width: 991px) {

    /* Top strip stacking */
    .navigation-bar-section-top-strip-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .navigation-bar-section-top-strip-left {
        flex-direction: column;
        gap: 6px;
    }



    /* Hide menu initially */
    .navigation-bar-section-main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 15px 0;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        display: none;
    }

    /* Show menu when active */
    .navigation-bar-section-main-menu.active {
        display: flex;
    }

    .navigation-bar-section-main-menu li {
        width: 100%;
        text-align: center;
    }

    .navigation-bar-section-main-menu-link {
        display: block;
        padding: 14px 0;
        width: 100%;
    }

    /* CTA button alignment */
    .navigation-bar-section-main-cta {
        display: none;
    }

    .navigation-bar-section-main-container {
        position: relative;
    }
}

/* This code only runs on screens smaller than 991px */
@media (max-width: 991px) {
    .navigation-bar-section-main-logo img {
        height: 40px;
        /* Adjust this number until it looks right */
        width: auto;
        /* Maintains the logo's original shape */
        display: block;
    }
}

/* Extra small screens (Phones) */
@media (max-width: 480px) {
    .navigation-bar-section-main-logo img {
        height: 35px;
        /* Even smaller for tiny screens */
    }
}

/* MOBILE RESPONSIVE - Hide Email and Location */
@media (max-width: 991px) {

    /* Target the Email item (2nd child) */
    .navigation-bar-section-top-strip-left .navigation-bar-section-top-strip-item:nth-child(2) {
        display: none;
    }

    /* Target the Location item (Right side) */
    .navigation-bar-section-top-strip-right {
        display: none;
    }

    /* Center the remaining Emergency Number for a cleaner look */
    .navigation-bar-section-top-strip-container {
        justify-content: center;
    }

    .navigation-bar-section-top-strip-left {
        gap: 0;
    }
}


/* Hero Section */
.hero-banner-section {
    background: linear-gradient(135deg, #121c2d 0%, #094561 100%);
    color: var(--white);
    padding: 38px 0 49px 0px;
    position: relative;
    overflow: hidden;
}

.hero-banner-section-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-banner-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-banner-section-content {
    flex: 1;
}

.hero-banner-section-content-badge {
    background: #ff9f6f;
    color: #282828;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bolder;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-banner-section-content-badge i {
    color: #ec5821;
}

.hero-banner-section-content-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-banner-section-content-title-highlight {
    color: rgb(34 208 255);
}

.hero-banner-section-content-description {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-banner-section-content-buttons {
    display: flex;
    gap: 20px;
    margin-top: 27px !important;
}



.hero-banner-section-image {
    flex: 1;
    position: relative;
}

.hero-banner-section-image-main {
    width: 100%;
    height: 500px;
    /*background: var(--light-blue);*/
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);*/
}

.hero-banner-section-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-section-image-float-card {
    position: absolute;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-banner-section-image-float-card-one {
    top: 20px;
    left: -30px;
}

.hero-banner-section-image-float-card-two {
    bottom: 30px;
    right: 0px;
}

.hero-banner-section-image-float-card-icon {
    width: 45px;
    height: 45px;
    background: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.hero-banner-section-image-float-card-text h4 {
    font-size: 14px;
    color: var(--dark-text);
    font-weight: 600;
}

.hero-banner-section-image-float-card-text p {
    font-size: 12px;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .hero-banner-section-container {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 0px;
    }



    .hero-banner-section-image-main {
        height: auto;
    }

    .hero-banner-section-image-float-card-one {
        left: 10px;
        top: 10px;
    }

    .hero-banner-section-image-float-card-two {
        right: 10px;
        bottom: 10px;
    }



    .hero-banner-section-content-buttons a {
              padding: 14px 17px;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        font-size: 16px;
    }

    .hero-banner-section-content-buttons a.second-button {
        padding: 11px 12px;
        font-size: 12px;
        display: none;
    }


    .hero-banner-section-content-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 13px;
        width: 100%;
        margin-top: 0px;
    }


    .hero-banner-section-content-buttons a {
        flex: 0 1 auto;
        text-decoration: none;
    }

    .hero-banner-section {
        /* Reduced padding for smaller screens */
        padding: 40px 0;
    }

}


/* EXTRA SMALL SCREEN (Phones) */
@media (max-width: 480px) {
    .hero-banner-section {
        /* Further reduced for tiny screens */
        padding: 20px 0;
    }
}

@media (max-width: 768px) {

    /* Main Section Headers */
    h2,
    .hero-banner-section-header-title {
        font-size: 24px !important;
        /* Standard mobile H2 size */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    /* Descriptions / Paragraphs */
    p,
    .hero-banner-section-header-description {
        font-size: 15px !important;
        /* Optimal for mobile reading */
        line-height: 1.6;
    }
}



/* Features Section */
.features-showcase-section {
    padding: 60px 0;
    background: var(--light-blue);
}

.features-showcase-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-showcase-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-showcase-section-header-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.features-showcase-section-header-title {
    font-size: 38px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
}

.features-showcase-section-header-description {
    font-size: 16px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto !important;
}

.features-showcase-section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.features-showcase-section-grid-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.features-showcase-section-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.features-showcase-section-grid-card-icon {
    width: 80px;
    height: 80px;
    background: #1d98b1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: #ffffff;
}

.features-showcase-section-grid-card-title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.features-showcase-section-grid-card-description {
    font-size: 14px;
    color: var(--light-text);
}

/* Services Section */
.services-treatment-section {
    padding: 80px 0;
    background: var(--white);
}

.services-treatment-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-treatment-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-treatment-section-header-title {
    font-size: 38px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.services-treatment-section-header-description {
    font-size: 16px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.services-treatment-section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.services-treatment-section-grid-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    background: var(--light-blue);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.services-treatment-section-grid-item:hover {
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-treatment-section-grid-item-icon {
    width: 65px;
    height: 65px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: var(--secondary-color);
}

.services-treatment-section-grid-item-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Team Section */
.doctors-team-section {
    padding: 80px 0;
    background: var(--bg-light);
    overflow: hidden;
    /* Prevents scrollbar from showing */
}

.doctors-team-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doctors-team-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.doctors-team-section-header-title {
    font-size: 38px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Scroller Viewport */
.doctors-scroller-view {
    width: 100%;
    overflow: hidden;

}

/* Grid settings for scrolling */
.doctors-team-section-grid {
    display: flex;
    width: max-content;
    /* Ensure the row is long enough for all cards */
    gap: 30px;
    animation: scrollTeam 30s linear infinite;
    /* Adjust time for speed */
    /* Forces hardware acceleration for smoother mobile scrolling */
    will-change: transform;
}

/* Pause animation on hover */
.doctors-team-section-grid:hover .doctors-team-section-grid:active {
    animation-play-state: paused;
}

.doctors-team-section-grid-card {
    flex: 0 0 280px;
    /* Fixed width for each card */
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
}

.doctors-team-section-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.doctors-team-section-grid-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(to right, #233d63, #ced0e57a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctors-team-section-grid-card-content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctors-team-section-grid-card-content {
    padding: 20px;
    text-align: center;
}

.doctors-team-section-grid-card-content-name {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.doctors-team-section-grid-card-content-specialties {
    font-size: 13px;
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* KEYFRAMES FOR MOVING EFFECT */
@keyframes scrollTeam {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Scroll exactly half the width of the total content to loop perfectly */
        transform: translateX(calc(-50% - 15px));
    }
}

/* MOBILE RESPONSIVE TWEAKS */
@media screen and (max-width: 768px) {
    .doctors-team-section-header-title {
        font-size: 28px;
    }

    .doctors-team-section-grid-card {
        flex: 0 0 240px;
        /* Slightly smaller on mobile */
    }

    .doctors-team-section-grid {
        gap: 20px;
        animation-duration: 20s;
        /* Faster scroll for mobile experience */
    }

    @keyframes scrollTeam {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }
}

/* Testimonial Section */
.testimonial-reviews-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonial-reviews-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-reviews-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-reviews-section-header-title {
    font-size: 38px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonial-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonial-scroll-wrapper {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 30s linear infinite;
}

.testimonial-reviews-section-grid-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background: var(--light-blue);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.testimonial-reviews-section-grid-card-quote {
    font-size: 50px;
    color: var(--secondary-color);
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-reviews-section-grid-card-content {
    position: relative;
    z-index: 1;
}

.testimonial-reviews-section-grid-card-content-rating {
    color: var(--yellow);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-reviews-section-grid-card-content-text {
    font-size: 15px;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.testimonial-reviews-section-grid-card-content-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-reviews-section-grid-card-content-author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.testimonial-reviews-section-grid-card-content-author-info h4 {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-reviews-section-grid-card-content-author-info p {
    font-size: 13px;
    color: var(--light-text);
}

.google-review-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    font-size: 14px;
    color: #4285F4;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 30px));
    }
}

/* Contact Section */
.contact-appointment-section {
    padding: 80px 0;
    background-color: #ffa50000;
}

.contact-appointment-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-appointment-section-content {
    flex: 1;
    color: #233d63;
}

.contact-appointment-section-content-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.contact-appointment-section-content-description {
    font-size: 16px;
    margin-bottom: 30px !important;
    opacity: 0.9;
}

.contact-appointment-section-content-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 59px 40px;
    /* row-gap | column-gap */
}

.contact-appointment-section-content-info-item {
    display: flex !important;
    flex-direction: row !important;
    /* Icon left, Text right */
    align-items: center;
    /* Vertical center */
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    /* Prevents text from dropping below icon */
    gap: 12px;
    width: 100%;
}

.contact-appointment-section-content-info-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    /* Prevents shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: #11bee0;
    border-radius: 50%;
    color: white;
}

.contact-appointment-section-content-info-item-text h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-appointment-section-content-info-item-text p {
    font-size: 17px;
    opacity: 0.9;
    font-weight: 700;

}

.contact-appointment-section-form {
    flex: 1;
    background: #f8f9fa;
    padding: 33px;
    border-radius: 20px;
}

.contact-appointment-section-form-title {
    font-size: 28px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.contact-appointment-section-form-group {
    margin-bottom: 20px;
}

.contact-appointment-section-form-group-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.contact-appointment-section-form-group-input:focus {
    outline: none;
    border-color: #233d635c;
}

.contact-appointment-section-form-group-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-appointment-section-form-group-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-field select:focus {
    outline: none;
    border-color: #233d635c;
}

.contact-appointment-section-form-submit {
    width: 100%;
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-appointment-section-form-submit:hover {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
}

/* ============================
   CONTACT SECTION RESPONSIVE
============================ */

/* Mobile view - icon top, text bottom, center aligned */
@media (max-width: 768px) {

    .contact-appointment-section-content-info-item {
        flex-direction: column;
        /* icon top, text bottom */
        align-items: center;
        /* center horizontally */
        text-align: center;
        gap: 10px;
    }

    .contact-appointment-section-content-info-item-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* 3. Ensure Text Container stays on one line */
    .contact-appointment-section-content-info-item-text {
        display: flex;
        flex-direction: row;
        /* Icon and text in one line */
        align-items: center;
        gap: 8px;
        /* Gap between the number and the label */
        white-space: nowrap;
        /* Forces text to stay on one line */
    }

    .contact-appointment-section-content-info-item-text h4 {
        font-size: 18px;
        margin: 0;
        line-height: 1;
    }

    .contact-appointment-section-content-info-item-text p {
        font-size: 14px;
        margin: 0;
        font-weight: 600;
        line-height: 1;
    }

    .contact-appoinment-section {
        padding: 20px 0 !important;
    }
}

/* Optional: Even tighter for very small phones */
@media (max-width: 480px) {
    .contact-appointment-section {
        padding: 30px 0 !important;
    }
}

@media (max-width: 768px) {

    /* 1. Reset Container and Enable Ordering */
    .contact-appointment-section-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    /* 2. Set the Title to appear first */
    .contact-appointment-section-content {
        display: contents;
        /* Allows children (title/info) to be ordered individually */
    }

    .contact-appointment-section-content-title {
        order: 1;
        /* First */
        text-align: center;
        margin-bottom: 10px;
        width: 100%;
    }

    /* 3. Hide the description as requested */
    .contact-appointment-section-content-description {
        display: none !important;
    }

    /* 4. Set the Form to appear second */
    #appointmentForm {
        order: 2;
        /* Second - Directly under Title */
        width: 100%;
    }

    /* 5. Set the Info Section to appear third */
    .contact-appointment-section-content-info {
        order: 3;
        /* Third - Below the Form */
        display: flex !important;
        flex-direction: column;
        /* Stack the 4 items vertically */
        gap: 0px;
        padding: 20px 10px;
        /* width: 100%; */
    }

    /* 6. Fix Info Items to be Row-Wise (Icon Left, Text Right) */
    .contact-appointment-section-content-info-item {
        display: flex !important;
        flex-direction: row !important;
        /* Forces Icon and Text side-by-side */
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    /* --- THE CORRECTION IS HERE --- */
    .contact-appointment-section-content-info-item-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        /* Adjusted size slightly for better visibility */

        /* This removes the blue background and circles for mobile only */
        background: transparent !important;
        color: var(--blue-color) !important;
        /* Changes the icon itself to your brand color */
        border-radius: 0;
    }

    .contact-appointment-section-content-info-item-text h4 {
        font-size: 18px;
        margin: 0;
    }

    .contact-appointment-section-content-info-item-text p {
        font-size: 14px;
        margin: 0;
        font-weight: 600;
    }

    .contact-appointment-section {
        padding: 30px 0 !important;
    }
}



/* Footer Section - Fixed */
.footer-main-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-main-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main-section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-main-section-content-column {
    flex: 1 1 calc(25% - 30px);
    min-width: 220px;
}

.footer-main-section-content-column-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-main-section-content-column-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-main-section-content-column-logo img {
    height: 50px;
    width: auto;
}

.footer-main-section-content-column-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-main-section-content-column-social {
    display: flex;
    gap: 12px;
}

.footer-main-section-content-column-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s;
}

.footer-main-section-content-column-social-link:hover {
    background: var(--secondary-color);
}

.footer-main-section-content-column-links {
    list-style: none;
}

.footer-main-section-content-column-links-item {
    margin-bottom: 12px;
}

.footer-main-section-content-column-links-item-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s;
    display: inline-block;
}

.footer-main-section-content-column-links-item-link:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--secondary-color);
}

.footer-main-section-content-column-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-main-section-content-column-contact-item-icon {
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 2px;
}

.footer-branch-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-branch-item:last-child {
    border-bottom: none;
}

.footer-branch-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.footer-branch-address {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.footer-branch-phone {
    font-size: 14px;
    color: var(--light-blue);
}

.footer-main-section-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-main-section-bottom-text {
    font-size: 14px;
    opacity: 0.8;
}

/* health partner section */

.why-choose-us-section {
    background: var(--bg-light);
    padding: 60px 0;
    position: relative;
}

.why-choose-us-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-us-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-choose-us-section-header-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.why-choose-us-section-header-title {
    font-size: 42px;
    color: var(--black);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}

.why-choose-us-section-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

.why-choose-us-section-content-left,
.why-choose-us-section-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why-choose-us-section-content-left-item,
.why-choose-us-section-content-right-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.why-choose-us-section-content-left-item {
    flex-direction: row;
    text-align: right;
}

.why-choose-us-section-content-right-item {
    flex-direction: row;
    text-align: left;
}

.why-choose-us-section-content-left-item-icon,
.why-choose-us-section-content-right-item-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: #1d98b1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-choose-us-section-content-left-item:hover .why-choose-us-section-content-left-item-icon,
.why-choose-us-section-content-right-item:hover .why-choose-us-section-content-right-item-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.3);
}

.why-choose-us-section-content-left-item-text,
.why-choose-us-section-content-right-item-text {
    flex: 1;
}

.why-choose-us-section-content-left-item-text-title,
.why-choose-us-section-content-right-item-text-title {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.why-choose-us-section-content-left-item-text-description,
.why-choose-us-section-content-right-item-text-description {
    font-size: 15px;
    color: var(--text-light);
}

.why-choose-us-section-content-center {
    flex: 0 0 auto;
    position: relative;
}

/* hospital facility */

.hospital-facility-contact-section {
    background: var(--bg-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hospital-facility-contact-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

}

.hospital-facility-contact-section-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hospital-facility-contact-section-content-left {
    flex: 1;
    background: #ec4917ff;
    padding: 60px 50px;
    border-radius: 20px;
    color: var(--white);
    position: relative;
    height: 800px;
}

.hospital-facility-contact-section-content-left-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hospital-facility-contact-section-content-left-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 30px;
}

.hospital-facility-contact-section-content-left-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 80px;
}

.hospital-facility-contact-section-content-left-emergency {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.hospital-facility-contact-section-content-left-emergency-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.hospital-facility-contact-section-content-left-emergency-text-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.hospital-facility-contact-section-content-left-emergency-text-title {
    font-size: 22px;
    font-weight: 700;
}

.hospital-facility-contact-section-content-left-schedule {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 15px;
}

.hospital-facility-contact-section-content-left-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hospital-facility-contact-section-content-left-schedule-row-day {
    font-size: 16px;
    font-weight: 600;
}

.hospital-facility-contact-section-content-left-schedule-row-time {
    font-size: 16px;
    opacity: 0.9;
}

.hospital-facility-contact-section-content-left-schedule-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.hospital-facility-contact-section-content-right {
    flex: 1;
    position: relative;
}

.hospital-facility-contact-section-content-right-image {
    width: 100%;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hospital-facility-contact-section-content-right-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-facility-contact-section-content-right-image-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

.hospital-facility-contact-section-content-right-image-overlay-badge {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hospital-facility-contact-section-content-right-image-overlay-badge i {
    font-size: 24px;
    color: var(--secondary-color);
}

.hospital-facility-contact-section-content-right-image-overlay-badge span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-image {
    flex: 1;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 40px;
}

.modal-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Responsive design for modal */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image {
        height: 200px;
    }

    .modal-details {
        padding: 25px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    .features-showcase-section {
        padding: 31px 0 59px 0;
    }

    .why-choose-us-section {
        padding: 31px 0 59px 0;
    }
}

/* Chat Box Styles */
.chat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 600;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
}

.chat-message.bot {
    background: var(--light-blue);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-message.user {
    background: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--light-blue);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-blue);
    border-radius: 20px;
    font-size: 14px;
}

.chat-send {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
}

.why-choose-us-section-content-center-image img {
    width: 100%;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {



    .why-choose-us-section-content-left-item-text-title,
    .why-choose-us-section-content-right-item-text-title {
        font-size: 18px;
    }

    .hospital-facility-contact-section-content-left {
        height: auto;
    }

    .hospital-facility-contact-section-content-right-image {
        height: 600px;
    }
}

@media (max-width: 968px) {
    .why-choose-us-section-content {
        flex-direction: column;
        gap: 10px;
    }

    .why-choose-us-section-content-left,
    .why-choose-us-section-content-right {
        width: 100%;
    }

    .why-choose-us-section-content-left-item {
        flex-direction: row-reverse;
        text-align: start;

    }




    .hospital-facility-contact-section-content {
        flex-direction: column;
        gap: 40px;
    }

    .hospital-facility-contact-section-content-left {
        padding: 40px 30px;
    }

    .hospital-facility-contact-section-content-left-title {
        font-size: 28px;
    }

    .hospital-facility-contact-section-content-right-image {
        height: 400px;
    }

    .hospital-facility-contact-section-content-left-emergency {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-image {
        height: 200px;
    }

    .footer-main-section-content-column {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .navigation-bar-section-main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .doctors-team-section-grid-card-content-image {
        width: 90%;
        height: 100%;
        margin: 0;
    }

    .navigation-bar-section-main-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-banner-section-container {
        flex-direction: column;
    }

    .hero-banner-section-content-title {
        font-size: 36px;
    }

    .features-showcase-section-grid-card,
    .services-treatment-section-grid-item,
    .doctors-team-section-grid-card,
    .testimonial-reviews-section-grid-card {
        flex: 1 1 100%;
    }

    .contact-appointment-section-container {
        flex-direction: column;
    }

    .footer-main-section-content-column {
        flex: 1 1 100%;
    }

    .testimonial-scroll-wrapper {
        animation: scrollTestimonials 40s linear infinite;
    }
}

@media (max-width: 576px) {
    .why-choose-us-section-header-title {
        font-size: 32px;
    }



    .why-choose-us-section-content-right-item {
        flex-direction: row;
        text-align: start;
    }

    .why-choose-us-section-content-left-item-icon,
    .why-choose-us-section-content-right-item-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 22px;
    }

    .why-choose-us-section-header {
        margin-bottom: 39px;
    }



    .hero-banner-section-image-float-card {
        position: relative;
        margin-bottom: 20px;
    }

    .hero-banner-section-image-float-card-one,
    .hero-banner-section-image-float-card-two {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .back-to-top {
        bottom: 80px;
        right: 10px;
    }
}



/* =======================
   services
======================= */
.service-section {
    background: var(--white);
}

.services-container {
    padding: 60px 20px;
    background-color: var(--bg-color);
    text-align: center;
}

.services-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-header p {
    color: #666;
    margin-bottom: 40px;
}

/* =======================
   SLIDER WRAPPER
======================= */
.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
}

/* =======================
   SLIDER
======================= */
.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 10px;
    width: 100%;
    cursor: grab;
    /* Shows it can be dragged */
}

/* =======================
   CARD
======================= */
.service-card {
    min-width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 2px solid var(--black);
    font-size: 15px;

}


.service-head {
    font-size: 42px;
    color: var(--black);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}

.service-card:hover {
    outline: none;
    border-color: var(--black);
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
}


/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .service-card {
        min-width: 85vw;
        margin: 0 5px;
        scroll-snap-align: center;
    }

    .services-slider {
        scroll-snap-type: x mandatory;
        /* Makes cards 'snap' into place */
    }
}


/* ===============================
   CTA TRIAL SECTION
================================ */

.ctaTrialSection {
    background: var(--light-blue);
    padding: 80px 20px;
    font-family: "Segoe UI", sans-serif;
}

/* ===============================
   CONTAINER
================================ */
.ctaTrialContainer {
    max-width: 1100px;
    margin: auto;
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
}

/* ===============================
   CONTENT
================================ */
.ctaTrialContent {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto;
}

/* ===============================
   BADGE
================================ */
.ctaTrialBadge {
    display: inline-block;
    font-size: 13px;
    color: #2c3e50;
    background: #f3ecff;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    font-weight: 500;
}

/* ===============================
   TITLE
================================ */
.ctaTrialTitle {
    font-size: 36px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    margin-bottom: 14px;
}

/* ===============================
   TEXT
================================ */
.ctaTrialText {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ===============================
   CTA BUTTON
================================ */
.ctaTrialButton {
    display: inline-block;

    background: var(--secondary-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.ctaTrialButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

/* ===============================
   CURVES
================================ */
.ctaTrialCurve {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(0.5px);
}

/* LEFT CURVE */
.ctaTrialCurveLeft {
    top: -90px;
    left: -90px;
}

/* RIGHT CURVE */
.ctaTrialCurveRight {
    bottom: -90px;
    right: -90px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .ctaTrialTitle {
        font-size: 28px;
    }

    .ctaTrialContainer {
        padding: 60px 16px;
    }
}

/*all branches*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Main Section Container (Handling background and centering here instead of body) */
.clinic-loc-wrapper-main {
    margin: 0;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clinic-loc-content-area {
    width: 100%;
    max-width: 1200px;
}

.clinic-loc-flex-box {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Left Side Info Panel */
.clinic-loc-info-panel {
    flex: 1;
}

.clinic-loc-main-heading {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
}


.clinic-loc-highlight-text {
    color: var(--blue-color);
}

.clinic-loc-sub-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px !important;
}

.clinic-loc-action-btn {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}


/* Right Side Location Grid */
.clinic-loc-photo-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.clinic-loc-single-card {
    height: 250px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.clinic-loc-card-top-icons {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    opacity: 0.9;
}

.clinic-loc-card-details h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.clinic-loc-status-badge {
    background-color: #cfeef5;
    color: #0c3b4e;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.clinic-loc-status-badge i {
    margin-right: 5px;
}

/* Mobile Optimization */
@media (max-width: 992px) {
    .clinic-loc-flex-box {
        flex-direction: column;
        text-align: center;
    }

    .clinic-loc-main-heading {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .clinic-loc-photo-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* FORM FIELD */
.form-field {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* SELECT */
.form-field select {
    width: 100%;
    padding: 14px 12px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    outline: none;
    appearance: none;
}

/* LABEL */
.form-field label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #777;
    background: #fff;
    padding: 0 6px;
    pointer-events: none;
    transition: 0.3s ease;
}

/* FLOAT LABEL WHEN SELECTED */
.form-field select:focus+label,
.form-field select:valid+label {
    top: -8px;
    font-size: 12px;
    color: 2px solid #e9ecef;
}

/* CTA BANNER */
/* ===============================
            MAIN SECTION CONTAINER
        ================================ */
.cta-medical-section {
    padding: 100px 20px;
    background-color: var(--light-blue);
}

.cta-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid #dee4e9;
}

/* Decorative Background Elements */
.bg-element {
    position: absolute;
    background: var(--light-blue);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

.el-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.el-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.cta-banner-section-main-title p {
    color: var(--primary);
}

/* ===============================
            CENTERED CONTENT AREA
        ================================ */
.cta-content-center {
    padding: 80px 40px;
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgb(236 214 208);
    color: #212529;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 25px;
}

.cta-title span {
    color: var(--primary);
    display: inline-block;
    /* Underline removed from here */
}

.cta-description {
    font-size: 18px;
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 45px !important;
    max-width: 650px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===============================
            ACTION BUTTONS
        ================================ */
.cta-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-base {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(113, 171, 204, 0.25);
    border: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
}

.btn-outline-custom {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--primary-color);
}

.btn-base:hover {
    transform: translateY(-5px);
    filter: brightness(1.05);
}

.btn-outline-custom:hover {
    color: var(--black);
}

/* ===============================
            RESPONSIVE ADJUSTMENTS
        ================================ */
@media (max-width: 768px) {
    .cta-medical-section {
        padding: 60px 15px;
    }



    .cta-description {
        font-size: 16px;
    }

    .btn-base {
        width: 65%;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .services-container {
        padding: 32px 20px;
    }

    .services-header p {
        margin-bottom: 8px;
    }
}

/*CTA banner 2 */
/* ===============================
            MODERN SPLIT CTA SECTION
        ================================ */
.cta-banner-section-main-wrapper {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    background: var(--bg-light);
}

.cta-banner-section-main-card {
    max-width: 1140px;
    width: 100%;
    background: #e9ecef;
    border-radius: var(--banner-radius);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    border: 2px solid #e9ecef;
}

/* ===============================
            LEFT CONTENT AREA
        ================================ */
.cta-banner-section-main-content {
    padding: 80px;
    z-index: 2;
}

.cta-banner-section-main-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.15);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
}

.cta-banner-section-main-title {
    color: var(--black);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}


.cta-banner-section-main-desc {
    color: rgb(0 0 0 / 80%);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 45px !important;
    max-width: 520px;
}

/* ===============================
            RIGHT IMAGE AREA
        ================================ */
.cta-banner-section-main-visual {
    height: 100%;
    min-height: 450px;
    position: relative;
    background-image: url('img/cta-banner.jpeg');
    background-size: cover;
    background-position: center top;
}

/* Gradient overlay to blend image with navy background */
.cta-banner-section-main-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===============================
            BUTTONS
        ================================ */
.cta-banner-section-main-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-banner-section-main-btn {
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-banner-section-main-btn-primary {
    background: linear-gradient(135deg, #248ea3 0%, #0dcaf0 100%);
    color: var(--white);
}

.cta-banner-section-main-btn-primary:hover {
    transform: translateY(-4px);
}

.cta-banner-section-main-btn-outline {
    border: 2px solid #233d63;
    color: rgb(0 0 0 / 80%);
}

.cta-banner-section-main-btn-outline:hover {
    color: var(--black);
    transform: translateY(-4px);
}

/* ===============================
            RESPONSIVE ADJUSTMENTS
        ================================ */

@media (max-width: 992px) {
    .cta-banner-section-main-card {
        grid-template-columns: 1fr;
    }

    .cta-banner-section-main-visual {
        height: 350px;
        min-height: auto;
        order: -1;
        /* Image appears on top for mobile */
    }

    .cta-banner-section-main-visual::after {
        background: linear-gradient(to top, #b2b9c3, transparent 40%);

    }

    .cta-banner-section-main-content {
        padding: 50px 30px;
        text-align: center;
    }

    .cta-banner-section-main-actions {
        justify-content: center;

    }

    .cta-banner-section-main-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-banner-section-main-btn {
        width: 70%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        gap: 8px;
    }
}

/* mobile icon*/
/* Reset the mobile button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Flex wrapper */
.reach-us-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* THE STYLE FOR BOTH ICON AND TEXT */
.reach-us-content i,
.reach-us-text {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    display: inline-block;
}

/* BLINKING & COLOR TRANSITION ANIMATION */
.blinking-effect {
    animation: clearZoomIn 1.8s ease-in-out infinite;
}

@keyframes clearZoomIn {

    /* ZOOM OUT: Faded / Blurry / Orange */
    0%,
    100% {
        color: #FF5722 !important;
        /* Orange */
        transform: scale(0.95);
        /* Shrunk down */
        opacity: 0.3;
        /* Faded out */
        filter: blur(1px);
        /* Blurry */
    }

    /* ZOOM IN: Clear / Bright / Dark Blue */
    50% {
        color: #003366 !important;
        /* Dark Blue */
        transform: scale(1.1);
        /* Zoomed In */
        opacity: 1;
        /* Fully Clear/Bright */
        filter: blur(0);
        /* No Blur */
    }
}

/* MOBILE VIEW */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .navigation-bar-section-main-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* EXTRA SMALL SCREEN FIX */
@media (max-width: 480px) {

    .reach-us-content i,
    .reach-us-text {
        font-size: 12px;
    }
}

@media screen and (max-width:700px) {

    .features-showcase-section-header {
        margin-bottom: 30px !important;
    }

    .features-showcase-section-grid {
        gap: 17px !important;
    }

    .features-showcase-section-grid-card {
        min-width: 44%;
        padding: 9px 5px;
        flex: 1 1 calc(33.333% - 20px);
    }

    .features-showcase-section-grid-card-icon {
        width: 45px;
        height: 45px;
        background: #1d98b1;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 8px;
        font-size: 22px;
    }

    .features-showcase-section-grid-card-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .features-showcase-section-grid-card-description {
        font-size: 14px !important;
    }

    .cta-inner-container {
        background: #233d63;
    }

    .cta-content-center {
        padding: 41px 13px;
    }

    .cta-badge {
        gap: 10px;
        background: rgb(255 255 255);
        color: #e65721;
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .cta-title {
        color: #ffffff;
        line-height: 1.15;
        margin-bottom: 11px;
        font-size: 30px;
    }

 

    .cta-description {
        line-height: 1.7;
        margin-bottom: 22px !important;
        color: white;
    }

    .btn-outline-custom {
        background: #ffffff;
        color: #233d63;
        border: 2px solid #ffffff;
    }

    .el-2,
    .el-1 {
        display: none;
    }

    .doctors-team-section,
    .testimonial-reviews-section {
        padding: 34px 0;
    }

    .clinic-loc-wrapper-main {
        padding: 35px 20px;
    }

    .cta-banner-section-main-wrapper {
        padding: 24px 14px;
    }

    .cta-banner-section-main-content {
        background-color: #233d63 !important;

    }

    .cta-banner-section-main-tag {
        background: #fff;
        color: #eb4c10;
    }

    .cta-banner-section-main-title {
        color: #fff !important;
        font-size: 30px !important;
    }

    .cta-banner-section-main-desc {
        color: #fff !important;
    }

    .cta-banner-section-main-btn {
        background-color: white;
    }

    .contact-appointment-section-form-title {
        display: none;
    }

    .cta-banner-section-main-title p {
        color: #8ce7ff;
        font-size: 30px !important;
        line-height: 33px;
        margin-top: 18px !important;
    }
       .cta-title span {
         color: #7cbccd;
        display: inline-block;
    }
}