/*
Theme Name: Twenty Twenty-Four Child Coupon Theme
Description: Child theme for Twenty Twenty-Four that provides a coupon and deals landing site. Uses existing stores and coupons tables for data.
Author: ChatGPT
Template: twentytwentyfour
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, .cm-coupon-headline, .cm-coupon-btn {
  font-family: 'Poppins', sans-serif;
}

/* =========================================================
   Layout containers
   ========================================================= */
.cm-home-main {
  max-width: 1080px;
  margin: 40px auto;
  background: #f8fbfd;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(52,119,245,0.07);
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cm-section {
  background: #a7b3aa;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(52,119,245,0.06);
  padding: 2.2rem 2rem;
  margin-bottom: 2.2rem;
  width: 100%;
  box-sizing: border-box;
}
.cm-section:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .cm-home-main {
    padding: 12px 2vw;
    border-radius: 11px;
    margin: 13px 0;
  }
  .cm-section {
    padding: 1.1rem 0.6rem;
    border-radius: 7px;
  }
}

/******************/

/* ============================
   Global Reset & Base
============================ */
/* ===== CouponFollow-style Header ===== */

/* =========================================================
   CouponFollow-style Header (Sticky announcement + header)
   Single-line desktop layout, mobile search & hamburger menu
   ========================================================= */

/* =========================================================
   CouponFollow-style Header (Sticky announcement + header)
   Single-line desktop layout, mobile search & hamburger menu
   Desktop search width: 320px
   ========================================================= */

/* ---- Variables ---- */
/* =========================================================
   CouponFollow-style Header (FAST)
   - Sticky announcement + header
   - Single-line desktop layout (logo | nav | 320px search | auth)
   - Mobile search overlay + hamburger menu
   - CSS ghost placeholder via data-ph
   ========================================================= */

/* ---- Variables ---- */
:root{
  --cf-ann-h: 0px;   /* set by JS (ResizeObserver) */
  --cf-head-h: 64px; /* set by JS */

  --cf-bg: #2f3f4a;
  --cf-bg-2: #24333d;
  --cf-ink: #e8f2f1;
  --cf-ink-dim: #b7c6cd;
  --cf-accent: #4f64ff;
  --cf-green: #27ae7a;
  --cf-border: rgba(255,255,255,0.12);
  --cf-white: #fff;
}

/* Lock scroll when overlays are open */
.cf--lock{ overflow:hidden; }
html.cf--lock, body.cf--lock{ overflow:hidden; }

/* ---- Sticky bars always visible ---- */
#cfAnnounce.cf-announcement{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;                /* ABOVE header */
  background: var(--cf-accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
  font-size: 16px;
}
.cf-announce-inner{ display:inline-flex; gap:.4rem; align-items:center; }
.cf-announce-link{ color:#fff; text-decoration:underline; }

#cfHeader.cf-header{
  position: fixed;
  top: var(--cf-ann-h); left: 0; right: 0;
  z-index: 1000;                /* below announcement, above overlay */
  background: #0e3541;
  color: var(--cf-ink);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* Offset page content so it doesn't hide behind sticky bars */
body{ padding-top: calc(var(--cf-ann-h) + var(--cf-head-h)); }

/* ---- Header layout ---- */
.cf-header-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  align-items: center;
  gap: 16px;
  grid-template-columns: auto 1fr auto; /* mobile/tablet default */
}

/* Logo */
.cf-logo a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cf-logo-badge{
  background:#2ca9f2;
  color:#0e3541;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: larger;
  letter-spacing: .5px;
  font-weight: 1000;
}


.cf-logo-text{
  color:#fff;
  font-weight:700;
  letter-spacing:.6px;
  font-size:1.25rem;
}
.cf-logo--small .cf-logo-badge{ padding:4px 8px; font-size:.9rem; }

/* Icon buttons (hamburger + mobile search trigger) */
.cf-iconbtn{
  display:flex; align-items:center; gap:6px;
  background:transparent; color:var(--cf-ink);
  border:0; padding:6px 4px; cursor:pointer; font:inherit;
}
.cf-iconbtn-ico{ font-size:18px; line-height:1; }
.cf-iconbtn-label{ font-weight:600; }

/* Primary nav (desktop) */
.cf-nav{ display:none; }
.cf-nav-list{
  display:flex; gap:28px; list-style:none; margin:0; padding:0;
}
.cf-nav-list > li > a{
  color: var(--cf-ink);
  text-decoration: none;
  font-weight: 550;
  padding: 10px 0;
}
.cf-nav-list > li > a:hover{ color:#fff; }

/* Desktop search */
.cf-desktop-search{ display:none; }
.cf-search{ position:relative; width: 620px; max-width: 100%; }
.cf-search-ico{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  opacity:.75;
}
.cf-search-input{
  width:100%; height:44px; border-radius:8px; outline:0;
  border:1px solid var(--cf-border);
  background:#2b3943; color: var(--cf-ink);
  padding:0 14px 0 36px;
}
.cf-search-input::placeholder{ color:var(--cf-ink-dim); }
.cf-search-submit{ display:none; }

/* Desktop auth */
.cf-auth{ display:none; gap:16px; align-items:center; justify-self:end; }
.cf-auth-link{
  color: var(--cf-ink); text-decoration:none; font-weight:700;
  white-space: nowrap;
}
.cf-auth-link:hover{ color:#fff; }
.cf-auth-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 18px; border-radius:8px;
  color:#fff; background:transparent; border:2px solid #9fd8c9; font-weight:800;
  white-space: nowrap;
}
.cf-auth-btn:hover{ background:#30b48b; border-color:#30b48b; }

/* ---- Search overlay (opens BELOW sticky bars) ---- */
.cf-search-overlay{
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--cf-ann-h) + var(--cf-head-h));
  background: var(--cf-bg);
  z-index: 990;                  /* below sticky header */
  padding: 10px 12px 16px;
}
.cf-search-overlay[hidden]{ display:none; }
.cf-search-overlay-inner{ display:flex; justify-content:center; }
.cf-search-lg{ width: min(900px, 92vw); }
.cf-search-clear{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; color:var(--cf-ink); font-size:18px; cursor:pointer;
}

