﻿/* ============================================================
   Jayhealth Medical Clinic – Premium Design System
   ============================================================ */

/* ---------- Google Fonts (extra weights) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@400;700;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --blue-1:      #0A2463;
    --blue-2:      #1B5E9B;
    --blue-3:      #2980B9;
    --blue-4:      #56B4E9;
    --green-1:     #0D6B3A;
    --green-2:     #1e8449;
    --green-3:     #27ae60;
    --teal:        #00B4A6;
    --purple:      #7B2FBE;
    --light-bg:    #EBF5FF;
    --light-bg2:   #F0FDF9;
    --dark:        #0D1B2A;
    --dark-card:   #131F30;
    --text:        #1A2636;
    --text-muted:  #6c7a89;
    --border:      #dce8f5;
    --white:       #ffffff;
    --grad-main:   linear-gradient(135deg,#0A2463 0%,#1B5E9B 50%,#00B4A6 100%);
    --grad-hero:   linear-gradient(140deg,#0A2463 0%,#1B5E9B 45%,#2980B9 75%,#00B4A6 100%);
    --grad-green:  linear-gradient(135deg,#0D6B3A,#27ae60);
    --grad-warm:   linear-gradient(135deg,#1B5E9B,#7B2FBE);
    --grad-card:   linear-gradient(135deg,rgba(27,94,155,.06),rgba(0,180,166,.08));
    --shadow-sm:   0 2px 12px rgba(27,94,155,.10);
    --shadow-md:   0 8px 32px rgba(27,94,155,.14);
    --shadow-lg:   0 20px 60px rgba(10,36,99,.18);
    --shadow-glow: 0 0 40px rgba(27,94,155,.25);
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --t:           .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Merriweather', serif; line-height: 1.25; }
a { color: var(--blue-2); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-1); }
img { max-width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5fb; }
::-webkit-scrollbar-thumb { background: var(--blue-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-2); }

/* ---------- Keyframe Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}
@keyframes floatX {
    0%,100% { transform: translateX(0); }
    50%      { transform: translateX(12px); }
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(27,94,155,.45); }
    70%  { box-shadow: 0 0 0 16px rgba(27,94,155,0); }
    100% { box-shadow: 0 0 0 0 rgba(27,94,155,0); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes blobMorph {
    0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%      { border-radius: 50% 50% 30% 60% / 30% 60% 70% 50%; }
    75%      { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
}
@keyframes heartbeat {
    0%,100% { transform: scale(1); }
    14%      { transform: scale(1.18); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.12); }
    70%      { transform: scale(1); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
    from { width: 0; }
    to   { width: 64px; }
}
@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: .6; }
    33%  { transform: translateY(-60px) translateX(30px) rotate(120deg); opacity: 1; }
    66%  { transform: translateY(-20px) translateX(-20px) rotate(240deg); opacity: .8; }
    100% { transform: translateY(0) translateX(0) rotate(360deg); opacity: .6; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .7s var(--t), transform .7s var(--t); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .7s var(--t), transform .7s var(--t); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.88); transition: opacity .6s var(--t), transform .6s var(--t); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }
.delay-6 { transition-delay: .6s !important; }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(27,94,155,.3);
}
.top-bar a { color: rgba(255,255,255,.7); transition: color var(--t); }
.top-bar a:hover { color: #fff; }
.top-bar .top-bar-pill {
    background: rgba(27,94,155,.35);
    border: 1px solid rgba(27,94,155,.45);
    border-radius: 50px;
    padding: .2rem .8rem;
    font-size: .75rem;
    color: var(--blue-4);
    font-weight: 600;
    letter-spacing: .5px;
}

/* ---------- Navbar ---------- */
#mainNav {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220,232,245,.6);
    transition: box-shadow var(--t), background var(--t);
    z-index: 1040;
}
#mainNav.scrolled {
    box-shadow: 0 4px 32px rgba(10,36,99,.12);
    background: rgba(255,255,255,.98);
}
#mainNav .nav-link {
    font-weight: 500;
    font-size: .92rem;
    color: #3a4a5c;
    padding: .5rem .85rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--t), background var(--t);
}
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
    transition: left var(--t), right var(--t);
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { left: .85rem; right: .85rem; }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--blue-2); background: var(--light-bg); }
.brand-name {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.2px;
}
.logo-img { border-radius: var(--radius-sm); }

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: .3px;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--t);
}
.btn:hover::before { background: rgba(255,255,255,.12); }
.btn-primary {
    background: var(--grad-main);
    background-size: 200% 200%;
    border: none;
    box-shadow: 0 4px 18px rgba(27,94,155,.35);
    animation: gradientShift 5s ease infinite;
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(27,94,155,.5);
    transform: translateY(-2px);
    background: var(--grad-main);
    border: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary {
    color: var(--blue-2);
    border: 2px solid var(--blue-2);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--blue-2);
    border-color: var(--blue-2);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.btn-success {
    background: var(--grad-green);
    border: none;
    box-shadow: 0 4px 18px rgba(30,132,73,.3);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,132,73,.4); }
