/*
Theme Name: Dr. Jigar Gajjar Theme
Theme URI: https://drjigargajjar.in
Author: Antigravity
Author URI: https://drjigargajjar.in
Description: Official Custom WordPress Theme for Dr. Jigar Gajjar - Gold-Medalist Orthopaedic Surgeon & Ganesha Hospital.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drjigar
Tags: custom-theme, medical, elementor, responsive
*/

:root {
    /* Color Palette */
    --primary-color: #0E5F76;
    /* Deep Medical Teal */
    --primary-dark: #083E4D;
    /* Darker shade for hover/text */
    --accent-color: #F89F5B;
    /* Soft Warm Orange */
    --accent-hover: #E0853D;

    --text-main: #333333;
    /* Dark Grey */
    --text-light: #666666;
    /* Light Grey */
    --text-white: #FFFFFF;

    --bg-white: #FFFFFF;
    --bg-light: #F4F8F9;
    /* Very light bluish neutral */
    --bg-offwhite: #FAF9F6;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 90px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

/* Scrolled state for header */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Styles */
.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 68px;
    max-height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
    background: #FFFFFF;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.dr-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.dr-title {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-dark) !important;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color) !important;
}

/* Scrolled state nav links (desktop only — mobile uses overlay which overrides) */
@media (min-width: 993px) {
    #main-header.scrolled .main-nav a {
        color: var(--primary-dark) !important;
    }

    #main-header.scrolled .main-nav a:hover {
        color: var(--accent-color) !important;
    }
}

/* On mobile, scrolled state must NEVER override the white overlay text */
@media (max-width: 992px) {
    #main-header.scrolled .main-nav a,
    #main-header.scrolled .main-nav ul li a {
        color: #FFFFFF !important;
    }
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 120px;
    /* Increased to prevent ring clipping/cut-off at bottom */
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F4F6 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.hero-credentials {
    display: inline-block;
    background: rgba(14, 95, 118, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 20px;
}

.doctor-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    overflow: visible;
}

.circle-frame {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #136a83 0%, #0E5F76 100%);
    border: 8px solid white;
    box-shadow: 0 20px 45px rgba(8, 62, 77, 0.2);
    z-index: 1;
}

.doctor-img {
    position: relative;
    z-index: 10;
    width: 340px !important;
    height: auto !important;
    max-height: 440px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0;
    transform: translateY(-25px) !important;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.22)) !important;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 98%) !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 98%) !important;
}


/* Orbit Animation System */
.dashed-circle {
    display: none;
    /* Removing old class references if any remain in HTML logic */
}

.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Hidden by default — shown only on desktop via min-width query */
    display: none;
}

/* Show subtle orbit rings only on desktop */
@media (min-width: 993px) {
    .orbit-system {
        display: block;
    }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px dashed rgba(14, 95, 118, 0.18);
}

/* Outer Ring */
.orbit-ring.ring-outer {
    width: 165%;
    height: 165%;
    animation: rotate-cw 90s linear infinite;
}

/* Inner Ring */
.orbit-ring.ring-inner {
    width: 115%;
    height: 115%;
    border-color: rgba(14, 95, 118, 0.12);
    animation: rotate-ccw 70s linear infinite;
}

/* Dots on Rings — hidden for cleaner premium look */
.orbit-ring::before,
.orbit-ring::after {
    content: '';
    display: none;
}

