/* ═══════════════════════════════════════════════════════
   CASHFRY HOMEPAGE STYLES
   File: /wp-content/themes/palmyrah/css/cf-homepage.css
   Loaded after custom.css to take precedence.
   ═══════════════════════════════════════════════════════ */
 
/* ─── Design tokens ─── */
.cf-home-section {
  --cf-green: #27AE60;
  --cf-green-dark: #1f9251;
  --cf-dark: #1A2233;
  --cf-text: #2C3345;
  --cf-text-muted: #6B7280;
  --cf-border: #E5E8ED;
  --cf-shadow-sm: 0 1px 3px rgba(26,34,51,0.06);
  --cf-shadow-md: 0 6px 20px rgba(26,34,51,0.12);
  --cf-radius: 10px;
  --cf-radius-lg: 14px;
  --cf-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--cf-font);
}
.cf-home-section *,
.cf-home-section *::before,
.cf-home-section *::after { box-sizing: border-box; }
 
/* ═══════════════════════════════════════════════
   HERO H1 (white background stripe)
   ═══════════════════════════════════════════════ */
.cf-hero-heading {
  background: #fff;
  text-align: center;
  padding: 12px 0;
  margin: 0 0 14px;
  border-radius: 8px;
  border: 1px solid var(--cf-border);
}
.cf-hero-heading h1 {
  font-family: var(--cf-font);
  font-size: 18px; font-weight: 700;
  color: var(--cf-dark); letter-spacing: -0.3px;
  line-height: 1.3; margin: 0;
}
 
/* ═══════════════════════════════════════════════
   SECTION HEADER (used for Stores + Categories)
   ═══════════════════════════════════════════════ */
