/*
Theme Name: Al-Naser Hospital Theme
Theme URI: http://hospatil-alnaser.local
Description: A custom dynamic theme for Al-Naser Hospital.
Author: Akil, Jihad, Bashar
Version: 1.0.0
Text Domain: alnaser-theme
*/

:root {
    --bg-top: #f8fafc;
    --bg-mid: #f1f5f9;
    --bg-bot: #e2e8f0;

    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0d9488;
    --accent: #f59e0b;

    --text: #0f172a;
    --text-light: #475569;
    --muted: rgba(15, 23, 42, .55);

    --white: #ffffff;
    --white-soft: rgba(255, 255, 255, .92);

    --green: #2563eb;
    /* Unified with primary */
    --green-d: #1e40af;

    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius: 16px;
    --radius-lg: 24px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Cairo', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── SINGLE POST HERO IMPROVEMENT ── */
.single-post-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.single-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/cloud.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.single-post-hero h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    font-size: clamp(32px, 5vw, 48px);
}

.single-post-meta {
    color: rgba(255, 255, 255, 0.9);
}

.about-hero-badge {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15) !important;
}


/* subtle vignette like the mock */
body::before {
    content: "";
    position: fixed;
    inset: -40px;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, .10), transparent 55%),
        radial-gradient(1000px 700px at 50% 110%, rgba(255, 255, 255, .30), transparent 60%);
    z-index: 0;
}

.container {
    width: min(var(--container), calc(100% - 56px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
           HEADER — TOP BAR
           ══════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5vh 0 0.5vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    z-index: 100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

header.scrolled .brand,
header.scrolled .menu {
    color: var(--text);
}

header.scrolled .menu a {
    opacity: 0.7;
}

header.scrolled .menu a:hover {
    opacity: 1;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    letter-spacing: .2px;
}

.brand .custom-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .12));
}

.logo {
    width: 80px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .18));
    object-fit: contain;
}

/* ── Desktop Navigation ── */
.desktop-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.desktop-navigation .menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
}

.desktop-navigation .menu a {
    color: inherit;
    text-decoration: none;
    opacity: .9;
    transition: opacity 0.2s ease;
}

.desktop-navigation .menu a:hover {
    opacity: 1;
}

/* Base menu style (fallback/generic) */
.menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.menu a {
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.2s ease;
}

header:not(.scrolled) .menu a {
    color: rgba(255, 255, 255, .86);
}

/* ── Hamburger Button (mobile only) ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.scrolled .hamburger-line {
    background: var(--text);
}

/* ── Mobile Overlay ── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ── Mobile Sidebar ── */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 85vw);
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    visibility: hidden;
}

.mobile-sidebar.active {
    right: 0;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-sidebar-header .brand {
    color: var(--text);
    gap: 10px;
}

.mobile-sidebar-header .brand .logo,
.mobile-sidebar-header .brand .custom-logo {
    width: 44px;
    height: 44px;
}

.mobile-sidebar-header .brand span {
    font-size: 15px;
}

.mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s ease;
}

.mobile-close-btn:hover {
    background: #e2e8f0;
}

/* ── Mobile Menu Links ── */
.mobile-navigation {
    flex: 1;
    padding: 16px 0;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-menu li a {
    display: block;
    padding: 18px 28px;
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease, padding-right 0.2s ease;
}

.mobile-menu li a:hover {
    background: rgba(37, 99, 235, 0.04);
    padding-right: 36px;
}

.mobile-menu li.current-menu-item a,
.mobile-menu li.current_page_item a {
    color: var(--primary);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.06);
    border-right: 3px solid var(--primary);
}

/* ── Mobile CTA Button ── */
.mobile-cta-btn {
    margin: 16px 24px 28px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    height: 52px;
    border-radius: 14px;
    font-family: inherit;
}

/* ── Header CTA Desktop ── */
.header-cta-desktop {
    flex-shrink: 0;
}

/* ── BTN (Global) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: var(--green);
    color: white;
    font-weight: 500;
    box-shadow: 0 14px 30px rgba(18, 168, 106, .28);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, var(--green) 0%, var(--green-d) 100%);
    box-shadow: 0 18px 36px rgba(18, 168, 106, .33);
}

/* ══════════════════════════════════════════
           RESPONSIVE — HEADER
           ══════════════════════════════════════════ */
@media (max-width: 920px) {
    .hamburger {
        display: flex;
    }

    .desktop-navigation {
        display: none;
    }

    .header-cta-desktop {
        display: none !important;
    }
}

@media (min-width: 921px) {

    .mobile-sidebar,
    .mobile-overlay {
        display: none !important;
    }
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding: 0;
    overflow: hidden;
    background: url('assets/cloud.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* huge title */
.hero-title {
    position: absolute;
    top: clamp(60px, 12vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, .95);
    font-size: clamp(45px, 9vw, 130px);
    line-height: .85;
    margin: 0;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
    text-shadow: 0 18px 40px rgba(0, 0, 0, .08);
    text-align: center;
    width: 100%;
}

/* glass frame behind doctor */
.glass-frame {
    position: absolute;
    left: 50%;
    top: clamp(120px, 20vh, 200px);
    transform: translateX(-50%);
    width: min(350px, 70vw);
    height: clamp(300px, 45vh, 500px);
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, .72);
    background: radial-gradient(300px 220px at 50% 20%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .02) 100%);
    box-shadow: 0 30px 70px rgba(2, 6, 23, .06);
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* doctor cutout png */
.doctor {
    position: absolute;
    left: 50%;
    top: clamp(80px, 13vh, 160px); /* head sticks out top */
    transform: translateX(-50%);
    width: min(380px, 55vw);
    /* height calculated to end exactly at frame bottom: 
       Frame bottom = 20vh + 45vh = 65vh.
       Doctor top is 13vh. 65 - 13 = 52vh. 
    */
    height: clamp(340px, 52vh, 540px); 
    object-fit: contain;
    object-position: bottom center; /* ensures image touches bottom border */
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 35px 65px rgba(2, 6, 23, .10));
}

