/* ============================================================
   CSS Custom Properties — Purple & White palette
   ============================================================ */
:root {
    --teal: #7c3aed;
    --teal-dark: #5b21b6;
    --teal-light: #ede9fe;
    --cream: #faf9ff;
    --cream-dark: #f3f0fc;
    --gold: #e8b86d;
    --gold-dark: #c9973d;
    --text: #1e1b2e;
    --text-light: #4c4568;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --border: #ddd6fe;
    --shadow: 0 2px 12px rgba(124,58,237,0.10);
    --shadow-lg: 0 6px 28px rgba(124,58,237,0.16);
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Animations & Keyframes
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0%   { left: -80%; }
    40%  { left: 130%; }
    100% { left: 130%; }
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,184,109,0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(232,184,109,0); }
}

/* Scroll-reveal — class added by JS; fallback: no JS = always visible */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    background: var(--white);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(124,58,237,0.10);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    color: var(--teal-dark);
    text-decoration: none;
}

.navbar-brand .clinic-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--teal-dark);
}

.navbar-brand .clinic-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover { background: var(--teal-light); color: var(--teal-dark); }
.navbar-links a.active { background: var(--teal-light); color: var(--teal); font-weight: 700; }

.btn-nav-cta {
    background: var(--teal) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.45rem 1.1rem !important;
    border-radius: var(--radius-sm) !important;
}

.btn-nav-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }
.btn-nav-cta.active { background: var(--teal-dark) !important; }

.navbar-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--teal-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   Alerts / Messages
   ============================================================ */
.alerts-wrapper { position: fixed; top: 80px; right: 1.5rem; z-index: 500; max-width: 380px; }

.alert {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(30px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.alert-success { background: #eafaf1; border-left: 4px solid #27ae60; color: #1e7e43; }
.alert-danger  { background: #fdf0f0; border-left: 4px solid #e74c3c; color: #b03021; }
.alert-info    { background: #eaf4fb; border-left: 4px solid #2980b9; color: #1a5d80; }
.alert-warning { background: #fef9e7; border-left: 4px solid #f39c12; color: #875d0a; }

/* ============================================================
   Main content wrapper
   ============================================================ */
.main-content { flex: 1; }

/* ============================================================
   Container
   ============================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    background:
        /* Dot grid — white dots on purple */
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.13) 1px, transparent 0),
        /* Top-left corner light burst */
        radial-gradient(ellipse at 0% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
        /* Bottom-right gold corner glow */
        radial-gradient(ellipse at 100% 100%, rgba(232,184,109,0.22) 0%, transparent 45%),
        /* Diagonal shimmer strip */
        linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%),
        /* Main gradient */
        linear-gradient(135deg, #3b0764 0%, var(--teal-dark) 40%, var(--teal) 75%, #a855f7 100%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--white);
    padding: 5rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(232,184,109,0.30);
}

/* Top-right animated orb */
.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -100px;
    width: 540px; height: 540px;
    background: radial-gradient(circle,
        rgba(192,132,252,0.40) 0%,
        rgba(168,85,247,0.18) 40%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb 9s ease-in-out infinite;
}

/* Bottom-left gold-tinted orb */
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 440px; height: 440px;
    background: radial-gradient(circle,
        rgba(232,184,109,0.28) 0%,
        rgba(192,132,252,0.14) 40%,
        transparent 68%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb 13s ease-in-out infinite reverse;
}

/* Centre glow behind hero text */
.hero .container {
    position: relative;
    z-index: 1;
}
.hero .container::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 640px; height: 260px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 68%);
    pointer-events: none;
}

/* Concentric breathing rings behind hero text */
.hero .container::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 720px; height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 0 0  50px rgba(255,255,255,0.06),
        0 0 0 105px rgba(255,255,255,0.04),
        0 0 0 168px rgba(168,85,247,0.12),
        0 0 0 235px rgba(124,58,237,0.06);
    pointer-events: none;
    z-index: 0;
    animation: ringBreath 8s ease-in-out infinite;
}

@keyframes ringBreath {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.07); opacity: 0.45; }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0,  0px); }
    35%       { transform: translate(18px, -22px); }
    65%       { transform: translate(-12px, 14px); }
}

