/* ============================================
   Home Page Specific Styles
   Dr. Varun Jitendra Dave - Homepage
   ============================================ */

/* ============================================
   MODERN HERO CAROUSEL SECTION - DARK THEME
   ============================================ */

/* Collage Layout Styles - Light Theme (Robotic Reference) */

/* Light Theme Overrides for Hero Slide */
.hero-light-theme .hero-slide-container::before {
    display: none !important; /* Remove dark overlay */
}

.hero-light-theme .hero-slide-bg {
    display: none !important; /* Remove background images */
}

.hero-light-theme .hero-title {
    color: #0f172a !important; /* Dark Navy/Black */
    text-shadow: none !important;
}

.hero-light-theme .hero-subtitle {
    color: #334155 !important;
    text-shadow: none !important;
}

.hero-light-theme .hero-description,
.hero-light-theme .hero-desc {
    color: #475569 !important;
}

/* Force Blue Text for all gradients in light mode */
.hero-light-theme .gradient-text-doctor,
.hero-light-theme .gradient-text,
.hero-light-theme .gradient-text-cochlear,
.hero-light-theme .gradient-text-ent {
    background: none;
    -webkit-text-fill-color: #2563eb !important; /* Blue */
    color: #2563eb !important;
}

/* Light Theme Badges */
.hero-light-theme .hero-badge,
.hero-light-theme .hero-badge-cochlear,
.hero-light-theme .hero-badge-ent,
.hero-light-theme .trust-badge {
    color: #334155 !important;
    border-color: #cbd5e1 !important; /* Light Gray Border */
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
}

.hero-light-theme .hero-badge i,
.hero-light-theme .trust-badge i {
    color: #2563eb !important; /* Blue Icons */
}

/* Ensure background is light */
.hero-light-theme {
    background-color: #f8fafc;
}

.composite-slide-item {
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.composite-text-content {
    position: relative;
    z-index: 10;
    padding-right: 20px;
    text-align: left;
}

/* Typography - Dark Theme (Navy/Black) */
.composite-text-content .hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    color: #0f172a; /* Dark Navy/Black */
    text-shadow: none; /* Remove text shadow for clean look */
}

.composite-text-content .hero-desc {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4b5563; /* Dark Gray */
    margin-bottom: 35px;
    max-width: 90%;
    font-weight: 500;
}

/* Button - Dark Navy Background */
.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background-color: #1e1b4b; /* Deep Indigo/Navy */
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 27, 75, 0.3);
}

.btn-pill-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 27, 75, 0.4);
    background-color: #312e81; /* Lighter Navy on hover */
    color: #ffffff;
}

.btn-pill-action i {
    transition: transform 0.3s ease;
}
.btn-pill-action:hover i {
    transform: translateX(4px);
}

/* Collage Wrapper */
.collage-wrapper {
    position: relative;
    height: 600px;
    width: 100%;
    margin-top: -30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Polaroid Image Style */
.collage-img {
    position: absolute;
    background: #ffffff;
    padding: 12px; /* White frame effect */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Soft shadow */
    transition: transform 0.5s ease;
    z-index: 2;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Ensure faces are prioritized in cropping */
    display: block;
}

.collage-img:hover {
    transform: scale(1.02) !important;
    z-index: 20 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* Positioning & Rotation - Straight, Centered Look */
.img-top-left {
    width: 35%;
    height: 250px;
    top: 95px; /* Moved down to attach vertically */
    left: 18%; /* Moved to middle (aligned with bottom-left) */
    transform: none;
    z-index: 3;
}

.img-right-middle {
    width: 42%;
    height: 380px;
    top: 40px;
    right: 5%; /* Moved right to open up space */
    transform: none;
    z-index: 4;
}

.img-bottom-left {
    width: 32%;
    height: 200px;
    bottom: 55px; /* Adjusted bottom spacing */
    left: 21%; /* Moved left to align better */
    transform: none;
    z-index: 5;
}

/* Corner Squares - Solid Colors */
.corner-square {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 5;
    display: none; /* Hide corner squares for cleaner look if requested, or keep them but aligned */
}
/* Re-enabling corner squares but keeping them straight */
.corner-square.top-left {
    top: -10px;
    left: -10px;
    background-color: #587680;
    display: block;
}

.corner-square.top-right {
    top: -10px;
    right: -10px;
    background-color: #587680;
    display: block;
}

.corner-square.bottom-left {
    bottom: -10px;
    left: -10px;
    background-color: #587680;
    display: block;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .composite-text-content .hero-title {
        font-size: 3rem;
    }
    .collage-wrapper {
        height: 450px;
    }
    .img-top-left {
        width: 40%;
        height: 200px;
        left: 0;
    }
    .img-right-middle {
        width: 45%;
        height: 300px;
        right: 0;
    }
    .img-bottom-left {
        width: 35%;
        height: 160px;
        left: 10%;
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .animate-float {
        animation: none !important;
        transform: none !important;
    }

    .collage-img {
        padding: 5px !important;
    }

    .composite-text-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .composite-text-content .hero-title {
        font-size: 1.9rem;
    }

    /* Show all three images on mobile in a compact 2-col layout */
    .collage-wrapper {
        height: 310px; /* Adjusted to exactly fit 2x155px images */
        margin-top: 0;
        position: relative;
        display: block; /* use absolute positioning like desktop */
    }

    /* Left column: two stacked small images */
    .img-top-left {
        display: block !important;
        position: absolute;
        width: 48%;
        height: 155px; /* Increased from 120px */
        top: 0;
        left: 0;
        transform: none;
    }

    .img-bottom-left {
        display: block !important;
        position: absolute;
        width: 48%;
        height: 155px; /* Increased from 120px */
        bottom: 0;
        left: 0;
        transform: none;
    }

    /* Right column: main photo centered vertically */
    .img-right-middle {
        position: absolute;
        width: 50%;
        height: 180px; /* Set to requested height */
        top: 65px; /* Centered vertically relative to 310px wrapper ((310-180)/2) */
        right: 0;
        left: auto;
        transform: none;
        margin: 0;
    }

    .img-right-middle img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Scale down corner squares significantly on mobile */
    .corner-square {
        width: 18px;
        height: 18px;
    }
}

/* Google Font Import for distinctive typography */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

.hero-carousel-section-modern {
    position: relative;
    height: calc(100vh - 87px); /* Fixed height to fit screen */
    min-height: auto; /* Allow it to be smaller than before if needed */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide indicators as requested ("black thing") */
.hero-carousel-indicators {
    display: none !important;
}

/* Background Decorative Elements */
.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.25),
        rgba(255, 215, 0, 0.15)
    );
    top: -200px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.2),
        rgba(0, 255, 200, 0.1)
    );
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.2),
        rgba(236, 72, 153, 0.1)
    );
    top: 50%;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite;
}

