/* ==========================================================================
   PIYAVATE MEDICAL INSTITUTIONAL THEME (Muscat Clinic × Bangkok Hospital HQ)
   Official Brand Palette Derived from piyalogo-2.png:
   - Royal Medical Blue: #0460AC (Deep Navy Shade: #023866)
   - Piyavate Cyan Ribbon: #00B0F0 (Sky Accent: #E6F7FE)
   - Medical Cross Rose Pink: #F04880 (Deep Pink: #D62F67)
   Refined, Balanced Typography Scale for Arabic (RTL), English (LTR), Thai (LTR)
   ========================================================================== */

:root {
    --pv-blue: #0460AC;
    --pv-blue-dark: #023866;
    --pv-cyan: #00B0F0;
    --pv-cyan-dark: #0088C2;
    --pv-cyan-light: #E8F7FE;
    --pv-pink: #F04880;
    --pv-pink-dark: #D42C64;
    --pv-pink-light: #FDECF2;

    /* Semantic aliases used across templates */
    --pv-teal: #0460AC;
    --pv-teal-dark: #023866;
    --pv-teal-light: #E8F7FE;
    --pv-navy: #023866;
    --pv-navy-light: #0460AC;
    --pv-gold: #F04880;
    --pv-gold-light: #FDECF2;

    --pv-bg: #F4F9FD;
    --pv-surface: #FFFFFF;
    --pv-text: #0C2340;
    --pv-muted: #476282;
    --pv-border: #D6E8F5;
    --pv-radius: 14px;
    --pv-radius-sm: 9px;
    --pv-shadow: 0 8px 24px -4px rgba(4, 96, 172, 0.07);
    --pv-shadow-lg: 0 16px 36px -8px rgba(2, 56, 102, 0.14);
}

html {
    font-size: 15px;
}

html[lang="ar"] body.pv-body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
html[lang="en"] body.pv-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
html[lang="th"] body.pv-body {
    font-family: 'Noto Sans Thai', 'Plus Jakarta Sans', sans-serif;
}

body.pv-body {
    background-color: var(--pv-bg);
    color: var(--pv-text);
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    overflow-x: hidden;
}

.pv-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Signature Piyavate Logo Dual-Color Bar (Pink 75% + Royal Blue 25%) */
.pv-logo-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--pv-pink) 0%, var(--pv-pink) 75%, var(--pv-blue) 75%, var(--pv-blue) 100%);
}

/* Institutional Top Bar */
.pv-topbar {
    background: linear-gradient(90deg, var(--pv-blue-dark) 0%, var(--pv-blue) 100%);
    color: #f8fafc;
    font-size: 0.78rem;
    padding: 0.42rem 0;
    border-bottom: 2px solid var(--pv-pink);
}
.pv-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}
.pv-affiliation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 176, 240, 0.18);
    border: 1px solid rgba(0, 176, 240, 0.48);
    color: #ffffff;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.73rem;
}
.pv-topbar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}
.pv-topbar-links a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.77rem;
    transition: color 0.2s;
}
.pv-topbar-links a:hover {
    color: #7dd3fc;
}
.pv-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.12rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.pv-lang-switcher a {
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}
.pv-lang-switcher a.active {
    background: var(--pv-pink);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(240, 72, 128, 0.45);
}

/* Main Header & Navigation */
.pv-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    margin: 0;
    box-shadow: 0 4px 18px rgba(4, 96, 172, 0.06);
}
main#main {
    margin: 0;
    padding: 0;
    display: block;
}
.pv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 0.75rem;
}
.pv-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--pv-blue-dark);
    flex-shrink: 0;
}
.pv-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.pv-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pv-cyan) 0%, var(--pv-blue) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 176, 240, 0.28);
    flex-shrink: 0;
}
.pv-brand-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pv-blue);
    line-height: 1.25;
}
.pv-brand-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--pv-pink);
    font-weight: 700;
}

.pv-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.pv-nav-item {
    position: relative;
}
.pv-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.45rem 0.62rem;
    color: var(--pv-blue-dark);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.pv-nav-link:hover,
.pv-nav-link.active {
    background: var(--pv-cyan-light);
    color: var(--pv-blue);
}
.pv-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 255px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--pv-border);
    border-top: 3px solid var(--pv-cyan);
    box-shadow: var(--pv-shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 120;
}
.pv-nav-item:hover .pv-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pv-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 0.7rem;
    color: var(--pv-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}
