/**
 * Edibear brand palette (site-wide, public pages)
 * Green #33a675 — buttons, outlines, icons
 * Gold #FFCC29 — stars, review accents, hovers
 * Coral #F65247 — main headings
 * Charcoal #606062 — body text
 */

 :root {
  /* Same stack as Google Fonts Poppins in the header; keeps cards/paragraphs consistent */
  --edi-font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --edi-green: #33a675;
  --edi-green-dark: #2a8f61;
  --edi-green-darker: #237a52;
  --edi-gold: #ffcc29;
  --edi-gold-dark: #e6b820;
  --edi-heading: #f65247;
  --edi-body: #606062;
  /* Home category explorer strip: min height for `Search image.webp` banner (tune to match asset) */
  --explorer-search-area-min-height: 250px;
  /* Unified page titles (dark) + banner */
  --edi-title-color: #212529;
  --edi-h1-size: 2.25rem;
  --edi-h2-size: 1.875rem;
  --edi-h3-size: 1.5rem;
  --edi-h4-size: 1.25rem;
  --edi-h5-size: 1.0625rem;
  --edi-h6-size: 1rem;
  --edi-header-banner-height: 200px;
}

/* ----- Base text ----- */
body {
  color: var(--edi-body) !important;
  font-family: var(--edi-font-sans) !important;
}

/* Paragraphs inherit body font; explicit rule wins over nested component styles */
p {
  font-family: inherit;
  font-weight: 400;
  text-align: justify;
}

/* ----- Accent utility (coral): non-heading elements only ----- */
.text-primary:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6) {
  color: var(--edi-heading) !important;
}

h1.text-danger,
h2.text-danger,
h3.text-danger,
h4.text-danger {
  color: var(--edi-heading) !important;
}

/* Keep real alerts readable */
.alert-danger,
.alert-danger .text-dark,
.invalid-feedback {
  color: inherit !important;
}

.explorer-title {
  color: var(--edi-heading) !important;
}

.edi-hello,
.edi-paragraph,
.explorer-desc {
  color: var(--edi-body) !important;
}

/* ----- Home explorer strip: Language / Grade / Category selects ----- */
.edi-explorer-select-wrap {
  position: relative;
  width: 100%;
}

/* Filled triangle caret (Treasures filters); inset from the right edge */
.edi-explorer-select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--edi-green);
  transform: translateY(-50%);
  pointer-events: none;
}

.explorer-search-area select.explorer-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 2.35rem 0.65rem 1rem;
  font-family: var(--edi-font-sans);
  font-size: 0.9375rem;
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #b5b3b2;
  cursor: pointer;
  border: 1px solid rgba(51, 166, 117, 0.42);
  border-radius: 10px;
  background-color: #fff;
  background-image: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 10px rgba(0, 0, 0, 0.06);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  accent-color: var(--edi-green);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.explorer-search-area select.explorer-select::-ms-expand {
  display: none;
}

/* Placeholder-style label until a value is chosen (required fields) */
.explorer-search-area select.explorer-select:required:invalid {
  color: #b5b3b2;
  font-weight: 200;
}

/* Selected value only (not placeholder / optional empty subcategory) */
.explorer-search-area select.explorer-select:required:valid,
.explorer-search-area select.explorer-select:not(:required):not(:disabled):has(option:checked:not([value=""])) {
  color: #414140;
  font-weight: 500;
}

.explorer-search-area select.explorer-select:hover:not(:disabled) {
  border-color: rgba(51, 166, 117, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 18px rgba(51, 166, 117, 0.12);
}

.explorer-search-area select.explorer-select:focus {
  outline: none;
  border-color: var(--edi-green);
  box-shadow:
    0 0 0 3px rgba(51, 166, 117, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.08);
}

.explorer-search-area select.explorer-select:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  color: #9a9b9c;
  background-color: #f3f5f4;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.edi-explorer-select-wrap:has(select.explorer-select:disabled:not(#explorer_exp_sub))::after {
  border-top-color: #9a9b9c;
}