/* cards scene */
.cards-scene {
    position: absolute;
    left: 50%;
    top: clamp(320px, 44vh, 500px); /* Raised top from 350px/48vh */
    transform: translateX(-50%);
    width: min(1000px, 98vw);
    height: 30vh; /* Reduced explicit height */
    min-height: 300px;
    perspective: 1200px;
    z-index: 10;
    overflow: visible;
}

.cards {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, -6deg)) rotateY(var(--ry, 0deg));
    transition: transform .12s ease-out;
    overflow: visible; /* Ensure no clipping */
}

.card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.card-inner {
    padding: 10px 12px 10px;
}

.card h3 {
    margin: 0 0 2px;
    font-size: 14px;
    letter-spacing: -.02em;
}

.card .small {
    font-size: 9px;
    color: rgba(15, 23, 42, .55);
    margin: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    font-size: 12px;
    color: rgba(15, 23, 42, .75);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 10px 25px rgba(18, 168, 106, .35);
}

/* individual cards positions (match the dribbble layout) */
.c-leftPhone {
    width: 55px;
    height: clamp(180px, 25vh, 240px);
    left: 0px;
    top: 4vh;
    transform: translateZ(-40px) rotateY(36deg) rotateZ(-2deg);
    opacity: .85;
}

.c-chart {
    width: 130px;
    height: clamp(180px, 25vh, 240px);
    left: calc(50% - 380px);
    top: 5vh;
    transform: translateZ(-15px) rotateY(22deg) rotateZ(-2deg);
}

.c-fitness {
    width: 140px;
    height: clamp(180px, 25vh, 240px);
    left: calc(50% - 245px);
    top: 6vh;
    transform: translateZ(10px) rotateY(10deg) rotateZ(-1deg);
}

.c-heart {
    width: 180px;
    height: clamp(280px, 38vh, 340px);
    left: 50%;
    top: 2vh;
    transform: translateX(-50%) translateZ(32px) rotateY(0deg);
}

.c-medicine {
    width: 140px;
    height: clamp(180px, 25vh, 240px);
    left: calc(50% + 105px);
    top: 6vh;
    transform: translateZ(10px) rotateY(-10deg) rotateZ(1deg);
}

.c-emergency {
    width: 130px;
    height: clamp(180px, 25vh, 240px);
    left: calc(50% + 250px);
    top: 5vh;
    transform: translateZ(-8px) rotateY(-18deg) rotateZ(2deg);
}

.c-rightPhone {
    width: 55px;
    height: clamp(180px, 25vh, 240px);
    right: 0px;
    top: 4vh;
    transform: translateZ(-40px) rotateY(-36deg) rotateZ(2deg);
    opacity: .85;
}

/* simple “UI” content blocks to mimic the cards */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.mini {
    height: 28px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .06);
}

.mini.round {
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, .7);
    font-weight: 600;
    font-size: 12px;
}

.heart-area {
    margin-top: 8px;
    height: 12vh;
    min-height: 100px;
    border-radius: 12px;
    background:
        radial-gradient(80px 80px at 85% 80%, rgba(255, 0, 0, .18), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .02));
    position: relative;
    overflow: hidden;
}

.heart-area::after {
    content: "❤";
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 28px;
    opacity: .9;
    filter: drop-shadow(0 14px 30px rgba(255, 0, 0, .18));
}

.bpm {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bpm strong {
    font-size: 22px;
    letter-spacing: -.03em;
}

.bpm span {
    font-size: 10px;
    color: rgba(15, 23, 42, .55);
}

.icons-row {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.chip {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    display: grid;
    place-items: center;
    font-size: 10px;
    color: rgba(15, 23, 42, .7);
}

.chip.dark {
    background: rgba(15, 23, 42, .86);
    color: white;
    width: 36px;
    font-size: 9px;
}

/* bottom text + CTA */
.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2vh, 40px); /* Lowered from 20px/4vh */
    transform: translateX(-50%);
    width: min(720px, 92vw);
    text-align: center;
    z-index: 5;
    color: rgba(15, 23, 42, .55);
    font-size: clamp(11px, 1.4vw, 14px);
    line-height: 1.5;
}

.hero-bottom .btn {
    margin-top: 1.5vh;
    margin-bottom: 0;
    height: 45px;
    padding: 0 28px;
    font-size: 14px;
}

/* Card Inner Components */
.chart-value {
    font-size: clamp(20px, 4vw, 26px);
    margin: 2px 0 0;
}

.chart-container {
    height: clamp(100px, 15vh, 150px);
    margin-top: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .06);
    position: relative;
    overflow: hidden;
}