.pv-dropdown a:hover {
    background: var(--pv-cyan-light);
    color: var(--pv-blue);
}

.pv-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.52rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.81rem;
    text-decoration: none;
    transition: all 0.22s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
}
.pv-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
html[dir="rtl"] .pv-dir-flip,
html[dir="rtl"] .pv-card-link .fa-arrow-right,
html[dir="rtl"] .pv-sidebar-menu .fa-chevron-right {
    transform: scaleX(-1);
}
.pv-btn-primary {
    background: linear-gradient(135deg, var(--pv-cyan) 0%, var(--pv-blue) 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(4, 96, 172, 0.42);
}
.pv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -4px rgba(0, 176, 240, 0.52);
    color: #ffffff;
}
.pv-btn-gold {
    background: linear-gradient(135deg, var(--pv-pink) 0%, var(--pv-pink-dark) 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(240, 72, 128, 0.42);
}
.pv-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -4px rgba(240, 72, 128, 0.58);
    color: #ffffff;
}
.pv-btn-white {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    backdrop-filter: blur(8px);
}
.pv-btn-white:hover {
    background: #ffffff;
    color: var(--pv-blue-dark);
}
.pv-btn-outline {
    background: transparent;
    border: 1.5px solid var(--pv-blue);
    color: var(--pv-blue);
}
.pv-btn-outline:hover {
    background: var(--pv-blue);
    color: #ffffff;
}

/* Hero Section */
.pv-hero {
    position: relative;
    background:
        radial-gradient(circle at 85% 18%, rgba(0, 176, 240, 0.32), transparent 50%),
        radial-gradient(circle at 12% 85%, rgba(240, 72, 128, 0.2), transparent 45%),
        linear-gradient(135deg, #012647 0%, var(--pv-blue-dark) 48%, var(--pv-blue) 100%);
    color: #ffffff;
    padding: 3rem 0 4rem;
    overflow: hidden;
    border-bottom: 4px solid var(--pv-pink);
}
.pv-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}
.pv-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 176, 240, 0.2);
    border: 1px solid rgba(0, 176, 240, 0.55);
    color: #e0f2fe;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.95rem;
}
.pv-hero h1 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.32;
    margin: 0 0 0.85rem;
    color: #ffffff;
}
.pv-hero p {
    font-size: 0.92rem;
    color: #dbeafe;
    margin: 0 0 1.25rem;
    max-width: 620px;
    line-height: 1.65;
}
.pv-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}
.pv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pv-hero-badge i {
    color: var(--pv-cyan);
}

/* Dual Pathway Cards in Hero */
.pv-pathway-cards {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.pv-pathway-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 176, 240, 0.4);
    border-inline-start: 4px solid var(--pv-cyan);
    border-radius: 14px;
    padding: 1.05rem 1.25rem;
    transition: all 0.25s;
}
.pv-pathway-card.bangkok {
    border-color: rgba(240, 72, 128, 0.45);
    border-inline-start: 4px solid var(--pv-pink);
}
.pv-pathway-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.pv-pathway-tag {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 700;
    background: rgba(0, 176, 240, 0.25);
    color: #7dd3fc;
    padding: 0.16rem 0.58rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}
.pv-pathway-tag.gold {
    background: rgba(240, 72, 128, 0.28);
    color: #fbcfe8;
}
.pv-pathway-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.96rem;
    color: #ffffff;
}
.pv-pathway-card p {
    margin: 0 0 0.8rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.55;
}

/* Institutional Stats Bar */
.pv-stats-bar {
    margin-top: -2rem;
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--pv-shadow-lg);
    border: 1px solid var(--pv-border);
    border-top: 3px solid var(--pv-cyan);
    padding: 1.15rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.pv-stat-box {
    text-align: center;
    border-inline-end: 1px solid var(--pv-border);
    padding-inline-end: 0.85rem;
}
.pv-stat-box:last-child {
    border-inline-end: none;
    padding-inline-end: 0;
}
.pv-stat-box strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pv-blue) 0%, var(--pv-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}
.pv-stat-box span {
    display: block;
    font-size: 0.78rem;
    color: var(--pv-muted);
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Section Headers */
.pv-section {
    padding: 3.25rem 0;
}
.pv-section-alt {
    background: #EAF4FC;
}
.pv-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.1rem;
}
.pv-section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--pv-pink-light);
    color: var(--pv-pink-dark);
    border: 1px solid rgba(240, 72, 128, 0.25);
    font-weight: 700;
    font-size: 0.74rem;
    padding: 0.22rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
