/* ============================================
   Dr. KKR Website - Page-specific styles
   Hero, cards, accordion, carousel, CTA
   ============================================ */
* {
    font-family: 'Public Sans', sans-serif;
}
p {
      font-family: 'Public Sans', sans-serif; 
}
input, textarea, button, select {
    font-family: 'Public Sans', sans-serif;
}
:root {
    /* Colors - Figma palette */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-dark: #0f172a;
    --color-dark-blue: #1e3a5f;
    --color-text: #334155;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-blue: #eff6ff;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    /* Typography */
    --font-sans: "public-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: var(--font-sans);
    --text-xs: 1rem; /* increased 14px -> 16px */
    --text-sm: 1.125rem; /* increased 16px -> 18px */
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Hero sections (home, treatments, contact, etc.) */

.hero {
    padding: var(--space-12) 0;
    /* background: var(--color-); */
}

.hero-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    /* background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(15, 23, 42, 0.25) 100%); */
    z-index: 1;
}

.hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* @keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
} */

.deco-anim {
  animation: rotate360 8s linear infinite;
}

/* Social media card description styling */
.social-description {
  border-bottom: 9px solid var(--color-primary);
  padding-bottom: 4px;
  display: inline-block;
}

/* Treatment pages: make hero background transparent so page gradient shows through */
.treatment-page-bg .hero-banner {
    background: transparent;
    border-radius: var(--radius-lg);
}

.treatment-page-bg .hero-banner::before {
    background: transparent;
}

.treatment-page-bg .hero-banner img {
    opacity: 1;
}
/* Ensure treatment hero content sits above the overlay */
.treatment-page-bg .hero-banner::before {
    z-index: 0;
}

/* Treatment detail hero: split layout (left text + right image) */
.treatment-hero-split {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    align-items: center;
    padding: var(--space-8);
    /* background: rgba(15, 23, 42, 0.35); */
    border-radius: 18px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.treatment-hero-left h1 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.treatment-hero-left p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-5);
    max-width: 520px;
}

.treatment-hero-right img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

@media (min-width: 900px) {
    .treatment-hero-split {
        grid-template-columns: 1.1fr 0.9fr;
        padding: var(--space-10);
    }
}

/* CARD OVERLAY */
.services-card {
    position: absolute;
    top: 80%;
    left: 26%;
    transform: translate(-50%, -50%);

    background: glassblur(10px);
    color: #222;

    padding: 45px 55px;
    max-width: 600px;
    width: 503px;

    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);

    text-align: center;
}

/* CARD TITLE */
.services-card h1 {
    font-size: 42px;
    color: #0b5ed7;
    margin-bottom: 15px;
}

/* CARD TEXT */
.services-card p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}
/* Treatment highlight card (experience section) */
.treatment-highlight {
    padding: var(--space-12) 0;
    background: #1946DA;
}

.treatment-highlight-card {
    background: #ffffff;
    border-radius: 22px;
    padding: var(--space-10);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.treatment-highlight-text h2 {
    color: #0b1c4f;
    margin-bottom: var(--space-4);
}

.treatment-highlight-text p {
    color: #1e2a55;
    margin-bottom: var(--space-4);
    max-width: 560px;
}

.treatment-highlight-text h3 {
    color: #0b1c4f;
    margin-top: var(--space-6);
    font-size: var(--text-2xl);
}

.treatment-highlight-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

@media (min-width: 900px) {
    .treatment-highlight-card {
        grid-template-columns: 1.2fr 0.8fr;
        padding: var(--space-12);
    }
}

/* Treatment pages: white navbar text on gradient */
.treatment-page-bg .navbar .logo,
.treatment-page-bg .navbar .nav-links a {
    color: var(--color-white);
}
.treatment-page-bg .navbar .nav-links a::after {
    background: var(--color-white);
}
.treatment-page-bg .nav-toggle span {
    background: var(--color-white);
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

/* Contact page hero overlay (frosted rounded box positioned at right end) */
.contact-hero .hero-overlay {
    position: absolute;
   right: var(--space-24);
   
    
    z-index: 3;
    max-width: 500px;
    
    background: rgba(255,255,255,0.14);
    color: var(--color-white);
    padding: var(--space-8);
    border-radius: 18px;
    backdrop-filter: blur(2px) saturate(120%);
    box-shadow: 0 8px 20px rgba(16,24,40,0.12);
}
.contact-hero .hero-overlay,
.services-hero .hero-overlay {
    position: absolute;
    right: var(--space-24);
    z-index: 3;
    max-width: 500px;

    background: rgba(255,255,255,0.14);
    color: var(--color-white);
    padding: var(--space-8);
    border-radius: 18px;
    backdrop-filter: blur(25px) saturate(120%);
    box-shadow: 0 8px 20px rgba(16,24,40,0.12);
}

.contact-hero .hero-overlay h1 {
    font-size: var(--text-4xl);
    margin: 0 0 var(--space-3) 0;
    color: var(--color-white);
}

.contact-hero .hero-overlay p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    max-width: 440px;
}

@media (max-width: 768px) {
    .contact-hero .hero-overlay {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
 
        width: calc(100% - 2*var(--space-6));
        padding: var(--space-6);
        border-radius: 12px;
    }
    .contact-hero .hero-overlay h1 {
        font-size: var(--text-2xl);
    }
}

/* Services hero card with frosted glass effect */
.services-hero-card {
    background: rgba(217, 217, 217, 0.1);
    color: var(--color-white);
    padding: var(--space-8);
    border-radius: 18px;
    backdrop-filter: blur(50px) saturate(120%);
    -webkit-backdrop-filter: blur(120px) saturate(120%);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 600px;
}


.services-hero-card h1 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.services-hero-card p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

@media (max-width: 768px) {
    .services-hero-card {
        max-width: 100%;
        padding: var(--space-6);
        border-radius: 12px;
    }
}

.hero-banner h1 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.hero-banner p {
    opacity: 0.95;
    max-width: 560px;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-16) 0;
    }
    .hero-banner {
        min-height: 380px;
    }
}


/* Home hero with cards */

.hero-home {
    padding: var(--space-10) 0 var(--space-16);
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-home > .container {
    width: 100%;
}

.hero-home > .container > div:first-child {
    display: none;
}

@media (min-width: 768px) {
    .hero-home > .container > div:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
}

.hero-home .hero-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.hero-home .hero-title h1 {
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
    line-height: 1.3;
}

.hero-home .hero-title p {
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: var(--text-sm);
}

@media (min-width: 640px) {
    .hero-home .hero-title h1 {
        font-size: var(--text-3xl);
    }
    .hero-home .hero-title p {
        font-size: var(--text-base);
    }
}

@media (min-width: 1024px) {
    .hero-home .hero-title h1 {
        font-size: var(--text-4xl);
    }
    .hero-home .hero-title p {
        font-size: var(--text-lg);
    }
}
.hero-card-1{
    border: solid 2px #1946DA ;
    border-radius: 5%;
    /* box-shadow: #1946da 0px 4px 12.6px 0px; */
    text-align: left;
    padding: 10px;
    margin-left: 5%;
    padding-left: 20%;
    padding-top: 20%
    
}
.hero-cards {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    margin-top: var(--space-8);
}

@media (min-width: 640px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
        margin-top: var(--space-10);
    }
}