/* ---- Mobile menu (full-screen) ---- */
.cf-mobilemenu{
  position: fixed; inset: 0;
  background: var(--cf-bg);
  z-index: 1100;                 /* ABOVE header so nothing is covered */
  display: flex; flex-direction: column;
  overflow: auto;
}
.cf-mobilemenu[hidden]{ display:none; }

.cf-mobilemenu-bar{
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--cf-border);
}
.cf-closeline{
  border:0; background:transparent; color:var(--cf-ink);
  font-size:20px; cursor:pointer;
}
.cf-mobilemenu-auth{ padding:16px; display:grid; gap:12px; }
.cf-auth-link--block, .cf-auth-btn--block{ display:block; text-align:center; }
.cf-auth-link--block{
  padding:12px 14px; border:2px solid #9fd8c9; border-radius:10px;
  font-weight:800; color:#e9f6f1; text-decoration:none;
}
.cf-auth-btn--block{
  padding:12px 14px; border-radius:10px; font-weight:800;
  color:#fff; text-decoration:none; background: var(--cf-green);
}
.cf-mobilenav{ padding: 10px 6px 28px; }
.cf-mobilenav-list{ list-style:none; margin:0; padding:0; }
.cf-mobilenav-list > li > a{
  display:block; padding:14px 16px; color:var(--cf-ink);
  text-decoration:none; font-weight:600;
  border-bottom:1px solid var(--cf-border);
}

/* ---- Desktop single-line layout (shorter search, no wrapping) ---- */
@media (min-width:1024px){
  /* grid: logo | nav | (320px search) | auth */
  .cf-header-wrap{
    grid-template-columns: auto 1fr 320px auto;
    align-items: center;
    column-gap: 22px;
  }

  /* hide mobile buttons */
  .cf-iconbtn{ display:none; }

  /* show desktop blocks */
  .cf-nav{ display:block; justify-self:center; min-width:0; } /* min-width:0 fixes grid overflow */
  .cf-desktop-search{ display:block; }
  .cf-auth{ display:flex; }

  /* keep nav on one line */
  .cf-nav-list{ gap:22px; white-space:nowrap; flex-wrap:nowrap; }
  .cf-nav-list > li > a{ white-space:nowrap; }

  /* fixed-width, shorter search */
  .cf-desktop-search .cf-search{ width: 320px; }
}

/* Slightly tighter spacing on mid desktops */
@media (min-width:1024px) and (max-width:1200px){
  .cf-nav-list{ gap:18px; }
}

/* Tablet/Mobile */
@media (max-width:1023.98px){
  .cf-header-wrap{ grid-template-columns: auto 1fr auto; }
  .cf-logo{ display:flex; justify-content:center; }
  .cf-nav, .cf-desktop-search, .cf-auth{ display:none !important; }
}

/* Tiny phones */
@media (max-width:360px){ .cf-iconbtn-label{ display:none; } }

/* Focus states */
.cf-iconbtn:focus-visible,
.cf-auth-btn:focus-visible,
.cf-auth-link:focus-visible,
.cf-closeline:focus-visible,
.cf-search-input:focus{
  outline: 2px solid #9fd8c9;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(159,216,201,.35);
}

/* =========================================================
   Ghost placeholder (plugins can’t override the text)
   - Put desired text in the form’s data-ph attribute
   ========================================================= */
.cf-search-input::placeholder { color: transparent; } /* hide native placeholder */
.cf-search{ position:relative; }
.cf-search[data-ph]::before{
  content: attr(data-ph);
  position:absolute; left:36px; top:50%; transform:translateY(-50%);
  pointer-events:none; opacity:.75; color: var(--cf-ink-dim);
}
/* Hide ghost when typing or focusing */
.cf-search.is-filled::before,
.cf-search:focus-within::before{ content: ""; }


/**************HERO***********************/
/* ============================
   Coupon Macro – Hero Section
   Scope: .cm-hero only (no bleed)
   ============================ */


/* =========================
   HERO SECTION
   ========================= */
.cm-hero {
  background: linear-gradient(135deg, #f8fbfd, #e4eef8);
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

.cm-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.cm-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #24333d;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.cm-hero h1 span {
  color: #3477f5;
}

.cm-hero p {
  font-size: 1.125rem;
  color: #47565f;
  margin-bottom: 1.8rem;
}

/* Search Bar */
.cm-hero-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid #d6dee5;
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cm-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 50px;
}

.cm-hero-search button {
  background: #3477f5;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.cm-hero-search button:hover {
  background: #255ad3;
}

/* Trending links */
.cm-hero-trending {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #47565f;
}

.cm-hero-trending strong {
  margin-right: 6px;
  font-weight: 600;
  color: #24333d;
}

.cm-hero-trending a {
  color: #3477f5;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cm-hero-trending a:hover {
  color: #255ad3;
}

