/* ============================
   Family Hub – Discount Singles (Full CSS, updated colors)
   ============================ */

/* ---- Theme tokens (uses Elementor globals) ---- */
:root {
  /* Button / accent colors (from Elementor) */
  --fhd-accent: var(--e-global-color-accent, #879989);
  /* default background */
  --fhd-accent-hover: var(--e-global-color-primary, #2b2b2b);
  /* hover background */
  --fhd-accent-ink: #ffffff;
  /* text on accent */

  /* Base palette & layout */
  --fhd-text: #1f2937;
  /* slate-800 */
  --fhd-muted: #6b7280;
  /* slate-500 */
  --fhd-border: #e5e7eb;
  /* slate-200 */
  --fhd-bg: #ffffff;
  --fhd-card: #ffffff;
  --fhd-radius: 14px;
  --fhd-radius-sm: 10px;
  --fhd-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  --fhd-shadow-sm: 0 4px 14px rgba(2, 6, 23, 0.05);
  --fhd-maxw: 1100px;
}

/* ---- Container & base ---- */
.fhd-single.container {
  max-width: var(--fhd-maxw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  color: var(--fhd-text);
  background: var(--fhd-bg);
}

/* ---- Hero layout ---- */
.fhd-single-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  margin-bottom: clamp(20px, 4vw, 44px);
}

.fhd-single-media {
  border-radius: var(--fhd-radius);
  overflow: hidden;
  box-shadow: var(--fhd-shadow);
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  min-height: 260px;
  /* graceful space if no image */
}

.fhd-single-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Head copy ---- */
.fhd-single-head {
  padding-top: 6px;
}

.fhd-single-title {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.fhd-single-offer {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--fhd-muted);
  margin: 0 0 8px;
}

.fhd-single-promo {
  margin: 0 0 16px;
  font-size: 15px;
}

.fhd-dates {
  margin-top: 8px;
  color: var(--fhd-muted);
  font-size: 14px;
}

/* ---- Buttons / links (updated colors) ---- */
.fhd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--fhd-accent);
  background: var(--fhd-accent);
  color: var(--fhd-accent-ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform .06s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--fhd-shadow-sm);
}

.fhd-btn:hover,
.fhd-btn:focus {
  background: var(--fhd-accent-hover);
  border-color: var(--fhd-accent-hover);
  color: var(--fhd-accent-ink);
}

.fhd-btn:focus-visible {
  outline: 2px solid var(--fhd-accent-hover);
  outline-offset: 2px;
}

.fhd-card .fhd-btn {
  padding: 8px 12px;
  font-size: 14px;
}

/* ---- Content blocks ---- */
.fhd-block {
  margin: clamp(18px, 3vw, 38px) 0;
}

.fhd-block>h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.fhd-rich {
  font-size: 16px;
  line-height: 1.65;
}

.fhd-rich p {
  margin: 0 0 10px;
}

.fhd-rich ul,
.fhd-rich ol {
  padding-left: 1.2em;
}

/* ============================
   Related Offers (cards grid)
   ============================ */
.fhd-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.fhd-grid>.fhd-card {
  grid-column: span 12;
}

@media (min-width: 560px) {
  .fhd-grid>.fhd-card {
    grid-column: span 6;
  }
}

@media (min-width: 900px) {
  .fhd-grid>.fhd-card {
    grid-column: span 3;
  }
}

.fhd-card {
  border: 1px solid var(--fhd-border);
  border-radius: var(--fhd-radius);
  background: var(--fhd-card);
  overflow: hidden;
  box-shadow: var(--fhd-shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease;
}

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

.fhd-thumb {
  display: block;
  background: #f3f4f6;
  overflow: hidden;
}

.fhd-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.fhd-card-body {
  padding: 14px 14px 16px;
}

.fhd-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* ============================
   Discounts Grid (if used elsewhere)
   ============================ */
.fhd-grid-wrap {
  margin-top: 8px;
}

.fhd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.fhd-filter-btn {
  border: 1px solid var(--fhd-border);
  background: #fff;
  color: var(--fhd-text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .06s ease;
}

.fhd-filter-btn:hover {
  transform: translateY(-1px);
}

/* Active & hover use the updated accent colors */
.fhd-filter-btn.is-active {
  background: var(--fhd-accent);
  border-color: var(--fhd-accent);
  color: var(--fhd-accent-ink);
}

.fhd-filter-btn:hover {
  background: var(--fhd-accent-hover);
  border-color: var(--fhd-accent-hover);
  color: var(--fhd-accent-ink);
}

.fhd-search {
  margin: 0 auto;
  margin-bottom: 12px;
  max-width: 400px;
}

.fhd-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--fhd-border);
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.fhd-search-input:focus {
  border-color: var(--fhd-accent);
  box-shadow: 0 0 0 3px rgba(135, 153, 137, 0.2);
  /* using accent color with opacity */
}

/* ============================
   Responsiveness & edge cases
   ============================ */
@media (max-width: 900px) {
  .fhd-single-hero {
    grid-template-columns: 1fr;
  }

  .fhd-single-media {
    min-height: 220px;
  }
}

/* Placeholder if no image */
.fhd-thumb:not(:has(img)) {
  height: 140px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Tighten footer gap directly after content if theme adds spacing */
.fhd-single.container+footer {
  margin-top: 0;
}


/* ===== Feature (image left, details right) ===== */

.fhd-feature {
  margin: 24px 0 40px;
}

.fhd-feature__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  /* image : content ratio */
  align-items: center;
  gap: 28px;
}

.fhd-feature__media {
  margin: 0;
}

.fhd-feature__media-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

.fhd-feature-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Content */
.fhd-feature__content {
  padding: 10px 0;
}

.fhd-feature__headline {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 700;
}

.fhd-feature__desc {
  margin: 0 0 20px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #333;
}

/* Button – matches “Get This Offer” pill look */
.fhd-btn.fhd-feature__btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #6b7f6f;
  /* muted green like screenshot */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .06s ease, filter .2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08);
}

.fhd-btn.fhd-feature__btn:hover,
.fhd-btn.fhd-feature__btn:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Responsive: stack on small screens */
@media (max-width: 860px) {
  .fhd-feature__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fhd-feature__content {
    padding-top: 0;
  }

  .fhd-feature__headline {
    font-size: clamp(20px, 5vw, 28px);
  }
}

.fhd-single-breadcrumb {
  font-size: 0.95rem;
}

.fhd-back-link {
  color: #2271b1;
  text-decoration: underline;
}

.fhd-back-link:hover {
  color: #135e96;
}

.fhd-breadcrumb-sep {
  margin: 0 8px;
  color: #666;
}

.fhd-field {
  margin: 10px 0;
}

.fhd-single-breadcrumb a {
  color: #000;
  text-decoration: none;
}

.fhd-single-breadcrumb a:hover {

  color: #879989;
}

.fhd-single-breadcrumb {
  margin-top: 20px;
}