.chart-bars {
    position: absolute;
    inset: 18px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.bar {
    width: 10px;
    border-radius: 6px;
}

.bar-1 { height: 22%; background: rgba(239, 68, 68, .45); }
.bar-2 { height: 38%; background: rgba(239, 68, 68, .55); }
.bar-3 { height: 28%; background: rgba(239, 68, 68, .45); }
.bar-4 { height: 52%; background: rgba(239, 68, 68, .60); }
.bar-5 { height: 34%; background: rgba(239, 68, 68, .50); }
.bar-6 { height: 60%; background: rgba(239, 68, 68, .65); }
.bar-7 { height: 42%; background: rgba(239, 68, 68, .55); }

.card-action {
    margin-top: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    margin: 0;
    font-size: 14px;
}

.bpm-label {
    margin-top: 10px;
}

.bpm-desc {
    max-width: 100%;
    margin-top: 8px;
    line-height: 1.3;
}

.emergency-icons {
    grid-template-columns: repeat(4, 1fr);
}

.emergency-icons .mini {
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-main-chip {
    width: 50px;
    height: 50px;
}

/* responsive — hero cards */
@media (max-width: 1400px) {
    .c-chart { left: calc(50% - 350px); }
    .c-fitness { left: calc(50% - 220px); }
    .c-medicine { left: calc(50% + 90px); }
    .c-emergency { left: calc(50% + 220px); }
}

@media (max-width: 1200px) {
    .cards-scene {
        transform: translateX(-50%) scale(0.9);
        transform-origin: top center;
    }
    .c-chart { left: calc(50% - 320px); }
    .c-fitness { left: calc(50% - 200px); }
    .c-medicine { left: calc(50% + 70px); }
    .c-emergency { left: calc(50% + 190px); }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 700px;
    }
    .cards-scene {
        top: 45vh;
        transform: translateX(-50%) scale(0.8);
    }
    .hero-title {
        font-size: clamp(40px, 8vw, 90px);
    }
}

@media (max-width: 920px) {
    .hero {
        min-height: 800px;
    }
    .cards-scene {
        top: 420px;
        transform: translateX(-50%) scale(0.9);
    }

    .c-emergency,
    .c-chart {
        display: none;
    }

    .c-leftPhone,
    .c-rightPhone {
        opacity: .25;
    }
    
    .c-fitness { left: calc(50% - 180px); }
    .c-medicine { left: calc(50% + 40px); }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 900px;
        padding-bottom: 120px;
    }
    .cards-scene {
        top: 440px;
        transform: translateX(-50%) scale(0.85);
    }
    .hero-bottom {
        bottom: 40px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 950px;
    }

    .hero-title {
        top: 80px;
        font-size: clamp(36px, 12vw, 55px);
        white-space: normal;
        padding: 0 20px;
        line-height: 1.1;
    }

    .glass-frame {
        top: 200px;
        height: 350px;
        width: 85vw;
    }

    .doctor {
        top: 140px;
        width: 95vw;
        height: 410px; /* Aligns with frame bottom (140+410=550) */
    }

    .cards-scene {
        top: 480px;
        height: 500px; /* Increased from 400px */
        transform: translateX(-50%) scale(0.9);
        overflow: visible;
    }

    .c-leftPhone,
    .c-rightPhone {
        display: none;
    }

    .c-fitness {
        left: 5%;
        top: 140px;
        width: 130px;
        transform: translateZ(10px) rotateY(12deg);
    }

    .c-heart {
        left: 50%;
        top: 10px;
        width: 170px;
        height: 300px;
        transform: translateX(-50%) translateZ(32px);
    }

    .c-medicine {
        left: auto;
        right: 5%;
        top: 140px;
        width: 130px;
        transform: translateZ(10px) rotateY(-12deg);
    }

    .hero-bottom {
        width: 90%;
        bottom: 30px;
    }
}

@media (max-height: 700px) and (min-width: 1025px) {
    .hero-title { top: 40px; }
    .glass-frame { top: 100px; height: 350px; }
    .doctor { top: 80px; height: 380px; }
    .cards-scene { top: 320px; }
}

/* JOURNEY SECTION */
.journey-section {
    background: linear-gradient(180deg, #e8f0f7 0%, #f5f9fc 50%, #eef5fb 100%);
    padding: 80px 0 100px;
    min-height: 100vh;
}

.journey-header {
    text-align: center;
    margin-bottom: 50px;
}

.journey-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.journey-header p {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Doctor Card - spans 2 rows */
.doctor-card {
    grid-row: span 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(200, 220, 200, 0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.doctor-card-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: bottom center;
}

.doctor-card-content {
    padding: 20px 24px 24px;
    text-align: center;
    width: 100%;
}

.doctor-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.doctor-card .specialty {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

.book-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.book-btn:hover {
    background: var(--green-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
}

/* Search Doctor Card */
.search-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
    position: relative;
    z-index: 2;
}

.search-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    max-width: 155px;
    position: relative;
    z-index: 2;
}

.doctors-network {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 140px;
    z-index: 1;
}

.doctor-avatar {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #e0e7ee, #c5d3e0);
    overflow: hidden;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar:nth-child(2) {
    top: 8px;
    left: 78px;
}

.doctor-avatar:nth-child(3) {
    top: 48px;
    left: 128px;
}

.doctor-avatar:nth-child(4) {
    top: 98px;
    left: 98px;
}

.doctor-avatar:nth-child(5) {
    top: 68px;
    left: 58px;
}

.doctor-avatar:nth-child(6) {
    top: 28px;
    left: 28px;
}

.network-lines {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.network-lines svg {
    width: 100%;
    height: 100%;
}

/* Emergency Card */
.emergency-card {
    min-height: 180px;
}

.emergency-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.emergency-card .subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
}

.emergency-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.emergency-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.emergency-icon.ambulance {
    background: rgba(255, 180, 0, 0.1);
}

.emergency-icon.medicine {
    background: rgba(59, 130, 246, 0.08);
}

.all-btn {
    position: absolute;
    bottom: 20px;
    right: 24px;
    padding: 12px 24px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* AI Overview Card */
.ai-card {
    min-height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 240, 230, 0.4) 100%);
}

.ai-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.ai-card .subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
}

.ai-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    min-width: 50px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.stat-badge {
    margin-right: auto;
    padding: 4px 10px;
    background: var(--green);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.ai-graph {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 60px;
    overflow: hidden;
}

.ai-graph svg {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-card {
        grid-row: span 1;
    }

    .doctors-network {
        display: none;
    }

    .search-card p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .journey-section {
        padding: 60px 0 80px;
    }
}

/* MISSION SECTION */
.mission-section {
    background: linear-gradient(180deg, #d9e8f5 0%, #e3eef7 100%);
    padding: 80px 0 100px;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 32px;
    font-weight: 500;
}

.mission-text .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin: 0 4px;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.learn-more-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.4);
}

.learn-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.learn-more-btn:hover svg {
    transform: translateX(-4px);
}

/* SPECIALISTS SECTION */
.specialists-section {
    background: linear-gradient(180deg, #e3eef7 0%, #d5e5f2 50%, #c8dbed 100%);
    padding: 80px 0 100px;
    position: relative;
}

.specialists-header {
    text-align: center;
    margin-bottom: 50px;
}

.specialists-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--green);
    color: white;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.specialists-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.specialists-header p {
    font-size: 15px;
    color: var(--muted);
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.6;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.specialist-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.specialist-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.specialist-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.specialist-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .specialists-grid {
        grid-template-columns: 1fr;
    }
}

/* TOP DOCTORS SECTION */
.doctors-section {
    background: linear-gradient(180deg, #e8f0f7 0%, #f0f5fa 100%);
    padding: 80px 0 100px;
}

.doctors-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.doctors-top-left h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.2;
}

.doctors-top-left p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.doctors-top-right {
    text-align: left;
}

.trust-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
}

.trust-avatars {
    display: flex;
}

.trust-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -12px;
    object-fit: cover;
}

