/*
Theme Name: Al-Amal Premium Medical Tourism
Theme URI: https://alamalmeditour.com/
Author: Faraz
Description: Fully modern, premium medical tourism WordPress theme.
Version: 4.0
Text Domain: alamal
*/

/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES (Audit-Matched)
   ========================================================================== */

:root {
    /* Brand Colors - Premium Medical Palette */
    --primary: #0E82FD;
    --primary-dark: #0061cc;
    --primary-light: #f0f7ff;
    --primary-soft: rgba(14, 130, 253, 0.08);
    
    --secondary: #ff4d4d;
    --secondary-dark: #e60000;
    
    --accent: #2ecc71;
    --warning: #f1c40f;
    
    /* Neutral Palette */
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #475569;
    --text-light: #64748b;
    --muted: #94a3b8;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(14, 130, 253, 0.25);
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --radius-2xl: 4px;
    --radius-pill: 50px;
    
    /* Spacing */
    --container-width: 1280px;
    --section-pad: clamp(2rem, 4vh, 4rem);
}

/* Header & Navigation Fixes */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
}

aside {
    position: sticky;
    top: 150px !important;
}

.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo { height: 45px; }

.nav-menu-list {
    display: flex;
    gap: 2rem;
}

.menu-item a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-soft);
}

.menu-item.has-dropdown { position: relative; }
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 200px;
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.whatsapp-btn {
    font-size: 1.5rem;
    color: #25d366;
}

.mobile-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
}

/* Mobile Responsive Fixes */
@media (max-width: 992px) {
    .nav-menu-wrap { display: none; }
    .mobile-toggle { display: block; }
    .top-bar-inner { flex-direction: column; text-align: center; gap: 0.25rem; }
    .top-info { font-size: 0.75rem; }
    .top-trust { font-size: 0.7rem; opacity: 0.8; }
    .header-actions .btn { display: none; } /* Hide 'Get Quote' on mobile main header */
}

@media (max-width: 480px) {
    .top-bar { display: none; } /* Hide top-bar on tiny screens for space */
    .main-logo { height: 35px; }
    .header-actions { gap: 1rem; }
}