.pv-section-header h2 {
    font-size: clamp(1.3rem, 1.9vw, 1.68rem);
    color: var(--pv-blue-dark);
    margin: 0 0 0.55rem;
    font-weight: 800;
}
.pv-section-header p {
    color: var(--pv-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* Tabs for Clinical Departments */
.pv-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.85rem;
    flex-wrap: wrap;
}
.pv-tab-btn {
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid var(--pv-border);
    background: #ffffff;
    color: var(--pv-blue-dark);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.pv-tab-btn.active {
    background: linear-gradient(135deg, var(--pv-cyan) 0%, var(--pv-blue) 100%);
    border-color: var(--pv-blue);
    color: #ffffff;
    box-shadow: 0 8px 20px -5px rgba(4, 96, 172, 0.38);
}
.pv-tab-panel {
    display: none;
}
.pv-tab-panel.active {
    display: block;
}

/* Cards & Grids */
.pv-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.25rem;
}
.pv-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 1.25rem;
}
.pv-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 1.15rem;
}
.pv-card {
    background: #ffffff;
    border-radius: var(--pv-radius);
    border: 1px solid var(--pv-border);
    box-shadow: var(--pv-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.pv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pv-shadow-lg);
    border-color: var(--pv-cyan);
}
.pv-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #e2e8f0;
}
.pv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pv-card:hover .pv-card-img img {
    transform: scale(1.05);
}
.pv-card-badge {
    position: absolute;
    top: 0.7rem;
    inset-inline-start: 0.7rem;
    background: rgba(4, 96, 172, 0.92);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.pv-card-badge.gold {
    background: var(--pv-pink);
    color: #ffffff;
}
.pv-card-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pv-card-body h3 {
    margin: 0 0 0.45rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--pv-blue-dark);
    line-height: 1.38;
}
.pv-card-body h3 a {
    color: inherit;
    text-decoration: none;
}
.pv-card-body h3 a:hover {
    color: var(--pv-blue);
}
.pv-card-body p {
    margin: 0 0 0.95rem;
    color: var(--pv-muted);
    font-size: 0.82rem;
    line-height: 1.58;
    flex: 1;
}
.pv-card-link {
    margin-top: auto;
    color: var(--pv-blue);
    font-weight: 700;
    font-size: 0.81rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}
.pv-card-link:hover {
    color: var(--pv-pink);
}

/* Institutional Bridge Banner & Comparison Table */
.pv-bridge-banner {
    background: linear-gradient(135deg, var(--pv-blue-dark) 0%, var(--pv-blue) 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.15rem;
    box-shadow: var(--pv-shadow-lg);
    border-top: 4px solid var(--pv-pink);
}
.pv-scope-table-wrap {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    color: var(--pv-text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.pv-scope-table {
    width: 100%;
    border-collapse: collapse;
}
.pv-scope-table th,
.pv-scope-table td {
    padding: 0.7rem 0.85rem;
    text-align: start;
    border-bottom: 1px solid var(--pv-border);
    font-size: 0.79rem;
}
.pv-scope-table thead th {
    background: var(--pv-blue-dark);
    color: #ffffff;
    font-weight: 700;
}
.pv-badge-yes {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--pv-cyan-light);
    color: var(--pv-blue);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
}
.pv-badge-coord {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--pv-pink-light);
    color: var(--pv-pink-dark);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
}

/* 5-Step Journey Timeline */
.pv-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin-top: 2rem;
}
.pv-step-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.05rem;
}
.pv-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pv-pink);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
.pv-step-card h4 {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 0.88rem;
}
.pv-step-card p {
    margin: 0;
    color: #dbeafe;
    font-size: 0.76rem;
    line-height: 1.5;
}

/* Gallery Grid */
.pv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}
.pv-gallery-item {
    position: relative;
    height: 205px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--pv-shadow);
}
.pv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.pv-gallery-item:hover img {
    transform: scale(1.05);
}
.pv-gallery-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.85rem;
    background: linear-gradient(0deg, rgba(2, 56, 102, 0.92) 0%, transparent 100%);
    color: #ffffff;
    font-size: 0.84rem;
}