.hero-wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")
        no-repeat bottom;
    background-size: cover;
    opacity: 0.8;
}

/* Slide Background Image - Ensure full coverage */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important; /* Ensure image covers the entire container */
    background-position: center center !important; /* Keep image centered */
    background-repeat: no-repeat !important;
    z-index: 0;
    opacity: 0.6;
    transition:
        opacity 1s ease,
        transform 8s ease;
    filter: saturate(0.8);
    background-attachment: scroll; /* Prevents fixed positioning issues */
}

.carousel-item.active .hero-slide-bg {
    animation: slowZoom 12s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Dark overlay for better text readability with equal padding */
.hero-slide-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

@keyframes orbFloat1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-30px, 50px) scale(1.1);
    }
    66% {
        transform: translate(20px, -30px) scale(0.95);
    }
}

@keyframes orbFloat2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -40px) scale(1.05);
    }
}

@keyframes orbFloat3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, 30px) scale(1.08);
    }
    66% {
        transform: translate(-25px, -20px) scale(0.92);
    }
}

/* Carousel Base Styles */
#heroCarouselModern {
    position: relative;
    z-index: 2;
}

#heroCarouselModern .carousel-inner {
    overflow: visible;
}
@media (max-width: 576px) {
    #heroCarouselModern .carousel-inner {
        margin-top: 20px;
    }
}

#heroCarouselModern .carousel-item {
    transition:
        opacity 1s ease-in-out,
        transform 0.8s ease-in-out;
}

.min-vh-hero {
    min-height: 100vh;
    padding: 20px 0 20px;
    display: flex;
    align-items: center;
}