@media (min-width: 1024px) {
    .hero-cards {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: var(--space-8);
        margin-top: var(--space-12);
    }
}

.hero-card {
     height: 286px;
    width: 361px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    /* box-shadow: var(--shadow-md); */
    text-align: center;
    
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
background: #FFF;
box-shadow: 0 4px 12.6px 0 rgba(25, 70, 218, 0.51);
}

.hero-card.hero-card-primary {
    background: var(--color-primary);
    color: var(--color-white);
    height: 332px;
    width: 361px;
}

.hero-card.hero-card-primary h3 {
    color: var(--color-white);
}

.hero-card .card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin: 0 auto var(--space-4);
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
}

/* Hero Section Card with background image and overlays */
.hero-section-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: row; /* place left/right side-by-side */
    align-items: stretch; /* ensure equal height */
    /* justify-content: space-between; */
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-8);
}

.hero-section-card::before {
    content: "";
    position: absolute;
  
    z-index: 1;
}

.hero-card-left {
    position: relative;
    z-index: 2; 
    /* flex: 1 1 50%; */
    width: 35%;
    margin: 0;
    left: -0%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.hero-card-box {
    background: #1946DA;

/* Blurred background box (fixed size) positioned inside the right card */


/* Ensure content sits above the blurred box */
.hero-card-right > * {
    position: relative;
    z-index: 3;
}
    color: var(--color-white);
    padding: var(--space-6);
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.hero-card-number {
    font-size: 48px;
    font-weight: var(--font-semibold);
    margin: 0 0 var(--space-2) 0;
    line-height: 1;
    margin-top: -59px;
    color: #ffffff;
}

.hero-card-label {
    font-size: var(--text-xl);
    margin: 0 0 var(--space-6) 0;
    font-weight: var(--font-semibold);
}


/* .hero-card-box .btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
} */

.hero-section-card {
    max-width: 1170px;
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
}

.hero-card-right {
    position: relative;
    z-index: 2;
    flex: 1 1 50%;
    width: 100%;
    margin: 0;
    padding: var(--space-6);
    background: rgba(217, 217, 217, 0.04);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: auto;
    border-radius: 18px;
}

.hero-card-title {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    /* margin: 0 0 var(--space-80) 0; */
    font-weight: var(--font-semibold);
    line-height: 1.2;
    padding-left: 47%;
}

@media (max-width: 768px) {
    .hero-section-card {
        min-height: auto;
        padding: var(--space-6);
        flex-direction: column; /* stack on small screens */
    }

    .hero-card-left,
    .hero-card-right {
        width: 100%;
        flex: 0 0 auto;
    }

    /* hide the fixed-size blurred box on small screens */
    .hero-card-right::before {
        display: none;
    }

    /* remove fixed height on mobile */
    .hero-card-right {
        height: auto;
        padding: var(--space-4);
    }

    .hero-card-title {
        font-size: var(--text-2xl);
    }

    .hero-card-number {
        font-size: var(--text-3xl);
    }
}

.hero-card.hero-card-primary .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.hero-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.hero-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.hero-card.hero-card-primary p {
    color: rgba(255, 255, 255, 0.9);
}

.hero-card-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-bg-light);
}

.hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-body {
    padding: var(--space-4) 0;
    text-align: center;
    margin-top: var(--space-6);
}

.hero-card-body h3 {
    font-size: var(--text-lg);
    color: var(--color-text);
}
.hero-card-box{
    /* width: 325px;
height: 292px;
margin-left: 40px;
background-color: #1946da;
        color: var(--color-white); */
        /* display: block; */
        /* padding-top: 70px;
        padding-right: 90px;
        padding-left: 50px; */
    /* padding-left: 10px;  
    padding-right: 10px; */
    /* border-radius: 24px;
    text-align: start;
    max-width: 420px;
    margin-right: px; */    
    /* width: 325px; */
        /* height: 292px;
        margin-left: 40px;
        background-color: #1946da;
        color: var(--color-white);
        display: block;
        padding-top: 70px;
        padding-right: 90px;
        padding-left: 50px;
        border-radius: 24px;
        text-align: start;
        max-width: 420px;
        margin-right: 35px; */


        width: 325px;
    height: 450px;
    margin-left: 40px;
    background-color: #1946da;
    color: var(--color-white);
    display: block;
    padding-top: 149px;
    padding-right: 90px;
    padding-bottom: 85px;
    padding-left: 50px;
    border-radius: 24px;
    text-align: start;
    max-width: 420px;
    margin-right: 35px;
    
}

/* =====================================
   FIX HERO IMAGE TO FILL RIGHT SPACE
===================================== */

.hero-section-card{
  display: flex;
  align-items: stretch;
 
}

/* Left text box fixed width */
.hero-card-box{
  flex: 0 0 350px; /* adjust if needed */
}

/* Image container should take remaining space */

/* ================================
   FINAL HERO WIDTH & CLIP FIX
================================ */

.hero-section-card{
  width:100% !important;
  overflow:hidden !important;
}

/* Remove clipping */






.hero-card-box-1{
     color: var(--color-white);
    padding-left: 10px;  
    padding-right: 10px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    margin-right: 260px;
}
.hero-card-body-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-body-text {
    display: flex;
    align-items: left;
    padding-left: 50px;
    justify-content: center;
    padding: 0 var(--space-4);
}

.hero-cards + .hero-card-body {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    margin-top: var(--space-6);
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: var(--space-6);
}

