/* ══════════════════════════════════════════════════════════════════════
   MAIN.CSS  —  Global styles, layout, components
   ══════════════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; font-size: 16px; }

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

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    color: var(--color-dark);
    line-height: 1.2;
    font-weight: 700;
}

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

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

section { position: relative; overflow: hidden; }

::selection { background: var(--mint-200); color: var(--gray-900); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--mint-400); border-radius: 99px; }

/* ── Preloader ───────────────────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0;
    background: var(--color-dark);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--z-preload);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner  { text-align: center; }
.preloader-inner .heartbeat {
    font-size: 3rem;
    color: var(--pink-500);
    animation: pulse 1s ease infinite;
}
.preloader-text {
    font-family: var(--font-display);
    color: white;
    font-size: 1.5rem;
    margin-top: 12px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
#mainNav {
    height: var(--nav-height);
    background: rgba(255,255,255,0.0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: var(--tr-slow);
    z-index: var(--z-nav);
}
#mainNav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--mint-100);
    box-shadow: 0 4px 30px rgba(45,212,191,0.12);
    height: 70px;
}
.navbar-brand .brand-logo   { display: flex; align-items: center; gap: 12px; }
.brand-icon {
    width: 44px; height: 44px;
    background: var(--grad-primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
    box-shadow: var(--shadow-mint);
    flex-shrink: 0;
}
.brand-name    { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--gray-900); line-height: 1.1; }
.brand-tagline { display: block; font-size: 0.65rem; color: var(--mint-600); font-weight: 500; letter-spacing: 0.03em; }

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--tr);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute; bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: var(--tr);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: 16px; right: 16px; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--mint-600) !important;
    background: var(--mint-50);
}

/* Mega Menu */
.mega-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 24px;
    min-width: 480px;
    gap: 32px;
    border-top: 3px solid var(--mint-400);
}
.mega-menu.show { display: flex; }
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .mega-menu { display: flex; }
}
.mega-column h6 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mint-600);
    margin-bottom: 12px;
    font-family: var(--font-sans);
}
.mega-column a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: var(--tr);
    white-space: nowrap;
}
.mega-column a:hover { background: var(--mint-50); color: var(--mint-600); transform: translateX(4px); }
.mega-column a i { color: var(--mint-400); font-size: 0.8rem; width: 16px; }

/* Services dropdown chevron — lives inside the nav-link so it stays perfectly inline */
.nav-caret-icon {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-left: 3px;
    transition: transform 0.2s ease;
}
@media (min-width: 992px) {
    .nav-item.dropdown:hover .nav-caret-icon { transform: rotate(180deg); }
}

/* Nav Action Buttons */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-outline-nav {
    padding: 8px 18px;
    border: 1.5px solid var(--mint-400);
    border-radius: var(--radius-full);
    color: var(--mint-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--tr);
    background: transparent;
}
.btn-outline-nav:hover { background: var(--mint-50); color: var(--mint-700); }
.btn-cta-nav {
    padding: 9px 20px;
    background: var(--grad-cta);
    color: white !important;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--tr-spring);
    box-shadow: var(--shadow-mint);
    display: flex; align-items: center; gap: 6px;
}
.btn-cta-nav:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(45,212,191,0.4); color: white !important; }
.btn-logout { padding: 8px 14px; color: var(--pink-500); font-size: 0.875rem; font-weight: 500; transition: var(--tr); }
.btn-logout:hover { color: var(--pink-600); }

/* Toggler */
.navbar-toggler { border: none; padding: 8px; background: var(--mint-50); border-radius: 8px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-icon {
    display: block; width: 22px; height: 2px;
    background: var(--gray-700); border-radius: 2px;
    transition: var(--tr);
}
.toggler-icon + .toggler-icon { margin-top: 5px; }

/* ── Section Utilities ───────────────────────────────────────────────── */
.section-padding { padding: var(--section-py) 0; }
.section-padding-sm { padding: var(--section-py-sm) 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--mint-50);
    border: 1px solid var(--mint-200);
    color: var(--mint-700);
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.section-badge i { color: var(--mint-500); }

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.gradient-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--grad-hero);
    display: flex; align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-mesh);
    opacity: 0.7;
    z-index: 0;
}

#particles-js {
    position: absolute; inset: 0;
    z-index: 1; pointer-events: none;
}

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