/* Testimonials */
.pv-testimonial-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.35rem;
    border: 1px solid var(--pv-border);
    border-inline-start: 4px solid var(--pv-pink);
    box-shadow: var(--pv-shadow);
}

/* Inner Page Layout */
.pv-page-hero {
    background: linear-gradient(135deg, var(--pv-blue-dark) 0%, var(--pv-blue) 100%);
    color: #ffffff;
    padding: 2.4rem 0;
    border-bottom: 4px solid var(--pv-pink);
}
.pv-page-hero h1 {
    font-size: clamp(1.35rem, 2.1vw, 1.85rem) !important;
    margin: 0 0 0.55rem !important;
    font-weight: 800;
}
.pv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #dbeafe;
    margin-bottom: 0.65rem;
}
.pv-breadcrumb a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}
.pv-page-layout {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 1.75rem;
    align-items: start;
}
.pv-content-box,
.pv-contact-box,
.pv-sidebar-card {
    background: #ffffff;
    border-radius: var(--pv-radius);
    border: 1px solid var(--pv-border);
    box-shadow: var(--pv-shadow);
    padding: 1.5rem;
    box-sizing: border-box;
}
aside.pv-sidebar-card {
    position: sticky;
    top: 86px;
}
.pv-sidebar-title {
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--pv-cyan-light);
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--pv-blue-dark);
    line-height: 1.4;
}
.pv-sidebar-title a {
    color: inherit;
    text-decoration: none;
}
.pv-sidebar-title a:hover {
    color: var(--pv-blue);
}
.pv-sidebar-contact {
    background: var(--pv-bg);
    border-radius: 12px;
    padding: 1.15rem;
    border: 1px solid var(--pv-border);
    box-sizing: border-box;
}
.pv-sidebar-contact h4 {
    margin: 0 0 0.6rem;
    color: var(--pv-blue-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.pv-prose,
.prose-medical {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--pv-text);
}
.pv-prose h2,
.prose-medical h2 {
    font-size: 1.18rem;
    color: var(--pv-blue-dark);
    margin: 1.35rem 0 0.65rem;
}
.pv-prose h3,
.pv-prose h4,
.prose-medical h3,
.prose-medical h4 {
    font-size: 1rem;
    color: var(--pv-blue);
    margin-top: 1.25rem;
    margin-bottom: 0.55rem;
}
.pv-prose ul,
.pv-prose ol,
.prose-medical ul,
.prose-medical ol {
    padding-inline-start: 1.35rem;
    margin: 0.65rem 0 1.15rem;
}
.pv-prose li,
.prose-medical li {
    margin-bottom: 0.5rem;
    line-height: 1.68;
}
.pv-prose li::marker,
.prose-medical li::marker {
    color: var(--pv-pink);
    font-weight: 700;
}
.pv-prose table,
.prose-medical table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.1rem 0;
    font-size: 0.82rem;
}
.pv-prose th,
.pv-prose td,
.prose-medical th,
.prose-medical td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pv-border);
    text-align: start;
}
.pv-prose th,
.prose-medical th {
    background: var(--pv-cyan-light);
    color: var(--pv-blue-dark);
}
.pv-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pv-sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0.8rem;
    border-radius: 9px;
    text-decoration: none;
    color: var(--pv-text);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.42;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.pv-sidebar-menu a span {
    flex: 1;
}
.pv-sidebar-menu a i {
    flex-shrink: 0;
    font-size: 0.68rem;
    color: var(--pv-muted);
}
.pv-sidebar-menu a:hover,
.pv-sidebar-menu a.active {
    background: var(--pv-cyan-light);
    color: var(--pv-blue);
    border-color: rgba(0, 176, 240, 0.25);
    border-inline-start: 3px solid var(--pv-pink);
}
.pv-sidebar-menu a.active i,
.pv-sidebar-menu a:hover i {
    color: var(--pv-pink);
}