.trust-label {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.doctors-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 40px;
}

.featured-doctor {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
}

.featured-doctor-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: bottom center;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.featured-doctor-info {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-doctor-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.featured-doctor-info .specialty {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}

.rating .star {
    color: #fbbf24;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    color: var(--muted);
    font-size: 16px;
    text-decoration: none;
}

.award-badge {
    position: absolute;
    bottom: 100px;
    left: 20px;
    font-size: 48px;
}

.doctors-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertise-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.expertise-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
}

.expertise-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.feature-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.feature-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.doctor-profile-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.doctor-profile-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.doctor-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.doctor-profile-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.doctor-profile-info .specialty {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 4px;
}

.doctor-profile-bio {
    margin-bottom: 16px;
}

.doctor-profile-bio strong {
    font-size: 12px;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.doctor-profile-bio p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.doctor-profile-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(30, 58, 95, 0.05);
}

.btn-primary {
    flex: 1;
    padding: 12px 16px;
    background: var(--green);
    border: none;
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--green-d);
}

@media (max-width: 900px) {
    .doctors-top {
        flex-direction: column;
    }

    .doctors-main {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Horizontal Scroll Mobile ── */
@media (max-width: 768px) {
    .horizontal-scroll-mobile {
        margin: 0 -20px;
        padding: 0 20px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .horizontal-scroll-mobile::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .horizontal-scroll-mobile .doctors-grid,
    .horizontal-scroll-mobile .specialists-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        width: max-content;
        grid-template-columns: none; /* Disable grid on mobile if in scroll */
    }

    .horizontal-scroll-mobile .doctor-profile-card,
    .horizontal-scroll-mobile .specialist-card {
        width: 280px;
        flex-shrink: 0;
    }
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b5998 0%, #1e3a5f 100%);
    border-radius: 50%;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 600;
}

.footer-about p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
    margin: 0 0 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--green);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

input[type="tel"]::placeholder {
    direction: ltr;
    text-align: right; /* Keep it on the right for RTL layout but LTR characters */
}

input[type="tel"] {
    direction: ltr;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 14px;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.madar-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.madar-credit span {
    opacity: 0.7;
}

.madar-brand-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.madar-brand-link:hover {
    transform: scale(1.1);
}

.madar-logo {
    display: block;
    height: 30px;
    width: auto;
    transition: filter 0.3s ease;
}

.madar-brand-link:hover .madar-logo {
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
}

/* Centered footer layout applies across all devices */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #eef5fb;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Main Services Grid */
.main-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), transparent);
    border-radius: 0 24px 0 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-features span {
    padding: 6px 14px;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 999px;
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 12px;
}

/* Featured Service */
.featured-service {
    background: linear-gradient(135deg, var(--green), var(--green-d));
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    color: white;
}

.featured-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px;
}

.featured-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.8;
    margin: 0 0 30px;
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-stat {
    text-align: center;
}

.featured-stat .number {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.featured-stat .label {
    font-size: 13px;
    opacity: 0.8;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.featured-badge {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: white;
    color: var(--text);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-badge .icon {
    font-size: 28px;
}

.featured-badge .text {
    font-size: 14px;
    font-weight: 600;
}

/* Other Services */
.other-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mini-service {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mini-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.mini-service .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.mini-service h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}

.mini-service p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #e8f0f7 0%, #d9e8f5 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.cta-section p {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 30px;
    max-width: 500px;
    margin-inline: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    border: 2px solid var(--green);
    background: transparent;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(30, 58, 95, 0.05);
}

/* ==========================================================
   🗞️ BLOG SYSTEM — بشار | المرحلة 2 | feature/phase2-blog-about-contact
   ========================================================== */

/* ── Page Hero (shared: blog, single, about, contact) ── */
.page-hero {
    padding: 160px 0 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0f2a45 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, .15), transparent 65%),
        url('assets/cloud.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    margin: 16px 0 18px;
    color: white;
    letter-spacing: -.03em;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

.page-hero p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255, 255, 255, .88);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

.about-hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px) !important;
    text-decoration: none;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15) !important;
    transition: transform .25s, box-shadow .25s;
}

.about-hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3) !important;
    background: rgba(37, 99, 235, 0.25) !important;
}

/* ── Premium Hero Doctor Info Badge ── */
.hero-doctor-info {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 12px 24px 12px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: default;
}

.hero-doctor-info:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.hero-doctor-avatar--placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #2a5286);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.hero-doctor-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: right;
}

.hero-doctor-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #1e3a5f;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.hero-doctor-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-doctor-position {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero-doctor-specialty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 680px) {
    .hero-doctor-info {
        flex-direction: column;
        text-align: center;
        border-radius: 24px;
        padding: 24px;
        width: 100%;
        max-width: 300px;
        margin: 32px auto 0;
    }
    
    .hero-doctor-details {
        align-items: center;
        text-align: center;
    }
}

/* ── Blog Section ── */
.blog-section {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 60vh;
}