/* Hero Slide Container */
.hero-slide-container {
    position: relative;
    width: 100%;
    z-index: 2;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

/* Hero Badge - Dark Theme with Neutral Accent */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Cochlear Badge - Neutral Accent */
.hero-badge-cochlear {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-badge-cochlear i {
    color: #ffffff;
}

/* ENT Badge - Neutral Accent */
.hero-badge-ent {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-badge-ent i {
    color: #ffffff;
}

/* Hero Title - White for Dark Theme */
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* White Text for Rhinoplasty */
.gradient-text {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* White Text for Cochlear */
.gradient-text-cochlear {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* White Text for ENT */
.gradient-text-ent {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* Force hero slider text to white */
.hero-carousel-section-modern .gradient-text,
.hero-carousel-section-modern .gradient-text-doctor,
.hero-carousel-section-modern .gradient-text-cochlear,
.hero-carousel-section-modern .gradient-text-ent {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.hero-carousel-section-modern .hero-subtitle,
.hero-carousel-section-modern .hero-badge,
.hero-carousel-section-modern .hero-badge i,
.hero-carousel-section-modern .hero-badge-cochlear,
.hero-carousel-section-modern .hero-badge-ent,
.hero-carousel-section-modern .trust-badge {
    color: #ffffff;
    text-shadow: none;
}

/* Hero Subtitle - White */
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slide-cochlear .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slide-ent .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

/* Hero Description - Light Gray for Dark Theme */
.hero-description {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 520px;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 35px;
}

/* Primary Button - Neutral Light Theme */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.28);
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary i {
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover i {
    transform: translateX(5px);
}

/* Cochlear Button - Neutral Light Theme */
.hero-btn-cochlear {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-btn-cochlear:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.28);
}

/* ENT Button - Neutral Light Theme */
.hero-btn-ent {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.hero-btn-ent:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* Secondary Button - Dark Theme */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Hero Trust Badges - Dark Theme */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.trust-badge i {
    color: #ffffff;
    font-size: 1rem;
}

.hero-slide-cochlear .trust-badge i {
    color: #ffffff;
}

.hero-slide-ent .trust-badge i {
    color: #ffffff;
}

/* Hero Visual Wrapper */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5;
}

/* Hero Image Card - Dark Theme */
.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-cochlear {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-image-ent {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Glow Effects - Dark Theme */
.image-glow-effect {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 70%
    );
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

.glow-cochlear {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 70%
    );
}

.glow-ent {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 70%
    );
}

.hero-main-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 480px; /* Adjusted for better mobile display */
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    display: block;
    z-index: 1;
}

/* Image Overlay - Dark Theme */
.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
    z-index: 2;
    pointer-events: none;
}

.overlay-cochlear {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
}

.overlay-ent {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
}

/* Floating Cards - Dark Theme with Glass Effect */
.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-floating-card i {
    font-size: 1.2rem;
    color: #ffffff;
}

.card-1 {
    top: 15%;
    right: -10px;
}

.card-2 {
    bottom: 20%;
    left: -20px;
}

/* Cochlear Floating Cards */
.card-cochlear-1 {
    top: 15%;
    right: -10px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-cochlear-1 i {
    color: #ffffff;
}

.card-cochlear-2 {
    bottom: 20%;
    left: -20px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-cochlear-2 i {
    color: #ffffff;
}

/* ENT Floating Cards */
.card-ent-1 {
    top: 15%;
    right: -10px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-ent-1 i {
    color: #ffffff;
}

.card-ent-2 {
    bottom: 20%;
    left: -20px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-ent-2 i {
    color: #ffffff;
}

/* Doctor Badge - Neutral Accent */
.hero-badge-doctor {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-badge-doctor i {
    color: #ffffff;
}

/* White Text for Doctor */
.gradient-text-doctor {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.hero-slide-doctor .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slide-doctor .trust-badge i {
    color: #ffffff;
}

.hero-image-doctor {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

.glow-doctor {
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
}

.overlay-doctor {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(255, 255, 255, 0.05) 100%
    );
}

.card-doctor-1 {
    top: 15%;
    right: -10px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-doctor-1 i {
    color: #ffffff;
}

.card-doctor-2 {
    bottom: 20%;
    left: -20px;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-doctor-2 i {
    color: #ffffff;
}

/* Carousel Controls - Dark Theme */
.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-carousel-control:hover {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.hero-control-prev {
    left: 30px;
}

.hero-control-next {
    right: 30px;
}

.control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-icon i {
    font-size: 1.2rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.hero-carousel-control:hover .control-icon i {
    color: #ffffff;
}

/* Carousel Indicators - Dark Theme */
.hero-carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    padding: 12px 20px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-carousel-indicators button {
    width: 40px;
    height: 6px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-carousel-indicators button.active {
    width: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hero-carousel-indicators button.active .indicator-progress {
    animation: indicatorProgress 6s linear forwards;
}

@keyframes indicatorProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Scroll Indicator - Dark Theme */
.hero-scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 15;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    position: absolute;

    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

.hero-scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Animations */
.animate-fade-in {
    animation: heroFadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: heroSlideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
    animation: heroSlideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: heroFadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: heroFadeIn 0.8s ease 0.45s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: heroFadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

.animate-float {
    animation: heroFloat 6s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: heroBounceSubtle 3s ease-in-out infinite;
}

.animate-bounce-subtle-delay {
    animation: heroBounceSubtle 3s ease-in-out 1.5s infinite;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes heroBounceSubtle {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Carousel Item Transitions */
.carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Hero Responsive Styles */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-main-image {
        min-height: 380px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-carousel-control {
        width: 48px;
        height: 48px;
    }

    .hero-control-prev {
        left: 20px;
    }

    .hero-control-next {
        right: 20px;
    }
}

@media (max-width: 992px) {
    .hero-carousel-section-modern {
        min-height: 100vh;
        padding-top: 100px !important; /* Increased for better mobile clearance */
        margin-top: 0;
    }

    .min-vh-hero {
        min-height: calc(100vh - 100px);
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
        max-width: 100%;
    }

    .hero-content-wrapper {
        padding: 25px 0;
    }

    .hero-badge {
        margin: 0 auto 20px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .hero-visual-wrapper {
        margin-bottom: 30px;
    }

    .hero-image-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-main-image {
        min-height: 280px;
        max-height: 380px;
        object-fit: contain;
    }

    .hero-floating-card {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .card-1,
    .card-cochlear-1,
    .card-ent-1,
    .card-doctor-1 {
        right: 0;
        top: 10%;
    }

    .card-2,
    .card-cochlear-2,
    .card-ent-2,
    .card-doctor-2 {
        left: 0;
        bottom: 15%;
    }

    .hero-carousel-control {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-carousel-indicators {
        bottom: 20px;
    }

    /* Dark overlay adjustment for mobile */
    .hero-slide-container::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .hero-slide-bg {
        opacity: 0.5;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* Tablet-specific adjustments for smooth transition */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-slide-bg {
        background-position: center center;
        background-size: cover;
        opacity: 0.55;
    }

    .hero-slide-container::before {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }
}

@media (max-width: 768px) {
    .hero-carousel-section-modern {
        padding-top: 90px;
    }

    .min-vh-hero {
        min-height: calc(100vh - 90px);
        padding: 30px 0 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.75);
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .hero-image-card {
        max-width: 100%;
        padding: 0;
    }

    .hero-main-image {
        min-height: 240px;
        max-height: 320px;
        object-fit: contain;
    }

    .hero-floating-card {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .hero-floating-card i {
        font-size: 1rem;
    }

    .trust-badge {
        font-size: 0.8rem;
    }

    .hero-gradient-orb {
        filter: blur(80px);
        opacity: 0.25;
    }

    .hero-orb-1 {
        width: 300px;
        height: 300px;
    }

    .hero-orb-2 {
        width: 200px;
        height: 200px;
    }

    .hero-orb-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section-modern {
        padding-top: 85px !important; /* Increased for better navbar clearance */

        min-height: 100vh;
    }

    .min-vh-hero {
        min-height: calc(100vh - 85px);
        padding: 25px 0 20px;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-content-wrapper {
        padding: 15px 0;
        text-align: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-image-card {
        max-width: 100%;
        border-radius: 16px;
        padding: 0 10px;
        margin: 0 auto;
    }

    .hero-main-image {
        min-height: 230px;
        max-height: 300px;
        object-fit: contain;
        width: 100%;
    }

    .hero-floating-card {
        display: none;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .trust-badge {
        font-size: 0.75rem;
    }

    .hero-carousel-indicators {
        padding: 8px 14px;
        gap: 8px;
    }

    .hero-carousel-indicators button {
        width: 30px;
        height: 4px;
    }

    .hero-carousel-indicators button.active {
        width: 45px;
    }

    .hero-slide-bg {
        opacity: 0.45;
        background-position: center center;
        background-size: cover;
        /* Prevent distortion on small screens */
        min-height: 100%;
    }
}

/* ============================================
   END MODERN HERO CAROUSEL SECTION
   ============================================ */

/* Modern Hero Carousel Section (Legacy) */
.hero-carousel-section {
    position: relative;
    min-height: auto;
    overflow: hidden;
    margin-bottom: 0;
}

/* Remove gap between hero and about section */
.hero-carousel-section + section,
.hero-carousel-section-modern + section {
    margin-top: 0 !important;
    /* position: relative; */
}

.hero-carousel-section-modern {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

/* Ensure proper spacing for all sections after hero */
.hero-carousel-section-modern + section.section-padding {
    padding-top: 5rem;
}

/* Mobile responsive spacing */
@media (max-width: 991px) {
    .hero-carousel-section-modern + section.section-padding {
        padding-top: 50px !important;
    }
}

@media (max-width: 767px) {
    .hero-carousel-section-modern + section.section-padding {
        padding-top: 15px !important; /* Reduced from 40px to close gap */
    }
}

@media (max-width: 575px) {
    .hero-carousel-section-modern + section.section-padding {
        padding-top: 30px !important;
    }
}

/* Banner image styles */
.carousel-banner-link {
    display: block;
    line-height: 0;
}

.carousel-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

#heroCarousel {
    height: auto;
    min-height: auto;
}

#heroCarousel .carousel-item {
    height: auto;
    min-height: auto;
    position: relative;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: blur(3px);
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Hero Content Card - Modern Card Design */
.hero-content-card {
    position: relative;
    z-index: 3;
    background: linear-gradient(120deg, #e5e8f3 0%, #6bb86f 45%, #2d7a2b 100%);
    border-radius: 24px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #1a5319;
    animation: fadeInUp 1s ease;
    position: relative;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Doctor Image Wrapper */
.hero-doctor-image-wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.hero-doctor-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInLeft 1s ease 0.3s both;
    background: #f0f0f0;
}

.hero-doctor-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

/* Hero Text Content */
.hero-text-content {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #141614;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: none;
}

.hero-description {
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hero CTA Button */
.hero-cta-wrapper {
    margin: 25px 0;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: linear-gradient(135deg, #4a9f47 0%, #1a5319 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(26, 83, 25, 0.3);
    border: none;
}

/* Hero Illustrative Images */
.hero-illustrative-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-illustration-item {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles for Hero Section */
@media (max-width: 1200px) {
    .hero-content-card {
        padding: 35px;
        margin: 30px 20px;
    }

    .hero-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel-section {
        padding: 0;
    }

    #heroCarousel {
        min-height: auto;
    }

    #heroCarousel .carousel-item {
        min-height: auto;
    }

    .hero-content-card {
        padding: 30px;
        margin: 20px 15px;
    }

    .hero-text-content {
        min-height: auto;
        padding: 20px 15px;
    }

    .hero-main-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-doctor-image-wrapper {
        padding: 15px;
        margin-bottom: 20px;
        min-height: 300px;
    }

    .hero-doctor-image {
        min-height: 300px;
    }

    .hero-doctor-image img {
        min-height: 300px;
    }

    .hero-text-content {
        min-height: auto;
    }

    .hero-illustrative-images {
        justify-content: center;
    }

    .hero-illustration-item {
        min-width: 100px;
        max-width: 120px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section {
        padding: 0;
    }

    #heroCarousel {
        min-height: auto;
    }

    #heroCarousel .carousel-item {
        min-height: auto;
    }

    .hero-content-card {
        padding: 25px 20px;
        margin: 15px 10px;
        border-radius: 20px;
    }

    .hero-text-content {
        padding: 15px 10px;
    }

    .hero-main-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-cta-button {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-doctor-image-wrapper {
        padding: 10px;
        min-height: 250px;
    }

    .hero-doctor-image {
        min-height: 250px;
    }

    .hero-doctor-image img {
        min-height: 250px;
    }

    .hero-text-content {
        min-height: auto;
    }

    .hero-illustrative-images {
        gap: 10px;
        margin-top: 15px;
    }

    .hero-illustration-item {
        min-width: 90px;
        max-width: 100px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .hero-content-card {
        padding: 20px 15px;
    }

    .hero-main-title {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-illustration-item {
        min-width: 80px;
        max-width: 90px;
        height: 80px;
    }

    .hero-doctor-image-wrapper {
        min-height: 200px;
    }

    .hero-doctor-image {
        min-height: 200px;
    }

    .hero-doctor-image img {
        min-height: 200px;
    }
}

/* Services Section - Home Page Only */
.services-section {
    background-color: #e5e8f3 !important;
    background: #f0f2fb !important;
    position: relative;
    overflow: hidden;
}

.services-background-pattern {
    display: none !important;
}

/* Testimonials Section - Home Page Only */
.testimonials-section {
    background: #c5d89d !important;
    position: relative;
}

/* Specialties Section */
/* Specialties Section - Modern Visual Update */
.specialties-section {
    position: relative;
    padding: 100px 0;
    /* Light background matching other sections like Services */
    background: #f0f2fb;
    overflow: hidden;
}

/* Add a background visual element (subtle pattern) */
.specialties-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use the same image but with different blend mode or opacity for light theme */
    background: url("../gallery/surgery-bg.jpg") no-repeat center center;
    background-size: cover;
    opacity: 0.05; /* Very subtle */
    z-index: 0;
    pointer-events: none;
}

.specialties-section .container {
    position: relative;
    z-index: 2;
}

.specialties-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a; /* Dark text */
    margin-bottom: 20px;
    text-shadow: none;
}

.specialties-subtitle {
    font-size: 1.2rem;
    color: #666; /* Darker subtitle */
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Grid Adjustments */
.specialties-section .row.g-4 {
    margin-top: 20px;
}

.specialty-card {
    background: #ffffff; /* White card */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Softer shadow */
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15); /* Emerald glow */
    border-color: rgba(16, 185, 129, 0.3);
}

.specialty-icon-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.specialty-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.1);
}

/* Modern Overlay Styles */
.specialty-overlay-styled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    opacity: 1;
    transition: all 0.4s ease;
}

/* .specialty-card:hover .specialty-overlay-styled {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
} */

.specialty-title-styled {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.specialty-description-styled {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.8;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.specialty-card:hover .specialty-title-styled {
    transform: translateY(-5px);
}

.specialty-card:hover .specialty-description-styled {
    opacity: 1;
    transform: translateY(-5px);
}

/* Diagnostic Services Section */
.diagnostic-services-section {
    background: #e5e8f3 !important;
    position: relative;
    padding: 80px 0;
}

.diagnostic-services-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.diagnostic-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.diagnostic-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.diagnostic-services-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.diagnostic-services-section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
}

.diagnostic-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.diagnostic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.diagnostic-image-wrapper {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.diagnostic-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0;
    padding: 0;
}

.diagnostic-card:hover .diagnostic-card-image {
    transform: scale(1.08);
}

.diagnostic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.diagnostic-overlay-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    text-transform: none;
    word-wrap: break-word;
    width: 100%;
}

.diagnostic-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c5d89d, #4c666f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.diagnostic-icon {
    font-size: 1.8rem;
    color: #ffffff;
}

.diagnostic-facility-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.diagnostic-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.diagnostic-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .diagnostic-image-wrapper {
        height: 260px;
    }
}

@media (max-width: 992px) {
    .diagnostic-image-wrapper {
        height: 250px;
    }

    .diagnostic-overlay {
        padding: 18px 16px;
        min-height: 65px;
    }

    .diagnostic-overlay-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .diagnostic-services-section .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .diagnostic-services-section .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }

    .diagnostic-image-wrapper {
        height: 240px;
    }

    .diagnostic-overlay {
        padding: 16px 14px;
        min-height: 60px;
    }

    .diagnostic-overlay-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .diagnostic-services-section .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .diagnostic-services-section .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 16px;
    }

    .diagnostic-image-wrapper {
        height: 220px;
    }

    .diagnostic-overlay {
        padding: 14px 12px;
        min-height: 55px;
    }

    .diagnostic-overlay-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .diagnostic-image-wrapper {
        height: 200px;
    }

    .diagnostic-overlay {
        padding: 12px 10px;
        min-height: 50px;
    }

    .diagnostic-overlay-title {
        font-size: 0.85rem;
    }
}

/* Featured Diagnostic Card */
.featured-diagnostic-card {
    background: linear-gradient(135deg, #f6f0d7 0%, #ffffff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(137, 152, 109, 0.1);
    border: 2px solid #e9ecef;
}

.featured-diagnostic-image {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.featured-diagnostic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-diagnostic-card:hover .featured-diagnostic-image img {
    transform: scale(1.05);
}

.featured-diagnostic-content {
    padding: 40px;
}

.featured-diagnostic-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.featured-diagnostic-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.featured-diagnostic-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.featured-diagnostic-features li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-diagnostic-features li i {
    color: #4c666f;
    font-size: 1.1rem;
}

/* ENT Health CTA Section */
.ent-health-cta-section {
    background:
        linear-gradient(
            135deg,
            rgba(26, 83, 25, 0.95),
            rgba(38, 137, 36, 0.95)
        ),
        url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80")
            center/cover no-repeat;
    position: relative;
    padding: 100px 0;
    color: #ffffff;
}

.ent-health-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1;
}

.ent-health-content {
    position: relative;
    z-index: 2;
}

.ent-health-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #53544d;
    margin-bottom: 25px;
    line-height: 1.3;
}

.ent-health-description {
    font-size: 1.2rem;
    color: #161515;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ent-feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.ent-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.ent-feature-item i {
    font-size: 2.5rem;
    color: #4c666f;
    margin-bottom: 15px;
    display: block;
}

.ent-feature-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ent-feature-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.ent-health-cta-buttons {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .specialties-heading,
    .diagnostic-heading {
        font-size: 2rem;
    }

    .ent-health-title {
        font-size: 2.2rem;
    }

    .ent-health-description {
        font-size: 1rem;
    }

    .featured-diagnostic-content {
        padding: 30px 25px;
    }

    .featured-diagnostic-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .specialties-section,
    .diagnostic-services-section {
        padding: 60px 0;
    }

    .ent-health-cta-section {
        padding: 70px 0;
    }

    .specialty-card,
    .diagnostic-card {
        margin-bottom: 20px;
    }

    .specialty-card {
        width: 100%;
        max-width: 379px;
        height: 420px;
    }

    .specialty-icon-wrapper {
        width: 100%;
        height: 100%;
    }

    .specialty-icon {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ent-health-title {
        font-size: 1.8rem;
    }

    .ent-health-description {
        font-size: 0.95rem;
    }

    .featured-diagnostic-image {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .specialties-heading,
    .diagnostic-heading {
        font-size: 1.75rem;
    }

    .ent-health-title {
        font-size: 1.5rem;
    }

    .ent-health-cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

/* Awards & Achievements Section */
.awards-section {
    background: #ffffff;
    position: relative;
    padding: 80px 0;
}

.awards-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Award Image Cards */
.award-image-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
}

.award-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(137, 152, 109, 0.2);
}

.award-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.award-image-card:hover .award-image {
    transform: scale(1.05);
}

/* Achievement Cards */
.achievement-card {
    background: #ffffff;
    border: 2px solid #4c666f;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(137, 152, 109, 0.15);
    border-color: #1a1a1a;
}

.achievement-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4c666f, #c5d89d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Specific background colors for each achievement icon */
.achievement-icon-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.achievement-icon-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.achievement-icon-green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.achievement-card:hover .achievement-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.achievement-card:hover .achievement-icon-gold {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.achievement-card:hover .achievement-icon-blue {
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.achievement-card:hover .achievement-icon-green {
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.achievement-icon {
    font-size: 1.8rem;
    color: #ffffff;
}

.achievement-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.achievement-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* Awards CTA Button */
.awards-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid #4c666f;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.awards-cta-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #4c666f;
    transition: left 0.3s ease;
    z-index: -1;
}

.awards-cta-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(137, 152, 109, 0.3);
}

.awards-cta-btn:hover::before {
    left: 0;
}

.awards-cta-btn i {
    transition: transform 0.3s ease;
}

.awards-cta-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Styles for Awards Section */
@media (max-width: 992px) {
    .awards-heading {
        font-size: 2rem;
    }

    .award-image-card {
        min-height: 250px;
    }

    .achievement-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .awards-section {
        padding: 60px 0;
    }

    .awards-heading {
        font-size: 1.8rem;
    }

    .award-image-card {
        min-height: 200px;
        margin-bottom: 20px;
    }

    .achievement-card {
        margin-bottom: 20px;
    }

    .awards-cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .awards-heading {
        font-size: 1.75rem;
    }

    .achievement-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .achievement-icon {
        font-size: 1.5rem;
    }

    .achievement-title {
        font-size: 1.1rem;
    }

    .achievement-description {
        font-size: 0.9rem;
    }

    .awards-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* ===== Educational Videos Section - Shorts Card Styles ===== */
#patient-reviews-splide .shorts-card {
    border-radius: 16px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#patient-reviews-splide .shorts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

#patient-reviews-splide .shorts-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

#patient-reviews-splide .shorts-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}

/* ============================================
   HOSPITAL AFFILIATIONS SECTION
   ============================================ */

.about-affiliations-section {
    padding: 80px 0;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

/* Background Pattern similar to other sections */
/* Background Pattern removed as per user request */
.about-affiliations-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.about-affiliations-section .container {
    position: relative;
    z-index: 2;
}

.affiliations-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.affiliations-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4c666f, #10b981);
    border-radius: 2px;
}

/* Modern Card Design - Large & Prominent */
.affiliation-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(76, 102, 111, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid #e8f4f8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Removed large min-height */
}

.affiliation-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(76, 102, 111, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #c5e4ed;
}

/* Decorative top accent - removed */
.affiliation-card::before {
    display: none;
}

.affiliation-image-wrapper {
    width: 100%;
    height: 200px; /* Reduced from 280px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
    padding: 20px; /* Reduced from 40px 50px */
    border-bottom: none;
    transition: background-color 0.3s ease;
}

.affiliation-card:hover .affiliation-image-wrapper {
    background: linear-gradient(180deg, #f0f7f9 0%, #ffffff 100%);
}

.affiliation-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: none;
}

.affiliation-card:hover .affiliation-image {
    transform: scale(1.05);
    filter: none;
}

.affiliation-card-content {
    padding: 20px; /* Reduced from 30px 35px 35px */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.affiliation-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a4a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.affiliation-card:hover .affiliation-name {
    color: #4c666f;
}

.affiliation-details {
    font-size: 1rem;
    color: #5a7a8a;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.affiliation-details i {
    color: #4c666f;
    font-size: 1rem;
}

/* Responsiveness */
@media (max-width: 991px) {
    .about-affiliations-section {
        padding: 60px 0;
    }

    .affiliations-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .affiliation-card {
        min-height: auto; /* Removed fixed min-height */
    }

    .affiliation-image-wrapper {
        height: 180px; /* Reduced from 240px */
        padding: 20px;
    }

    .affiliation-card-content {
        padding: 20px;
    }

    .affiliation-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .affiliations-title {
        font-size: 1.75rem;
    }

    .affiliation-card {
        max-width: 380px;
        margin: 0 auto;
        min-height: auto;
    }

    .affiliation-image-wrapper {
        height: 160px;
        padding: 15px;
    }

    .affiliation-card-content {
        padding: 15px;
    }

    .affiliation-name {
        font-size: 1.2rem;
    }

    .affiliation-details {
        font-size: 0.95rem;
    }
}

/* ============================================
   USER CUSTOM THEME PATTERNS
   ============================================ */
:root {
    --theme-bg-dark: #bfcdcd;
    --theme-bg-light: #ffffff;
}

/* Dark Theme Section */
.section-dark-theme {
    background-color: var(--theme-bg-dark) !important;
    color: #333333 !important;
    position: relative;
    z-index: 1;
}

/* Override text colors inside dark sections */
.section-dark-theme h1,
.section-dark-theme h2,
.section-dark-theme h3,
.section-dark-theme h4,
.section-dark-theme h5,
.section-dark-theme h6,
.section-dark-theme p:not(.btn-text),
.section-dark-theme span:not(.badge),
.section-dark-theme li {
    color: #1a1a1a !important;
}

/* Specific component overrides for dark theme */
.section-dark-theme .section-title h2,
.section-dark-theme .section-title p {
    color: #1a1a1a !important;
}

.section-dark-theme .specialties-heading,
.section-dark-theme .specialties-subtitle,
.section-dark-theme .services-heading,
.section-dark-theme .services-subtitle,
.section-dark-theme .gallery-heading,
.section-dark-theme .gallery-subtitle,
.section-dark-theme .testimonials-heading,
.section-dark-theme .testimonials-subtitle {
    color: #1a1a1a !important;
}

/* Ensure buttons and cards retain visibility */
.section-dark-theme .btn,
.section-dark-theme a.btn {
    color: #ffffff;
}

/* Light Theme Section */
.section-light-theme {
    background-color: var(--theme-bg-light) !important;
    color: #333333 !important;
    position: relative;
    z-index: 1;
}

/* Ensure text is dark on light background */
.section-light-theme h1,
.section-light-theme h2,
.section-light-theme h3,
.section-light-theme h4,
.section-light-theme h5,
.section-light-theme h6,
.section-light-theme p,
.section-light-theme li {
    color: #1a1a1a !important;
}

.section-light-theme .section-title h2,
.section-light-theme .section-title p {
    color: #1a1a1a !important;
}

/* About Section Specific for Seamless transition */
.about-section.section-light-theme {
    padding-top: 3rem;
}

/* ============================================
   USER CUSTOM THEME EXCEPTIONS & OVERRIDES
   ============================================ */

/* 1. Ensure Card Content remains visible in Dark Theme Sections */
/* Targeting specific card classes used in the project - No generic reset here, handle individually */

/* Home Testimonial Card Modern - White Card on Dark Background */
.section-dark-theme .home-testimonial-card-modern {
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Force text inside white cards to be dark */
.section-dark-theme .home-testimonial-card-modern p,
.section-dark-theme .home-testimonial-card-modern .home-testimonial-text-modern,
.section-dark-theme .home-testimonial-card-modern .home-author-info-modern h5,
.section-dark-theme .home-testimonial-card-modern .home-author-info-modern p {
    color: #1a1a1a !important;
}

.section-dark-theme .home-testimonial-card-modern .home-author-info-modern p {
    color: #4c666f !important; /* Keep the accent color for role/subtitle if desired, or black */
}

/* 2. Button Overrides for Dark Theme Sections */
/* Ensure buttons contrast against the dark background */
/* Unified Button Styles - Matching Image Uploaded */
.home-gallery-cta-btn,
.home-testimonials-cta-btn,
.read-more-testimonials,
.about-appointment-cta,
.awards-cta-btn,
.ent-health-cta-buttons .btn,
.btn-primary,
.btn-appointment,
.section-dark-theme .home-gallery-cta-btn,
.section-dark-theme .home-testimonials-cta-btn,
.section-dark-theme .btn-primary,
.section-dark-theme .btn-appointment {
    background-color: #587680 !important;
    color: #ffffff !important;
    border: 1px solid #587680 !important;
    border-radius: 50px !important;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 118, 128, 0.3) !important;
}

.home-gallery-cta-btn:hover,
.home-testimonials-cta-btn:hover,
.read-more-testimonials:hover,
.about-appointment-cta:hover,
.awards-cta-btn:hover,
.ent-health-cta-buttons .btn:hover,
.btn-primary:hover,
.btn-appointment:hover,
.section-dark-theme .home-gallery-cta-btn:hover,
.section-dark-theme .home-testimonials-cta-btn:hover,
.section-dark-theme .btn-primary:hover,
.section-dark-theme .btn-appointment:hover {
    background-color: #4a636b !important; /* Slightly darker on hover */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 118, 128, 0.4) !important;
    border-color: #4a636b !important;
}

/* Force inner text (spans/icons) to be white, overriding generic dark theme rules */
.home-gallery-cta-btn span,
.home-gallery-cta-btn i,
.home-testimonials-cta-btn span,
.home-testimonials-cta-btn i,
.read-more-testimonials span,
.read-more-testimonials i,
.about-appointment-cta span,
.about-appointment-cta i,
.awards-cta-btn span,
.awards-cta-btn i,
.ent-health-cta-buttons .btn span,
.ent-health-cta-buttons .btn i,
.btn-primary span,
.btn-primary i,
.btn-appointment span,
.btn-appointment i,
.section-dark-theme .home-gallery-cta-btn span,
.section-dark-theme .home-gallery-cta-btn i,
.section-dark-theme .home-testimonials-cta-btn span,
.section-dark-theme .home-testimonials-cta-btn i,
.section-dark-theme .btn-primary span,
.section-dark-theme .btn-primary i,
.section-dark-theme .btn-appointment span,
.section-dark-theme .btn-appointment i {
    color: #ffffff !important;
}

/* 3. Handle Educational Videos Section (Our Work) */
/* Heading is already white from generic rule. Button handled above. */

/* 4. Handle Specialty Cards (Transparent) */
/* Title is white from generic rule. */
.section-dark-theme .specialty-title-styled {
    color: #000000 !important;
}

/* ============================================
   Antigravity Service Cards (Added to Home)
   ============================================ */

/* Antigravity Animations */
@keyframes antigravity-float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.modern-service-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 76, 116, 0.12);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncier transition */
    animation: antigravity-float 6s ease-in-out infinite;
    position: relative;
    will-change: transform;
    background: #ffffff; /* Ensure white background for cards */
}

/* Specific Card Styles from Services Pages */
.modern-service-image-wrapper {
    width: 100%;
    height: 200px; /* Reduced height slightly for home grid balance */
    position: relative;
    overflow: hidden;
}

.modern-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 76, 116, 0.4) 0%,
        rgba(77, 87, 86, 0.35) 50%,
        rgba(195, 139, 139, 0.3) 100%
    );
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.modern-service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.modern-service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.modern-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-service-features li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.modern-service-features li i {
    color: #4c666f;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Hover Interaction & Antigravity Control */
.modern-service-card:hover {
    transform: translateY(-25px) scale(1.05); /* Lift higher */
    box-shadow: 0 30px 60px rgba(0, 76, 116, 0.25); /* Deep shadow */
    z-index: 10;
    animation-play-state: paused;
}

.modern-service-card:hover .modern-service-image {
    transform: scale(1.15);
}

.modern-service-card:hover .modern-service-overlay {
    opacity: 0.5;
}

/* Staggered Animation Delays */
.col-lg-3:nth-child(1) .modern-service-card {
    animation-delay: 0s;
}

.col-lg-3:nth-child(2) .modern-service-card {
    animation-delay: 1.5s;
}

.col-lg-3:nth-child(3) .modern-service-card {
    animation-delay: 3s;
}

.col-lg-3:nth-child(4) .modern-service-card {
    animation-delay: 4.5s;
}
/* ============================================
   MOBILE RESPONSIVENESS TWEAKS
   ============================================ */

/* About Section Image Wrapper */
.about-image-wrapper-home {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-home {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* Copied from inline */
}

/* Specialty Icon Wrapper */
.specialty-icon-wrapper-home {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Copied from inline */
    position: relative;
    background-color: #f8f9fa; /* Fallback color */
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 280px;
    background-color: #f8f9fa;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Mobile Overrides */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Reduce Specialty Card Height */
    .specialty-icon-wrapper-home {
        height: 220px !important;
    }

    /* Adjust About Image */
    .about-image-home {
        max-width: 90% !important;
        margin-bottom: 20px;
    }

    /* Center About Text */
    .about-text-wrapper {
        text-align: center;
        padding: 0 15px;
    }

    .about-cta-group {
        justify-content: center;
    }

    /* Modern Service Card Height */
    .modern-service-image-wrapper {
        height: 180px !important;
    }

    /* Gallery Grid to 1 Column */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .gallery-card {
        height: 220px;
    }

    /* Adjust Sections Padding */
    .section-padding {
        padding: 2rem 0 !important;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 2rem !important;
    }

    .specialties-heading-styled,
    .services-heading,
    .gallery-heading,
    .testimonials-heading {
        font-size: 2rem !important;
    }

    /* Home Testimonial Card */
    .home-testimonial-card-modern {
        padding: 20px !important;
    }
}

/* See More Link Styling */
.service-see-more-link {
    display: block;
    margin-top: 15px;
    font-weight: 600; /* Slightly bold */
    color: var(--primary-color, #004c74); /* Use primary color or fallback */
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-see-more-link:hover {
    color: var(--secondary-color, #c38b8b);
    text-decoration: underline;
}