.hero-cards + .hero-card-body h3 {
    font-size: var(--text-xl);
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.hero-cards + .hero-card-body::before {
    display: none;
}


/* Areas of expertise / treatment cards */

.expertise-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.expertise-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: wrap;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--color-border);
    height: 260px;
    text-align: left;
    width: 150px;
    
    
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.expertise-card .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
    background: var(--color-bg-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.expertise-card .card-icon img,
.expertise-card .card-icon svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.expertise-card .card-content {
    flex: 1;
    width: 50%;
   

}
/* Hide duplicate title inside content */
.accordion-item.is-open .accordion-content h3 {
    display: none;
}

.accordion-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f4ae0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-toggle .chevron {
    width: 10px;
    height: 10px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    transition: 0.3s ease;
}

.accordion-item.is-open .chevron {
    transform: rotate(-312deg);

}


/* Horizontal card variant for Areas of Expertise (Figma-like layout) */
@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .expertise-grid .expertise-card {
        flex-direction: row;
        align-items: center;
        gap: var(--space-6);
    }
    .expertise-grid .expertise-card .card-content {
        padding-right: var(--space-4);
    }
    .expertise-grid .expertise-card .card-image {
        width: 160px;
        height: 96px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .expertise-grid .expertise-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Small rounded pill button used in the cards */
.btn-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

.expertise-card h3 {
    color: var(--color-dark);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
}

.expertise-card .card-link {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-top: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.expertise-card .card-link:hover {
    text-decoration: underline;
}


/* About / two-column sections */

.about-section {
    /* height: 790px; */
    background: var(--color-bg-blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-section .grid-2 {
    gap: 0;
}

.about-section .about-content {
    padding: var(--space-8);
}

@media (min-width: 768px) {
    .about-section .about-content {
        padding: var(--space-12);
    }
}

.about-section .about-content h2 {
    margin-bottom: var(--space-4);
}

.about-section .about-content p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.about-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-6);
}

.about-stat {
    text-align: left;
}

.about-stat .number {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    display: block;
}

.about-stat .label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.about-section .about-image {
    min-height: 320px;
    background: var(--color-border);
}

.about-section .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlight parent with two columns: info + taller image column */
.highlight-parent {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr 1fr;
    align-items: start;
    background: var(--color-bg-blue);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    overflow: visible;
    padding-right: 55%; /* reserve space for a larger image column on the right */
    min-height: 360px; /* ensure the image column appears taller */
}

.highlight-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
}

.highlight-image {
    /* Overlay image on the right side; make it taller than the info column */
    position: absolute;
    right: 0;
    top: -100px;
    bottom: 0px;
    width: 60%;
    display: flex
    /* align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1; */
}

.highlight-image img {
    width: 100%;
    height: 132%;
    padding-bottom: 42%;
/*     
    object-fit: auto; */
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

@media (max-width: 768px) {
    .highlight-parent {
        grid-template-columns: 1fr;
        padding: var(--space-6);
        padding-right: var(--space-6);
        min-height: auto;
    }
    .highlight-image { min-height: 240px; position: relative; top: 0; bottom: 0; width: 100%; }
}


/* CTA banner */

.cta-banner {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-12) 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-banner p {
    margin-bottom: var(--space-6);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Quote / doctor statement section */

.quote-section {
    background: #1F4BDB;
    color: var(--color-white);
    padding: var(--space-12) 0;
    text-align: center;
    font-family: 'Public Sans', sans-serif;
}

.quote-section .quote-text {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    max-width: 720px;
    margin: 0 auto var(--space-4);
    line-height: 1.6;
    font-family: 'Public Sans', sans-serif;
}

.quote-section .quote-author {
    font-weight: var(--font-semibold);
    font-family: 'Public Sans', sans-serif;
}

.quote-section .quote-title {
    font-size: var(--text-sm);
    opacity: 0.9;
    font-family: 'Public Sans', sans-serif;
}


/* Treatment page theme – content blocks, Why Choose */

.treatment-block {
    padding: var(--space-6) 0;
    background: transparent;
}

.treatment-block .container {
    background: var(--color-white);
    border-radius: 50px;
    padding: var(--space-8);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.treatment-block .treatment-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.treatment-block h2 {
    color: var(--color-primary);
}

.treatment-block p {
    color: var(--color-text);
}

.treatment-block .btn {
    align-self: flex-start;
}

.treatment-block-alt {
    padding: var(--space-6) 0;
    background: transparent;
}

.treatment-block-alt .container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.treatment-block-alt .treatment-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.treatment-block-alt h2 {
    color: var(--color-primary);
}

.treatment-block-alt p,
.treatment-block-alt li {
    color: var(--color-text);
    opacity: 1;
}

.treatment-block-alt ul {
    color: var(--color-text);
}

.why-choose-treatment {
    padding: var(--space-6) 0;
    background: transparent;
}

.why-choose-treatment .container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    min-height: 400px;
}

.why-choose-treatment .grid-2 {
    gap: var(--space-8);
    height: 100%;
    align-items: center;
}

.why-choose-treatment h2 {
    color: var(--color-primary);
}

.why-choose-treatment p {
    color: var(--color-text);
}

.why-choose-treatment .why-choose-image img {
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .treatment-block .container,
    .treatment-block-alt .container,
    .why-choose-treatment .container {
        min-height: auto;
    }
}

/* Treatment Cards Grid Section */
.treatment-cards-wrapper {
    padding: var(--space-8) 0;
    background: transparent;
    
    
}

.treatment-cards-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .treatment-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.treatment-card {
    background: var(--color-white);
    width: max-content;
    border-radius: 16px;
    padding: var(--space-8);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1), ;
    transition: transform 0.2s, box-shadow 0.2s;
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.treatment-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.treatment-card h2 {
    color: var(--color-primary);
    font-size: var(--text-lg);
    margin: 0;
}

.treatment-card p {
    color: var(--color-text);
    font-size: var(--text-sm);
    margin: 0;
}

.treatment-card ul {
    color: var(--color-text);
    padding-left: var(--space-6);
    margin: 0;
}

.treatment-card li {
    color: var(--color-text);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.treatment-card .btn {
    align-self: flex-start;
    margin-top: var(--space-2);
}

.treatment-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--color-bg-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .treatment-card {
        min-height: auto;
    }
}

/* Procedure section */
.procedure-section {
    padding: var(--space-12) 0;
    background: transparent;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.procedure-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-10);
    font-size: var(--text-2xl);
}

@media (min-width: 768px) {
    .procedure-section h2 {
        font-size: var(--text-3xl);
    }
}

.procedure-steps {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .procedure-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 0 var(--space-4);
    }

    /* Connecting line between steps */
    .procedure-steps::before {
        content: '';
        position: absolute;
        top: 28px;
        left: calc(12.5% + 28px);
        right: calc(12.5% + 28px);
        height: 2px;
        background: var(--color-white);
        opacity: 0.5;
        z-index: 0;
    }
}

.procedure-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .procedure-step {
        padding: 0 var(--space-4);
    }
}

.procedure-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.procedure-step p {
    color: var(--color-white);
    font-size: var(--text-sm);
    max-width: 180px;
    line-height: 1.5;
}

.treatment-content {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .treatment-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--space-12);
    }
}

.treatment-content.reverse .treatment-content-text {
    order: 2;
}

.treatment-content.reverse .treatment-content-image {
    order: 1;
}

.treatment-content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-light);
}

.treatment-content-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.treatment-content-text h2 {
    margin-bottom: var(--space-4);
}

.treatment-content-text h3 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
}

.treatment-content-text p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

.treatment-block-alt .treatment-content-text p {
    color: rgba(255, 255, 255, 0.9);
}