.blog-section .container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Category Filter Buttons ── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

.blog-filter-btn {
    padding: 10px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, .95);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    backdrop-filter: blur(8px);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
    transform: translateY(-2px);
}

/* ── Posts Grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* ── Blog Post Card ── */
.blog-post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s ease;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .8);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}

/* Card thumbnail */
.blog-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    flex-shrink: 0;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .blog-card-thumb img {
    transform: scale(1.08);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .4) 0%, transparent 60%);
    pointer-events: none;
}

.blog-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(37, 99, 235, .25);
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* Card body */
.blog-card-body {
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(37, 99, 235, .12));
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 14px;
    width: fit-content;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 12px;
    color: var(--text);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.75;
    flex: 1;
    margin: 0 0 20px;
}

/* Card meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.blog-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.blog-card-date,
.blog-card-read {
    font-size: 12px;
}

.blog-card-date::before,
.blog-card-read::before {
    content: '·';
    margin-left: 8px;
    color: var(--muted);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap .25s, color .2s;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ── Blog Pagination ── */
.blog-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blog-pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
    transform: translateY(-2px);
}

/* ── Empty Blog State ── */
.blog-empty {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}

.blog-empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.blog-empty h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
}

.blog-empty p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.blog-empty .btn {
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
}

.blog-empty .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .35);
}

/* ── SINGLE POST ── */
.single-post-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.single-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/cloud.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
}

.single-post-hero h1 {
    color: white;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 28px;
    font-size: clamp(36px, 5.5vw, 52px);
    line-height: 1.3;
    font-weight: 800;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
    margin-top: 20px;
}

.single-post-meta .blog-card-avatar {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, .8);
}

.meta-sep {
    opacity: .6;
}

/* Featured Image */
.single-post-thumb {
    background: linear-gradient(180deg, #e2e8f0, #f1f5f9);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.single-thumb-img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .12);
}

/* Post layout: article + sidebar */
.single-post-section {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

/* Article body */
.single-post-body {
    background: white;
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
    border: 1px solid rgba(255, 255, 255, .8);
}

.post-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text);
}

.post-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2em;
    margin-bottom: 0.7em;
    letter-spacing: -.01em;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.post-content p {
    margin: 0 0 1.6em;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: color .2s;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.6em;
    padding-right: 24px;
}

.post-content li {
    margin-bottom: 0.6em;
}

.post-content blockquote {
    border-right: 5px solid var(--primary);
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .04), rgba(37, 99, 235, .08));
    border-radius: var(--radius);
    font-style: italic;
    color: var(--text-light);
    margin: 32px 0;
    font-size: 18px;
    line-height: 1.8;
}

.post-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.post-content th {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    font-weight: 600;
    text-align: right;
}

.post-content td {
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) {
    background: #f8fafc;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}

.tags-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-light);
}

.post-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(37, 99, 235, .1));
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
    border: 1px solid rgba(37, 99, 235, .15);
}

.post-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-nav-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .25);
}

.post-nav-link:hover * {
    color: white !important;
}

.post-nav-arrow {
    font-size: 24px;
    color: var(--primary);
    transition: color .2s;
}

.post-nav-dir {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: .04em;
}

.post-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .04), rgba(37, 99, 235, .08));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, .12);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.author-box-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color .2s;
}

.author-box-name:hover {
    color: var(--primary);
}

.author-box-content p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* Comments wrapper */
.post-comments-wrap {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #f1f5f9;
}

/* ── Sidebar ── */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    border: 1px solid rgba(255, 255, 255, .8);
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

