/*
Theme Name: Dr. Kishore Nephro
Theme URI: https://drkishorekumarnephro.com
Author: Antigravity AI
Author URI: https://google.com
Description: Premium Custom WordPress Theme for Dr. Kishore Kumar Ariga's practice portal. Features full dynamic controls, responsive grids, dark mode, localized search, and Instagram Graph integration.
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: dr-kishore-nephro
Tags: custom-menu, custom-logo, post-thumbnails, translation-ready, accessibility-ready, medical, clinic

Dr. Kishore Nephro is a custom medical practice portal theme designed in vanilla CSS and clean, accessible layouts.
*/
/* styles.css */
/* Modern Medical Practice Design System - Dr. Kishore Kumar Ariga */

*, *::before, *::after {
    box-sizing: border-box;
}

/* 1. Core CSS Reset & Variable Definitions */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Curated Clinical Tones */
    --primary: hsl(222, 47%, 12%);         /* Deep Slate Navy (Authority & Trust) */
    --primary-light: hsl(218, 33%, 20%);   /* Slate Blue */
    --secondary: hsl(173, 80%, 36%);       /* Clinical Teal (Healing & Care) */
    --secondary-hover: hsl(173, 80%, 30%); /* Darker Teal */
    --accent: hsl(14, 88%, 56%);           /* Warm Coral (Alerts & CTAs) */
    --accent-light: hsl(14, 88%, 95%);
    --bg-light: #f8fafc;                  /* Clear Medical Gray */
    --card-light: #ffffff;
    --text-dark: hsl(215, 25%, 27%);
    --text-muted: hsl(215, 16%, 47%);
    
    /* Dark Mode Defaults (Switched via Class) */
    --bg-dark: hsl(222, 47%, 6%);
    --card-dark: hsl(222, 47%, 10%);
    --text-light: #f1f5f9;
    
    /* Layout Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism Overlays */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* 2. Theme Styles (Light Mode Default) */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
    --card-light: var(--card-dark);
    --text-dark: var(--text-light);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(15, 23, 42, 0.5);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode .logo-text h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Base Container & Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.text-center { text-align: center; }
.text-teal { color: var(--secondary); }
.text-coral { color: var(--accent); }

/* 4. Elegant Glassmorphic Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-wrapper img {
    height: 48px;
    width: auto;
}

.logo-text h1 {
    font-size: clamp(14px, 4.2vw, 20px);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.logo-text p {
    font-size: clamp(9px, 2.2vw, 11px);
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: rgba(13, 148, 136, 0.05);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(15, 23, 42, 0.05);
}

body.dark-mode .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

/* 5. Hero Section (Pedigree & Bio) */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.07) 0%, transparent 60%);
    overflow: hidden;
}

body.dark-mode .hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.pedigree-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    animation: pulse 2s infinite;
}