/* ==========================================================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-dark { color: var(--dark) !important; }
.text-white { color: var(--white) !important; }

p { margin-bottom: 1.25rem; color: var(--text-light); }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. REUSABLE COMPONENTS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-pad {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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


/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-soft);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.1rem;
    flex-grow: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--primary-soft);
    color: var(--primary);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-sidebar-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.grid-sidebar-layout > * { min-width: 0; max-width: 100%; }

.align-center { align-items: center; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-sidebar-layout { grid-template-columns: 1fr 360px; }
}

/* Section Header */
.section-header {
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.section-header p {
    margin-bottom: 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    .section-header-flex .section-header {
        text-align: left;
        max-width: 100%;
    }
    .section-header-flex .header-action-v4 {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
}



/* ==========================================================================
   4. ADVANCED SCROLL REVEAL (Repeatable & Multi-Directional)
   ========================================================================== */

/* Base Reveal - Staggered */
.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}
.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* Directional Reveals */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-down { opacity: 0; transform: translateY(-50px); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-zoom { opacity: 0; transform: scale(0.8); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-rotate { opacity: 0; transform: rotate(-5deg) translateY(40px); transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1); }

.reveal-up.active, .reveal-down.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active, .reveal-rotate.active {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

/* Sophisticated Text Reveal (Writing/Mask Effect) */
.reveal-text {
    position: relative;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-text.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Legacy Support */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Safety: Headings inside any container must always be visible regardless of animation state */
h2, h3 {
    clip-path: none !important;
    visibility: visible !important;
}
/* But allow opacity animation for h2/h3 only if they have explicit reveal class */
h2.reveal, h3.reveal { opacity: 0; }
h2.reveal.active, h3.reveal.active { opacity: 1; }

/* Floating Elements - WhatsApp button removed */
.float-whatsapp {
    display: none !important;
}

/* ==========================================================================
   5. HOSPITAL & SPECIALTY GRIDS (New Premium)
   ========================================================================== */

.hospital-grid-v4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) { .hospital-grid-v4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .hospital-grid-v4 { grid-template-columns: repeat(4, 1fr); } }

.hosp-card-v4 {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.hosp-card-v4:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: var(--primary-soft);
}

.hosp-media {
    position: relative;
    aspect-ratio: 4/3;
    background: #f1f5f9; /* Fallback color */
    overflow: hidden;
}

.hosp-img-v4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.hosp-card-v4:hover .hosp-img-v4 { transform: scale(1.1); }

.hosp-overlay-v4 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.hosp-badges-v4 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.hosp-tag {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(14,130,253,0.3);
}

.hosp-body-v4 { padding: 1.25rem; }
.hosp-meta-v4 { margin-bottom: 0.75rem; }
.hosp-location-v4 { font-size: 0.8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.hosp-location-v4 i { color: var(--primary); }

.hosp-name-v4 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 0.75rem !important; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.hosp-stats-v4 { display: flex; gap: 1rem; margin-bottom: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); }
.stat-item-v4 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.stat-item-v4 i { color: var(--primary); font-size: 1rem; }

.hosp-actions-v4 { border-top: 1px solid var(--border-light); padding-top: 1rem; }
.hosp-link-v4 { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: gap 0.3s; }
.hosp-link-v4:hover { gap: 0.75rem; color: var(--dark); }

/* Specialty Grid Fixes */
.specialty-grid-v4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) { .specialty-grid-v4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .specialty-grid-v4 { grid-template-columns: repeat(4, 1fr); } }

.specialty-card-v4 {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark);
}

.spec-bg-layer { position: absolute; inset: 0; z-index: 0; }
.spec-bg-1 { position: absolute; inset: 0; background-size: cover; background-position: center; }
.spec-bg-2 {
    position: absolute;
    inset: 0;
    background: rgba(14, 130, 253, 0.35);
    transform: translateX(100%); /* Hidden off-screen by default */
    z-index: 1;
}

.spec-overlay-v4 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.spec-content-v4 {
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 3;
    transition: transform 0.4s;
}

.specialty-card-v4:hover .spec-content-v4 { transform: translateY(-10px); }

.spec-icon-v4 {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(14, 130, 253, 0.3);
}

.spec-content-v4 h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    /* Override any reveal-text clip */
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure .no-reveal elements are ALWAYS visible */
.no-reveal {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.spec-btn-v4 { color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.spec-btn-v4:hover { color: white; }

.badge-v2 {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Section Header v2 */
.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 0;
}
.section-header-v2 .header-desc { max-width: 500px; }
.section-header-v2 .header-desc p { color: var(--text-light); margin: 0; }

@media (max-width: 768px) {
    .section-header-v2 { flex-direction: column; }
}

/* ==========================================================================
   6. PREMIUM OUTLINE BUTTON & ACTION HEADER (Used on all section panels)
   ========================================================================== */

.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.header-action-v4 {
    flex-shrink: 0;
}

/* mb / mt utilities */
.mb-5 { margin-bottom: 1.75rem !important; }
.mt-5 { margin-top: 1.75rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.mt-4 { margin-top: 1.25rem !important; }

/* bg-light utility */
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--white) !important; }

/* position utilities */
.position-relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }

/* display utilities */
.fw-bold { font-weight: 700 !important; }
.display-5 { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; }

/* ==========================================================================
   7. HERO V8 - Premium Layout (Shared Globally across Homepage & Archives)
   ========================================================================== */

.hero-v8 {
    position: relative;
    overflow: hidden;
    padding: 140px 0 50px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-v8-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-v8-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0c2d5e 30%, #0a1628 60%, #061224 100%);
}
.hero-v8-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-v8-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-v8-orb-1 {
    width: 500px; height: 500px;
    background: rgba(14, 130, 253, 0.15);
    top: -10%; right: 10%;
    animation: orbFloat 20s ease-in-out infinite alternate;
}
.hero-v8-orb-2 {
    width: 350px; height: 350px;
    background: rgba(46, 204, 113, 0.1);
    bottom: -5%; left: 5%;
    animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}
.hero-v8-orb-3 {
    width: 250px; height: 250px;
    background: rgba(147, 51, 234, 0.08);
    top: 40%; left: 40%;
    animation: orbFloat 25s ease-in-out infinite alternate;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-v8-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-v8-left { position: relative; z-index: 2; }

.hero-v8-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(14, 130, 253, 0.1);
    border: 1px solid rgba(14, 130, 253, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.pill-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-v8-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}
.hero-v8-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-v8-sub-text {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
}

.hero-v8-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-v8-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 0.4rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s;
}
.hero-v8-search:focus-within {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}
.v8-search-icon {
    padding: 0 1rem;
    color: #60a5fa;
    font-size: 1.25rem;
}
.hero-v8-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 0;
}
.hero-v8-search select {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}
.hero-v8-search select option {
    color: #000;
}
.hero-v8-search input::placeholder { color: rgba(255,255,255,0.35); }
.v8-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.v8-search-btn:hover {
    background: #0061cc;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(14, 130, 253, 0.4);
}