.cf-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 14px 0 14px;
}
.cf-section-head h2 {
  font-family: var(--cf-font);
  font-size: 22px; font-weight: 800;
  color: var(--cf-dark); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.cf-section-head h2::before {
  content: ''; width: 4px; height: 22px;
  background: var(--cf-green); border-radius: 2px;
}
.cf-view-all {
  font-size: 14px; font-weight: 700; color: var(--cf-green);
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.cf-view-all:hover {
  gap: 8px;
  color: var(--cf-green-dark);
  text-decoration: none;
}
 
/* ═══════════════════════════════════════════════
   POPULAR STORES — Card Grid
   ═══════════════════════════════════════════════ */
.cf-stores-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cf-store-card {
  background: #fff;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  padding: 16px 12px 14px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none;
  color: inherit;
}
.cf-store-card:hover {
  border-color: var(--cf-green);
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.cf-store-logo-wrap {
  /* Sprite spans live inside this wrapper — they keep their existing styles from custom.css */
  height: 50px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.cf-store-name {
  font-size: 13px; font-weight: 700;
  color: var(--cf-dark); margin-bottom: 3px;
}
.cf-store-count {
  font-size: 11px; font-weight: 600;
  color: var(--cf-green);
  display: inline-flex; align-items: center; gap: 4px;
}
.cf-store-count::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cf-green); display: inline-block;
}
 
/* ═══════════════════════════════════════════════
   SHOP BY CATEGORY — Photo Cards (4)
   ═══════════════════════════════════════════════ */
.cf-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cf-cat-card {
  position: relative;
  border-radius: var(--cf-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  transition: all 0.3s ease;
  box-shadow: var(--cf-shadow-sm);
  text-decoration: none;
}
.cf-cat-card:hover {
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-4px);
  text-decoration: none;
}
.cf-cat-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.cf-cat-card:hover .cf-cat-img { transform: scale(1.08); }
 
/* Background photos */
.cf-cat-fashion .cf-cat-img     { background-image: url('../img/categories/cat-fashion.jpg'); }
.cf-cat-mobile .cf-cat-img      { background-image: url('../img/categories/cat-mobile.jpg'); }
.cf-cat-appliances .cf-cat-img  { background-image: url('../img/categories/cat-appliances.jpg'); }
.cf-cat-travel .cf-cat-img      { background-image: url('../img/categories/cat-travel.jpg'); }
 
/* Color-tinted gradient overlays */
.cf-cat-overlay { position: absolute; inset: 0; }
.cf-cat-fashion .cf-cat-overlay {
  background: linear-gradient(to top,
    rgba(155,28,90,0.92) 0%, rgba(155,28,90,0.45) 45%, rgba(155,28,90,0.05) 100%);
}
.cf-cat-mobile .cf-cat-overlay {
  background: linear-gradient(to top,
    rgba(20,55,120,0.92) 0%, rgba(20,55,120,0.45) 45%, rgba(20,55,120,0.05) 100%);
}
.cf-cat-appliances .cf-cat-overlay {
  background: linear-gradient(to top,
    rgba(155,55,15,0.92) 0%, rgba(155,55,15,0.45) 45%, rgba(155,55,15,0.05) 100%);
}
.cf-cat-travel .cf-cat-overlay {
  background: linear-gradient(to top,
    rgba(10,80,90,0.92) 0%, rgba(10,80,90,0.45) 45%, rgba(10,80,90,0.05) 100%);
}
 
.cf-cat-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 20px 20px;
  color: #fff;
}
.cf-cat-label {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 100px;
  margin-bottom: 10px;
}
.cf-cat-name {
  font-family: var(--cf-font);
  font-size: 22px; font-weight: 800;
  color: #fff; margin: 0 0 4px 0;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.cf-cat-count {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.cf-cat-cta {
  font-size: 12px; font-weight: 700;
  color: #fff;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.2s ease;
}
.cf-cat-card:hover .cf-cat-cta {
  background: var(--cf-green);
  border-color: var(--cf-green);
  gap: 8px;
}
 
/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cf-stores-grid { grid-template-columns: repeat(4, 1fr); }
  .cf-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-hero-heading h1 { font-size: 16px; }
}
@media (max-width: 640px) {
  .cf-stores-grid { grid-template-columns: repeat(3, 1fr); }
  .cf-cats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cf-hero-heading { padding: 10px 16px; margin: 10px 0; }
  .cf-hero-heading h1 { font-size: 14px; }
  .cf-section-head h2 { font-size: 18px; }
  .cf-cat-name { font-size: 18px; }
}
@media (max-width: 420px) {
  .cf-stores-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-hero-heading h1 { font-size: 13px; }
}
/* ═══════════════════════════════════════════════
   HOMEPAGE BANNER / SLIDER ADJUSTMENTS
   ═══════════════════════════════════════════════ */

/* Reduce gap between header and banner */
#main-slider {
  padding-top: 10px !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#main-slider .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#main-slider .row.centerdiv {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#main-slider .main-slider {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* ═══ HOT SHOPPING OFFERS ═══ */

.cf-offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cf-offer-card {
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  padding: 20px 18px 14px;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
  min-height: 270px;
  position: relative;
  overflow: hidden;
}
.cf-offer-card:hover {
  border-color: var(--cf-green);
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-3px);
}

.cf-offer-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #FF8050;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px; font-weight: 800;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 6px rgba(255,128,80,0.25);
}

.cf-offer-logo {
  height: 40px; margin-bottom: 14px;
  display: flex; align-items: center;
  max-width: 100px;
}
.cf-offer-logo img {
  max-height: 34px; max-width: 100px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}

/* 2-line truncation; right padding reserved for badge */
.cf-offer-title {
  font-family: var(--cf-font);
  font-size: 14px; font-weight: 700;
  color: var(--cf-dark); line-height: 1.4;
  margin: 0 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 60px;
}

/* Both buttons unified: green gradient + arrow */
.cf-offer-btn,
.cf-offer-btn.code {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--cf-green) 0%, var(--cf-green-dark) 100%);
  color: #fff;
  padding: 11px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cf-offer-btn:hover,
