/* Header & Dropdown Submenu Navigation */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--brand-dark) 60%, transparent);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid {
  background: color-mix(in oklab, var(--brand-dark) 95%, transparent);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12);
  backdrop-filter: blur(8px);
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.ehub-desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.ehub-mobile-toggle {
  margin-left: auto;
  color: var(--primary-foreground, #ffffff);
  background: transparent;
  border: none;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .ehub-desktop-nav {
    display: flex;
  }
  .ehub-mobile-toggle,
  #mobile-nav {
    display: none !important;
  }
}

.ehub-nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ehub-nav-list > li {
  position: relative;
  margin: 0 !important;
}
.ehub-nav-link,
.ehub-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--primary-foreground, #ffffff) 88%, transparent);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}
.ehub-nav-link:hover,
.ehub-nav-list > li > a:hover,
.ehub-nav-list > li.current-menu-item > a,
.ehub-nav-list > li.current-menu-ancestor > a {
  color: var(--accent, oklch(72% 0.16 75));
}

.ehub-nav-has-children {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  position: relative;
}
.ehub-submenu-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.2rem;
  color: color-mix(in oklab, var(--primary-foreground, #ffffff) 80%, transparent);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.ehub-nav-has-children:hover .ehub-submenu-caret,
.ehub-nav-has-children:focus-within .ehub-submenu-caret,
.ehub-nav-has-children.is-open .ehub-submenu-caret {
  color: var(--accent, oklch(72% 0.16 75));
  transform: rotate(180deg);
}
.ehub-nav-submenu,
.ehub-nav-list > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem !important;
  margin: 0.35rem 0 0 0 !important;
  list-style: none !important;
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--brand-dark, oklch(24% 0.05 152)) 98%, black);
  border: 1px solid color-mix(in oklab, white 14%, transparent);
  box-shadow: 0 16px 32px -6px rgb(0 0 0 / 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}
/* Invisible hover bridge so moving mouse from link to submenu never closes it */
.ehub-nav-submenu::before,
.ehub-nav-list > li > .sub-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  inset-inline: 0;
  height: 0.5rem;
}
.ehub-nav-has-children:hover > .ehub-nav-submenu,
.ehub-nav-has-children:focus-within > .ehub-nav-submenu,
.ehub-nav-has-children.is-open > .ehub-nav-submenu,
.ehub-nav-list > li:hover > .sub-menu,
.ehub-nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ehub-nav-submenu a,
.ehub-nav-list > li > .sub-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--primary-foreground, #ffffff) 90%, transparent);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ehub-nav-submenu a:hover,
.ehub-nav-list > li > .sub-menu a:hover {
  background: color-mix(in oklab, white 10%, transparent);
  color: var(--accent, oklch(72% 0.16 75));
}

.ehub-mobile-subitem {
  display: block;
  padding: 0.45rem 0 0.45rem 1rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--primary-foreground, #ffffff) 80%, transparent);
  text-decoration: none;
}
.ehub-mobile-subitem:hover {
  color: var(--accent, oklch(72% 0.16 75));
}

