/* Variables */
:root {
    --primary-color: #0A192F;
    --secondary-color: #1A365D;
    --accent-color: #cbd5e1;
    --text-color: #334155;
    --heading-color: #0F172A;
    --bg-color: #FFFFFF;
    --bg-light: #F8FAFC;
    --max-width: 1300px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
}

body.nav-open {
    overflow: hidden;
}

img, picture, video, canvas, svg, iframe {
    max-width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { 
    font-size: 2.8rem; 
    letter-spacing: -0.5px;
}

h2 { 
    font-size: 2.2rem; 
    margin-top: 2rem; 
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.text-center h2::after,
.section-heading.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 { 
    font-size: 1.6rem; 
    margin-top: 1.75rem; 
    color: var(--secondary-color); 
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Utility Classes */
.bg-light { background-color: var(--bg-light); }
.mt-4 { margin-top: 2.5rem; }
.mt-2 { margin-top: 1rem; }
.text-center { text-align: center; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 3.5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 500;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(10, 25, 47, 0.1);
}

.hero .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.hero .btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
}

.btn-nav {
    background-color: #1e40af;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.site-chrome.header-compact .btn-nav,
.site-header.header-compact .btn-nav {
    background-color: #1e40af;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nav:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.site-chrome.header-compact .btn-nav:hover,
.site-header.header-compact .btn-nav:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Fixed chrome: slim top bar + main header */
.site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background: #06101f;
    border-bottom: 1px solid rgba(59, 130, 246, 0.28);
    color: #bfdbfe;
    font-size: 0.82rem;
    line-height: 1.3;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 34px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.top-bar__location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    max-width: 48%;
    color: #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar__location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #60a5fa;
}

.top-bar__location:hover {
    color: #ffffff;
}

.top-bar__location-short {
    display: none;
}

.top-bar__ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.top-bar__ticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: top-bar-marquee 28s linear infinite;
}

.top-bar__ticker-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 0.35rem;
}

.top-bar__ticker-item a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.top-bar__ticker-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.top-bar__dot {
    margin: 0 1.1rem;
    color: #475569;
}

@keyframes top-bar-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .top-bar__ticker-track {
        animation: none;
    }
}

/* Header - Floating (Transparent initially on desktop hero, compact dark on scroll across all pages) */
.site-header {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 1.1rem 0;
}

.site-chrome.header-compact .site-header {
    background: #0A192F;
    backdrop-filter: blur(12px);
    padding: 0.55rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.site-header.header-hidden {
    /* kept for compatibility; chrome handles fixed positioning */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex-shrink: 0;
    min-width: 0;
}

.header-doctor-avatar,
.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-logo {
    border: 2px solid rgba(147, 197, 253, 0.65);
}

.logo {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.25;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    text-decoration: none;
}

.logo:hover {
    color: #93c5fd;
}

.logo-text {
    min-width: 0;
}

.logo-text--short {
    display: none;
}

.primary-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list > li > a,
.nav-list > li > .dropdown-toggle {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.12rem;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    cursor: pointer;
}

.site-chrome.header-compact .nav-list > li > a,
.site-header.header-compact .nav-list > li > a,
.site-chrome.header-compact .nav-list > li > .dropdown-toggle,
.site-header.header-compact .nav-list > li > .dropdown-toggle {
    color: #ffffff;
}

.nav-list > li > a::after,
.nav-list > li > .dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > .dropdown-toggle:hover::after,
.dropdown:hover > .dropdown-toggle::after {
    width: 100%;
}

.site-chrome.header-compact .nav-list > li > a:hover,
.site-header.header-compact .nav-list > li > a:hover,
.site-chrome.header-compact .nav-list > li > .dropdown-toggle:hover,
.site-header.header-compact .nav-list > li > .dropdown-toggle:hover {
    color: #93c5fd;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-shrink: 0;
}

.btn-header-call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 64, 175, 0.28);
    color: #ffffff !important;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.site-chrome.header-compact .btn-header-call,