.cf-offer-btn.code:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39,174,96,0.3);
  color: #fff;
  text-decoration: none;
}
.cf-offer-btn::after,
.cf-offer-btn.code::after {
  content: '→';
  font-size: 14px;
  font-weight: 700;
}

.cf-offer-seeall {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--cf-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--cf-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.3;
}
.cf-offer-seeall:hover {
  color: var(--cf-green);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .cf-offers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cf-offers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cf-offer-card { padding: 16px 14px 12px; min-height: 250px; }
  .cf-offer-badge { top: 10px; right: 10px; font-size: 11px; padding: 4px 10px; }
  .cf-offer-title { padding-right: 0; }
}
@media (max-width: 420px) {
  .cf-offers-grid { grid-template-columns: 1fr; }
  .cf-offer-card { min-height: 0; }
}
/* ═══ TOP COUPONS & DEALS (TABBED) ═══ */

.cf-tabbed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 20px;
}
.cf-tabbed-head h2 {
  font-family: var(--cf-font);
  font-size: 22px; font-weight: 800;
  color: var(--cf-dark); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.cf-tabbed-head h2::before {
  content: ''; width: 4px; height: 22px;
  background: var(--cf-green); border-radius: 2px;
}

.cf-tabs-bar {
  display: flex; gap: 6px;
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: 100px;
  padding: 6px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cf-tabs-bar::-webkit-scrollbar { display: none; }

.cf-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 700;
  color: var(--cf-text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
  font-family: var(--cf-font);
}
.cf-tab:hover {
  color: var(--cf-dark);
  background: var(--cf-bg);
}
.cf-tab.active {
  background: linear-gradient(135deg, var(--cf-green) 0%, var(--cf-green-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}
.cf-tab svg {
  width: 16px; height: 16px;
  stroke-width: 2;
}

/* Panel fade-in animation */
.cf-tab-panel { display: none; }
.cf-tab-panel.active {
  display: block;
  animation: cf-fade-in 0.3s ease;
}
@keyframes cf-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .cf-tabs-bar { padding: 4px; }
  .cf-tab { padding: 8px 12px; font-size: 12px; gap: 6px; }
  .cf-tab svg { width: 14px; height: 14px; }
  .cf-tabbed-head h2 { font-size: 18px; }
}
@media (max-width: 480px) {
  .cf-tab { padding: 7px 10px; }
}
/* Spacing between consecutive homepage sections */
.cf-home-section + .cf-home-section {
  margin-top: 20px;
}
/* ═══ DEAL OF THE DAY ═══ */

.cf-deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cf-deal-card {
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.cf-deal-card:hover {
  border-color: var(--cf-green);
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Discount ribbon (top-left) */
.cf-deal-ribbon {
  position: absolute;
  top: 12px; left: 0;
  background: #E74C3C;
  color: #fff;
  padding: 6px 12px 6px 14px;
  font-size: 12px; font-weight: 800;
  letter-spacing: -0.3px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(231,76,60,0.3);
  z-index: 2;
}
.cf-deal-ribbon::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 0;
  border-top: 6px solid #a02c20;
  border-left: 6px solid transparent;
}

/* Image area — hosts existing sprite span */
.cf-deal-image {
  background: #fafbfc;
  padding: 18px;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.cf-deal-image span,
.cf-deal-image img {
  transition: transform 0.4s ease;
  max-width: 100%;
  max-height: 100%;
}
.cf-deal-card:hover .cf-deal-image span,
.cf-deal-card:hover .cf-deal-image img {
  transform: scale(1.08);
}

/* Card body */
.cf-deal-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column;
  flex: 1;
}
.cf-deal-title {
  font-family: var(--cf-font);
  font-size: 14px; font-weight: 700;
  color: var(--cf-dark);
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* Price row */
.cf-deal-price {
  display: flex; align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.cf-deal-price-sale {
  font-size: 20px; font-weight: 800;
  color: var(--cf-dark);
  letter-spacing: -0.5px;
}
.cf-deal-price-old {
  font-size: 13px; font-weight: 500;
  color: var(--cf-text-muted);
  text-decoration: line-through;
}

/* Savings callout */
.cf-deal-savings {
  font-size: 12px;
  font-weight: 700;
  color: var(--cf-green);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.cf-deal-savings::before {
  content: '↓';
  font-size: 13px;
}

/* CTA button */
.cf-deal-btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--cf-green) 0%, var(--cf-green-dark) 100%);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cf-deal-card:hover .cf-deal-btn {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}
.cf-deal-btn::after {
  content: '→';
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .cf-deals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cf-deals-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cf-deal-image { height: 150px; padding: 14px; }
  .cf-deal-price-sale { font-size: 18px; }
}
@media (max-width: 420px) {
  .cf-deals-grid { grid-template-columns: 1fr; }
}
/* ═══ TOP CATEGORIES ═══ */

.cf-topcats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cf-topcat-card {
  background: #fff;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  padding: 22px 12px 18px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.cf-topcat-card:hover {
  border-color: var(--cf-green);
  background: var(--cf-green-light);
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.cf-topcat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cf-bg);
  border-radius: 50%;
  color: var(--cf-dark);
  transition: all 0.2s ease;
}
.cf-topcat-card:hover .cf-topcat-icon {
  background: var(--cf-green);
  color: #fff;
  transform: scale(1.1);
}
.cf-topcat-icon svg {
  width: 22px;
  height: 22px;
}

.cf-topcat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cf-dark);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .cf-topcats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .cf-topcats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cf-topcat-card { padding: 18px 10px 14px; }
}
@media (max-width: 420px) {
  .cf-topcats-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ═══ HOW TO SAVE ═══ */

.cf-howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.cf-step-card {
  background: #fff;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  padding: 28px 22px 26px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 230px;
}
.cf-step-card:hover {
  border-color: var(--cf-green);
  box-shadow: var(--cf-shadow-md);
  transform: translateY(-4px);
}

/* Step number badge (top-center) */
.cf-step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cf-green) 0%, var(--cf-green-dark) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(39,174,96,0.3);
  border: 3px solid #fff;
  z-index: 3;
}

/* Icon in a circle */
.cf-step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cf-green-light);
  border-radius: 50%;
  color: var(--cf-green);
  margin: 20px 0 14px;
  transition: all 0.25s ease;
}
.cf-step-card:hover .cf-step-icon {
  background: var(--cf-green);
  color: #fff;
  transform: scale(1.08);
}
.cf-step-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.cf-step-title {
  font-family: var(--cf-font);
  font-size: 15px;
  font-weight: 800;
  color: var(--cf-dark);
  margin: 0 0 6px;
  line-height: 1.3;
}
.cf-step-desc {
  font-size: 13px;
  color: var(--cf-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Connecting arrow between cards (desktop only) */
.cf-step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -18px;
  width: 20px;
  height: 2px;
  background: var(--cf-border);
  transform: translateY(-50%);
  z-index: 1;
}
.cf-step-card:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--cf-border);
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

