/* =============================================
   MGR MULTISPECIALITY HOSPITAL — Premium Stylesheet
   ============================================= */

/* === CSS Custom Properties (Design Tokens) === */
:root {
    /* Primary Colors — Sunrise Orange */
    --primary: #F47C20;
    --primary-light: #F8A45A;
    --primary-dark: #C36319;
    --primary-50: #fbe9e5;
    --primary-100: #f5c9c0;
    --primary-200: #eaa68a;

    /* Secondary Colors */
    --secondary-green: #2E9E5B;
    --secondary-yellow: #E5B72E;
    --secondary-orange: #F47C20;

    /* Accent — Call to Action (Orange) */
    --accent: #F47C20;
    --accent-light: #f6964c;
    --accent-dark: #c36319;

    /* Status & Special */
    --success: #2E9E5B;
    --warning: #E5B72E;
    --danger: #D64541;
    /* Emergency Red */
    --info: #1FA3B1;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #F5F7F9;
    --gray-100: #eef2f5;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Standardized to Inter for modern look as requested */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows — More refined and subtle for premium feel */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(31, 163, 177, 0.08);
    --shadow-lg: 0 10px 30px rgba(31, 163, 177, 0.12);
    --shadow-xl: 0 20px 50px rgba(31, 163, 177, 0.15);
    --shadow-glow: 0 0 30px rgba(31, 163, 177, 0.2);

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;

    /* Navbar height */
    --navbar-height: 80px;
}

/* === Page progress bar === */
#progressBarWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1101;
    background: rgba(255, 255, 255, 0.1);
}

#progressBar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transition: width 0.2s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === Announcement Bar === */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.announcement-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    animation: ticker 60s linear infinite;
    gap: 3rem;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.ticker-item i {
    color: var(--accent-light);
    font-size: 0.75rem;
}

.ticker-item a {
    color: var(--white);
}

.ticker-item a:hover {
    color: var(--accent-light);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === Top Bar === */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 8px 0;
    font-size: 0.82rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-left span,
.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left i,
.top-bar-right i {
    color: var(--primary-light);
}

.social-links-top {
    display: flex;
    gap: 0.75rem;
}

.social-links-top a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.social-links-top a:hover {
    color: var(--primary-light);
}

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(31, 163, 177, 0.3);
    overflow: hidden;
    animation: rotate 4s ease-in-out infinite alternate;
    aspect-ratio: 1;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.logo-icon i {
    position: absolute;
    opacity: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(31, 163, 177, 0.25);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
    padding-left: 1.25rem;
}

.nav-link.cta-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244, 124, 32, 0.3);
    margin-left: 0.5rem;
    display: inline-flex;
}

.nav-link.cta-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 124, 32, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Flash Messages === */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 10px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Hero Banner Slider === */
.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 30% 70%;
    min-height: 520px;
    max-height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.hero-left {
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    color: #04324f;
    border-right: 1px solid rgba(25, 39, 80, 0.25);
    background: linear-gradient(120deg, rgba(228, 255, 236, 0.95), rgba(226, 247, 255, 0.95));
    opacity: 0;
    transform: translateX(-25px);
    animation: leftPanelReveal 0.9s ease-out forwards 0.3s;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-left h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.1;
    margin: 0;
}

.hero-left h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.3;
    margin: 0.5rem 0 0 0;
    color: var(--primary);
    font-weight: 500;
}

.hero-left p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.88);
}

@keyframes leftPanelReveal {
    0% {
        opacity: 0;
        transform: translateX(-25px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-logo-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.mgr-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    animation: spinLogo 3s linear infinite;
    object-fit: contain;
    background: var(--white);
    padding: 5px;
}

.hero-brand h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-brand p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.hero-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(31, 163, 177, 0.08);
    border: 1px solid rgba(31, 163, 177, 0.15);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.hero-left h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 0;
}

.hero-left p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary-light));
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
    pointer-events: none;
}

.hero-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    text-decoration: none;
    cursor: pointer;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2.5rem;
    z-index: 5;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
}

.hero-slide.active .hero-slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.caption-content h3 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.caption-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.caption-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-link:hover .caption-cta {
    background: var(--white);
    color: var(--primary);
    transform: translateX(5px);
}

.hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 10;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    pointer-events: auto;
    font-size: 1rem;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.65rem;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.45);
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
}

@media (max-width: 1024px) {
    .hero-section {
        display: block;
        height: auto;
        min-height: 520px;
    }

    .hero-left {
        border-right: none;
        border-bottom: 1px solid rgba(173, 216, 230, 0.5);
    }

    .mgr-logo {
        animation: none;
    }
}