/* Responsive */
@media (max-width: 768px) {
  .cm-hero {
    padding: 40px 15px;
  }

  .cm-hero h1 {
    font-size: 1.8rem;
  }

  .cm-hero-search {
    flex-direction: column;
    border-radius: 12px;
    padding: 12px;
  }

  .cm-hero-search input {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .cm-hero-search button {
    width: 100%;
    border-radius: 8px;
    justify-content: center;
  }
}

/* ============================
   CouponMacro – SEO Intro block
   Scope: .cm-seo-intro only
   ============================ */
.cm-seo-intro {
  --cm-ink: #0f172a;         /* text */
  --cm-muted: #475569;       /* secondary text */
  --cm-primary: #2563eb;     /* blue */
  --cm-accent: #06b6d4;      /* cyan */
  --cm-surface: #ffffff;     /* card bg */
  --cm-edge: rgba(2, 6, 23, 0.08);

  max-width: 1000px;
  margin: clamp(1.5rem, 2vw, 2.5rem) auto;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  color: var(--cm-ink);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(6,182,212,0.08), transparent 60%),
    var(--cm-surface);
  border: 1px solid var(--cm-edge);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

/* Heading */
.cm-seo-intro h1,
.cm-seo-intro h2 {
  margin: 0 0 0.75rem 0;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(1.35rem, 0.9rem + 2vw, 2rem);
  position: relative;
  padding-bottom: 0.4rem;
}

/* Underline accent bar */
.cm-seo-intro h1::after,
.cm-seo-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cm-primary), var(--cm-accent));
}

/* Copy */
.cm-seo-intro p {
  margin: 0;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.075rem);
  line-height: 1.65;
  color: var(--cm-muted);
}