/* Hero Slider (supports both Gutenberg Block Slider & Legacy Markup) */
.ehub-hero-slider {
  position: relative;
  height: 92vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  margin: 0 !important;
}
.hero-slide,
.ehub-hero-slide {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.hero-slide.is-active,
.ehub-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ehub-hero-slide > .wp-block-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}
.ehub-hero-slide > .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 0 !important;
}
.ehub-hero-overlay {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  background: color-mix(in oklab, var(--brand-dark, oklch(24% 0.05 152)) 65%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 1.5rem;
}
.ehub-hero-overlay > * {
  max-width: 48rem;
  margin-inline: auto;
}
.ehub-hero-overlay h1,
.ehub-hero-overlay h2 {
  color: var(--primary-foreground, #ffffff) !important;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 !important;
}
.ehub-hero-overlay p {
  color: color-mix(in oklab, var(--primary-foreground, #ffffff) 88%, transparent) !important;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.625;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.ehub-hero-overlay .wp-block-buttons {
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem !important;
}
.ehub-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: color-mix(in oklab, white 20%, transparent);
  color: var(--primary-foreground, #ffffff);
  font-size: 1.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ehub-hero-arrow:hover {
  background: color-mix(in oklab, white 35%, transparent);
}
.ehub-hero-prev { left: 0.75rem; }
.ehub-hero-next { right: 0.75rem; }
.ehub-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.ehub-hero-dot {
  height: 0.375rem;
  width: 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}
.dot-active { background: var(--color-accent, oklch(72% 0.16 75)); }
.dot-idle { background: color-mix(in oklab, white 40%, transparent); }

/* Visual Gutenberg Section, Grid & Card System */
.ehub-section {
  padding-block: 4rem;
  padding-inline: max(1.5rem, calc((100% - 69rem) / 2));
  margin-block: 0 !important;
}
.ehub-section-alt {
  background-color: var(--secondary, oklch(95% 0.02 145));
}
.ehub-section-dark {
  background-color: var(--brand-dark, oklch(24% 0.05 152));
  color: var(--primary-foreground, oklch(99% 0.01 140));
}
.ehub-eyebrow {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--primary, oklch(55% 0.15 148)) !important;
  margin-bottom: 0.5rem !important;
}
.ehub-badge-amber {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--accent, oklch(72% 0.16 75)) !important;
  margin-bottom: 0.35rem !important;
}
.ehub-step-num {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--primary, oklch(55% 0.15 148)) !important;
  margin-bottom: 0.25rem !important;
}
.ehub-lead-text {
  max-width: 56rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground, oklch(50% 0.02 150));
  margin-top: 1rem !important;
}
.ehub-muted {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground, oklch(50% 0.02 150));
}
.ehub-stat-number {
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--primary, oklch(55% 0.15 148)) !important;
  margin: 0 0 0.35rem 0 !important;
}
.ehub-price {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--primary, oklch(55% 0.15 148)) !important;
  margin: 0.5rem 0 !important;
}

.ehub-card {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background-color: var(--card, #ffffff);
  padding: 1.75rem;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ehub-programme-card:hover {
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.07);
  border-color: color-mix(in oklab, var(--primary, oklch(55% 0.15 148)) 45%, var(--border));
}
.ehub-card-mission {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background-color: var(--secondary, oklch(95% 0.02 145));
  padding: 1.75rem;
  box-sizing: border-box;
}
.ehub-section-alt .ehub-card-mission {
  background-color: var(--card, #ffffff);
}
.ehub-card-vision {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background-color: var(--secondary, oklch(95% 0.02 145));
  padding: 1.75rem;
  box-sizing: border-box;
}
.ehub-section-alt .ehub-card-vision {
  background-color: var(--card, #ffffff);
}
.ehub-partner-box {
  display: grid;
  place-items: center;
  min-height: 5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 0.75rem;
  text-align: center;
}
.ehub-partner-box p {
  margin: 0 !important;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground, oklch(50% 0.02 150));
}

/* Responsive CSS Grids for Block Groups */
.ehub-grid-2,
.ehub-grid-3,
.ehub-grid-4,
.ehub-grid-6,
.ehub-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem !important;
}
.ehub-grid-2 > *,
.ehub-grid-3 > *,
.ehub-grid-4 > *,
.ehub-grid-6 > *,
.ehub-stack > * {
  margin-block: 0 !important;
}
.ehub-grid-6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .ehub-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ehub-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ehub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ehub-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ehub-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ehub-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ehub-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wp-block-columns .ehub-col-director {
    flex: 0 0 360px !important;
    max-width: 360px !important;
  }
}