/* Related posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    border-radius: var(--radius);
    transition: all .25s;
}

.related-post-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateX(-4px);
}

.related-post-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.related-post-thumb--placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.related-post-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-post-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.related-post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.sidebar-cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sidebar-cta h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    color: white;
}

.sidebar-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 20px;
    line-height: 1.6;
}

.sidebar-cta .btn {
    background: white;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    font-weight: 700;
}

.sidebar-cta .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

/* ── Responsive Blog ── */
@media (max-width: 960px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-sidebar {
        position: static;
    }

    .single-post-body {
        padding: 36px 28px;
    }
    
    .single-post-hero h1 {
        font-size: clamp(28px, 6vw, 40px);
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-section {
        padding: 60px 0 80px;
    }
    
    .blog-card-body {
        padding: 22px 22px 24px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .single-post-body {
        padding: 28px 20px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .page-hero {
        padding: 120px 0 60px;
    }
}

/* ============================================
           DOCTORS PAGE STYLES (archive-doctors.php)
           by: جهاد
           ============================================ */

/* Stats Bar */
.doctors-stats-bar {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stat-icon {
    font-size: 32px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.stat-desc {
    font-size: 14px;
    color: var(--muted);
}

/* Doctors Listing Section */
.doctors-listing-section {
    padding: 60px 0 80px;
    background: #eef5fb;
}

/* Toolbar: Search + Filter */
.doctors-toolbar {
    margin-bottom: 40px;
}

.doctors-search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto 24px;
}

.doctors-search-box .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.doctors-search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid rgba(30, 58, 95, 0.12);
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.doctors-search-box input:focus {
    border-color: var(--green);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.12);
}

.doctors-search-box input::placeholder {
    color: var(--muted);
}

.doctors-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid rgba(30, 58, 95, 0.12);
    border-radius: 999px;
    background: white;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

/* Doctors Grid */
.doctors-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Doctor Card */
.doc-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.doc-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ee, #c5d3e0);
}

.doc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: transform 0.4s ease;
}

.doc-card:hover .doc-card-img img {
    transform: scale(1.05);
}

.doc-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 64px;
    background: linear-gradient(135deg, #e0e7ee, #c5d3e0);
}

.doc-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.doc-card-body {
    padding: 20px;
}

.doc-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.doc-specialty {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    margin: 0 0 10px;
}

.doc-bio {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card-meta {
    margin-bottom: 16px;
}

.doc-reviews {
    font-size: 12px;
    color: var(--muted);
}

.doc-card-actions {
    display: flex;
    gap: 10px;
}

.doc-card-actions .btn-outline,
.doc-card-actions .btn-primary {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
    border-radius: 12px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.no-results p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

/* Doctors Page Responsive */
@media (max-width: 1100px) {
    .doctors-listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .doctors-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .doctors-listing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .doctors-filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ============================================
           APPOINTMENTS PAGE STYLES (page-appointments.php)
           by: جهاد
           ============================================ */

/* Booking Steps */
.booking-steps-section {
    background: white;
    padding: 50px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 0 1 200px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 14px;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.step-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--green), rgba(30, 58, 95, 0.2));
    margin-top: 72px;
    flex-shrink: 0;
}

/* Appointment Section */
.appointment-section {
    padding: 60px 0 80px;
    background: #eef5fb;
}

.appointment-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Booking Form Card */
.booking-form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(30, 58, 95, 0.10);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.booking-success {
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.booking-success h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.booking-success>p {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 28px;
}

.success-details {
    background: #f8fafb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: right;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--muted);
}

.detail-row strong {
    color: var(--text);
}

/* Sidebar */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.sidebar-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.sidebar-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.sidebar-muted {
    margin-top: 4px !important;
    font-size: 12px !important;
    opacity: 0.7;
}

/* Work Hours */
.work-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: var(--text);
}

.work-hours li:last-child {
    border-bottom: none;
}

.work-hours li.highlight {
    color: var(--green);
    font-weight: 700;
}

/* Emergency Sidebar Card */
.emergency-sidebar {
    background: linear-gradient(135deg, #fef2f2, #fff1f1);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.emergency-btn {
    display: block;
    margin-top: 14px;
    padding: 14px 20px;
    background: #ef4444;
    color: white;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.tips-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

/* Appointments Page Responsive */
@media (max-width: 900px) {
    .appointment-layout {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        flex: 0 1 140px;
    }

    .booking-form-card {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .step-connector {
        display: none;
    }

    .booking-form-card {
        padding: 20px;
    }

    .booking-success {
        padding: 40px 20px;
    }
}

/* ============================================================
   BASHAR — PAGE HERO (about & contact shared)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #0f2a45 100%);
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%),
        url('assets/cloud.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .4);
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 700;
    color: white;
    margin: 0 0 18px;
    letter-spacing: -.03em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.page-hero p {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, .82);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.about-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* STATS STRIP */
.stats-strip {
    background: white;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 20px;
    border-left: 1px solid rgba(0, 0, 0, .07);
    transition: background .2s;
}

.stat-item:last-child {
    border-left: none;
}

.stat-item:hover {
    background: #f8fafc;
}

.stat-number {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--green);
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

/* MISSION */
.about-mission {
    padding: 100px 0;
    background: #eef5fb;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mission-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.mission-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.badge-icon {
    font-size: 28px;
}

.mission-badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.mission-badge span {
    font-size: 12px;
    color: var(--muted);
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--green);
    background: rgba(30, 58, 95, .08);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.mission-content h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin: 0 0 16px;
}

.mission-lead {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 32px;
}

.mission-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mission-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    border: 1px solid rgba(255, 255, 255, .8);
    transition: transform .2s, box-shadow .2s;
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.mc-icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mission-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.mission-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* DEPARTMENTS */
.about-departments {
    padding: 100px 0;
    background: linear-gradient(180deg, #f5f9fc 0%, #eef5fb 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin: 8px 0 12px;
}

.section-header p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

.departments-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dept-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    border: 1px solid rgba(255, 255, 255, .8);
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.dept-main {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
}

.dept-main h3,
.dept-main p {
    color: white;
}

.dept-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.dept-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}

.dept-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.dept-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, .22);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
}

/* TEAM */
.about-team {
    padding: 100px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background: #f8fafc;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.team-img-wrap {
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0eaf3, #c5d8e8);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .4s;
}

.team-card:hover .team-img {
    transform: scale(1.04);
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.team-spec {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.team-info p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 14px;
}

.team-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.team-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(30, 58, 95, .08);
    color: var(--green);
    border-radius: 999px;
}

/* TIMELINE */
.about-history {
    padding: 100px 0;
    background: linear-gradient(180deg, #eef5fb 0%, #e4eef7 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 90px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green), rgba(30, 58, 95, .15));
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 28px 1fr;
    gap: 0 20px;
    align-items: flex-start;
    padding-bottom: 40px;
}

.tl-year {
    font-size: 14px;
    font-weight: 800;
    color: var(--green);
    padding-top: 2px;
}

.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--green);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.tl-dot.active {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(30, 58, 95, .18);
}

.tl-content {
    background: white;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.tl-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}

.tl-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    color: white;
    margin: 0 0 14px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .7);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: white;
}

/* CONTACT INFO STRIP */
.contact-info-strip {
    background: white;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 32px 24px;
    border-left: 1px solid rgba(0, 0, 0, .07);
    transition: background .2s;
}

.contact-info-card:last-child {
    border-left: none;
}

.contact-info-card:hover {
    background: #f8fafc;
}

.ci-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.ci-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.ci-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: block;
}

.ci-value:hover {
    color: var(--green);
}

.ci-sub {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

/* CONTACT MAIN */
.contact-main-section {
    padding: 80px 0 60px;
    background: #eef5fb;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.contact-form-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.req {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, .1);
    background: white;
}

.contact-submit-btn {
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    gap: 10px;
    border-radius: 14px;
}

.form-feedback {
    display: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.form-feedback.success {
    background: rgba(16, 185, 129, .1);
    color: #065f46;
}

.form-feedback.error {
    background: rgba(239, 68, 68, .1);
    color: #991b1b;
}

.contact-details-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-contacts-card,
.working-hours-card,
.social-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.quick-contacts-card h3,
.working-hours-card h3,
.social-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 18px;
}

.quick-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background .18s;
}

