        /* ============================================================
                   ROOT VARIABLES — LIGHT & DARK THEMES
                   ============================================================ */
        :root {
            /* Primary — Sky Blue / Cyan */
            --primary-50: #e6f7fd;
            --primary-100: #b3e8f8;
            --primary-200: #80d9f4;
            --primary-300: #4dc9ef;
            --primary-400: #1abaeb;
            --primary-500: #00b4d8;
            --primary-600: #0096b8;
            --primary-700: #00779a;
            --primary-800: #00597c;
            --primary-900: #003b5e;

            --cyan-light: #90e0ef;
            --cyan-mid: #00b4d8;
            --cyan-dark: #0077b6;

            /* Light theme defaults */
            --bg-body: #f0f8ff;
            --bg-surface: #ffffff;
            --bg-surface-2: #f5faff;
            --bg-card: #ffffff;
            --bg-card-hover: #f0f8ff;
            --text-primary: #0b1a2a;
            --text-secondary: #2c3e50;
            --text-muted: #5a6c7d;
            --border-color: rgba(0, 180, 216, 0.15);
            --shadow-color: rgba(0, 180, 216, 0.08);
            --glow-color: rgba(0, 180, 216, 0.2);
            --nav-bg: rgba(255, 255, 255, 0.85);
            --footer-bg: #e6f7fd;
            --input-bg: #f5faff;
            --card-shadow: 0 8px 40px rgba(0, 180, 216, 0.06);
        }

        /* Dark theme */
        html.dark {
            --bg-body: #080e1a;
            --bg-surface: #0d1a2b;
            --bg-surface-2: #122236;
            --bg-card: #0d1a2b;
            --bg-card-hover: #122236;
            --text-primary: #e8f4fd;
            --text-secondary: #b0cce0;
            --text-muted: #7a9bb5;
            --border-color: rgba(0, 180, 216, 0.12);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --glow-color: rgba(0, 180, 216, 0.15);
            --nav-bg: rgba(8, 14, 26, 0.92);
            --footer-bg: #080e1a;
            --input-bg: #0d1a2b;
            --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
        }

        /* ============================================================
                   RESET & BASE
                   ============================================================ */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.7;
            transition: background 0.4s ease, color 0.4s ease;
            overflow-x: hidden;
        }
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-body);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary-500);
            border-radius: 10px;
            box-shadow: 0 0 20px var(--glow-color);
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        ul {
            list-style: none;
        }
        img {
            max-width: 100%;
            display: block;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        section {
            padding: 100px 0;
            position: relative;
        }
        .section-badge {
            display: inline-block;
            padding: 6px 22px;
            border-radius: 50px;
            background: rgba(0, 180, 216, 0.10);
            color: var(--primary-500);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            border: 1px solid rgba(0, 180, 216, 0.15);
            margin-bottom: 14px;
            backdrop-filter: blur(10px);
        }
        .section-title {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 18px;
        }
        .section-title span {
            color: var(--primary-500);
        }
        .section-sub {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 600px;
        }
        .text-center {
            text-align: center;
        }
        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        /* Glow utilities */
        .glow-text {
            color: var(--primary-500);
            text-shadow: 0 0 40px var(--glow-color);
        }
        .glow-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 36px;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
            box-shadow: 0 0 30px var(--glow-color);
            position: relative;
            overflow: hidden;
        }
        .glow-btn:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 0 60px rgba(0, 180, 216, 0.4);
        }
        .glow-btn-outline {
            background: transparent;
            border: 2px solid var(--primary-500);
            color: var(--primary-500);
            box-shadow: 0 0 20px rgba(0, 180, 216, 0.08);
        }
        .glow-btn-outline:hover {
            background: var(--primary-500);
            color: #fff;
            box-shadow: 0 0 50px rgba(0, 180, 216, 0.3);
        }

        /* ============================================================
                   HEADER
                   ============================================================ */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.4s ease;
            background: transparent;
        }
        .header.scrolled {
            background: var(--nav-bg);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 10px 40px var(--shadow-color);
            padding: 10px 0;
        }
        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            gap: 16px;
        }
        .logo {
            font-size: 1.7rem;
            font-weight: 900;
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }
        .logo i {
            color: var(--primary-500);
            font-size: 1.9rem;
            filter: drop-shadow(0 0 20px var(--glow-color));
        }
        .logo span {
            color: var(--primary-500);
        }

        .nav-links {
            display: flex;
            gap: 28px;
            align-items: center;
        }
        .nav-links a {
            font-size: 0.92rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: color 0.3s;
            position: relative;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-500);
            transition: width 0.3s;
            box-shadow: 0 0 20px var(--glow-color);
        }
        .nav-links a:hover {
            color: var(--text-primary);
        }
        .nav-links a:hover::after {
            width: 100%;
        }
        .nav-links a.active {
            color: var(--primary-600);
            font-weight: 700;
        }
        .nav-links a.active::after {
            width: 100%;
        }
        .nav-links .nav-cta.active {
            outline: 2px solid var(--primary-300);
            outline-offset: 2px;
        }
        .nav-links .nav-cta {
            padding: 10px 24px;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: #fff !important;
            font-weight: 600;
            box-shadow: 0 0 30px var(--glow-color);
            transition: all 0.3s;
        }
        .nav-links .nav-cta::after {
            display: none;
        }
        .nav-links .nav-cta:hover {
            transform: scale(1.05);
            box-shadow: 0 0 50px rgba(0, 180, 216, 0.4);
        }

        /* Theme toggle */
        .theme-toggle {
            background: var(--bg-surface-2);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 1.1rem;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .theme-toggle:hover {
            border-color: var(--primary-500);
            color: var(--primary-500);
            box-shadow: 0 0 30px var(--glow-color);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 4px;
            background: none;
            border: none;
            -webkit-appearance: none;
            appearance: none;
        }
        .hamburger span {
            width: 28px;
            height: 2.5px;
            background: var(--text-primary);
            border-radius: 4px;
            transition: all 0.3s;
        }
        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* ============================================================
                   HERO
                   ============================================================ */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 80px;
            background: var(--bg-body);
        }
        .hero .container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        .hero-content {
            position: relative;
            z-index: 2;
        }
        .hero-badge {
            display: inline-block;
            padding: 8px 24px;
            border-radius: 50px;
            background: rgba(0, 180, 216, 0.08);
            border: 1px solid rgba(0, 180, 216, 0.15);
            color: var(--primary-500);
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 22px;
            backdrop-filter: blur(10px);
        }
        .hero-brand {
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }
        .hero h1 {
            font-size: 4rem;
            font-weight: 900;
            line-height: 1.08;
            margin-bottom: 18px;
        }
        .hero h1 .highlight {
            background: linear-gradient(135deg, var(--primary-400), var(--primary-700));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 60px var(--glow-color);
        }
        .hero p {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 500px;
            margin-bottom: 30px;
        }
        .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }
        .hero-stats {
            display: flex;
            gap: 48px;
            margin-top: 44px;
        }
        .hero-stats .stat h3 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-primary);
        }
        .hero-stats .stat h3 .glow-text {
            font-weight: 900;
        }
        .hero-stats .stat p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin: 0;
        }

        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .hero-img-wrapper {
            width: 100%;
            max-width: 520px;
            border-radius: 32px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            box-shadow: 0 30px 80px var(--shadow-color);
            position: relative;
        }
        .hero-img-wrapper img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            display: block;
        }
        /* hero slider */
        .hero-slider { position: relative; width: 100%; height: 400px; }
        .hero-slide {
            position: absolute; inset: 0; margin: 0; opacity: 0;
            transition: opacity 1s ease; pointer-events: none;
        }
        .hero-slide.on { opacity: 1; pointer-events: auto; }
        .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .hero-slide figcaption {
            position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
            color: #fff; font-size: .82rem; font-weight: 600;
            background: linear-gradient(transparent, rgba(0,0,0,.6));
        }
        .hero-dots {
            position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
            display: flex; gap: 7px; justify-content: center;
        }
        .hero-dots button {
            width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
            background: rgba(255,255,255,.5); transition: all .3s;
        }
        .hero-dots button.on { width: 22px; border-radius: 6px; background: #fff; }
        .hero-img-wrapper .glow-ring {
            position: absolute;
            inset: -4px;
            border-radius: 34px;
            background: linear-gradient(135deg, var(--primary-400), var(--primary-700), var(--primary-400));
            opacity: 0.15;
            z-index: -1;
            filter: blur(20px);
            animation: pulseRing 4s ease-in-out infinite;
        }
        @keyframes pulseRing {
            0%,
            100% {
                opacity: 0.1;
                transform: scale(1);
            }
            50% {
                opacity: 0.25;
                transform: scale(1.03);
            }
        }

        .floating-card {
            position: absolute;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 14px 22px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 20px 60px var(--shadow-color);
            animation: floatY 6s ease-in-out infinite;
        }
        .floating-card:nth-child(2) {
            top: 5%;
            right: -8%;
            animation-delay: 1s;
        }
        .floating-card:nth-child(3) {
            bottom: 10%;
            left: -10%;
            animation-delay: 2s;
        }
        .floating-card i {
            font-size: 1.3rem;
            color: var(--primary-500);
        }
        .floating-card span {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-primary);
        }
        @keyframes floatY {
            0%,
            100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-14px);
            }
        }

        /* ============================================================
                   ABOUT
                   ============================================================ */
        .about {
            background: var(--bg-surface);
            transition: background 0.4s ease;
        }
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            margin-top: 30px;
        }
        .about-image {
            border-radius: 28px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            box-shadow: 0 20px 60px var(--shadow-color);
        }
        .about-image img {
            width: 100%;
            height: 380px;
            object-fit: cover;
        }
        .about-content h3 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 16px;
        }
        .about-content p {
            color: var(--text-muted);
            margin-bottom: 18px;
        }
        .about-features {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-top: 22px;
        }
        .about-features li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.95rem;
            color: var(--text-secondary);
        }
        .about-features li i {
            color: var(--primary-500);
            font-size: 1.1rem;
        }

        /* ============================================================
                   BRANCHES
                   ============================================================ */
        .branches {
            background: var(--bg-body);
            transition: background 0.4s ease;
        }
        .branches-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 28px;
            margin-top: 44px;
        }
        .about-branches { padding: 40px 0 20px; }
        .about-branches .branches-grid { margin-top: 24px; }
        .branch-card .branch-card-main { display: block; }
        .branch-card-map { display: block; border: 0; border-radius: 12px; margin: 12px 0 4px; }
        .branch-dir {
            display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
            font-size: .82rem; font-weight: 700; color: var(--primary-600);
        }
        .branch-dir:hover { color: var(--primary-500); }
        .branch-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 32px 28px;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(40px);
            box-shadow: var(--card-shadow);
        }
        .branch-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .branch-card:hover {
            transform: translateY(-8px);
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 40px var(--glow-color);
        }
        .branch-card .icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: rgba(0, 180, 216, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            color: var(--primary-500);
            margin-bottom: 18px;
            border: 1px solid var(--border-color);
            transition: all 0.4s;
        }
        .branch-card:hover .icon {
            background: rgba(0, 180, 216, 0.15);
            box-shadow: 0 0 40px var(--glow-color);
        }
        .branch-card h3 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .branch-card .address {
            color: var(--text-muted);
            font-size: 0.92rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .branch-card .address i {
            color: var(--primary-500);
            width: 18px;
        }
        .branch-card .phone {
            color: var(--text-muted);
            font-size: 0.92rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .branch-card .phone i {
            color: var(--primary-500);
            width: 18px;
        }
        .branch-card .branch-tag {
            display: inline-block;
            margin-top: 14px;
            padding: 4px 16px;
            border-radius: 50px;
            background: rgba(0, 180, 216, 0.08);
            color: var(--primary-500);
            font-size: 0.7rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
        }

        /* ============================================================
                   SERVICES (with tabs)
                   ============================================================ */
        .services {
            background: var(--bg-surface);
            transition: background 0.4s ease;
        }
        .services-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin: 40px 0 30px;
        }
        .services-tabs button {
            padding: 10px 26px;
            border-radius: 50px;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Inter', sans-serif;
        }
        .services-tabs button:hover {
            border-color: var(--primary-500);
            color: var(--primary-500);
        }
        .services-tabs button.active {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: #fff;
            border-color: var(--primary-500);
            box-shadow: 0 0 30px var(--glow-color);
        }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 28px;
        }
        .service-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 36px 28px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(40px);
            box-shadow: var(--card-shadow);
        }
        .service-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .service-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary-500), var(--primary-600), transparent);
            transform: scaleX(0);
            transition: transform 0.6s;
        }
        .service-card:hover::after {
            transform: scaleX(1);
        }
        .service-card:hover {
            transform: translateY(-8px);
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color);
        }
        .service-card .icon {
            font-size: 2.8rem;
            color: var(--primary-500);
            margin-bottom: 18px;
            display: inline-block;
            filter: drop-shadow(0 0 30px var(--glow-color));
        }
        .service-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        .service-card p {
            color: var(--text-muted);
            font-size: 0.92rem;
        }

        /* ============================================================
                   WHY CHOOSE US
                   ============================================================ */
        .why-choose {
            background: var(--bg-body);
            transition: background 0.4s ease;
        }
        .why-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 30px;
            margin-top: 44px;
        }
        .why-item {
            text-align: center;
            padding: 32px 20px;
            background: var(--bg-card);
            border-radius: 24px;
            border: 1px solid var(--border-color);
            transition: all 0.4s;
            box-shadow: var(--card-shadow);
            opacity: 0;
            transform: translateY(30px);
        }
        .why-item.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .why-item:hover {
            transform: translateY(-6px);
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 40px var(--glow-color);
        }
        .why-item .icon {
            font-size: 2.6rem;
            color: var(--primary-500);
            margin-bottom: 14px;
            display: inline-block;
        }
        .why-item h4 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .why-item p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* ============================================================
                   TEAM
                   ============================================================ */
        .team {
            background: var(--bg-surface);
            transition: background 0.4s ease;
        }
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
            margin-top: 44px;
        }
        .team-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 32px 20px 24px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            box-shadow: var(--card-shadow);
            opacity: 0;
            transform: translateY(40px);
        }
        .team-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .team-card:hover {
            transform: translateY(-6px);
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 30px var(--glow-color);
        }
        .team-card .avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 16px;
            overflow: hidden;
            border: 3px solid var(--border-color);
            transition: all 0.4s;
        }
        .team-card .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
        }
        .team-card:hover .avatar {
            border-color: var(--primary-500);
            box-shadow: 0 0 40px var(--glow-color);
        }
        .team-card h4 {
            font-size: 1.1rem;
            font-weight: 700;
        }
        .team-card .role {
            color: var(--primary-500);
            font-size: 0.85rem;
            font-weight: 500;
        }
        .team-card .bio {
            color: var(--text-muted);
            font-size: 0.88rem;
            margin-top: 8px;
        }

        /* ============================================================
                   TESTIMONIALS
                   ============================================================ */
        .testimonials {
            background: var(--bg-body);
            transition: background 0.4s ease;
        }
        .testimonial-slider {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 28px;
            margin-top: 44px;
        }
        .testimonial-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 30px 28px;
            transition: all 0.4s;
            box-shadow: var(--card-shadow);
            opacity: 0;
            transform: translateY(30px);
        }
        .testimonial-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .testimonial-card:hover {
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 30px var(--glow-color);
        }
        .testimonial-card .stars {
            color: #fbbf24;
            font-size: 1rem;
            margin-bottom: 10px;
            letter-spacing: 2px;
        }
        .testimonial-card blockquote {
            font-size: 0.98rem;
            color: var(--text-secondary);
            font-style: italic;
            margin-bottom: 14px;
            line-height: 1.7;
        }
        .testimonial-card .author {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .testimonial-card .author .avatar-sm {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--border-color);
        }
        .testimonial-card .author .avatar-sm img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .testimonial-card .author .info h5 {
            font-size: 0.95rem;
            font-weight: 600;
        }
        .testimonial-card .author .info span {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* ---- testimonial carousel ---- */
        .tcar { position: relative; margin-top: 42px; }
        .tcar-viewport { overflow: hidden; padding: 6px 2px 8px; }
        .tcar-track {
            display: flex; gap: 24px;
            transition: transform .6s cubic-bezier(.22, .61, .36, 1);
            will-change: transform;
        }
        .tcar.dragging .tcar-track { transition: none; }
        .tcar-slide { flex: 0 0 100%; min-width: 0; }
        @media (min-width: 700px)  { .tcar-slide { flex-basis: calc(50% - 12px); } }
        @media (min-width: 1050px) { .tcar-slide { flex-basis: calc(33.333% - 16px); } }
        .tcar-slide .testimonial-card {
            opacity: 1; transform: none; height: 100%;
            display: flex; flex-direction: column;
            transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
        }
        .tcar-slide .testimonial-card blockquote { flex: 1 1 auto; }
        .tcar.fx .tcar-slide:not(.is-active) .testimonial-card { opacity: .45; transform: scale(.93); }
        .tcar-nav {
            position: absolute; top: calc(50% - 22px); width: 44px; height: 44px;
            border-radius: 50%; border: 1px solid var(--border-color);
            background: var(--bg-card); color: var(--text-primary);
            display: flex; align-items: center; justify-content: center;
            font-size: .9rem; cursor: pointer; z-index: 3;
            box-shadow: var(--card-shadow); transition: all .2s;
        }
        .tcar-nav:hover { background: var(--primary-500); color: #fff; border-color: transparent;
            box-shadow: 0 0 26px var(--glow-color); }
        .tcar-nav.prev { left: -8px; }
        .tcar-nav.next { right: -8px; }
        @media (max-width: 560px) { .tcar-nav { display: none; } }
        .tcar-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
        .tcar-dots button {
            width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
            background: var(--border-color); cursor: pointer; transition: all .3s;
        }
        .tcar-dots button.on {
            width: 26px; border-radius: 8px;
            background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
        }
        @media (prefers-reduced-motion: reduce) {
            .tcar-track { transition: none; }
            .tcar.fx .tcar-slide:not(.is-active) .testimonial-card { opacity: 1; transform: none; }
        }

        /* ============================================================
                   BLOG / ARTICLES
                   ============================================================ */
        .blog {
            background: var(--bg-surface);
            transition: background 0.4s ease;
        }
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 28px;
            margin-top: 44px;
        }
        .blog-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.4s;
            box-shadow: var(--card-shadow);
            opacity: 0;
            transform: translateY(30px);
        }
        .blog-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .blog-card:hover {
            transform: translateY(-6px);
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 30px var(--glow-color);
        }
        .blog-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .blog-card .body {
            padding: 24px 24px 28px;
        }
        .blog-card .body .tag {
            display: inline-block;
            padding: 3px 14px;
            border-radius: 50px;
            background: rgba(0, 180, 216, 0.08);
            color: var(--primary-500);
            font-size: 0.7rem;
            font-weight: 600;
            margin-bottom: 10px;
            border: 1px solid var(--border-color);
        }
        .blog-card .body h4 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.3;
        }
        .blog-card .body p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .blog-card .body .meta {
            margin-top: 14px;
            font-size: 0.8rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .blog-card .body .meta i {
            color: var(--primary-500);
        }

        /* ============================================================
                   FAQ — Alpine.js Accordion
                   ============================================================ */
        .faq {
            background: var(--bg-body);
            transition: background 0.4s ease;
        }
        .faq-list {
            max-width: 760px;
            margin: 40px auto 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .faq-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: var(--card-shadow);
        }
        .faq-item:hover {
            border-color: var(--primary-500);
        }
        .faq-item .question {
            padding: 18px 24px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            color: var(--text-primary);
            transition: background 0.3s;
            user-select: none;
        }
        .faq-item .question:hover {
            background: rgba(0, 180, 216, 0.03);
        }
        .faq-item .question i {
            color: var(--primary-500);
            transition: transform 0.4s;
            font-size: 1.1rem;
        }
        .faq-item .question i.rotated {
            transform: rotate(180deg);
        }
        .faq-item .answer {
            padding: 0 24px 20px;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.7;
        }

        /* ============================================================
                   APPOINTMENT
                   ============================================================ */
        .appointment {
            background: var(--bg-surface);
            transition: background 0.4s ease;
        }
        .appointment-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: start;
            margin-top: 44px;
        }
        .appointment-info h3 {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 14px;
        }
        .appointment-info p {
            color: var(--text-muted);
            margin-bottom: 22px;
        }
        .appointment-info .info-item {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 10px;
            color: var(--text-secondary);
        }
        .appointment-info .info-item i {
            color: var(--primary-500);
            width: 24px;
            font-size: 1.1rem;
        }
        .appointment-form {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 40px 36px;
            box-shadow: var(--card-shadow);
            transition: all 0.4s;
        }
        .appointment-form:hover {
            border-color: var(--primary-500);
            box-shadow: 0 20px 60px var(--shadow-color), 0 0 30px var(--glow-color);
        }
        .appointment-form .form-group {
            margin-bottom: 18px;
        }
        .appointment-form label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-secondary);
        }
        .appointment-form input,
        .appointment-form select,
        .appointment-form textarea {
            width: 100%;
            padding: 13px 18px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            transition: all 0.3s;
            outline: none;
        }
        .appointment-form input:focus,
        .appointment-form select:focus,
        .appointment-form textarea:focus {
            border-color: var(--primary-500);
            box-shadow: 0 0 30px var(--glow-color);
            background: var(--bg-card);
        }
        .appointment-form textarea {
            resize: vertical;
            min-height: 90px;
        }
        .appointment-form .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .appointment-form .glow-btn {
            width: 100%;
            padding: 16px;
            font-size: 1.05rem;
            justify-content: center;
        }

        /* ============================================================
                   CONTACT
                   ============================================================ */
        .contact {
            background: var(--bg-body);
            transition: background 0.4s ease;
        }
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            margin-top: 44px;
        }
        .contact-map {
            border-radius: 24px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            height: 100%;
            min-height: 320px;
            background: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: var(--card-shadow);
        }
        .contact-map img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            min-height: 320px;
        }
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .contact-details .detail {
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 18px 24px;
            background: var(--bg-card);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            box-shadow: var(--card-shadow);
        }
        .contact-details .detail:hover {
            border-color: var(--primary-500);
            box-shadow: 0 10px 40px var(--shadow-color), 0 0 20px var(--glow-color);
        }
        .contact-details .detail i {
            font-size: 1.6rem;
            color: var(--primary-500);
            width: 44px;
            text-align: center;
        }
        .contact-details .detail .text h5 {
            font-weight: 600;
            font-size: 1rem;
        }
        .contact-details .detail .text p {
            color: var(--text-muted);
            font-size: 0.92rem;
        }

        /* ============================================================
                   FOOTER
                   ============================================================ */
        .footer {
            background: var(--footer-bg);
            padding: 60px 0 30px;
            border-top: 1px solid var(--border-color);
            transition: background 0.4s ease;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-brand .logo {
            margin-bottom: 14px;
        }
        .footer-brand p {
            color: var(--text-muted);
            font-size: 0.92rem;
            max-width: 300px;
        }
        .footer-brand .socials {
            display: flex;
            gap: 12px;
            margin-top: 18px;
        }
        .footer-brand .socials a {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(0, 180, 216, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all 0.3s;
            border: 1px solid var(--border-color);
        }
        .footer-brand .socials a:hover {
            background: var(--primary-500);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 0 30px var(--glow-color);
            border-color: var(--primary-500);
        }
        .footer h5 {
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 14px;
            color: var(--text-primary);
        }
        .footer ul li {
            margin-bottom: 8px;
        }
        .footer ul li a {
            color: var(--text-muted);
            font-size: 0.9rem;
            transition: color 0.3s;
        }
        .footer ul li a:hover {
            color: var(--primary-500);
        }
        .footer-bottom {
            border-top: 1px solid var(--border-color);
            padding-top: 24px;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* ============================================================
                   RESPONSIVE
                   ============================================================ */
        /* nav collapse handled by the @media (max-width: 1180px) block near EOF */
        @media (max-width: 1024px) {
            .hero h1 {
                font-size: 3.2rem;
            }
            .hero .container {
                gap: 40px;
            }
            .hero-img-wrapper img {
                height: 320px;
            }
            .floating-card {
                display: none;
            }
            .about-grid {
                grid-template-columns: 1fr;
            }
            .appointment-wrapper {
                grid-template-columns: 1fr;
            }
            .contact-grid {
                grid-template-columns: 1fr;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 768px) {
            .hero .container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero h1 {
                font-size: 2.4rem;
            }
            .hero p {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-actions {
                justify-content: center;
            }
            .hero-stats {
                justify-content: center;
                gap: 30px;
            }
            .hero-img-wrapper {
                max-width: 400px;
                margin: 0 auto;
            }
            .hero-img-wrapper img {
                height: 260px;
            }
            .section-title {
                font-size: 2rem;
            }
            .about-features {
                grid-template-columns: 1fr;
            }
            .appointment-form .form-row {
                grid-template-columns: 1fr;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 28px;
            }
            .services-tabs button {
                font-size: 0.8rem;
                padding: 8px 18px;
            }
        }
        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.9rem;
            }
            .hero-stats {
                flex-direction: column;
                gap: 10px;
            }
            .hero-stats .stat h3 {
                font-size: 1.6rem;
            }
            .section-title {
                font-size: 1.6rem;
            }
            .branch-card {
                padding: 24px 20px;
            }
            .service-card {
                padding: 28px 20px;
            }
            .appointment-form {
                padding: 28px 20px;
            }
            .contact-details .detail {
                padding: 14px 18px;
            }
        }

        /* ============================================================
                   UTILITY — Image placeholders with gradient fallback
                   ============================================================ */
        .img-placeholder {
            background: linear-gradient(135deg, var(--primary-100), var(--primary-300));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-700);
            font-weight: 600;
        }
        .dark .img-placeholder {
            background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
            color: var(--primary-200);
        }

        /* ============================================================
                   ANIMATION HELPERS
                   ============================================================ */
        .fade-up {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
        }
        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

/* ============================================================
           MULTI-PAGE ADDITIONS
           ============================================================ */
main { min-height: 60vh; }
.page-hero {
    padding: 150px 0 70px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.page-hero .section-title { margin-bottom: 12px; }
.page-hero .section-sub { margin-left: auto; margin-right: auto; }
.breadcrumb {
    display: flex; gap: 8px; justify-content: center;
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary-500); }

.card-link { display: block; color: inherit; }
.branch-card, .service-card, .why-item, .team-card, .testimonial-card, .blog-card { opacity: 1; transform: none; }

.detail-wrap {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start;
    margin-top: 44px;
}
.detail-wrap .media {
    border-radius: 24px; overflow: hidden; border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}
.detail-wrap .media img { width: 100%; height: 340px; object-fit: cover; }
.detail-body { line-height: 1.8; color: var(--text-secondary); }
.detail-body h1, .detail-body h2 { color: var(--text-primary); margin: 22px 0 12px; }
.sidecard {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 26px; box-shadow: var(--card-shadow);
}
.sidecard h4 { margin-bottom: 12px; }
.sidecard .row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--text-muted); font-size: 0.92rem; }
.sidecard .row i { color: var(--primary-500); width: 18px; margin-top: 4px; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0; }
.filter-pills a {
    padding: 9px 22px; border-radius: 50px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-weight: 600; font-size: 0.88rem;
    transition: all 0.3s;
}
.filter-pills a.active, .filter-pills a:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff; border-color: var(--primary-500);
}