.site-header.header-compact .btn-header-call {
    background: rgba(30, 64, 175, 0.28);
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-header-call:hover {
    background: #1e40af;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.header-call-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #93c5fd;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-header-call:hover .header-call-icon {
    transform: scale(1.08);
    color: #ffffff;
}

/* Mobile drawer is a body-level sibling of the header */
.mobile-navigation {
    display: none;
}

.call-badge {
    display: none;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    padding: 1rem 0;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    border-top: 3px solid var(--primary-color);
}

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

.dropdown-menu li a {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.dropdown-menu li a:hover {
    background: #dbeafe;
    color: #1e40af;
    padding-left: 2rem;
}

/* Hamburger Menu & Backdrop */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.nav-open .site-chrome {
    z-index: 10050;
}

body.nav-open .mobile-nav-toggle {
    z-index: 10060;
    position: relative;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    padding: 10.5rem 0 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    min-width: 0;
}

.hero-content h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-doctor-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    min-height: 440px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: #112240;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-doctor-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.4), transparent);
    color: #ffffff;
    text-align: center;
}

.hero-doctor-caption h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
}

.hero-doctor-caption p {
    margin: 0;
    font-size: 0.82rem;
    color: #93c5fd;
}

/* General Sections */
.section {
    padding: 2.75rem 0;
}

.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8.25rem 0 2.5rem;
    text-align: center;
}

.page-header h2 {
    color: #ffffff;
}

.page-header h2::after {
    background-color: #ffffff;
}

.contact-header-info {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 600px) {
    .contact-header-info {
        padding: 1.25rem 1rem !important;
        margin: 1.5rem auto 0 !important;
    }
}

/* ==========================================
   SERVICES SHOWCASE CARDS (Reference Layout)
   ========================================== */
.services-showcase-section {
    background: #f8fafc;
    padding: 3rem 0;
}

.services-carousel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-banner-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    background: #0f172a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(30, 64, 175, 0.18);
}

.service-banner-card .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.85;
}

.service-banner-card:hover .card-bg-img {
    transform: scale(1.06);
    opacity: 0.95;
}

.service-banner-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.95) 100%);
}

.service-banner-card .card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.25rem;
}

.service-banner-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-banner-card h3 span.arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.service-banner-card:hover h3 span.arrow {
    transform: translateX(4px);
}

.service-banner-card p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1100px) {
    .services-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-carousel-grid {
        grid-template-columns: 1fr;
    }
}

.eye-specialist-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
    align-items: start;
    margin: 1.5rem 0;
}

.eye-specialist-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.eye-specialist-lead {
    background: #f8fafc;
    border-left: 4px solid #1e40af;
    border-right: 4px solid #1e40af;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.65;
}

.author-box {
    background: #f1f5f9;
    border-left: 4px solid var(--secondary-color);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    color: #475569;
    border-radius: 0 6px 6px 0;
}

.eye-specialist-image {
    text-align: center;
    max-width: 355px;
    margin: 0 auto;
    width: 100%;
}

.doctor-photo {
    width: 100%;
    max-width: 355px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.15);
    border: 1px solid #e2e8f0;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
}

.image-caption {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.5;
}

.image-caption strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.image-caption span a {
    color: #0f172a !important;
    font-weight: 500;
}

.image-caption span a:hover {
    color: #1e40af !important;
}

/* Accent Paragraph */
.accent-paragraph {
    font-size: 1.15rem;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

/* ==========================================
   OPHTHALMOLOGIST & OPHTHALMOLOGY COMPARISON
   ========================================== */
.ophthalmology-comparison-section {
    padding: 2.5rem 0;
    background: #ffffff;
}

.ophthalmology-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
    position: relative;
}

.ophthalmology-comparison-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #1e40af;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ophthalmology-comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
    border-top-color: #2563eb;
}