.hero-v8-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.v8-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.v8-tag:hover {
    border-color: var(--primary);
    color: #60a5fa;
    background: rgba(14, 130, 253, 0.08);
}

.hero-v8-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}
.v8-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}
.v8-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.v8-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
    .hero-v8 { padding: 110px 0 60px; min-height: auto; }
    .hero-v8-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-v8-title { font-size: 2.5rem; }
    /* Search bar: proper flex layout — icon left, input flex, button full row below */
    .hero-v8-search {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        border-radius: 16px;
        overflow: hidden;
    }
    .v8-search-icon { display: flex; padding: 0 0.75rem; flex-shrink: 0; }
    .hero-v8-search input { padding: 0.9rem 0.75rem; flex: 1; min-width: 0; width: auto; }
    /* Button: full row on its own line */
    .v8-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 12px 12px;
        padding: 0.85rem 1rem;
        margin: 0;
    }
    .hero-v8-stats { gap: 1.25rem; }
    .v8-stat-num { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-v8 { padding: 90px 0 40px; }
    .hero-v8-title { font-size: 2rem; }
    .hero-v8-stats { flex-wrap: wrap; gap: 1rem; }
    .v8-stat-divider { display: none; }
}


/* ==========================================================================
   8. CLINICAL DOCTOR ARCHIVE FILTER BAR (Exactly matches the mockup)
   ========================================================================== */

.doctor-filter-bar-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    flex-wrap: wrap;
}

.doctor-filter-bar-v4 .filter-label-wrap {
    flex: 1;
    min-width: 280px;
}

.doctor-filter-bar-v4 .filter-label-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.5;
}

.doctor-filter-bar-v4 .filter-select-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select-v4 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 2.5rem 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    outline: none;
    cursor: pointer;
    min-width: 170px;
    height: 44px;
    transition: all 0.2s ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23718096'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.filter-select-v4:hover {
    border-color: var(--primary);
}

.filter-select-v4:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.15);
}

@media (max-width: 992px) {
    .doctor-filter-bar-v4 {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    .doctor-filter-bar-v4 .filter-select-group {
        width: 100%;
    }
    .filter-select-v4 {
        flex: 1;
        min-width: 140px;
    }
}
}


/* ==========================================================================
   PATIENT STORY CARD v3 — Unified across all pages
   ========================================================================== */

.ps-card-v3 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