/* Subcategory: match other explorer selects (same height/width column; long label no longer wraps) */
.explorer-search-area select#explorer_exp_sub.explorer-select {
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Disabled subcategory: same outer look as Language/Grade/Category (white field, green frame) */
.explorer-search-area select#explorer_exp_sub.explorer-select:disabled {
  opacity: 1;
  background-color: #fff;
  color: #8f8d8c;
  border-color: rgba(51, 166, 117, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Native option list: limited browser support, improves Firefox & some builds */
.explorer-search-area select.explorer-select option {
  font-family: var(--edi-font-sans);
  font-weight: 200;
  font-size: 0.9375rem;
  color: #3a3d40;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
}

.explorer-search-area select.explorer-select option:checked {
  background-color: #e8f5ef;
  color: #1f5c40;
}

/* Open list: row highlight (Firefox and similar; classic Chromium popups ignore most option CSS) */
.explorer-search-area select.explorer-select option:hover,
.explorer-search-area select.explorer-select option:focus {
  background-color: var(--edi-green);
  color: #fff;
}

/*
 * Chrome 135+ customizable select: picker is styleable HTML, so hover/focus row is green
 * instead of the OS blue. Older browsers skip this block and keep the native picker.
 */
@supports (appearance: base-select) {
  .explorer-search-area select.explorer-select,
  .explorer-search-area select.explorer-select::picker(select) {
    appearance: base-select;
  }

  .explorer-search-area select.explorer-select::picker(select) {
    border: 1px solid rgba(51, 166, 117, 0.42);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
  }

  .explorer-search-area select.explorer-select option {
    padding: 0.65rem 1rem;
  }

  /* Label-only placeholders must not repeat in the open picker (HTML `hidden` + fallback) */
  .explorer-search-area select.explorer-select option[hidden] {
    display: none !important;
  }

  .explorer-search-area select.explorer-select option:hover,
  .explorer-search-area select.explorer-select option:focus,
  .explorer-search-area select.explorer-select option:focus-visible {
    background-color: var(--edi-green);
    color: #fff;
  }

  .explorer-search-area select.explorer-select option:checked {
    background-color: #e8f5ef;
    color: #1f5c40;
  }

  .explorer-search-area select.explorer-select option:checked:hover,
  .explorer-search-area select.explorer-select option:checked:focus,
  .explorer-search-area select.explorer-select option:checked:focus-visible {
    background-color: var(--edi-green);
    color: #fff;
  }

  /* Hide native picker caret; wrapper ::after draws the arrow */
  .explorer-search-area select.explorer-select::picker-icon {
    opacity: 0;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}

/* ----- Links: hover gold ----- */
a.text-primary:hover,
a.text-primary:focus,
.edibear-link:hover,
.footer a:hover,
.read-more-link:hover,
a:hover .text-primary {
  color: var(--edi-gold) !important;
}

.read-more-link {
  color: var(--edi-green) !important;
}

/* ----- Buttons (green) ----- */
.btn-primary,
.btn-success,
.newgreen1-btn,
.explore-btn,
.newsl-subscribe-btn,
.back-to-top,
.honey-cart-steps .step.active {
  background-color: var(--edi-green) !important;
  border-color: var(--edi-green) !important;
  color: #fff !important;
}

/* Softer button / pill labels site-wide (avoid heavy <b> inside buttons) */
.btn,
a.btn,
button.btn,
input[type="submit"].btn,
.newgreen1-btn,
.explore-btn,
.newsl-subscribe-btn,
.collect-btn,
.submit-review-btn,
.tab-btn,
.honey-cart-summary .btn-success {
  font-weight: 500 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.newgreen1-btn:hover,
.explore-btn:hover,
.newsl-subscribe-btn:hover {
  background-color: var(--edi-green-dark) !important;
  border-color: var(--edi-green-dark) !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: var(--edi-green) !important;
  border-color: var(--edi-green) !important;
}

.btn-outline-primary:hover {
  background-color: var(--edi-green) !important;
  border-color: var(--edi-green) !important;
  color: #fff !important;
}

/* Homepage (index): CTA bands — vertical rhythm inside a section; no margin-bottom (section gaps use margin-top only) */
body.index .edi-home-cta-band {
  margin-top: var(--edi-home-cta-gap);
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Products -> Trail CTA: keep button closer to cards */
body.index .edi-home-cta-band--products {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  body.index {
    --edi-home-cta-gap: 2rem;
  }
}

/* Homepage (index): same width + height for main green section buttons */
button.edi-home-section-cta.explore-btn,
a.btn.edi-home-section-cta.newgreen1-btn,
button.btn.edi-home-section-cta.newgreen1-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 140px;
  max-width: calc(100vw - 2rem);
  min-height: 48px;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.95rem !important;
  line-height: 1.2;
  border-radius: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

/* Match Bootstrap .btn border box (custom.css sets explore-btn { border: none }) */
button.edi-home-section-cta.explore-btn {
  border: 1px solid var(--edi-green) !important;
}

/* Hero “FIND Edi” — outline + gold hover per palette */
.homeLetsGoBtn {
  background: #fff !important;
  color: var(--edi-green) !important;
}

.homeLetsGoBtn:hover {
  background: var(--edi-gold) !important;
  color: var(--edi-body) !important;
  border-color: var(--edi-gold) !important;
}

/*
 * Homepage hero: fill the visible window to the bottom edge.
 * - Header uses margin-top: -85px on .HomeCarousel (class.header.php). Keep it; add the same 85px
 *   to hero min-height/height so the slide still reaches the viewport bottom.
 * - --edi-home-carousel-lift must match the absolute value of that margin.
 * - style.css adds margin-top: -42px on #header-carousel (lg+); neutralize on home only.
 * - flow-root on .carousel-inner keeps Bootstrap float slides contributing to height correctly.
 */
body.index {
  --edi-home-carousel-lift: 85px;
  --edi-home-cta-gap: 2.5rem;
  --edi-home-section-gap: 75px;
  background-color: #fff;
}

/*
 * Homepage only: 75px between major sections. Spacing comes only from the
 * lower section’s margin-top; strip bottom margin/padding on section wrappers.
 */
body.index .HomeCarousel {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.index #ayubowan.edi-intro-section,
body.index #learn-section.edi-learn-section,
body.index #honey-market-section,
body.index .edi-home-ad-slot,
body.index .edi-trail-tales-wrap,
body.index #play-section.edi-hidden-den-section,
body.index #challenge-section{
  margin-top: var(--edi-home-section-gap) !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer {
  margin-top: var(--edi-home-section-gap) !important;
}
body.index #learn-section .edi-learn-cards-row {
  margin-top: 30px;
}

@media (max-width: 767.98px) {
  body.index #learn-section .edi-learn-intro-row {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  body.index #learn-section .edi-learn-cards-row {
    margin-top: 1rem !important;
  }
}

@media (min-width: 992px) {
  body.index #header-carousel {
    margin-top: 0 !important;
  }
}

.HomeCarousel {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  overflow: hidden;
}

body.index .HomeCarousel {
  min-height: calc(100vh + var(--edi-home-carousel-lift));
  min-height: calc(100dvh + var(--edi-home-carousel-lift));
  min-height: calc(100lvh + var(--edi-home-carousel-lift));
}

body.index .HomeCarousel #header-carousel,
body.index .HomeCarousel #header-carousel .carousel-inner,
body.index .HomeCarousel #header-carousel .carousel-item {
  min-height: calc(100vh + var(--edi-home-carousel-lift));
  min-height: calc(100dvh + var(--edi-home-carousel-lift));
  min-height: calc(100lvh + var(--edi-home-carousel-lift));
}

.HomeCarousel #header-carousel {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
}

