/**
 * Coupon Hub Theme Stylesheet
 * High-performance, modern aesthetic, mobile-first design.
 */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="en-US"] body,
html[dir="ltr"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

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

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Layout Container */
.cphub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─────────────────────────────────────────────────────────────
   Top Announcement Bar
   ───────────────────────────────────────────────────────────── */
.cphub-top-bar {
  background: #0f172a;
  color: #f1f5f9;
  font-size: 0.825rem;
  padding: 0.5rem 0;
}

.cphub-top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cphub-top-bar__message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cphub-badge-top {
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
}

.cphub-top-bar__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Language Switcher Button ── */
.cphub-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.785rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.cphub-lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #38bdf8;
  transform: translateY(-1px);
}

.cphub-lang-btn__globe {
  font-size: 0.85rem;
}

.cphub-lang-btn__flag {
  font-size: 0.85rem;
}

/* ── Country Selector Dropdown ── */
.cphub-country-picker {
  position: relative;
  display: inline-block;
}

.cphub-country-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.785rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.cphub-country-picker__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #38bdf8;
}

.cphub-country-picker__arrow {
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.cphub-country-picker.is-open .cphub-country-picker__arrow {
  transform: rotate(180deg);
}

.cphub-country-picker__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  z-index: 1050;
  display: none;
  animation: cphubFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cphub-country-picker.is-open .cphub-country-picker__dropdown {
  display: block;
}

.cphub-country-picker__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cphub-country-picker__link:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.cphub-country-picker__item.is-active .cphub-country-picker__link {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.cphub-country-picker__check {
  margin-inline-start: auto;
  font-weight: 800;
  color: #2563eb;
  font-size: 0.85rem;
}

/* ── Theme Toggle Button in Top Bar ── */
.cphub-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.785rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cphub-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fbbf24;
}

/* ── Mobile Extras inside Site Navigation ── */
.cphub-nav-mobile-extras {
  display: none;
}

@media (max-width: 900px) {
  .cphub-nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }

  .cphub-mobile-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .cphub-mobile-extra-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
  }

  .cphub-country-picker--mobile .cphub-country-picker__btn,
  .cphub-lang-btn--mobile {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
  }

  .cphub-country-picker--mobile .cphub-country-picker__dropdown {
    inset-inline-end: auto;
    inset-inline-start: 0;
  }
}

/* ── Dark Mode overrides for pickers ── */
[data-theme="dark"] .cphub-country-picker__dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cphub-country-picker__link {
  color: #cbd5e1;
}

[data-theme="dark"] .cphub-country-picker__link:hover {
  background: #334155;
  color: #38bdf8;
}

[data-theme="dark"] .cphub-country-picker__item.is-active .cphub-country-picker__link {
  background: #0f172a;
  color: #38bdf8;
}