.quick-item:hover {
    background: #f4f8fb;
}

.quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-icon.emergency {
    background: rgba(239, 68, 68, .1);
}

.quick-icon.reception {
    background: rgba(59, 130, 246, .1);
}

.quick-icon.appointments {
    background: rgba(16, 185, 129, .1);
}

.quick-icon.email {
    background: rgba(245, 158, 11, .1);
}

.quick-text {
    flex: 1;
}

.quick-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.quick-text span {
    font-size: 12px;
    color: var(--muted);
}

.quick-arrow {
    font-size: 16px;
    color: var(--muted);
    transform: rotate(180deg);
    display: inline-block;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
}

.hours-row .day {
    color: var(--text);
    font-weight: 500;
}

.hours-row .time {
    font-weight: 700;
    color: var(--green);
}

.hours-row.holiday .time {
    color: var(--muted);
    font-weight: 400;
}

.hours-row.always-open {
    background: rgba(30, 58, 95, .07);
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f4f8fb;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: background .18s, transform .18s;
    border: 1px solid rgba(0, 0, 0, .06);
}

.social-link-btn:hover {
    background: #e8f1f9;
    transform: translateY(-2px);
}

.social-link-btn span:first-child {
    font-size: 20px;
}

.map-section {
    margin-top: 40px;
}

.map-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .departments-bento {
        grid-template-columns: 1fr 1fr;
    }

    .dept-main {
        grid-column: span 2;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .page-hero {
        padding: 130px 0 60px;
    }

    .departments-bento {
        grid-template-columns: 1fr;
    }

    .dept-main {
        grid-column: span 1;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        right: 64px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .social-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Single Doctor Profile - Redesigned
   ============================================ */

/* Hero Section */
.doctor-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    overflow: hidden;
}

.doctor-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, white 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, white 0.5px, transparent 0.5px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
}

.doctor-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.doctor-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 48px;
}

.doctor-hero-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.doctor-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.doctor-placeholder svg {
    width: 80%;
    height: 80%;
}

.doctor-hero-info {
    flex: 1;
    color: white;
}

.doctor-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.doctor-hero-info h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 12px;
    color: white;
    line-height: 1.2;
}

.doctor-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 12px;
    line-height: 1.6;
}

.doctor-academic {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 2vw, 17px);
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
}

.doctor-academic svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
}

