
:root {
    --primary-color: #003366; /* Deep Royal Blue */
    --secondary-color: #00A86B; /* Emerald Green */
    --accent-color: #FFC107; /* Gold */
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-light: #f0f4f8;
    --bg-footer: #002244;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #00A86B 0%, #28a745 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: white; }

.section-padding {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

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

.btn-light:hover {
    background-color: #f1f1f1;
}

/* Pulse Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.live-ticker {
    background: var(--bg-footer);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
}

.live-ticker p {
    margin: 0;
    display: inline-block;
}

.live-dot {
    height: 10px;
    width: 10px;
    background-color: #ff4757;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.header .container:not(.live-ticker .container) {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links .nav-btn {
    padding: 10px 20px;
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.85) 0%, rgba(0, 86, 179, 0.7) 100%), url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    min-height: 90vh; /* Increased height */
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-white), transparent);
    z-index: 1;
}

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


.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    color: #f1f1f1;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.reverse-grid {
    direction: rtl; /* Hack for visual reversing, but better to use grid areas or flex order if simple */
}
.reverse-grid > * {
    direction: ltr;
}

.intro-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* Lists */
.check-list li, .step-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.check-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.step-list {
    list-style: none; /* Custom numbers */
    counter-reset: my-counter;
}

.step-list li {
    position: relative;
    padding-left: 0;
    counter-increment: my-counter;
}

.step-list li::before {
    content: counter(my-counter);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: -2px; /* Align with text */
}

.step-list li strong {
    color: var(--primary-color);
}

/* Conditions Grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.condition-item {
    background: #f1f8ff;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
}

/* Testimonials */
.testimonial-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px; /* Space for scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) var(--bg-light);
    margin: 40px auto;
    max-width: 1000px;
}

.testimonial-scroller::-webkit-scrollbar {
    height: 8px;
}
.testimonial-scroller::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}
.testimonial-scroller::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.testimonial-scroller .testimonial-card {
    flex: 0 0 100%; /* Mobile default */
    scroll-snap-align: center;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

@media (min-width: 768px) {
    .testimonial-scroller .testimonial-card {
        flex: 0 0 45%; /* Desktop: show 2 at a time mostly */
    }
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer p, .footer a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

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

.gallery-grid img, .gallery-grid-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover, .gallery-grid-preview img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* About Page Specifics */
.biography .intro-image img {
    height: 100%;
    object-fit: cover;
}

/* Services Page Specifics */
.service-detail .icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.service-icon-large {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Tips Page Specifics */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.tip-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}
.tip-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.exercise-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}
.exercise-video img {
    border-radius: 10px;
    width: 100%;
}
.reverse-row {
    direction: rtl;
}
.reverse-row > * {
    direction: ltr;
}

/* Testimonials Page Specifics */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.stars {
    color: #ffc107;
    margin-bottom: 15px;
}
.reviewer-info h5 {
    margin-bottom: 0;
    color: var(--primary-color);
}
.reviewer-info span {
    font-size: 0.85rem;
    color: #888;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.video-wrapper {
    position: relative;
    cursor: pointer;
}
.video-wrapper img {
    width: 100%;
    border-radius: 10px;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}
.video-wrapper:hover .play-btn {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}
.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Search & Interactive Map Styles
   ========================================================================== */

/* Search Section */
.search-map-section {
    position: relative;
    z-index: 10;
}

.search-container {
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 50px;
    background: white;
    transition: var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-dark);
}

.search-box button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.search-box button:hover {
    background: linear-gradient(135deg, #004494 0%, #003366 100%);
}

/* Map Container */
.interactive-map-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .map-wrapper {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Status Panel */
.status-panel {
    flex: 1;
    background: #f8fbff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-panel h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.status-panel p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.indicator:hover {
    transform: translateX(5px);
}

.indicator i {
    font-size: 1.2rem;
}

.indicator.home i { color: var(--secondary-color); }
.indicator.online i { color: var(--primary-color); }

/* Stylized Grid Map */
.india-map-grid {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 15px;
}

.state-tile {
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    user-select: none;
}

.state-tile:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
    z-index: 10;
}

.state-tile.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
    z-index: 5;
}

/* Specific Style for Gujarat */
.state-tile.highlight-gujarat {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    width: 140px; /* Distinct width */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(0, 168, 107, 0.3);
    order: -1; /* Place at start or manipulate via flex order if needed, but here kept generic */
}

@media (min-width: 500px) {
    /* Center visually in the "map" flow */
    .state-tile.highlight-gujarat {
         /* Let it flow naturally but stand out */
         order: 0;
    }
}