[data-theme="dark"] .cphub-country-picker--mobile .cphub-country-picker__btn,
[data-theme="dark"] .cphub-lang-btn--mobile {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

@keyframes cphubFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────
   Main Header
   ───────────────────────────────────────────────────────────── */
.cphub-site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.cphub-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.cphub-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.cphub-logo-icon {
  font-size: 1.75rem;
}

.cphub-logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.cphub-site-header__search {
  flex-grow: 1;
  max-width: 440px;
}

.cphub-header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cphub-header-search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.cphub-header-search-field {
  width: 100%;
  padding: 0.65rem 2.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.cphub-header-search-field:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cphub-header-search-submit {
  position: absolute;
  inset-inline-end: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cphub-header-search-submit:hover {
  background: #1d4ed8;
}

/* Nav Menu */
.cphub-nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.cphub-nav-menu a {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.cphub-nav-menu a:hover {
  color: #2563eb;
}

.cphub-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.cphub-menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e293b;
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .cphub-site-header__search {
    display: none;
  }
  .cphub-menu-toggle {
    display: block;
  }
  .cphub-main-navigation {
    display: none;
  }
  .cphub-main-navigation.is-open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  .cphub-nav-menu {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────── */
.cphub-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cphub-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #f8fafc;
  clip-path: ellipse(50% 100% at 50% 100%);
}

.cphub-hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cphub-hero__title {
  font-size: 2.75rem;
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.cphub-hero__subtitle {
  font-size: 1.15rem;
  color: #e0e7ff;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.cphub-hero__search-box {
  max-width: 650px;
  margin: 0 auto;
}

.cphub-hero-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.4rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.cphub-hero-search-icon {
  position: absolute;
  inset-inline-start: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.cphub-hero-search-field {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.85rem 3.5rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: #1e293b;
}

.cphub-hero-search-field:focus {
  outline: none;
}

.cphub-hero-search-submit {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cphub-hero-search-submit:hover {
  background: #d97706;
}

.cphub-hero__quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.cphub-hero__quick-label {
  color: #cbd5e1;
}

.cphub-quick-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cphub-quick-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 640px) {
  .cphub-hero__title {
    font-size: 1.85rem;
  }
  .cphub-hero-search-input-wrap {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  .cphub-hero-search-field {
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    text-align: center;
  }
  .cphub-hero-search-submit {
    width: 100%;
    border-radius: 12px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Section Components
   ───────────────────────────────────────────────────────────── */
.cphub-section {
  padding: 3.5rem 0;
}

.cphub-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cphub-section__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.cphub-section__desc {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.cphub-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2563eb;
}

/* Categories Grid */
.cphub-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.cphub-category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cphub-category-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.cphub-category-card__icon {
  font-size: 1.8rem;
}

.cphub-category-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.cphub-category-card__count {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Trust Section */
.cphub-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cphub-trust-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cphub-trust-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.cphub-trust-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.cphub-trust-desc {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   Blog Grid & Cards
   ───────────────────────────────────────────────────────────── */
.cphub-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.cphub-blog-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.cphub-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.cphub-blog-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cphub-blog-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cphub-blog-card__meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.cphub-blog-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.cphub-blog-card__title a {
  color: #0f172a;
}
.cphub-blog-card__title a:hover {
  color: #2563eb;
}

.cphub-blog-card__excerpt {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cphub-blog-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2563eb;
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
.cphub-site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

.cphub-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .cphub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cphub-footer-grid {
    grid-template-columns: 1fr;
  }
}

.cphub-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cphub-footer-icon {
  font-size: 1.5rem;
}

.cphub-footer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.cphub-footer-about {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.cphub-footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cphub-pill-footer {
  background: #1e293b;
  color: #38bdf8;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cphub-footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.cphub-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cphub-footer-links li {
  margin-bottom: 0.65rem;
}

.cphub-footer-links a {
  color: #94a3b8;
  transition: all 0.2s ease;
}

.cphub-footer-links a:hover {
  color: #ffffff;
  padding-inline-start: 4px;
}

.cphub-footer-disclosure {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
}

.cphub-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ─────────────────────────────────────────────────────────────
   Theme Mode Toggle
   ───────────────────────────────────────────────────────────── */
.cphub-top-bar__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cphub-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cphub-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   Dark Mode Theme Overrides
   ───────────────────────────────────────────────────────────── */
[data-theme="dark"] body {
  background-color: #0b0f19;
  color: #f8fafc;
}

[data-theme="dark"] .cphub-site-header {
  background-color: #131a29;
  border-bottom-color: #1e293b;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cphub-logo-text {
  color: #f8fafc;
}

[data-theme="dark"] .cphub-header-search-wrap {
  background-color: #182234;
  border-color: #27354a;
}

[data-theme="dark"] .cphub-header-search-field {
  color: #f8fafc;
}

[data-theme="dark"] .cphub-header-search-field::placeholder {
  color: #64748b;
}

[data-theme="dark"] .cphub-nav-menu a {
  color: #cbd5e1;
}

[data-theme="dark"] .cphub-nav-menu a:hover {
  color: #38bdf8;
}

[data-theme="dark"] .cphub-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

[data-theme="dark"] .cphub-store-card,
[data-theme="dark"] .cphub-card,
[data-theme="dark"] .cphub-coupon-card {
  background-color: #131a29;
  border-color: #1e293b;
  color: #f8fafc;
}

[data-theme="dark"] .cphub-store-card__title,
[data-theme="dark"] .cphub-coupon-card__title {
  color: #f8fafc;
}

[data-theme="dark"] .cphub-store-card__discount {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

[data-theme="dark"] .cphub-cat-chip {
  background: #182234;
  border-color: #27354a;
  color: #cbd5e1;
}

[data-theme="dark"] .cphub-cat-chip:hover {
  background: #1f2c42;
  color: #38bdf8;
}

[data-theme="dark"] .cphub-filter-tab {
  background: #182234;
  border-color: #27354a;
  color: #94a3b8;
}

[data-theme="dark"] .cphub-filter-tab.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ─────────────────────────────────────────────────────────────
   Alcoupon-Inspired Layout & Sections Styling
   ───────────────────────────────────────────────────────────── */

/* Sub-Navbar Categories */
.cphub-cat-subnav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .cphub-cat-subnav {
  background: #131a29;
  border-bottom-color: #1e293b;
}

.cphub-cat-subnav__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.cphub-cat-subnav__list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
  background: transparent;
}

.cphub-cat-subnav__list li a:hover,
.cphub-cat-subnav__list li a.is-active {
  background: #eff6ff;
  color: #2563eb;
}

[data-theme="dark"] .cphub-cat-subnav__list li a {
  color: #94a3b8;
}

[data-theme="dark"] .cphub-cat-subnav__list li a:hover,
[data-theme="dark"] .cphub-cat-subnav__list li a.is-active {
  background: #1e293b;
  color: #38bdf8;
}

/* Hero Promo Area */
.cphub-hero-promo {
  padding: 1.5rem 0 1rem;
}

.cphub-hero-promo__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .cphub-hero-promo__layout {
    grid-template-columns: 1fr;
  }
}

.cphub-hero-promo__stores-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .cphub-hero-promo__stores-strip {
  background: #131a29;
  border-color: #1e293b;
}

.cphub-stores-strip__title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .cphub-stores-strip__title {
  color: #94a3b8;
  border-bottom-color: #1e293b;
}

.cphub-stores-strip__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cphub-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.cphub-strip-item__logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cphub-strip-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  padding-inline-start: 0.85rem;
}

[data-theme="dark"] .cphub-strip-item {
  background: #182234;
  border-color: #27354a;
  color: #f8fafc;
}

[data-theme="dark"] .cphub-strip-item:hover {
  background: #1f2c42;
  color: #38bdf8;
}

.cphub-hero-promo__banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.25);
  position: relative;
  overflow: hidden;
}

.cphub-promo-banner__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.cphub-promo-banner__title {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.cphub-promo-banner__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0 0 1.5rem;
  max-width: 650px;
}

.cphub-promo-banner__search {
  max-width: 650px;
}

.cphub-promo-banner__search .cphub-header-search-wrap {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Compact Coupons 6-Column Grid */
.cphub-compact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .cphub-compact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cphub-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cphub-compact-card {
  padding: 1.15rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cphub-compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cphub-compact-card__store {
  width: 100%;
}

.cphub-compact-card__store-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
}

.cphub-compact-card__logo-wrap {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cphub-compact-card:hover .cphub-compact-card__logo-wrap {
  border-color: #93c5fd;
  background: #ffffff;
}

[data-theme="dark"] .cphub-compact-card__logo-wrap {
  background: #182234;
  border-color: #27354a;
}

[data-theme="dark"] .cphub-compact-card:hover .cphub-compact-card__logo-wrap {
  border-color: #3b82f6;
  background: #1f2c42;
}

.cphub-compact-card__store-logo {
  max-height: 40px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cphub-compact-card__logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

[data-theme="dark"] .cphub-compact-card__logo-placeholder {
  background: #334155;
  color: #cbd5e1;
}

.cphub-compact-card__store-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cphub-text, #1e293b);
  display: block;
  text-align: center;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.cphub-compact-card__store-link:hover .cphub-compact-card__store-name {
  color: var(--cphub-primary, #2563eb);
}

.cphub-compact-card__code-wrap {
  width: 100%;
}

.cphub-compact-card__code-btn {
  width: 100%;
  border: 1.5px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: monospace, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cphub-compact-card__code-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-style: solid;
}

[data-theme="dark"] .cphub-compact-card__code-btn {
  background: #182234;
  border-color: #3b82f6;
  color: #60a5fa;
}

[data-theme="dark"] .cphub-compact-card__code-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.cphub-compact-card__discount {
  font-size: 0.775rem;
  font-weight: 700;
  color: #059669;
}

[data-theme="dark"] .cphub-compact-card__discount {
  color: #34d399;
}

/* SEO Card */
.cphub-seo-card {
  padding: 2rem;
  border-radius: 14px;
}

.cphub-seo-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: var(--cphub-text, #1e293b);
}

.cphub-seo-card__body p {
  margin: 0;
  line-height: 1.8;
  color: var(--cphub-text-muted, #64748b);
  font-size: 0.95rem;
}

/* Stores Showcase Grid (6 cols) */
.cphub-stores-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .cphub-stores-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cphub-stores-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cphub-store-showcase-card {
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cphub-store-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.cphub-store-showcase-card__logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cphub-store-showcase-card:hover .cphub-store-showcase-card__logo-wrap {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #93c5fd;
}

[data-theme="dark"] .cphub-store-showcase-card__logo-wrap {
  background: #182234;
  border-color: #27354a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cphub-store-showcase-card:hover .cphub-store-showcase-card__logo-wrap {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.cphub-store-showcase-card__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cphub-store-showcase-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.cphub-store-showcase-card__name {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--cphub-text, #1e293b);
  margin: 0;
  line-height: 1.35;
}

.cphub-store-showcase-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

[data-theme="dark"] .cphub-store-showcase-card__badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Deals Comparison Table Card */
.cphub-deals-table-card {
  padding: 1.5rem;
  overflow: hidden;
}

.cphub-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.cphub-deals-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.cphub-deals-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cphub-text, #1e293b);
  border-bottom: 2px solid #e2e8f0;
}

[data-theme="dark"] .cphub-deals-table th {
  background: #182234;
  border-bottom-color: #27354a;
}

.cphub-deals-table td {
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--cphub-text, #1e293b);
}

[data-theme="dark"] .cphub-deals-table td {
  border-bottom-color: #1e293b;
}

.cphub-deals-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.cphub-table__store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.cphub-table__store-link:hover strong {
  color: var(--cphub-primary, #2563eb);
}

.cphub-table__store-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

[data-theme="dark"] .cphub-table__store-logo {
  background: #182234;
  border-color: #27354a;
}

.cphub-table-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px dashed #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cphub-table-code-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .cphub-table-code-btn {
  background: #182234;
  border-color: #3b82f6;
  color: #60a5fa;
}

.cphub-deals-table__footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.825rem;
  color: var(--cphub-text-muted, #64748b);
}

[data-theme="dark"] .cphub-deals-table__footer {
  border-top-color: #1e293b;
}

/* Guide Split Card */
.cphub-guide-split-card {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .cphub-guide-split-card {
    grid-template-columns: 1fr;
  }
}

.cphub-guide-icon-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .cphub-guide-icon-box {
  background: #182234;
  border-color: #27354a;
}

.cphub-guide-icon {
  font-size: 3rem;
}

.cphub-guide-badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

[data-theme="dark"] .cphub-guide-badge-text {
  color: #38bdf8;
}

.cphub-guide-split-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--cphub-text, #1e293b);
}

.cphub-guide-split-card__lead {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--cphub-text, #1e293b);
  margin-bottom: 1rem;
}

.cphub-guide-split-card__subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #2563eb;
}

[data-theme="dark"] .cphub-guide-split-card__subtitle {
  color: #38bdf8;
}

/* How-To Steps 3 Cards */
.cphub-section__head--center {
  text-align: center;
  margin-bottom: 2rem;
}

.cphub-section__head--center .cphub-section__desc {
  max-width: 650px;
  margin: 0.5rem auto 0;
}

.cphub-how-to-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .cphub-how-to-steps-grid {
    grid-template-columns: 1fr;
  }
}

.cphub-how-to-step-card {
  padding: 2rem 1.75rem;
  text-align: center;
  border-radius: 14px;
}

.cphub-how-to-step-card__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 16px;
}

[data-theme="dark"] .cphub-how-to-step-card__icon-wrap {
  background: #182234;
  color: #38bdf8;
}

.cphub-how-to-step-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: var(--cphub-text, #1e293b);
}

.cphub-how-to-step-card__desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cphub-text-muted, #64748b);
  margin: 0;
}

/* Blog Cards */
.cphub-blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.cphub-blog-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cphub-blog-card__date {
  font-size: 0.775rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: block;
}

.cphub-blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.cphub-blog-card__title a {
  color: var(--cphub-text, #1e293b);
}

.cphub-blog-card__title a:hover {
  color: #2563eb;
}

.cphub-blog-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--cphub-text-muted, #64748b);
  margin: 0 0 1rem;
}

.cphub-blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

/* ─────────────────────────────────────────────────────────────
   Homepage Interactive Coupon Carousel / Slider
   ───────────────────────────────────────────────────────────── */
.cphub-section--coupon-carousel {
  position: relative;
  background: var(--cphub-bg-alt, #f8fafc);
  padding: 44px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--cphub-border, #e2e8f0);
}

.cphub-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cphub-section__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.cphub-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: cphubPulse 2s infinite;
}

@keyframes cphubPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cphub-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cphub-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--cphub-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cphub-text, #1e293b);
  transition: all 0.25s ease;
  user-select: none;
}

.cphub-carousel-arrow:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.cphub-carousel-arrow:active {
  transform: translateY(0);
}

.cphub-section__link--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--cphub-border, #e2e8f0);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--cphub-text, #1e293b);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.cphub-section__link--btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.cphub-coupon-carousel {
  position: relative;
  width: 100%;
}

.cphub-coupon-carousel__viewport {
  overflow: hidden;
  width: 100%;
  padding: 10px 4px 18px;
  cursor: grab;
}

.cphub-coupon-carousel__viewport:active {
  cursor: grabbing;
}

.cphub-coupon-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cphub-coupon-carousel__slide {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .cphub-coupon-carousel__slide {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 720px) {
  .cphub-coupon-carousel__slide {
    flex: 0 0 88%;
    max-width: 88%;
  }
}

/* Ensure complete card inside carousel has vertical flex stretching and uniform layout */
.cphub-coupon-carousel__slide .cphub-coupon-card {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 16px;
}

.cphub-coupon-carousel__slide .cphub-coupon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__title {
  font-size: 0.975rem;
  line-height: 1.45;
  margin: 0 0 6px 0;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__excerpt {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__footer-meta {
  margin-top: auto;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

.cphub-coupon-carousel__slide .cphub-coupon-card__cta {
  width: 100%;
}

/* Dots */
.cphub-coupon-carousel__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.cphub-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.cphub-carousel-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #2563eb;
}

/* ─────────────────────────────────────────────────────────────
   Article Related Coupons Section (single.php)
   ───────────────────────────────────────────────────────────── */
.cphub-article-related-coupons-section {
  margin-top: 36px;
  padding-top: 24px;
}

.cphub-article-coupons-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cphub-article-coupons-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.cphub-article-coupons-box__badge-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cphub-badge--count {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.cphub-article-coupons-box__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.cphub-article-coupons-box__desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.cphub-article-coupons-box__logo-wrap {
  flex-shrink: 0;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cphub-article-coupons-box__logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.cphub-article-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cphub-article-coupons-list .cphub-coupon-card {
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cphub-article-coupons-box__footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
}

.cphub-article-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cphub-article-store-link:hover {
  color: #1d4ed8;
  transform: translateX(-4px);
}

/* Dark Mode Extensions */
[data-theme="dark"] .cphub-section--coupon-carousel {
  background: #0b1120;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .cphub-carousel-arrow,
[data-theme="dark"] .cphub-section__link--btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .cphub-carousel-arrow:hover {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .cphub-coupon-carousel__slide .cphub-coupon-card,
[data-theme="dark"] .cphub-coupon-card {
  background: #182234;
  border-color: #27354a;
  color: #f8fafc;
}

[data-theme="dark"] .cphub-coupon-card__header,
[data-theme="dark"] .cphub-coupon-card__footer-meta {
  border-color: #27354a;
}

[data-theme="dark"] .cphub-coupon-card__store-brand {
  color: #f1f5f9;
}

[data-theme="dark"] .cphub-coupon-card__store-logo-box {
  background: #0f172a;
  border-color: #27354a;
}

[data-theme="dark"] .cphub-coupon-card__discount-badge {
  background: linear-gradient(135deg, #1e293b 0%, #172554 100%);
  border-color: #2563eb;
}

[data-theme="dark"] .cphub-coupon-card__discount-num {
  color: #60a5fa;
}

[data-theme="dark"] .cphub-coupon-card__discount-unit {
  color: #93c5fd;
}

[data-theme="dark"] .cphub-coupon-card__discount-tagline {
  background: #0f172a;
  color: #cbd5e1;
}

[data-theme="dark"] .cphub-coupon-card__center-logo-box {
  background: #0f172a;
  border-color: #27354a;
}

[data-theme="dark"] .cphub-coupon-card__title {
  color: #f8fafc;
}

[data-theme="dark"] .cphub-coupon-card__excerpt {
  color: #94a3b8;
}

[data-theme="dark"] .cphub-badge--country {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

[data-theme="dark"] .cphub-carousel-dot {
  background: #334155;
}

[data-theme="dark"] .cphub-carousel-dot.is-active {
  background: #38bdf8;
}

[data-theme="dark"] .cphub-article-coupons-box {
  background: #182234;
  border-color: #27354a;
}

[data-theme="dark"] .cphub-article-coupons-box__header,
[data-theme="dark"] .cphub-article-coupons-box__footer {
  border-color: #27354a;
}

[data-theme="dark"] .cphub-article-coupons-box__title {
  color: #f8fafc;
}

[data-theme="dark"] .cphub-article-coupons-box__desc {
  color: #94a3b8;
}

[data-theme="dark"] .cphub-article-coupons-box__logo-wrap {
  background: #131a29;
  border-color: #27354a;
}

/* ─────────────────────────────────────────────────────────────
   Promotional Header Banner Slider (Alcoupon Inspired)
   ───────────────────────────────────────────────────────────── */
.cphub-header-slider-wrap {
  width: 100%;
  margin: 18px 0 28px;
  position: relative;
  z-index: 5;
}

.cphub-header-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.cphub-header-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.cphub-header-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.cphub-hslider-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  color: #ffffff;
}

/* Background Gradients */
.cphub-hslider-slide--purple {
  background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 45%, #7e22ce 75%, #581c87 100%);
}

.cphub-hslider-slide--blue {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
}

.cphub-hslider-slide--emerald {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
}

.cphub-hslider-slide--dark {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 70%, #0f172a 100%);
}

/* Slide Inner Container */
.cphub-hslider-slide__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 48px 34px;
  min-height: 270px;
  gap: 32px;
}

.cphub-hslider-slide__content {
  flex: 1;
  max-width: 640px;
  z-index: 2;
}

.cphub-hslider-slide__title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cphub-hslider-slide__subtitle {
  color: #fef08a;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cphub-hslider-slide__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* App Store Badges (Black pill buttons like screenshot) */
.cphub-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 9px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  user-select: none;
}

.cphub-store-badge:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.cphub-store-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.cphub-store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.cphub-store-badge__sub {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.1;
  font-weight: 500;
}

.cphub-store-badge__name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Custom CTA Button */
.cphub-hslider-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cphub-hslider-btn--primary {
  background: #ffffff;
  color: #0f172a;
}

.cphub-hslider-btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: #0f172a;
}

.cphub-hslider-btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.cphub-hslider-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.cphub-hslider-slide__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cphub-hslider-slide__extra {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.cphub-hslider-slide__domain {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Slide Graphic Mockup Visual */
.cphub-hslider-slide__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cphub-hslider-slide__img-wrap {
  position: relative;
}

.cphub-hslider-slide__img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.38));
  transition: transform 0.35s ease;
}

.cphub-hslider-slide__img:hover {
  transform: scale(1.02);
}

/* Full Banner Image Mode */
.cphub-hslider-slide__full-img-wrap {
  width: 100%;
  line-height: 0;
}

.cphub-hslider-slide__full-img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.cphub-hslider-slide__img-link {
  display: block;
  width: 100%;
}

/* Navigation Arrows (Semi-transparent overlay bars on sides) */
.cphub-header-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 76px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.cphub-header-slider__arrow--prev {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.cphub-header-slider__arrow--next {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.cphub-header-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Navigation Dots */
.cphub-header-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.cphub-hslider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.cphub-hslider-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .cphub-hslider-slide__inner {
    padding: 24px 28px 30px;
    gap: 20px;
  }
  .cphub-hslider-slide__title {
    font-size: 1.55rem;
  }
  .cphub-hslider-slide__subtitle {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .cphub-hslider-slide__img {
    max-height: 180px;
  }
}

@media (max-width: 680px) {
  .cphub-hslider-slide__inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px 20px 32px;
  }
  .cphub-hslider-slide__title {
    font-size: 1.35rem;
  }
  .cphub-hslider-slide__subtitle {
    font-size: 0.95rem;
  }
  .cphub-hslider-slide__actions {
    justify-content: center;
  }
  .cphub-hslider-slide__meta {
    justify-content: center;
  }
  .cphub-hslider-slide__img {
    max-height: 150px;
  }
  .cphub-header-slider__arrow {
    width: 34px;
    height: 56px;
  }
}