/* Content, Lists, Tables, Details Accordion & Buttons */
.ehub-form-notice {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-primary, oklch(55% 0.15 148));
}
.ehub-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.ehub-content img[src*="director.jpg"],
img[src*="director.jpg"] {
  max-width: 360px;
  width: 100%;
  height: auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.ehub-content .wp-block-group {
  box-sizing: border-box;
}
.ehub-content .wp-block-columns {
  gap: 1.5rem;
}
.ehub-content ul,
.ehub-content ul.wp-block-list {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin-block: 0.75rem !important;
}
.ehub-content ol,
.ehub-content ol.wp-block-list {
  list-style-type: decimal !important;
  padding-left: 1.5rem !important;
  margin-block: 0.75rem !important;
}
.ehub-content li + li {
  margin-top: 0.375rem;
}
.ehub-content h2,
.ehub-content h3,
.ehub-content h4 {
  color: var(--foreground, oklch(24% 0.02 150));
  font-weight: 700;
  line-height: 1.3;
}
.ehub-section-dark h2,
.ehub-section-dark h3 {
  color: var(--primary-foreground, #ffffff) !important;
}

/* Buttons */
.ehub-content .wp-block-button__link,
.ehub-content .wp-element-button {
  background: var(--primary, oklch(55% 0.15 148));
  color: var(--primary-foreground, oklch(99% 0.01 140));
  border-radius: 0.375rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ehub-content .wp-block-button__link:hover,
.ehub-content .wp-element-button:hover {
  opacity: 0.92;
}
.ehub-content .wp-block-button.ehub-btn-outline-light .wp-block-button__link {
  background: transparent !important;
  border: 1px solid color-mix(in oklab, white 45%, transparent) !important;
  color: #ffffff !important;
}
.ehub-content .wp-block-button.ehub-btn-outline-light .wp-block-button__link:hover {
  background: color-mix(in oklab, white 12%, transparent) !important;
}
.ehub-content .wp-block-button.ehub-btn-subtle .wp-block-button__link {
  background: var(--secondary, oklch(95% 0.02 145)) !important;
  color: var(--primary, oklch(55% 0.15 148)) !important;
  border: 1px solid var(--border, oklch(90% 0.012 150)) !important;
  padding: 0.55rem 1.15rem;
}
.ehub-content .wp-block-button.ehub-btn-subtle .wp-block-button__link:hover {
  background: var(--primary, oklch(55% 0.15 148)) !important;
  border-color: var(--primary, oklch(55% 0.15 148)) !important;
  color: var(--primary-foreground, #ffffff) !important;
}

/* Core Table Block Styling */
.ehub-positions-table {
  margin-top: 2rem !important;
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
}
.ehub-positions-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.ehub-positions-table thead {
  background: var(--secondary, oklch(95% 0.02 145));
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ehub-positions-table th,
.ehub-positions-table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border, oklch(90% 0.012 150));
  vertical-align: top;
}
.ehub-positions-table thead th {
  border-top: none;
  font-weight: 600;
  color: var(--foreground, oklch(24% 0.02 150));
}
.ehub-positions-table tbody td:first-child {
  font-weight: 600;
  color: var(--foreground, oklch(24% 0.02 150));
  width: 34%;
}
.ehub-positions-table tbody td:last-child {
  color: var(--muted-foreground, oklch(50% 0.02 150));
}

/* Core Details (FAQ Accordion) Block Styling */
.ehub-faq-item {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.25rem 1.5rem;
}
.ehub-faq-item + .ehub-faq-item {
  margin-top: 1rem;
}
.ehub-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--foreground, oklch(24% 0.02 150));
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ehub-faq-item summary::-webkit-details-marker {
  display: none;
}
.ehub-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary, oklch(55% 0.15 148));
  line-height: 1;
}
.ehub-faq-item[open] summary::after {
  content: "−";
}
.ehub-faq-item p {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground, oklch(50% 0.02 150));
}