/* Emphasis styles inside */
.cm-seo-intro strong {
  color: var(--cm-ink);
  font-weight: 800;
  background: linear-gradient(90deg, #111 0, #111 50%, #111 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.cm-seo-intro em {
  font-style: normal;
  padding: 0.1em 0.35em;
  border-radius: 0.4em;
  background: rgba(37, 99, 235, 0.08);
  color: #1e293b;
  border: 1px dashed rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .cm-seo-intro {
    --cm-ink: #e5e7eb;
    --cm-muted: #cbd5e1;
    --cm-surface: #0b1220;
    --cm-edge: rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
  .cm-seo-intro em {
    background: rgba(37, 99, 235, 0.18);
    color: #e5e7eb;
    border-color: rgba(37, 99, 235, 0.45);
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cm-seo-intro { transition: none; }
}


/*****************TRENDING COUPONS*************/
/* Container Styles */
.cm-section.cm-today-trending-coupons {
  padding: 30px 15px;
  max-width: 1100px;
  margin: auto;
}

.cm-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cm-coupon-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  min-height: 180px;
  width: 100%;
}

/* Columns */
.cm-coupon-col {
  box-sizing: border-box;
  padding: 10px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Column Widths (Desktop) */
.cm-coupon-logo-wrap {
  width: 15%;
  justify-content: center;
  align-items: center;
  border-right: 2px dashed #dde5ed;
  display: flex;
}

.cm-coupon-discount {
  width: 20%;
  font-weight: bold;
  color: #039be5;
  text-align: center;
  border-right: 2px dashed #dde5ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-coupon-info {
  width: 50%;
  flex-direction: column;
  align-items: flex-start;
  border-right: 2px dashed #dde5ed;
  padding-left: 10px;
  display: flex;
  justify-content: space-between;
}

.cm-coupon-action {
  width: 15%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.cm-coupon-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Info Content */
.cm-coupon-row {
  margin-bottom: 6px;
}

.cm-coupon-store {
  font-weight: 700;
  color: #0073e6;
  text-decoration: none;
}

.cm-coupon-offer {
  font-weight: 600;
  color: #e91e63;
  margin-left: 8px;
}

.cm-coupon-headline {
  font-weight: bold;
}

.cm-coupon-desc {
  font-size: 14px;
  color: #444;
}

.cm-coupon-btn {
  background: #03a9f4;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.cm-coupon-btn:hover {
  background: #0288d1;
}

/* Button for mobile inside info column */
.cm-coupon-row-btn {
  display: none;
  margin-top: auto;
  width: 100%;
}

/* Responsive: Mobile & Tablet */
@media (max-width: 768px) {
  .cm-coupon-card {
    flex-wrap: wrap;
    min-height: 180px;
    width: 100%;
  }

  .cm-coupon-logo-wrap {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 2px dashed #dde5ed;
    padding: 12px;
    box-sizing: border-box;
  }

  .cm-coupon-logo {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .cm-coupon-discount,
  .cm-coupon-action {
    display: none;
  }

  .cm-coupon-info {
    width: 60%;
    border: none;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .cm-coupon-row-btn {
    display: block;
    margin-top: auto;
    width: 100%;
  }

  .cm-coupon-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/***************TOP COUPON*******************/

/* --- Top Coupons Section --- */
.top-coupons-wrapper {
  padding: 40px 20px;
  background: #f8fbfd;
  border-radius: 20px;
  max-width: 1140px;
  margin: 40px auto;
  box-shadow: 0 4px 32px rgba(52, 119, 245, 0.07);
}
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0d2c4c;
  margin-bottom: 30px;
}

.top-coupons-carousel {
  margin-bottom: 40px;
}
.coupon-slide {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 18px rgba(52, 119, 245, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.coupon-logo-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.coupon-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.store-name {
  font-weight: 700;
  color: #0d7ed6;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.coupon-offer {
  font-weight: 600;
  font-size: 0.95rem;
  color: #00c853;
  border: 2px dashed #00c853;
  border-radius: 6px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 10px;
}
.coupon-desc {
  font-size: 0.92rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
  color: #0d7ed6;
  top: 45%;
  width: 30px;
  height: 30px;
}
.swiper-pagination {
  margin-top: 14px;
  text-align: center;
}

/* --- Store Grid --- */
/* General Container */
.store-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Section Box */
.section-box {
  background: #a7bfad !important;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Section Title */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  text-align: center;
}

/* Store Search Form */
.store-search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.store-search-input {
  width: 300px;
  padding: 10px;
  border: 1px solid #d5e3f2;
  border-radius: 6px;
  font-size: 1rem;
}

.store-search-btn {
  padding: 10px 20px;
  background: #3477f5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.store-search-btn:hover {
  background: #2a5db0;
}

/* Alphabet Navigation */
.alphabet-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.alphabet-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 1rem;
  color: #3477f5;
  background: #f3f7fb;
  border: 1px solid #d5e3f2;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.alphabet-link:hover {
  background: #3477f5;
  color: #fff;
}

/* Store Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 columns */
  gap: 26px 24px;
  padding: 20px 0;
  justify-items: center;
}

/* Store Card */
.store-card {
  width: 130px;
  height: 155px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.store-card:hover {
  transform: translateY(-5px);
}

.store-logo-large {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.store-title {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: #002266;
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-link {
  background: #f3f7fb;
  padding: 8px 14px;
  border-radius: 6px;
  color: #3477f5;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d5e3f2;
  transition: background 0.2s, color 0.2s;
}

.page-link:hover {
  background: #3477f5;
  color: #fff;
}

.page-link.active {
  background: #3477f5;
  color: #fff;
  pointer-events: none;
  border-color: #3477f5;
}

.page-dots {
  padding: 8px 14px;
  color: #3477f5;
  font-weight: 600;
}

/* Top Merchants List */
.top-merchants ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px 30px;
  padding: 0;
  list-style: none;
}

.top-merchants a {
  color: #3b5d78;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.top-merchants a:hover {
  color: #1a91da;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-title {
    font-size: 1.3rem;
  }
  .store-search-input {
    width: 200px;
  }
  .top-merchants ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-search-form {
    flex-direction: column;
    align-items: center;
  }
  .store-search-input {
    width: 100%;
  }
  .store-search-btn {
    width: 100%;
    text-align: center;
  }
}
/* ---------- STORES PAGE GRID ---------- */
/* === Stores Page Styles (Bigger + Shorter Cards, Tighter Spacing) === */
/* === Stores Page Styles (Fixed Equal Height Grid) === */
/* ==== SINGLE STORE PAGE STYLING ==== */

.single-store-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  background: #a7bfad;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: "Segoe UI", sans-serif;
}

/* ---- HEADER ---- */
.single-store-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.single-store-header img {
  width: 160px;   /* ðŸ”¥ bigger size */
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
}

.single-store-header h1 {
  font-size: 1.8rem; /* slightly bigger title to balance */
  margin-bottom: 10px;
  line-height: 1.3;
}

.store-rating {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.store-rating .star {
  font-size: 16px;
  color: #f9b234;
}

.store-rating .empty {
  color: #ddd;
}

.store-meta {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.store-description {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* ---- TITLES ---- */
.coupons-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 20px;
}

/* ---- HOW TO USE + FAQ ---- */
.single-store-section {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  border-radius: 10px;
}

.single-store-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.single-store-section ol {
  padding-left: 20px;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 10px 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.faq-question {
  font-weight: bold;
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 14px;
  color: #444;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .single-store-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .single-store-header img {
    width: 120px;   /* ðŸ“± smaller for mobile */
  }

  .single-store-header h1 {
    font-size: 1.4rem;
  }

  .store-description {
    font-size: 13px;
  }

  .single-store-section {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .single-store-container {
    padding: 15px;
  }

  .single-store-header h1 {
    font-size: 1.2rem;
  }
}


/****************TRENDING AND SEARCH PART*****************/
/* ========== TRENDING SEARCHES ========== */
.trending-searches {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(52,119,245,0.06);
  padding: 2rem;
  margin-top: 20px;
}

.trending-searches h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d2c4c;
  margin-bottom: 1.5rem;
}

.searches-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.searches-container a {
  display: inline-block;
  background: #f3f7fb;
  color: #3477f5;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid #d5e3f2;
  transition: background 0.2s, color 0.2s;
}

.searches-container a:hover {
  background: #3477f5;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .trending-searches {
    padding: 1.2rem;
  }
  .trending-searches h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .searches-container a {
    font-size: 0.9rem;
    padding: 7px 14px;
  }
}
 /*************TOP STORE PART***************/
/* ===== SEO Store Links Section ===== */
.cm-store-seo-links {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(52,119,245,0.06);
  padding: 2rem;
}

.cm-store-seo-links h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d2c4c;
  margin-bottom: 1.5rem;
}

.seo-store-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-store-links li a {
  display: block;
  padding: 8px 12px;
  background: #f3f7fb;
  border-radius: 6px;
  border: 1px solid #d5e3f2;
  color: #3477f5;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.seo-store-links li a:hover {
  background: #3477f5;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .seo-store-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .seo-store-links {
    grid-template-columns: 1fr;
  }
}
/******CM Pagination IN COUPONS**********/
/* ===== CM Pagination ===== */
.cm-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cm-pagination .page-numbers {
  background: #f3f7fb;
  padding: 8px 14px;
  border-radius: 6px;
  color: #3477f5;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d5e3f2;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  display: inline-block;
}

.cm-pagination .page-numbers:hover {
  background: #3477f5;
  color: #fff;
}

/* Current page */
.cm-pagination .page-numbers.current {
  background: #3477f5;
  color: #fff;
  border-color: #3477f5;
  pointer-events: none;
}

/* Dots */
.cm-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: #3477f5;
  padding: 8px 10px;
}

/* Next/Prev */
.cm-pagination .page-numbers.next,
.cm-pagination .page-numbers.prev {
  font-weight: 600;
}


/***********FOOTER**************/
/* ===== FOOTER ===== */
.site-footer {
  background: #0e3541; /* dark teal background */
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color:cadetblue;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: #dce7ed;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: #00c8ff;
}

/* Brand column */
.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand .logo-part1 {
  background: #2ca9f2;
  color: #0e3541;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 5px;
}
.footer-brand .logo-part2 {
  color: #fff;
}
.footer-brand p {
  color: #c9d9df;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* Bottom copyright */
.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #b9c9ce;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
}

/*******************Page in FOoter**************************/
/* ===========
   GLOBAL PAGE STYLING
   For About Us, Privacy, Terms, Contact, etc.
   =========== */

.page .entry-title,
.page-title {
  display: none !important;
}
.cm-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  color: #222;
}

.cm-page h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.cm-page h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #006d77;
}

.cm-page p {
  margin-bottom: 15px;
  font-size: 16px;
}

.cm-page ul {
  margin: 15px 0 20px 20px;
  padding: 0;
}

.cm-page ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.cm-page a {
  color: #0077cc;
  text-decoration: underline;
}

.cm-page a:hover {
  text-decoration: none;
}
/*****************contact us***********/

.contact-page h1 {
  text-align: center;
  margin-bottom: 25px;
}

.contact-page h2 {
  margin-top: 25px;
  color: #005f73;
  font-size: 20px;
}

.contact-page ul {
  margin: 15px 0 20px 20px;
  list-style: disc;
}

.contact-page ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-page .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.contact-page .form-col {
  flex: 1;
}

.contact-page input,
.contact-page textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.contact-page textarea {
  height: 150px;
}

.contact-page input[type="submit"] {
  background: #0077b6;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-page input[type="submit"]:hover {
  background: #005f73;
}

/*************Our mission**************/
/* === Universal Static Page Style (About, Mission, Contact, Policies, etc.) === */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

/* Hide default WP page titles */
.page .entry-title {
  display: none;
}

/* Headings */
.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #111;
}
.page-content h2 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: #005fa3;
  font-weight: 600;
}
.page-content h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  color: #0077cc;
  font-weight: 600;
}