/* Animated blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 8s ease-in-out infinite;
    pointer-events: none; z-index: 0;
}
.blob-1 { width: 500px; height: 500px; background: var(--mint-300); top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--blue-300); top: 30%; right: -80px; animation-delay: 2.5s; }
.blob-3 { width: 350px; height: 350px; background: var(--pink-300); bottom: -100px; left: 40%; animation-delay: 5s; }

/* Floating medical icons */
.floating-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-icon {
    position: absolute;
    width: 50px; height: 50px;
    background: white;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-card);
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.85;
}
.float-icon:nth-child(1) { top: 15%; left: 5%;  color: var(--mint-500); }
.float-icon:nth-child(2) { top: 70%; left: 8%;  color: var(--pink-500); }
.float-icon:nth-child(3) { top: 25%; right: 12%;color: var(--blue-500); }
.float-icon:nth-child(4) { top: 60%; right: 5%; color: var(--mint-600); }
.float-icon:nth-child(5) { bottom: 20%; left: 20%; color: var(--pink-400); }
.float-icon:nth-child(6) { top: 40%; left: 50%; color: var(--blue-600); }

/* Hero content */
.hero-content { padding: 40px 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mint-200);
    color: var(--mint-700);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--mint-500); }
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--gray-900);
}
.text-greeting { display: block; font-size: 0.9em; color: var(--gray-500); font-weight: 500; font-family: var(--font-sans); }
.hero-name { display: block; background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-typewriter { display: block; font-size: 0.6em; font-family: var(--font-sans); color: var(--mint-600); font-weight: 600; min-height: 1.5em; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--mint-500); animation: blink 0.8s step-end infinite; vertical-align: text-bottom; }
.hero-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hero-desc {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-hero-primary {
    padding: 14px 32px;
    background: var(--grad-cta);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-mint);
    transition: var(--tr-spring);
    display: inline-flex; align-items: center; gap: 8px;
    border: none;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(45,212,191,0.45); color: white; }
.btn-hero-outline {
    padding: 13px 30px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--tr);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover { border-color: var(--mint-300); background: var(--mint-50); color: var(--mint-700); transform: translateY(-2px); }

/* Hero Stats */
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.stat-number {
    font-size: 2rem; font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.hero-image-bg {
    position: absolute;
    width: 420px; height: 420px;
    background: var(--grad-primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}
.hero-image-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(45,212,191,0.25);
    animation: ringPulse 3s ease-in-out infinite;
}
.ring-1 { width: 380px; height: 380px; animation-delay: 0s; }
.ring-2 { width: 440px; height: 440px; animation-delay: 0.8s; opacity: 0.6; }
.ring-3 { width: 500px; height: 500px; animation-delay: 1.6s; opacity: 0.3; }

.hero-image {
    width: 340px;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-xl);
    position: relative; z-index: 2;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}
/* Hero floating info cards */
.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 10px;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.8);
    animation: cardFloat 4s ease-in-out infinite;
}
.card-1 { top: 10%; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 30%; right: -20px; animation-delay: 1.5s; }
.card-3 { bottom: 5%;  left: 10%;  animation-delay: 3s; }
.hero-card .card-icon {
    width: 36px; height: 36px;
    background: var(--grad-cta);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem;
    flex-shrink: 0;
}
.hero-card .card-info strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gray-900); }
.hero-card .card-info span   { display: block; font-size: 0.72rem; color: var(--gray-500); }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 3;
    color: var(--gray-400); font-size: 0.75rem;
    animation: fadeInUp 1s ease 2s both;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--mint-400);
    border-radius: 4px;
    animation: scrollWheel 2s ease-in-out infinite;
}