.btn-white {
    background: #fff;
    color: var(--blue-2);
    border: none;
    box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-pill { border-radius: 50px !important; }
.btn-pulse { animation: pulseRing 2.5s ease infinite; }

/* ---------- Section Helpers ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg,rgba(27,94,155,.1),rgba(0,180,166,.1));
    border: 1px solid rgba(27,94,155,.2);
    color: var(--blue-2);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-tag i { font-size: .9rem; color: var(--teal); }
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--dark);
    margin-bottom: .85rem;
    position: relative;
}
.section-title .gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title::after {
    content: '';
    display: block;
    height: 4px;
    width: 0;
    background: var(--grad-main);
    border-radius: 2px;
    margin: .75rem 0 0;
    transition: width .8s cubic-bezier(.4,0,.2,1);
}
.section-title.visible::after { width: 64px; }
.section-title.text-center::after { margin-left: auto; margin-right: auto; }
.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.75rem;
    line-height: 1.7;
}

/* ---------- HERO ---------- */
.hero-section {
    background: var(--grad-hero);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    padding: 110px 0 90px;
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* Floating orbs */
.hero-section .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero-section .orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle,rgba(0,180,166,.25),transparent 70%);
    top: -100px; right: -100px;
    animation: floatY 9s ease-in-out infinite;
}
.hero-section .orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle,rgba(123,47,190,.2),transparent 70%);
    bottom: -120px; left: -80px;
    animation: floatY 11s ease-in-out infinite reverse;
}
.hero-section .orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle,rgba(86,180,233,.3),transparent 70%);
    top: 30%; left: 45%;
    animation: floatX 7s ease-in-out infinite;
}
/* Particle dots */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-particles span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: particleDrift 8s ease-in-out infinite;
}
.hero-particles span:nth-child(1)  { top:15%; left:10%; animation-delay:0s;    animation-duration:10s; }
.hero-particles span:nth-child(2)  { top:65%; left:25%; animation-delay:1.5s;  animation-duration:8s;  }
.hero-particles span:nth-child(3)  { top:30%; left:70%; animation-delay:3s;    animation-duration:11s; }
.hero-particles span:nth-child(4)  { top:75%; left:80%; animation-delay:2s;    animation-duration:9s;  }
.hero-particles span:nth-child(5)  { top:50%; left:50%; animation-delay:.5s;   animation-duration:7s;  }
.hero-particles span:nth-child(6)  { top:10%; left:85%; animation-delay:4s;    animation-duration:12s; }
.hero-particles span:nth-child(7)  { top:85%; left:5%;  animation-delay:2.5s;  animation-duration:9s;  }
.hero-particles span:nth-child(8)  { top:40%; left:35%; animation-delay:1s;    animation-duration:10s; }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: fadeIn .8s ease forwards;
}
.hero-badge i { color: var(--blue-4); animation: heartbeat 2s ease infinite; }
.hero-section h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    animation: fadeUp .9s .2s ease both;
}
.hero-section h1 .highlight {
    background: linear-gradient(90deg,#fff,var(--blue-4),#fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}
.hero-section .lead {
    font-size: 1.1rem;
    opacity: .9;
    line-height: 1.7;
    animation: fadeUp .9s .35s ease both;
}
.hero-actions { animation: fadeUp .9s .5s ease both; }
.hero-stats {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-lg);
    padding: 1.35rem 2rem;
    backdrop-filter: blur(14px);
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: fadeUp .9s .65s ease both;
    margin-top: 2rem;
}
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg,#fff,var(--blue-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label { font-size: .75rem; opacity: .75; margin-top: .2rem; letter-spacing: .5px; }
.hero-card {
    background: rgba(255,255,255,.97);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.15);
    color: #333;
    animation: scaleIn .9s .3s ease both;
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-main);
}
.hero-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hero-card h4::before {
    content: '';
    width: 4px; height: 20px;
    background: var(--grad-main);
    border-radius: 2px;
    display: inline-block;
}

