/* ECPNG Health 2026 — structural stylesheet.
   Design tokens (--ws-*) come from the Admin Portal theme-bridge; every color,
   font and radius here defers to those variables with safe fallbacks. */

:root {
  --e26-primary: var(--ws-primary, #1e40af);
  --e26-accent: var(--ws-accent, #c1121f);
  --e26-text: var(--ws-text, #1e293b);
  --e26-bg: var(--ws-bg, #ffffff);
  --e26-header-bg: var(--ws-header-bg, #1e40af);
  --e26-header-fg: var(--ws-header-text, #ffffff);
  --e26-footer-bg: var(--ws-footer-bg, #a40f1a);
  --e26-footer-fg: var(--ws-footer-text, #ffffff);
  --e26-radius: var(--ws-card-radius, 12px);
  --e26-font: var(--ws-font, 'Roboto', system-ui, sans-serif);
  --e26-width: var(--ws-content-width, 1180px);
}

html { scroll-behavior: smooth; scroll-padding-top: 140px; }
*, *::before, *::after { box-sizing: border-box; }
[id] { scroll-margin-top: 140px; }
body.ecpng2026 { margin: 0; font-family: var(--e26-font); color: var(--e26-text); background: var(--e26-bg); line-height: 1.65; }
img { max-width: 100%; height: auto; }
.e26-container { max-width: var(--e26-width); margin: 0 auto; padding: 0 20px; }
.e26-narrow { max-width: 1000px; }
.e26-center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; background: #fff; color: #000; padding: 10px 16px; width: auto; height: auto; clip: auto; }

/* ── Topbar ── */
.e26-topbar { background: var(--ws-topbar-bg, #1e3a8a); color: var(--ws-topbar-text, #fff); font-size: .82rem; }
.e26-topbar-row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
/* !important guards: the generated global a/a:hover rules must not bleed into chrome */
.e26-topbar a { color: var(--ws-topbar-text, #fff) !important; text-decoration: none; padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px; }
.e26-social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.e26-social a { min-width: 40px; min-height: 40px; justify-content: center; }
.e26-social a, .e26-social a i { color: var(--ws-social-icon, var(--ws-topbar-text, #fff)) !important; }
.e26-social a:hover, .e26-social a:hover i { color: var(--ws-social-icon-hover, #fecaca) !important; }

/* ── Header ── */
.e26-header { position: sticky; top: 0; z-index: 1000; background: var(--e26-header-bg); color: var(--e26-header-fg); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
@supports (backdrop-filter: blur(12px)) {
  .e26-header { backdrop-filter: blur(12px) saturate(160%); }
}
.e26-header-row { display: flex; align-items: center; min-height: 78px; position: relative; gap: 16px; }
.e26-brand img { max-height: 64px; width: auto; display: block; }
.e26-brand-fallback { color: inherit; font-size: 2rem; }
.e26-site-name { margin: 0; font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.6rem); position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.e26-site-name a, .e26-site-name a:visited { color: inherit !important; text-decoration: none; }
.e26-nav-toggle { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.4rem; min-width: 44px; min-height: 44px; cursor: pointer; display: none; }
.e26-nav { background: transparent; }
.e26-nav-row { display: flex; align-items: center; gap: 14px; }
.e26-nav-row .e26-menu { flex: 1; }
/* Header search — honors the portal "Show Search" toggle (hidden via generated CSS when off) */
.e26-search { display: flex; align-items: center; gap: 0; margin: 0 0 8px; }
.e26-search input[type="search"] { width: 120px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px 0 0 8px; background: rgba(255,255,255,.14); color: var(--e26-header-fg); font: inherit; font-size: .86rem; transition: width .2s ease; }
.e26-search input[type="search"]::placeholder { color: color-mix(in srgb, var(--e26-header-fg) 75%, transparent); }
.e26-search input[type="search"]:focus { width: 190px; outline: none; background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.65); }
.e26-search button { min-width: 40px; min-height: 37px; border: 1px solid rgba(255,255,255,.35); border-left: 0; border-radius: 0 8px 8px 0; background: rgba(255,255,255,.2); color: var(--e26-header-fg); cursor: pointer; }
.e26-search button:hover { background: rgba(255,255,255,.32); }
.e26-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0 0 8px; }
/* !important guards: beat the generated global a { color } / a:hover rules */
.e26-menu a { display: block; padding: 10px 12px; color: var(--ws-nav-link, var(--e26-header-fg)) !important; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 8px; white-space: nowrap; }
.e26-menu a:hover, .e26-menu .current-menu-item > a { color: var(--ws-nav-link-hover, #fecaca) !important; }
.e26-menu .sub-menu { display: none; position: absolute; background: var(--ws-submenu-bg, #fff); list-style: none; padding: 6px; margin: 0; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16); min-width: 220px; z-index: 1001; overflow: visible !important; }
.e26-menu li { position: relative; }
.e26-menu li:hover > .sub-menu, .e26-menu li:focus-within > .sub-menu { display: block; }
.e26-menu .sub-menu a { color: var(--ws-submenu-text, #1e293b) !important; }
.e26-menu .sub-menu a:hover { background: var(--ws-submenu-hover-bg, #f1f5f9) !important; color: var(--ws-submenu-text, #1e293b) !important; }
/* Third level: fly out to the right of the open dropdown */
.e26-menu .sub-menu .sub-menu { left: 100%; top: -6px; margin-left: 2px; }
.e26-menu > li.menu-item-has-children > a::after { content: ' ▾'; font-size: .72em; opacity: .85; }
.e26-menu .sub-menu li.menu-item-has-children > a::after { content: ' ›'; float: right; margin-left: 8px; font-weight: 700; }
@media (max-width: 900px) {
  .e26-menu .sub-menu .sub-menu { left: auto; top: auto; margin: 2px 0 4px 14px; }
}

/* ── Hero ── */
.e26-hero { position: relative; min-height: var(--ws-hero-height, 480px); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; color: #fff; }
.e26-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0, var(--ws-hero-overlay, .35)); }
.e26-hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; padding: 60px 24px; color: var(--hero-slide-color, #fff); }
.e26-hero-content h1, .e26-hero-content .hero-slide-title { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0 0 14px; color: var(--hero-slide-color, #fff); }
.e26-hero-content p { font-size: clamp(.95rem, 2vw, 1.12rem); margin: 0 0 22px; }
.e26-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; color: var(--e26-primary); font-size: 1rem; }
.e26-hero-nav.prev { left: 14px; } .e26-hero-nav.next { right: 14px; }
.e26-hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.e26-hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.e26-hero-dots button[aria-current="true"] { background: #fff; }

/* ── Sections ── */
.e26-section { padding: 56px 0; }
.e26-alt { background: color-mix(in srgb, var(--e26-primary) 4%, #fff); }
.e26-section-head { text-align: center; margin-bottom: 34px; }
.e26-section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; }
.e26-main > .e26-section:first-child { padding-top: 40px; }

/* ── Buttons ── */
.e26-btn, a.e26-btn:visited { display: inline-block; background: var(--e26-primary); color: var(--ws-button-text, #fff) !important; font-weight: 600; padding: 11px 22px; border: 0; border-radius: var(--ws-btn-radius, 8px); text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.e26-btn:hover { background: var(--ws-btn-hover-bg, var(--ws-secondary, #1e3a8a)); color: var(--ws-btn-hover-text, #fff) !important; transform: translateY(-2px); }

/* ── Cards ── */
.e26-cards-static, .e26-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.e26-card, a.e26-card:visited { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--e26-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--e26-text) !important; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.e26-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.e26-card h3, .e26-card-title { margin: 0; font-size: 1.08rem; }
.e26-card p { margin: 0; font-size: .92rem; color: #475569; }
.e26-card .card-btn { margin-top: auto; align-self: flex-start; }
.e26-card-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #f8fafc; padding: 6px; }
.e26-card-photo { display: block; height: 150px; margin: -22px -22px 4px; border-radius: var(--e26-radius) var(--e26-radius) 0 0; background-size: cover; background-position: center; background-color: color-mix(in srgb, var(--e26-primary) 12%, #fff); }
.e26-card-photo + .e26-card-logo { margin-top: -36px; position: relative; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.e26-meta { font-size: .8rem; color: #64748b; }
.e26-story img { border-radius: calc(var(--e26-radius) - 4px); width: 100%; object-fit: cover; aspect-ratio: 16/9; }

/* ── Quick access ── */
.e26-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.e26-quick-card, a.e26-quick-card:visited { position: relative; overflow: hidden; background: var(--card-bg, var(--e26-primary)); color: var(--card-fg, #fff) !important; border-radius: var(--e26-radius); padding: 22px 18px; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.e26-quick-card.has-bg { background-image: linear-gradient(color-mix(in srgb, var(--card-bg) 68%, transparent), color-mix(in srgb, var(--card-bg) 86%, #000)), var(--card-img); background-size: cover; background-position: center; }
.e26-quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.e26-quick-card i { font-size: 1.7rem; margin-bottom: 10px; display: block; }
.e26-quick-card h3 { margin: 0 0 6px; font-size: 1rem; color: inherit; }
.e26-quick-card p { margin: 0; font-size: .82rem; opacity: .92; }
.e26-quick-logo { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 10px; display: block; background: #fff; border-radius: 50%; padding: 6px; }

/* ── Services ── */
.e26-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.e26-service-card, a.e26-service-card:visited { position: relative; overflow: hidden; background: var(--card-bg); color: var(--card-fg) !important; border-radius: var(--e26-radius); padding: 26px 22px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.e26-service-card.has-bg { background-image: linear-gradient(color-mix(in srgb, var(--card-bg) 62%, transparent), color-mix(in srgb, var(--card-bg) 84%, #000)), var(--card-img); background-size: cover; background-position: center; }
.e26-service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.e26-service-card i { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.e26-service-card h3 { margin: 0 0 8px; color: inherit; font-size: 1.05rem; }
.e26-service-card p { margin: 0; font-size: .87rem; opacity: .93; }

/* ── Carousel (islands) ── */
.e26-carousel { position: relative; }
.e26-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 340px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.e26-carousel-track > * { scroll-snap-align: start; }
.e26-carousel-track.e26-carousel-flex { display: flex; gap: 20px; scroll-snap-type: x mandatory; overflow-x: auto; }
.e26-carousel-cell { scroll-snap-align: start; display: flex; flex-direction: column; }
.e26-carousel-cell > * { flex: 1; width: 100%; }
.e26-carousel-btn { position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.18); color: var(--e26-primary); cursor: pointer; }
.e26-carousel-btn.prev { left: -8px; } .e26-carousel-btn.next { right: -8px; }
.e26-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.e26-carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--e26-primary) 28%, #e2e8f0); cursor: pointer; padding: 0; transition: transform .15s, background .15s; }
.e26-carousel-dots button[aria-current="true"] { background: var(--e26-primary); transform: scale(1.25); }
.e26-badge { display: inline-block; background: var(--ws-badge-bg, var(--e26-primary)); color: var(--ws-badge-text, #fff); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 20px; align-self: flex-start; }

/* ── Milestones ── */
.e26-milestones { background: linear-gradient(135deg, var(--e26-primary), var(--ws-secondary, #1e3a8a)); color: #fff; }
.e26-milestones .e26-section-head h2 { color: #fff; }
.e26-milestones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; text-align: center; }
.e26-milestone i { font-size: 1.8rem; opacity: .9; }
.e26-milestone strong { display: block; font-size: 2.1rem; margin: 8px 0 2px; }
.e26-milestone span { font-size: .88rem; opacity: .92; }

/* ── Appointment form ── */
.e26-form { display: grid; gap: 14px; }
.e26-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.e26-form label { font-weight: 600; font-size: .88rem; display: grid; gap: 6px; }
.e26-form input, .e26-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; }
.e26-form input:focus, .e26-form textarea:focus { outline: none; border-color: var(--e26-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e26-primary) 18%, transparent); }
.e26-form-status { min-height: 22px; font-size: .9rem; }
.e26-form-status.ok { color: #059669; } .e26-form-status.err { color: #dc2626; }
.e26-hp { position: absolute; left: -9999px; opacity: 0; }

/* ── Content / single ── */
/* Page-title band: painted from the Appearance header palette (Settings → Appearance) */
.e26-single-head { background: var(--ws-header-bg, var(--e26-primary)); color: var(--ws-header-text, #fff); padding: 14px 20px 12px; border-radius: var(--e26-radius); }
.e26-single-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 8px 0 6px; color: var(--ws-header-text, #fff); }
.e26-single-hero img { border-radius: var(--e26-radius); width: 100%; }
/* Article image gallery (portal _featured_images slideshow with captions) */
.e26-gallery { margin: 0 0 26px; }
.e26-gallery-frame { position: relative; border-radius: var(--e26-radius); overflow: hidden; background: #f1f5f9; }
.e26-gallery-frame img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.e26-gallery > figcaption { font-size: .88rem; color: #475569; line-height: 1.55; padding: 10px 4px 0; border-left: 3px solid var(--e26-accent); padding-left: 12px; margin-top: 10px; }
/* Overlay captions — on the image with a black gradient (Website → Blog Settings) */
.e26-gallery .e26-gallery-cap-overlay { position: absolute; left: 0; right: 0; margin: 0; padding: 42px 18px 14px; color: #fff; font-size: .9rem; line-height: 1.5; border: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cap-pos-bottom .e26-gallery-cap-overlay { bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,.82) 100%) !important; }
.cap-pos-top .e26-gallery-cap-overlay { top: 0; padding: 14px 18px 42px; background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,.82) 100%); }
.cap-pos-bottom .e26-gallery-count { bottom: auto; top: 10px; }
.e26-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(0,0,0,.22); color: var(--e26-primary); font-size: 1.2rem; cursor: pointer; }
.e26-gallery-nav.prev { left: 12px; } .e26-gallery-nav.next { right: 12px; }
.e26-gallery-count { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.e26-gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.e26-gallery-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; transition: transform .15s, background .15s; }
.e26-gallery-dots button[aria-current="true"] { background: var(--e26-primary); transform: scale(1.25); }
.e26-content { font-size: 1.02rem; }
.e26-content img { border-radius: var(--ws-img-radius, 12px); }
.e26-breadcrumbs { font-size: .82rem; }
.e26-breadcrumbs a { color: var(--ws-badge-bg, var(--e26-primary)); }
.e26-single-head .e26-meta, .e26-single-head a, .e26-single-head a:visited { color: var(--ws-header-text, #fff); }
.post-categories, .tags-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.post-categories a, .tags-links a { background: var(--ws-badge-bg, var(--e26-primary)); color: var(--ws-badge-text, #fff); padding: 4px 12px; border-radius: 20px; font-size: .74rem; font-weight: 700; text-decoration: none; }
.e26-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; font-weight: 600; }
.e26-pagination { margin-top: 34px; text-align: center; }

/* ── Footer ── */
.e26-footer { background: var(--e26-footer-bg); color: var(--e26-footer-fg); margin-top: 56px; }
.e26-footer-widgets { padding: 56px 0 24px; }
.e26-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.e26-footer .widget-title { color: var(--ws-footer-heading, var(--e26-footer-fg)); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid rgba(255,255,255,.22); padding-bottom: 8px; margin: 0 0 14px; }
.e26-footer a { color: var(--ws-footer-link, var(--e26-footer-fg)); text-decoration: none; padding: 6px 2px; display: inline-block; }
.e26-footer a:hover { text-decoration: underline; }
.e26-footer ul { list-style: none; margin: 0; padding: 0; }
.e26-footer li { margin-bottom: 6px; }
.e26-footer-copy { border-top: 1px solid rgba(255,255,255,.18); padding: 14px 0; font-size: .88rem; }
.e26-footer-copy-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 18px; }
.e26-footer-copy-row > p:last-child { text-align: right; }
.e26-footer-copy p { margin: 0; }
.e26-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .88rem; margin: 0 auto; }
@media (max-width: 700px) {
  .e26-footer-copy-row { grid-template-columns: 1fr; text-align: center; }
  .e26-footer-copy-row > p:last-child { text-align: center; }
}
.e26-backtotop { position: fixed; right: 22px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--ws-backtotop-bg, var(--e26-primary)); color: #fff; display: none; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 999; }
.e26-backtotop.visible { display: flex; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .e26-site-name { position: static; transform: none; }
  .e26-header-row { flex-wrap: wrap; }
  .e26-nav-toggle { display: block; }
  .e26-nav { display: none; }
  .e26-nav.open { display: block; }
  .e26-nav-row { flex-direction: column; align-items: stretch; }
  .e26-search { margin: 4px 0 12px; }
  .e26-search input[type="search"] { flex: 1; width: auto; }
  .e26-menu { flex-direction: column; }
  /* Touch access: submenus are always expanded (indented) in the mobile drawer */
  .e26-menu .sub-menu { display: block; position: static; box-shadow: none; background: rgba(255,255,255,.08); border-radius: 8px; margin: 2px 0 6px 14px; padding: 4px; }
  .e26-menu .sub-menu a { color: var(--ws-nav-link, var(--e26-header-fg)) !important; }
  .e26-menu .sub-menu a:hover { background: rgba(255,255,255,.12) !important; color: var(--ws-nav-link-hover, #fecaca) !important; }
  .e26-form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