/* ── Services ─────────────────────────────────────────────────────────── */
.services-section { background: var(--color-bg-alt); }
.category-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.category-tab {
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: var(--tr);
    border: 2px solid var(--gray-200);
    background: white; color: var(--gray-600);
}
.category-tab.active,
.category-tab:hover {
    background: var(--grad-primary);
    color: white; border-color: transparent;
    box-shadow: var(--shadow-mint);
    transform: translateY(-2px);
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    height: 100%;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-card);
    transition: var(--tr-spring);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-bg {
    position: absolute; top: -30px; right: -30px;
    font-size: 6rem; opacity: 0.04;
    color: var(--mint-500);
    transition: var(--tr-slow);
    pointer-events: none;
}
.service-card:hover .service-card-bg { transform: scale(1.2) rotate(10deg); opacity: 0.07; }
.service-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    background: var(--grad-card);
    border: 1px solid var(--mint-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--mint-600);
    margin-bottom: 20px;
    transition: var(--tr-spring);
}
.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-mint);
}
.service-card h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--gray-900); }
.service-card p  { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; }
.service-link {
    font-size: 0.875rem; font-weight: 600;
    color: var(--mint-600);
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--tr);
}
.service-link i { transition: transform 0.3s var(--ease-spring); }
.service-link:hover i { transform: translateX(4px); }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats-section {
    background: var(--grad-dark);
    color: white;
    position: relative;
    overflow: hidden;
}
.stats-section::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='%2314b8a6' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-card {
    text-align: center; padding: 40px 20px;
    position: relative; z-index: 1;
}
.stat-card .stat-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--mint-400);
    margin: 0 auto 20px;
}
.stat-card .count-number {
    font-size: 3rem; font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1; margin-bottom: 8px;
}
.stat-card .count-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); font-weight: 400; }

/* ── About Section ────────────────────────────────────────────────────── */
.about-image-wrapper { position: relative; }
.about-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}
.about-experience-badge {
    position: absolute;
    bottom: 30px; right: -20px;
    background: var(--grad-cta);
    color: white; padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-mint);
}
.about-experience-badge .years { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.about-experience-badge span   { font-size: 0.78rem; display: block; opacity: 0.85; }

.about-qual-list { list-style: none; padding: 0; margin: 24px 0; }
.about-qual-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}
.about-qual-list li:last-child { border-bottom: none; }
.qual-icon { color: var(--mint-500); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.membership-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.member-badge {
    padding: 6px 14px;
    background: var(--mint-50);
    border: 1px solid var(--mint-200);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mint-700);
}

/* ── Appointment CTA ─────────────────────────────────────────────────── */
.appt-cta-section {
    background: var(--grad-cta);
    color: white;
    position: relative;
    overflow: hidden;
}
.appt-cta-section::after {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.availability-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.day-badge {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: white; border: 1px solid rgba(255,255,255,0.25);
}
.day-badge.closed { opacity: 0.4; text-decoration: line-through; }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    position: relative;
    transition: var(--tr-spring);
    height: 100%;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
    content: '\201C';
    position: absolute; top: 20px; right: 28px;
    font-size: 5rem; font-family: Georgia, serif;
    color: var(--mint-100);
    line-height: 1;
}
.stars { color: #F59E0B; font-size: 0.9rem; margin-bottom: 16px; }
.testimonial-text { font-size: 0.925rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar-placeholder {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.author-name  { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); }
.author-loc   { font-size: 0.78rem; color: var(--gray-400); }
.treatment-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--mint-50);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: var(--mint-700);
    font-weight: 600;
    margin-top: 4px;
}

/* ── Blog Cards ──────────────────────────────────────────────────────── */
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: var(--tr-spring);
    height: 100%;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.blog-card-cat {
    position: absolute; top: 16px; left: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 700;
    color: white;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.blog-card-body { padding: 24px; }
.blog-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.78rem; color: var(--gray-400);
    margin-bottom: 12px;
}
.blog-meta i { color: var(--mint-400); }
.blog-card h4 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h4 a { color: var(--gray-900); transition: var(--tr); }
.blog-card h4 a:hover { color: var(--mint-600); }
.blog-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.read-more {
    font-size: 0.85rem; font-weight: 600;
    color: var(--mint-600);
    display: inline-flex; align-items: center; gap: 6px;
    transition: var(--tr);
}
.read-more i { transition: transform 0.3s var(--ease-spring); }
.read-more:hover i { transform: translateX(4px); }

/* ── Contact Strip ───────────────────────────────────────────────────── */
.contact-strip {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 28px 0;
}
.contact-item-icon {
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-mint);
}
.contact-item-label { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 3px; }
.contact-item-value { font-size: 0.95rem; font-weight: 600; color: var(--gray-800); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
}
.footer-brand .brand-name { color: white; font-size: 1.3rem; }
.footer-brand .brand-tagline { color: var(--mint-400); }
.footer-desc { font-size: 0.875rem; line-height: 1.8; margin: 16px 0; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
    transition: var(--tr-spring);
}
.social-btn:hover { background: var(--mint-500); color: white; transform: translateY(-3px); border-color: transparent; }
.footer h5 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; font-family: var(--font-sans); position: relative; }
.footer h5::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: var(--mint-400); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a {
    font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: var(--tr);
    display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '→'; color: var(--mint-500); font-size: 0.8rem; transition: transform 0.2s; }