/* ---------- Services ---------- */
.services-section { padding: 90px 0; background: #fff; }
.service-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity var(--t);
    z-index: 0;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg,var(--light-bg),rgba(0,180,166,.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--blue-2);
    margin-bottom: 1.35rem;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 16px rgba(27,94,155,.1);
}
.service-card:hover .service-icon {
    background: var(--grad-main);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 28px rgba(27,94,155,.3);
}
.service-card h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: .6rem;
}
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Why Us / Features ---------- */
.why-us-section {
    background: linear-gradient(160deg, #f8faff 0%, #f0fdf9 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.why-us-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle,rgba(27,94,155,.06),transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}
.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--t);
    border: 1px solid transparent;
}
.feature-item:hover {
    background: #fff;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateX(6px);
}
.feature-icon-wrap {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.fi-blue  { background: linear-gradient(135deg,rgba(27,94,155,.12),rgba(41,128,185,.12)); color: var(--blue-2); }
.fi-green { background: linear-gradient(135deg,rgba(30,132,73,.12),rgba(39,174,96,.12)); color: var(--green-2); }
.fi-teal  { background: linear-gradient(135deg,rgba(0,180,166,.12),rgba(86,180,233,.12)); color: var(--teal); }
.fi-purple{ background: linear-gradient(135deg,rgba(123,47,190,.12),rgba(27,94,155,.12)); color: var(--purple); }
.feature-item h6 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.feature-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Doctors ---------- */
.doctors-section { padding: 90px 0; background: #fff; }
.doctor-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    height: 100%;
    position: relative;
}
.doctor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity .4s;
    z-index: 0;
    border-radius: var(--radius-xl);
}
.doctor-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.doctor-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.doctor-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    display: block;
}
.doctor-card:hover img { transform: scale(1.06); }
.doctor-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top,var(--dark),transparent);
    opacity: 0;
    transition: opacity var(--t);
}
.doctor-card:hover .doctor-card-img-wrap::after { opacity: .3; }
.doctor-photo-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg,var(--light-bg) 0%,rgba(0,180,166,.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--blue-2);
}
.doctor-card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}
.doctor-specialty {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.doctor-card h5 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; margin: .35rem 0 .6rem; }
.doctor-accept-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(30,132,73,.1);
    color: var(--green-2);
    padding: .3rem .75rem;
    border-radius: 50px;
    border: 1px solid rgba(30,132,73,.2);
}
.doctor-accept-badge i { font-size: .65rem; }