/* Paragraphs */
.page-content p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #444;
}

/* Lists */
.page-content ul {
  margin: 15px 0 20px 25px;
}
.page-content li {
  margin-bottom: 8px;
}
.page-content ul li::marker {
  color: #0077cc;
}

/* Highlight text */
.page-content strong {
  color: #111;
}
.page-content em {
  color: #0077cc;
}

/* Forms (Contact Us page) */
.page-content input[type="text"],
.page-content input[type="email"],
.page-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.2s ease;
}
.page-content input[type="text"]:focus,
.page-content input[type="email"]:focus,
.page-content textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* Buttons */
.page-content input[type="submit"],
.page-content button,
.page-content .btn {
  background: #0077cc;
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}
.page-content input[type="submit"]:hover,
.page-content button:hover,
.page-content .btn:hover {
  background: #005fa3;
}

/* Notices / privacy boxes */
.page-content .notice {
  background: #f7faff;
  border-left: 4px solid #0077cc;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: #444;
}
/**********help center**********/

/* ====== General Page Content ====== */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.75;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #1a1a1a;
  font-weight: 700;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #222;
  border-left: 4px solid #0073e6;
  padding-left: 12px;
}

.page-content h3 {
  margin-top: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
}

.page-content p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #555;
}

.page-content ul,
.page-content ol {
  margin: 15px 0 20px 25px;
  padding: 0;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #555;
}

/* ====== FAQ & Categories ====== */
.faq-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.faq-categories div {
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.faq-categories div:hover {
  background: #f1f9ff;
  border-color: #0073e6;
}

/* ====== Notice / Callout Box ====== */
.notice {
  margin: 30px 0;
  padding: 20px;
  border-left: 5px solid #0073e6;
  background: #f9fbff;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
}

/* ====== Links ====== */
.page-content a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .page-content {
    padding: 25px 15px;
  }

  .page-content h1 {
    font-size: 1.6rem;
  }

  .page-content h2 {
    font-size: 1.3rem;
  }
}

/*************SUBMIT CODE***************/

/* Card */
.cm-submit-card{
  max-width: 840px;
  margin: 0 auto;
  background: #f9fcff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(52,119,245,.08);
  padding: 28px 24px;
}

/* Title */
.cm-submit-title{
  display:flex; align-items:center; justify-content:flex-start; gap:14px;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 800;
  color:#0d2c4c;
  margin: 6px 0 18px;
  line-height:1.15;
}
.cm-submit-icon{ font-size:1.4em; }

/* Form grid */
.cm-submit-form{
  max-width: 620px;
  margin: 6px 0 0;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
}
@media (min-width: 760px){
  .cm-submit-form{ grid-template-columns: 1fr 1fr; }
  .cm-form-group--full{ grid-column: 1 / -1; }
}