@keyframes spinLogo {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {

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

    .hero-section {
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-left,
    .mgr-logo,
    .hero-card,
    .hero-section::before {
        animation: none !important;
        transition: none !important;
    }
}

.hero-section::before {
    display: none;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 0.42;
        transform: scale(1.01);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 163, 177, 0.4));
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0 var(--space-2xl);
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-ambient span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.64;
    background: rgba(31, 163, 177, 0.5);
    box-shadow: 0 0 18px rgba(31, 163, 177, 0.5);
    animation: drift 7s ease-in-out infinite;
}

.hero-ambient .dot1 {
    width: 10px;
    height: 10px;
    top: 17%;
    left: 11%;
    animation-delay: 0s;
}

.hero-ambient .dot2 {
    width: 14px;
    height: 14px;
    top: 34%;
    left: 80%;
    animation-delay: 1.2s;
}

.hero-ambient .dot3 {
    width: 12px;
    height: 12px;
    top: 63%;
    left: 10%;
    animation-delay: 2.3s;
}

.hero-ambient .dot4 {
    width: 16px;
    height: 16px;
    top: 68%;
    left: 65%;
    animation-delay: 3.4s;
}

.hero-ambient .dot5 {
    width: 8px;
    height: 8px;
    top: 44%;
    left: 42%;
    animation-delay: 4.1s;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-12px) translateX(5px) scale(1.1);
        opacity: 0.85;
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.5);
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 14px rgba(31, 163, 177, 0.6);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-primary);
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 163, 177, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(244, 124, 32, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 124, 32, 0.4);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

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

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

/* === Section Styling === */
.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-100);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
}

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

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

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

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* === Doctor Cards === */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.doctor-photo-wrapper {
    position: relative;
    padding: var(--space-xl) var(--space-xl) 0;
}

.doctor-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--primary-100);
    transition: border-color var(--transition-base);
}

.doctor-card:hover .doctor-photo {
    border-color: var(--primary);
}

.doctor-availability {
    position: absolute;
    bottom: 10px;
    right: calc(50% - 100px);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.doctor-available {
    background: #ecfdf5;
    color: #065f46;
}

.doctor-unavailable {
    background: #fef2f2;
    color: #991b1b;
}

.doctor-info {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.3rem;
}

.doctor-qualification {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doctor-specialization {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.doctor-description {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Graceful centering for grids with few items */
.grid-limited {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.card-limited {
    max-width: 360px;
    width: 100%;
}

/* === Treatments Grid === */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.treatment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.treatment-card:hover::before {
    opacity: 1;
}

.treatment-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(31, 163, 177, 0.15);
    margin-bottom: 1rem;
}

.treatment-card .card-title {
    font-family: var(--font-display);
}

/* === FAQs === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-200);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
}

.faq-question i {
    transition: transform var(--transition-base);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-500);
    line-height: 1.7;
}

/* === Packages === */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
    position: relative;
}

.package-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.package-popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-header {
    padding: var(--space-xl);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-50), var(--white));
}

.package-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.package-price span {
    font-size: 1rem;
    color: var(--gray-400);
}

.package-original-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 1.1rem;
}

.package-body {
    padding: 0 var(--space-xl) var(--space-xl);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.package-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--gray-100);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

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

.gallery-item-overlay h4 {
    color: var(--white);
    font-size: 1rem;
}

/* Video items */
.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
}

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

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

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-base);
}

.video-play-btn i {
    font-size: 3rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-btn {
    background: rgba(0, 0, 0, 0.5);
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
}

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

.blog-card .card-img-wrapper {
    height: 220px;
}

.blog-card .card-img {
    height: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card .card-title a {
    color: var(--gray-800);
}

.blog-card .card-title a:hover {
    color: var(--primary);
}

/* Blog Detail */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.blog-detail h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.blog-detail .blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.blog-detail .blog-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gray-800);
    margin: 2rem 0 1rem;
}

.blog-detail .blog-content p {
    margin-bottom: 1.25rem;
}

.blog-detail .blog-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* === Contact Page === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

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

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--white);
    font-size: 1.3rem;
}