@keyframes rotate-cw {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-ccw {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Floating Badges - Pushed outward to declutter */
.floating-badge {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.85rem;
    z-index: 12;
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
    max-width: 200px;
}

/* Left Side Badges - Positioned in the "Middle Ring" zone */
.badge-1 {
    top: 10%;
    left: -25%;
    animation-delay: 0s;
}

/* Joint Replacement */
.badge-2 {
    top: 42%;
    left: -32%;
    animation-delay: 1.5s;
}

/* Complex Trauma */
.badge-3 {
    bottom: 15%;
    left: -22%;
    animation-delay: 1s;
}

/* Hand Disorders */

/* Right Side Badges - Positioned in the "Middle Ring" zone */
.badge-4 {
    top: 10%;
    right: -25%;
    animation-delay: 2s;
}

/* Pain Management */
.badge-5 {
    top: 42%;
    right: -32%;
    animation-delay: 0.5s;
}

/* Pediatric Trauma */
.badge-6 {
    bottom: 15%;
    right: -22%;
    animation-delay: 2.5s;
}

/* Sports Injuries */

.floating-badge i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Trust Strip */
.trust-strip {
    background: white;
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid #eee;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item .icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.trust-text h3 {
    font-size: 1rem;
    margin-bottom: 0px;
    font-weight: 700;
    color: var(--primary-dark);
}

.trust-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #FFFAF6;
    /* Default Light Cream */
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* 
   Checkerboard Pattern 
   Grid is 3 columns.
   Rows: Dark, Light, Dark | Light, Dark, Light
*/
.service-card:nth-child(1),
.service-card:nth-child(3),
.service-card:nth-child(5) {
    background: #0E5F76;
    /* Dark Teal */
    color: white;
}

.service-card:nth-child(2),
.service-card:nth-child(4),
.service-card:nth-child(6) {
    background: #FDF6F0;
    /* Light Cream */
    color: var(--text-dark);
}

.service-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 8rem;
    font-weight: 800;
    opacity: 0.05;
    line-height: 1;
    color: currentColor;
    /* Inherits text color */
    pointer-events: none;
    z-index: 0;
    font-family: var(--font-heading);
}

/* Service Image Wrapper - Seamless Integration */
.icon-wrapper {
    width: 100%;
    /* Fit container width */
    height: 220px;
    /* Rectangular landscape aspect ratio */
    background: transparent;
    border-radius: 16px;
    /* Slightly tighter radius for rectangle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Image inside icon wrapper */
.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Subtle zoom effect on hover */
.service-card:hover .icon-wrapper img {
    transform: scale(1.1);
}

/* Icon style for Dark Cards - Remove "glass" box to keep image clean */
.service-card:nth-child(odd) .icon-wrapper {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    /* Slightly stronger shadow on dark */
}

.service-card:nth-child(odd) h3 {
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.service-card:nth-child(odd) p {
    color: rgba(255, 255, 255, 0.85);
}

/* Learn More Button - Dual Tone Logic */
.learn-more {
    position: relative;
    z-index: 10;
    /* Increased z-index */
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;

    /* Default (Light Cards) -> Dark Button */
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 95, 118, 0.3);
}

.learn-more:hover {
    transform: translateY(-3px);
    gap: 14px;
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(14, 95, 118, 0.5);
}

.learn-more i {
    font-size: 0.8rem;
    transition: 0.2s;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Dark Cards (Odd children) -> Light Button */
.service-card:nth-child(odd) .learn-more {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

.service-card:nth-child(odd) .learn-more:hover {
    background-color: #f0f0f0;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Why Choose */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* Why Choose Redesign */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.why-choose-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left: Visual */
.why-choose-visual {
    position: relative;
    padding: 20px;
    z-index: 1;
}

/* --- Why Choose Geometric Redesign (Exact Reference) --- */

.why-choose-visual.geo-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Reverted to center to match background shape */
    padding: 20px;
    min-height: 600px;
    /* Increased visual area */
    overflow: visible;
    /* Allow image to extend beyond container */
}

/* 1. Main Solid Backdrop Shape */
.geo-main-shape {
    position: absolute;
    top: 45%;
    /* Moved up from 50% to align with popped image */
    left: 53%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 420px;
    /* Increased width to match larger image */
    height: 350px;
    /* Increased height */
    background-color: var(--primary-dark);
    /* Brand Dark Color */
    border-radius: 40px;
    /* Soft corners */
    z-index: 0;
    box-shadow: 20px 20px 0px rgba(248, 159, 91, 0.15);
    /* Orange shadow for contrast */
}

/* 2. Top Left Lines Pattern */
.geo-pattern-lines {
    position: absolute;
    top: -50px;
    /* Moved up to stay with shape */
    left: -20px;
    width: 180px;
    /* Larger pattern */
    height: 180px;
    z-index: -1;
    /* Creating diagonal lines with Orange Accent */
    background: repeating-linear-gradient(-45deg,
            var(--accent-color),
            var(--accent-color) 2px,
            transparent 2px,
            transparent 12px);
    border-radius: 0 0 50px 0;
    /* Cut corner effect */
    mask-image: linear-gradient(to bottom right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom right, black 80%, transparent 100%);
    opacity: 0.6;
}

/* 3. Bottom Right Dots Grid */
.geo-pattern-dots {
    position: absolute;
    bottom: 80px;
    /* Moved up from 0 to stay with shape */
    right: 0px;
    width: 140px;
    /* Larger pattern */
    height: 140px;
    z-index: 3;
    /* On top of shape bottom corner */
    background-image: radial-gradient(var(--accent-color) 3px, transparent 3px);
    background-size: 20px 20px;
    /* Grid spacing */
    opacity: 0.8;
}

/* Main Doctor Image */
.why-choose-img {
    width: auto;
    max-height: 620px;
    /* Much larger image */
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    /* Stronger shadow against dark bg */
    transform: translateY(-200px);
    /* Adjusted pop-up for larger size */
    /* Move UP from center to pop out */
    margin-right: -20px;
    /* Slight offset to interactions with dots */
    margin-bottom: -20px;

    /* Smooth Bottom Fade Mask */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .why-choose-visual.geo-visual {
        min-height: 450px;
        padding-top: 50px;
        /* Add space for pop-out */
    }

    .geo-main-shape {
        width: 300px;
        height: 250px;
        top: 50%;
        left: 50%;
    }

    .why-choose-img {
        max-height: 400px;
        transform: translateY(-80px);
        /* Adjust pop for mobile */
        margin-right: 0;
    }

    .geo-pattern-lines {
        top: -40px;
        left: -10px;
        width: 120px;
        height: 120px;
    }

    .geo-pattern-dots {
        bottom: 20px;
        right: 10px;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .geo-main-shape {
        width: 260px;
        height: 220px;
    }

    .why-choose-img {
        max-height: 320px;
        transform: translateY(-60px);
    }
}

/* Right: Content */
.why-choose-content .section-title {
    margin-bottom: 15px;
}

.text-left {
    text-align: left;
}

.text-left::after {
    left: 0;
    transform: none;
}

.section-desc {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.feature-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left-color: var(--accent-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 95, 118, 0.08);
    /* Light Teal tint */
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Alternate Icon Colors for variety like Ref 1 */
.feature-card:nth-child(2) .feature-icon {
    background: rgba(248, 159, 91, 0.1);
    color: var(--accent-color);
}

.feature-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* --- Meet the Doctor Section --- */
.meet-doctor-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.doctor-profile-img img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--accent-light);
    max-width: 100%;
    height: auto;
}

.timeline-wrapper {
    margin-top: 80px;
}

.timeline-heading {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 60px;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Timeline Container */
.timeline-container {
    width: 100%;
    padding: 250px 0;
    overflow: visible;
}

/* Track Wrapper */
.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Central Connecting Bar (Desktop) */
.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    /* Neutral grey base */
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 0;
}

/* Timeline Items Base */
.timeline-item {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Year Bubble (Nodes) */
.timeline-item .tl-year {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    transition: transform 0.3s;
}

.timeline-item .tl-dot {
    display: none;
}

/* Hidden on desktop */

/* Content Card Base */
.timeline-item .tl-content {
    position: absolute;
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 15px;
    min-height: auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

/* Connector Line Base */
.timeline-item .tl-content::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 30px;
    opacity: 0.6;
    transform: translateX(-50%);
}


/* --- DUAL TONE LOGIC (Odd = Teal, Even = Orange) --- */

/* Odd Items (Top) - Teal Theme */
.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .tl-year {
    background: var(--primary-color);
    color: white;
}

.timeline-item:nth-child(odd) .tl-content {
    bottom: 50px;
    border-bottom: 4px solid var(--primary-color);
}

.timeline-item:nth-child(odd) .tl-content::before {
    top: 100%;
    /* Line goes down */
    background: var(--primary-color);
}

/* Even Items (Bottom) - Orange Theme */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .tl-year {
    background: var(--accent-color);
    /* Orange */
    color: white;
}

.timeline-item:nth-child(even) .tl-content {
    top: 50px;
    border-top: 4px solid var(--accent-color);
    border-bottom: none;
}

.timeline-item:nth-child(even) .tl-content::before {
    bottom: 100%;
    /* Line goes up */
    background: var(--accent-color);
}


/* --- GANESHA HOSPITAL HIGHLIGHT (Last Item) --- */
.timeline-item:last-child .tl-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    transform: translateX(-50%) scale(1.05);
    /* Slightly bigger */
    box-shadow: 0 10px 25px rgba(14, 95, 118, 0.3);
}

.timeline-item:last-child .tl-content h4 {
    color: white;
    margin-bottom: 5px;
}

.timeline-item:last-child .tl-content p {
    color: rgba(255, 255, 255, 0.9);
}

.timeline-item:last-child .tl-year {
    background: white;
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.timeline-item:last-child .tl-content::before {
    background: var(--primary-color);
    opacity: 1;
}


/* --- Learning Cloud Dual Tone --- */
.learning-section {
    margin-top: 80px;
    text-align: center;
}

.learning-heading {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 40px;
    opacity: 0.8;
}

.learning-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.course-badge {
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

/* Alternating Course Colors */
.course-badge:nth-child(odd) {
    border-left: 4px solid var(--primary-color);
}

.course-badge:nth-child(odd) i {
    color: var(--primary-color);
}

.course-badge:nth-child(even) {
    border-left: 4px solid var(--accent-color);
}

.course-badge:nth-child(even) i {
    color: var(--accent-color);
}

.course-badge span {
    text-align: left;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
    line-height: 1.2;
}

.course-badge small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.course-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* --- MOBILE CENTER-SPLIT TIMELINE --- */
@media (max-width: 992px) {
    .timeline-container {
        padding: 40px 0;
    }

    .timeline-track {
        flex-direction: column;
        align-items: center;
        /* Center items relative to spine */
        gap: 0;
        margin: 0;
    }

    /* Center Spine */
    .timeline-track::before {
        width: 4px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: #e0e0e0;
    }

    .timeline-item {
        width: 100%;
        /* Wrapper is full width */
        flex-direction: row;
        /* Allow align-self to work nicely on content wrapper if needed? No, keep it simple. */
        display: flex;
        flex-direction: column;
        /* Internal stack of content */
        margin-bottom: 40px;
        position: relative;
    }

    /* Common Mobile Resets */
    .timeline-item .tl-content {
        position: relative;
        left: auto;
        transform: none;
        width: 45%;
        /* Half width */
        min-height: auto;
    }

    .timeline-item .tl-content::before {
        display: none !important;
    }

    /* Hide vertical connectors */

    /* Reveal Dots for Mobile connection */
    .timeline-item .tl-dot {
        display: block;
        position: absolute;
        top: 15px;
        /* Align with content top approx */
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 3px solid white;
        z-index: 5;
    }

    /* ODD ITEMS (Left Side) - Teal */
    .timeline-item:nth-child(odd) {
        align-items: flex-end;
        /* Push content to right edge of container? No. */
        /* Item is 100% width. We want content on Left (0 to 50%). */
        padding-right: 50%;
        /* Push content to left half? */
        text-align: right;
        align-items: flex-end;
        /* Align content to the "spine" side (right of left half) */
        padding-right: 30px;
        /* Gap from spine */
    }

    .timeline-item:nth-child(odd) .tl-content {
        bottom: auto;
        /* Reset desktop */
        border-bottom: none;
        border-right: 4px solid var(--primary-color);
        /* Right border faces spine */
    }

    .timeline-item:nth-child(odd) .tl-dot {
        right: -8px;
        /* Center on spine (which is at padding edge) */
        /* Wait, padding-right 30px from 50%? No. */
        /* Simplest: */
        /* Track is center. Item is 50% width? */
    }

    /* Simplified Mobile Split Logic override */
    .timeline-item {
        width: 50%;
    }

    /* Items become half-width blocks */

    .timeline-item:nth-child(odd) {
        align-self: flex-start;
        /* Left side */
        align-items: flex-end;
        /* Content aligns to spine */
        padding-right: 25px;
        text-align: right;
        border-right: none;
    }

    .timeline-item:nth-child(even) {
        align-self: flex-end;
        /* Right side */
        align-items: flex-start;
        /* Content aligns to spine */
        padding-left: 25px;
        text-align: left;
    }

    /* Dots Positioning Mobile */
    .timeline-item:nth-child(odd) .tl-dot {
        right: -33px;
        /* 25px padding + 8px (half dot) */
        background: var(--primary-color);
        top: 20px;
    }

    .timeline-item:nth-child(even) .tl-dot {
        left: -33px;
        background: var(--accent-color);
        top: 20px;
    }

    /* Content Mobile Styles */
    .timeline-item .tl-content {
        width: 100%;
        /* Fill the half-width item */
    }

    .timeline-item:nth-child(even) .tl-content {
        top: auto;
        /* Reset desktop */
        border-top: none;
        border-left: 4px solid var(--accent-color);
    }

    .timeline-item:nth-child(odd) .tl-content {
        border-right: 4px solid var(--primary-color);
        border-bottom: none;
    }

    /* Years on Mobile */
    .timeline-item .tl-year {
        order: -1;
        /* Above content */
        margin-bottom: 5px;
        background: transparent !important;
        /* No pills on mobile to save space */
        color: #888 !important;
        padding: 0;
        border: none;
        box-shadow: none;
        font-size: 0.85rem;
    }

    /* HIGHLIGHT ADJUSTMENT MOBILE */
    .timeline-item:last-child .tl-content {
        transform: none;
        /* Remove desktop scale */
        scale: 1;
        width: 100%;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.doctor-bio h2 {
    text-align: left;
    margin-bottom: 10px;
}

.credentials-badge {
    background: var(--primary-dark);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: #FDFDFD;
    position: relative;
    overflow: hidden;
}

.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 50px;
    /* Space for controls */
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 10px;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    /* Show 3 cards (gap 30px * 2) */
    min-width: 300px;
    max-width: 100%;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    white-space: normal;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Stronger shadow on hover */
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
}

.author {
    margin-top: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* --- Carousel Container Styles --- */
/* Shared Carousel Layout */
.blog-carousel,
.video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 5px;
    /* Padding for shadow clearance */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.blog-carousel::-webkit-scrollbar,
.video-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.blog-carousel .blog-card,
.video-carousel .video-card {
    min-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Video Card Specifics */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    position: relative;
    height: 180px;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover .video-thumb img {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0;
    font-weight: 600;
}

/* Blog Card Styles (Dual Tone) */
/* Blog Card Styles (Refined to match Services) */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure equal height */
    justify-content: space-between;
    border-radius: 20px;
    /* Match Service Card */
    overflow: hidden;
    /* border: 1px solid #f0f0f0; Removed for clean look */
    transition: var(--transition);
    padding: 30px;
    /* Added Padding for framing effect */
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.blog-thumb {
    width: 100%;
    height: 220px;
    /* Match Service Icon Wrapper */
    border-radius: 16px;
    /* Match Service Inner Radius */
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-content {
    padding: 0;
    /* Remove internal padding as card has it now */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

/* "Read More" Button Base Style - Pill Shape */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* --- DUAL TONE LOGIC (Matching Services) --- */

/* EVEN Cards (Light/Cream) - Default */
.blog-card:nth-child(even) {
    background: #FDF6F0;
    /* Cream */
    color: var(--text-main);
}

.blog-card:nth-child(even) .blog-cat {
    background: var(--accent-light);
    /* Soft Orange */
    color: var(--accent-color);
}

.blog-card:nth-child(even) .blog-content h3 {
    color: var(--primary-dark);
}

.blog-card:nth-child(even) .blog-content p {
    color: var(--text-light);
    /* Darker grey on light bg */
}

.blog-card:nth-child(even) .read-more {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 95, 118, 0.3);
}

.blog-card:nth-child(even) .read-more:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(14, 95, 118, 0.5);
}


/* ODD Cards (Dark/Teal) - Inverted */
.blog-card:nth-child(odd) {
    background: var(--primary-color);
    /* Teal */
    color: white;
}

.blog-card:nth-child(odd) .blog-cat {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    /* Orange for contrast */
}

.blog-card:nth-child(odd) .blog-content h3 {
    color: white;
}

.blog-card:nth-child(odd) .blog-content p {
    color: rgba(255, 255, 255, 0.9);
}

.blog-card:nth-child(odd) .read-more {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-card:nth-child(odd) .read-more:hover {
    background-color: #f0f0f0;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Videos & Blogs */
@media (max-width: 992px) {

    .video-card,
    .blog-card {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 items */
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw;
        /* Almost full width on mobile */
        min-width: 0;
        scroll-snap-align: center;
    }

    .testimonials-carousel {
        scroll-snap-type: x mandatory;
    }
}

/* Orthopaedic Insights (Video & Blog) */
.insights-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    /* Light grey bg */
}

/* Video Carousel */
.video-carousel-wrapper {
    margin-top: 40px;
    overflow: hidden;
    /* Hide scrollbar for wrapper */
}

.video-carousel {
    display: flex !important;
    gap: 30px !important;
    overflow-x: auto !important;
    padding: 20px 5px !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
}

.video-carousel::-webkit-scrollbar {
    display: none !important;
}

.video-carousel .video-card {
    flex: 0 0 calc(50% - 15px) !important;
    width: calc(50% - 15px) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

@media (max-width: 768px) {
    .video-carousel .video-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    /* Teal */
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.video-card:hover .play-button {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-dark);
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Updated Blog Card Styles */
.blog-card {
    position: relative;
    /* Context for category tag */
}

.blog-cat {
    display: inline-block;
    background: var(--accent-light);
    /* Soft Orange */
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Responsive Videos */
@media (max-width: 992px) {
    .video-card {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 videos */
    }
}

@media (max-width: 576px) {
    .video-card {
        flex: 0 0 85vw;
        /* 1 video almost full width */
    }
}

/* Contact */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    text-align: left;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(14, 95, 118, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-embed {
    margin-top: 30px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Footer */
.main-footer {
    background-color: #052630;
    /* Very deep teal, almost black */
    color: white;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .dr-name {
    color: white;
}

.footer-brand .dr-title {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 15px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-links h4,
.footer-hours h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-links h4::after,
.footer-hours h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-hours p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
}


/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    /* Dual Tone Button Override for Dark Cards - Ensure visibility */
    .service-card:nth-child(odd) .learn-more {
        background-color: white !important;
        color: var(--primary-color) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: none;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .service-card:nth-child(odd) .learn-more:hover {
        background-color: #f0f0f0 !important;
        color: var(--primary-dark) !important;
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 30px;
    }

    .hero-sub {
        margin: 0 auto 1.5rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    .trust-points-grid,
    .why-choose-layout {
        grid-template-columns: 1fr;
    }

    .why-choose-visual {
        margin-bottom: 40px;
        order: -1;
    }

    .experience-badge {
        right: 0;
        bottom: 20px;
        padding: 15px 20px;
    }

    .exp-number {
        font-size: 2rem;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .doctor-profile-img {
        order: -1;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    /* Hide nav for mobile, need JS toggle */

    .mobile-menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    /* Show in mobile nav instead */

    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile Nav Active State */
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid #eee;
}

.main-nav.active ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

/* --- Scoped WhatsApp Form Styles (Theme Integrated) --- */
.scoped-whatsapp-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    /* Align text left like a standard form */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.scoped-whatsapp-form .pre-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.scoped-whatsapp-form .main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.scoped-whatsapp-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.scoped-whatsapp-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.scoped-whatsapp-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.scoped-whatsapp-form input,
.scoped-whatsapp-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly squarer than card */
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s;
    background: #f9f9f9;
}

.scoped-whatsapp-form input:focus,
.scoped-whatsapp-form textarea:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 95, 118, 0.1);
}

.scoped-whatsapp-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button */
.scoped-whatsapp-form .wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoped-whatsapp-form .wa-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 95, 118, 0.3);
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.form-divider span {
    padding: 0 10px;
    color: #999;
}

/* Quick Action Button (Enhanced) */
.quick-wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: 2px solid var(--accent-color);
    /* Stronger Orange Border */
    border-radius: 50px;
    background-color: white;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 800;
    /* Extra bold */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.quick-wa-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(248, 159, 91, 0.3);
    /* Orange Shadow */
}

/* Lightning Icon Animation */
.quick-wa-button i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.quick-wa-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

.quick-note {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .scoped-whatsapp-form {
        padding: 25px;
    }

    .scoped-whatsapp-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .scoped-whatsapp-form .main-title {
        font-size: 1.5rem;
    }
}

/* --- Inner Page Specific Components --- */
.inner-hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.inner-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 159, 91, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 0.75rem;
    opacity: 0.5;
}

.inner-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.inner-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    line-height: 1.6;
}

/* Detail Section Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-main {
    background: white;
}

.detail-main h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.detail-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.detail-banner-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.procedure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.procedure-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.procedure-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.procedure-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.hospital-badge-card {
    background: #f0f7f9;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.hospital-badge-card.soon {
    background: #fff8f2;
    border-left-color: var(--accent-color);
}

.hospital-badge-card h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.hospital-badge-card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hospital-badge-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.hospital-badge-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.quick-contact-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.quick-contact-box h3 {
    color: white;
    border: none;
    margin-bottom: 10px;
}

.quick-contact-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.quick-contact-box .btn-call {
    display: block;
    background: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.quick-contact-box .btn-call:hover {
    background: #e58d4a;
    transform: translateY(-2px);
}

/* Mobile & Tablet Viewport Fixes (320px to 992px) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 0 !important;
    }

    .hero-text {
        order: 2;
    }

    .hero-text h1 {
        font-size: 1.85rem !important;
        line-height: 1.3 !important;
    }

    .hero-sub {
        max-width: 100% !important;
        font-size: 1.05rem !important;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
        padding-top: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* These are overridden by the definitive block at end of file */
    .doctor-image-wrapper {
        width: 220px !important;
        height: 270px !important;
        margin: 0 auto !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    /* doctor-img: NO oval crop on mobile */
    .doctor-img {
        width: 230px !important;
        height: auto !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        border: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .floating-badge {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* Fix Health Education Video Card Thumbnails */
.video-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Fixed 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(14, 95, 118, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   PREMIUM 4-COLUMN FOOTER STYLES
   ========================================================================== */
.site-footer {
    background: #04293A;
    color: #FFFFFF;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-top {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-credentials-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(248, 159, 91, 0.15);
    color: #F89F5B;
    border: 1px solid rgba(248, 159, 91, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: #0E5F76;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: #F89F5B;
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #F89F5B;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.footer-contact-item i {
    font-size: 1.1rem;
    margin-top: 3px;
    color: #F89F5B;
}

.footer-contact-item strong {
    display: block;
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #F89F5B;
}

.footer-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0E5F76;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.footer-maps-btn:hover {
    background: #F89F5B;
    color: #04293A;
}

.opd-hours-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.opd-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px border-dashed rgba(255, 255, 255, 0.1);
}

.opd-row:last-child {
    border-bottom: none;
}

.opd-row .day {
    color: rgba(255, 255, 255, 0.8);
}

.opd-row .time {
    color: #FFFFFF;
    font-weight: 600;
}

.opd-row.emergency .time {
    color: #F89F5B;
}

.btn-wa-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-wa-footer:hover {
    background: #20BA5A;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-bottom {
    background: #021B27;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-seo-tag {
    color: rgba(248, 159, 91, 0.8);
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   INTERACTIVE PATIENT FAQ ACCORDION STYLES
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background: #FAF9F6;
}

.faq-accordion {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(14, 95, 118, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-header {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: #083E4D;
    gap: 20px;
}

.faq-header i {
    color: #0E5F76;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
    color: #F89F5B;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 25px;
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
    padding: 0 25px 25px;
}

.faq-body {
    font-size: 1rem;
    color: #444444;
    line-height: 1.7;
    border-top: 1px solid #F0F0F0;
    padding-top: 15px;
}

.faq-body ul {
    padding-left: 20px;
    margin-top: 10px;
}

.faq-body li {
    margin-bottom: 8px;
}

/* ==========================================================================
   HIGH-CONTRAST SMART HEADER NAV RULES (HOME vs INNER PAGE SEPARATION)
   ========================================================================== */
/* Home Page Header (Un-scrolled Light Background) */
#main-header.home-header:not(.scrolled) .main-nav a,
.home-header:not(.scrolled) .main-nav ul li a {
    color: #083E4D !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    transition: color 0.3s ease !important;
}

#main-header.home-header:not(.scrolled) .main-nav a:hover,
.home-header:not(.scrolled) .main-nav ul li a:hover {
    color: #F89F5B !important;
}

/* Inner Page Header (Un-scrolled Dark Background) */
#main-header.inner-header:not(.scrolled) .main-nav a,
.inner-header:not(.scrolled) .main-nav ul li a {
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    transition: color 0.3s ease !important;
}

#main-header.inner-header:not(.scrolled) .main-nav a:hover,
.inner-header:not(.scrolled) .main-nav ul li a:hover {
    color: #F89F5B !important;
}

/* Scrolled Header State (White/Frosted Glass Background) */
#main-header.scrolled .main-nav a,
.site-header.scrolled .main-nav a {
    color: #083E4D !important;
    text-shadow: none !important;
}

#main-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a:hover {
    color: #0E5F76 !important;
}

/* Call Now Secondary Button Hover Fix */
.hero-actions .btn-secondary {
    border: 2px solid #0E5F76 !important;
    color: #0E5F76 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.hero-actions .btn-secondary:hover {
    background: #0E5F76 !important;
    color: #FFFFFF !important;
}

/* Center Aligned FAQ Subtitle Fix */
.faq-section .section-desc {
    text-align: center !important;
    margin: 0 auto 35px auto !important;
    max-width: 750px !important;
    color: #555555 !important;
}

/* Gujarati Font Typography Global Rule */
body, p, span, div, a, h1, h2, h3, h4, h5, h6, input, textarea, button {
    font-family: 'Plus Jakarta Sans', 'Hind Vadodara', 'Noto Sans Gujarati', system-ui, -apple-system, sans-serif !important;
}

/* ==========================================================================
   DOCTOR ORBIT ANIMATION SYSTEM (HERO VISUAL)
   ========================================================================== */
.orbit-container {
    position: relative;
    width: 440px;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.doctor-avatar-circle {
    position: relative;
    z-index: 10;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #FFFFFF;
    box-shadow: 0 15px 35px rgba(8, 62, 77, 0.22);
    background: #0E5F76;
}

.doctor-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(14, 95, 118, 0.3);
    animation: rotateOrbit linear infinite;
}

.orbit-ring-1 {
    width: 340px;
    height: 340px;
    animation-duration: 25s;
}

.orbit-ring-2 {
    width: 420px;
    height: 420px;
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-ball {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F89F5B;
    box-shadow: 0 0 12px #F89F5B;
}

.ball-1 { top: 10%; left: 20%; background: #F89F5B; }
.ball-2 { bottom: 15%; right: 25%; background: #0E5F76; }
.ball-3 { top: 50%; right: -7px; background: #F89F5B; }
.ball-4 { bottom: 30%; left: -7px; background: #083E4D; }

.hero-service-badge {
    position: absolute;
    z-index: 15;
    background: #FFFFFF;
    color: #083E4D;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.hero-service-badge i {
    color: #0E5F76;
    font-size: 0.95rem;
}

.hero-service-badge:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(14, 95, 118, 0.25);
    border-color: #F89F5B;
    color: #0E5F76;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.badge-top-left { top: 25px; left: -10px; animation-delay: 0s; }
.badge-top-right { top: 25px; right: -10px; animation-delay: 0.5s; }
.badge-mid-left { top: 190px; left: -40px; animation-delay: 1s; }
.badge-mid-right { top: 190px; right: -40px; animation-delay: 1.5s; }
.badge-bot-left { bottom: 35px; left: 10px; animation-delay: 2s; }
.badge-bot-right { bottom: 35px; right: 10px; animation-delay: 2.5s; }

@media (max-width: 992px) {
    .orbit-container {
        width: 320px;
        height: 320px;
    }
    .doctor-avatar-circle {
        width: 180px;
        height: 180px;
    }
    .orbit-ring-1 { width: 250px; height: 250px; }
    .orbit-ring-2 { width: 310px; height: 310px; }
    .hero-service-badge { font-size: 0.75rem; padding: 6px 12px; }
    .badge-mid-left { left: -15px; }
    .badge-mid-right { right: -15px; }
}

/* ==========================================================================
   2026 SPECIALIZED SERVICES CARDS (SENIOR UI/UX DESIGN)
   ========================================================================== */
.service-card-2026 {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.service-card-2026:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(14, 95, 118, 0.14) !important;
    border-color: rgba(14, 95, 118, 0.2) !important;
}

.service-card-2026:hover img {
    transform: scale(1.08) !important;
}

.service-card-2026:hover .btn {
    background: #083E4D !important;
}







/* ==========================================================================
   GLOBAL RESPONSIVE FIXES (ADDED FOR COMPREHENSIVE MOBILE/TABLET SUPPORT)
   ========================================================================== */

/* TABLET (max-width: 992px) */
@media (max-width: 992px) {
    /* Header & Nav */
    .header-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .header-container .logo img {
        max-height: 50px;
    }
    
    /* Grids */
    .procedure-grid,
    .trust-grid,
    .stats-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }
    p { font-size: 1rem !important; }

    /* Padding */
    .section-padding, section {
        padding: 40px 15px !important;
    }

    /* Grids to Single Column */
    .procedure-grid,
    .trust-grid,
    .stats-grid,
    .contact-grid,
    .services-grid,
    .feature-cards-stack {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Footer to Single Column */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Header specific */
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .geo-main-shape {
        display: none !important; /* Hide massive shapes on mobile */
    }

    /* Miscellaneous Flex Containers */
    .contact-item,
    .footer-contact-item,
    .icon-box,
    .opd-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .social-links,
    .footer-social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .faq-header {
        font-size: 1.1rem;
        padding: 15px;
    }
}

/* SMALL MOBILE (max-width: 576px) */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    
    .form-divider {
        flex-direction: column;
    }
    
    .timeline-container::before {
        left: 20px; /* Move timeline line to edge */
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        left: 0 !important;
    }
    .timeline-dot {
        left: 20px !important;
        transform: translateX(-50%) !important;
    }
}

/* Desktop Grid Base */
@media (min-width: 993px) {
    .services-grid, .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Tablet: 2-column services */
@media (min-width: 577px) and (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .featured-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Mobile: always 1 column */
@media (max-width: 576px) {
    .services-grid, .featured-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   2026 CLEAN 3D POP-OUT HERO & MOBILE OVERHAUL (v2 — DEFINITIVE)
   ========================================================================== */

/* Hide mobile-only circle on desktop */
.mobile-circle-frame {
    display: none;
}

/* Hide mobile specialty pills row on desktop */
@media (min-width: 993px) {
    .mobile-specialty-pills {
        display: none !important;
    }
}

@media (max-width: 992px) {
    /* 1. Header & Navigation Fixes */
    #main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 64px !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
        z-index: 999999 !important;
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 20px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.6rem !important;
        color: #083E4D !important;
        cursor: pointer !important;
        margin-right: 4px !important;
        padding: 6px !important;
        z-index: 1000000 !important;
    }

    .header-cta {
        display: none !important;
    }

    .main-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 64px) !important;
        background: #083E4D !important;
        z-index: 999999 !important;
        display: none !important;
        flex-direction: column !important;
        padding: 35px 20px !important;
        align-items: center !important;
        overflow-y: auto !important;
    }

    .main-nav.active {
        display: flex !important;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        text-align: center !important;
    }

    /* Force White Nav Text for both Home & Inner Header pages */
    #main-header.home-header:not(.scrolled) .main-nav a,
    .home-header:not(.scrolled) .main-nav ul li a,
    #main-header.home-header .main-nav a,
    .home-header .main-nav ul li a,
    .main-nav ul li a {
        color: #FFFFFF !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .main-nav ul li a:hover {
        color: #F89F5B !important;
    }

    /* 2. Hero Section */
    .hero-section {
        padding-top: 74px !important;
        padding-bottom: 30px !important;
        background: linear-gradient(180deg, #EEF6F8 0%, #FFFFFF 100%) !important;
        overflow: visible !important;
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important;
        padding: 0 16px !important;
    }

    /* ============================================================
       3. HERO VISUAL — Bigger 3D Pop-Out Doctor, Seamless Blend
       ============================================================ */
    .hero-visual {
        order: 1 !important;
        width: 100% !important;
        height: 300px !important;          /* Taller to fit bigger image, less blank space */
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        margin-bottom: 8px !important;
        overflow: visible !important;
    }

    /* Hide ALL desktop-only decorative elements on mobile */
    .orbit-system,
    .floating-badge,
    .circle-frame {
        display: none !important;
    }

    /* Outer wrapper — transparent, sized to image */
    .doctor-image-wrapper {
        width: 300px !important;           /* 30% bigger than 230px */
        height: 300px !important;
        position: relative !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        z-index: 2 !important;
    }

    /* ─── MOBILE-ONLY teal circle ─── */
    .mobile-circle-frame {
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 230px !important;           /* Wider circle to match bigger image */
        height: 230px !important;
        border-radius: 50% !important;
        background: radial-gradient(circle at 50% 55%, #1a7a96 0%, #083E4D 100%) !important;
        border: 5px solid #FFFFFF !important;
        box-shadow: 0 14px 35px rgba(8, 62, 77, 0.3) !important;
        z-index: 1 !important;
    }

    /* Doctor Image — 30% bigger, seamless bottom blend into circle */
    .doctor-img {
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        width: 300px !important;           /* 30% bigger: 230 → 300px */
        height: auto !important;
        max-height: 340px !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        /* Seamless fade into the teal circle at the bottom */
        -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 93%) !important;
        mask-image: linear-gradient(to bottom, black 55%, transparent 93%) !important;
        filter: drop-shadow(0 -4px 8px rgba(0,0,0,0.05)) !important;
        margin-bottom: 0 !important;
        display: block !important;
    }

    /* 4. Text Content */
    .hero-text {
        order: 2 !important;
        width: 100% !important;
    }

    .hero-text h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        color: #083E4D !important;
        font-weight: 800 !important;
        margin-bottom: 8px !important;
        letter-spacing: -0.3px !important;
    }

    .hero-sub {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #4A5568 !important;
        margin: 0 auto 10px auto !important;
        max-width: 100% !important;
    }

    .hero-credentials {
        font-size: 0.78rem !important;
        padding: 5px 14px !important;
        margin: 0 auto 12px auto !important;
        background: rgba(14, 95, 118, 0.08) !important;
        color: #0E5F76 !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        display: inline-block !important;
        border: none !important;
    }

    /* 5. Specialty Chips — All 6 in a wrap grid */
    .mobile-specialty-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .mobile-specialty-pills .pill-item {
        background: #FFFFFF !important;
        border: 1.5px solid rgba(14, 95, 118, 0.15) !important;
        color: #083E4D !important;
        padding: 5px 11px !important;
        border-radius: 20px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        box-shadow: 0 2px 8px rgba(14, 95, 118, 0.08) !important;
    }

    .mobile-specialty-pills .pill-item i {
        color: #F89F5B !important;
        font-size: 0.75rem !important;
    }

    /* 6. CTA Buttons */
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        padding: 13px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .hero-actions .btn-primary {
        background: #F89F5B !important; /* Desktop-matching orange */
        color: #FFFFFF !important;
        border: none !important;
        box-shadow: 0 6px 18px rgba(248, 159, 91, 0.35) !important;
    }

    .hero-actions .btn-secondary {
        border: 2px solid #0E5F76 !important;
        color: #0E5F76 !important;
        background: #FFFFFF !important;
    }
}

/* ==========================================================================
   HEALTH LIBRARY / SINGLE BLOG POST RICH CONTENT STYLING
   ========================================================================== */
.entry-content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
}

.entry-content-body h1,
.entry-content-body h2,
.entry-content-body h3,
.entry-content-body h4 {
    color: #083E4D;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.entry-content-body h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(14, 95, 118, 0.1);
    padding-bottom: 8px;
}

.entry-content-body h3 {
    font-size: 1.3rem;
}

.entry-content-body p {
    margin-bottom: 1.2rem;
    color: #4A5568;
}

.entry-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin: 15px 0;
}

/* Callouts & Quotes */
.entry-content-body .callout,
.entry-content-body blockquote {
    background: #EEF6F8;
    border-left: 5px solid #0E5F76;
    padding: 18px 22px;
    border-radius: 10px;
    margin: 25px 0;
    color: #083E4D;
    font-size: 1.05rem;
}

.entry-content-body .callout.warning {
    background: #FFF8EE;
    border-left-color: #F89F5B;
    color: #7C4A1D;
}

/* Tables */
.entry-content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(14, 95, 118, 0.15);
}

.entry-content-body th {
    background: #0E5F76;
    color: #FFFFFF;
    padding: 14px 18px;
    font-weight: 700;
    text-align: left;
}

.entry-content-body td {
    padding: 12px 18px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #333333;
}

.entry-content-body tr:nth-child(even) td {
    background: #F8FAFC;
}

/* Accordion / Details */
.entry-content-body details {
    background: #FFFFFF;
    border: 1px solid rgba(14, 95, 118, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 12px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.entry-content-body summary {
    font-weight: 700;
    color: #083E4D;
    cursor: pointer;
    font-size: 1.05rem;
    outline: none;
}

.entry-content-body details[open] {
    background: #F4F9FA;
}

.entry-content-body details p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Gallery & 2-Col Layouts */
.entry-content-body .two {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    margin: 25px 0;
}

.entry-content-body .two > div {
    flex: 1;
    min-width: 260px;
}

.entry-content-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

/* Responsive Videos */
.entry-content-body iframe {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Author Cards inside content */
.entry-content-body .author {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #F4F8F9;
    padding: 24px;
    border-radius: 16px;
    margin-top: 35px;
    border: 1px solid rgba(14, 95, 118, 0.12);
}

.entry-content-body .author img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

/* Custom Buttons inside post content */
.entry-content-body .button,
.entry-content-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F89F5B;
    color: #FFFFFF !important;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(248, 159, 91, 0.3);
    transition: all 0.3s ease;
}

.entry-content-body .button:hover,
.entry-content-body .btn:hover {
    transform: translateY(-2px);
    background: #E0853D;
}

/* ==========================================================================
   COMPLETE MOBILE & RESPONSIVE AUDIT OVERRIDES (FINAL RELEASE)
   ========================================================================== */

/* Global Overflow Safety */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

/* Post Meta Row Styling (single.php) */
.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 15px;
}

.post-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Hero Section Base Padding Standardization */
.inner-hero-section {
    padding: calc(var(--header-height) + 30px) 0 45px 0 !important;
    background: linear-gradient(135deg, #083E4D 0%, #0E5F76 100%);
    color: #FFFFFF !important;
}

/* Featured Spotlight Card Specificity Rules (home.php / health-library) */
.featured-spotlight-card {
    background: #083E4D !important;
    background: linear-gradient(135deg, #083E4D 0%, #0E5F76 100%) !important;
    color: #FFFFFF !important;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(8,62,77,0.25);
}

.featured-spotlight-content h2,
.featured-spotlight-content h2 a {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.featured-spotlight-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.featured-spotlight-img {
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Detail Layout Grid default (desktop) */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* Tablet & Mobile Breakpoints (<= 992px) */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        color: #083E4D;
        cursor: pointer;
        z-index: 1001;
    }

    .main-header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .featured-spotlight-card {
        grid-template-columns: 1fr !important;
        padding: 30px 24px !important;
        gap: 25px !important;
        border-radius: 20px !important;
        margin-bottom: 35px !important;
    }

    .featured-spotlight-img {
        height: 220px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .section-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .section-header-flex .btn {
        align-self: flex-start !important;
        white-space: normal !important;
    }
}

/* Small Mobile Breakpoints (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .inner-hero-section {
        padding: calc(var(--header-height) + 20px) 20px 35px 20px !important;
    }

    .inner-hero-content h1 {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
    }

    .inner-hero-content p {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }

    .breadcrumbs {
        margin-bottom: 12px !important;
        font-size: 0.82rem !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .exercise-grid,
    .blog-grid,
    .home-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .procedure-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* SINGLE-SIDED VERTICAL SPINE MOBILE TIMELINE (NO HORIZONTAL SCROLL) */
    .timeline-heading {
        left: auto !important;
        transform: none !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto 35px !important;
        max-width: 100% !important;
    }

    .timeline-wrapper,
    .timeline-container,
    .timeline-track {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 15px 0 !important;
    }

    .timeline-track::before {
        left: 15px !important;
        transform: none !important;
        width: 3px !important;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100% !important;
        max-width: 100% !important;
        align-self: flex-start !important;
        align-items: flex-start !important;
        padding-left: 40px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 25px !important;
        box-sizing: border-box !important;
    }

    .timeline-item .tl-dot,
    .timeline-item:nth-child(odd) .tl-dot,
    .timeline-item:nth-child(even) .tl-dot {
        left: 6px !important;
        right: auto !important;
        top: 18px !important;
    }

    .timeline-item .tl-content,
    .timeline-item:nth-child(odd) .tl-content,
    .timeline-item:nth-child(even) .tl-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        border-left: 4px solid var(--primary-color) !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: none !important;
        padding: 16px 18px !important;
        background: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    }

    .timeline-item .tl-year,
    .timeline-item:nth-child(odd) .tl-year,
    .timeline-item:nth-child(even) .tl-year {
        text-align: left !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
    }

    /* Force all timeline milestone titles & text to be dark teal on mobile white cards */
    .timeline-item .tl-content h4,
    .timeline-item:last-child .tl-content h4,
    .timeline-item:nth-child(odd) .tl-content h4,
    .timeline-item:nth-child(even) .tl-content h4 {
        color: #083E4D !important;
    }

    .timeline-item .tl-content p,
    .timeline-item:last-child .tl-content p,
    .timeline-item:nth-child(odd) .tl-content p,
    .timeline-item:nth-child(even) .tl-content p {
        color: #555555 !important;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .inner-hero-section {
        padding: calc(var(--header-height) + 15px) 16px 25px 16px !important;
    }

    .featured-spotlight-card {
        padding: 22px 18px !important;
    }

    .featured-spotlight-content h2 {
        font-size: 1.35rem !important;
    }
}