/* Custom Pagination / Pager */
.pv-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--pv-border);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    box-shadow: var(--pv-shadow);
}
.pv-pagination-info {
    font-size: 0.8rem;
    color: var(--pv-muted);
}
.pv-pagination-info strong {
    color: var(--pv-blue-dark);
    font-weight: 700;
}
.pv-pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}
.pv-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 34px;
    height: 34px;
    padding: 0 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--pv-border);
    background: #ffffff;
    color: var(--pv-blue-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
    box-sizing: border-box;
}
a.pv-page-link:hover {
    background: var(--pv-cyan-light);
    border-color: var(--pv-cyan);
    color: var(--pv-blue);
}
.pv-pagination li.active .pv-page-link {
    background: linear-gradient(135deg, var(--pv-cyan) 0%, var(--pv-blue) 100%);
    border-color: var(--pv-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(4, 96, 172, 0.3);
}
.pv-pagination li.disabled .pv-page-link {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Form Controls */
.pv-input,
.pv-select,
.pv-textarea {
    width: 100%;
    padding: 0.62rem 0.88rem;
    border-radius: 9px;
    border: 1px solid var(--pv-border);
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.pv-input:focus,
.pv-select:focus,
.pv-textarea:focus {
    outline: none;
    border-color: var(--pv-cyan);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.15);
}

/* Footer */
.pv-footer {
    background: #012240;
    color: #cbd5e1;
    padding: 3.25rem 0 1.75rem;
    border-top: 4px solid var(--pv-pink);
}
.pv-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.75rem;
    margin-bottom: 2.25rem;
}
.pv-footer h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0 0 0.9rem;
    border-bottom: 2px solid rgba(0, 176, 240, 0.35);
    padding-bottom: 0.45rem;
}
.pv-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pv-footer ul li {
    margin-bottom: 0.45rem;
}
.pv-footer ul a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.pv-footer ul a:hover {
    color: var(--pv-cyan);
}
.pv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Floating WhatsApp Widget */
.pv-whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #16a34a;
    color: #ffffff;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.42);
    transition: transform 0.2s;
}
.pv-whatsapp-float:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

/* Lightbox Modal */
.pv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1, 34, 64, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.pv-lightbox.open {
    display: flex;
}
.pv-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsive */
.pv-mobile-toggle {
    display: none;
    background: var(--pv-cyan-light);
    color: var(--pv-blue);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .pv-hero-grid,
    .pv-page-layout,
    .pv-footer-grid {
        grid-template-columns: 1fr;
    }
    .pv-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .pv-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pv-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 3px solid var(--pv-pink);
        box-shadow: var(--pv-shadow-lg);
    }
    .pv-nav.open {
        display: flex;
    }
    .pv-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-inline-start: 1rem;
    }
    .pv-mobile-toggle {
        display: inline-flex;
    }
}
@media (max-width: 640px) {
    .pv-stats-bar,
    .pv-steps-grid,
    .pv-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Motion layer (progressive enhancement: active only when JS adds .pv-anim)
   ========================================================================== */
:root { --pv-dir: 1; }
[dir="rtl"] { --pv-dir: -1; }

@keyframes pvFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pvSlideIn { from { opacity: 0; transform: translateX(calc(40px * var(--pv-dir))); } to { opacity: 1; transform: none; } }
@keyframes pvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pvDrift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pvPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes pvTabIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero: ambient orbs + slow gradient drift */
.pv-hero { background-size: 100% 100%, 100% 100%, 160% 160%; }
.pv-anim .pv-hero { animation: pvDrift 22s ease-in-out infinite; }
.pv-hero::before, .pv-hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px);
}
.pv-hero::before { width: 260px; height: 260px; top: -80px; inset-inline-start: -60px; background: rgba(0, 176, 240, 0.14); }
.pv-hero::after { width: 180px; height: 180px; bottom: -50px; inset-inline-end: 8%; background: rgba(240, 72, 128, 0.16); }
.pv-anim .pv-hero::before { animation: pvFloat 9s ease-in-out infinite; }
.pv-anim .pv-hero::after { animation: pvFloat 11s ease-in-out infinite reverse; }
.pv-hero .pv-container { position: relative; z-index: 1; }