body.dark-mode .pedigree-badge {
    background-color: rgba(220, 38, 38, 0.15);
    color: hsl(14, 88%, 66%);
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.association-strip {
    display: flex;
    align-items: center;
    gap: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 24px;
}

body.dark-mode .association-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.association-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.association-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.association-logo {
    height: 32px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.association-logo:hover {
    opacity: 1;
    filter: none;
}

/* Elegant Profile Image Container */
.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(15, 23, 42, 0.05) 100%);
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: var(--primary-light);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.experience-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--card-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.exp-num {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.exp-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

/* 6. Quick Action timings bar */
.quick-info-bar {
    background-color: var(--card-light);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    box-shadow: var(--shadow-md);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

body.dark-mode .quick-info-bar {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-item-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.info-item-link:hover {
    transform: translateY(-2px);
}

.info-item-link:hover .info-icon {
    background-color: var(--secondary);
    color: #ffffff;
}

.info-item-link:hover .info-content h4 {
    color: var(--secondary);
}

.info-icon {
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.info-content p {
    font-size: 13px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

/* 7. Services Section (Expandable Panels & Live Symptom Search) */
.section-header {
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    margin: 0 0 16px 0;
}

.search-box-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    box-sizing: border-box;
    border-radius: 50px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    background-color: var(--card-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

body.dark-mode .search-input {
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.search-icon-svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--card-light);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

body.dark-mode .service-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.2);
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    box-sizing: border-box;
}

body.dark-mode .service-icon-wrapper {
    background: none;
    border: none;
}

.service-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full picture, never cut off or cropped */
}

body.dark-mode .service-icon-wrapper img {
    filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.1); /* Elegant dark-mode clinical sketch inversion */
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.08); /* Sophisticated responsive zoom */
}

.service-card h3 {
    font-size: 20px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.service-card p {
    font-size: 15.5px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
}

.service-arrow svg {
    transition: var(--transition);
}

.service-card:hover .service-arrow svg {
    transform: translateX(4px);
}

/* Service Detail Interactive Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--card-light);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 32px 40px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-detail-icon {
    color: var(--secondary);
    margin-bottom: 20px;
}

.modal-detail-desc {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 24px 0;
}

.symptoms-panel {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

body.dark-mode .symptoms-panel {
    background-color: rgba(255, 255, 255, 0.03);
}

.symptoms-panel h4 {
    font-size: 15px;
    margin: 0 0 12px 0;
    color: var(--secondary);
}

.symptoms-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.symptom-item {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary);
}

/* 8. Procedures Accordion Section */
.procedures-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

body.dark-mode .procedures-section {
    background-color: var(--bg-dark);
}

.procedures-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: center;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--card-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.accordion-trigger {
    width: 100%;
    padding: 24px 32px;
    box-sizing: border-box;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.accordion-trigger h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.accordion-icon {
    transition: var(--transition);
    color: var(--secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--card-light);
}

.accordion-content-inner {
    padding: 0 32px 32px 32px;
    font-size: 16px;
    color: var(--text-muted);
}

.accordion-item.active {
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-md);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.procedures-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
    aspect-ratio: 4/3;
    position: relative;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.procedures-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
}

/* 9. Interactive Google Reviews Testimonial Slider */
.reviews-section {
    padding: 100px 0;
}

.reviews-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.review-card {
    background-color: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.04);
    text-align: center;
    position: relative;
}

body.dark-mode .review-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.review-stars {
    color: #fb8c00;
    margin-bottom: 24px;
}

.review-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.review-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
    color: var(--primary);
}

body.dark-mode .review-author {
    color: #ffffff;
}

.review-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.slider-btn {
    background-color: var(--card-light);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

body.dark-mode .slider-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-btn:hover {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .slider-dot {
    background-color: rgba(255, 255, 255, 0.1);
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--secondary);
}

/* 10. Advanced Dynamic Appointment Scheduler Portal */
.booking-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 100px 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.booking-content h2 {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 20px;
}

.booking-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 0 32px 0;
}

.clinics-panel-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
}