.state-tile.highlight-gujarat:hover,
.state-tile.highlight-gujarat.active {
    background: linear-gradient(135deg, #009058 0%, #007a4b 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 168, 107, 0.4);
}

/* Mobile Adjustments for Map */
@media (max-width: 480px) {
    .india-map-grid {
        gap: 8px;
    }
    .state-tile {
        width: 50px;
        height: 50px;
        font-size: 0.75rem;
    }
    .state-tile.highlight-gujarat {
        width: 100%; /* Full width banner on mobile map */
        height: 50px;
        margin-bottom: 10px;
    }
}

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

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* New Components */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}


.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #004494 0%, #003366 100%);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.3);
}

/* Patient Pathways Section */
.patient-pathways {
    position: relative;
    top: -50px;
    z-index: 10;
    margin-bottom: -50px;
}

.pathways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pathway-card {
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    position: relative;
    overflow: hidden;
    color: white;
    transition: var(--transition);
}

.pathway-card.local {
    background: var(--gradient-secondary);
}

.pathway-card.global {
    background: var(--gradient-primary);
}

.pathway-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pathway-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.pathway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pathway-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* Stats Section */
.stats-section {
    background: var(--bg-footer);
    color: white;
    padding: 60px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Problem Solution Grid Enhancements */
.problem-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.problem-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.problem-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.problem-card:hover .problem-icon-wrapper {
    background: var(--primary-color);
    color: white;
}


/* Responsive */
@media (max-width: 992px) {
    .intro-grid, .reverse-grid, .contact-grid, .exercise-row, .footer-grid, .pathways-grid {
        grid-template-columns: 1fr;
    }

    .reverse-grid { direction: ltr; }
    .reverse-row { direction: ltr; }

    .intro-image { order: -1; margin-bottom: 30px; }
    .contact-info { margin-bottom: 40px; }

    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
}

/* Enhanced Dynamic Effects */
.service-card, .testimonial-box, .intro-image img, .content-img, .tip-card {
    transition: all 0.4s ease;
}

.service-card:hover, .testimonial-box:hover, .tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-image img:hover, .content-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Details Animation */
details[open] summary ~ * {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animation Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Locations Page Layout
   ========================================================================== */

/* Layout Grid */
.layout-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.layout-main {
    min-width: 0; /* Prevent overflow */
}

.layout-sidebar {
    position: sticky;
    top: 100px;
    z-index: 90;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f4f8;
}

.widget-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Sidebar Search */
.search-box-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box-sidebar input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-box-sidebar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.search-box-sidebar button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box-sidebar button:hover {
    background: #004494;
}

/* Sidebar Map Override */
.map-widget-container .india-map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex: none; /* Reset flex */
    justify-content: stretch;
}

.map-widget-container .state-tile {
    width: auto;
    height: 40px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.map-widget-container .state-tile.highlight-gujarat {
    grid-column: 1 / -1; /* Span full width */
    width: 100%;
    height: 45px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    order: -1;
    animation: pulse-gujarat 2s infinite;
}

@keyframes pulse-gujarat {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 168, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0); }
}

.status-panel-sidebar {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fbff;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.9rem;
}

.status-panel-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.status-panel-sidebar .status-indicators {
    font-size: 0.85rem;
}

.status-panel-sidebar .indicator {
    padding: 8px;
    font-size: 0.85rem;
}

/* Locations Grid (Ported from Inline) */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.location-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.location-card a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-top: 10px;
}

.location-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
    background: rgba(0, 168, 107, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.location-card:hover i {
    background: var(--secondary-color);
    color: white;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }

    .layout-sidebar {
        position: static;
        margin-top: 40px;
        order: initial;
    }
}

/* ==========================================================================
   Interactive Pain Locator Section
   ========================================================================== */

.locator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .locator-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 80px;
    }
}

/* SVG Body Map */
.body-map-container {
    width: 300px;
    height: 600px;
    position: relative;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.pain-map-svg {
    width: 100%;
    height: 100%;
}

.pain-point {
    fill: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform-origin: center;
    animation: painPulse 2s infinite;
}

.pain-point:hover, .pain-point.active {
    fill: #ff4757; /* Red for active pain */
    opacity: 1;
    r: 15; /* Grow slightly */
    animation: none;
    filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.6));
}

@keyframes painPulse {
    0% {
        stroke-width: 0;
        stroke: rgba(0, 168, 107, 0.5);
        transform: scale(1);
    }
    70% {
        stroke-width: 20px;
        stroke: rgba(0, 168, 107, 0);
        transform: scale(1);
    }
    100% {
        stroke-width: 0;
        stroke: rgba(0, 168, 107, 0);
        transform: scale(1);
    }
}

/* Details Panel */
.pain-details {
    flex: 1;
    max-width: 500px;
    min-height: 300px;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid rgba(0, 51, 102, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pain-details.glass-card {
    /* Extending the glass card utility */
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08);
}

.empty-state {
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
    animation: floatFinger 2s ease-in-out infinite;
}

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

.detail-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.detail-group:last-of-type {
    border-bottom: none;
}

.detail-group strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-group i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.detail-group p {
    margin: 0;
    color: var(--text-dark);
}
