/* =========================================================
   BLOGLIATE - STYLE.CSS
   Design tokens, base styles, components, responsive rules
   ========================================================= */

/* -----------------------------
   1. DESIGN TOKENS
------------------------------ */
:root {
  /* Colors */
  --color-ink: #12261F;          /* near-black green-tinted ink for text */
  --color-navy: #0F2A2E;         /* deep footer background */
  --color-brand: #1F6F5C;        /* primary emerald - trust / savings */
  --color-brand-dark: #14584A;
  --color-brand-light: #E7F3EF;
  --color-amber: #F2A93B;        /* accent - tags, highlights */
  --color-amber-dark: #D6902A;
  --color-coral: #E1594C;        /* urgency - discount badges */
  --color-bg: #FBFAF6;           /* warm off-white background */
  --color-surface: #FFFFFF;
  --color-border: #E4E1D6;
  --color-muted: #63705F;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(18, 38, 31, 0.06), 0 8px 24px -12px rgba(18, 38, 31, 0.18);
  --header-height: 76px;
}

/* -----------------------------
   2. RESET & BASE
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  overflow-x: clip;
}


img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------
   3. BUTTONS
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-brand);
  color: #fff;
}
.btn-primary:hover { background: var(--color-brand-dark); }

.btn-accent {
  background: var(--color-amber);
  color: var(--color-ink);
}
.btn-accent:hover { background: var(--color-amber-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-brand);
}
.btn-outline:hover { background: var(--color-brand-light); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.9rem;
}
.text-btn:hover { text-decoration: underline; }

/* -----------------------------
   4. HEADER / NAVBAR
------------------------------ */
#shared-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-ink);
  flex-shrink: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-brand);
  flex-shrink: 0;
  transform: rotate(-8deg);
}

.logo-svg {
  width: 22px;
  height: 22px;
}

.logo-svg-accent {
  fill: var(--color-amber);
}

.logo-accent { color: var(--color-brand); }

.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--color-brand-light); color: var(--color-brand-dark); }
.nav-link.active { color: var(--color-brand); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--color-ink);
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--color-brand-light); }

.nav-search-box {
  position: absolute;
  top: calc(var(--header-height) + 8px);
  right: 24px;
  left: 24px;
  max-width: 420px;
  margin-left: auto;
  display: none;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 6px;
}
.nav-search-box.open { display: flex; }
.nav-search-box input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: transparent;
}
.nav-search-box input:focus { outline: none; }
.nav-search-box button {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------
   5. HERO
------------------------------ */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(560px 320px at 88% 8%, rgba(31,111,92,0.10), transparent 65%),
    var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-card);
  max-width: 560px;
}

.hero-search-icon {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 6px;
  font-size: 1rem;
  min-width: 0;
}
.hero-search input:focus { outline: none; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-brand-dark);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Hero visual: floating ticket mockups */
.hero-visual {
  position: relative;
  height: 380px;
}

.ticket-float {
  position: absolute;
  width: 280px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  top: 20px;
  right: 20px;
  transform: rotate(4deg);
  overflow: hidden;
}

.ticket-float-secondary {
  top: 190px;
  right: 90px;
  transform: rotate(-6deg);
  z-index: 1;
}

.ticket-float-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 22px;
}

.ticket-store {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.ticket-percent {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brand);
  font-size: 1.1rem;
}

.ticket-float-notch {
  position: relative;
  height: 0;
  border-top: 1.5px dashed var(--color-border);
  margin: 0 20px;
}
.ticket-float-notch::before,
.ticket-float-notch::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg);
}
.ticket-float-notch::before { left: -30px; }
.ticket-float-notch::after { right: -30px; }

.ticket-float-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.ticket-float-bottom strong {
  font-family: 'Inter', monospace;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  font-size: 0.95rem;
}