.footer-links a:hover { color: var(--mint-400); padding-left: 4px; }
.footer-hours li { font-size: 0.875rem; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0; margin-top: 50px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--mint-400); }

/* ── Back to Top ─────────────────────────────────────────────────────── */
#backToTop {
    position: fixed; bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: var(--grad-cta);
    color: white; border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-mint);
    opacity: 0; visibility: hidden;
    transition: var(--tr-spring);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,212,191,0.45); }

/* ── Alert / Flash ────────────────────────────────────────────────────── */
.alert-success-custom {
    background: #ECFDF5; border: 1px solid #A7F3D0;
    color: #065F46; border-radius: var(--radius-md);
    padding: 14px 20px; display: flex; align-items: center; gap: 10px;
}
.alert-error-custom {
    background: var(--pink-50); border: 1px solid var(--pink-200);
    color: var(--pink-700); border-radius: var(--radius-md);
    padding: 14px 20px; display: flex; align-items: center; gap: 10px;
}

/* ── Form Controls ───────────────────────────────────────────────────── */
.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: white;
    transition: var(--tr);
    outline: none;
}
.form-control-custom:focus {
    border-color: var(--mint-400);
    box-shadow: 0 0 0 4px rgba(45,212,191,0.12);
}
.form-control-custom::placeholder { color: var(--gray-400); }

.form-label-custom {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary-custom {
    padding: 13px 32px;
    background: var(--grad-cta);
    color: white; border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    transition: var(--tr-spring);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-mint);
    font-family: var(--font-sans);
    text-decoration: none;
}
.btn-primary-custom:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(45,212,191,0.4); color: white; }
.btn-secondary-custom {
    padding: 12px 30px;
    background: transparent;
    color: var(--mint-600);
    border: 2px solid var(--mint-400);
    border-radius: var(--radius-full);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-sans);
    text-decoration: none;
}
.btn-secondary-custom:hover { background: var(--mint-50); color: var(--mint-700); }
.btn-danger-custom {
    padding: 10px 24px;
    background: transparent; color: var(--pink-500);
    border: 1.5px solid var(--pink-300); border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: var(--tr); font-family: var(--font-sans);
}
.btn-danger-custom:hover { background: var(--pink-50); color: var(--pink-600); }

/* ── Page hero (inner pages) ─────────────────────────────────────────── */
.page-hero {
    background: var(--grad-hero);
    padding: calc(var(--nav-height) + 50px) 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-mesh); opacity: 0.7;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.breadcrumb-custom {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.875rem; color: var(--gray-500);
}
.breadcrumb-custom a { color: var(--mint-600); }
.breadcrumb-custom .sep { color: var(--gray-300); }

/* ── Patient Dashboard ───────────────────────────────────────────────── */
.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    height: 100%;
}
.dash-stat-card {
    border-radius: var(--radius-md);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}
.dash-stat-card::after {
    content: '';
    position: absolute; right: -20px; top: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.dash-stat-card .ds-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.85; }
.dash-stat-card .ds-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.dash-stat-card .ds-label { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700;
    text-transform: capitalize;
}
.status-pending   { background: #FEF9C3; color: #854D0E; }
.status-confirmed { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: var(--pink-100); color: var(--pink-700); }
.status-completed { background: var(--blue-100); color: var(--blue-700); }
.status-no_show   { background: var(--gray-100); color: var(--gray-600); }

/* ── Table ────────────────────────────────────────────────────────────── */
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom th {
    padding: 14px 16px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-100);
    background: var(--gray-50);
    white-space: nowrap;
}
.table-custom td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.table-custom tr:hover td { background: var(--mint-50); }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination-custom { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.875rem; font-weight: 500;
    color: var(--gray-700); background: white;
    transition: var(--tr); text-decoration: none;
}
.page-btn.active, .page-btn:hover { background: var(--mint-400); color: white; border-color: var(--mint-400); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