/* ---------- Blog Cards ---------- */
.blog-section { padding: 90px 0; background: linear-gradient(160deg,#f8faff,#f5fbff); }
.blog-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card-img-wrap { overflow: hidden; }
.blog-card img { width: 100%; height: 210px; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); display: block; }
.blog-card:hover img { transform: scale(1.08); }
.blog-placeholder-img {
    width: 100%; height: 210px;
    background: linear-gradient(135deg,var(--light-bg),rgba(0,180,166,.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: var(--blue-2);
}
.blog-card-body { padding: 1.5rem; }
.blog-date { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.blog-date i { color: var(--blue-3); }
.blog-card h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin: .6rem 0 .5rem;
    line-height: 1.45;
    transition: color var(--t);
}
.blog-card:hover h5 { color: var(--blue-2); }
.blog-read-more {
    font-size: .82rem;
    font-weight: 600;
    color: var(--blue-2);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: gap var(--t), color var(--t);
}
.blog-card:hover .blog-read-more { gap: .75rem; color: var(--teal); }

/* ---------- CTA Band ---------- */
.cta-band {
    background: var(--grad-hero);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    padding: 80px 0;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle,rgba(255,255,255,.08),transparent 65%);
    top: -200px; right: -100px;
    pointer-events: none;
}
.cta-band::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle,rgba(0,180,166,.18),transparent 65%);
    bottom: -100px; left: 5%;
    pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { font-weight: 900; text-shadow: 0 2px 16px rgba(0,0,0,.15); }
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.9);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    background: var(--grad-hero);
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    color: #fff;
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 400px;
    background: radial-gradient(ellipse,rgba(255,255,255,.06),transparent 70%);
    bottom: -200px; right: -100px;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    animation: fadeUp .7s ease both;
}
.breadcrumb-item a { color: rgba(255,255,255,.75); transition: color var(--t); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active,
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* ---------- Appointment Form ---------- */
.appointment-section { background: linear-gradient(160deg,#f8faff,#f0fdf9); padding: 64px 0; }
.form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-main);
}
.form-label { font-weight: 600; font-size: .875rem; color: #374151; }
.form-control, .form-select {
    border-color: #d0dde8;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    padding: .65rem 1rem;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue-2);
    box-shadow: 0 0 0 3px rgba(27,94,155,.13);
    transform: translateY(-1px);
}

/* ---------- Insurance Table ---------- */
.insurance-table thead th {
    background: var(--grad-main);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}
.insurance-table tbody tr { transition: all var(--t); }
.insurance-table tbody tr:hover td { background: var(--light-bg); }
.insurance-table tbody td { padding: .85rem 1.25rem; vertical-align: middle; }

/* ---------- Stat Cards ---------- */
.stat-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-main);
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stat-card:hover::after { width: 100%; }
.stat-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.si-blue   { background: linear-gradient(135deg,#EBF5FF,rgba(41,128,185,.15)); color: var(--blue-2); }
.si-green  { background: linear-gradient(135deg,rgba(30,132,73,.1),rgba(39,174,96,.12)); color: var(--green-2); }
.si-teal   { background: linear-gradient(135deg,rgba(0,180,166,.1),rgba(86,180,233,.12)); color: var(--teal); }
.si-purple { background: linear-gradient(135deg,rgba(123,47,190,.1),rgba(27,94,155,.12)); color: var(--purple); }
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: var(--dark); line-height: 1; margin-top: .15rem; }

/* ---------- Portal ---------- */
.portal-sidebar {
    background: var(--dark-card);
    min-height: calc(100vh - 130px);
    padding: 2rem 1.25rem;
    border-right: 1px solid rgba(255,255,255,.05);
}
.portal-sidebar .nav-link {
    color: rgba(255,255,255,.6);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-weight: 500;
    font-size: .915rem;
    transition: all var(--t);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .2rem;
}
.portal-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(4px); }
.portal-sidebar .nav-link.active {
    color: #fff;
    background: var(--blue-2);
    box-shadow: 0 4px 18px rgba(27,94,155,.35);
}
.portal-sidebar .nav-link i { width: 20px; text-align: center; }
.portal-main { padding: 2.5rem 2rem; background: #F4F7FC; min-height: calc(100vh - 130px); }

/* ---------- Admin Sidebar ---------- */
.admin-sidebar {
    background: #0D1B2A;
    min-height: 100vh;
    padding: 1.25rem 1rem;
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar .brand-area {
    padding: .75rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 1rem;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.6);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--t);
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .15rem;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(3px); }
.admin-sidebar .nav-link.active { color: #fff; background: var(--blue-2); box-shadow: 0 4px 16px rgba(27,94,155,.3); }
.admin-sidebar .nav-section-label {
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,.27);
    padding: 1.2rem 1rem .4rem;
    font-weight: 700;
}
.admin-topbar {
    background: #fff;
    border-bottom: 1.5px solid #eef1f6;
    padding: .8rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.admin-content { padding: 2rem; flex: 1; background: #F2F5FA; min-height: 100vh; }
.admin-wrapper { display: flex; min-height: 100vh; }
.main-area { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* Admin cards */
.admin-stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid #e8edf5;
    position: relative;
    overflow: hidden;
    transition: all var(--t);
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-stat-card .card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.65);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    width: 600px; height: 400px;
    background: radial-gradient(ellipse,rgba(27,94,155,.12),transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}
.footer-brand-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(90deg,#fff,var(--blue-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    transition: all var(--t);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.footer-links a::before { content: '›'; color: var(--blue-4); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: all var(--t); }
.footer-links a:hover { color: #fff; padding-left: 10px; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; font-size: .875rem; }
.footer-contact i {
    color: var(--blue-4);
    margin-top: 3px;
    min-width: 16px;
    flex-shrink: 0;
}
.footer-contact a { color: rgba(255,255,255,.6); transition: color var(--t); }
.footer-contact a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.08) !important; }
.footer-bottom-text { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ---------- Map ---------- */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t);
}
.map-wrapper:hover { box-shadow: var(--shadow-md); }
.map-wrapper iframe { display: block; }

/* ---------- Badges ---------- */
.badge { font-weight: 600; letter-spacing: .3px; }
.badge-gradient {
    background: var(--grad-main);
    color: #fff;
    border: none;
}
.status-pending   { background: #fff8e1; color: #b7790a; border: 1px solid #ffe082; }
.status-confirmed { background: #e8f5e9; color: #1e8449; border: 1px solid #a5d6a7; }
.status-completed { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.status-cancelled { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ---------- Info / Contact Cards ---------- */
.info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    padding: 2rem;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.info-card:hover::before { transform: scaleX(1); }
.info-icon {
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    background: var(--grad-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--blue-2);
    margin-bottom: 1rem;
    transition: all var(--t);
}
.info-card:hover .info-icon {
    background: var(--grad-main);
    color: #fff;
    transform: scale(1.1);
}

/* ---------- Testimonials / Quote ---------- */
.quote-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1.5px solid var(--border);
    position: relative;
    transition: all var(--t);
}
.quote-card::before {
    content: '\201C';
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: var(--blue-4);
    opacity: .25;
    position: absolute;
    top: .5rem;
    left: 1.25rem;
}
.quote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ---------- Avatar ---------- */
.avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(27,94,155,.25);
}

/* ---------- Utility ---------- */
.bg-light-blue { background: var(--light-bg); }
.bg-gradient-subtle { background: linear-gradient(135deg,#f8faff,#f0fdf9); }
.text-brand  { color: var(--blue-2) !important; }
.text-teal   { color: var(--teal) !important; }
.text-dark-c { color: var(--dark) !important; }
.border-brand { border-color: var(--blue-2) !important; }
.rounded-xl   { border-radius: var(--radius-lg) !important; }
.rounded-2xl  { border-radius: var(--radius-xl) !important; }
.gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-green {
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.shadow-brand { box-shadow: 0 6px 24px rgba(27,94,155,.2) !important; }
.divider-gradient {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,transparent,var(--blue-3),transparent);
    opacity: .3;
    margin: 2rem 0;
}

/* ---------- Number counter ---------- */
.counter { animation: countUp .6s ease both; }

/* ---------- Blob shape ---------- */
.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 12s ease-in-out infinite;
}

/* ---------- Floating animation helpers ---------- */
.float-anim   { animation: floatY 6s ease-in-out infinite; }
.float-slow   { animation: floatY 10s ease-in-out infinite; }
.rotate-slow  { animation: rotateSlow 30s linear infinite; }
.heartbeat    { animation: heartbeat 1.8s ease infinite; }

/* ---------- Shimmer skeleton ---------- */
.shimmer {
    background: linear-gradient(90deg,#f0f3f8 25%,#e4e9f0 50%,#f0f3f8 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

/* ---------- Testimonials ---------- */
.testimonials-section { padding: 90px 0; background: linear-gradient(160deg,#f0f7ff 0%,#f5fbff 100%); }
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--t);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.testimonial-card:hover::before { transform: scaleX(1); }
.testimonial-stars { color: #f59e0b; font-size: .92rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text {
    color: var(--text);
    font-size: .93rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.testimonial-text::before {
    content: '\201C';
    position: absolute;
    left: 0; top: -6px;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--blue-3);
    opacity: .2;
    font-style: normal;
    font-family: Georgia, serif;
    font-weight: 700;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: .85rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.testimonial-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27,94,155,.25);
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testimonial-loc { font-size: .775rem; color: var(--text-muted); margin-top: .15rem; }
.testimonial-loc i { color: var(--teal); font-size: .7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .admin-sidebar { width: 220px; }
}
@media (max-width: 991.98px) {
    .portal-sidebar, .admin-sidebar { min-height: auto; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
    .admin-wrapper, .main-area { flex-direction: column; }
    .hero-stats { gap: 1.25rem; }
    .portal-main, .admin-content { padding: 1.5rem 1rem; }
    .hero-section { padding: 80px 0 70px; }
    .services-section, .doctors-section, .blog-section, .why-us-section, .testimonials-section { padding: 70px 0; }
}
@media (max-width: 767.98px) {
    .section-title { font-size: 1.65rem; }
    .hero-section { padding: 65px 0 55px; }
    .cta-band { border-radius: var(--radius-md); padding: 50px 20px; }
    .form-card { padding: 1.75rem 1.25rem; }
    .hero-stats { padding: 1rem 1.25rem; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-badge { font-size: .7rem; }
}