/* -----------------------------
   6. SEARCH RESULTS PANEL
------------------------------ */
.search-results-section {
  background: var(--color-brand-light);
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-results-header h2 {
  font-size: 1.2rem;
}

.search-results-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.result-item {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-item .result-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  font-weight: 700;
}
.result-item .result-title { font-weight: 600; }
.result-item .result-sub { font-size: 0.85rem; color: var(--color-muted); }

.no-results {
  color: var(--color-muted);
  padding: 20px 0;
}

/* -----------------------------
   7. SECTION LAYOUT
------------------------------ */
.section {
  padding: 84px 0;
}

.section-tinted {
  background: var(--color-brand-light);
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* -----------------------------
   8. STORES GRID
------------------------------ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.store-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.store-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
}

.store-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.store-count {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

/* -----------------------------
   9. COUPON TICKETS
------------------------------ */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coupon-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.coupon-top {
  padding: 22px 22px 18px;
}

.coupon-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.coupon-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.coupon-store-badge .mini-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.coupon-discount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-brand);
}

.coupon-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.coupon-desc {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Perforated tear line with scalloped notches, like a real ticket */
.coupon-tear {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--color-border);
  margin: 4px 0;
}
.coupon-tear::before,
.coupon-tear::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
}
.coupon-tear::before { left: -11px; }
.coupon-tear::after { right: -11px; }
.section-tinted .coupon-tear::before,
.section-tinted .coupon-tear::after { background: var(--color-brand-light); }

.coupon-bottom {
  padding: 18px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.coupon-expiry {
  font-size: 0.78rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-code-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--color-brand-light);
  border: 1.5px dashed var(--color-brand);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-brand-dark);
  font-size: 0.9rem;
}
.coupon-code-pill.visible { display: inline-flex; }

.coupon-code-pill button {
  color: var(--color-brand-dark);
  font-size: 1rem;
  display: inline-flex;
}

.btn-show-code {
  background: var(--color-brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn-show-code:hover { background: var(--color-brand-dark); }
.btn-show-code.hidden-btn { display: none; }

/* -----------------------------
   10. DEAL CARDS (visually distinct: ribbon + horizontal)
------------------------------ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deal-card {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.deal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px 180px at 100% 0%, rgba(242,169,59,0.22), transparent 70%);
  pointer-events: none;
}

.deal-badge {
  position: absolute;
  top: 20px;
  right: -34px;
  background: var(--color-coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 40px;
  transform: rotate(35deg);
}

.deal-store {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.deal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.deal-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}

.deal-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deal-expiry {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.btn-get-deal {
  background: var(--color-amber);
  color: var(--color-ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn-get-deal:hover { background: var(--color-amber-dark); }


/* -----------------------------
   11. CATEGORIES
------------------------------ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

.category-name {
  font-weight: 700;
  margin-bottom: 3px;
}

.category-count {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* -----------------------------
   12. HOW IT WORKS
------------------------------ */
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}

.step-card {
  position: relative;
  text-align: left;
  padding: 30px 26px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: 14px;
}

.step-icon {
  font-size: 1.6rem;
  color: var(--color-brand);
  display: block;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--color-muted);
  font-size: 0.94rem;
}