.HomeCarousel #header-carousel .carousel-inner {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
}

body.index .HomeCarousel #header-carousel .carousel-inner {
  display: flow-root;
  min-height: calc(100vh + var(--edi-home-carousel-lift));
  min-height: calc(100dvh + var(--edi-home-carousel-lift));
  min-height: calc(100lvh + var(--edi-home-carousel-lift));
}

.HomeCarousel #header-carousel .carousel-item {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  height: 100vh;
  height: 100dvh;
  height: 100lvh;
}

body.index .HomeCarousel #header-carousel .carousel-item {
  min-height: calc(100vh + var(--edi-home-carousel-lift));
  min-height: calc(100dvh + var(--edi-home-carousel-lift));
  min-height: calc(100lvh + var(--edi-home-carousel-lift));
  height: calc(100vh + var(--edi-home-carousel-lift));
  height: calc(100dvh + var(--edi-home-carousel-lift));
  height: calc(100lvh + var(--edi-home-carousel-lift));
}

.HomeCarousel #header-carousel .carousel-item > picture,
.HomeCarousel #header-carousel .carousel-item > img.w-100 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.HomeCarousel #header-carousel .carousel-item > picture > img.w-100,
.HomeCarousel #header-carousel .carousel-item > img.w-100 {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

#header-carousel .carousel-caption {
  bottom: 0 !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: 7% !important;
  justify-content: flex-end !important;
}

/* Homepage mobile: keep white base behind hero while preserving carousel artwork */
@media (max-width: 767.98px) {
  body.index .HomeCarousel,
  body.index .HomeCarousel #header-carousel,
  body.index .HomeCarousel #header-carousel .carousel-inner,
  body.index .HomeCarousel #header-carousel .carousel-item {
    background-color: #fff !important;
  }

  body.index #header-carousel .carousel-caption .carouselText1 {
    color: var(--edi-body) !important;
  }

  body.index #header-carousel .carousel-caption .carouselText2 {
    color: var(--edi-heading) !important;
  }

  /* Homepage mobile: keep nav background solid white */
  body.index .edibear-header-wrapper {
    background: #fff !important;
  }

  body.index .edibear-navbar {
    background: #fff !important;
  }
}

/* ----- Nav / chrome ----- */
.edibear-topline {
  height: 10px !important;
  min-height: 10px;
  background: var(--edi-green) !important;
  width: 100%;
  max-width: 100%;
}

.edibear-link {
  color: var(--edi-body) !important;
}

.edibear-signin {
  color: var(--edi-green) !important;
}

.edibear-challenge {
  color: var(--edi-gold) !important;
}

/* ----- Public navbar (printUserNav): desktop + mobile drawer ----- */
.edibear-header-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.edibear-nav-cart {
  position: relative;
}

.edibear-nav-cart-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Tighter icon + label in navbar auth control */
#userAuthBtn.edibear-signin .fa-user,
#userAuthBtn.edibear-signin .fa-sign-out {
  margin-right: 0;
}

.edibear-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #28a745;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  border: 2px solid #fff;
  box-sizing: border-box;
  font-family: var(--edi-font-sans), "Poppins", sans-serif;
}

.edibear-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Hamburger + cart + auth: one horizontal cluster (avoids stray flex space on mobile) */
.edibear-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.edibear-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.edibear-nav-toggle:focus {
  outline: 2px solid rgba(51, 166, 117, 0.45);
  outline-offset: 2px;
}