/* Groups */
.cm-form-group{
  display:grid; gap:8px;
}
.cm-form-group label{
  font-weight:700;
  color:#23425e;
  font-size:.98rem;
  letter-spacing:.2px;
}
.cm-required{ color:#e63946; margin-left:2px; font-weight:800; }
.cm-optional{ color:#6b7b88; font-weight:600; font-size:.9em; }

/* Inputs + textarea */
.cm-submit-form input,
.cm-submit-form textarea,
.cm-submit-form select{
  width:100%;
  background:#fff;
  border:1.5px solid #dbe7f7;
  border-radius:10px;
  padding:12px 14px;
  font-size:1rem;
  color:#1b2b3a;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
}

.cm-submit-form input::placeholder,
.cm-submit-form textarea::placeholder{ color:#9aa9bb; }

/* Focus/hover states */
.cm-submit-form input:hover,
.cm-submit-form textarea:hover{ border-color:#cfe1f8; }
.cm-submit-form input:focus,
.cm-submit-form textarea:focus{
  outline:0;
  border-color:#3477f5;
  box-shadow: 0 0 0 3px rgba(52,119,245,.15);
  background:#fff;
}

/* Textarea */
.cm-submit-form textarea{
  min-height: 110px;
  resize: vertical;
}

/* Date input: subtle calendar glyph */
.cm-submit-form input[type="date"]{
  padding-right:40px;
  background-repeat:no-repeat;
  background-position: calc(100% - 12px) 50%;
  background-size:18px;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%2389a6c7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
}

/* Full-width rows on desktop */
#website,
#code,
#name{ }
#desc{ }
.cm-form-group--full textarea,
.cm-form-group--full input{ }

/* Helper note */
.cm-note{
  grid-column: 1 / -1;
  margin: 4px 0 4px;
  color:#7a8ea5;
  font-size:.88rem;
}

/* Submit button */
.cm-actions{ grid-column: 1 / -1; text-align:center; margin-top:6px; }
.cm-submit-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  width:100%; max-width: 360px; height:48px;
  border-radius:10px; border:0;
  color:#fff; font-weight:800; letter-spacing:.35px;
  cursor:pointer;
  background: linear-gradient(180deg, #3b86ff 0%, #2f73df 100%);
  box-shadow: 0 10px 24px rgba(59,134,255,.28);
  transition: transform .06s ease, filter .15s ease;
}
.cm-submit-btn:hover{ filter:brightness(1.03); }
.cm-submit-btn:active{ transform: translateY(1px); }

/* Alerts */
.cm-alert{
  grid-column: 1 / -1;
  border-radius:12px; padding:12px 14px; font-weight:600;
  border:1px solid transparent; margin-bottom:2px;
}
.cm-success{ background:#e9fbf1; color:#0f7b3f; border-color:#c6f0d7; }
.cm-error{   background:#fff3f3; color:#b23b3b; border-color:#f1cccc; }

/* Honeypot hidden */
.cm-hp{ position:absolute !important; left:-9999px !important; opacity:0 !important; height:0 !important; width:0 !important; }

/* Make description span full width on desktop */
@media (min-width:760px){
  .cm-form-desc,
  .cm-form-full { grid-column: 1 / -1; }
}

/* Small screens polish */
@media (max-width: 480px){
  .cm-submit-card{ padding: 22px 14px; }
  .cm-submit-title{ font-size: 1.35rem; }
}
/* keep modal above everything */
#thanksModal { z-index: 99999; }
/* unify input font size if your theme overrides it */
#cm-submit input, #cm-submit textarea { font-size: 16px; }
/* reduce overall width if you want it narrower */
#cm-submit { max-width: 680px; }
/************RESEARCH PAGE*****************/

/* ===== Research Hub ===== */
.cm-research {
  max-width: 1140px;
  margin: 24px auto 80px;
  padding: 0 16px;
}

.cm-research-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 12px 0 8px;
}

.cm-research-hero p {
  color: #34495e;
  max-width: 900px;
  margin: 0 0 24px;
}

.cm-research-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .cm-research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cm-research-grid { grid-template-columns: 1fr; }
}

.cm-research-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6eef2;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 100%;
}

.cm-research-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 74, 88, 0.08);
}

.cm-card-link {
  position: absolute; inset: 0; z-index: 3;
}

.cm-card-thumb img,
.cm-thumb-fallback {
  display: block; width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(180deg, #f4fbff, #e8f4ff);
}
.cm-thumb-fallback { height: 180px; }

.cm-card-body {
  padding: 14px 14px 16px;
}

.cm-card-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  background: #e9f6ff;
  color: #0e3541;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.cm-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #0e3541;
}

.cm-card-meta {
  font-size: 13px;
  color: #55707c;
  display: flex; align-items: center; gap: 8px;
}

.cm-card-dot { opacity: .6; }

.cm-research-more {
  display: flex; justify-content: center; margin-top: 22px;
}

.cm-load-more {
  border: 1px dashed #0e3541;
  background: #f2fbff;
  color: #0e3541;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.cm-load-more:hover { background: #e8f7ff; }
.cm-card-thumb img { width:100%; height:180px; object-fit:cover; display:block; }
.cm-thumb-fallback { width:100%; height:180px; background:linear-gradient(180deg,#f4fbff,#e8f4ff); }
.cm-card-title { margin:6px 0 0; }


/* ===== Research Article (single template) ===== */
.cm-article{max-width:880px;margin:24px auto 80px;padding:0 16px}
.cm-article-breadcrumbs a{color:#0e3541;text-decoration:none;font-weight:600}
.cm-article-breadcrumbs a:hover{text-decoration:underline}

.cm-article-hero{margin:8px 0 14px}
.cm-article-hero-img{width:100%;height:320px;object-fit:cover;border-radius:16px;display:block}
.cm-article-hero-fallback{width:100%;height:320px;border-radius:16px;background:linear-gradient(180deg,#f4fbff,#e8f4ff)}

.cm-article-title{font-family:'Poppins',sans-serif;font-size:clamp(28px,3.2vw,40px);line-height:1.2;margin:12px 0 0;color:#0e3541}

.cm-article-body{font-size:18px;line-height:1.72;color:#24343c}
.cm-article-body p{margin:0 0 1.05em}
.cm-article-body h2{font-family:'Poppins',sans-serif;font-size:clamp(22px,2.4vw,28px);margin:1.2em 0 .4em;color:#0e3541}
.cm-article-body h3{font-family:'Poppins',sans-serif;font-size:clamp(18px,2vw,22px);margin:1em 0 .3em;color:#0e3541}
.cm-article-body img{max-width:100%;height:auto;border-radius:12px}
.cm-article-pages{margin-top:16px}

.cm-related{margin-top:36px}
.cm-related-title{font-family:'Poppins',sans-serif;font-size:22px;margin:0 0 14px;color:#0e3541}
.cm-related-grid{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
@media (max-width:992px){.cm-related-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.cm-related-grid{grid-template-columns:1fr}}

/* ===============================
   Single Post Layout (clean + narrow)
   =============================== */

/* Page background for posts */
body.single-post { background: #f6fafc; }

/* Constrain the main content area (covers TT4 + classic) */
body.single-post main,
body.single-post .site-main,
body.single-post .wp-site-blocks > main,
body.single-post .wp-block-group.is-layout-constrained {
  max-width: 1080px;
  margin: 24px auto 80px;
  padding: 0 16px;
}

/* Card look for the article */
body.single-post article {
  background: #fff;
  border: 1px solid #e6eef2;
  border-radius: 16px;
  padding: 20px 18px 26px;
  box-shadow: 0 10px 24px rgba(2,74,88,.06);
}

/* Title style (uses your Poppins) */
body.single-post .entry-title,
body.single-post .wp-block-post-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px,3.2vw,40px);
  line-height: 1.2;
  margin: 6px 0 14px;
  color: #0e3541;
}

/* Hide ALL meta + comments + footer junk on posts */
body.single-post .entry-meta,
body.single-post .post-meta,
body.single-post .wp-block-post-author,
body.single-post .wp-block-post-date,
body.single-post .byline,
body.single-post .cat-links,
body.single-post .tags-links,
body.single-post .post-navigation,
body.single-post .nav-links,
body.single-post .comments-area,
body.single-post .entry-footer,
body.single-post .wp-block-comments,
body.single-post .wp-block-post-terms,
body.single-post .wp-block-post-author-biography,
body.single-post .wp-block-post-author-name { display: none !important; }

/* Body text */
body.single-post .entry-content,
body.single-post .wp-block-post-content {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.72;
  color: #24343c;
}
body.single-post .entry-content p,
body.single-post .wp-block-post-content p { margin: 0 0 1.05em; }

/* Headings inside content */
body.single-post .entry-content h2,
body.single-post .wp-block-post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px,2.4vw,28px);
  margin: 1.2em 0 .5em;
  color: #0e3541;
}
body.single-post .entry-content h3,
body.single-post .wp-block-post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px,2vw,22px);
  margin: 1em 0 .4em;
  color: #0e3541;
}

/********SHARE COUPON CODE**********************
/* Fix side-by-side inputs overlapping */
#cm-submit .f{
  gap:14px;               /* keep the intended space */
  column-gap:14px;        /* explicit for older engines */
  row-gap:14px;
}
#cm-submit .f > div{
  min-width:0;            /* allow grid items to shrink within column */
}

/* Make width:100% include padding + border so it doesn't spill into the gap */
#cm-submit input,
#cm-submit textarea,
#cm-submit select{
  box-sizing:border-box;
  display:block;          /* avoids inline-gap quirks */
}






/* Links */
body.single-post .entry-content a { color: #0e3541; text-decoration: underline; }
body.single-post .entry-content a:hover { opacity: .85; }

/* Images + figures */
body.single-post .entry-content img,
body.single-post .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
body.single-post figure.wp-block-image { margin: 1em 0; }
body.single-post .wp-element-caption { color: #55707c; font-size: 14px; }

/* Prevent “full/wide” blocks from stretching edge-to-edge */
body.single-post .alignfull,
body.single-post .alignwide {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Video/iframe responsiveness (YouTube, etc.) */
body.single-post .entry-content iframe {
  width: 100% !important;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 12px;
}

/* Lists */
body.single-post .entry-content ul,
body.single-post .entry-content ol { padding-left: 1.25rem; margin: .6em 0 1.1em; }
body.single-post .entry-content li { margin: .25em 0; }

/* Tables */
body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e6eef2;
  border-radius: 12px;
  overflow: hidden;
  font-size: 16px;
}
body.single-post .entry-content th,
body.single-post .entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef2;
}
body.single-post .entry-content thead th {
  background: #f2fbff;
  color: #0e3541;
  text-align: left;
}

/* Blockquotes */
body.single-post blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid #0e3541;
  background: #f7fdff;
  border-radius: 8px;
  color: #24343c;
}

/* Code blocks */
body.single-post pre, body.single-post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
body.single-post pre {
  background: #0e3541;
  color: #e9f6ff;
  padding: 14px;
  border-radius: 12px;
  overflow: auto;
}

/* Reduce spacing at the very end */
body.single-post article > :last-child { margin-bottom: 0; }

/***************POP UP****************/

/* ===== CouponLeap-style popup for your #couponPopup structure ===== */

/* Overlay */
#couponPopup.coupon-popup{
  display:none;             /* JS toggles to block */
  position:fixed;
  inset:0;
  z-index:2500;
  background:rgba(18,38,56,0.68); /* soft dark backdrop */
  overflow:auto;
}

/* Card */
#couponPopup .popup-content{
  position:relative;
  background:#ffffff;
  border-radius:18px;
  max-width:370px;
  width:93vw;
  margin:50px auto 0;       /* vertical positioning */
  padding:34px 25px 25px;
  text-align:center;
  box-shadow:0 8px 36px rgba(24,123,138,0.10), 0 1.5px 6px rgba(63,242,231,0.20);
  animation:cgPopIn .21s cubic-bezier(.5,1.4,.7,1) backwards;
}

@keyframes cgPopIn{
  0%{opacity:0; transform:scale(.91);}
  100%{opacity:1; transform:scale(1);}
}

/* Close button */
#couponPopup .popup-close{
  position:absolute;
  top:18px;
  right:24px;
  font-size:1.6em;
  line-height:1;
  color:#8da0ac;
  cursor:pointer;
  font-weight:700;
  background:none;
  border:0;
  transition:color .17s ease;
}
#couponPopup .popup-close:hover{ color:#089db2; }

/* Inner body spacing */
#couponPopup .popup-body{
  padding-top:6px;
}

/* Logo */
#couponPopup .popup-logo{
  display:block;
  max-width:100px;
  max-height:100px;
  width:auto;
  height:auto;
  margin:0 auto 14px;
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 8px rgba(49,224,236,0.15);
  object-fit:contain;
}