.ophthalmology-comparison-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0a192f;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ophthalmology-comparison-card p {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .ophthalmology-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Bullet and Grid Lists */
.bullet-list {
    margin: 1.5rem 0 1.5rem 2rem;
    font-size: 1.05rem;
}

.bullet-list li {
    margin-bottom: 0.75rem;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem 1.15rem;
    list-style: none;
    margin: 1.25rem 0 0.5rem;
}

.grid-list li {
    background: #ffffff;
    padding: 0.75rem 1.1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1e40af;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.04);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-height: 48px;
}

.grid-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
    border-left-color: #3b82f6;
}

.diseases-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem 1.15rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .diseases-grid-list .disease-center:nth-child(10) {
        grid-column: 1 / 2;
    }
}

@media (max-width: 767px) {
    .grid-list,
    .diseases-grid-list {
        grid-template-columns: 1fr;
    }
}

/* Clinical Case Studies (Before/After) */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.before-after-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.case-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.case-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.18rem;
}

.case-tag {
    font-size: 0.78rem;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #e2e8f0;
}

.image-box {
    background: #ffffff;
    padding: 1rem 0.85rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.patient-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.patient-case-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    display: block;
    transition: transform 0.3s ease;
}

.before-after-card:hover .patient-case-img {
    transform: scale(1.02);
}

.case-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}

.before-badge {
    background: #dc2626;
    color: #ffffff;
}

.after-badge {
    background: #16a34a;
    color: #ffffff;
}

.case-caption {
    font-size: 0.84rem;
    color: #475569;
    margin-top: 0.75rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Combined before/after composites (single image per case) */
.ba-composite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.ba-composite-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.ba-composite-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f8fafc;
}

.ba-composite-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.15rem;
}

.ba-composite-card figcaption strong {
    font-size: 1.02rem;
    color: #0f172a;
}

.ba-composite-card figcaption span {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
}

.ba-composite-note {
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .ba-composite-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   PATIENT EXPERIENCES / REVIEWS GRID
   ========================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.08);
}

.review-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: #f59e0b;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.review-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.reviewer-meta strong {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
}

.reviewer-meta span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
}

@media (max-width: 950px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   ULTRA-PROFESSIONAL FAQ ACCORDION
   ========================================== */
.faq-section {
    padding: 3rem 0;
    background: #ffffff;
}

.faq-container {
    max-width: 1050px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.06);
}

.faq-item.active {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
    background: #ffffff;
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 1.75rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    font-family: inherit;
}

.faq-question-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question-title,
.faq-question-btn:hover .faq-question-title {
    color: #1e40af;
}

.faq-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon-wrap {
    background: #1e40af;
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-icon-wrap svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.faq-answer-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer-collapse {
    max-height: 600px;
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 1.75rem 1.5rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.75;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
}

/* ==========================================
   VIDEO RESOURCES SECTION
   ========================================== */
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(30, 64, 175, 0.12);
}

.video-card-interactive {
    cursor: pointer;
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000000;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card-interactive:hover .video-thumb-wrap img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    transition: all 0.3s ease;
}

.play-overlay svg {
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-card-interactive:hover .play-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.video-card-interactive:hover .play-overlay svg {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 20px rgba(220, 38, 38, 0.6));
}

.video-thumb-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-card-body h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.4;
}

.video-card-body p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.video-cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: #dc2626;
    display: inline-block;
}

/* ==========================================
   FOOTER — profile / links / services / hours+map
   ========================================== */