/* -----------------------------
   13. WHY USE US / FEATURES
------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 8px 4px;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--color-brand);
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* -----------------------------
   14. NEWSLETTER
------------------------------ */
.newsletter {
  background: var(--color-brand);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-copy h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.newsletter-copy p {
  color: rgba(255,255,255,0.8);
}

.newsletter-form { flex: 1; min-width: 280px; max-width: 460px; }

.newsletter-input-row {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.newsletter-input-row input {
  flex: 1;
  border: none;
  padding: 11px 12px;
  font-size: 0.95rem;
  min-width: 0;
  border-radius: 6px;
}
.newsletter-input-row input:focus { outline: none; }

.newsletter-message {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
  color: #fff;
}
.newsletter-message.error { color: #FFD6D1; }
.newsletter-message.success { color: #D9FBE7; }

/* -----------------------------
   15. FOOTER
------------------------------ */
.site-footer {
  background-color: #073e32 !important;
  color: rgba(255,255,255,0.78);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { color: #fff; margin-bottom: 14px; }
.footer-logo .logo-accent { color: var(--color-amber); }

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.social-links a:hover { background: var(--color-brand); }

.footer-links h3 {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
}

/* -----------------------------
   16. BACK TO TOP
------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-brand-dark); }

/* -----------------------------
   17. TOAST NOTIFICATION
------------------------------ */
.toast-notification {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--color-ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.toast-notification.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet / laptop */
@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; margin-top: 12px; }
  .ticket-float { width: 240px; }
  .ticket-float-secondary { right: 40px; }

  .stores-grid { grid-template-columns: repeat(3, 1fr); }
  .coupons-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-list { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

/* Mobile nav + tighter layout */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    box-shadow: var(--shadow-card);
  }
  .main-nav.open { max-height: 420px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    gap: 2px;
  }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-list li:last-child .nav-link { border-bottom: none; }

  .nav-search-box { left: 20px; right: 20px; max-width: none; }

  .hero { padding: 44px 0 56px; }
  .hero-search { flex-wrap: wrap; padding: 14px; }
  .hero-search input { width: 100%; order: 1; padding: 8px 0; }
  .hero-search .btn { order: 2; width: 100%; }
  .hero-stats { gap: 24px; }

  .section { padding: 56px 0; }

  .stores-grid { grid-template-columns: repeat(2, 1fr); }
  .coupons-grid { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }

  .coupon-bottom { flex-wrap: wrap; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-input-row { flex-direction: column; }
  .newsletter-input-row .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 420px) {
  .stores-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.1rem; }
  .container { padding: 0 16px; }
}



/* CMS Store Search Results */
.search-results-section {
  padding: 28px 0 40px;
  scroll-margin-top: 90px;
}

/* Hide search heading and Clear Search */
.search-results-header {
  display: none;
}

.search-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Wide white rectangle */
.search-store-card {
  width: 100%;
  max-width: 950px;
  min-height: 250px;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid #e5e2d8;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Store logo on the left */
.search-store-logo-box {
  width: 200px;
  height: 200px;
  min-width: 200px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #eeeae1;
  border-radius: 10px;
  background: #fff;
}

.search-store-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-store-no-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F6F5C;
  background: #f2f5f1;
  font-size: 42px;
}

/* Store name above description */
.search-store-details {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  font-size: 15px;
  line-height: 1.7;
  padding-top: 20px;

}

.search-store-details h3 {
  color: #073e32;
  font-family: 'Fraunces', serif;
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.search-store-details p {
  color: #687568;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.store-search-message {
  text-align: center;
  color: #687568;
  padding: 18px;
}

/* Mobile responsive layout */
@media (max-width: 600px) {
  .search-store-card {
    padding: 16px;
    gap: 16px;
    align-items: flex-start;
    min-height: auto;
  }

  .search-store-logo-box {
    width: 110px;
    height: 110px;
    min-width: 110px;
  }

  .search-store-details {
    padding-top: 3px;
  }

  .search-store-details h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .search-store-details p {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .search-store-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .search-store-logo-box {
    width: 160px;
    height: 160px;
  }

  .search-store-details {
    width: 100%;
    text-align: center;
  }
}
/* ===== Store coupons (search results) ===== */
.search-store-block {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
}

.search-store-block .search-store-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Bara box, center mein, upar wale card se chota gap */
.store-coupons {
  width: 100%;
  max-width: 800px;
  margin: 12px auto 0;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(31, 111, 92, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.store-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-coupons-empty {
  margin: 0;
  color: #718078;
  font-size: 0.95rem;
  text-align: center;
}

/* Ek coupon: [logo] [offer + badge] [visit] */
.store-coupon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px dashed #b9d4c8;
  border-radius: 12px;
  background: #f8fbf9;
}

/* Left side: store logo 100x100 */
.store-coupon-logo {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3ece6;
  border-radius: 10px;
  background: #fff;
  color: #1f6f5c;
  font-size: 2rem;
}

.store-coupon-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Offer upar, neeche left side par Deal/Code badge */
.store-coupon-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.store-coupon-offer {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #173f32;
  text-align: left;
}

.coupon-verified {
  margin-left: 6px;
  color: #16a34a;
  font-size: 1.1rem;
  vertical-align: middle;
}

.store-coupon-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-coupon-type.is-code {
  background: #e8f3ec;
  color: #1f6f5c;
}

.store-coupon-type.is-deal {
  background: #fff4d9;
  color: #8a6b2b;
}

/* Right side: Visit button (aur uske neeche code) */
.store-coupon-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.store-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border: 0;
  border-radius: 8px;
  background: #1f6f5c;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.store-visit-btn:hover {
  background: #144a3e;
  color: #fff;
}

/* Code: Visit dabane par khulta hai */
.store-coupons .store-code-pill {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px dashed #1f6f5c;
  border-radius: 8px;
  background: #fff;
  color: #073e32;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.store-coupons .store-coupon.revealed .store-code-pill,
.store-coupons .store-code-pill.is-open {
  display: inline-flex;
}

.store-code-pill button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #e8f3ec;
  color: #1f6f5c;
  font-size: 1rem;
  cursor: pointer;
}

.store-code-pill button:hover {
  background: #d4eadc;
}

.no-code-text {
  color: #718078;
  font-size: 0.88rem;
}

/* Mobile: logo + offer upar, Visit neeche poori width mein */
@media (max-width: 640px) {
  .store-coupons {
    padding: 12px;
  }

  .store-coupon {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px;
  }

  .store-coupon-action {
    flex: 1 1 100%;
    align-items: stretch;
  }

  .store-visit-btn {
    width: 100%;
  }

  .store-coupons .store-coupon.revealed .store-code-pill,
  .store-coupons .store-code-pill.is-open {
    width: 100%;
    justify-content: space-between;
  }
}
/* ===== Blog (blog.php / blogpost.php) ===== */
.blog-hero {
  padding: 64px 0 44px;
  text-align: center;
  background:
    radial-gradient(560px 280px at 85% 0%, rgba(31, 111, 92, 0.10), transparent 65%),
    var(--color-bg);
}

.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.blog-hero-subtitle {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.blog-section {
  padding-top: 24px;
}

/* Category filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.blog-filter {
  padding: 9px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-filter:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.blog-filter.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* Cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-brand-light);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--color-brand);
  font-size: 2.4rem;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.blog-card-category {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.blog-card-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card-title a:hover {
  color: var(--color-brand);
}

.blog-card-excerpt {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.82rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-brand);
  font-weight: 600;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Empty / error state */
.blog-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

.blog-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--color-brand);
  font-size: 2.4rem;
}

.blog-empty p {
  margin-bottom: 18px;
}

.blog-empty-title {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

/* Pagination */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.blog-page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.blog-page:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.blog-page.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.blog-page.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Single post */
.post-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(31, 111, 92, 0.09), transparent 65%),
    var(--color-bg);
}

.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.post-breadcrumb a {
  color: var(--color-brand);
  font-weight: 500;
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.post-category {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-title {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-image {
  max-width: 900px;
  margin: 8px auto 0;
}

.post-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.post-body {
  max-width: 800px;
  margin: 36px auto 0;
  padding-bottom: 56px;
  color: #2d3b34;
  font-size: 1.06rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.post-body p {
  margin: 0 0 1.3em;
}

.post-body h2 {
  margin: 1.9em 0 0.6em;
  font-size: 1.7rem;
}

.post-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.35rem;
}

.post-body h4 {
  margin: 1.4em 0 0.5em;
  font-size: 1.15rem;
}

.post-body > *:first-child {
  margin-top: 0;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.5em;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
  margin-bottom: 0.5em;
}

.post-body a {
  color: var(--color-brand);
  text-decoration: underline;
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1.4em 0;
  border-radius: var(--radius-md);
}

.post-body blockquote {
  margin: 1.6em 0;
  padding: 14px 22px;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-brand-light);
  color: var(--color-ink);
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body table {
  display: block;
  width: 100%;
  margin: 1.4em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.post-body th,
.post-body td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.post-body pre {
  margin: 1.4em 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: #fff;
  font-size: 0.92rem;
}

.post-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.post-footer-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.related-posts .section-head {
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 44px 0 32px;
  }

  .post-hero {
    padding: 40px 0 20px;
  }

  .post-body {
    font-size: 1rem;
    margin-top: 28px;
  }
}
/* Header ki fixed height aur smooth transition fix */
#site-header, .header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Jab header sticky ho toh layout na hile */
#site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #ffffff; /* ya jo bhi aapka header ka rang ho */
}