/* Thumbnail */
.ps-card-thumb {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    text-decoration: none;
}
.ps-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.ps-card-v3:hover .ps-card-thumb img {
    transform: scale(1.05);
}
.ps-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light), #e8f4ff);
    font-size: 48px;
    color: var(--primary);
    opacity: 0.4;
}
.ps-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.38));
}
.ps-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.ps-play-btn i { color: #fff; font-size: 22px; margin-left: 3px; }
.ps-card-v3:hover .ps-play-btn { background: var(--primary); border-color: var(--primary); }

/* Body */
.ps-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

/* Treatment badge */
.ps-card-badge {
    display: inline-block;
    background: #e8f4ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    align-self: flex-start;
    width: fit-content;
}

/* Patient name */
.ps-card-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    clip-path: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Excerpt */
.ps-card-excerpt {
    font-size: 13px !important;
    color: var(--text-light) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Footer row */
.ps-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}

/* Hospital name */
.ps-card-hospital {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    /* truncate if too long */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
    flex-shrink: 1;
}
.ps-card-hospital i { font-size: 12px; flex-shrink: 0; }

/* Details button */
.ps-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.ps-card-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Doctor row (above footer) */
.ps-card-doctor {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
.ps-card-doctor i { font-size: 12px; color: var(--primary); flex-shrink: 0; }

/* Country row */
.ps-card-country {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
}
.ps-card-country i { font-size: 12px; color: #e11d48; flex-shrink: 0; }
.ps-card-country span { color: var(--text-light); }

/* Clickable meta links — hospital & doctor names */
.ps-card-meta-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ps-card-meta-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Make hospital div a flex row too */
.ps-card-hospital {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
    flex-shrink: 1;
}
.ps-card-hospital i { font-size: 12px; flex-shrink: 0; }

/* ── Stretched link: Hospital card ──────────────────────────────────── */
.hosp-card-v4 { position: relative; }

.hosp-stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* ── Patient Story card — stretched link (same as doctor/hospital) ─── */
.ps-card-v3 { position: relative; border: 1px solid var(--border); }

.ps-stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* Inner links above the stretched overlay */
.ps-card-v3 .ps-card-meta-link,
.ps-card-v3 .ps-card-btn,
.ps-card-v3 .ps-card-thumb[href] {
    position: relative;
    z-index: 4;
}

/* ── Global Pagination ────────────────────────────────────────────────── */
.pagination, .pkg-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3rem;
    padding: 0;
    list-style: none;
}

.pagination .nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers,
.pkg-pagination .pkg-page-btn,
.pkg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 18px;
    min-width: 44px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    background: #fff;
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all 0.25s;
    line-height: 1;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.pkg-pagination .pkg-page-btn:hover,
.pkg-pagination .pkg-page-btn.active,
.pkg-pagination .page-numbers:hover,
.pkg-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(14, 130, 253, 0.3);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Global Form Input ──────────── */
.inquiry-input-field {
    width: 100% !important;
    padding: 0.9rem 1.25rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    background: #f8fafc !important;
    outline: none !important;
    color: var(--dark) !important;
    box-sizing: border-box !important;
}
.inquiry-input-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(14,130,253,0.1) !important;
}

/* ── Searchable Country Dropdown ──────────── */
.custom-select-trigger {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s;
}
.custom-select-trigger.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14,130,253,0.1);
}
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}
.country-search-input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
}
.country-search-input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
}
.country-options-list {
    max-height: 180px;
    overflow-y: auto;
}
.country-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    color: var(--dark);
    text-align: left;
}
.country-option:hover {
    background: rgba(14, 130, 253, 0.08);
    color: var(--primary);
}

/* ── Custom Phone Code Dropdown ──────────── */
.code-select-trigger {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s;
    gap: 6px;
}
.code-select-trigger.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14,130,253,0.1);
}
.code-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 140px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
}
.code-options-list {
    max-height: 180px;
    overflow-y: auto;
}
.code-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    color: var(--dark);
    text-align: left;
}
.code-option:hover {
    background: rgba(14, 130, 253, 0.08);
    color: var(--primary);
}

/* ── Custom File Input ──────────── */
.custom-file-upload-wrapper:hover .file-upload-trigger {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(14,130,253,0.1);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    color: var(--muted);
}

/* ── Live AJAX Search Dropdown ──────────── */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-search-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
}

.ls-group-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}
.ls-group-label:first-child { margin-top: 5px; }