/* SEO content card below */
.cf-howto-content {
  background: #fff;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  padding: 28px 32px;
  margin-top: 36px;
}
.cf-howto-content h3 {
  font-family: var(--cf-font);
  font-size: 18px;
  font-weight: 800;
  color: var(--cf-dark);
  margin: 0 0 14px;
}
.cf-howto-content p {
  font-size: 14px;
  color: var(--cf-text);
  line-height: 1.7;
  margin: 0 0 12px;
}
.cf-howto-content p:last-child {
  margin-bottom: 0;
}
.cf-howto-content strong {
  color: var(--cf-dark);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .cf-howto-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  /* Hide arrows on 2-col layout (they'd point wrongly) */
  .cf-step-card:nth-child(2n)::after,
  .cf-step-card:nth-child(2n)::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .cf-howto-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cf-step-card::after,
  .cf-step-card::before {
    display: none;
  }
  .cf-howto-content {
    padding: 22px 20px;
  }
}
/* ═══ FOOTER ═══ */

.cf-footer {
  background: #1A2233;
  color: rgba(255,255,255,0.7);
  font-family: var(--cf-font);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 60px;
}
.cf-footer .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
}

.cf-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 56px 0 40px;
}

/* About column */
.cf-footer-logo {
  font-family: var(--cf-font);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.cf-footer-logo .accent { color: var(--cf-green); }

.cf-footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.cf-footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cf-footer-stat {
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.cf-footer-stat strong {
  color: var(--cf-green);
  font-weight: 800;
}

/* Column titles */
.cf-footer-title {
  font-family: var(--cf-font);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 8px;
}
.cf-footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--cf-green);
  border-radius: 1px;
}