.edibear-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--edi-green);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .edibear-nav-container {
    padding-left: 12px !important;
    padding-right: 6px !important;
  }

  .edibear-logo img {
    height: 48px !important;
  }

  .edibear-nav-main {
    gap: 2px !important;
    justify-content: flex-end !important;
    flex: 1 1 0%;
    min-width: 0;
  }

  .edibear-nav-actions {
    gap: 2px !important;
  }

  /* Mobile icon order: cart, user, hamburger */
  .edibear-nav-tools {
    order: 1;
    display: inline-flex;
    align-items: center;
  }

  .edibear-nav-toggle {
    order: 2;
  }

  .edibear-nav-tools .edibear-nav-cart {
    order: 1;
  }

  .edibear-nav-tools .edibear-nav-account,
  .edibear-nav-tools .edibear-nav-auth {
    order: 2;
  }

  /* Same tap target + aligned icon size (menu, cart, account) */
  .edibear-nav-toggle {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }

  .edibear-nav-tools {
    gap: 2px !important;
    margin-left: 0;
    flex-shrink: 0;
  }

  .edibear-nav-tools .edibear-nav-tool {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .edibear-nav-tools .edibear-nav-tool.edibear-link {
    color: var(--edi-green) !important;
  }

  .edibear-nav-tools .edibear-nav-cart-img {
    width: 30px !important;
    height: 30px !important;
  }

  .edibear-nav-tools .edibear-cart-badge {
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 3px;
    border-width: 1px;
  }

  .edibear-nav-tools .edibear-nav-tool .fa-user,
  .edibear-nav-tools .edibear-nav-tool .fa-sign-out {
    font-size: 1.25rem !important;
    line-height: 1;
    margin-right: 0 !important;
  }

  .edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .edibear-nav-tools .edibear-signin {
    margin-left: 0 !important;
  }

  .edibear-navbar {
    position: relative !important;
  }

  .edibear-nav-links {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s ease !important;
    z-index: 1002 !important;
  }

  .edibear-header-wrapper.edibear-nav-menu-open .edibear-nav-links {
    max-height: 320px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 8px 0 12px !important;
  }

  .edibear-nav-links .edibear-link {
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .edibear-nav-links .edibear-link:last-child {
    border-bottom: none !important;
  }

  .edibear-signin {
    font-size: 14px !important;
    margin-left: 0 !important;
    white-space: nowrap;
  }

  /* Auth: icon only; label hidden on small screens */
  .edibear-nav-tools #userAuthBtn.edibear-signin {
    justify-content: center;
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    gap: 0;
    display: none !important;
  }

  .edibear-nav-tools #userAuthBtn .edibear-nav-auth-label {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .edibear-nav-toggle {
    display: none !important;
  }

  .edibear-nav-links {
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    flex-direction: row !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

/* ----- Icons & outlines ----- */
.border-primary,
.newsl-border {
  border-color: var(--edi-green) !important;
}

.form-control:focus {
  border-color: var(--edi-green) !important;
  box-shadow: 0 0 0 0.2rem rgba(51, 166, 117, 0.25) !important;
}

/* ----- Stars / reviews (gold) ----- */
.text-warning1,
.text-warning,
.fa-star.text-warning,
.fa-star.text-warning1,
.testimonial-sec .fa-star,
.package-item .text-warning {
  color: var(--edi-gold) !important;
}

/* ----- Prices / success accents ----- */
.old-price {
  color: green;
}
.new-price,
.text-success {
  color: #f65247 !important;
}

.signInText {
  color: var(--edi-green) !important;
}

.signInText:hover {
  color: var(--edi-gold) !important;
}

/* ----- Cards / borders ----- */
.blog-item,
.explorer-card,
.border-warning1 {
  border-color: rgba(51, 166, 117, 0.35) !important;
}

/* Home "Explorer training camp" cards: description from index.php; <br> must render */
body.index #learn-section .edi-howitworks-card-desc {
  display: block;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  line-height: 1.55;
  font-size: 1rem;
  font-weight: 400;
  color: var(--edi-body);
}

/* ----- Bootstrap utility overrides ----- */
.bg-primary {
  background-color: var(--edi-green) !important;
}

.badge-primary {
  background-color: var(--edi-green) !important;
}

a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: var(--edi-green-dark) !important;
}