.ls-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.ls-item:hover { background: #f8fafc; }

.ls-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.ls-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-info {
    display: flex;
    flex-direction: column;
}
.ls-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 3px;
}
.ls-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.live-search-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
}
.btn-see-all {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-see-all:hover {
    background: var(--primary);
}
/* ==========================================================================
   Custom Global Styles (Added dynamically)
   ========================================================================== */

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* Services Card UI (Shared from Homepage) */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.service-card-v2 { background: #ffffff; border: 1px solid rgba(14, 130, 253, 0.05); border-radius: 24px; padding: 2.5rem 2rem; text-align: center; transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.service-card-v2:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 30px 60px rgba(14, 130, 253, 0.12); }
.service-icon-wrap { width: 80px; height: 80px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2.25rem; margin: 0 auto 1.5rem; transition: all 0.4s; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.service-card-v2:hover .service-icon-wrap { background: var(--accent); color: #fff; transform: rotateY(180deg); box-shadow: 0 15px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.service-card-v2 h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0; color: var(--dark); line-height:1.4; }
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; } }

/* Blog Card v5 (Reused from Homepage) */
.blog-card-v5 { background: #fff; border-radius: 24px; border: none; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); transition: all 0.4s ease; display:flex; flex-direction:column; height:100%; }
.blog-card-v5:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08); }
.blog-img-wrap { position: relative; height: 240px; overflow: hidden; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card-v5:hover .blog-img { transform: scale(1.1); }
.blog-date-badge { position: absolute; top: 20px; left: 20px; background: #fff; padding: 0.5rem 1rem; border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); z-index: 2; }
.blog-date-badge .day { display: block; font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1; }
.blog-date-badge .month { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); }
.blog-body { padding: 2rem; flex:1; display:flex; flex-direction:column; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.75rem; font-weight: 600; color: var(--text-light); flex-wrap:wrap; }
.blog-meta i { color: var(--primary); }
.blog-body h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; }
.blog-body h4 a { color: var(--dark); transition: color 0.3s; text-decoration:none; }
.blog-body h4 a:hover { color: var(--primary); }
.blog-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; flex:1; }
.blog-read-more { font-size: 0.85rem; font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s; text-decoration:none; }
.blog-read-more:hover { gap: 0.75rem; color: var(--dark); }