.contact-info-card h4 {
    color: var(--gray-800);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-info-card p {
    color: var(--gray-500);
    font-size: 0.88rem;
}

/* === Forms === */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

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

/* === Appointment Form === */
.appointment-section {
    background: linear-gradient(135deg, var(--primary-50), var(--white));
}

.appointment-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

/* === Team Grid === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-100);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    border: 3px solid var(--primary-100);
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-description {
    color: var(--gray-500);
    font-size: 0.88rem;
}

/* === Page Header (Banner for inner pages) === */
.page-header {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    position: relative;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
    position: relative;
}

.breadcrumbs a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumbs a:hover {
    opacity: 1;
}

/* === Map === */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === About Page === */
.about-hero {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--primary-50), #fff);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-100) 0%, rgba(255,255,255,0) 70%);
    top: -300px;
    right: -100px;
    opacity: 0.5;
    z-index: 0;
}

.about-hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-100);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
}

.founders-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.founder-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.founder-img-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.founder-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.founder-card:hover .founder-img-wrapper img {
    transform: scale(1.05);
}

.founder-info {
    padding: var(--space-2xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.founder-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.founder-creds {
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.founder-bio {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.mission-vision {
    padding: var(--space-4xl) 0;
    background: var(--gray-900);
    color: var(--white);
    position: relative;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.5s ease;
}

.mv-card:hover::before {
    height: 100%;
}

.mv-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: var(--space-xl);
}

.mv-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.mv-card p {
    color: var(--gray-400);
    font-size: 1.1rem;
    line-height: 1.8;
}

.values-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.value-item {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
}

.value-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.stats-container {
    padding: var(--space-4xl) 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    text-align: center;
}

.stat-box h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1;
}

.stat-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.community-section {
    padding: var(--space-4xl) 0;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.community-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-img iframe {
    width: 100%;
    height: 450px;
    border: none;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 50% 60% 70% 40%; }
}
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}


/* === Privacy Page === */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.privacy-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-800);
    margin: 2rem 0 1rem;
}

.privacy-content p,
.privacy-content ul {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

/* === Footer === */
.footer {
    position: relative;
    color: var(--gray-300);
}

.footer-wave {
    color: var(--gray-900);
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    background: var(--gray-900);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.footer-about {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary);
    margin-top: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-col .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-col .contact-list li i {
    color: var(--primary-light);
    margin-top: 4px;
    min-width: 16px;
}

.emergency-box {
    background: rgba(214, 69, 65, 0.08);
    border: 1px solid rgba(214, 69, 65, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.emergency-box i {
    font-size: 2rem;
    color: var(--danger);
    display: block;
    margin-bottom: 0.5rem;
}

.emergency-box span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--danger);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(214, 69, 65, 0.3);
}

.emergency-phone:hover {
    background: #b93a37;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(214, 69, 65, 0.4);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--gray-500);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-400);
    font-size: 0.92rem;
}

/* === Lazy Loading === */
img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

img[data-src].loaded {
    opacity: 1;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar>.container {
        height: 64px;
    }

    :root {
        --navbar-height: 64px;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
        gap: 0.5rem;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-item-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        display: none; /* Toggle with JS or just keep visible */
        padding: 0.5rem 0;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 0.6rem;
    }

    .nav-link.cta-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .page-header {
        padding: var(--space-xl) 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .doctor-photo {
        width: 140px;
        height: 140px;
    }

    .doctor-info {
        padding: var(--space-md);
    }

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

    .doctors-grid,
    .treatments-grid,
    .packages-grid,
    .blog-grid,
    .founders-grid,
    .mv-grid,
    .values-grid,
    .stats-grid,
    .community-content,
    .about-hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .founder-img-wrapper {
        height: 300px;
    }

    .grid-limited {
        flex-direction: column;
        align-items: center;
    }

    .card-limited {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .appointment-form-card {
        padding: var(--space-xl);
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .blog-detail h1 {
        font-size: 1.8rem;
    }

    /* Preserve line breaks in blog content */
    .blog-content {
        white-space: pre-line;
    }

    .flash-container {
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .back-to-top {
        right: 80px;
        bottom: 20px;
    }
}

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

    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 var(--space-lg);
    }
}

/* === Contact Bar === */
.contact-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.contact-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.contact-bar-item {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    border-right: 1px solid var(--gray-50);
    transition: background var(--transition-fast);
}

.contact-bar-item:hover {
    background: var(--gray-50);
}

.contact-bar-item:last-child {
    border-right: none;
}

.contact-bar-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(31, 163, 177, 0.1);
}

.contact-bar-content {
    text-align: left;
}

.contact-bar-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 0.2rem;
}

.contact-bar-value {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1.15rem;
    display: block;
}

.contact-bar-value a {
    color: inherit;
}

/* === CTA Banner Section === */
.cta-banner-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cta-banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-banner-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-banner-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-bar-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-50);
        padding: 1.5rem;
    }
}