/*
 * newcouponshub-overrides.css
 * Sits on top of the Inotek template's style.css.
 *
 * Palette note: the template ships blue-on-white by default
 * (--theme-color #1053f3, --theme-color3 dark navy #061153). That IS the
 * blue/white brief, so we do NOT repaint its sections. Dark sections here are
 * dark *navy blue*, not the old teal-green theme, and they carry background
 * images designed for white text — repainting them white would make the text
 * unreadable. We only add the components the template lacks.
 *
 * 1. Bespoke coupon-card / coupon-popup / stores-ticker components
 *    (a coupon site needs them, an agency template doesn't).
 * 2. Ported utilities: search dropdown, copy toast, skip link, cookie bar.
 * 3. Admin brand/accent colour pickers mapped onto the template's variables.
 */

/* ---------- 0. Layout-shift guard ------------------------------------------
 * webp_picture() now emits intrinsic width/height on every image so the browser
 * can reserve the right box before the bytes arrive (Cumulative Layout Shift).
 *
 * The template's global rule is `img { max-width: 100% }` with no height, so an
 * image whose width gets clamped would keep its full attribute height and
 * render stretched. height:auto turns the attributes back into a pure
 * aspect-ratio hint.
 *
 * :where() is deliberate — it contributes ZERO specificity, so this stays at
 * 0,0,1 (the same as a bare `img`). Every component that sets its own height
 * (.nch-hs__bg{height:100%}, avatars, logo boxes) still wins. Written as
 * img[width][height] it would be 0,2,1 and would have overridden all of them.
 */
img:where([width][height]) { height: auto; }

/* The counter stats moved from <h4>/<h6> to <div class="title">/<p class="text">
 * so numbers stop appearing in the document outline. .title was already styled
 * by class; the old h6 rule was tag-based, so its declarations are restored here
 * against .text. Values copied verbatim from style.css. */
.tv-counter-section .counter-inner .counter-box .content .text {
  font-size: 20px;
  line-height: 1;
  color: var(--white-color);
  font-weight: 500;
  font-family: var(--title-font);
  margin-top: 15px;
}

/* ---------- 2z. Custom hero (purpose-built for a coupon site) ----------
   The template's style-8 hero is an AI-agency demo (robot artwork, fixed-height
   bg image, GSAP SplitText on .sec-title that strips inherited colour). We use
   our own markup so the headline stays readable and the search bar fits. */