/* Link columns */
.cf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-footer-links li {
  margin-bottom: 10px;
}
.cf-footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
  display: inline-block;
}
.cf-footer-links a:hover {
  color: var(--cf-green);
  text-decoration: none;
}
.cf-footer-links .view-all {
  color: var(--cf-green);
  font-weight: 700;
  font-size: 13px;
}
.cf-footer-links .view-all::after {
  content: ' →';
}

/* Newsletter */
.cf-footer-newsletter-desc {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.cf-footer-newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px;
  transition: border-color 0.2s ease;
  margin-bottom: 24px;
}
.cf-footer-newsletter-form:focus-within {
  border-color: var(--cf-green);
}
.cf-footer-newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--cf-font);
  min-width: 0;
}
.cf-footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.cf-footer-newsletter-form button {
  background: var(--cf-green);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--cf-font);
}
.cf-footer-newsletter-form button:hover {
  background: var(--cf-green-dark);
}

/* Social icons */
.cf-footer-social-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.cf-footer-social {
  display: flex;
  gap: 10px;
}
.cf-footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s ease;
  text-decoration: none;
}
.cf-footer-social a:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
/* Brand-colored hover per platform */
.cf-footer-social a.s-facebook:hover  { background: #1877F2; }
.cf-footer-social a.s-twitter:hover   { background: #000000; }
.cf-footer-social a.s-instagram:hover { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.cf-footer-social a.s-linkedin:hover  { background: #0A66C2; }
.cf-footer-social a.s-rss:hover       { background: #F26522; }
.cf-footer-social svg {
  width: 16px;
  height: 16px;
}

/* Bottom bar */
.cf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}
.cf-footer-copy {
  color: rgba(255,255,255,0.5);
}
.cf-footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cf-footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cf-footer-bottom-links a:hover {
  color: var(--cf-green);
  text-decoration: none;
}

/* SEO content block (homepage only) */
.cf-footer-seo {
  background: #F5F6F8;
  padding: 48px 0;
  font-family: var(--cf-font);
  border-top: 1px solid var(--cf-border);
}
.cf-footer-seo .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
}
.cf-footer-seo h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--cf-dark);
  margin: 0 0 14px;
}
.cf-footer-seo h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--cf-dark);
  margin: 24px 0 10px;
}
.cf-footer-seo p {
  font-size: 14px;
  color: var(--cf-text);
  line-height: 1.7;
  margin: 0 0 12px;
}
.cf-footer-seo a {
  color: var(--cf-green);
  text-decoration: none;
  font-weight: 600;
}
.cf-footer-seo a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .cf-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .cf-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 30px;
  }
  .cf-footer .container,
  .cf-footer-seo .container {
    padding: 0 20px;
  }
  .cf-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cf-footer-bottom-links {
    justify-content: center;
  }
  .cf-footer-seo { padding: 36px 0; }
  .cf-footer-seo h2 { font-size: 18px; }
}