/* Hero entrance (runs on load) */
.pv-anim .pv-hero-eyebrow, .pv-anim .pv-hero h1, .pv-anim .pv-hero-grid > div:first-child > p,
.pv-anim .pv-hero-badge, .pv-anim .pv-hero-grid > div:first-child > div:last-child {
    opacity: 0; animation: pvFadeUp 0.7s cubic-bezier(.2, .7, .2, 1) forwards;
}
.pv-anim .pv-hero-eyebrow { animation-delay: 0.05s; }
.pv-anim .pv-hero h1 { animation-delay: 0.15s; }
.pv-anim .pv-hero-grid > div:first-child > p { animation-delay: 0.28s; }
.pv-anim .pv-hero-badge:nth-child(1) { animation-delay: 0.4s; }
.pv-anim .pv-hero-badge:nth-child(2) { animation-delay: 0.5s; }
.pv-anim .pv-hero-badge:nth-child(3) { animation-delay: 0.6s; }
.pv-anim .pv-hero-grid > div:first-child > div:last-child { animation-delay: 0.72s; }
.pv-anim .pv-pathway-card { opacity: 0; animation: pvSlideIn 0.8s cubic-bezier(.2, .7, .2, 1) forwards; }
.pv-anim .pv-pathway-card:nth-child(1) { animation-delay: 0.35s; }
.pv-anim .pv-pathway-card:nth-child(2) { animation-delay: 0.55s; }
.pv-pathway-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pv-pathway-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(1, 38, 71, 0.35); }

/* Scroll reveal */
.pv-anim .pv-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--pv-delay, 0s); }
.pv-anim .pv-reveal.pv-in { opacity: 1; transform: none; }
/* Keep the existing hover lift working once revealed */
.pv-anim .pv-card.pv-reveal.pv-in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Tab panel switch */
.pv-tab-panel.active { animation: pvTabIn 0.45s ease; }

/* Buttons: light sweep on hover */
.pv-btn { position: relative; overflow: hidden; }
.pv-btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg);
}
.pv-btn:hover::after { inset-inline-start: 120%; transition: inset-inline-start 0.7s ease; }

/* Stats: accent underline grows when visible */
.pv-stat-box strong { position: relative; display: block; }
.pv-stat-box { transition: transform 0.3s ease; }
.pv-stat-box:hover { transform: translateY(-3px); }

/* Step numbers + step cards */
.pv-step-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pv-step-card:hover { transform: translateY(-5px); box-shadow: var(--pv-shadow-lg); }

/* Gallery + testimonials */
.pv-gallery-item img { transition: transform 0.5s ease; }
.pv-gallery-item:hover img { transform: scale(1.07); }
.pv-testimonial-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pv-testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--pv-shadow-lg); }

/* WhatsApp floating button pulse */
.pv-whatsapp-float { animation: pvPulse 2.6s infinite; }