.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 50px; }
.pagination a, .pagination span {
    padding: 10px 20px; border-radius: 12px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-weight: 600; font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--primary-500); color: var(--primary-500); }
.pagination .current { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }

.field-error { color: #ef4444; font-size: 0.8rem; margin-top: 4px; }
.alert-error {
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; padding: 12px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem;
}
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.6rem; color: var(--primary-500); margin-bottom: 14px; display: block; }

@media (max-width: 1024px) {
    .detail-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS + FACILITIES (home page)
   ============================================================ */
.process { background: var(--bg-body); }
.process-grid {
    display: grid; gap: 22px; margin-top: 46px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.process-step {
    position: relative; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 32px 22px 24px; text-align: center; box-shadow: var(--card-shadow);
}
.pstep-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: .9rem; color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    box-shadow: 0 0 22px var(--glow-color);
}
.process-step i { font-size: 1.5rem; color: var(--primary-500); margin-bottom: 12px; display: block; }
.process-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: .86rem; color: var(--text-muted); line-height: 1.55; }

.fac-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 8px; }
.fac-tabs button {
    padding: 8px 18px; border-radius: 50px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-weight: 600;
    font-size: .82rem; cursor: pointer; transition: all .25s;
}
.fac-tabs button:hover { border-color: var(--primary-500); color: var(--primary-500); }
.fac-tabs button.on {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff; border-color: transparent;
}
.fac-grid {
    display: grid; gap: 22px; margin-top: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.fac-card {
    margin: 0; border-radius: 20px; overflow: hidden; background: var(--bg-card);
    border: 1px solid var(--border-color); box-shadow: var(--card-shadow);
    transition: transform .35s, box-shadow .35s;
}
.fac-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px var(--shadow-color); }
.fac-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.fac-card figcaption { padding: 16px 18px 18px; }
.fac-kind {
    display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--primary-600); background: rgba(0,180,216,.10);
    padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
}
.fac-card figcaption strong { display: block; font-size: 1rem; font-weight: 700; }
.fac-card figcaption small { display: block; margin-top: 4px; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   NAV — brand + CTA robustness
   ============================================================ */
.header .container { flex-wrap: nowrap; }
.logo {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.12;
    max-width: 340px;
    flex-shrink: 1;
    gap: 10px;
}
.logo i { font-size: 1.45rem; flex-shrink: 0; }
.logo-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 8px var(--glow-color)); }
.logo-name { color: var(--text-primary); }
.footer-brand .logo-img { width: 40px; height: 40px; }
@media (max-width: 600px) { .logo-name { display: none; } .logo-img { width: 40px; height: 40px; } }
.nav-links { gap: 22px; flex-wrap: nowrap; }
.nav-links > li { white-space: nowrap; }
.nav-links .nav-cta { white-space: nowrap; padding: 9px 20px; }
.nav-links .nav-staff {
    font-size: .82rem; color: var(--text-muted);
    border: 1px solid var(--border-color); padding: 7px 14px; border-radius: 50px;
}
.nav-links .nav-staff::after { display: none; }
.nav-links .nav-staff:hover { color: var(--primary-500); border-color: var(--primary-500); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

@media (max-width: 1180px) {
    .nav-links { display: none; flex-direction: column; align-items: stretch; text-align: left;
        background: var(--nav-bg); backdrop-filter: blur(20px); position: absolute;
        top: calc(100% + 12px); left: 0; right: 0; width: 100%; padding: 20px 24px; gap: 14px;
        border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 20px 50px var(--shadow-color); }
    .nav-links.open { display: flex; }
    .nav-links .nav-cta, .nav-links .nav-staff { text-align: center; }
    .hamburger { display: flex; }
    .logo { font-size: 1.15rem; max-width: 60vw; }
}

/* ============================================================
   DOCTORS — home section, list & detail
   ============================================================ */
.muted { color: var(--text-muted); }

/* ============================================================
   SLOT GRID — weekly calendar (doctor pages + booking)
   ============================================================ */
.slotgrid { margin-top: 18px; }
.sg-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.sg-range { font-weight: 800; font-size: .95rem; color: var(--text-primary); min-width: 150px; text-align: center; }
.sg-nav {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-primary); cursor: pointer; font-size: .85rem;
}
.sg-nav:hover:not(:disabled) { border-color: var(--primary-500); color: var(--primary-600); }
.sg-nav:disabled { opacity: .35; cursor: not-allowed; }
.sg-branches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.sg-bchip {
    font-size: .78rem; font-weight: 700; padding: 6px 14px 6px 26px; border-radius: 999px;
    position: relative; cursor: pointer; transition: all .15s;
    color: var(--text-secondary); background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
}
.sg-bchip[data-b="all"] { padding-left: 14px; }
.sg-bchip::before { content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--primary-500)); }
.sg-bchip[data-b="all"]::before { display: none; }
.sg-bchip:hover { border-color: var(--c, var(--primary-500)); }
.sg-bchip.on {
    color: #fff; border-color: transparent;
    background: var(--c, linear-gradient(135deg, var(--primary-500), var(--primary-600)));
}
.sg-bchip.on::before { background: #fff; }
.sg-addr { text-align: center; font-size: .84rem; color: var(--text-secondary); margin-bottom: 12px; }
.sg-addr strong { color: var(--text-primary); }
.sg-scroll { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 14px; }
.sg-table { border-collapse: separate; border-spacing: 4px; width: 100%; padding: 4px; }
.sg-table th {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 8px 6px; border-radius: 8px; white-space: nowrap;
}
.sg-table th .sg-wd { display: block; opacity: .85; }
.sg-table th .sg-dt { display: block; font-size: .82rem; }
.sg-table td { padding: 0; }
.sg-tcol { background: var(--bg-surface-2); font-size: .75rem; font-weight: 700; color: var(--text-muted);
    white-space: nowrap; padding: 6px 10px; border-radius: 8px; text-align: center; }
th.sg-tcol { background: var(--bg-surface-2); color: var(--text-muted); }
.sg-cell {
    display: block; width: 100%; min-width: 74px; padding: 9px 6px; border-radius: 8px;
    font-size: .8rem; font-weight: 700; text-align: center; border: 0; line-height: 1;
}
.sg-cell.off { background: var(--bg-surface-2); color: transparent; }
.sg-cell.taken { background: #9ca3af22; color: var(--text-muted); text-decoration: line-through; }
.sg-cell.open { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.sg-cell.can { cursor: pointer; transition: all .15s; }
.sg-cell.can:hover { background: var(--c); color: #fff; }
.sg-cell.on { background: var(--c); color: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.slotgrid.sg-loading { opacity: .5; pointer-events: none; }
.sg-empty { text-align: center; padding: 20px; }

/* ============================================================
   BLOG — list, search, article, likes, comments, embeds
   ============================================================ */
.bp-search { position: relative; max-width: 520px; margin: 22px auto 0; display: flex; align-items: center; }
.bp-search > i { position: absolute; left: 16px; color: var(--text-muted); pointer-events: none; }
.bp-search input[type="search"] {
    flex: 1; padding: 12px 14px 12px 42px; border: 1px solid var(--border-color);
    border-radius: 50px 0 0 50px; background: var(--bg-card); color: var(--text-primary); font-size: .95rem;
}
.bp-search button {
    padding: 12px 20px; border: 0; border-radius: 0 50px 50px 0; cursor: pointer; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}
#bp-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; }
.bp-suggest {
    list-style: none; margin: 0; padding: 6px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 18px 44px var(--shadow-color);
}
.bp-suggest li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--text-primary); }
.bp-suggest li a:hover { background: rgba(0,180,216,.1); color: var(--primary-600); }
.bp-suggest li.muted { padding: 9px 12px; font-size: .88rem; }

.bp-layout { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .bp-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.bp-side { display: flex; flex-direction: column; gap: 18px; }
.bp-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px; }
.bp-widget h4 { font-weight: 800; margin-bottom: 10px; font-size: 1rem; }
.bp-widget ul { list-style: none; margin: 0; padding: 0; }
.bp-widget li { padding: 7px 0; border-bottom: 1px solid var(--border-color); font-size: .9rem; }
.bp-widget li:last-child { border: 0; }
.bp-widget li a { color: var(--text-secondary); }
.bp-widget li a:hover { color: var(--primary-600); }
.bp-cta p { font-size: .86rem; color: var(--text-muted); margin: 4px 0 12px; }

.blogpost .bp-hero { margin: 0 0 26px; border-radius: 20px; overflow: hidden; }
.blogpost .bp-hero img { width: 100%; display: block; }
.bp-lead { font-size: 1.15rem; color: var(--text-primary); font-weight: 500; }
.bp-body { font-size: 1.02rem; line-height: 1.8; }
.bp-body img { border-radius: 14px; margin: 18px 0; }

.embed-yt { position: relative; padding-bottom: 56.25%; height: 0; margin: 22px 0; border-radius: 14px; overflow: hidden; }
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-embed { margin: 22px 0; }
.bp-embed figcaption { font-size: .84rem; color: var(--text-muted); margin-top: 6px; text-align: center; }
.bp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.bp-gallery figure { margin: 0; }
.bp-gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.bp-gallery figcaption { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

.bp-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.bp-like-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px;
    border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; font-weight: 700; font-size: .9rem; transition: all .2s;
}
.bp-like-btn:hover { border-color: #ef4444; color: #ef4444; }
.bp-like-btn.on { background: rgba(239,68,68,.1); border-color: #ef4444; color: #ef4444; }
.bp-share { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text-muted); }
.bp-share a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; border: 1px solid var(--border-color); color: var(--text-secondary); }
.bp-share a:hover { background: var(--primary-500); color: #fff; border-color: transparent; }

.bp-comments { margin-top: 10px; }
.bp-cform { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 16px; margin: 14px 0 24px; }
.bp-cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 560px) { .bp-cform-row { grid-template-columns: 1fr; } }
.bp-cform input, .bp-cform textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border-color); border-radius: 9px;
    background: var(--bg-surface-2); color: var(--text-primary); font-size: .9rem; font-family: inherit;
}
.bp-cform textarea { margin-bottom: 10px; resize: vertical; }
.bp-cform .err { color: #ef4444; font-size: .8rem; margin: 2px 0 8px; }
.bp-cdone { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35);
    color: #059669; border-radius: 12px; padding: 14px 16px; font-size: .9rem; }

.bp-comment { padding: 14px 0; border-top: 1px solid var(--border-color); }
.bp-comment .bp-comment { margin-left: 20px; padding-left: 16px; border-left: 2px solid var(--border-color); border-top: 0; }
.bp-c-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.bp-c-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: .78rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }
.bp-c-body { margin: 6px 0 4px; font-size: .92rem; line-height: 1.65; color: var(--text-secondary); }
.bp-c-reply { background: none; border: 0; color: var(--primary-600); font-weight: 700; font-size: .8rem; cursor: pointer; padding: 0; }
.bp-c-replybox { display: none; margin-top: 10px; }
.bp-c-replybox.open { display: block; }

/* Rich-text content (doctor bio / education, from the dashboard editor) */
.rich-content { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.rich-content h2, .rich-content h3 { color: var(--text-primary); font-weight: 800;
    margin: 18px 0 8px; font-size: 1.15rem; }
.rich-content p { margin: 0 0 12px; }
.rich-content ul, .rich-content ol { margin: 0 0 12px; padding-left: 22px; }
.rich-content li { margin: 4px 0; }
.rich-content a { color: var(--primary-600); text-decoration: underline; }
.rich-content strong { color: var(--text-primary); }

/* Compact doctor card — schedule grouped by branch (_doc_card.html) */
.doc-cards { display: grid; gap: 16px; margin-top: 32px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.doc-card {
    display: flex; flex-direction: column; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 18px; padding: 16px;
    box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px var(--shadow-color); }
.doc-card-top { display: flex; gap: 12px; align-items: center; }
.doc-card-top .doc-photo.lg { width: 68px; height: 68px; border-radius: 14px; font-size: 1.1rem; }
.doc-card-id { min-width: 0; }
.doc-card h3 { font-size: 1.04rem; font-weight: 800; line-height: 1.2; }
.doc-card .doc-spec { color: var(--primary-600); font-weight: 600; font-size: .8rem; margin-top: 1px; }
.doc-card .doc-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 4px;
    font-size: .74rem; color: var(--text-muted); }
.doc-locs { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.doc-loc-name { display: flex; align-items: center; gap: 5px; font-size: .8rem;
    font-weight: 700; color: var(--text-primary); }
.doc-loc-name i { color: var(--primary-500); font-size: .72rem; }
.doc-loc-times { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; padding-left: 17px; }
.doc-loc-times span { font-size: .72rem; background: rgba(0,180,216,.09); color: var(--primary-700);
    padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.doc-loc-empty { margin-top: 12px; font-size: .8rem; color: var(--text-muted); }
.doc-card-link { margin-top: auto; padding-top: 13px; font-size: .82rem; font-weight: 700;
    color: var(--primary-600); }
.doc-card-link i { margin-left: 4px; transition: transform .2s; }
.doc-card:hover .doc-card-link i { transform: translateX(3px); }
[data-theme="dark"] .doc-loc-times span,
:root:not([data-theme="light"]) .doc-loc-times span { color: var(--primary-300); }
.chip {
    display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600;
    padding: 4px 11px; border-radius: 50px; background: rgba(0,180,216,.10);
    color: var(--primary-600); border: 1px solid rgba(0,180,216,.16);
}
.chip i { font-size: .68rem; }

.doc-photo {
    width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem; text-transform: uppercase;
}
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-photo.lg { width: 110px; height: 110px; border-radius: 20px; font-size: 1.6rem; }
.doc-photo.xl { width: 150px; height: 190px; border-radius: 24px; font-size: 2.1rem; }
@media (max-width: 640px) { .doc-photo.xl { width: 130px; height: 160px; } }

.doc-spec { color: var(--primary-600); font-weight: 600; font-size: .88rem; }
.doc-spec.lg { font-size: 1.05rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: .82rem; color: var(--text-muted); }
.doc-meta i { color: var(--primary-500); margin-right: 5px; }
.doc-branches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.doc-slot { font-size: .82rem; color: var(--text-secondary); margin-top: 8px; }
.doc-slot i { color: var(--primary-500); margin-right: 6px; }

/* home preview grid */
.doc-home-grid { display: grid; gap: 22px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.doc-home-card {
    display: flex; gap: 16px; padding: 22px; border-radius: 20px; background: var(--bg-card);
    border: 1px solid var(--border-color); box-shadow: var(--card-shadow); transition: transform .3s, box-shadow .3s;
}
.doc-home-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px var(--shadow-color); }
.doc-body { display: flex; flex-direction: column; min-width: 0; }
.doc-body > strong { font-size: 1.05rem; font-weight: 700; }
.doc-body small { color: var(--text-muted); font-size: .78rem; }
.doc-more { margin-top: auto; padding-top: 10px; color: var(--primary-600); font-weight: 600; font-size: .82rem; }
.doc-more i { margin-left: 5px; transition: transform .25s; }
.doc-home-card:hover .doc-more i { transform: translateX(4px); }

/* list page */
.doc-list-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.doc-list-card {
    display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--bg-card);
    border: 1px solid var(--border-color); box-shadow: var(--card-shadow);
}
.doc-list-card h3 { font-size: 1.22rem; font-weight: 800; }
.doc-list-top { display: flex; gap: 16px; align-items: center; }
.doc-list-top > div:last-child { min-width: 0; }

.doc-branches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.doc-branch-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
    font-size: .76rem; font-weight: 600; background: rgba(0,180,216,.1); color: var(--primary-600);
}
.doc-branch-chip i { font-size: .7rem; }

.doc-sched { margin-top: 16px; border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; }
.doc-sched-head {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
    color: var(--text-muted); padding: 9px 14px; background: var(--bg-surface-2, rgba(0,0,0,.03));
}
.doc-sched-row {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
    padding: 10px 14px; font-size: .84rem; border-top: 1px solid var(--border-color);
}
.doc-sched-row .d { font-weight: 700; color: var(--text-primary); }
.doc-sched-row .t { font-weight: 600; color: var(--primary-600); white-space: nowrap; }
.doc-sched-row .b { grid-column: 1 / -1; font-size: .78rem; color: var(--text-muted); }
.doc-sched-row .b i { margin-right: 4px; }
.doc-sched-row.muted { color: var(--text-muted); }
.doc-sched-more { padding: 8px 14px; font-size: .78rem; color: var(--primary-600); font-weight: 600; border-top: 1px solid var(--border-color); }
.doc-sched-btn { margin-top: 16px; padding: 11px 22px; align-self: flex-start; }

/* detail page */
.doc-hero-row { display: flex; gap: 30px; align-items: flex-start; margin-top: 18px; flex-wrap: wrap; }
.sched-grid { display: grid; gap: 22px; margin-top: 34px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.sched-card { border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card); padding: 22px; box-shadow: var(--card-shadow); }
.sched-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.sched-head i { font-size: 1.3rem; color: var(--primary-500); margin-top: 2px; }
.sched-head strong { display: block; font-size: 1.05rem; }
.sched-head small { color: var(--text-muted); font-size: .8rem; }
.sched-list { margin: 14px 0 0; }
.sched-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--border-color); }
.sched-list li:last-child { border-bottom: none; }
.sched-day { font-weight: 700; font-size: .9rem; }
.sched-time { color: var(--primary-600); font-weight: 600; font-size: .88rem; }
.sched-note { width: 100%; font-size: .78rem; color: var(--text-muted); }
.sched-call { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .84rem; color: var(--primary-600); font-weight: 600; }
.sched-hint { margin-top: 22px; font-size: .82rem; color: var(--text-muted); }
.sched-hint i { color: var(--primary-500); margin-right: 6px; }

@media (max-width: 560px) {
    .doc-list-card, .doc-home-card { flex-direction: column; }
    .doc-hero-row { gap: 18px; }
    .doc-photo.xl { width: 120px; height: 150px; }
}