/* Heading & subtext */
#couponOffer{
  font-size:1.24em;
  font-weight:800;
  color:#0b3340;
  margin:7px 0 6px;
}
#couponPopup .popup-body p{
  margin:0 0 16px;
  font-size:1em;
  color:#5e7c8b;
}
#popupStore{ font-weight:700; color:#0b3340; }

/* Code row (input + button) */
#couponPopup .popup-code-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#f3fbfc;
  border-radius:8px;
  padding:10px 10px;
  margin:13px 0 18px;
  font-size:1.06em;
}
#popupCode{
  width:auto;
  min-width:160px;
  max-width:68%;
  padding:8px 15px;
  border:0;
  outline:0;
  border-radius:7px;
  background:#eaffff;
  color:#089db2;
  font-weight:800;
  letter-spacing:1px;
  text-align:center;
}
#popupCode:focus{ box-shadow:0 0 0 2px rgba(8,157,178,.18) inset; }

#popupCopy{
  padding:9px 18px;
  font-size:1em;
  background:#31e0ec;
  color:#0b3340;
  border:0;
  border-radius:6px;
  font-weight:800;
  cursor:pointer;
  transition:background .14s ease, color .14s ease, transform .04s ease;
}
#popupCopy:hover,
#popupCopy:active{
  background:#089db2;
  color:#fff;
}
#popupCopy:active{ transform:translateY(1px); }