/* Blog & Single Post 2-Column Sidebar Layout */
.ehub-blog-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.ehub-blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .ehub-blog-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .ehub-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}
.ehub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ehub-sidebar-card {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.5rem;
}
.ehub-sidebar-cta {
  border-radius: 0.5rem;
  background: var(--brand-dark, oklch(24% 0.05 152));
  color: var(--primary-foreground, oklch(99% 0.01 140));
  padding: 1.5rem;
}
.ehub-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ehub-search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ehub-search-input {
  flex: 1;
  min-width: 0;
  border-radius: 0.375rem;
  border: 1px solid var(--input, oklch(90% 0.012 150));
  background: var(--background, #ffffff);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--foreground, oklch(24% 0.02 150));
  outline: none;
}
.ehub-search-input:focus {
  border-color: var(--primary, oklch(55% 0.15 148));
}
.ehub-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ehub-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--secondary, oklch(95% 0.02 145));
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground, oklch(24% 0.02 150));
  text-decoration: none;
  transition: all 0.2s ease;
}
.ehub-tag-pill:hover {
  background: var(--primary, oklch(55% 0.15 148));
  border-color: var(--primary, oklch(55% 0.15 148));
  color: var(--primary-foreground, #ffffff);
}
.ehub-recent-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.75rem 0 0 0 !important;
}
.ehub-recent-item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border, oklch(90% 0.012 150));
}
.ehub-recent-item:first-child {
  padding-top: 0;
  border-top: none;
}
.ehub-recent-item:last-child {
  padding-bottom: 0;
}
.ehub-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.ehub-meta-date {
  font-weight: 400;
  color: var(--muted-foreground, oklch(50% 0.02 150));
  text-transform: none;
}
.ehub-post-thumb {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--secondary, oklch(95% 0.02 145));
  border-bottom: 1px solid var(--border, oklch(90% 0.012 150));
}
.ehub-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ehub-post-thumb:hover img {
  transform: scale(1.04);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #fff);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground, oklch(24% 0.02 150));
  transition: all 0.2s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: var(--primary, oklch(55% 0.15 148));
  border-color: var(--primary, oklch(55% 0.15 148));
  color: var(--primary-foreground, #fff);
}

/* Gutenberg Visual Block Editor WYSIWYG Styles */
.editor-styles-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground, oklch(24% 0.02 150));
}
.editor-styles-wrapper .ehub-section {
  padding-block: 2.5rem;
  padding-inline: 1.5rem;
  border-radius: 0.5rem;
  margin-block: 1rem !important;
  border: 1px dashed color-mix(in oklab, var(--border, #d8e2dc) 80%, transparent);
}
.editor-styles-wrapper .ehub-hero-slider {
  height: auto !important;
  min-height: 0 !important;
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--secondary, #eef4f0);
  border-radius: 0.75rem;
}
.editor-styles-wrapper .ehub-hero-slide {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-height: 320px;
  border-radius: 0.65rem;
  overflow: hidden;
}
.editor-styles-wrapper .ehub-hero-overlay {
  position: relative !important;
  min-height: 320px;
  padding: 2.5rem 1.5rem;
}

/* Media Page: YouTube Video Player + Right Playlist & Google Photos Lightbox */
.ehub-video-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .ehub-video-stage {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
.ehub-video-main {
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  overflow: hidden;
}
.ehub-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1610;
}
.ehub-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ehub-video-meta {
  padding: 1.35rem 1.5rem;
}

.ehub-video-playlist {
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ehub-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--secondary, oklch(95% 0.02 145));
}
.ehub-playlist-scroll {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ehub-playlist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border, oklch(90% 0.012 150));
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ehub-playlist-item:last-child {
  border-bottom: none;
}
.ehub-playlist-item:hover {
  background: var(--secondary, oklch(95% 0.02 145));
}
.ehub-playlist-item.is-active {
  background: color-mix(in oklab, var(--primary, oklch(55% 0.15 148)) 10%, var(--card, #ffffff));
}
.ehub-playlist-thumb {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  aspect-ratio: 16 / 9;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #0f1f17;
}
.ehub-playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ehub-playlist-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.28);
  color: #ffffff;
  font-size: 0.85rem;
  transition: background-color 0.15s ease;
}
.ehub-playlist-item.is-active .ehub-playlist-play {
  background: color-mix(in oklab, var(--primary, oklch(55% 0.15 148)) 72%, transparent);
}
.ehub-playlist-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ehub-playlist-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, oklch(72% 0.16 75));
}
.ehub-playlist-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground, oklch(24% 0.02 150));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ehub-video-empty {
  margin-top: 2rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--secondary, oklch(95% 0.02 145));
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.ehub-video-empty-inner {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ehub-video-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--primary, oklch(55% 0.15 148));
  color: var(--primary-foreground, #ffffff);
  font-size: 1.25rem;
}

/* Activity Photo Albums & Lightbox */
.ehub-album-filter {
  cursor: pointer;
}
.ehub-album-filter.is-active {
  background: var(--primary, oklch(55% 0.15 148));
  border-color: var(--primary, oklch(55% 0.15 148));
  color: var(--primary-foreground, #ffffff);
}
.ehub-albums-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 2rem;
}
.ehub-album-card {
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.75rem;
}
.ehub-album-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ehub-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .ehub-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .ehub-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ehub-photo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--secondary, oklch(95% 0.02 145));
  cursor: zoom-in;
}
.ehub-photo-tile.hidden {
  display: none !important;
}
.ehub-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.ehub-photo-tile:hover img {
  transform: scale(1.05);
}