.treatment-content-text ul {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.treatment-content-text li {
    margin-bottom: var(--space-2);
    list-style: disc;
}

.treatment-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--color-bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.treatment-block-alt .treatment-icon-wrap {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.treatment-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.why-choose-treatment {
    padding: var(--space-12) 0;
    background: var(--color-bg);
}

.why-choose-treatment .grid-2 {
    align-items: center;
}

.why-choose-treatment .why-choose-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.why-choose-treatment .why-choose-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.why-choose-treatment h2 {
    margin-bottom: var(--space-4);
}

.why-choose-treatment p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}


/* Testimonials carousel */

.testimonials-section {
    background: #F4F7FF;
}

.testimonial-slide {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8);
    text-align: center;
    min-height: 320px; /* match doctor quote height */
    display: flex;
    align-items: center;
}

.testimonial-slide .testimonial-content {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .testimonial-slide .testimonial-content {
        grid-template-columns: auto 1fr;
        text-align: left;
    }
}

.testimonial-slide .testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-slide .testimonial-image {
        margin: 0;
    }
}

.testimonial-slide .testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-slide .testimonial-text {
    font-size: var(--text-lg);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.testimonial-slide .testimonial-author {
    font-weight: var(--font-semibold);
    color: var(--color-dark);
    font-size: var(--text-base);
}

.testimonial-slide .testimonial-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.testimonial-nav button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease;
    position: relative;
}

.testimonial-nav button:hover {
    transform: translateY(-3px);
}

.testimonial-nav button::after {
    content: "";
    position: absolute;
    inset: 8px;
    border:1px solid var(--color-primary);
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 8px 18px rgba(37,99,235,0.18);
}

.testimonial-nav button svg,
.testimonial-nav button span {
    position: relative;
    z-index: 1;
    color: var(--primary);
}

.testimonial-dots {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
}
.testimonial-dot{
    display: flex;
    justify-content: start;
}

.testimonial-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s;
}

.testimonial-dots span.active {
    background: var(--color-primary);
  
}


/* Doctor Quote Section (between testimonials and footer) */
.doctor-quote-section {
    background: #1F4BDB;
    color: var(--color-white);
    padding: var(--space-10) var(--space-4);
    font-family: 'Public Sans', sans-serif;
}

@media (min-width: 768px) {
    .doctor-quote-section {
        padding: var(--space-16) 0;
    }
}

.doctor-quote-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.quote-wrapper {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px; /* match testimonials */
    font-family: 'Public Sans', sans-serif;
}

.quote-content {
    max-width: 720px;
}

.doctor-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
    font-family: 'Public Sans', sans-serif;
}

.doctor-title {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
    opacity: 0.95;
    font-family: 'Public Sans', sans-serif;
}

.quote-text {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-white);
    line-height: 1.8;
    /* font-style: italic; */
    font-family: 'Public Sans', sans-serif;
}

@media (min-width: 768px) {
    .doctor-name { font-size: var(--text-2xl); }
    .doctor-title { font-size: var(--text-base); }
    .quote-text { font-size: var(--text-lg); }
}

@media (min-width: 1024px) {
    .doctor-name { font-size: var(--text-3xl); }
    .doctor-title { font-size: var(--text-lg); }
    .quote-text { font-size: var(--text-2xl); }
}


/* Treatments accordion */

.treatments-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 12.6px 0 rgba(25, 70, 218, 0.51);

    overflow: hidden;
} 

/* .accordion-item.is-open .accordion-content {
    display: grid;
} */

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background: var(--color-bg-light);
}

.accordion-header h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.accordion-item.is-open .accordion-toggle {
    transform: rotate(180deg);
}

/* .accordion-content {
    display: none;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-6) var(--space-6);
}  */
  /* Smooth accordion animation */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);

    padding: 0 var(--space-6);
    transition:
        max-height 1.6s ease-in-out,
        opacity 0.9s ease-in-out,
        padding 0.6s ease;
}

/* Open State */
.accordion-item.is-open .accordion-content {
    max-height: 900px;
    opacity: 1;
    padding: 0 var(--space-6) var(--space-6);
}


@media (min-width: 768px) {
    .accordion-content {
        grid-template-columns: 1fr 1fr;
    }
}

.accordion-content .content-text h3 {
    margin-bottom: var(--space-3);
}

.accordion-content .content-text p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

.accordion-content .content-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-dark);
    min-height: 240px;
}

.accordion-content .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Blog grid */

.blog-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    width:363px;
     border: 1px solid var(--color-border);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-image {
    aspect-ratio: 1/1;
    background: var(--color-bg-light);
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-body {
    padding: var(--space-4);
}

.blog-card h3 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.blog-card p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.blog-card .btn {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
}

@media (min-width: 1024px) {
    .blog-card .blog-body {
        padding: var(--space-5);
    }
    .blog-card h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }
    .blog-card p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }
    .blog-card .btn {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }
}


/* Contact / appointment form section */

.contact-cards {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
}

.contact-card .icon {
   
    flex-shrink: 0;
    background: var(--color-bg-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-card h4 {
    margin-bottom: var(--space-2);
}

.contact-card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.book-section {
    background: var(--color-primary);
    color: var(--color-white);
    /* padding: var(--space-10); */
    border-radius: var(--radius-lg);
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .book-section {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        /* padding: var(--space-12); */
        /* ensure form is left and image/introduction is right */
        align-items: stretch;
    }
}
#book-name::placeholder{
  color: #e6ecff;   /* light white/blue */
  opacity:1;
}
#book-msg::placeholder{
  color: #e6ecff;   /* light white/blue */
  opacity: 1;
}
#book-email::placeholder{
  color: #e6ecff;   /* light white/blue */
  opacity: 1;
}
#book-ph::placeholder{
    color: #e6e9ef;
}
#book-treatment::placeholder{
    color: #e6e9ef;
}

.book-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.book-section .form-wrapper {
    background: transparent; /* keep form transparent */
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    color: rgba(255,255,255,0.95); /* light white text */
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
}

.book-section .form-wrapper label {
    color: rgba(255,255,255,0.9);
}

.book-section .btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.book-section-intro {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
}

.book-section-intro p {
    opacity: 0.95;
    margin-bottom: var(--space-6);
}

.book-doctor-image {
    margin-top: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 420px;
    margin-left: auto; /* push image to the right */
}

.book-doctor-image img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    display: block;
}


/* Appointment form – two-column rows */

.appointment-form .form-row {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .appointment-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.appointment-form select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-primary);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.appointment-form select:focus {
    outline: none;
    border-color: var(--color-white);
}

.appointment-form .btn-submit {
    margin-top: var(--space-4);
    width: 100%;
}

@media (min-width: 640px) {
    .appointment-form .btn-submit {
        width: auto;
    }
}

.form-message {
    padding: var(--space-4);
    border-radius: var(--radius);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
}

.form-message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-message[hidden] {
    display: none !important;
}


/* Decorative shapes (placeholder for SVG/PNG) */