/* Redeem button */
#couponPopup .redeem-btn{
  display:inline-block;
  margin:10px 0 12px;
  background:#0073aa;
  color:#fff !important;
  text-decoration:none;
  border:0;
  border-radius:7px;
  font-weight:800;
  font-size:1.08em;
  padding:12px 26px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(49,224,236,0.13);
  transition:background .13s ease, transform .04s ease;
}
#couponPopup .redeem-btn:hover{
  background:#089db2;
}
#couponPopup .redeem-btn:active{ transform:translateY(1px); }

/* Divider style if you add anything below */
#couponPopup .popup-content hr{
  margin:20px 0 10px;
  border:0;
  border-top:1.5px solid #e8f0f2;
}

/* Small “verified” logo style (if you add it later) */
#couponPopup .footer-logo{
  display:inline-block;
  font-weight:900;
  text-decoration:none;
  margin:0 0 2px;
}
#couponPopup .footer-logo .logo-part1{
  background:#3ff2e7;
  color:#089db2;
  border-radius:4px;
  padding:.13em .4em;
  font-weight:800;
}
#couponPopup .footer-logo .logo-part2{
  color:#0b3340;
  font-weight:900;
}

/* Toast (if you show copy/feedback message inside card) */
.cp-toast{
  position:absolute;
  left:50%;
  bottom:-16px;
  transform:translate(-50%,10px);
  opacity:0; pointer-events:none;
  background:#10b981; color:#fff; font-weight:800;
  border-radius:999px; padding:8px 12px;
  box-shadow:0 10px 20px rgba(16,185,129,.3);
  transition:opacity .2s ease, transform .2s ease;
  font-size:14px;
}
.cp-toast.is-visible{ opacity:1; transform:translate(-50%,-6px); }
.cp-toast.is-bad{ background:#ef4444; box-shadow:0 10px 20px rgba(239,68,68,.3); }

/* Mobile tweaks */
@media (max-width:600px){
  #couponPopup .popup-content{ max-width:99vw; padding:18px 5vw 16px; }
  #couponPopup .popup-close{ top:7px; right:10px; font-size:1.35em; }
  #couponPopup .popup-logo{ max-width:49px; max-height:49px; }
  #couponOffer{ font-size:1.07em; }
  #couponPopup .popup-body p{ font-size:.97em; }
  #couponPopup .popup-code-wrap{ font-size:1em; gap:7px; padding:8px; }
  #popupCode{ min-width:120px; }
}

/* Force section background color */
.cm-home-main .cm-section,
.cm-section.cm-today-trending-coupons {
  background-color: #a7b3aa !important;
}