/* ----- Unified heading scale (same h1 / h2 / … site-wide) ----- */
h1,
.h1 {
  font-size: var(--edi-h1-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h2,
.h2 {
  font-size: var(--edi-h2-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.45rem;
}

h3,
.h3 {
  font-size: var(--edi-h3-size);
  font-weight: 600;
  line-height: 1.35;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

h4,
.h4 {
  font-size: var(--edi-h4-size);
  font-weight: 600;
  line-height: 1.35;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.35rem;
}

h5,
.h5 {
  font-size: var(--edi-h5-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.3rem;
}

h6,
.h6 {
  font-size: var(--edi-h6-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--edi-title-color);
  margin-top: 0;
  margin-bottom: 0.25rem;
}

/* Headings keep dark title color even with Bootstrap text-primary */
h1.text-primary,
h2.text-primary,
h3.text-primary,
h4.text-primary,
h5.text-primary:not(.text-white),
h6.text-primary:not(.text-white),
.h1.text-primary,
.h2.text-primary {
  color: var(--edi-title-color) !important;
}

/* ----- Inner page banner + breadcrumb band (aligned like Ground Rules) ----- */
.page-header-bg {
  width: 100%;
  height: var(--edi-header-banner-height);
  margin-top: 0;
  background: url("../img/headerIMG.jpeg") no-repeat center center;
  background-size: cover;
  position: relative;
}

@media (max-width: 767.98px) {
  .page-header-bg {
    height: 100px;
    margin-top: -50px;
  }
}

.page-header-content {
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
  padding-top: 1.25rem !important;
  padding-bottom: 2.5rem !important;
}

.page-header-content > .container,
.page-header-content.container-fluid > .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.page-header-content.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Footer newsletter title stays coral */
.footer h1.text-primary,
.footerEmailCustom h1.text-primary {
  color: var(--edi-heading) !important;
}

/* Footer: overlap copyright with illustration on large screens only */
.footer-overlap-row {
  margin-bottom: -100px;
}
@media (max-width: 600px) {
  .footer-overlap-row .col-md-6, .footer-overlap-row .col-sm-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Social row: spacing (base) */
.footer-social-icons {
  gap: 10px;
  row-gap: 12px;
}

.footer-social-icons .social-icon-box {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.footer-follow-col {
  margin-top: 40px;
}

@media (max-width: 991.98px) {
  /* Stop pulling the dark bar up over the artwork on phones/tablets */
  .footer-overlap-row {
    margin-bottom: 0;
  }

  /* Social icons: no card chrome on small screens */
  .footer-social-icons {
    justify-content: center;
    align-content: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.15rem;
    padding: 0 8px;
    background: transparent !important;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
  }

  .footer-social-icons .social-icon-box {
    flex: 0 0 auto;
  }

  /* Space for footer artwork; keep moderate on small screens */
  .footer {
    padding-bottom: 150px !important;
  }
}

@media (max-width: 576px) {
  .footer-social-icons {
    max-width: 260px;
    gap: 12px 14px;
  }
}

@media (max-width: 767.98px) {
  .footer {
    background-position: center bottom !important;
    background-size: 100% auto !important;
    padding-bottom: 120px !important;
  }

  .footer .row.footercontentwidth {
    padding-top: 1.15rem !important;
  }

  .footer .row.footercontentwidth > [class*="col-"] {
    margin-bottom: 1.25rem !important;
  }

  .footer .navbar-brand {
    display: block;
    margin-bottom: 0.45rem;
  }

  .footer .navbar-brand .headerLogo {
    width: min(200px, 78vw) !important;
    max-width: 100%;
    padding-bottom: 0.2rem !important;
  }

  .footer .footercontentwidth p,
  .footer .footercontentwidth span,
  .footer .footercontentwidth a {
    text-align: left;
    line-height: 1.5;
  }

  .footer .footercontentwidth .col-lg-4.col-sm-6.mb-5 {
    margin-top: 0 !important;
  }

  .footer-follow-col {
    margin-top: 0.75rem !important;
    text-align: center;
  }

  .footer-follow-col h6 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: 0.08em !important;
    font-size: 1.05rem;
  }

  .footer-social-icons {
    max-width: 280px;
    gap: 8px;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .footer .container-fluid.pl-0.pr-0 {
    margin-top: 0 !important;
  }

  .copyrighttext {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .copyright-small {
    display: block;
    width: min(96%, 380px);
    margin: 0.2rem auto 0;
    line-height: 1.25;
    text-align: center;
  }
}

/* Breadcrumbs: use <nav class="edi-breadcrumb"><ol class="breadcrumb …">…</ol></nav> everywhere */
.edi-breadcrumb {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--edi-body);
  margin-bottom: 0.75rem;
}

.edi-breadcrumb > ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
  background: transparent !important;
}

.edi-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.edi-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.35rem;
}

.edi-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">" !important;
  display: inline-block;
  padding-right: 0.35rem;
  float: none;
  color: var(--edi-green);
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none !important;
}

.edi-breadcrumb .breadcrumb-item + .breadcrumb-item:hover::before {
  text-decoration: none !important;
}

.edi-breadcrumb a {
  color: var(--edi-green);
  text-decoration: none;
  font-weight: 500;
}

.edi-breadcrumb a:hover {
  color: var(--edi-gold);
}

.edi-breadcrumb .breadcrumb-item.active {
  color: var(--edi-body);
  font-weight: 500;
}

.edi-breadcrumb i.fa-home {
  color: var(--edi-green) !important;
}

/* Title row + gold rule (replaces inline flex on inner pages) */
.edi-page-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0.75rem 0 1.25rem;
  width: 100%;
  min-width: 0;
}

/* Inner-page hero titles (Coloring Pages, Treasures, FAQ, etc.) */
.page-header-content .edi-page-title-row h1,
.page-header-content .edi-page-title-row h2,
.page-header-content .edi-page-title-row h3,
.page-header-content .edi-page-title-row h4,
.edi-page-title-row h1,
.edi-page-title-row h2,
.edi-page-title-row h3,
.edi-page-title-row h4 {
  margin: 0 !important;
  flex: 0 0 auto;
  max-width: 100%;
  font-size: var(--edi-h1-size);
  line-height: 1.25;
  color: var(--edi-title-color) !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: normal;
}

.page-header-content .edi-page-title-row h1.text-danger,
.page-header-content .edi-page-title-row h2.text-danger,
.page-header-content .edi-page-title-row h1.text-primary,
.page-header-content .edi-page-title-row h2.text-primary,
.edi-page-title-row h1.text-danger,
.edi-page-title-row h2.text-danger,
.edi-page-title-row h1.text-primary,
.edi-page-title-row h2.text-primary {
  color: var(--edi-title-color) !important;
}

.edi-page-title-rule {
  flex: 1 1 0;
  min-width: 2rem;
  height: 2px;
  background: var(--edi-gold);
  border-radius: 1px;
  align-self: center;
}

@media (max-width: 991.98px) {
  /* Homepage intro: width/gutters set in custom.css (loads before this file) */
  .edi-intro-image img {
    max-height: none;
    max-width: min(100%, 400px);
    width: auto;
    height: auto;
    padding-left: 0 !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .edi-intro-text {
    margin-right: 0;
    margin-left: 0;
  }
}

.edi-blogs-categories-lead {
  color: #888;
  font-size: 0.95rem;
  margin-top: -0.25rem;
}

/* Coloring / PDF result cards: orange tag icon + label (e.g. Drawing) */
.edi-content-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.edi-content-card-tag i {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #f57c00;
  line-height: 1;
}

.edi-content-card-tag span {
  color: #f57c00;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

/* Blog tag strip (Hidden Den + single post): match PDF free-resource topic links */
.edi-blog-tag-chips {
  font-size: 0.9375rem;
  line-height: 2.1;
  margin: 0.35rem 0 0.75rem;
}

.edi-blog-topic-link {
  color: #0b0b0b !important;
  text-decoration: none !important;
  font-weight: 600;
}

.edi-blog-topic-link:hover {
  color: var(--edi-green) !important;
  border-bottom-color: var(--edi-green);
}

.edi-blog-single-article .edi-blog-tag-chips {
  margin-left: 0;
  margin-right: 0;
}

/* Single blog post (blog.php) — listing-style header + wide hero */
.edi-blog-single-page .edi-blog-single-featured {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.edi-blog-single-page .edi-blog-single-featured__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(72vh, 560px);
  object-fit: contain;
  margin: 0 auto;
}

/* Single blog: readable column + inline share row */
.edi-blog-single-outer .edi-blog-single-inner {
  max-width: 1140px;
}

/* Single blog: same title row band as listing, but category tag + rule instead of page h1 */
.edi-blog-single-page .edi-blog-single-tag-title-row {
  margin-bottom: 1rem;
}

.edi-blog-single-breadcrumb-tag {
  flex: 0 0 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0 !important;
}

.edi-blog-single-after-hero-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.edi-blog-single-post-title {
  color: var(--edi-heading) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  margin: 0 !important;
}

.edi-blog-single-hero-tag-grade {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--edi-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem 0.25rem;
}

.edi-blog-single-after-hero-heading .edi-blog-single-hero-tag-grade + .edi-blog-single-post-title {
  margin-top: 0.5rem !important;
}

.edi-blog-single-post-title-rule {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
}

.edi-blog-single-meta-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.edi-blog-single-meta {
  font-size: 0.875rem;
}

.edi-blog-single-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.edi-blog-share-label {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--edi-heading) !important;
  margin: 0;
}

.edi-blog-share-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.edi-blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: var(--edi-green);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.edi-blog-share-btn:hover {
  background: var(--edi-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.edi-blog-single-page .edi-blog-single-article {
  padding-top: 0.5rem;
}

.edi-blog-single-prose {
  font-size: 0.9375rem;
  color: var(--edi-body);
}

.edi-blog-single-prose p {
  margin-bottom: 1rem;
}

.edi-blog-inline-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.edi-blog-single-img-row {
  margin-left: -6px;
  margin-right: -6px;
}

.edi-blog-single-img-row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.edi-blog-extra-caption {
  font-size: 0.8125rem;
  text-align: center;
}

.edi-blog-single-video-wrap.blog-video {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.edi-blog-single-video-wrap.blog-video .container {
  max-width: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.edi-blog-single-video-wrap.blog-video .col-lg-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .edi-blog-single-meta-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .edi-blog-single-share {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ----- Brave Heart: single challenge detail (challenge-details.php) ----- */
.challenge-details-page .edi-challenge-detail-inner {
  max-width: 1140px;
}

.challenge-details-page .edi-challenge-hero {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.challenge-details-page .edi-challenge-hero__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(72vh, 560px);
  object-fit: contain;
  margin: 0 auto;
}

.challenge-details-page .edi-challenge-detail-title {
  color: var(--edi-heading) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  margin: 0.35rem 0 1rem;
}

.challenge-details-page .edi-blog-single-article {
  padding-top: 0.25rem;
}

.challenge-details-page .edi-challenge-detail-body {
  margin-bottom: 0.5rem;
}

.challenge-details-page .edi-challenge-app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  background: #f8faf9;
  border: 1px solid rgba(51, 166, 117, 0.22);
  border-radius: 10px;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.challenge-details-page .edi-challenge-app-label {
  flex: 1 1 auto;
  min-width: 0;
}

.challenge-details-page .edi-challenge-app-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #212121;
}

.challenge-details-page .edi-challenge-app-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.challenge-details-page .edi-challenge-download-btn {
  background-color: var(--edi-green) !important;
  border-color: var(--edi-green) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.35rem;
  min-width: 9.5rem;
  text-align: center;
}

.challenge-details-page .edi-challenge-download-btn:hover:not(:disabled) {
  background-color: var(--edi-green-dark) !important;
  border-color: var(--edi-green-dark) !important;
  color: #fff !important;
}

.challenge-details-page .edi-challenge-download-btn--disabled,
.challenge-details-page .edi-challenge-download-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.challenge-details-page .edi-challenge-winners-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #212121;
  padding-bottom: 0.5rem;
  max-width: 42rem;
}

.challenge-details-page .edi-challenge-winners-row {
  margin-left: auto;
  margin-right: auto;
}

.challenge-details-page .edi-challenge-winners-row .col-md-4{
  padding-left: 0 !important;
  padding-right: 20px;
}

.challenge-details-page .edi-challenge-winner-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.challenge-details-page .edi-challenge-winner-thumb {
  background: #fafafa;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-details-page .edi-challenge-winner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.challenge-details-page .edi-challenge-winner-caption {
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .challenge-details-page .edi-challenge-app-row {
    flex-direction: column;
    align-items: stretch;
  }

  .challenge-details-page .edi-challenge-app-actions {
    justify-content: flex-start;
  }

  .challenge-details-page .edi-challenge-download-btn {
    width: 100%;
  }
}

.edi-blogs-grid .edi-blog-col {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px !important; /* keep vertical gap equal to horizontal gutter (12 + 12) */
}

@media (min-width: 992px) {
  .edi-blogs-grid .edi-blog-col {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.edi-blogs-page .edi-blog-card--list {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.edi-blog-title-rule {
  height: 2px;
  width: 100%;
  background: #ffb74d;
  border-radius: 1px;
  margin: 0.15rem 0 0.95rem;
  flex-shrink: 0;
}

.edi-blogs-page .edi-blog-readmore {
  font-weight: 700;
  text-decoration: underline;
}

.edi-blogs-page .edi-blog-readmore:hover {
  text-decoration: underline;
}

/* ----- Home: The Hidden Den (featured + 2×2 grid) ----- */
.edi-hidden-den-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
  isolation: isolate;
  background-color: #fff;
  clear: both;
  overflow: auto;
  padding-bottom: 0.5rem;
}

/* Trail of Tales page: intro copy between title and testimonial grid */
.edi-testimonials-intro {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.edi-testimonials-intro__text {
  margin: 0;
  line-height: 1.65;
  color: var(--edi-body);
}

@media (max-width: 767.98px) {
  .edi-testimonials-intro {
    margin-top: 2rem;
    margin-bottom: 2.25rem;
  }
}

/* Keep Trail + testimonials block from collapsing into following sections */
.edi-trail-tales-wrap {
  position: relative;
  z-index: 1;
  clear: both;
  background-color: #fff;
}

/* Home testimonial section mobile polish to match compact stacked-card layout */
@media (max-width: 767.98px) {
  .testimonial-bg .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .testimonial-sec > [class*="col-"] {
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.85rem;
  }

  .testimonial-sec .card.blog-item {
    min-height: 0;
  }

  .testimonial-sec .card.blog-item .card-body {
    padding: 0.95rem 0.9rem 1.35rem !important;
  }

  /* Keep testimonial footer details from overlapping text/stars on mobile */
  .testimonial-sec .card.blog-item .card-body {
    display: flex;
    flex-direction: column;
  }

  .testimonial-sec .d-flex.justify-content-left {
    padding-top: 0 !important;
    margin-bottom: 0.35rem;
  }

  .testimonial-sec .testimonial-name-tag {
    position: static !important;
    width: auto !important;
    margin-top: 0.2rem;
  }

  .testimonial-sec .testimonial-name-tag h6 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.1rem !important;
  }

  .testimonial-sec .testimonial-name-tag center {
    margin-top: 0 !important;
  }
}

#challenge-section {
  position: relative;
  z-index: 1;
  clear: both;
  background-color: #fff;
}

/* Home (and footer newsletter): full width of parent column + justified copy.
   Width matches sibling blocks in the same Bootstrap col (e.g. Brave Heart banner). */
.edi-home-lead {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--edi-body);
}

/* Newsletter form: 60% of column, centered; flex row so input + button share one height */
.footerEmailCustom .edi-footer-newsletter-form {
  width: 60%;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

.footerEmailCustom .edi-footer-newsletter-form .input-group-append {
  display: flex;
  margin: 0;
}

/* Footer newsletter: one shared row height (border-box), aligned tops/bottoms */
.footerEmailCustom .edi-footer-newsletter-form #newsletterEmail {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  padding: 0 0.95rem !important;
  border-width: 2px !important;
  border-right: none !important;
  border-radius: 0 !important;
  font-size: 0.95rem;
  line-height: 1.2;
}

.footerEmailCustom .edi-footer-newsletter-form .input-group-append .newsl-subscribe-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 1.25rem !important;
  border-radius: 0 !important;
  border: 2px solid var(--edi-green) !important;
  background-color: var(--edi-green-darker) !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  /* Mobile global type scale requested */
  h1,
  .h1 {
    font-size: 25px !important;
    line-height: 1.25;
  }

  p,
  .edi-home-lead,
  .edi-paragraph {
    font-size: 15px !important;
    line-height: 1.5;
  }

  .footerEmailCustom {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .footerEmailCustom h1.text-danger {
    margin-bottom: 0.9rem;
  }

  .footerEmailCustom .edi-home-lead {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.5;
    margin-bottom: 0.35rem;
  }

  .footerEmailCustom .edi-footer-newsletter-form {
    width: 100%;
    max-width: 100%;
    margin-top: 0.85rem !important;
  }

  .footerEmailCustom .edi-footer-newsletter-form #newsletterEmail {
    font-size: 0.95rem;
    border-right: none !important;
  }

  .footerEmailCustom .edi-footer-newsletter-form .input-group-append .newsl-subscribe-btn {
    min-width: 110px;
    font-size: 0.95rem;
    margin-left: 0 !important;
  }
}

/* lg+: two columns share one row height; featured card grows so its bottom lines up with the 2×2 grid */
@media (min-width: 992px) {
  .edi-hidden-den-grid {
    align-items: stretch;
  }

  .edi-hidden-den-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .edi-hidden-den-featured {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .edi-hidden-den-featured > .row {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
  }

  .edi-hidden-den-featured .edi-blog-col {
    flex: 1 1 auto;
    min-height: 0;
    display: flex !important;
  }

  .edi-hidden-den-featured .edi-blog-card--featured {
    flex: 1 1 auto;
    min-height: 0;
  }

  .edi-hidden-den-featured .edi-blog-thumb-link {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .edi-hidden-den-featured .edi-blog-thumb {
    flex: 1 1 auto;
    min-height: 160px;
    aspect-ratio: unset;
    position: relative;
  }

  .edi-hidden-den-featured .edi-blog-thumb img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.edi-hidden-den-grid .edi-blog-col {
  display: flex;
}

.edi-hidden-den-grid .edi-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  /* border: 1px solid rgba(51, 166, 117, 0.22); */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.edi-blog-thumb-link {
  display: block;
  flex-shrink: 0;
}

.edi-blog-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ececec;
}

.edi-blog-card--featured .edi-blog-thumb {
  aspect-ratio: 16 / 9;
}

.edi-blog-card--grid .edi-blog-thumb {
  aspect-ratio: 16 / 9;
}

.edi-blog-card--list .edi-blog-thumb {
  aspect-ratio: 4 / 3;
}

.edi-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edi-blog-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  text-align: left;
  font-family: var(--edi-font-sans);
}

.edi-blog-tag {
  font-size: 0.75rem;
  font-weight: 400;
  font-family: inherit;
  color: var(--edi-body);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.edi-blog-tag i {
  color: #ffb100;
}

.edi-blog-title {
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--edi-heading) !important;
}

.edi-blog-title a {
  font-family: inherit;
  color: inherit !important;
  text-decoration: none;
}

.edi-blog-title a:hover {
  color: var(--edi-gold) !important;
}

.edi-blog-excerpt {
  font-weight: 400;
  line-height: 1.5;
  color: var(--edi-body);
  margin: 0.15rem 0 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-align: justify;
}

.edi-blog-card--grid .edi-blog-excerpt {
  -webkit-line-clamp: 2;
}

.edi-blog-card--featured .edi-blog-excerpt {
  -webkit-line-clamp: 8;
}

/* Homepage “Hidden Den” featured column only: allow a longer excerpt to match the stretched card height */
.edi-hidden-den-featured .edi-blog-card--featured .edi-blog-excerpt {
  -webkit-line-clamp: 12;
}

.edi-blog-card--list .edi-blog-excerpt {
  -webkit-line-clamp: 5;
}

.edi-blog-readmore {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--edi-green) !important;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.edi-blog-readmore:hover {
  color: var(--edi-gold) !important;
  text-decoration: underline;
}

.edi-blog-subgrid .edi-blog-col {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 1.35rem;
}
.edi-blog-subgrid{
 row-gap: 15px;
}

@media (max-width: 575.98px) {
  .edi-blog-card--featured .edi-blog-thumb {
    aspect-ratio: 4 / 3;
  }

  .edi-blog-subgrid .edi-blog-col {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  /* Hidden Den mobile: list blog cards one-by-one */
  .edi-hidden-den-grid .edi-blog-subgrid > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Mobile: keep all blog excerpts at same length */
  .edi-blog-card--grid .edi-blog-excerpt,
  .edi-blog-card--featured .edi-blog-excerpt,
  .edi-hidden-den-featured .edi-blog-card--featured .edi-blog-excerpt,
  .edi-blog-card--list .edi-blog-excerpt {
    line-clamp: 5;
    -webkit-line-clamp: 5;
  }

  /* Keep equal left/right gutters in home content sections */
  .edi-trail-tales-wrap > .container,
  .edi-hidden-den-section > .container,
  #challenge-section > .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Move floating up button away from reading area */
  .back-to-top {
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* ----- Site-wide polish: rhythm, type, mobile readability ----- */

/* Main nav bar aligns with page content width (1140) */
.edibear-nav-container {
  max-width: 1140px;
}

@media (max-width: 991.98px) {
  .edibear-navbar {
    padding-top: 18px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 767.98px) {
  /* Justified blocks are hard to read on narrow screens */
  p.text-justify,
  .text-justify {
    text-align: left !important;
  }

  /* Ensure equal mobile gutters on Treasure Details header */
  .edi-treasure-detail-outer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .edi-treasure-detail-outer > .container.edi-treasure-detail {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  .page-header-content {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  .edi-page-title-row {
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.5rem 0 1rem;
  }

  .page-header-content .edi-page-title-row h1,
  .page-header-content .edi-page-title-row h2,
  .page-header-content .edi-page-title-row h3,
  .page-header-content .edi-page-title-row h4,
  .edi-page-title-row h1,
  .edi-page-title-row h2,
  .edi-page-title-row h3,
  .edi-page-title-row h4 {
    font-size: var(--edi-h1-size);
    line-height: 1.25;
  }

  .page-header-content > .container,
  .page-header-content.container-fluid > .container,
  .page-header-content.container {
    padding-left: clamp(14px, 4vw, 18px);
    padding-right: clamp(14px, 4vw, 18px);
  }

  .edi-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }
}

/* Long-form copy: comfortable line height inside main content shells */

/* ----- Cart: login required modal (injected from class.header.php) ----- */
.edi-cart-login-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(22, 24, 29, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: edi-cart-login-popup-fade 0.22s ease-out;
}

@keyframes edi-cart-login-popup-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.edi-cart-login-popup__panel {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: left;
  background: #fff;
  border-radius: 1rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 18px 38px -12px rgba(22, 24, 29, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  font-family: var(--edi-font-sans);
  animation: edi-cart-login-popup-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes edi-cart-login-popup-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.edi-cart-login-popup__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--edi-title-color);
  letter-spacing: -0.02em;
}

.edi-cart-login-popup__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--edi-body);
}

.edi-cart-login-popup__actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
}

.edi-cart-login-popup__actions .edi-cart-login-popup__btn {
  flex: 1 1 0;
  min-width: 0;
}

.edi-cart-login-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0.625rem;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.edi-cart-login-popup__btn:active {
  transform: scale(0.98);
}

.edi-cart-login-popup__btn--primary {
  background: var(--edi-green);
  color: #fff;
  border-color: var(--edi-green);
  box-shadow: 0 2px 10px rgba(51, 166, 117, 0.35);
}

.edi-cart-login-popup__btn--primary:hover {
  background: var(--edi-green-dark);
  border-color: var(--edi-green-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(51, 166, 117, 0.4);
}

.edi-cart-login-popup__btn--ghost {
  background: #f8f9fa;
  color: var(--edi-body);
  border-color: rgba(96, 96, 98, 0.22);
}

.edi-cart-login-popup__btn--ghost:hover {
  background: #fff;
  border-color: var(--edi-green);
  color: var(--edi-green-darker);
}

@media (max-width: 380px) {
  .edi-cart-login-popup__actions {
    flex-wrap: wrap;
  }

  .edi-cart-login-popup__actions .edi-cart-login-popup__btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 6.5rem;
  }
}