.deco-shape {
    width: 120px;
    height: 120px;
    background: var(--color-bg-blue);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.8;
    
}
.deco-anim {
  animation: rotate360 12s linear infinite;
}
/* Section heading & feature list tweaks to match Figma spacing */
.section {
    padding: var(--space-12) 0 var(--space-16);
}

/* Add consistent left/right spacing for most sections */
.section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .section {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Section: Areas of Expertise - Full height */
.section-areas-expertise {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Section: About Highlight - Custom height */
.section-about-highlight {
    margin-top: 120px;
    height: 770px;
    display: flex;
    align-items: center;
}

/* Make testimonials full-width (no extra section horizontal padding) */
.testimonials-section {
    padding-left: 0;
    padding-right: 0;
}

.testimonials-section .container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.section h2 {
    font-size: var(--text-2xl);
    color: var(--color-dark-blue);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

/* Make all primary headings semibold for visual consistency */
h1 {
    font-weight: var(--font-semibold);
}

.feature-list {
    padding-left: 1.25rem;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
   color: #000;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Decorative images used in sections */
.deco-img {
    max-width: 360px;
    width: 90%;
    opacity: 0.95;
    display: block;
/*     
    height: 400px; */
}

.deco-cube {
    transform: translateY(0);
}

.deco-wave {
    transform: translateY(0) rotate(0deg);
}

@media (min-width: 768px) {
    .deco-img { max-width: 420px; }
    .section { padding: var(--space-16) 0 var(--space-20); }
    .section h2 { font-size: var(--text-3xl); }
}

/* Larger decorative image variant used beside hero / highlight blocks */
.deco-large {

    /* max-width: 250px; larger size */
    display: block;
}

@media (max-width: 768px) {
    .deco-large { max-width: 320px; }
}

/* Subtle looping animation to mimic an animated GIF */
.deco-anim {
    animation: float-rotate 6s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
    /* height: 250px;
    width: 250px; */
}

@keyframes float-rotate {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(-2deg) scale(1.02); }
    50% { transform: translateY(0px) rotate(0deg) scale(1); }
    75% { transform: translateY(8px) rotate(2deg) scale(0.99); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

/* Optional glow effect to make animated image more visible */
/* .deco-anim:hover {
    filter: drop-shadow(0 12px 24px rgba(37,99,235,0.12));
} */


/* Social / video grid */
/* GRID LAYOUT */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* VIDEO CARD */
.video-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* THUMBNAIL (REEL SIZE 9:16) */
.video-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;   /* Instagram Reel Ratio */
    background: #000;
}

/* IMAGE */
.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PLAY BUTTON */
.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* TEXT AREA */
.video-body {
    padding: 18px;
    text-align: center;
}

.video-body h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.video-body p {
    font-size: 14px;
    color: #666;
}

.social-grid

{
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .social-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .social-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile carousel for social cards */
@media (max-width: 639px) {
    .social-grid,
    .video-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-6);
        scroll-behavior: smooth;
        padding: var(--space-2);
        margin: 0 calc(var(--space-4) * -1);
        padding-left: var(--space-4);
        padding-right: var(--space-4);
        -webkit-overflow-scrolling: touch;
    }

    .social-grid .blog-card,
    .video-grid .blog-card {
        flex: 0 0 calc(100% - var(--space-4));
        min-width: calc(100% - var(--space-4));
    }
}

/* Carousel navigation for mobile */
@media (max-width: 639px) {
    .social-grid::after,
    .video-grid::after {
        content: '';
        flex: 0 0 var(--space-2);
    }
}

/* .video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-dark);
    position: relative;
}

.video-card .thumb {
    aspect-ratio: 16/10;
    position: relative;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card .video-body {
    padding: var(--space-4);
    color: var(--color-white);
}

.video-card .video-body h4 {
    color: var(--color-white);
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.video-card .video-body p {
    font-size: var(--text-sm);
    opacity: 0.9;
} */


/* Pre-footer CTA (two columns) */

.pre-footer-cta {
    padding: var(--space-12) 0;
    background: var(--color-bg-blue);
}

.pre-footer-cta .grid-2 {
    align-items: center;
}

.pre-footer-cta .cta-heading {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-dark-blue);
    margin-bottom: var(--space-4);
}

.pre-footer-cta .request-form {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.pre-footer-cta .request-form h4 {
    margin-bottom: var(--space-4);
}

/* Footer logo styling */
.site-footer .footer-logo {
    margin-top: var(--space-4);
}

.site-footer .footer-top {
    padding: var(--space-12) 0; /* vertical space for footer */
}

/* Grid layout for footer content */
.site-footer .footer-top .footer-grid {
    display: grid;
    grid-template-columns: 23fr 229px 300px 159px;
    gap: var(--space-8);
    align-items: start;
}

@media (max-width: 767px) {
    .site-footer .footer-top .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: var(--space-6);
    }
}

.footer-brand {
    display:flex;
    flex-direction:column;
    gap:var(--space-4);
}

/* Larger footer logo */
.site-footer .footer-logo img {
    height: 72px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .site-footer .footer-logo img {
        height: 48px;
    }
}

.footer-links {
    list-style:none;
    padding:0;
    margin:0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--color-dark-blue); }

.footer-location p, .footer-contact p { color: var(--color-text); margin:0; }

.footer-map-thumb {
    margin-top: var(--space-3);
    width: 96px;
    height: 96px;
    background: #e6e9ef;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    color: #1f2937;
}

.footer-map-embed iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 0;
    display: block;
}

@media (min-width: 768px) {
    .footer-map-embed iframe { height: 200px; }
}

/* Footer social + bottom (make icons + bottom bar visible on light footer) */
/* .footer-social-row { padding: var(--space-6) 0; } */
/* Social Icons Wrapper */
.footer-social-wrap {
  display: flex;
  justify-content: center;
  color: white;
}