.hero-badge {
    display: inline-block;
    background: rgba(232,184,109,0.22);
    border: 1px solid rgba(232,184,109,0.55);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    animation: fadeIn 0.6s ease both, pulseBadge 3s ease 1.2s infinite;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    animation: fadeInUp 0.7s 0.15s ease both;
}

.hero-qualification {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 0.4rem;
    animation: fadeInUp 0.7s 0.28s ease both;
}

.hero-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2.2rem;
    font-style: italic;
    min-height: 1.5em;        /* prevents layout jump before typing starts */
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: middle;
    border-radius: 1px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.7s 0.5s ease both; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-gold {
    background: var(--gold);
    color: var(--text);
    border-color: var(--gold);
    position: relative;
    overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.5s infinite 1s;
    pointer-events: none;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-danger { background: #e74c3c; color: var(--white); border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; border-color: #c0392b; color: var(--white); }

.btn-success { background: #27ae60; color: var(--white); border-color: #27ae60; }
.btn-success:hover { background: #1e7e43; border-color: #1e7e43; color: var(--white); }

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body { padding: 1.5rem; }
.card-header {
    padding: 1rem 1.5rem;
    background: var(--teal-light);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--teal-dark);
}

/* ============================================================
   Section layout
   ============================================================ */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-dark); }
.section-teal { background: var(--teal); color: var(--white); }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.section-teal .section-title { color: var(--gold); }
.section-teal .section-subtitle { color: rgba(255,255,255,0.75); }

/* ============================================================
   Specialisation grid
   ============================================================ */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.spec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.spec-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.spec-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.spec-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 0.2rem; }
.spec-card p  { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* ============================================================
   OPD Hours block
   ============================================================ */
.opd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.opd-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.opd-card .opd-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; margin-bottom: 0.5rem; }
.opd-card .opd-time  { font-size: 1.3rem; font-weight: 700; }

/* ============================================================
   About page
   ============================================================ */
.about-overview-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-callout {
    background: var(--teal-light);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
}

.about-callout h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.about-callout p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.8;
}

.about-cred-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-cred-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-cred-icon {
    width: 36px;
    height: 36px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.about-cred-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--teal-dark);
    display: block;
}

.about-cred-sub {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.about-bio p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.97rem;
    margin-bottom: 1.2rem;
}

.about-bio p:last-child { margin-bottom: 0; }

/* ============================================================
   How it works
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-num {
    width: 52px; height: 52px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}

.step h4 { font-weight: 600; color: var(--teal-dark); margin-bottom: 0.3rem; }
.step p { font-size: 0.85rem; color: var(--text-light); }

/* ============================================================
   Forms
   ============================================================ */
.form-page { padding: 3rem 0; }

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.2rem;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.3rem;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.3rem; }

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

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font);
}

.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,122,138,0.12);
}

.form-control.error { border-color: #e74c3c; }

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

select.form-control { appearance: auto; }

/* Radio group */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.radio-option:has(input:checked),
.radio-option.selected {
    border-color: var(--teal);
    background: var(--teal-light);
    color: var(--teal-dark);
    font-weight: 600;
}

.radio-option input { accent-color: var(--teal); }

.field-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.form-link { font-size: 0.88rem; color: var(--text-light); margin-top: 1rem; text-align: center; }
.form-link a { color: var(--teal); font-weight: 600; }

/* ============================================================
   Slot select
   ============================================================ */
#slot-loading {
    display: none;
    font-size: 0.85rem;
    color: var(--teal);
    margin-top: 0.4rem;
}

#no-slots-msg {
    display: none;
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 0.4rem;
}

/* ============================================================
   Confirmation page
   ============================================================ */
.confirm-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
}