@media (prefers-reduced-motion: reduce) {
    .pv-anim .pv-reveal, .pv-anim .pv-hero-eyebrow, .pv-anim .pv-hero h1, .pv-anim .pv-hero-badge,
    .pv-anim .pv-hero-grid > div:first-child > p, .pv-anim .pv-hero-grid > div:first-child > div:last-child,
    .pv-anim .pv-pathway-card { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .pv-anim .pv-hero, .pv-hero::before, .pv-hero::after, .pv-whatsapp-float, .pv-tab-panel.active { animation: none !important; }
}

/* ==========================================================================
   Slider (vanilla, scroll-snap): enabled on [data-pv-slider] grids by JS
   ========================================================================== */
.pv-slider { position: relative; }
.pv-slider-track {
    display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0.4rem 0.2rem 1rem;
    cursor: grab; overscroll-behavior-x: contain;
}
.pv-slider-track::-webkit-scrollbar { display: none; }
.pv-slider-track.pv-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.pv-slider-track.pv-dragging a { pointer-events: none; }
.pv-slider-track > * { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; min-width: 0; }
.pv-slider-track.pv-cols-4 > * { flex-basis: calc((100% - 3.45rem) / 4); }
.pv-slider-track.pv-cols-2 > * { flex-basis: calc((100% - 1.25rem) / 2); }
@media (max-width: 1100px) { .pv-slider-track.pv-cols-4 > * { flex-basis: calc((100% - 2.3rem) / 3); } }
@media (max-width: 900px) {
    .pv-slider-track > *, .pv-slider-track.pv-cols-4 > * { flex-basis: calc((100% - 1.25rem) / 2); }
    .pv-slider-track.pv-cols-2 > * { flex-basis: 100%; }
}
@media (max-width: 600px) { .pv-slider-track > *, .pv-slider-track.pv-cols-4 > * { flex-basis: 86%; } }

.pv-slider-btn {
    position: absolute; top: calc(50% - 1.6rem); z-index: 5; width: 2.8rem; height: 2.8rem; border-radius: 50%;
    border: 1px solid var(--pv-border); background: #ffffff; color: var(--pv-blue); box-shadow: var(--pv-shadow-lg);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease;
}
.pv-slider-btn:hover { background: var(--pv-blue); color: #ffffff; transform: scale(1.08); }
.pv-slider-btn:disabled { opacity: 0.35; cursor: default; transform: none; background: #ffffff; color: var(--pv-blue); }
.pv-slider-prev { inset-inline-start: -0.9rem; }
.pv-slider-next { inset-inline-end: -0.9rem; }
[dir="rtl"] .pv-slider-btn i { transform: scaleX(-1); }
.pv-slider-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.3rem; }
.pv-slider-dot {
    width: 0.6rem; height: 0.6rem; border-radius: 999px; border: 0; padding: 0; background: #cbd5e1; cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}
.pv-slider-dot.active { width: 1.8rem; background: linear-gradient(90deg, var(--pv-blue), var(--pv-pink)); }
.pv-slider.pv-static .pv-slider-btn, .pv-slider.pv-static .pv-slider-dots { display: none; }
@media (max-width: 700px) { .pv-slider-prev { inset-inline-start: 0.2rem; } .pv-slider-next { inset-inline-end: 0.2rem; } }

/* Slider controls: arrows + dots in one row under the track, using site colours */
.pv-slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.4rem; }
.pv-slider-nav .pv-slider-btn {
    position: static; inset: auto; width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
    background: var(--pv-blue); color: #ffffff; border: 0; box-shadow: 0 4px 12px rgba(4, 96, 172, 0.28);
}
.pv-slider-nav .pv-slider-btn:hover { background: var(--pv-blue-dark); color: #ffffff; transform: scale(1.08); }
.pv-slider-nav .pv-slider-btn i { font-size: 0.85rem; }
.pv-slider-nav .pv-slider-dots { margin-top: 0; }
.pv-slider-dot { background: rgba(4, 96, 172, 0.22); }
.pv-slider-dot.active { background: var(--pv-blue); }
.pv-slider.pv-static .pv-slider-nav { display: none; }

/* Slider controls: light, quiet style */
.pv-slider-nav { gap: 0.75rem; }
.pv-slider-nav .pv-slider-btn {
    width: 1.9rem; height: 1.9rem; background: transparent; color: var(--pv-blue);
    border: 1px solid rgba(4, 96, 172, 0.28); box-shadow: none; opacity: 0.8;
}
.pv-slider-nav .pv-slider-btn i { font-size: 0.65rem; }
.pv-slider-nav .pv-slider-btn:hover { background: var(--pv-cyan-light); color: var(--pv-blue); border-color: var(--pv-blue); opacity: 1; transform: none; }
.pv-slider-dot { width: 0.4rem; height: 0.4rem; background: rgba(4, 96, 172, 0.2); }
.pv-slider-dot.active { width: 1.1rem; background: rgba(4, 96, 172, 0.7); }

/* Hero background: dotted grid + moving heartbeat line (replaces the floating circles) */
@keyframes pvPulseLine { from { background-position: 0 100%; } to { background-position: 640px 100%; } }
@keyframes pvGridGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
.pv-hero::before, .pv-anim .pv-hero::before {
    width: auto; height: auto; border-radius: 0; filter: none; top: 0; bottom: 0; inset-inline: 0; background:
        radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px) 0 0 / 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
    animation: pvGridGlow 7s ease-in-out infinite;
}
.pv-hero::after, .pv-anim .pv-hero::after {
    width: auto; height: 90px; border-radius: 0; filter: none; top: auto; bottom: 14px; inset-inline: 0; opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='90' viewBox='0 0 640 90'%3E%3Cpath d='M0 45 H210 L228 45 L242 12 L262 78 L278 45 H350 L366 36 L382 45 H640' fill='none' stroke='%2300B0F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x 0 100% / 640px 90px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    animation: pvPulseLine 16s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .pv-hero::before, .pv-hero::after { animation: none !important; } }
.pv-hero::after, .pv-anim .pv-hero::after { bottom: 62px; opacity: 0.4; }