.site-footer {
    background: linear-gradient(160deg, #0a192f 0%, #0f274f 55%, #122f66 100%);
    color: #c7d8f0;
    padding: 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 1.75rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr 1.05fr 1.35fr;
    gap: 2.75rem;
    margin-bottom: 2.5rem;
}

.footer-heading {
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.footer-brand__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(147, 197, 253, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.footer-brand__name {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-brand__clinic {
    margin: 0.2rem 0 0;
    color: #93c5fd;
    font-size: 0.88rem;
    line-height: 1.35;
}

.footer-bio {
    color: #a8c0df;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.footer-contact-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
}

.footer-contact-list a {
    color: #e2e8f0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(147, 197, 253, 0.45);
}

.footer-contact-list a:hover {
    color: #ffffff;
    text-decoration-color: #93c5fd;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
}

.footer-social__link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.18);
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social__link:hover {
    background: #3b82f6;
    transform: translateY(-1px);
}

.footer-social__link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a8c0df;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-hours-clinic {
    margin: 0 0 0.2rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-hours-place {
    margin: 0 0 0.9rem;
    color: #93afd4;
    font-size: 0.9rem;
}

.footer-hours-list {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #a8c0df;
    font-size: 0.9rem;
}

.footer-hours-list strong {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.footer-map-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.footer-map-open {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 25, 47, 0.88);
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.footer-map-open svg {
    width: 12px;
    height: 12px;
}

.footer-map-open:hover {
    background: #1e40af;
}

.footer-map-wrapper {
    width: 100%;
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem 0.75rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #6b87ab;
    font-size: 0.86rem;
}

.footer-legal a {
    color: #93afd4;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    color: #6b87ab;
    font-size: 0.82rem;
}

.footer-bottom p {
    margin: 0;
    color: #6b87ab;
}

.footer-creds {
    text-align: right;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem;
    }
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-inner {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-creds {
        text-align: center;
    }
}

/* ==========================================
   APPOINTMENT SECTION
   ========================================== */
.appointment-comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin: 2.5rem 0;
}

.appointment-info-col,
.appointment-form-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.appointment-card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.accent-line {
    width: 45px;
    height: 3px;
    background: #1e40af;
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.phone-highlight {
    background: #eff6ff;
    border-left: 4px solid #1e40af;
    padding: 1.1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    overflow-wrap: break-word;
}

.appointment-quick-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.75rem;
    width: 100%;
}

.appointment-quick-actions .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appointment-quick-actions .btn-call {
    background: #1e40af;
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.appointment-quick-actions .btn-call:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

.appointment-quick-actions .btn-whatsapp {
    background: #1e40af;
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.appointment-quick-actions .btn-whatsapp:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

/* Location Map Section */
.clinic-location-section {
    padding: 2.75rem 0;
    background: #ffffff;
}

.location-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-header-row h2 {
    margin: 0;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    background: #1e40af;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.btn-directions:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

.location-map-frame {
    width: 100%;
    height: min(420px, 55vw);
    margin: 1.25rem 0 0.85rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.08);
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
}

.location-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.location-map-link {
    margin: 0 0 1.75rem;
}

.comparison-divider {
    width: 1px;
    background: #e2e8f0;
}

.form-field {
    margin-bottom: 1.25rem;
    position: relative;
    width: 100%;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    box-sizing: border-box;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.btn-submit-green,
.btn-submit-blue {
    background-color: #1e40af;
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    box-sizing: border-box;
}

.btn-submit-green:hover,
.btn-submit-blue:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

/* ==========================================
   FOOTER CONTACT ICONS
   ========================================== */
.footer-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.footer-icon svg {
    width: 15px;
    height: 15px;
}

/* ==========================================
   SERVICE PAGE CONTENT IMAGES & SUBHEADINGS
   ========================================== */
.service-feature-banner {
    width: 100%;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.service-feature-banner img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.service-feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.service-feature-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
    border: 1px solid #e2e8f0;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.content-image {
    width: 100%;
    max-height: 360px;
    border-radius: 14px;
    object-fit: cover;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

/* Facility blocks: text + clinic photo side by side on PC */
.facility-feature {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
    margin: 1.75rem 0 2.75rem;
}

.facility-feature--reverse .facility-feature__media {
    order: -1;
}

.facility-feature__text h3 {
    margin-top: 0;
}

.facility-feature__media {
    margin: 0;
    position: sticky;
    top: 7.5rem;
}

.facility-feature__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    background: #e8eef7;
}

.facility-feature__media--landscape img {
    aspect-ratio: 4 / 3;
    max-height: none;
    height: auto;
}

.facility-feature__media figcaption {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .facility-feature {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.25rem 0 2rem;
    }

    .facility-feature--reverse .facility-feature__media {
        order: -1;
    }

    .facility-feature__media {
        position: static;
        order: -1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .facility-feature__media img {
        max-height: 420px;
    }

    .facility-feature__media--landscape img {
        max-height: none;
    }
}

/* ===================================================
   RESPONSIVE LAYOUT & MOBILE VIEWPORT FIXES (<= 900px)
   =================================================== */
@media (max-width: 900px) {
    /* FLOATING COMPACT HEADER ON MOBILE */
    .site-chrome {
        z-index: 9990 !important;
    }

    .top-bar__inner {
        gap: 0.65rem;
        min-height: 30px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-bar__location-full {
        display: none;
    }

    .top-bar__location-short {
        display: inline;
    }

    .top-bar__location {
        max-width: 42%;
        font-size: 0.75rem;
    }

    .top-bar__ticker {
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }

    .top-bar__ticker-track {
        animation-duration: 22s;
    }

    .site-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        background: rgba(10, 25, 47, 0.96) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0.5rem 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
        border-bottom: 1px solid rgba(59, 130, 246, 0.25) !important;
        z-index: 1 !important;
        transform: none !important;
    }

    .header-container {
        padding: 0 16px;
        gap: 0.75rem;
    }


    .site-branding {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header-doctor-avatar,
    .header-logo {
        width: 40px;
        height: 40px;
        border-width: 2px;
        flex-shrink: 0;
    }

    .logo {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        font-weight: 700;
        line-height: 1.2;
        gap: 0.5rem;
        max-width: 100%;
    }

    .logo-text--full {
        display: none;
    }

    .logo-text--short {
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        padding: 8rem 0 3.5rem !important;
        min-height: auto !important;
    }

    .page-header {
        padding: 7.25rem 0 2.25rem !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-image-wrapper {
        min-height: 260px;
        max-height: 380px;
    }

    .eye-specialist-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .appointment-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .comparison-divider {
        display: none;
    }

    .form-row-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Mobile Header Action Buttons */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .btn-header-call {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #1e40af;
        border: 1px solid #3b82f6;
    }

    .header-call-text {
        display: none;
    }

    .header-call-icon {
        width: 20px;
        height: 20px;
        color: #ffffff;
    }

    .site-header .btn-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Hide desktop nav; show body-level mobile drawer */
    .primary-navigation--desktop {
        display: none !important;
    }

    .mobile-navigation {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 82%;
        max-width: 320px;
        background: #0a192f;
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.25rem 2.5rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10045;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        gap: 0.85rem;
        margin: 0;
    }

    .mobile-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-navigation .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-navigation .nav-list > li {
        width: 100%;
    }

    .mobile-navigation .nav-list > li > a {
        display: block;
        padding: 0.85rem 1rem;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        white-space: normal;
        text-decoration: none;
    }

    .mobile-navigation .nav-list > li > a:hover,
    .mobile-navigation .nav-list > li > a:focus {
        background: #1e40af;
        color: #ffffff;
    }

    .mobile-navigation .dropdown {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.35rem;
    }

    .mobile-navigation .dropdown-label {
        display: block;
        padding: 0.85rem 1rem;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-navigation .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        border: none;
        margin: 0.35rem 0 0;
        padding: 0.25rem 0 0.25rem 0.5rem;
        min-width: 100%;
        list-style: none;
    }

    .mobile-navigation .dropdown-menu li a {
        padding: 0.65rem 0.85rem;
        color: #cbd5e1;
        font-size: 0.92rem;
        font-weight: 400;
        border-radius: 6px;
        display: block;
        line-height: 1.4;
        white-space: normal;
        text-decoration: none;
    }

    .mobile-navigation .dropdown-menu li a:hover {
        background: rgba(59, 130, 246, 0.25);
        color: #ffffff;
        padding-left: 1.1rem;
    }

    .mobile-navigation .drawer-book-btn,
    .mobile-navigation .drawer-call-btn {
        display: block;
        text-align: center;
        padding: 13px 20px;
        border-radius: 8px;
        margin-top: 0.35rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-navigation .drawer-book-btn {
        background: #1e40af;
        color: #ffffff !important;
        border: 1px solid #3b82f6;
    }

    .mobile-navigation .drawer-call-btn {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff !important;
        border: 1px solid rgba(147, 197, 253, 0.45);
    }

    .service-feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================================
   RESPONSIVE LAYOUT (<= 600px)
   =================================================== */
@media (max-width: 600px) {
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .container {
        padding: 0 16px !important;
    }

    .logo {
        font-size: 0.95rem;
    }

    .logo-text--short {
        font-size: 0.95rem;
    }

    .header-doctor-avatar,
    .header-logo {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding: 5.75rem 0 3rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    .page-header {
        padding: 5.5rem 0 2rem !important;
    }

    .appointment-quick-actions {
        flex-direction: column;
        gap: 0.85rem;
    }

    .appointment-quick-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .comparison-display {
        grid-template-columns: 1fr;
    }

    .appointment-info-col,
    .appointment-form-col {
        padding: 1.5rem 1.25rem !important;
    }

    .ophthalmology-comparison-card {
        padding: 1.5rem 1.25rem;
    }

    .review-card {
        padding: 1.5rem 1.25rem;
    }

    .faq-question-btn {
        padding: 1.1rem 1.25rem;
    }

    .faq-answer-inner {
        padding: 0 1.25rem 1.25rem;
    }

    .video-card-body {
        padding: 1.25rem;
    }

    .bullet-list {
        margin-left: 1.25rem !important;
        padding-left: 0;
    }

    .eye-specialist-lead {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .phone-highlight {
        padding: 0.9rem 1rem;
    }

    .footer-inner {
        padding: 3rem 16px 1.5rem;
    }

    .btn {
        padding: 12px 20px;
    }
}

/* ===================================================
   ULTRA-COMPACT SCREENS (<= 360px)
   =================================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px !important;
    }

    .logo {
        font-size: 0.88rem;
    }

    .logo-text--short {
        font-size: 0.88rem;
    }

    .header-doctor-avatar,
    .header-logo {
        width: 32px;
        height: 32px;
    }

    .btn-header-call {
        width: 36px;
        height: 36px;
    }

    .mobile-nav-toggle {
        width: 36px;
        height: 36px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }
}

/* Homepage FINAL DRAFT v4.1 — content-layer helpers (no redesign) */
.hero-credential {
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.98rem;
    margin: -1.25rem 0 1.75rem;
}

.hero-cta-note {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 28rem;
}

.clinic-facts {
    margin: 1.5rem 0 0;
}

.clinic-facts-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 0.5rem 1.25rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.clinic-facts-row dt {
    font-weight: 600;
    color: var(--heading-color);
}

.clinic-facts-row dd {
    margin: 0;
    color: var(--text-color);
}

.section-link {
    margin-top: 1.25rem;
}

.section-link a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.urdu-inline {
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: 1.05em;
    unicode-bidi: isolate;
}

.phone-plain {
    white-space: nowrap;
}

.btn-whatsapp-cta {
    display: inline-block;
    background-color: #128C7E;
    color: #ffffff !important;
    border: 2px solid #128C7E;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-whatsapp-cta:hover {
    background-color: #075E54;
    border-color: #075E54;
    color: #ffffff !important;
}

.doctor-credentials {
    margin-bottom: 1.25rem;
}

.visit-final h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.medical-note-section {
    padding: 1.75rem 0;
}

.medical-note {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 9980;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 56px;
    padding: 0.7rem 1rem 0.7rem 0.75rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    background: #1ebe57;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
    outline: none;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.floating-whatsapp__label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-right: 0.15rem;
}

@media (max-width: 640px) {
    .floating-whatsapp {
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        min-height: 56px;
        min-width: 56px;
        padding: 0.85rem;
        border-radius: 50%;
        justify-content: center;
    }

    .floating-whatsapp__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.mobile-whatsapp-bar {
    display: none;
}

@media (max-width: 900px) {
    .clinic-facts-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* Fade-up scroll reveal (used site-wide via script.js) */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   DOCTOR PROFILE PAGE (/dr-kashif-jahangir/)
   ========================================== */
body.doctor-profile {
    padding-bottom: 0;
}

body.doctor-profile .dp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0A192F 0%, #122a4a 48%, #1A365D 100%);
    color: #ffffff;
    padding: 7.5rem 0 4rem;
}

body.doctor-profile .dp-hero__atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(148, 163, 184, 0.12), transparent 50%);
    pointer-events: none;
}

body.doctor-profile .dp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

body.doctor-profile .dp-hero__brand {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin: 0 0 0.85rem;
}

body.doctor-profile .dp-hero h1 {
    color: #ffffff;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    max-width: 18ch;
}

body.doctor-profile .dp-hero h1::after {
    content: none;
}

body.doctor-profile .dp-hero__lead {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.75rem;
    max-width: 42rem;
}

body.doctor-profile .dp-hero__lead a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.doctor-profile .dp-hero__lead a:hover {
    color: #cbd5e1;
}

body.doctor-profile .dp-hero__portrait {
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

body.doctor-profile .dp-hero__photo {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(226, 232, 240, 0.25);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.doctor-profile .dp-hero__portrait:hover .dp-hero__photo {
    transform: translateY(-4px);
}

body.doctor-profile .dp-hero__caption {
    margin-top: 1rem;
    color: #e2e8f0;
}

body.doctor-profile .dp-hero__caption strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

body.doctor-profile .dp-hero__caption span {
    font-size: 0.92rem;
    color: #cbd5e1;
}

body.doctor-profile .dp-hero .fade-up {
    transition-delay: 0s;
}

body.doctor-profile .dp-hero .dp-hero__portrait.fade-up {
    transition-delay: 0.12s;
}

body.doctor-profile .dp-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

body.doctor-profile .dp-service {
    padding: 1.5rem 1.35rem;
    border-top: 3px solid var(--secondary-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

body.doctor-profile .dp-service.fade-up {
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    transition-delay: var(--dp-delay, 0ms);
}

body.doctor-profile .dp-service.fade-up.visible {
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    transition-delay: 0ms;
}

body.doctor-profile .dp-service.visible:hover,
body.doctor-profile .dp-service.visible:focus-within {
    transform: translateY(-5px);
    border-top-color: #1e40af;
    box-shadow: 0 14px 32px rgba(10, 25, 47, 0.1);
}

body.doctor-profile .dp-service h3 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    color: var(--heading-color);
}

body.doctor-profile .dp-service h3::after {
    content: none;
}

body.doctor-profile .dp-service p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-color);
    line-height: 1.65;
}

body.doctor-profile .dp-services-note {
    margin-top: 1.75rem;
    color: #475569;
    font-size: 0.98rem;
}

body.doctor-profile .dp-severity {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

body.doctor-profile .dp-band {
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

body.doctor-profile .dp-band h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

body.doctor-profile .dp-band h3::after {
    content: none;
}

body.doctor-profile .dp-band > p {
    margin: 0 0 0.85rem;
    color: #475569;
}

body.doctor-profile .dp-band .bullet-list {
    margin-bottom: 0;
}

body.doctor-profile .dp-band--book {
    border-left: 5px solid #1e40af;
}

body.doctor-profile .dp-band--urgent {
    border-left: 5px solid #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

body.doctor-profile .dp-band--urgent h3 {
    color: #92400e;
}

body.doctor-profile .dp-band--emergency {
    border-left: 5px solid #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

body.doctor-profile .dp-band--emergency h3 {
    color: #991b1b;
}

body.doctor-profile .dp-emergency-note {
    margin-top: 1.75rem;
}

body.doctor-profile .dp-emergency-note p {
    color: #475569;
    font-size: 0.98rem;
}

body.doctor-profile .dp-sources {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

body.doctor-profile .dp-sources__heading {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    text-align: left;
}

body.doctor-profile .dp-sources__heading::after {
    left: 0;
    transform: none;
}

body.doctor-profile .dp-sources__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.doctor-profile .dp-sources__list a {
    color: #1e40af;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

body.doctor-profile .dp-sources__list a:hover {
    color: #0A192F;
    border-bottom-color: #94a3b8;
}

@media (max-width: 900px) {
    body.doctor-profile .dp-hero {
        padding: 6.5rem 0 3rem;
    }

    body.doctor-profile .dp-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    body.doctor-profile .dp-hero h1 {
        max-width: none;
    }

    body.doctor-profile .dp-hero__portrait {
        order: -1;
        max-width: 280px;
    }

    body.doctor-profile .dp-services {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 601px) and (max-width: 1100px) {
    body.doctor-profile .dp-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   KE-C02 SQUINT SURGERY ARTICLE PAGE
   ========================================== */
body.ke-article-page .ke-hero {
    background: linear-gradient(145deg, #0A192F 0%, #122a4a 48%, #1A365D 100%);
    color: #ffffff;
    padding: 8.25rem 0 2.75rem;
}

body.ke-article-page .ke-hero__inner {
    max-width: var(--max-width);
}

body.ke-article-page .ke-hero h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
}

body.ke-article-page .ke-hero__lead {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.7;
}

body.ke-article-page .ke-hero__lead a,
body.ke-article-page .ke-breadcrumb a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.ke-article-page .ke-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

body.ke-article-page .ke-breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4rem;
}

body.ke-article-page .ke-body {
    max-width: 860px;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

body.ke-article-page .ke-body h2 {
    margin: 2.5rem 0 0.9rem;
}

body.ke-article-page .ke-body h3 {
    margin: 1.75rem 0 0.6rem;
}

body.ke-article-page .ke-body p,
body.ke-article-page .ke-body li {
    line-height: 1.75;
}

body.ke-article-page .ke-body p + p {
    margin-top: 0.9rem;
}

body.ke-article-page .ke-body ul {
    margin: 0.9rem 0 0 1.25rem;
}

body.ke-article-page .ke-body a {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.ke-article-page .ke-body a:focus-visible,
body.ke-article-page .ke-hero a:focus-visible,
body.ke-article-page .ke-table-wrap:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

body.ke-article-page .ke-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.ke-article-page .ke-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.97rem;
}

body.ke-article-page .ke-table th,
body.ke-article-page .ke-table td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

body.ke-article-page .ke-table thead th {
    background: var(--bg-light);
    color: var(--heading-color);
}

body.ke-article-page .ke-table tbody tr:last-child th,
body.ke-article-page .ke-table tbody tr:last-child td {
    border-bottom: 0;
}

body.ke-article-page .ke-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

body.ke-article-page .ke-faq__alt {
    color: #475569;
    margin-top: 0.25rem;
}

body.ke-article-page .ke-faq__alt--ur {
    text-align: right;
}

body.ke-article-page .ke-faq__a {
    margin-top: 0.5rem;
}

body.ke-article-page .ke-final-cta {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-left: 4px solid #128C7E;
    border-radius: 4px;
}

body.ke-article-page .ke-sources li {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    body.ke-article-page .ke-hero {
        padding: 7.25rem 0 2rem;
    }
}

/* Authority / trust pages */
body.ke-article-page .page-header h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    line-height: 1.2;
}

body.ke-article-page .ke-breadcrumb--center ol {
    justify-content: center;
}

body.ke-article-page .ke-body h2::after {
    display: none;
}

body.ke-article-page .ke-body > p:first-child {
    font-size: 1.1rem;
}