/* Icons Row */
.social-icons {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Icon Button */
.social-icons a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

/* Icon Image */
.social-icons img,
.social-icons svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Hover Effect */
.social-icons a:hover {
  background: #0b3ecf;
  transform: translateY(-3px);
}


.site-footer .footer-bottom {
   
    background: var(--color-bg-light);
    color: var(--color-text);
}

.footer-domain {
    text-align: center;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Force footer bottom text to stay centered at all sizes */
.footer-bottom .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.site-footer {
    background: var(--color-bg-light); /* ensure footer is visible on light pages */
}

.site-footer .footer-bottom {
    /* padding: var(--space-12) 0; /* larger bottom padding */
}

.footer-bottom-inner { display:flex; flex-direction:column; align-items:center; gap: var(--space-2); }

.site-footer .map-wrapper iframe {
    height: 360px; /* increase embedded map height for visual balance */
}

/* Awards overlay cards (placed over event image) */
.awards-hero {
    position: relative;
}
.awards-hero img {
    display: block;
    border-radius: var(--radius-lg);
}
.awards-grid {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px; /* increased bottom padding as requested */
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    width: calc(100% - 6rem);
    max-width: 980px;
    padding: 0 1rem;
}
.award-card {
    background: rgba(217, 217, 217, 0.10); /* translucent gray as provided */
    color: var(--color-white);
    padding: 25px 1rem 1rem 1rem; /* 50px top padding requested */
    border-radius: 18px; /* match provided radius */
    border: 1px solid rgba(255,255,255,1); /* white border */
    backdrop-filter: blur(17.5px); /* stronger blur per snippet */
    -webkit-backdrop-filter: blur(17.5px);
    box-shadow: 0 8px 20px rgba(8, 15, 40, 0.06);
    min-height: 88px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}
.award-card h4 {
    /* margin: 0 0 0.35rem 0; */
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--color-white);
}
.award-card p {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .awards-grid { grid-template-columns: repeat(2, minmax(160px,1fr)); width: calc(100% - 4rem); }
}
@media (max-width: 640px) {
    .awards-grid { grid-template-columns: 1fr; position: static; transform: none; margin-top: 1rem; }
    .awards-hero img { border-radius: var(--radius-lg); }
    .award-card { background: rgba(255,255,255,0.96); color: var(--color-dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* About container: image pushed outside the box for hero effect */
.about-container {
    position: relative;
    max-width: 1200px;
    height: 520px;
    margin: auto;
    background: #eef6ff;
    border-radius: 20px;

    display: flex;
    align-items: center;
    padding-left: 60px;

    overflow: visible; /* 🔥 IMPORTANT */
}
.about-image {
    position: absolute;
    right: -40px;   /* pushes image OUTSIDE */
    bottom: -30px; /* pushes image OUTSIDE */
    height: 100%;
}

.about-image img {
    height: 115%;   /* slightly taller for hero effect */
    object-fit: contain;
}

.hero-cta-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* padding: var(--space-8);
    */
    
    
    margin-top:110px;
    margin-bottom: 80px;
    padding-right:40px;
    padding: var(--space-6);
    background: rgba(217, 217, 217, 0.04);
    backdrop-filter: blur(30px);
    border-color: #fff;
    border-style: solid;
    border-width: 0.3px;
    height: auto;
    border-radius: 18px;
}

.hero-cta-content {
  text-align: left;
  max-width: 400px;
}

.hero-cta-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-cta-block {
    justify-content: center;
    text-align: center;
  }
  
  .hero-cta-content {
    text-align: center;
  }
}
/* ================================
   INFO CARDS WITH SIDE IMAGE
================================ */

.info-with-image {
    background: linear-gradient(135deg, #6b8fe6, #3a63d8);
    padding: 90px 0;
}

/* Two column layout */
.info-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 70px;
    align-items: center;
}

/* Left column */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Individual card */
.info-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* Headings */
.info-card h2 {
    font-size: 24px;
    color: #1f4fd8;
    margin-bottom: 14px;
}

/* Paragraphs */
.info-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* Right image */
.info-image img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: auto;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
    .info-layout {
        grid-template-columns: 1fr;
    }

    .info-image {
        order: -1;
        text-align: center;
    }

    .info-image img {
        max-width: 220px;
        margin-bottom: 40px;
    }
}
/* Section Wrapper */
.recovery-section {
  padding: 80px 10%;
  background: transparent;   /* TRANSPARENT */
}

/* Main Layout */
.recovery-container {
  display: flex;
  /* align-items: center; */
  gap: 60px;
  justify-content: center;
  background: transparent;   /* TRANSPARENT */
}

/* Image Box */
.recovery-image img {
  width: 420px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Content Area */
.recovery-content {
  max-width: 500px;
  color: #ffffff;  /* Change if dark text needed */
}

/* Heading */
.recovery-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

/* Paragraphs */
.recovery-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* Button */
.btn-testimonial {
  margin-top: 25px;
  padding: 14px 34px;
  border-radius: 40px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-testimonial:hover {
  background: #ffffff;
  color: #2563eb;
}

/* Responsive */
@media (max-width: 900px) {
  .recovery-container {
    flex-direction: column;
    text-align: center;
  }

  .recovery-image img {
    width: 100%;
  }
}
/* MAIN SECTION */
.procedure-glass{
  padding: 100px 8%;
  background: linear-gradient(120deg,#6a8fd8,#2f5fe3);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ICON */
.procedure-icon-wrap img{
  width: 130px;
  margin-bottom: 30px;
  animation: float 4s ease-in-out infinite;
}

/* FLOAT EFFECT */
@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-15px);}
  100%{transform:translateY(0);}
}

/* TITLE */
.procedure-title{
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 70px;
}

/* GRID */
.procedure-cards{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

/* CARD */
.procedure-card{
  background: rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 40px 25px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* HOVER */
.procedure-card:hover{
  transform: translateY(-12px);
  background: rgba(255,255,255,0.18);
}

/* CARD TITLE */
.procedure-card h3{
  font-size: 20px;
  margin-bottom: 15px;
}

/* CARD TEXT */
.procedure-card p{
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .procedure-cards{
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:600px){
  .procedure-cards{
    grid-template-columns: 1fr;
  }

  .procedure-title{
    font-size: 28px;
  }
}
.procedure-style{
 padding: 120px 8% 100px;
    text-align: center;
    color: #ffffff;
    position: relative;
    display: flex;
    /* overflow: hidden; */
    flex-wrap: nowrap;
    flex-direction: column;
}

/* Floating shape */
.procedure-shape img{
  width: 170px;
  margin-bottom: 40px;
  animation: floatShape 6s ease-in-out infinite;
}

@keyframes floatShape{
  0%{transform:translateY(0);}
  50%{transform:translateY(-20px);}
  100%{transform:translateY(0);}
}

/* Heading */
.procedure-heading{
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 70px;
}

/* Grid */
.procedure-grid{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 28px;
}

/* Card */
.procedure-box{
  background: rgba(255,255,255,0.15);
  border-radius: 22px;
  padding: 42px 28px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 25px 45px rgba(0,0,0,0.15);
  transition: 0.4s ease;
}

.procedure-box:hover{
  transform: translateY(-10px);
  background: rgba(255,255,255,0.22);
}

.procedure-box h3{
  font-size: 20px;
  margin-bottom: 14px;
}

.procedure-box p{
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

/* Responsive */
@media(max-width:1100px){
  .procedure-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:600px){
  .procedure-grid{
    grid-template-columns: 1fr;
  }

  .procedure-heading{
    font-size: 28px;
  }
}
.robotic-steps-section{
  padding:100px 20px;
  text-align:center;
  font-family:Arial, sans-serif;
}

/* Title */
.steps-title{
  color:#fff;
  font-size:38px;
  margin-bottom:60px;
  font-weight:700;
}

/* Grid */
.steps-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:35px;
}

/* Card */
.step-card{
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius:18px;
  padding:60px 30px 40px;
  color:#fff;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  transition:transform .3s ease;
}

.step-card:hover{
  transform:translateY(-8px);
}

/* Number circle */
.step-number{
  width:55px;
  height:55px;
  background:#fff;
  color:#2f55e0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
  position:absolute;
  top:-28px;
  left:50%;
  transform:translateX(-50%);
}

/* Text */
.step-card h3{
  font-size:22px;
  margin-bottom:12px;
}

.step-card p{
  font-size:16px;
  line-height:1.6;
  opacity:.95;
}
@media (max-width:576px) {
  .hero-services-hero h1 {
    font-size: 28px;
  }
}
.testimonial-stars {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: #1946DA; /* Gold */
}
/* =====================================================
   MOBILE OPTIMIZATION OVERRIDES (MAX-WIDTH: 768px)
===================================================== */

@media (max-width: 768px) {

  /* GLOBAL FIXES */
  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  p  { font-size: 15px; }

  /* CONTAINER */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* HERO */
  .hero-banner {
    min-height: 240px;
  }

  .hero-banner p {
    max-width: 100%;
  }

  /* SERVICES OVERLAY CARD */
  .services-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 24px;
    margin-top: 20px;
  }

  /* HERO HOME CARDS */
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-card.hero-card-primary {
    width: 100%;
    height: auto;
  }

  /* HERO SECTION CARD (LEFT + RIGHT) */
  .hero-section-card {
    flex-direction: column;
  }

  .hero-card-left,
  .hero-card-right {
    width: 100%;
  }

  .hero-card-title {
    padding-left: 0;
    text-align: center;
  }

  .hero-card-box {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 30px;
    text-align: center;
  }

  /* EXPERTISE CARDS */
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    width: 100%;
    height: auto;
  }

  /* ABOUT IMAGE OVERFLOW FIX */
  .about-container {
    flex-direction: column;
    height: auto;
    padding: 24px;
  }

  .about-image {
    position: static;
    width: 100%;
    margin-top: 20px;
  }

  .about-image img {
    height: auto;
  }

  /* HIGHLIGHT SECTION */
  .highlight-parent {
    grid-template-columns: 1fr;
    padding-right: 16px;
  }

  .highlight-image {
    position: relative;
    width: 100%;
    top: 0;
  }

  .highlight-image img {
    height: auto;
    padding-bottom: 0;
  }

  /* TREATMENT CARDS */
  .treatment-cards-grid {
    grid-template-columns: 1fr;
  }

  .treatment-card {
    width: 100%;
    min-height: auto;
  }

  /* PROCEDURE STEPS */
  .procedure-steps {
    grid-template-columns: 1fr;
  }

  .procedure-steps::before {
    display: none;
  }

  /* BLOG */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    width: 100%;
  }

  /* VIDEO / SOCIAL GRID */
  .video-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  /* BOOK APPOINTMENT */
  .book-section {
    grid-template-columns: 1fr;
  }

  .book-doctor-image {
    max-width: 100%;
    margin-left: 0;
  }

  /* FOOTER */
  .site-footer .footer-top .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-map-embed iframe {
    height: 220px;
  }

  /* AWARDS */
  .awards-grid {
    grid-template-columns: 1fr;
    position: static;
    transform: none;
    width: 100%;
  }

  /* CTA BLOCK */
  .hero-cta-block {
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .hero-cta-content {
    text-align: center;
  }

}



/* =====================================================
   REMOVE FLOATING / DECO / GRID IMAGES ON MOBILE
===================================================== */
@media (max-width: 768px) {

  /* Hide decorative / floating images */
  .hip-floating-img,
  .expert-image,
  .procedure-shape,
  .procedure-icon-wrap,
  .deco-img,
  .deco-large,
  .deco-anim,
  .highlight-image,
  .about-image,
  .book-doctor-image,
  .hero-card-right::before {
    display: none !important;
  }

  /* Hide inline background-image frames */
  div[style*="background-image"] {
    background-image: none !important;
    height: auto !important;
  }

  /* Hide grid side images inside preparation section */
  img[src*="Abstract Image"] {
    display: none !important;
  }

  /* Hide recovery left image */
  section img[src*="image-gen"] {
    display: none !important;
  }

  /* Hide risks section right image */
  img[src*="envato-labs-image-edit"] {
    display: none !important;
  }

  /* Hide expert banner doctor image */
  img[src*="node-98"] {
    display: none !important;
  }

  /* Convert two-column grids to single column */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Convert flex rows to column */
  section div[style*="display:flex"] {
    flex-direction: column !important;
  }

  /* Center all cards nicely */
  .hip-card,
  .overlay-card,
  .step-card {
    text-align: left;
  }

  /* Reduce big paddings */
  section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

}



/* =====================================================
   MOBILE CLEAN VIEW – ROBOTIC PARTIAL KNEE PAGE
===================================================== */
@media (max-width: 768px) {

  body{
    overflow-x:hidden;
  }

  /* ---------------------------------
     HIDE FLOATING & DECORATIVE IMAGES
  ----------------------------------*/

  /* floating knee image */
  img[src*="wq.png"]{
    display:none !important;
  }

  /* recovery image */
  img[src*="image-gen"]{
    display:none !important;
  }

  /* expert doctor image */
  img[src*="node-98"]{
    display:none !important;
  }

  /* any absolute positioned image */
  img[style*="position:absolute"]{
    display:none !important;
  }

  /* ---------------------------------
     STACK LAYOUTS
  ----------------------------------*/

  /* main flex rows → column */
  section div[style*="display:flex"]{
    flex-direction:column !important;
  }

  /* grid 2 columns → single */
  div[style*="grid-template-columns"]{
    grid-template-columns:1fr !important;
  }

  /* ---------------------------------
     FIX HUGE OFFSETS & MARGINS
  ----------------------------------*/

  section[style*="margin-left: 250px"]{
    margin-left:0 !important;
  }

  section{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* ---------------------------------
     CARDS FULL WIDTH
  ----------------------------------*/

  section div[style*="background:white"]{
    max-width:100% !important;
    padding:28px 22px !important;
    border-radius:22px;
  }

  /* ---------------------------------
     TEXT SIZES
  ----------------------------------*/

  h1{font-size:26px;}
  h2{font-size:22px;}
  h3{font-size:20px;}

  p, li{
    font-size:15px !important;
    line-height:1.6;
  }

  /* ---------------------------------
     ROBOTIC STEPS
  ----------------------------------*/

  .robotic-steps-section .steps-grid{
    grid-template-columns:1fr !important;
  }

  /* ---------------------------------
     RECOVERY CONTENT FIX
  ----------------------------------*/

  section div[style*="margin-bottom: 250px"]{
    margin-bottom:0 !important;
  }

  /* ---------------------------------
     EXPERT BANNER
  ----------------------------------*/

  .expert-banner{
    flex-direction:column;
    height:auto;
    padding:40px 22px;
    text-align:center;
  }

  .expert-text{
    width:100%;
  }

}


/* ==========================================
   FIX RECOVERY CARDS OVERFLOW (MOBILE)
========================================== */
@media (max-width: 768px){

  /* Remove forced spanning */
  section div[style*="grid-column:span 2"]{
    grid-column: span 1 !important;
    max-width:100% !important;
    width:100% !important;
    margin:auto !important;
  }

  /* Make recovery cards full width */
  section div[style*="background:rgba(255,255,255,0.18)"]{
    width:100% !important;
  }

}
@media (max-width:768px){
  section div[style*="display:grid"]{
    justify-items:center;
  }
}


/* ==========================================
   MOBILE FIX – SPORTS MEDICINE PAGE
========================================== */
@media (max-width:768px){

/* Prevent horizontal scroll */
body{
  overflow-x:hidden;
}

/* ----------------------------------
   REMOVE FIXED WIDTHS / HEIGHTS
---------------------------------- */
section div[style*="width:555px"],
section div[style*="width:1000px"],
section div[style*="width:260px"]{
  width:100% !important;
}

section div[style*="height: 350px"],
section div[style*="height: 229px"]{
  height:auto !important;
}

/* ----------------------------------
   STACK FLEX ROWS
---------------------------------- */
section div[style*="display:flex"]{
  flex-direction:column !important;
}

/* ----------------------------------
   CENTER CARDS
---------------------------------- */
section div[style*="background:white"],
section div[style*="rgba(255,255,255,0.18)"],
section div[style*="rgba(255,255,255,0.12)"]{
  margin-left:auto !important;
  margin-right:auto !important;
}

/* ----------------------------------
   IMAGE SECTION FIX
---------------------------------- */
section img{
  max-width:100%;
  height:auto;
}

/* Remove overlap glass card margin */
section div[style*="margin:-80px auto"]{
  margin:20px auto 0 !important;
}

/* ----------------------------------
   TEXT SCALE
---------------------------------- */
h1{font-size:26px !important;}
h2{font-size:24px !important;}
h3{font-size:20px !important;}
p{font-size:15px !important; line-height:1.6 !important;}

}
 

/* =====================================
   CENTER FOOTER LOGO (MOBILE)
===================================== */
@media (max-width: 768px){

  /* Center footer brand block */
  .footer-brand{
    align-items:center !important;
    text-align:center !important;
  }

  /* Center logo itself */
  .site-footer .footer-logo{
    display:flex;
    justify-content:center;
  }

  .site-footer .footer-logo img{
    margin-left:auto;
    margin-right:auto;
  }

}


/* ==========================================
   MOBILE HERO FIX – SERVICES PAGE
========================================== */
@media (max-width:768px){

  /* Remove hero image */
  .hero-services-hero .hero-banner img{
    display:none !important;
  }

  /* Remove fixed height */
  .hero-services-hero .hero-banner{
    height:auto !important;
  }

  /* Remove glass overlay effect */
  .hero-overlay.services-card{
    position:static !important;
    backdrop-filter:none !important;
    background:transparent !important;
    padding:20px 0 !important;
  }

  /* Make text black */
  .hero-overlay.services-card h1,
  .hero-overlay.services-card p{
    color:#000 !important;
    text-align:center !important;
  }

}



/* =========================================
   FINAL HERO IMAGE FIX (OVERRIDE)
========================================= */

.hero-section-card{
  display:flex !important;
  align-items:stretch !important;
}

/* Left blue card */
.hero-card-box{
  flex:0 0 320px !important;
}

/* Right image container */
.hero-cta-content{
  flex:1 !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
}

/* Image fill */
.hero-cta-content img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:18px;
}


/* ================================
   FORCE HERO OVERLAY INSIDE IMAGE
================================ */

.hero-section-card{
  display:flex !important;
  width:100% !important;
  margin-left:0 !important;
  overflow:hidden !important;
}

/* Image wrapper */
.hero-cta-content{
  position:relative !important;
  flex:1 !important;
  width:auto !important;
  max-width:none !important;
  padding:0 !important;
}

/* Hero image */
.hero-cta-content img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:18px !important;
}

/* Glass overlay card */
.hero-glass-card{
  position:absolute !important;
  top:50% !important;
  right:30px !important;
  transform:translateY(-50%) !important;
  margin:0 !important;
}

/* =====================================
   FINAL WORKING HERO FIX
===================================== */

.hero-section-card{
  display:flex;
  /* width:1537px;
  margin-left: -50px; */
  min-height:30px;
  border-radius:18px;
  overflow:hidden;
}

/* LEFT BLUE CARD */
.hero-card-box{
  flex:0 0 320px;
  height:100%;
}

/* RIGHT IMAGE */
.hero-cta-content{
  flex:1;
  padding:0;
}

.hero-cta-content img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}



/* .hero-cta-content{
  max-width: 700px;
} */
.hero-section-card{
  display:flex;
}

.hero-card-box{
  flex:0 0 320px;
}

.hero-cta-content{
  flex:1;
}

.hero-cta-content img{
  width:100%;
  height:100%;
  
}
/* ==============================
   HERO IMAGE GLASS CARD OVERLAY
   ============================== */



.hero-cta-content img{
  width: 100%;
  border-radius: 20px;
  display: block;
}

.hero-glass-card{
  position: absolute;

  /* RIGHT CENTER POSITION */
  top: 50%;
  right: 30px;
  height: 300px;
  width: 250px;
  transform: translateY(-50%);

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 24px 28px;
  border-radius: 18px;
  max-width: 260px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


/* Title */
.hero-cta-title{
  font-size: 26px;
  line-height: 1.2;
  color: #1946DA    ;
  margin-bottom: 14px;
}

/* Button */
.hero-glass-card .btn{
  padding: 10px 22px;
  border-radius: 8px;
}


/* Cookie box container */
#cookie-box{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 320px;
}

/* X close button */
#cookie-close{
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

#cookie-close:hover{
  color: #1946DA;
}




/* ===================================================
   CLEAN FINAL HERO OVERLAY FIX (DO NOT DUPLICATE)
=================================================== */

.hero-section-card{
  display:flex !important;
  width:100% !important;

  border-radius:18px !important;
  overflow:hidden !important;
}

/* LEFT BLUE CARD */
.hero-card-box{
  flex:0 0 320px !important;
}

/* IMAGE CONTAINER */
.hero-cta-content{
  position:relative !important;   /* KEY FIX */
  flex:1 !important;
  width:auto !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
}

/* IMAGE */
.hero-cta-content img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* GLASS CARD */
.hero-glass-card{
  position:absolute !important;
  top:50% !important;
  right:30px !important;
  transform:translateY(-50%) !important;
  z-index:999 !important;
}

@media (max-width: 768px) {
.hero-glass-card{
    display: none;
}
}


@media (max-width: 768px) {
  .hero-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #222 !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .hero-overlay h1,
  .hero-overlay p {
    color: #222 !important;
    display: block !important;
  }
}