.clinic-toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.clinic-toggle-btn.active {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.clinic-loc-detail {
    display: none;
}

.clinic-loc-detail.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.clinic-loc-detail h4 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.clinic-loc-detail p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* Scheduler styles completely cleaned up */

/* Form inputs styling */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    padding: 12px 16px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

body.dark-mode .form-input {
    border: 2px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
}

.form-input:focus {
    border-color: var(--secondary);
}

.scheduler-nav-row {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Success State booking CSS */
.booking-success-box {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-summary {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

body.dark-mode .success-summary {
    background-color: rgba(255, 255, 255, 0.03);
}

.success-summary p {
    font-size: 14px;
    margin: 8px 0;
    color: var(--text-dark);
}

.success-summary strong {
    color: var(--primary);
}

body.dark-mode .success-summary strong {
    color: #ffffff;
}

/* 11. Custom JSON-Powered Blog Dashboard */
.blog-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

body.dark-mode .blog-section {
    background-color: var(--bg-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background-color: var(--card-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

body.dark-mode .blog-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.2);
}

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

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

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

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    line-height: 1.35;
    color: var(--primary);
}

body.dark-mode .blog-card-title {
    color: #ffffff;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.blog-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Full Blog Modal Content CSS */
.blog-modal-body {
    padding: 40px;
}

.blog-modal-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.blog-modal-title {
    font-size: 32px;
    margin: 0 0 24px 0;
}

.blog-modal-content {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

.blog-modal-content p {
    margin-bottom: 20px;
}

/* 12. Footer, Disclosures & SEBI compliance */
.footer-wrap {
    background-color: var(--primary);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    padding: 80px 0 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 80px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 8px 0;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.footer-social-links {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.footer-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary);
}

.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-icon {
    color: var(--secondary);
    margin-top: 2px;
}

.footer-bottom {
    background-color: hsl(222, 47%, 8%);
    padding: 40px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-compliance-text {
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 24px;
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 13. System Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

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

/* 14. Responsive Breakpoints CSS */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-image-container {
        max-width: 420px;
        margin: 0 auto;
    }
    .quick-info-bar {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .procedures-grid {
        grid-template-columns: 1fr;
    }
    .procedures-banner {
        display: block !important;
        margin-top: 32px !important;
        max-height: 280px !important;
        aspect-ratio: 16/9 !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-md) !important;
    }
    .procedures-banner img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 12px !important;
    }
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-title {
        font-size: 38px;
    }
    .quick-info-bar {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-copyright-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .scheduler-card {
        padding: 20px;
    }
    .booking-section {
        padding: 60px 0;
    }
    .hero-section {
        padding: 60px 0 40px;
    }
    .hero-title {
        font-size: 32px;
    }
    .modal-body {
        padding: 20px;
    }
    .about-main-content {
        padding: 0 8px;
    }
    .info-block {
        padding: 20px;
    }
    .about-name {
        font-size: 32px;
    }
    .section-title {
        font-size: 30px;
    }
}

/* ==========================================================================
   ðŸ¥ SPA Full Page Views & Biography Layout Styling
   ========================================================================== */
.full-page-section {
    padding: 120px 0 80px 0;
    min-height: 80vh;
    animation: fadeIn 0.4s ease;
}

.back-nav {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: start;
}

.about-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(13, 148, 136, 0.15);
}

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

.about-quick-card {
    background-color: var(--card-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

body.dark-mode .about-quick-card {
    background-color: var(--card-dark);
    border-color: rgba(255, 255, 255, 0.06);
}

.about-quick-card h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--primary);
}

body.dark-mode .about-quick-card h3 {
    color: #ffffff;
}

.about-quick-card .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 4px;
}

.about-quick-card .institution {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* About Main */
.badge-aiims {
    display: inline-block;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.about-name {
    font-size: 40px;
    margin: 0 0 8px 0;
    color: var(--primary);
}

body.dark-mode .about-name {
    color: #ffffff;
}

.about-degrees {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.about-bio-card {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.info-block {
    margin-bottom: 40px;
    background-color: var(--card-light);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .info-block {
    background-color: var(--card-dark);
    border-color: rgba(255, 255, 255, 0.04);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 16px;
}

body.dark-mode .block-header {
    border-color: rgba(255, 255, 255, 0.06);
}

.block-header h3 {
    font-size: 22px;
    margin: 0;
}

.about-list {
    margin: 0 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.about-list li {
    color: var(--text-dark);
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interests-tags .tag {
    background-color: rgba(13, 148, 136, 0.05);
    color: var(--secondary);
    border: 1.5px solid rgba(13, 148, 136, 0.15);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
}

.publications-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.publications-list li {
    color: var(--text-dark);
}

.pub-caption {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

.pub-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: var(--transition);
}

.pub-link:hover {
    text-decoration: underline;
}

/* Full Post Styling */
.full-post-body {
    max-width: 800px;
    margin: 0 auto;
}

.post-meta-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 12px;
}

.post-meta-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-block;
    margin-left: 16px;
    margin-bottom: 12px;
}

.post-main-title {
    font-size: 40px;
    color: var(--primary);
    line-height: 1.25;
    margin: 0 0 32px;
}

body.dark-mode .post-main-title {
    color: #ffffff;
}

.post-detail-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
}

body.dark-mode .post-detail-image-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
}

.post-detail-image-wrapper img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.post-detail-content-html {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-detail-content-html p,
.post-detail-content-html span {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
}

body.dark-mode .post-detail-content-html,
body.dark-mode .post-detail-content-html p,
body.dark-mode .post-detail-content-html span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.post-detail-content-html h1,
.post-detail-content-html h2,
.post-detail-content-html h3,
.post-detail-content-html h4,
.post-detail-content-html h5,
.post-detail-content-html h6 {
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    line-height: 1.3;
}

.post-detail-content-html h1 { font-size: 32px !important; }
.post-detail-content-html h2 { font-size: 28px !important; }
.post-detail-content-html h3 { font-size: 22px !important; }
.post-detail-content-html h4 { font-size: 19px !important; }
.post-detail-content-html h5 { font-size: 17px !important; }
.post-detail-content-html h6 { font-size: 15px !important; }

body.dark-mode .post-detail-content-html h1,
body.dark-mode .post-detail-content-html h2,
body.dark-mode .post-detail-content-html h3,
body.dark-mode .post-detail-content-html h4,
body.dark-mode .post-detail-content-html h5,
body.dark-mode .post-detail-content-html h6 {
    color: #ffffff !important;
}

.post-detail-content-html strong {
    font-weight: 700;
    color: var(--primary);
}

body.dark-mode .post-detail-content-html strong {
    color: #ffffff;
}

.post-detail-content-html a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}

body.dark-mode .post-detail-content-html a {
    color: var(--secondary);
}

.post-detail-content-html ul {
    list-style-type: disc !important;
    margin: 0 0 24px 24px !important;
    padding-left: 0 !important;
    display: block !important;
}

.post-detail-content-html ol {
    list-style-type: decimal !important;
    margin: 0 0 24px 24px !important;
    padding-left: 0 !important;
    display: block !important;
}

.post-detail-content-html li {
    display: list-item !important;
    margin-bottom: 8px !important;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark) !important;
}

body.dark-mode .post-detail-content-html li {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Nav Active Class Styling */
#main-nav .nav-link.active {
    color: var(--secondary) !important;
    border-bottom: 2px solid var(--secondary);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-sidebar {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   ðŸŽ¬ Educational YouTube Videos Section & Playlist Library Styles
   ========================================================================== */
.featured-videos-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

body.dark-mode .featured-videos-section {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.video-card {
    background-color: var(--card-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

body.dark-mode .video-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.2);
}

.video-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--primary);
}

body.dark-mode .video-info h3 {
    color: #ffffff;
}

.video-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Playlist library styles */
.playlist-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-top: 48px;
    align-items: start;
}

@media (max-width: 992px) {
    .playlist-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.playlist-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.dark-mode .playlist-iframe-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.playlist-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.playlist-description-card {
    background-color: var(--card-light);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

body.dark-mode .playlist-description-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.playlist-description-card h3 {
    font-size: 22px;
    margin: 0 0 16px 0;
}

.playlist-description-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.playlist-topics-list {
    margin: 0 0 32px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playlist-topics-list li {
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

body.dark-mode .playlist-topics-list li {
    color: var(--text-light);
}

.playlist-topics-list li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Journal icon refinement rule */
.journal-icon {
    display: block;
    transition: var(--transition);
}

.service-card:hover .journal-icon {
    transform: scale(1.05);
}

/* ==========================================================================
   Blog Post Detail Page Enhancements (Images, Signature & CTA)
   ========================================================================== */
.post-detail-content-html img {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 32px auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background-color: #ffffff;
    padding: 12px;
    box-sizing: border-box;
    object-fit: contain;
}

body.dark-mode .post-detail-content-html img {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-author-signature {
    margin: 54px auto 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--card-light) 0%, rgba(13, 148, 136, 0.02) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-left: 4px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    max-width: 680px;
}

body.dark-mode .post-author-signature {
    background: linear-gradient(135deg, var(--card-dark) 0%, rgba(13, 148, 136, 0.04) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-left: 4px solid var(--secondary);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    margin: 0 0 6px 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-family: 'Outfit', sans-serif !important;
}

body.dark-mode .author-name {
    color: #ffffff !important;
}

.author-title {
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    line-height: 1.4 !important;
}

.post-detail-cta {
    margin-top: 24px;
    padding: 32px 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

body.dark-mode .post-detail-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-detail-cta h4 {
    margin: 0 !important;
    font-size: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

body.dark-mode .post-detail-cta h4 {
    color: #ffffff !important;
}

.post-detail-cta p {
    margin: 0 !important;
    font-size: 15px !important;
    color: var(--text-muted) !important;
    max-width: 500px !important;
    line-height: 1.6 !important;
}

/* Responsive Sizing and Placement Rules */
@media (max-width: 768px) {
    .post-detail-content-html img {
        max-width: 100%;
        margin: 24px auto;
        padding: 6px;
    }
    
    .post-detail-image-wrapper {
        margin-bottom: 32px;
        max-height: 360px;
    }
    
    .post-detail-image-wrapper img {
        max-height: 360px;
    }
}

@media (max-width: 600px) {
    .post-author-signature {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   14. Instagram Feed Section & Buttons Styling
   ========================================================================== */

.instagram-section {
    padding: 100px 0;
    background-color: #ffffff; /* Solid premium white background */
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

body.dark-mode .instagram-section {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.04);
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Instagram Profile Card Header */
.instagram-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 40px auto 30px auto;
    padding: 20px 28px;
    background-color: #f8fafc;
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.dark-mode .instagram-profile-card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.profile-info-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: #ffffff;
}

body.dark-mode .profile-img {
    border-color: #1e293b;
    background-color: #1e293b;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-badge {
    align-self: flex-start;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(13, 148, 136, 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

body.dark-mode .profile-badge {
    background-color: rgba(13, 148, 136, 0.2);
    color: var(--secondary);
}

.profile-username {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.profile-stats {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
}

/* Premium Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 40px auto 50px auto;
    padding: 0 15px;
}

.instagram-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .instagram-card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.instagram-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.instagram-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f1f5f9;
}

body.dark-mode .instagram-img-wrapper {
    background-color: #0f172a;
}

.instagram-feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 148, 136, 0.25);
}

body.dark-mode .instagram-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(13, 148, 136, 0.3);
}

.instagram-card:hover .instagram-feed-img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(13, 148, 136, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.instagram-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-card:hover .instagram-view-btn {
    transform: translateY(0);
}

.instagram-info {
    padding: 20px;
}

.instagram-caption {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-date {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Graceful Fallback Container Styling */
.instagram-fallback {
    max-width: 600px;
    margin: 50px auto 0 auto;
    padding: 40px 30px;
    background-color: #ffffff;
    border: 1px dashed rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

body.dark-mode .instagram-fallback {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fallback-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fallback-circle-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    opacity: 0.08;
    filter: blur(8px);
}

.fallback-svg {
    color: #ee2a7b; /* Premium brand colors */
}

.fallback-text {
    font-size: 16px;
    font-weight: 550;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Premium Dynamic Follow Buttons */
.btn-instagram-follow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #ffffff !important;
    border: none;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(238, 42, 123, 0.2);
}

.btn-instagram-follow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 22px rgba(238, 42, 123, 0.35);
    opacity: 0.95;
}

.btn-instagram-follow:active {
    transform: translateY(0) scale(0.98);
}

.btn-instagram-follow-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(238, 42, 123, 0.15);
}

.btn-instagram-follow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 42, 123, 0.25);
    opacity: 0.95;
}

.btn-instagram-follow-sm:active {
    transform: translateY(0) scale(0.98);
}

.instagram-icon {
    transition: transform 0.3s ease;
}

.btn-instagram-follow:hover .instagram-icon,
.btn-instagram-follow-sm:hover .instagram-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Secondary Follow (Blogs context) */
.btn-instagram {
    background: transparent;
    border: 1.5px solid rgba(225, 48, 108, 0.3);
    color: var(--text-color);
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 42, 123, 0.25);
}

.btn-instagram:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Responsive Breakpoints for Grid
   ========================================================================== */
@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 720px;
    }
    
    .instagram-profile-card {
        margin: 30px 15px 20px 15px;
        padding: 16px 20px;
    }
}

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

    .instagram-profile-card {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
        margin: 24px 15px 16px 15px;
    }

    .profile-info-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .btn-instagram-follow-sm {
        width: 100%;
        justify-content: center;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
        margin-bottom: 30px;
    }
    
    .instagram-fallback {
        margin: 30px 15px 0 15px;
        padding: 30px 20px;
    }
    
    .btn-instagram-follow {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   15. Global Visual Parity Overrides (Mobile Alignment & Dark Mode)
   ========================================================================== */

/* Playlist Grid Layout */
.playlist-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 48px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .playlist-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* High-Specificity Global Dark Mode Heading & Contrast Overrides */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .section-title,
body.dark-mode .service-card h3,
body.dark-mode .accordion-trigger h3,
body.dark-mode .about-quick-card h3,
body.dark-mode .info-content h4,
body.dark-mode .playlist-description-card h3,
body.dark-mode .review-card .review-title,
body.dark-mode .review-card .review-author,
body.dark-mode .review-card .review-author-info strong,
body.dark-mode .post-detail-cta h4,
body.dark-mode .about-name,
body.dark-mode .blog-card-title,
body.dark-mode .modal-header h2 {
    color: #ffffff !important;
}

/* Responsive CTA visibility control (Shifting buttons down below timings on mobile) */
.mobile-only-cta {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only-cta {
        display: none !important;
    }
    .mobile-only-cta {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 32px auto 0 !important;
        max-width: 480px !important;
        width: calc(100% - 48px) !important;
        padding: 0 24px !important;
        box-sizing: border-box !important;
    }
    .mobile-only-cta .btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Pedigree Badge visibility rules */
.mobile-only-badge {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only-badge {
        display: none !important;
    }
    .mobile-only-badge {
        display: inline-flex !important;
        justify-self: center !important;
        margin-top: 24px !important;
        margin-bottom: 0 !important;
    }
}

/* Hero CTAs Mobile Parity */
@media (max-width: 1024px) {
    .desktop-only-cta {
        display: none !important;
    }
}

/* Stabilize Testimonials Carousel Layout */
.reviews-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.review-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px;
}

.slider-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    margin-top: 32px !important;
    width: 100% !important;
}

.slider-btn {
    background-color: var(--card-light);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: var(--transition);
}

.slider-dots {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.slider-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: rgba(15, 23, 42, 0.2) !important;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .slider-dot {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.slider-dot.active {
    width: 24px !important;
    border-radius: 4px !important;
    background-color: var(--secondary) !important;
}

/* Playlist topics bullet styling fix */
.playlist-topics-list {
    list-style: none !important;
    list-style-type: none !important;
}

.playlist-topics-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.playlist-topics-list li::before {
    content: none !important;
    display: none !important;
}

/* Affiliations responsive visibility */
.mobile-only-affiliations {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only-affiliations {
        display: none !important;
    }
    .mobile-only-affiliations {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 16px auto 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: 100% !important;
    }
}

/* Header Brand Name Auto-scaling for Small Screens (Parity/Wrapping) */
@media (max-width: 480px) {
    .logo-wrapper {
        gap: 8px !important;
    }
    .logo-wrapper img {
        height: 36px !important;
    }
}

/* Specialties (Service Cards) Mobile Centering */
@media (max-width: 1024px) {
    .service-card {
        text-align: center !important;
        align-items: center !important;
    }
    .service-icon-wrapper {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .service-arrow {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Mobile Procedure Inline Images */
.mobile-procedure-image {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-procedure-image {
        display: block !important;
        margin: 20px auto 0 !important;
        width: 100% !important;
        max-width: 400px !important;
        border-radius: var(--radius-md) !important;
        overflow: hidden !important;
        box-shadow: var(--shadow-sm) !important;
        border: 1px solid rgba(13, 148, 136, 0.1) !important;
        box-sizing: border-box !important;
    }
    .mobile-procedure-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        background-color: #ffffff !important;
        padding: 8px !important;
        display: block !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .procedures-banner {
        display: none !important;
    }
}