.nch-hero {
  background: linear-gradient(135deg, var(--theme-color3) 0%, #0b2a8f 45%, var(--theme-color) 100%);
  padding: 0 30px;
}
@media (max-width: 991px) { .nch-hero { padding: 0; } }
.nch-hero__inner {
  border-radius: 20px;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
  /* subtle dot texture, drawn in CSS so there is no extra image request */
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
}
@media (max-width: 991px) { .nch-hero__inner { border-radius: 0; padding: 60px 0 70px; } }
.nch-hero__content { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.nch-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 8px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.nch-hero__badge i { color: #4ade80; }
.nch-hero__title {
  font-family: var(--title-font);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15; font-weight: 800;
  color: #fff !important; margin: 0 0 18px;
}
.nch-hero__title span { color: #8fb4ff; }
.nch-hero__sub { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.7; margin: 0 auto 32px; max-width: 620px; }
.nch-hero__searchwrap { position: relative; max-width: 560px; margin: 0 auto; }
.nch-hero__searchbar {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 50px; padding: 6px 6px 6px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.nch-hero__searchbar i { color: var(--gray-color); font-size: 15px; flex-shrink: 0; }
.nch-hero__searchbar input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 15px 0; font-size: 15px; color: var(--title-color); min-width: 0;
}
.nch-hero__stats { display: flex; justify-content: center; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.nch-hero__stat { text-align: center; }
.nch-hero__stat strong { display: block; font-family: var(--title-font); font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.nch-hero__stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* SplitType (main.js titleAnimation) wraps .sec-title text in .char spans which
   drop the inherited colour — force it back so headings never render invisible. */
.sec-title .char, .title-anim .char, .hero-content .title .char { color: inherit !important; }
.text-white .char, .text-white.char { color: #fff !important; }

/* ---------- 2x. Dark navy band (home-2 "testimonial" treatment) ----------
   Wraps the popular-stores carousel + top-coupon cards in one rounded navy
   panel so that stretch of the page reads as a single block instead of two
   sparse white sections. */
@media (max-width: 991px) { .nch-band { padding-top: 44px; } }

.nch-band__inner {
  background: var(--theme-color3);
  border-radius: 30px;
  /* Blue dot pattern drawn in CSS so it always renders at a predictable
     contrast, rather than depending on the artwork's own opacity. */
  background-image:
    radial-gradient(rgba(120, 165, 255, .30) 1.4px, transparent 1.4px),
    radial-gradient(rgba(120, 165, 255, .16) 1.4px, transparent 1.4px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}
@media (max-width: 1399px) { .nch-band__inner { border-radius: 0; } }
/* the world-map artwork sits under the dots as a soft accent */
.nch-band__inner > .bg.image { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nch-band__inner > .bg.image img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }

.nch-band .title-wrap.two .sec-title,
.nch-band .sec-title.text-white { color: #fff !important; }
.nch-band .sub-title-2 { color: #fff; }

/* Section heading sits inside the band, above the coupon slider */
.nch-band__head { text-align: center; max-width: 760px; margin: 10px auto 44px; }
.nch-band__head .sec-title { margin-bottom: 14px; }
.nch-band__lead { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.7; margin: 0 auto; max-width: 620px; }

/* ---------- 2x3. Live counts bar (home-2 "tv-counter-section") ----------
   Standalone blue bar between the ticker and the dark band, spaced from both.
   Numbers animate via main.js counterOdometer() reading data-count. */
.nch-counter { padding: 70px 0 0; background: transparent !important; }
@media (max-width: 991px) { .nch-counter { padding-top: 44px; } }
.nch-counter .counter-inner { border-radius: 30px; background: var(--theme-color); }
@media (max-width: 1399px) { .nch-counter .counter-inner { border-radius: 0; } }
.nch-counter .counter-inner > .bg.image { position: absolute; inset: 0; z-index: 0; }
.nch-counter .counter-inner > .bg.image img { width: 100%; height: 100%; object-fit: cover; }
.nch-counter .container { position: relative; z-index: 2; }
.nch-counter .counter-box { display: flex; align-items: center; gap: 16px; }
.nch-counter .counter-box .icon img { width: 52px; height: auto; }
.nch-counter .counter-box .title { font-family: var(--title-font); font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; }
.nch-counter .counter-box .text { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 4px; }
@media (max-width: 767px) { .nch-counter .counter-box { justify-content: flex-start !important; } }

/* The dark band follows the counter bar, so its own top padding is smaller */
.nch-band { padding-top: 70px; }

/* Matches the "Top Coupons & Hot Deals" heading size (.sec-title = h2, 42px).
   Letter-spacing is kept minimal — the wide tracking used at 13px would push
   this all-caps line onto two rows at heading size. */
.nch-band__label {
  text-align: center;
  color: #fff !important;
  font-family: var(--title-font);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0 0 34px;
  padding: 10px 0 0;
}
@media (max-width: 991px) { .nch-band__label { font-size: 30px; } }
@media (max-width: 575px) { .nch-band__label { font-size: 24px; } }
.nch-band .border { border-top: 1px solid rgba(255,255,255,.14); opacity: 1; }
.nch-band__brandtext { color: #fff; font-weight: 700; font-size: 14px; }
/* store logos are mixed light/dark artwork — a white tile keeps them legible
   against the navy panel */
.nch-band .brand-item {
  display: flex; align-items: center; justify-content: center;
  height: 78px; padding: 10px 16px;
  background: #fff; border-radius: 12px;
}
.nch-band .brand-item img { max-height: 46px !important; max-width: 120px !important; width: auto !important; height: auto !important; object-fit: contain; }

.nch-band__nav { display: flex; justify-content: center; gap: 12px; margin-top: 42px; }
.nch-band__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: transparent;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.nch-band__arrow:hover { background: #fff; color: var(--theme-color3); border-color: #fff; }

/* ---------- 2x2. Feature coupon card (inside the navy band) ---------- */
.nch-topcoupon-slider .swiper-wrapper { align-items: stretch; }
.nch-topcoupon-slider .swiper-slide { height: auto; display: flex; }
.nch-topcoupon-slider .swiper-slide > * { width: 100%; }
.nch-fc {
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  margin-top: 50px;
  text-align: left;
}
.nch-fc .testi-top { width: calc(100% - 40px); padding: 16px 20px; gap: 14px; }
.nch-fc__logo { width: 48px; height: 48px; flex-shrink: 0; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nch-fc__logo img { max-width: 76%; max-height: 76%; object-fit: contain; border-radius: 0 !important; }
.nch-fc__initial { font-weight: 800; font-size: 18px; color: var(--theme-color); }
/* h3 as well as h4 — the store name moved to <h3> so it sits one level under
   its section <h2> instead of skipping a level in the document outline. */
.nch-fc .testi-info h4,
.nch-fc .testi-info h3 { font-size: 16px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nch-fc .testi-content { display: flex; flex-direction: column; flex: 1; padding-top: 26px; }
.nch-fc__badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; min-height: 20px; }
.nch-fc__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.nch-fc__badge--ok   { background: #e8f8ee; color: #1a7f43; }
.nch-fc__badge--star { background: #fff4e5; color: #b26a00; }
.nch-fc__badge--time { background: var(--light-color); color: var(--gray-color2); font-weight: 600; }
.nch-fc__titlelink { text-decoration: none; display: block; }
.nch-fc__title {
  font-family: var(--title-font); font-size: 17px; font-weight: 700;
  line-height: 1.45; color: var(--title-color); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 72px;
}
.nch-fc__titlelink:hover .nch-fc__title { color: var(--theme-color); }
.nch-fc__expiry { font-size: 12px; color: var(--gray-color); margin: 0 0 18px; }
.nch-fc__btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 30px;
  background: var(--theme-color); color: #fff !important;
  font-weight: 700; font-size: 14px; text-decoration: none;
  border: 1.5px dashed transparent;
}
.nch-fc__btn:hover { background: var(--theme-color3); }
.nch-fc__btn--code { background: var(--light-color2); color: var(--theme-color) !important; border-color: var(--theme-color); letter-spacing: .04em; }
.nch-fc__btn--code:hover { background: var(--theme-color); color: #fff !important; }

/* ---------- 2x4. Featured deal card (".service-box-five" style) ----------
   The template's own :hover rules already flip the card to solid blue and turn
   the h4 / p / button white. These additions cover the parts that are ours:
   the store logo tile, badges, coupon title and expiry line — each needs an
   explicit hover colour or it stays dark-on-blue. */
.nch-deals .nch-coupon-slider-featured { padding: 6px 4px 4px; }
.nch-coupon-slider-featured .swiper-wrapper { align-items: stretch; }
.nch-coupon-slider-featured .swiper-slide { height: auto; display: flex; }
.nch-coupon-slider-featured .swiper-slide > * { width: 100%; }

.nch-dealbox { display: flex; flex-direction: column; height: 100%; }
.nch-dealbox .service-top { align-items: center; }
/* h3 as well as h4 — see the note on .nch-fc .testi-info above. */
.nch-dealbox .service-top h4,
.nch-dealbox .service-top h3 {
  font-size: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Store logos are brand artwork — keep them on a white tile in both states
   rather than letting the template's brightness/invert filter flatten them. */
.nch-dealbox__logo {
  width: 56px; height: 56px; flex-shrink: 0;
  background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6px;
}
.nch-dealbox__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nch-dealbox:hover .nch-dealbox__logo { background: #fff; }
.nch-dealbox:hover .nch-dealbox__logo img { filter: none !important; }
.nch-dealbox__initial { font-weight: 800; font-size: 20px; color: var(--theme-color); }

.nch-dealbox__badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 22px 0 12px; }
.nch-dealbox__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px;
  background: rgba(16,83,243,.10); color: var(--theme-color);
  transition: background .3s ease, color .3s ease;
}
.nch-dealbox__badge--type { background: rgba(16,83,243,.10); color: var(--theme-color); }
.nch-dealbox__badge--ok   { background: #e8f8ee; color: #1a7f43; }
.nch-dealbox__badge--star { background: #fff4e5; color: #b26a00; }
/* On the blue hover fill every badge flips to a translucent white chip so the
   green/gold tints don't clash with the solid theme colour. */
.nch-dealbox:hover .nch-dealbox__badge,
.nch-dealbox:hover .nch-dealbox__badge--ok,
.nch-dealbox:hover .nch-dealbox__badge--star,
.nch-dealbox:hover .nch-dealbox__badge--type { background: rgba(255,255,255,.22); color: #fff; }
.nch-dealbox:hover .nch-dealbox__badge i { color: #fff; }

.nch-dealbox__expiry { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nch-dealbox__expiry span { display: inline-flex; align-items: center; gap: 5px; }

.nch-dealbox__titlelink { display: block; text-decoration: none; }
.nch-dealbox__title {
  margin: 0 0 10px !important;
  font-family: var(--title-font);
  font-size: 15px; font-weight: 600; line-height: 1.55;
  color: var(--title-color);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 70px;
  transition: color .3s ease;
}
.nch-dealbox:hover .nch-dealbox__title { color: #fff; }

.nch-dealbox__expiry {
  margin: 0 0 22px !important;
  font-size: 12px; color: var(--gray-color);
  transition: color .3s ease;
}
.nch-dealbox:hover .nch-dealbox__expiry { color: rgba(255,255,255,.8); }

.nch-dealbox__btn { margin-top: auto; align-self: flex-start; }
.nch-dealbox__btn .effect-1 { letter-spacing: .02em; }

.nch-deals__nav { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }
.nch-deals__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(6,17,83,.2); background: #fff;
  color: var(--theme-color3); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.nch-deals__arrow:hover { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

/* ---------- 2x5. "How to Save" steps ----------
   The template ships the middle card permanently highlighted (.style-2 carries
   the fill + blue number). We keep .style-2/.style-3 for their border-radius
   role but strip the highlight, so no step is active until hovered — then any
   card gets the blue treatment and its clip-path blob spins. */
.tv-process-section.style-3 .process-inner .process-box.style-2 {
  background: transparent;
  border-top: 1px solid var(--bs-border-color5);
  border-bottom: 1px solid var(--bs-border-color5);
}
.tv-process-section.style-3 .process-inner .process-box.style-2 .process-number { background: #131d5c; }
.tv-process-section.style-3 .process-inner .process-box.style-2 .process-number span { color: var(--bs-text-color2); }

/* Hover = the highlighted state, for every card equally */
.tv-process-section.style-3 .process-inner .process-box { cursor: default; }
.tv-process-section.style-3 .process-inner .process-box:hover { background: var(--bs-bg-color14); }
.tv-process-section.style-3 .process-inner .process-box:hover .process-number { background: var(--theme-color); }
.tv-process-section.style-3 .process-inner .process-box:hover .process-number span { color: #fff; }

/* The blob clip lives in a zero-size inline <svg>; without this it reserves
   layout space and pushes the artwork down. */
.tv-process-section .process-box .clip-svg { position: absolute; width: 0; height: 0; }
.tv-process-section .process-box .process-img .main-img { max-width: 258px; width: 100%; height: auto; }

/* ---------- 2x6. Latest coupons — blue horizontal row ----------
   Styled after home-7's newsletter bar: same gradient artwork behind a 30px
   radius. Everything sits on blue, so every text element needs an explicit
   light colour — nothing may inherit the default dark body colour. */
.nch-rowlist { display: flex; flex-direction: column; gap: 20px; max-width: 1050px; margin: 0 auto; }

.nch-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 34px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--theme-color);   /* fallback before the artwork paints */
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.nch-row > .bg.image { position: absolute; inset: 0; z-index: -1; transition: transform .6s ease; }
.nch-row > .bg.image img { width: 100%; height: 100%; object-fit: cover; }
.nch-row--expired { opacity: .6; }

/* Hover: lift + glow, a light sweep across the bar, and the artwork drifts
   slightly so the card feels alive without the text ever moving. */
.nch-row::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 30px;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.18) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .75s ease;
  pointer-events: none;
  z-index: 0;
}
.nch-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(16,83,243,.38);
}
.nch-row:hover::after { transform: translateX(120%); }
.nch-row:hover > .bg.image { transform: scale(1.06); }
.nch-row > * { position: relative; z-index: 1; }

.nch-row__logo {
  flex: 0 0 76px; width: 76px; height: 76px;
  background: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.nch-row:hover .nch-row__logo { transform: scale(1.06) rotate(-3deg); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.nch-row__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nch-row__initial { font-weight: 800; font-size: 26px; color: var(--theme-color); }

.nch-row__body { flex: 1 1 auto; min-width: 0; }
.nch-row__store {
  display: inline-block; margin-bottom: 4px;
  font-size: 13px; font-weight: 700;
  color: #bcd2ff !important; text-decoration: none;
}
.nch-row__store:hover { color: #fff !important; text-decoration: underline; }
.nch-row__titlelink { display: block; text-decoration: none; }
.nch-row__title {
  font-family: var(--title-font);
  font-size: 18px; font-weight: 700; line-height: 1.4;
  color: #fff; margin: 0 0 6px;
}
.nch-row__titlelink:hover .nch-row__title { color: #d6e3ff; }
.nch-row__desc { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.75); margin: 0 0 10px; }

.nch-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nch-row__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(255,255,255,.16); color: #fff;
  transition: background .25s ease;
}
/* Colour-coded on the blue bar — tints are kept light enough to stay legible
   against the gradient while still reading as green / gold / red. */
.nch-row__badge--type    { background: #fff; color: var(--theme-color); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.nch-row__badge--ok      { background: rgba(74, 222, 128, .22); color: #b9f7cd; }
.nch-row__badge--ok i    { color: #4ade80; }
.nch-row__badge--star    { background: rgba(255, 194, 71, .22); color: #ffe0a3; }
.nch-row__badge--star i  { color: #ffc247; }
.nch-row__badge--time    { background: rgba(255,255,255,.14); color: #dce7ff; }
.nch-row__badge--expired { background: rgba(255, 99, 99, .24); color: #ffc9c9; }
.nch-row__badge--expired i { color: #ff8a8a; }
.nch-row__badge--trust   { background: rgba(255,255,255,.12); color: #c6d8ff; }
.nch-row__badge--trust i { color: #8fb4ff; }
.nch-row:hover .nch-row__badge { background: rgba(255,255,255,.24); }
.nch-row:hover .nch-row__badge--type { background: #fff; }

.nch-row__cta { flex: 0 0 auto; }
.nch-row__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 168px; padding: 14px 26px; border-radius: 30px;
  background: #fff; color: var(--theme-color) !important;
  font-weight: 800; font-size: 14px; white-space: nowrap;
  border: 2px dashed transparent; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.nch-row__btn:hover { background: var(--theme-color3); color: #fff !important; }
.nch-row__btn--code { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.75); letter-spacing: .06em; }
.nch-row__btn--code:hover { background: #fff; color: var(--theme-color) !important; border-color: #fff; }

@media (max-width: 991px) {
  .nch-row { flex-wrap: wrap; gap: 18px; padding: 24px; }
  .nch-row__body { flex: 1 1 100%; order: 3; }
  .nch-row__cta { flex: 1 1 100%; order: 4; }
  .nch-row__btn { width: 100%; }
}

/* ---------- 2x9. FAQ block ----------
   `.accordion-box.style-2` sets its button text to white and its answer text to
   60% white — it is built for a dark section. On a light background every word
   disappeared, so the block gets the same navy + dot treatment as the rest of
   the site's dark bands. */
.nch-faq { padding: 0 0 40px; }
.nch-faq__inner {
  background: var(--theme-color3);
  border-radius: 30px;
  background-image:
    radial-gradient(rgba(120, 165, 255, .28) 1.4px, transparent 1.4px),
    radial-gradient(rgba(120, 165, 255, .14) 1.4px, transparent 1.4px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}
@media (max-width: 1399px) { .nch-faq__inner { border-radius: 0; } }
.nch-faq .sec-title { color: #fff !important; }
.nch-faq__lead { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; max-width: 620px; margin: 14px auto 0; }
/* answer text at 60% white is thin against the pattern — lift it */
.nch-faq .accordion-box.style-2 .accordion .acc-content .content .text { color: rgba(255,255,255,.82) !important; }
.nch-faq .accordion-box.style-2 .accordion .acc-btn { font-size: 16px; }

/* ---------- 2y2. Newsletter bar ----------
   The form uses .nch-newsletter-form rather than the template's
   .newsletter-form on purpose: main.js auto-binds every .newsletter-form and
   would hijack the submit. That means the input needs styling here. */
.nch-newsletter { padding-bottom: 0; margin-bottom: -60px; }
.nch-newsletter .newsletter { border-radius: 30px; overflow: hidden; }
.nch-newsletter .newsletter > .bg.image { position: absolute; inset: 0; z-index: -1; }
.nch-newsletter .newsletter > .bg.image img { width: 100%; height: 100%; object-fit: cover; }
.nch-newsletter .newsletter .image-text .title { color: #fff !important; }
@media (max-width: 991px) { .nch-newsletter { margin-bottom: -40px; } }

.nch-newsletter-form { position: relative; width: 100%; max-width: 470px; }
.nch-newsletter-form .form-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 7px 7px 7px 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.nch-newsletter-form .form-group input,
.nch-newsletter-form .form-group input.email {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border: none !important;
  outline: none;
  background: #fff !important;
  border-radius: 40px;
  padding: 0 18px;
  font-size: 15px;
  color: #3d4657 !important;          /* typed text: dark slate, not black */
  box-shadow: none !important;
}
.nch-newsletter-form .form-group input::placeholder { color: #98a0b3 !important; opacity: 1; }
.nch-newsletter-form .form-group input:-ms-input-placeholder { color: #98a0b3 !important; }
.nch-newsletter-form .form-group input::-ms-input-placeholder { color: #98a0b3 !important; }
.nch-newsletter-form .form-group input:focus { background: #fff !important; color: #3d4657 !important; }

.nch-newsletter-form .form-group button {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--theme-color);
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.nch-newsletter-form .form-group button:hover { background: var(--theme-color3); transform: scale(1.06); }
.nch-newsletter-form .form-group button:disabled { opacity: .6; cursor: default; }
.nch-newsletter-form .form-group button .btn-title:empty { display: none; }

.nch-newsletter .nch-form-msg { font-size: 13px; margin-top: 10px; padding-left: 20px; color: #fff; }

/* ---------- 2y5. Footer "Latest Blog" items ----------
   The template floats a small fixed thumbnail here and never constrains the
   image, so a full-size featured image (1200px+) blows the block open — that's
   what pushed the dates far below the picture and inflated the footer height.
   Switch to flex with a fixed 74px thumb. */
.footer-widget .recent-post-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  overflow: visible;
}
.footer-widget .recent-post-item .image {
  float: none;
  flex: 0 0 74px;
  width: 74px;
  margin: 0;
}
.footer-widget .recent-post-item .image a { display: block; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; }
.footer-widget .recent-post-item .image img { width: 74px; height: 74px; object-fit: cover; display: block; }
.footer-widget .recent-post-info { flex: 1 1 auto; min-width: 0; }
.footer-widget .recent-post-info .title {
  font-size: 14px; line-height: 1.45; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.footer-widget .recent-post-info .title a { color: #fff; }
.footer-widget .recent-post-info .title a:hover { color: #8fb4ff; }
.footer-widget .recent-post-info .post-date { font-size: 12.5px; line-height: 1.4; }

/* `.footer-top` carries `.space` = 120px top AND bottom, on top of the footer's
   own pt-75. That stacked padding is the empty band under the columns. */
.footer-section .footer-top { padding-top: 40px; padding-bottom: 45px; }
@media (max-width: 991px) { .footer-section .footer-top { padding-top: 24px; padding-bottom: 24px; } }

/* ---------- 2y3. Blog card byline ---------- */
.nch-blogcard__author { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.nch-blogcard__author img,
.nch-blogcard__author-initial {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
}
.nch-blogcard__author-initial {
  background: var(--theme-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.nch-blogcard__author a,
.nch-blogcard__author span:not(.nch-blogcard__author-initial) {
  font-size: 13px; font-weight: 600; color: var(--gray-color2); text-decoration: none;
}
.nch-blogcard__author a:hover { color: var(--theme-color); }

/* ---------- 2y4. Author profile header ---------- */
.nch-authorwrap { padding-top: 40px; }
.nch-authorwrap__inner {
  background: var(--theme-color3);
  border-radius: 30px;
  padding: 56px 0;
  background-image:
    radial-gradient(rgba(120, 165, 255, .26) 1.4px, transparent 1.4px),
    radial-gradient(rgba(120, 165, 255, .13) 1.4px, transparent 1.4px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}
@media (max-width: 1399px) { .nch-authorwrap__inner { border-radius: 0; } }
.nch-author { display: flex; align-items: flex-start; gap: 34px; flex-wrap: wrap; }
.nch-author__avatar {
  flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid rgba(255,255,255,.18);
}
.nch-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nch-author__avatar span { font-size: 52px; font-weight: 800; color: var(--theme-color); }
.nch-author__body { flex: 1 1 380px; min-width: 0; }
.nch-author__name {
  font-family: var(--title-font);
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  color: #fff !important; margin: 6px 0 6px;
}
.nch-author__role { color: #8fb4ff !important; font-weight: 600; font-size: 15px; margin: 0 0 14px !important; }
.nch-author__bio { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.8; max-width: 720px; }
.nch-author__bio p { color: rgba(255,255,255,.78) !important; margin-bottom: 10px; }
.nch-author__bio a { color: #8fb4ff; }
.nch-author__stats { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 22px; }
.nch-author__stat strong { display: block; font-family: var(--title-font); font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.nch-author__stat span { font-size: 13px; color: rgba(255,255,255,.62); }
.nch-author__back {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.nch-author__back:hover { background: #fff; color: var(--theme-color3) !important; border-color: #fff; }
@media (max-width: 575px) {
  .nch-author { gap: 22px; }
  .nch-author__avatar { flex: 0 0 92px; width: 92px; height: 92px; }
  .nch-author__avatar span { font-size: 36px; }
}

/* ---------- 2x8. Logo sizing & footer recolour ----------
   Heights are Theme Designer tokens so the logo can be resized without
   touching CSS. */
.menu-area .header-logo a img,
.sticky-header .header-logo a img {
  max-height: var(--nch-logo-height);
  height: auto;
  width: auto;
}
@media (max-width: 991px) {
  .menu-area .header-logo a img,
  .sticky-header .header-logo a img { max-height: var(--nch-logo-height-mobile); }
}
/* the nav row must be tall enough for a bigger logo, or it gets clipped */
.tv-header .menu-area { min-height: calc(var(--nch-logo-height) + 26px); }

footer.footer-section .brand-info .logo img {
  max-height: var(--nch-footer-logo-height);
  height: auto;
  width: auto;
}
@media (max-width: 991px) {
  footer.footer-section .brand-info .logo img { max-height: var(--nch-footer-logo-height-mobile); }
}
/* Recolour a dark/colour logo to a solid white silhouette so it reads against
   the dark footer — brightness(0) flattens it to black, invert(1) flips that
   to white. Applied ONLY in the footer; the header logo keeps its real colours.
   Set Footer logo rendering = "original" in Theme Designer to disable. */
:root[data-nch-footer-logo="white"] footer.footer-section .brand-info .logo img {
  filter: brightness(0) invert(1);
}

/* ---------- 2x7. Blog cards — uniform height ----------
   Post titles vary from a few words to a full sentence, so without a fixed
   title box the cards in a row end up different heights. Title is clamped to
   two lines and the meta row is pushed to the bottom of the card. */
.nch-blogcard { height: 100%; }
.nch-blogcard .inner-box { display: flex; flex-direction: column; height: 100%; }
.nch-blogcard .blog-image { flex: 0 0 auto; }
.nch-blogcard .blog-image img {
  width: 100%;
  aspect-ratio: 392 / 284;   /* the template's own image proportion */
  object-fit: cover;
}
.nch-blogcard .blog-content { display: flex; flex-direction: column; flex: 1 1 auto; }
.nch-blogcard .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;          /* reserves exactly two lines */
  margin-bottom: 0;
}
.nch-blogcard .title a { color: inherit; }
/* the divider + meta always sit flush at the card's foot */
.nch-blogcard .blog-content > .pt-25 { margin-top: auto; }
.nch-blogcard .blog-meta { flex: 0 0 auto; }

/* Bootstrap rows don't stretch children by default — needed for grid pages */
.tv-blog-section .row > [class*="col-"] { display: flex; }
.tv-blog-section .row > [class*="col-"] > * { width: 100%; }

/* Blog slider slides must stretch too */
.nch-blog-slider .swiper-wrapper { align-items: stretch; }
.nch-blog-slider .swiper-slide { height: auto; display: flex; }
.nch-blog-slider .swiper-slide > * { width: 100%; }

/* ---------- 2a. Coupon card (list + carousel-card variants) ---------- */
.coupon-card {
  background: var(--white-color);
  border: 1px solid var(--light-color3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.coupon-card:hover {
  border-color: var(--theme-color);
  box-shadow: 0 12px 30px rgba(16, 83, 243, .12);
}
.coupon-card--card {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  height: 100%;
  justify-content: flex-start;
}
.coupon-card--card .coupon-card__body { flex: 1 1 auto; }
.coupon-card--card .coupon-card__meta { justify-content: center; }
.coupon-card--card .coupon-card__cta { margin-top: auto; }
.coupon-card--card .coupon-card__cta .copycodebtn { width: 100%; justify-content: center; }
.coupon-card--card .coupon-card__title {
  /* keep carousel cards a consistent height regardless of title length */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.coupon-card__logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--light-color3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white-color);
}
.coupon-card--card .coupon-card__logo { margin: 0 auto 14px; }
.coupon-card__logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.coupon-card__body { flex: 1 1 auto; min-width: 0; }
.coupon-card__store { font-size: 13px; color: var(--theme-color); font-weight: 600; margin-bottom: 4px; }
.coupon-card__title { font-family: var(--title-font); font-size: 16px; font-weight: 700; color: var(--title-color); margin: 0 0 6px; line-height: 1.4; }
.coupon-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gray-color); flex-wrap: wrap; }
.coupon-card__badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.coupon-card__badge--code    { background: var(--light-color2); color: var(--theme-color); text-transform: uppercase; }
.coupon-card__badge--deal    { background: #fff4e5; color: #b26a00; text-transform: uppercase; }
.coupon-card__badge--ok      { background: #e8f8ee; color: #1a7f43; }
.coupon-card__badge--star    { background: #fff4e5; color: #b26a00; }
.coupon-card__badge--time    { background: var(--light-color); color: var(--gray-color2); font-weight: 600; }
.coupon-card__badge--expired { background: #fdecec; color: #b42318; }
.coupon-card__badge--trust   { background: #f1f5ff; color: #4a5a8a; font-weight: 600; }
.coupon-card__cta { flex: 0 0 auto; }
.coupon-card--card .coupon-card__cta { margin-top: 16px; }
/* `.copycodebtn` is the JS hook for copy+popup and is applied to BOTH the CTA
   button and the card's title link. It must therefore carry NO visual styling
   of its own — otherwise titles render as blue buttons with dark text on a
   blue fill. Button appearance lives on `.nch-cta` instead. */
.copycodebtn { cursor: pointer; text-decoration: none; }

.nch-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--theme-color);
  color: var(--white-color) !important;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border: 1.5px dashed transparent;
  cursor: pointer;
  text-decoration: none;
}
.nch-cta:hover { background: var(--theme-color3); color: var(--white-color) !important; }
.nch-cta.is-code { background: var(--light-color2); color: var(--theme-color) !important; border-color: var(--theme-color); }
.nch-cta.is-code:hover { background: var(--theme-color); color: var(--white-color) !important; }

/* Copy toast */
.nch-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--theme-color3);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nch-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 2b. Coupon reveal popup (custom overlay, no Bootstrap JS dependency) ---------- */
#coupon-popup {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
}
#coupon-popup.nch-popup--open { display: block; }
.nch-popup__overlay { position: absolute; inset: 0; background: rgba(6, 17, 83, .55); }
.nch-popup__dialog {
  position: relative;
  max-width: 460px;
  width: 92%;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.nch-popup__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.nch-popup__x:hover { background: #fff; color: var(--theme-color); transform: rotate(90deg); }
.nch-popup__head { background: var(--theme-color); padding: 26px 24px 24px; text-align: center; position: relative; }
.nch-popup__logo { width: 68px; height: 68px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; overflow: hidden; padding: 8px; }
.nch-popup__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nch-popup__initial { font-weight: 800; font-size: 24px; color: var(--theme-color); }
/* The template sets a global colour on h4/p, which beats the colour inherited
   from the blue header — both need stating explicitly or they vanish. */
.nch-popup__store {
  margin: 0 0 5px !important;
  font-family: var(--title-font);
  font-size: 19px; font-weight: 800; line-height: 1.3;
  color: #fff !important;
}
.nch-popup__offer {
  margin: 0 !important;
  font-size: 13.5px; line-height: 1.5;
  color: rgba(255,255,255,.92) !important;
}

.nch-popup__body { padding: 26px 24px 28px; text-align: center; }
.nch-popup__code-box { display: flex; align-items: stretch; border: 2px dashed var(--theme-color); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.nch-popup__code-box code { flex: 1; padding: 15px 14px; font-size: 19px; font-weight: 800; letter-spacing: .08em; color: var(--theme-color3); background: var(--light-color); }
.nch-popup__code-box button { flex: 0 0 auto; padding: 0 20px; background: var(--theme-color); color: #fff; border: none; font-weight: 700; cursor: pointer; transition: background .2s; }
.nch-popup__code-box button:hover { background: var(--theme-color3); }

/* Supporting copy: deliberately dark slate rather than the theme's light grey,
   which was too faint to read comfortably. */
.nch-popup__hint { font-size: 12.5px; line-height: 1.6; color: #3d4657 !important; margin: 0 0 18px !important; }
.nch-popup__confirm { color: #1a7f43 !important; font-weight: 700; font-size: 13px; margin: 0 0 12px !important; }
.nch-popup__nocode { padding: 6px 0 18px; }
.nch-popup__nocode i { font-size: 24px; color: var(--orange-color); margin-bottom: 8px; display: block; }
.nch-popup__nocode-title { margin: 0 0 4px !important; font-weight: 800; font-size: 16px; color: var(--theme-color3) !important; }

.nch-popup__visit { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 30px; background: var(--theme-color3); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; margin-bottom: 12px; transition: background .2s; }
.nch-popup__visit:hover { background: var(--theme-color); color: #fff !important; }
.nch-popup__link { display: block; font-size: 13px; color: #3d4657 !important; text-decoration: underline; }
.nch-popup__link:hover { color: var(--theme-color) !important; }

/* ---------- 2y. Hero slider (Admin → Sliders drives every field) ---------- */
.nch-heroslider { position: relative; background: var(--theme-color3); }
.nch-heroslider__swiper { width: 100%; }
/* fade effect stacks slides, so they must all resolve to the same height */
.nch-heroslider__swiper .swiper-wrapper { align-items: stretch; }
.nch-heroslider__swiper .swiper-slide { height: auto; }
/* The hero fills whatever viewport height is left under the header, so the
   first screenful is exactly hero + ticker on any display. JS measures the
   real header/ticker heights and sets --nch-hero-h (they vary with the
   top-bar toggle and wrap differently per breakpoint); the calc() below is
   the no-JS fallback.
   NOTE: never size this with `aspect-ratio` + `max-height` — when the height
   cap binds, aspect-ratio shrinks the *width* instead and leaves a gap beside
   the slide. */
.nch-hs {
  position: relative;
  width: 100%;
  height: var(--nch-hero-h, calc(100vh - 172px));
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 991px) { .nch-hs { height: auto; min-height: 420px; padding: 60px 0; } }
@media (max-width: 575px) { .nch-hs { min-height: 340px; padding: 44px 0; } }
.nch-hs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.nch-hs__overlay { position: absolute; inset: 0; background: #000; z-index: 1; }
.nch-hs .container { position: relative; z-index: 2; }
.nch-hs__content { max-width: 640px; padding: 50px 0; }
.nch-hs--center .nch-hs__content { margin: 0 auto; text-align: center; }
.nch-hs--right  .nch-hs__content { margin-left: auto; text-align: right; }
.nch-hs--left   .nch-hs__content { margin-right: auto; text-align: left; }
.nch-hs__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 7px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 600; margin-bottom: 18px;
}
.nch-hs__title {
  font-family: var(--title-font);
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.14; font-weight: 800; margin: 0 0 16px;
}
.nch-hs__title--lg { font-size: clamp(34px, 5.6vw, 66px); }
.nch-hs__title--sm { font-size: clamp(24px, 3.4vw, 40px); }
.nch-hs__sub { font-size: 16px; line-height: 1.7; margin: 0 0 28px; opacity: .92; }
.nch-hs__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.nch-hs--center .nch-hs__btns { justify-content: center; }
.nch-hs--right  .nch-hs__btns { justify-content: flex-end; }
.nch-hs__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 30px;
  background: var(--theme-color); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.nch-hs__cta:hover { filter: brightness(1.08); }
.nch-hs__cta--ghost { background: transparent !important; border-color: currentColor; }
.nch-hs__cta--ghost:hover { background: rgba(255,255,255,.14) !important; }
.nch-hs__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: var(--theme-color3);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nch-hs__nav:hover { background: #fff; }
.nch-hs__nav--prev { left: 22px; }
.nch-hs__nav--next { right: 22px; }
@media (max-width: 767px) { .nch-hs__nav { display: none; } }
.nch-hs__pagination { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; text-align: center; }
.nch-hs__pagination .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .45; margin: 0 5px !important; }
.nch-hs__pagination .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* ---------- 2c. Stores ticker (marquee repurposed) ----------
   jquery.marquee needs a single non-wrapping line; the template's marquee CSS
   sizes items for huge display type, so store rows get their own sizing. */
.stores-ticker { background: var(--theme-color3); padding: 0; }
.stores-ticker .marquee-wrap { padding: 0; }
.stores-ticker .marquee_mode {
  margin: 0; padding: 0; list-style: none;
  white-space: nowrap;      /* keep the plugin's single line — never wrap to 2 rows */
  display: block;
}
.stores-ticker .marquee_mode > li {
  display: inline-flex !important;
  vertical-align: middle;
  float: none !important;
}
.stores-ticker .m-item {
  align-items: center;
  gap: 10px;
  padding: 0 20px !important;
  margin: 0 !important;
  font-family: var(--body-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 62px !important;   /* sets the strip height */
  height: 62px;
  color: #fff !important;
  white-space: nowrap;
  -webkit-text-stroke: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.stores-ticker .m-item a { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; white-space: nowrap; }
.stores-ticker .m-item a:hover { color: #8fb4ff !important; }
.stores-ticker .m-item img {
  height: 30px; width: auto; max-width: 96px;
  object-fit: contain; background: #fff;
  border-radius: 6px; padding: 3px 7px; flex-shrink: 0;
}
.stores-ticker .m-item .count { font-weight: 400; opacity: .7; font-size: 13px; }
.stores-ticker .m-item.star { padding: 0 2px !important; font-size: 11px !important; opacity: .55; }

/* ---------- 2c2. Brand/store logo carousel ----------
   Store logos vary wildly in size; constrain them to a uniform tile. */
.tv-brands-section .brand-item { display: flex; align-items: center; justify-content: center; height: 90px; padding: 12px; }
.tv-brands-section .brand-item .image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.tv-brands-section .brand-item img { max-height: 56px !important; max-width: 140px !important; width: auto !important; height: auto !important; object-fit: contain; }

/* ---------- 2c3. Coupon carousels ----------
   Swiper slides collapse without an explicit stretch; cards must fill height. */
.nch-coupon-slider-top .swiper-wrapper,
.nch-coupon-slider-featured .swiper-wrapper,
.nch-blog-slider .swiper-wrapper { align-items: stretch; }
.nch-coupon-slider-top .swiper-slide,
.nch-coupon-slider-featured .swiper-slide,
.nch-blog-slider .swiper-slide { height: auto; display: flex; }
.nch-coupon-slider-top .swiper-slide > *,
.nch-coupon-slider-featured .swiper-slide > *,
.nch-blog-slider .swiper-slide > * { width: 100%; }
.nch-coupon-slider-top, .nch-coupon-slider-featured, .nch-blog-slider { padding-bottom: 10px; }

/* ---------- 2d. Live search dropdown (header search-popup + hero search) ---------- */
.nch-search-results {
  display: none;
  width: min(700px, 94vw);
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
}
.nch-search-results.nch-sd--open { display: block; }
.nch-hero-search-results.nch-sd--open { display: block; position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; z-index: 20; }
.nch-sd-item { display: flex; align-items: center; gap: 13px; padding: 11px 18px; text-decoration: none; color: var(--title-color); border-bottom: 1px solid var(--light-color3); transition: background .12s; cursor: pointer; }
.nch-sd-item:last-of-type { border-bottom: none; }
.nch-sd-item:hover, .nch-sd-item.nch-sd--sel { background: var(--light-color); }
.nch-sd-logo { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--light-color2); display: flex; align-items: center; justify-content: center; }
.nch-sd-logo img { width: 100%; height: 100%; object-fit: contain; }
.nch-sd-logo-init { font-size: 18px; font-weight: 700; color: var(--title-color); line-height: 1; }
.nch-sd-info { flex: 1; min-width: 0; }
.nch-sd-name { font-size: 14px; font-weight: 600; color: var(--title-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nch-sd-count { font-size: 12px; color: var(--gray-color); margin-top: 2px; }
.nch-sd-arrow { color: var(--theme-color); font-size: 12px; flex-shrink: 0; }
.nch-sd-msg { padding: 16px 18px; text-align: center; color: var(--gray-color); font-size: 14px; }
.nch-sd-viewall { display: block; padding: 12px 18px; text-align: center; background: var(--light-color); color: var(--title-color); font-size: 13px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--light-color3); }
.nch-sd-viewall:hover { background: var(--theme-color); color: #fff; }

/* ---------- 2e. Copy toast ---------- */
#v2-copy-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.2);
  padding: 16px 20px; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  max-width: 92vw;
}
#v2-copy-toast.v2-copy-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 2f. Skip link + cookie consent bar (ported, theme-color) ---------- */
.sa-skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  padding: 10px 20px; background: var(--theme-color); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 0 0 6px 0; transition: top .15s;
}
.sa-skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

.sa-cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--theme-color3); border-top: 3px solid var(--orange-color);
  z-index: 99999; transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
.sa-cookie-bar--visible { transform: translateY(0); }
.sa-cookie-bar__inner { display: flex; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 14px 30px; }
.sa-cookie-bar__icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--orange-color); }
.sa-cookie-bar__text { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 12px; }
.sa-cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.sa-cookie-bar__btn { padding: 9px 22px; border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.sa-cookie-bar__btn:hover { transform: translateY(-1px); }
.sa-cookie-bar__btn--accept { background: var(--orange-color); color: var(--theme-color3); border-color: var(--orange-color); }
.sa-cookie-bar__btn--reject { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.3); }
.sa-cookie-bar__btn--reject:hover { border-color: rgba(255,255,255,.7); color: #fff; }
@media (max-width: 640px) {
  .sa-cookie-bar__inner { flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px; }
  .sa-cookie-bar__actions { width: 100%; }
  .sa-cookie-bar__btn { flex: 1; text-align: center; }
}

/* ---------- 2g. Filter pills (blog categories, saas categories, store filters) ---------- */
.nch-pill {
  display: inline-block;
  padding: 8px 20px;
  margin: 0 6px 10px 0;
  border-radius: 30px;
  border: 1.5px solid var(--light-color3);
  background: var(--white-color);
  color: var(--title-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.nch-pill:hover { border-color: var(--theme-color); color: var(--theme-color); }
.nch-pill.active { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* ---------- 2h. Content page body (CMS rich text) ---------- */
.nch-content-body { font-size: 15px; line-height: 1.85; color: var(--gray-color2); }
.nch-content-body h2 { font-family: var(--title-font); font-size: 24px; font-weight: 700; color: var(--title-color); margin: 32px 0 14px; }
.nch-content-body h3 { font-family: var(--title-font); font-size: 19px; font-weight: 700; color: var(--title-color); margin: 26px 0 12px; }
.nch-content-body p { margin: 0 0 16px; }
.nch-content-body ul, .nch-content-body ol { margin: 0 0 18px; padding-left: 22px; }
.nch-content-body ul { list-style-type: disc; }
.nch-content-body ol { list-style-type: decimal; }
.nch-content-body li { margin-bottom: 8px; list-style-position: outside; }
.nch-content-body a { color: var(--theme-color); text-decoration: underline; }
.nch-content-body img { max-width: 100%; height: auto; border-radius: 12px; }
.nch-content-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.nch-content-body th, .nch-content-body td { border: 1px solid var(--light-color3); padding: 10px 12px; text-align: left; }

/* Card shell used by sidebars and boxed content across inner pages */
.nch-card {
  background: var(--white-color);
  border: 1px solid var(--light-color3);
  border-radius: 16px;
  padding: 28px;
}
.nch-card + .nch-card { margin-top: 24px; }
.nch-card__title { font-family: var(--title-font); font-size: 17px; font-weight: 700; color: var(--title-color); margin: 0 0 16px; }

/* ---------- 2i. Forms (contact, write-for-us, submit-coupon) ---------- */
.nch-label { font-size: 13px; font-weight: 600; color: var(--title-color); display: block; margin-bottom: 6px; }
.nch-input {
  border: 1.5px solid var(--light-color3) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  width: 100%;
  outline: none;
  background: var(--white-color);
  color: var(--title-color);
  transition: border-color .2s;
}
.nch-input:focus { border-color: var(--theme-color) !important; }
select.nch-input { appearance: auto; }
.has-error .nch-input, .has-danger .nch-input { border-color: var(--error-color) !important; }
.nch-contact-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--light-color2); color: var(--theme-color);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nch-contact-label { font-size: 11px; color: var(--gray-color); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.alert-success { background: #e8f8ee; color: #1a7f43; border: 1px solid #b7e6c9; }
.alert-danger { background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }

/* ---------- 2j. Store tiles / A-Z index / category tiles ---------- */
.nch-store-tile {
  display: block; text-align: center; text-decoration: none;
  background: var(--white-color); border: 1px solid var(--light-color3);
  border-radius: 16px; padding: 18px 12px; height: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nch-store-tile:hover { border-color: var(--theme-color); box-shadow: 0 10px 26px rgba(16,83,243,.12); transform: translateY(-3px); }
.nch-store-tile__logo {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--light-color);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nch-store-tile__logo img { max-width: 72%; max-height: 72%; object-fit: contain; }
.nch-store-tile__logo span { font-size: 24px; font-weight: 800; color: var(--theme-color); }
.nch-store-tile__name {
  font-size: 13px; font-weight: 600; color: var(--title-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nch-alpha-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.nch-alpha-bar a {
  min-width: 38px; padding: 8px 10px; text-align: center;
  border-radius: 8px; border: 1px solid var(--light-color3);
  background: var(--white-color); color: var(--title-color);
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.nch-alpha-bar a:hover { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

.nch-store-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.nch-store-links a { font-size: 14px; color: var(--gray-color2); text-decoration: none; }
.nch-store-links a:hover { color: var(--theme-color); text-decoration: underline; }

/* ---------- 2k. Share buttons ---------- */
.nch-share {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light-color2); color: var(--theme-color);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none; transition: background .2s, color .2s;
}
.nch-share:hover { background: var(--theme-color); color: #fff; }

/* ---------- 3. Admin brand/accent color hooks ---------- */
/* head.php writes a #theme-override <style> block that redefines these two
   variables when the admin sets SITE_BRAND_COLOR / SITE_ACCENT_COLOR. */
:root {
  --theme-color: #1053f3;
  --orange-color: #ff9d10;
}


/* ═══════════════════════════════════════════════════════════════════════════
   THEME DESIGNER BINDINGS
   Everything above is the shipped design. This block re-expresses those same
   values as CSS custom properties emitted by Admin -> Theme Designer
   (nch_theme_css() in theme_helper.php). Each token DEFAULTS to the value
   already used above, so with no overrides stored the rendering is unchanged —
   which is what makes "Reset to defaults" restore exactly this look.
   Page-type groups are scoped by the body class set in views/site/index.php.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global page surface ─────────────────────────────────────────────────── */
body { background-color: var(--nch-page-bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--nch-page-pattern-img);
  background-repeat: repeat;
}
.bg-color2, .bg-light { background-color: var(--nch-page-bg) !important; }
body, p { color: var(--nch-body-text); }
h1, h2, h3, h4, h5, h6, .sec-title { color: var(--nch-heading-color); }
.sec-title { font-size: var(--nch-section-title-size); line-height: 1.2; }

/* ── Generic cards / panels ──────────────────────────────────────────────── */
.nch-card {
  background: var(--nch-card-bg);
  border-color: var(--nch-card-border);
  border-radius: var(--nch-card-radius);
}
.nch-card__title { color: var(--nch-heading-color); }

/* ── Top Coupons band + feature cards ────────────────────────────────────── */
.nch-band__inner { background-color: var(--nch-band-bg); background-image: var(--nch-band-pattern-img); }
.nch-band .sec-title, .nch-band__label { color: var(--nch-band-heading) !important; }
.nch-band__lead, .nch-band__stat span { color: var(--nch-band-text); }
.nch-fc { background: var(--nch-fc-bg); }
.nch-fc__title { color: var(--nch-fc-title); font-size: var(--nch-fc-title-size); }
.nch-fc__expiry { color: var(--nch-fc-text); }

/* ── Featured & Exclusive Deals ──────────────────────────────────────────── */
.nch-deals { background-color: var(--nch-deals-section-bg) !important; }
.service-box-five.nch-dealbox { background-image: none; background-color: var(--nch-deal-bg); }
.service-box-five.nch-dealbox:hover { background-color: var(--nch-deal-hover-bg); }
.nch-dealbox__title { color: var(--nch-deal-title); font-size: var(--nch-deal-title-size); }
.nch-dealbox .service-top h4,
.nch-dealbox .service-top h3 { font-size: var(--nch-deal-store-size); }
.nch-dealbox__expiry { color: var(--nch-deal-text); }

/* ── Latest Coupons rows ─────────────────────────────────────────────────── */
.nch-rowlist { }
.nch-row { background-color: var(--nch-latest-row-bg); }
.nch-row__title { color: var(--nch-latest-title); font-size: var(--nch-latest-title-size); }
.nch-row__desc { color: var(--nch-latest-text); }
.nch-row__store { color: var(--nch-latest-store) !important; }
/* Turning the artwork off leaves the flat row colour showing */
:root[data-nch-latest-image="0"] .nch-row > .bg.image { display: none; }

/* ── Blog cards + blog pages ─────────────────────────────────────────────── */
.nch-blogcard { background-color: var(--nch-blogcard-bg); }
.nch-blogcard .title, .nch-blogcard .title a { color: var(--nch-blogcard-title); }
.nch-blogcard .title { font-size: var(--nch-blogcard-title-size); }
.nch-blogcard .blog-meta, .nch-blogcard__author a { color: var(--nch-blogcard-text); }
body.nch-g-blog .bg-color2, body.nch-g-blog .tv-blog-section { background-color: var(--nch-blog-section-bg) !important; }

/* ── SaaS Tools pages ────────────────────────────────────────────────────── */
body.nch-g-saas .bg-color2, body.nch-g-saas .tv-blog-section { background-color: var(--nch-saas-section-bg) !important; }
body.nch-g-saas .nch-card, body.nch-g-saas .blog-single-box { background-color: var(--nch-saas-card-bg); }
body.nch-g-saas .sec-title, body.nch-g-saas .nch-card__title, body.nch-g-saas .blog-single-box .title a { color: var(--nch-saas-title); }
body.nch-g-saas .blog-single-box .title { font-size: var(--nch-saas-title-size); }
body.nch-g-saas p, body.nch-g-saas .nch-content-body { color: var(--nch-saas-text); }

/* ── Compare pages ───────────────────────────────────────────────────────── */
body.nch-g-compare .bg-color2, body.nch-g-compare .tv-blog-section { background-color: var(--nch-compare-section-bg) !important; }
body.nch-g-compare .nch-card, body.nch-g-compare .blog-single-box { background-color: var(--nch-compare-card-bg); }
body.nch-g-compare .sec-title, body.nch-g-compare .nch-card__title, body.nch-g-compare .blog-single-box .title a { color: var(--nch-compare-title); }
body.nch-g-compare .blog-single-box .title { font-size: var(--nch-compare-title-size); }
body.nch-g-compare p, body.nch-g-compare .nch-content-body { color: var(--nch-compare-text); }

/* ── Stores pages ────────────────────────────────────────────────────────── */
body.nch-g-stores .bg-color2, body.nch-g-stores section.space { background-color: var(--nch-store-section-bg) !important; }
body.nch-g-stores .nch-card { background-color: var(--nch-store-card-bg); }
body.nch-g-stores .sec-title, body.nch-g-stores .nch-card__title { color: var(--nch-store-title); }
body.nch-g-stores .nch-card__title { font-size: var(--nch-store-title-size); }
body.nch-g-stores p, body.nch-g-stores .nch-content-body { color: var(--nch-store-text); }
body.nch-g-stores .nch-store-tile { background-color: var(--nch-store-tile-bg); }

/* ── Categories pages ────────────────────────────────────────────────────── */
body.nch-g-categories .bg-color2, body.nch-g-categories section.space { background-color: var(--nch-cat-section-bg) !important; }
body.nch-g-categories .nch-card, body.nch-g-categories .nch-store-tile { background-color: var(--nch-cat-card-bg); }
body.nch-g-categories .sec-title, body.nch-g-categories .nch-card__title { color: var(--nch-cat-title); }
body.nch-g-categories .nch-card__title { font-size: var(--nch-cat-title-size); }
body.nch-g-categories p, body.nch-g-categories .nch-content-body { color: var(--nch-cat-text); }

/* ── FAQ block ───────────────────────────────────────────────────────────── */
.nch-faq__inner { background-color: var(--nch-faq-bg); background-image: var(--nch-faq-pattern-img); }
.nch-faq .sec-title { color: var(--nch-faq-heading) !important; }
.nch-faq__lead { color: var(--nch-faq-text); }
.nch-faq .accordion-box.style-2 .accordion .acc-content .content .text { color: var(--nch-faq-text) !important; }
.nch-faq .accordion-box.style-2 .accordion .acc-btn { background: var(--nch-faq-btn-bg); }
.nch-faq .accordion-box.style-2 .accordion .acc-btn.active,
.tv-faq-section .faq-column .inner-column .accordion-box.style-2 .accordion .acc-btn.active { background-color: var(--nch-faq-btn-active-bg) !important; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.footer-section { background-color: var(--nch-footer-bg) !important; background-image: var(--nch-footer-pattern-img); }
footer.footer-section .footer-widget .title,
footer.footer-section .brand-info .contact-item .title { color: var(--nch-footer-heading); }
footer.footer-section, footer.footer-section p, footer.footer-section .footer-desc { color: var(--nch-footer-text); }
footer.footer-section a { color: var(--nch-footer-link); }
footer.footer-section a:hover { color: var(--nch-footer-link-hover); }
footer.footer-section .footer-bottom { background-color: var(--nch-footer-bottom-bg); }

/* ── Typography ──────────────────────────────────────────────────────────── */
:root { --title-font: var(--nch-font-heading); --body-font: var(--nch-font-body); }
body, p, .nch-content-body { font-family: var(--nch-font-body); }
h1,h2,h3,h4,h5,h6,.sec-title,.nch-hero__title,.nch-hs__title { font-family: var(--nch-font-heading); }

/* ── Header & navigation ─────────────────────────────────────────────────── */
/* Only the STATIC header gets the solid nav colour. In the sticky header
   .menu-area is wrapped in a .container, so painting it there filled just the
   middle and left the edges clear — the "white band" on scroll. The sticky bar
   keeps the theme's own full-width translucent frosted backdrop instead. */
.tv-header .menu-area { background-color: var(--nch-nav-bg); }
.sticky-header .menu-area { background-color: transparent; }
.tv-header .main-menu a, .sticky-header .main-menu a { color: var(--nch-nav-text); }
.tv-header .main-menu a:hover, .sticky-header .main-menu a:hover { color: var(--nch-nav-hover); }
.tv-header .main-menu .active a, .tv-header .main-menu a.active { color: var(--nch-nav-active); }
.tv-header .header-top { background-color: var(--nch-topbar-bg); }
.tv-header .header-top, .tv-header .header-top a, .tv-header .header-top .menu-follow_title { color: var(--nch-topbar-text); }

/* ── Hero (search-hero mode) ─────────────────────────────────────────────── */
.nch-hero {
  background: linear-gradient(var(--nch-hero-angle), var(--nch-hero-from) 0%, var(--nch-hero-mid) 45%, var(--nch-hero-to) 100%);
}
.nch-hero__title { color: var(--nch-hero-title) !important; font-size: var(--nch-hero-title-size); }
.nch-hero__title span { color: var(--nch-hero-accent); }
.nch-hero__sub { color: var(--nch-hero-text); }
@media (max-width: 991px) { .nch-hero__title { font-size: calc(var(--nch-hero-title-size) * 0.62); } }

/* ── Stores ticker ───────────────────────────────────────────────────────── */
.stores-ticker { background: var(--nch-ticker-bg); }
.stores-ticker .m-item, .stores-ticker .m-item a { color: var(--nch-ticker-text) !important; font-size: var(--nch-ticker-size) !important; }
.stores-ticker .m-item a:hover { color: var(--nch-ticker-hover) !important; }

/* ── Live counts bar ─────────────────────────────────────────────────────── */
.nch-counter .counter-inner { background: var(--nch-counter-bg); }
:root[data-nch-counter-image="0"] .nch-counter .counter-inner > .bg.image { display: none; }
.nch-counter .counter-box .title { color: var(--nch-counter-num); font-size: var(--nch-counter-num-size); }
.nch-counter .counter-box .text { color: var(--nch-counter-label); }

/* ── How to Save (process) ───────────────────────────────────────────────── */
.tv-process-section.style-3 .process-inner { background-color: var(--nch-process-bg); }
.tv-process-section.style-3 .process-inner .sec-title { color: var(--nch-process-heading) !important; }
.tv-process-section.style-3 .process-inner .process-box h3 { color: var(--nch-process-title); }
.tv-process-section.style-3 .process-inner .process-box p { color: var(--nch-process-text); }
.tv-process-section.style-3 .process-inner .process-box:hover { background: var(--nch-process-hover-bg); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.nch-newsletter .newsletter { background-color: var(--nch-news-bg); }
:root[data-nch-news-image="0"] .nch-newsletter .newsletter > .bg.image { display: none; }
.nch-newsletter .newsletter .image-text .title { color: var(--nch-news-title) !important; font-size: var(--nch-news-title-size); }
.nch-newsletter-form .form-group { background: var(--nch-news-input-bg); }
.nch-newsletter-form .form-group input,
.nch-newsletter-form .form-group input.email { background: var(--nch-news-input-bg) !important; color: var(--nch-news-input-text) !important; }
.nch-newsletter-form .form-group input::placeholder { color: var(--nch-news-placeholder) !important; }

/* ── Inner-page breadcrumb banner ────────────────────────────────────────── */
.tv-breadcrumb-section .tv-breadcrumb-inner { background-color: var(--nch-crumb-bg); }
.tv-breadcrumb-section .page-title .title { color: var(--nch-crumb-title); font-size: var(--nch-crumb-title-size); }
.tv-breadcrumb-section .page-breadcrumb,
.tv-breadcrumb-section .page-breadcrumb li,
.tv-breadcrumb-section .page-breadcrumb a { color: var(--nch-crumb-link); }

/* ── Hero banner sizing (Theme Designer → Hero) ──────────────────────────────
   viewport : hero fills the first screenful; a 2:1 banner gets cropped top and
              bottom on wide screens. Focus point is adjustable.
   banner   : hero takes the banner's own proportions, so the ENTIRE image is
              visible with nothing cropped — the page simply starts lower.
   NOTE: in `banner` mode aspect-ratio must be free of any height cap. Pairing
   aspect-ratio with max-height makes the ratio shrink the *width* instead,
   which leaves a gap beside the slide. */
.nch-hs__bg { object-fit: var(--nch-hero-fit); object-position: var(--nch-hero-pos); }

:root[data-nch-hero-sizing="banner"] .nch-hs {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: var(--nch-hero-ratio-w) / var(--nch-hero-ratio-h);
}
/* contain must not letterbox against a transparent backdrop */
:root[data-nch-hero-fit="contain"] .nch-hs { background-color: var(--nch-hero-from); }

@media (max-width: 991px) {
  :root[data-nch-hero-sizing="banner"] .nch-hs { aspect-ratio: auto; padding: 60px 0; min-height: 400px !important; }
}

/* ── FIX: absolutely-positioned children of flex containers ─────────────────
   `.nch-hs`, `.nch-row` and `.newsletter` are all `display:flex` with
   `align-items:center`. Per the CSS Box Alignment spec, alignment still
   applies to an absolutely-positioned flex child, so a box with `inset:0` but
   `height:auto` gets shrink-to-fit + centred instead of stretched. For an
   EMPTY element (a colour overlay, or a .bg wrapper) that means zero height —
   it renders but is invisible. The background <img> inside them escaped this
   only because it carries explicit width/height:100%.
   Giving these boxes explicit dimensions + align-self:stretch fixes it. */
.nch-hs__overlay,
.nch-row > .bg.image,
.nch-newsletter .newsletter > .bg.image {
  top: 0; left: 0;
  width: 100%; height: 100%;
  align-self: stretch;
  pointer-events: none;
}
.nch-hs__overlay { display: block; }