.doctor-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.doctor-status-badge.available {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

.doctor-status-badge.unavailable {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.doctor-status-badge.available .status-dot {
    background: #60a5fa;
}

.doctor-status-badge.unavailable .status-dot {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Body Section */
.doctor-body-section {
    padding: 60px 0 100px;
    background: #f8f9fa;
}

.doctor-body-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.doctor-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Cards */
.doctor-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.operations-count {
    margin-right: auto;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* About Card */
.about-content {
    font-size: 16px;
    line-height: 1.9;
    color: #475569;
}

.about-content p {
    margin: 0 0 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Operations Grid */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.operation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.operation-item:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.operation-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.operation-icon svg {
    width: 16px;
    height: 16px;
}

.operation-item span {
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

/* Bio Card (legacy) */
.bio-content {
    font-size: 16px;
    line-height: 1.85;
    color: #475569;
}

.bio-content p {
    margin: 0 0 16px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.doctor-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.sidebar-label svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.work-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-day {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
    color: #1d4ed8;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.work-hours {
    font-size: 16px;
    font-weight: 600;
    color: #1d4ed8;
    margin: 0;
    padding: 12px 16px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 12px;
    border-right: 3px solid #2563eb;
}

.btn-appointment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-appointment svg {
    width: 20px;
    height: 20px;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
    .doctor-body-grid {
        grid-template-columns: 1fr;
    }

    .doctor-sidebar {
        position: static;
    }

    .operations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doctor-hero {
        padding: 120px 0 60px;
    }

    .doctor-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .doctor-hero-image {
        width: 160px;
        height: 160px;
    }

    .doctor-hero-info {
        text-align: center;
    }

    .doctor-academic {
        justify-content: center;
    }

    .doctor-status-badge {
        margin: 0 auto;
    }

    .doctor-card {
        padding: 24px;
    }

    .card-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .doctor-hero-info h1 {
        font-size: 28px;
    }

    .doctor-hero-subtitle {
        font-size: 16px;
    }

    .card-header {
        flex-wrap: wrap;
    }

    .operations-count {
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}


/* ==========================================================
   🏥 SINGLE SERVICE PAGE — صفحة الخدمة الفردية
   ========================================================== */

.service-hero-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.service-hero-icon .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.9);
}

.service-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

/* Layout */
.single-service-section {
    padding: 64px 0 100px;
    background: #f5f9fc;
}

.single-service-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Content */
.single-service-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-description {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-description h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.08);
}

.service-body {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(15, 23, 42, 0.78);
}

.service-body p { margin: 0 0 1.2em; }
.service-body h2, .service-body h3 { font-weight: 700; color: var(--text); margin-top: 1.6em; }
.service-body ul, .service-body ol { padding-right: 20px; margin: 0 0 1.2em; }
.service-body li { margin-bottom: 8px; }
.service-body img { max-width: 100%; border-radius: 16px; margin: 20px 0; }

.no-content-note {
    color: var(--muted);
    font-size: 15px;
    font-style: italic;
    padding: 20px;
    background: rgba(30, 58, 95, 0.04);
    border-radius: 12px;
    border-right: 3px solid var(--green);
}

/* Features Grid */
.service-features-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-features-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.08);
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(30, 58, 95, 0.04);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s;
}

.feature-item:hover {
    background: rgba(30, 58, 95, 0.09);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Sidebar */
.single-service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.service-sidebar-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-sidebar-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.service-sidebar-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.08);
}

.service-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.service-sidebar-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.service-sidebar-contact {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

/* Other Services List in Sidebar */
.other-services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.other-services-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.other-services-list li:last-child {
    border-bottom: none;
}

.other-services-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.other-services-list a:hover {
    color: var(--green);
}

.other-services-list .dashicons {
    color: var(--green);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.view-all-link {
    display: block;
    text-align: center;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    background: rgba(30, 58, 95, 0.05);
    transition: background 0.2s;
}

.view-all-link:hover {
    background: rgba(30, 58, 95, 0.10);
}

/* Responsive */
@media (max-width: 900px) {
    .single-service-layout {
        grid-template-columns: 1fr;
    }
    .single-service-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-description,
    .service-features-section {
        padding: 24px 20px;
    }
    .service-sidebar-card {
        padding: 20px;
    }
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   🏥 SINGLE SERVICE — ENRICHED SECTIONS
   ========================================================== */

/* ── Stats Bar ── */
.sv-stats-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #14527a 100%);
    padding: 32px 0;
}

.sv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.sv-stat-item {
    text-align: center;
    padding: 24px 20px;
    position: relative;
    color: white;
}

.sv-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.sv-stat-number {
    display: block;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #7ecfff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.sv-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
}

/* ── sv-card (shared wrapper) ── */
.sv-card {
    background: white;
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 0; /* gap handles spacing via flex */
}

.sv-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(30,58,95,0.08);
}

.sv-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.sv-card-icon {
    font-size: 22px;
    line-height: 1;
}

/* ── Steps ── */
.sv-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sv-step {
    display: grid;
    grid-template-columns: 48px 24px 1fr;
    gap: 0 16px;
    align-items: start;
    padding-bottom: 28px;
}

.sv-step--last {
    padding-bottom: 0;
    grid-template-columns: 48px 1fr;
}

.sv-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #14527a);
    color: white;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(30,58,95,0.25);
}

.sv-step-line {
    width: 2px;
    background: linear-gradient(to bottom, #1e3a5f44, transparent);
    margin: 48px auto 0;
    align-self: stretch;
}

.sv-step-body {
    padding-top: 10px;
}

.sv-step-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.sv-step-body p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Service Table ── */
.sv-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(30,58,95,0.10);
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sv-table th,
.sv-table td {
    padding: 14px 20px;
    text-align: right;
    border-bottom: 1px solid rgba(30,58,95,0.07);
}

.sv-table tr:last-child th,
.sv-table tr:last-child td {
    border-bottom: none;
}

.sv-table th {
    width: 180px;
    background: rgba(30,58,95,0.04);
    font-weight: 700;
    color: #1e3a5f;
    white-space: nowrap;
}

.sv-table td {
    color: var(--text);
}

.sv-table tr:hover td {
    background: rgba(30,58,95,0.02);
}

.sv-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sv-badge--green {
    background: rgba(16,185,129,0.12);
    color: #059669;
}

.sv-badge--blue {
    background: rgba(30,58,95,0.10);
    color: #1e3a5f;
}

/* ── Why Us Grid ── */
.sv-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sv-why-item {
    background: linear-gradient(135deg, rgba(30,58,95,0.04), rgba(30,58,95,0.01));
    border: 1px solid rgba(30,58,95,0.08);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sv-why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30,58,95,0.10);
}

.sv-why-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.sv-why-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.sv-why-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── FAQ ── */
.sv-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-faq-item {
    border: 1px solid rgba(30,58,95,0.10);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.sv-faq-item[open] {
    box-shadow: 0 6px 20px rgba(30,58,95,0.08);
}

.sv-faq-item summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30,58,95,0.03);
    transition: background 0.2s;
}

.sv-faq-item summary::before {
    content: '＋';
    font-size: 18px;
    color: #14527a;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
}

.sv-faq-item[open] summary::before {
    content: '－';
}

.sv-faq-item summary:hover {
    background: rgba(30,58,95,0.06);
}

.sv-faq-item p {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
    border-top: 1px solid rgba(30,58,95,0.06);
}

/* ── Emergency Sidebar Card ── */
.sv-emergency-card {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white;
    text-align: center;
    border: none !important;
}

.sv-emergency-card h3 {
    color: white !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.sv-emergency-card p {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin: 0 0 16px;
}

.sv-emergency-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.sv-emergency-btn {
    display: block;
    background: white;
    color: #dc2626;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sv-emergency-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .sv-stats-grid       { grid-template-columns: repeat(2, 1fr); }
    .sv-why-grid         { grid-template-columns: 1fr; }
    .sv-card             { padding: 24px 20px; }

    /* Services Page Responsiveness */
    .main-services       { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .other-services      { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .featured-service    { grid-template-columns: 1fr; gap: 40px; padding: 40px 30px; text-align: center; }
    .featured-stats      { grid-template-columns: repeat(3, 1fr); }
    .featured-badge      { left: 50%; transform: translateX(-50%); bottom: -10px; width: max-content; }
}

@media (max-width: 640px) {
    .sv-stats-grid         { grid-template-columns: repeat(2, 1fr); }
    .sv-stat-item          { padding: 16px 12px; }
    .sv-stat-number        { font-size: 28px; }
    .sv-step               { grid-template-columns: 40px 16px 1fr; }
    .sv-step--last         { grid-template-columns: 40px 1fr; }
    .sv-step-num           { width: 40px; height: 40px; font-size: 15px; }
    .sv-table th           { width: 120px; }

    /* Services Page Mobile Responsiveness */
    .main-services       { grid-template-columns: 1fr; gap: 16px; }
    .other-services      { grid-template-columns: 1fr; gap: 12px; }
    .featured-service    { padding: 30px 16px; border-radius: 24px; gap: 30px; }
    .featured-stats      { grid-template-columns: 1fr; gap: 16px; }
    .featured-badge      { position: static; transform: none; margin: 20px auto 0; width: max-content; display: inline-flex; }
    .featured-image img  { max-width: 100%; border-radius: 16px; }
}