/* Premium Pagination */
.pagination-wrapper ul { display:inline-flex; align-items:center; gap:10px; list-style:none; padding:0; margin:0; }
.pagination-wrapper li a, .pagination-wrapper li span { display:flex; align-items:center; justify-content:center; width:45px; height:45px; border-radius:12px; background:#fff; color:var(--dark); font-weight:700; text-decoration:none; box-shadow:0 5px 15px rgba(0,0,0,0.03); transition:all 0.3s; border:1px solid transparent; }
.pagination-wrapper li a:hover { transform:translateY(-3px); border-color:var(--primary); color:var(--primary); box-shadow:0 10px 25px rgba(14,130,253,0.15); }
.pagination-wrapper li span.current { background:var(--primary); color:#fff; box-shadow:0 10px 25px rgba(14,130,253,0.25); }
.pagination-wrapper li a.prev, .pagination-wrapper li a.next { width:auto; padding:0 20px; gap:8px; }

/* Premium Article Inner */
.premium-article h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin: 40px 0 20px; }
.premium-article h3 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 30px 0 15px; }
.premium-article p { margin-bottom: 24px; }
.premium-article a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.premium-article blockquote { border-left: 4px solid var(--primary); padding: 24px 32px; background: var(--primary-soft); border-radius: 0 16px 16px 0; font-size: 1.25rem; font-style: italic; color: var(--dark); margin: 40px 0; line-height: 1.6; }
.premium-article ul, .premium-article ol { margin-bottom: 24px; padding-left: 20px; }
.premium-article li { margin-bottom: 10px; }
.premium-article img { border-radius: 12px; height: auto; max-width: 100%; margin: 30px 0; }
.post-share a:hover { background: var(--primary) !important; color: #fff !important; transform: translateY(-2px); }
@media (max-width: 991px) { .grid-2 { grid-template-columns: 1fr !important; } .sticky-sidebar { position: static !important; } }

/* --- Extracted from front-page.php --- */

    /* ===================== HERO V8 â€” Premium Split Layout ===================== */
    .hero-v8 {
        position: relative;
        z-index: 20;
        padding: 130px 0 80px;
        /* min-height: 100vh; */
        display: flex;
        align-items: center;
    }

    /* --- Animated Gradient Background --- */
    .hero-v8-bg-wrap {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
    }
    .hero-v8-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #0a1628 0%, #0c2d5e 30%, #0a1628 60%, #061224 100%);
    }
    .hero-v8-pattern {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 30px 30px;
    }

    /* Floating Orbs */
    .hero-v8-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
    }
    .hero-v8-orb-1 {
        width: 500px; height: 500px;
        background: rgba(14, 130, 253, 0.15);
        top: -10%; right: 10%;
        animation: orbFloat 20s ease-in-out infinite alternate;
    }
    .hero-v8-orb-2 {
        width: 350px; height: 350px;
        background: rgba(46, 204, 113, 0.1);
        bottom: -5%; left: 5%;
        animation: orbFloat 15s ease-in-out infinite alternate-reverse;
    }
    .hero-v8-orb-3 {
        width: 250px; height: 250px;
        background: rgba(147, 51, 234, 0.08);
        top: 40%; left: 40%;
        animation: orbFloat 25s ease-in-out infinite alternate;
    }
    @keyframes orbFloat {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(30px, -20px) scale(1.1); }
        100% { transform: translate(-20px, 30px) scale(0.95); }
    }

    /* --- Grid Layout --- */
    .hero-v8-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    /* --- Left Content --- */
    .hero-v8-left { position: relative; z-index: 2; }

    .hero-v8-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(14, 130, 253, 0.1);
        border: 1px solid rgba(14, 130, 253, 0.25);
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
        color: #60a5fa;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }
    .pill-dot {
        width: 8px; height: 8px;
        background: #10b981;
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.5); }
    }

    .hero-v8-title {
        font-size: clamp(2.75rem, 5vw, 4.5rem);
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.03em;
        color: #fff;
        margin-bottom: 1.5rem;
    }
    .hero-v8-highlight {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #10b981 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-v8-sub-text {
        color: rgba(255,255,255,0.5);
        font-weight: 700;
    }

    .hero-v8-desc {
        font-size: 1.1rem;
        color: rgba(255,255,255,0.6);
        line-height: 1.7;
        margin-bottom: 2rem;
        max-width: 520px;
    }

    /* --- Inline Search --- */
    .hero-v8-search {
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 16px;
        padding: 0.4rem;
        margin-bottom: 1.25rem;
        backdrop-filter: blur(20px);
        transition: border-color 0.3s;
    }
    .hero-v8-search:focus-within {
        border-color: var(--primary);
        background: rgba(255,255,255,0.1);
    }
    .v8-search-icon {
        padding: 0 1rem;
        color: #60a5fa;
        font-size: 1.25rem;
    }
    .hero-v8-search input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: #fff;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.75rem 0;
    }
    .hero-v8-search input::placeholder { color: rgba(255,255,255,0.35); }
    .v8-search-btn {
        background: var(--primary);
        color: #fff;
        border: none;
        padding: 0.75rem 1.75rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }
    .v8-search-btn:hover {
        background: #0061cc;
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(14, 130, 253, 0.4);
    }

    /* Quick Tags */
    .hero-v8-tags {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 2.5rem;
    }
    .v8-tag {
        padding: 0.35rem 0.85rem;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        color: rgba(255,255,255,0.45);
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }
    .v8-tag:hover {
        border-color: var(--primary);
        color: #60a5fa;
        background: rgba(14, 130, 253, 0.08);
    }

    /* Stats */
    .hero-v8-stats {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .v8-stat-num {
        display: block;
        font-size: 1.75rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -0.02em;
    }
    .v8-stat-label {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.4);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .v8-stat-divider {
        width: 1px;
        height: 40px;
        background: rgba(255,255,255,0.1);
    }

    /* --- Right Visual --- */
    .hero-v8-right { position: relative; z-index: 2; }

    .hero-v8-image-stack {
        position: relative;
        height: 550px;
    }

    .v8-img-main {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        height: 420px;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 40px 80px rgba(0,0,0,0.5);
        border: 2px solid rgba(255,255,255,0.08);
    }
    .v8-img-main img {
        width: 100%; height: 100%;
        object-fit: cover;
    }
    .v8-img-secondary {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 55%;
        height: 280px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 30px 60px rgba(0,0,0,0.4);
        border: 3px solid rgba(255,255,255,0.1);
        z-index: 2;
    }
    .v8-img-secondary img {
        width: 100%; height: 100%;
        object-fit: cover;
    }

    /* Floating Badges */
    .v8-float-badge {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 16px;
        padding: 0.85rem 1.25rem;
        z-index: 5;
        animation: badgeFloat 6s ease-in-out infinite;
    }
    .v8-float-badge i {
        font-size: 1.5rem;
        color: #10b981;
    }
    .v8-float-badge strong {
        display: block;
        color: #fff;
        font-size: 0.85rem;
    }
    .v8-float-badge span {
        color: rgba(255,255,255,0.5);
        font-size: 0.7rem;
    }

    .v8-badge-1 { top: 40px; left: -10px; animation-delay: 0s; }
    .v8-badge-2 { bottom: 60px; right: 10px; animation-delay: 3s; }

    @keyframes badgeFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    /* --- Responsive --- */
    @media (max-width: 992px) {
        .hero-v8 { padding: 110px 0 60px; min-height: auto; }
        .hero-v8-grid { grid-template-columns: 1fr; gap: 3rem; }
        .hero-v8-title { font-size: 2.5rem; }
        .hero-v8-right { display: none; }
        /* Search bar fix: icon left, input middle, button below */
        .hero-v8-search {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 0;
            border-radius: 16px;
            overflow: hidden;
        }
        .v8-search-icon { display: flex; padding: 0 0.75rem; flex-shrink: 0; }
        .hero-v8-search input { padding: 0.9rem 0.75rem; flex: 1; min-width: 0; width: auto; }
        .v8-search-btn {
            width: 100%;
            justify-content: center;
            border-radius: 0 0 12px 12px;
            padding: 0.85rem 1rem;
            margin: 0;
        }
        .hero-v8-stats { gap: 1.25rem; }
        .v8-stat-num { font-size: 1.25rem; }
    }

    @media (max-width: 480px) {
        .hero-v8 { padding: 90px 0 40px; }
        .hero-v8-title { font-size: 2rem; }
        
        /* Stats inline and scrollable on mobile */
        .hero-v8-stats { 
            flex-wrap: nowrap; 
            gap: 1.5rem; 
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 10px;
            /* Auto-scroll behavior via animation */
            animation: statsAutoScroll 8s linear infinite alternate;
        }
        .hero-v8-stats::-webkit-scrollbar {
            display: none;
        }
        
        .hero-v8-stats:active,
        .hero-v8-stats:focus,
        .hero-v8-stats:hover {
            animation-play-state: paused;
        }

        .v8-stat {
            flex: 0 0 auto;
        }

        .v8-stat-divider { 
            display: block; 
        }
        
        .hero-v8-tags { display: none; }
    }

    @keyframes statsAutoScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-20%); } /* Adjust percentage based on overflow */
    }
    /* Uniform Gaps and Alternating Backgrounds */
    .home-panel-wrapper > section,
    .home-panel-wrapper > div {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        margin: 0 !important;
    }
    .home-panel-wrapper.bg-even > section,
    .home-panel-wrapper.bg-even > div {
        background-color: #f8fafc !important; /* Light grayish blue */
    }
    .home-panel-wrapper.bg-odd > section,
    .home-panel-wrapper.bg-odd > div {
        background-color: #ffffff !important; /* Pure white */
    }
                /* Desktop: show grid, hide carousel */
                .hosp-grid-desktop { display: grid; }
                .hosp-carousel-mobile { display: none; }
                .hosp-header-mobile { display: none; }
                .hosp-view-all-mobile { display: none; }
                .hosp-header-desktop { display: flex; }

                /* Mobile/Tablet: show carousel, hide grid */
                @media (max-width: 992px) {
                    .hosp-grid-desktop { display: none !important; }
                    .hosp-carousel-mobile { display: block !important; }
                    .hosp-header-desktop { display: none !important; }
                    .hosp-header-mobile { display: block !important; }
                    .hosp-view-all-mobile { display: block !important; }
                    .hosp-swiper-mobile .hosp-card-v4,
                    .hosp-swiper-mobile .swiper-slide > * { height: 100%; }
                    .hosp-swiper-mobile .swiper-slide { height: auto; }
                }
                /* Desktop: show grid, hide carousel */
                .doc-grid-desktop { display: grid; }
                .doc-carousel-mobile { display: none; }
                .doc-header-mobile { display: none; }
                .doc-view-all-mobile { display: none; }
                .doc-header-desktop { display: flex; }

                /* Mobile/Tablet: show carousel, hide grid */
                @media (max-width: 992px) {
                    .doc-grid-desktop { display: none !important; }
                    .doc-carousel-mobile { display: block !important; }
                    .doc-header-desktop { display: none !important; }
                    .doc-header-mobile { display: block !important; }
                    .doc-view-all-mobile { display: block !important; }
                    .doc-swiper-mobile .swiper-slide { height: auto; }
                    .doc-swiper-mobile .swiper-slide > * { height: 100%; }
                }

.pkg-layout p {
    margin: 0 !important;
}

.hosp-main-grid aside {
    top: 200px !important;
}