.confirm-icon {
    width: 72px; height: 72px;
    background: #eafaf1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.confirm-details { text-align: left; background: var(--teal-light); border-radius: var(--radius-sm); padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.confirm-details dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); font-weight: 600; margin-top: 0.8rem; }
.confirm-details dt:first-child { margin-top: 0; }
.confirm-details dd { font-size: 0.95rem; color: var(--text); font-weight: 500; }

/* ============================================================
   Status badge
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-pending   { background: #fef9e7; color: #875d0a; border: 1px solid #f7c948; }
.badge-confirmed { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal); }
.badge-completed { background: #eafaf1; color: #1e7e43; border: 1px solid #27ae60; }
.badge-cancelled { background: #fdf0f0; color: #b03021; border: 1px solid #e74c3c; }

/* ============================================================
   Appointment list
   ============================================================ */
.appt-list { display: flex; flex-direction: column; gap: 1rem; }

.appt-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.appt-card:hover { box-shadow: var(--shadow-lg); }

.appt-date-block {
    text-align: center;
    min-width: 58px;
    background: var(--teal-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.4rem;
}

.appt-date-block .day  { font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); line-height: 1; }
.appt-date-block .mon  { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); }

.appt-info { flex: 1; }
.appt-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.appt-info p  { font-size: 0.82rem; color: var(--text-light); }

.appt-actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }

/* ============================================================
   Dashboard layout
   ============================================================ */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 68px);
}

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #3b0764 0%, var(--teal-dark) 100%);
    flex-shrink: 0;
    padding: 1.5rem 0;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}

.sidebar-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 1.5rem;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

.sidebar-title:first-child { margin-top: 0; }

.sidebar-nav { list-style: none; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.dashboard-main { flex: 1; padding: 0; overflow-x: auto; }

/* Dashboard banner */
.dashboard-banner {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0),
        linear-gradient(120deg, #3b0764 0%, var(--teal-dark) 50%, var(--teal) 100%);
    background-size: 24px 24px, 100% 100%;
    color: var(--white);
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(232,184,109,0.22);
}

.dashboard-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-banner::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 40%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(232,184,109,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-banner-left h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.dashboard-banner-left p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    position: relative;
    z-index: 1;
}

.dashboard-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

.dashboard-banner-date {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

.dashboard-banner-page {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-inner { padding: 2rem; }

/* Dashboard stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--teal-dark); line-height: 1; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Dashboard table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; padding: 0.8rem 1rem; text-align: left; border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--cream); }
.data-table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow-x: auto; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
}

.filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-group label { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; }
.filter-group select,
.filter-group input { padding: 0.5rem 0.7rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--teal);
    transition: all 0.2s;
}
.page-link:hover,
.page-link.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

/* ============================================================
   Appointment detail (dashboard)
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.detail-section h3 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }

.detail-row { display: flex; justify-content: space-between; margin-bottom: 0.65rem; font-size: 0.88rem; gap: 0.5rem; }
.detail-row dt { color: var(--text-light); font-weight: 500; flex-shrink: 0; }
.detail-row dd { font-weight: 600; text-align: right; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: linear-gradient(135deg, #3b0764 0%, var(--teal-dark) 60%, var(--teal) 100%);
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 1.5rem;
    margin-top: auto;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }

.footer h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.footer p, .footer li { font-size: 0.85rem; line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.empty-state p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ============================================================
   Women's Health Hover Cards
   ============================================================ */
.womens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.womens-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Decorative top accent bar */
.womens-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s ease;
}

.womens-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.womens-card:hover::before {
    transform: scaleX(1);
}

.womens-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: background 0.28s ease, transform 0.28s ease;
}

.womens-card:hover .womens-card-icon {
    background: var(--teal);
    transform: scale(1.08);
}

.womens-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.womens-card:hover .womens-card-title {
    color: var(--teal);
}

.womens-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.2rem;
}

.womens-card-cta {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.womens-card:hover .womens-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Multi-card Carousel (Specialisations)
   ============================================================ */
.mc-carousel-wrapper {
    position: relative;
    padding: 0 52px;       /* room for arrow buttons */
}

.mc-track-outer {
    overflow: hidden;
    border-radius: var(--radius);
}

.mc-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide takes up 1/3 of the outer width minus gaps */
.mc-slide {
    flex-shrink: 0;
    width: calc(33.333% - 0.68rem);   /* 3 visible on desktop */
}

.mc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--teal-dark);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 5;
}