.ehub-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(8 18 12 / 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ehub-lightbox.hidden {
  display: none !important;
}
.ehub-lb-stage {
  max-width: min(92vw, 1120px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ehub-lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.55);
}
.ehub-lb-bar {
  margin-top: 0.85rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(255 255 255 / 0.9);
  font-size: 0.875rem;
}
.ehub-lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.ehub-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.ehub-lb-prev { left: 1.25rem; }
.ehub-lb-next { right: 1.25rem; }
.ehub-lb-close:hover,
.ehub-lb-nav:hover {
  background: var(--primary, oklch(55% 0.15 148));
  border-color: var(--primary, oklch(55% 0.15 148));
}

/* v3.0 Institutional Upgrades: Impact Strip, Profile Cards, Opportunities & Forms */
.ehub-section-compact {
  padding-block: 2.75rem;
  border-bottom: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
}
.ehub-spotlight-card {
  display: flex;
  flex-direction: column;
}
.ehub-spotlight-card .wp-block-buttons {
  margin-top: auto !important;
  padding-top: 1rem;
}

/* Editable Team & Board Visual Profile Cards */
.ehub-profile-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.ehub-profile-card > * {
  margin-block: 0 !important;
}
.ehub-profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--secondary, oklch(95% 0.02 145));
  margin-bottom: 1.1rem !important;
  border: 1px solid var(--border, oklch(90% 0.012 150));
}
.ehub-profile-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ehub-profile-card .ehub-badge-amber {
  margin-bottom: 0.3rem !important;
}
.ehub-profile-card .ehub-muted {
  margin-top: 0.5rem !important;
  flex: 1;
}
.ehub-profile-meta {
  margin-top: 0.85rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, oklch(90% 0.012 150));
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary, oklch(55% 0.15 148));
}
.ehub-profile-meta a {
  color: var(--primary, oklch(55% 0.15 148));
  text-decoration: none;
}
.ehub-profile-meta a:hover {
  text-decoration: underline;
}

/* Partner Ecosystem Cards */
.ehub-partner-card {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.15rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5.75rem;
}
.ehub-partner-card p {
  margin: 0 !important;
}
.ehub-partner-name {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--foreground, oklch(24% 0.02 150)) !important;
}
.ehub-partner-role {
  font-size: 0.72rem !important;
  color: var(--muted-foreground, oklch(50% 0.02 150)) !important;
}

/* Opportunities, Tenders & Downloads Cards */
.ehub-opp-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ehub-opp-card:hover {
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.07);
  border-color: color-mix(in oklab, var(--primary, oklch(55% 0.15 148)) 40%, var(--border));
}
.ehub-status-open {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary, oklch(55% 0.15 148)) 14%, white);
  color: var(--primary, oklch(55% 0.15 148));
  padding: 0.15rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Get Involved & Contact Inquiry Form Cards */
.ehub-form-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.04);
}
.ehub-select {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground, oklch(24% 0.02 150));
  outline: none;
}
.ehub-select:focus {
  border-color: var(--primary, oklch(55% 0.15 148));
}

/* Quote / Community Voices Cards */
.ehub-voice-card {
  border-radius: 0.5rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* v3.1 Redesigned Contact Page Layout (Zero Card Overlap) */
.ehub-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .ehub-contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
  }
}
.ehub-contact-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ehub-contact-info-card {
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  padding: 1.65rem;
}
.ehub-contact-corridor-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ehub-contact-corridor-item {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border, oklch(90% 0.012 150));
}
.ehub-contact-corridor-item:first-child {
  padding-top: 0;
  border-top: none;
}

/* v3.1 Embedded YouTube Video Preview & Funder Logo Strip */
.ehub-video-embed-wrap {
  margin-top: 1.75rem !important;
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: var(--card, #ffffff);
  overflow: hidden;
  box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.08);
}
.ehub-video-embed-wrap figcaption {
  padding: 0.9rem 1.25rem;
  margin: 0 !important;
  font-size: 0.85rem;
  color: var(--muted-foreground, oklch(50% 0.02 150));
  background: var(--card, #ffffff);
  border-top: 1px solid var(--border, oklch(90% 0.012 150));
}
.wp-block-embed {
  margin-block: 1.5rem !important;
}
.wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1610;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--border, oklch(90% 0.012 150));
}
.wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.ehub-funder-banner {
  border-radius: 0.65rem;
  border: 1px solid var(--border, oklch(90% 0.012 150));
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  margin-top: 2rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ehub-funder-banner .wp-block-image {
  margin: 0 !important;
  max-width: 680px;
  width: 100%;
}
.ehub-funder-banner .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
}