.mc-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.mc-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.mc-btn-prev { left: 0; }
.mc-btn-next { right: 0; }

@media (max-width: 860px) {
    .mc-slide { width: calc(50% - 0.5rem); }   /* 2 visible */
}

@media (max-width: 540px) {
    .mc-slide { width: 100%; }                  /* 1 visible */
    .mc-carousel-wrapper { padding: 0 44px; }
}

/* ============================================================
   Testimonials Carousel
   ============================================================ */
.testimonials-section {
    background: var(--cream-dark);
    padding: 4rem 0;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.carousel-track-outer {
    overflow: hidden;
    border-radius: var(--radius);
}

.carousel-track {
    display: flex;
    align-items: stretch;       /* all slides grow to tallest height */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    flex: 0 0 100%;             /* never shrink or grow */
    padding: 0 0.5rem;
    box-sizing: border-box;
    display: flex;              /* lets the card stretch to fill slide */
}

.testimonial-card {
    flex: 1;                    /* fill the slide height */
    display: flex;
    flex-direction: column;     /* stack: stars → text → button → author */
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 2.2rem 2.5rem;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.4rem;
    left: 1.8rem;
    font-size: 5rem;
    color: var(--teal-light);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1.1rem;
}

.testimonial-stars span {
    color: var(--gold);
    font-size: 1.15rem;
}

.testimonial-text {
    flex: 1;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Clamped state — applied by JS to carousel cards only */
.testimonial-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-read-more {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0 auto 1.2rem;
    display: none;           /* shown by JS only when text actually overflows */
    width: 100%;
    text-align: center;
    transition: color 0.2s;
}
.testimonial-read-more:hover { color: var(--teal-dark); text-decoration: underline; }

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid var(--teal);
}

.testimonial-author-info { text-align: left; }
.testimonial-author-name { font-size: 0.95rem; font-weight: 700; color: var(--teal-dark); }
.testimonial-author-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--teal-dark);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.carousel-btn-prev { left: -56px; }
.carousel-btn-next { right: -56px; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
    background: var(--teal);
    transform: scale(1.35);
}

@media (max-width: 960px) {
    .carousel-btn-prev { left: -10px; }
    .carousel-btn-next { right: -10px; }
    .carousel-wrapper { padding: 0 2rem; }
}

@media (max-width: 520px) {
    .testimonial-card { padding: 1.5rem 1.2rem; }
    .testimonial-text { font-size: 0.92rem; }
    .carousel-btn { display: none; }
}

/* ============================================================
   All Reviews Page
   ============================================================ */
.all-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
    align-items: start;
}

.all-review-card {
    text-align: left;
    box-shadow: var(--shadow);
}

.all-review-card .testimonial-stars { justify-content: flex-start; }
.all-review-card .testimonial-author { justify-content: flex-start; }

/* Full text — no clamp on the reviews page */
.all-review-card .testimonial-text {
    margin-bottom: 1.2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .dashboard-wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; padding: 0.5rem; gap: 0.2rem; }
    .sidebar-title { display: none; }
    .sidebar-nav { display: flex; flex-wrap: wrap; }
    .sidebar-nav a { padding: 0.5rem 1rem; font-size: 0.82rem; border-radius: var(--radius-sm); }
    .dashboard-main { padding: 1rem; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* Stack about grid on tablet */
@media (max-width: 860px) {
    .about-overview-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
    .navbar { padding: 0 1rem; }
    .navbar-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 8px 24px rgba(124,58,237,0.10); padding: 0.75rem 1rem; }
    .navbar-links.open { display: flex; }
    .navbar-menu-btn { display: block; }
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero-tagline { font-size: 0.82rem; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
    .appt-card { flex-wrap: wrap; }
    .radio-group { flex-direction: column; }
    .filter-bar { flex-direction: column; }
    .section { padding: 2.5rem 0; }
    .steps-grid { gap: 1.2rem; }
    .about-callout { padding: 1rem 1.2rem; }
    .all-reviews-grid { grid-template-columns: 1fr; }
}

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