/* Offers hub (offers.html) + homepage offers teaser (index.html#offers-teaser).
   Built on the site's existing design tokens from assets/css/main.css
   (--bg, --card, --brand, --brand-2, --accent, --radius, --shadow) so the
   hub reads as CertShield rather than a bolted-on reskin. New tier accent
   colors are additive, not a palette replacement. */

:root{
  --tier-free-accent:#34d399;
  --tier-free-bg:#0c2a22;
  --tier-flash-accent:#FFD54F;
  --tier-flash-bg:#3a2a08;
  --tier-standard-accent:#357ABD;
}

/* ---------------------------------------------------------------- hero */

.offers-hero{
  background:radial-gradient(1200px 420px at 15% -20%, #16356a 0%, #0b1220 60%);
  border:1px solid #204a8c;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 24px;
  margin-top:16px;
}
.offers-hero .eyebrow{
  display:inline-flex;
  font-size:13px;
  color:#b8c9ff;
  background:#132a55;
  border:1px solid #2a57a8;
  border-radius:999px;
  padding:6px 10px;
  margin:0 0 12px;
}
.offers-hero h1{font-size:clamp(26px,3.4vw,40px);margin:0 0 12px;color:#fff;letter-spacing:.2px}
.offers-hero-copy{max-width:78ch;color:#cfe3ff;margin:0 0 14px}
.offers-stat-line{font-size:15px;color:#e8eefc;margin:0 0 8px}
.offers-generated{font-size:12.5px;color:#9db3e6;margin:0}

.offers-instructor-note{
  margin:16px 0;
  padding:14px 16px;
  border-left:3px solid var(--accent,#FFD54F);
  background:#0d1b3a;
  border-radius:0 var(--radius-sm,10px) var(--radius-sm,10px) 0;
}
.offers-instructor-note p{margin:0 0 6px;color:#f3ecd8;font-style:italic;font-size:14.5px;line-height:1.55}
.offers-instructor-note cite{font-style:normal;font-size:12.5px;color:#93a4c4}

/* ------------------------------------------------------------- featured */

.offers-featured{margin-top:22px}
.offers-featured h2{margin:0 0 4px;font-size:20px;color:#fff}
.offers-featured-sub{margin:0 0 12px;color:#93a4c4;font-size:13.5px}
.offers-grid-featured{margin-bottom:0}
.offers-grid-featured .offer-card{border-color:var(--accent,#FFD54F)}

.offers-browse{margin-top:28px}
.offers-browse > h2{margin:0 0 12px;font-size:20px;color:#fff}

/* ------------------------------------------------------------ trust strip */

.offers-trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.trust-chip{
  display:inline-flex;
  align-items:center;
  font-size:13px;
  font-weight:700;
  color:#dbe8ff;
  background:#0f1b37;
  border:1px solid #26487f;
  border-radius:999px;
  padding:8px 14px;
  text-decoration:none;
}
.trust-chip:hover{background:#142b59;text-decoration:none}

/* ---------------------------------------------------------- filter toolbar */

.offers-filter-toolbar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
  padding:12px 0;
  background:rgba(10,16,32,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid #1e2a4d;
}
.offers-filter-toolbar .filter-label{font-size:13px;color:#93a4c4;white-space:nowrap}
.offers-filter-toolbar .filter-input{
  flex:1 1 260px;
  min-width:0;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #2a57a8;
  background:#0f1a33;
  color:#e8eefc;
  font-size:15px;
}
.offers-filter-toolbar .filter-input:focus{outline:2px solid var(--brand,#357ABD);outline-offset:1px}
.offers-filter-toolbar .result-count{margin:0;font-size:13px;color:#93a4c4;white-space:nowrap}

/* ------------------------------------------------------------ category chips */

.category-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 4px;
}
.category-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  color:#dbe8ff;
  background:#0f1b37;
  border:1px solid #26487f;
  border-radius:999px;
  padding:7px 12px;
  cursor:pointer;
}
.category-chip:hover{background:#142b59}
.category-chip.is-active{
  background:linear-gradient(180deg,#3b82f6,#1d4ed8);
  border-color:transparent;
  color:#fff;
}
.category-chip .chip-count{
  font-size:11px;
  font-weight:900;
  color:#93a4c4;
  background:#0b1220;
  border-radius:999px;
  padding:1px 6px;
}
.category-chip.is-active .chip-count{color:#dbe8ff;background:rgba(255,255,255,.15)}

/* --------------------------------------------------------------- card grid */

.offers-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:16px;
  margin-top:18px;
  margin-bottom:80px; /* clears the sticky mobile bar */
}
.offer-card{
  background:var(--card,#0f1a33);
  border:1px solid #1e2a4d;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.offer-card[data-status="ended"]{opacity:.55}
.offer-card-meta{margin:0;font-size:12.5px;color:#93a4c4;text-transform:uppercase;letter-spacing:.4px}
.offer-card-title{margin:0;font-size:17px;color:#fff;line-height:1.35}
.offer-card-status{margin:0;font-size:12.5px;font-weight:700;color:#b8c9ff;display:flex;align-items:center;gap:6px}
.offer-card[data-status="live"] .offer-card-status{color:var(--tier-free-accent)}
.offer-card[data-status="live"] .offer-card-status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--tier-free-accent);
  box-shadow:0 0 0 0 rgba(52,211,153,.6);
  animation:offer-live-pulse 2s infinite;
}
@keyframes offer-live-pulse{
  0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}
  70%{box-shadow:0 0 0 6px rgba(52,211,153,0)}
  100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}
}
@media (prefers-reduced-motion: reduce){
  .offer-card[data-status="live"] .offer-card-status::before{animation:none}
}
.offer-card-link{align-self:flex-start;margin-top:4px}

.offer-tiers,.offer-tiers-extra{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.offer-tier{
  border-radius:var(--radius-sm,10px);
  border:1px solid #26487f;
  padding:10px 12px;
  background:#0c1933;
}
.offer-tier-badge{margin:0 0 4px;font-size:12px;font-weight:900;letter-spacing:.3px;text-transform:uppercase}
.offer-tier-detail{margin:0;font-size:13.5px;color:#dbe8ff}
.offer-tier-expiry{margin:2px 0 8px;font-size:12px;color:#93a4c4}
.offer-tier .offer-cta{width:100%;padding:9px 12px;font-size:13.5px}

.offer-more-tiers{margin-top:2px}
.offer-more-tiers summary{
  cursor:pointer;
  list-style:none;
  font-size:12.5px;
  font-weight:700;
  color:#7fb1ff;
  padding:4px 0;
}
.offer-more-tiers summary::-webkit-details-marker{display:none}
.offer-more-tiers summary::before{content:"▸ ";display:inline-block;transition:transform .15s ease}
.offer-more-tiers[open] summary::before{transform:rotate(90deg)}
.offer-more-tiers .offer-tiers-extra{margin-top:8px}

.offer-tier.tier-flash-free,
.offer-tier.tier-community-free{
  background:var(--tier-free-bg);
  border-color:var(--tier-free-accent);
}
.offer-tier.tier-flash-free .offer-tier-badge,
.offer-tier.tier-community-free .offer-tier-badge{color:var(--tier-free-accent)}
.offer-tier.tier-flash-free .offer-cta,
.offer-tier.tier-community-free .offer-cta{
  background:linear-gradient(180deg,#34d399,#0f9c6f);
  border:0;
  color:#04170f;
}

.offer-tier.tier-flash-price{
  background:var(--tier-flash-bg);
  border-color:var(--tier-flash-accent);
}
.offer-tier.tier-flash-price .offer-tier-badge{color:var(--tier-flash-accent)}
.offer-tier.tier-flash-price .offer-cta{
  background:linear-gradient(180deg,#FFD54F,#e0a800);
  border:0;
  color:#241b00;
}

.offer-tier.tier-standard-price{
  border-color:var(--tier-standard-accent);
}
.offer-tier.tier-standard-price .offer-tier-badge{color:#7fb1ff}

.empty-state{color:#93a4c4;padding:24px 0;text-align:center}

/* -------------------------------------------------------------------- faq */

.offers-faq{margin-top:32px;margin-bottom:40px}
.offers-faq h2{margin:0 0 12px;font-size:20px;color:#fff}
.offers-faq .faq-item{
  margin-top:10px;
  background:var(--card,#0f1a33);
  border:1px solid #26487f;
  border-radius:var(--radius-sm,10px);
  padding:12px 16px;
}
.offers-faq .faq-item summary{cursor:pointer;font-weight:700;color:#fff}
.offers-faq .faq-item p{margin:8px 0 0;color:#cfe1ff;font-size:14px;line-height:1.6}

/* ---------------------------------------------------------- sticky mobile bar */

.sticky-offers-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1100;
  background:#081327e6;
  border-top:1px solid #2a4b8f;
  backdrop-filter:blur(6px);
}
@media(max-width:760px){.sticky-offers-bar{bottom:64px}}
.sticky-offers-inner{
  max-width:var(--max,1200px);
  margin:0 auto;
  padding:10px 20px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.sticky-offers-inner span{font-size:13px;color:#cfe3ff}

@media(max-width:700px){
  .offers-grid{grid-template-columns:1fr}
  .offers-filter-toolbar{flex-direction:column;align-items:stretch}
}

/* --------------------------------------------------- homepage offers teaser */

.offers-teaser{
  background:radial-gradient(900px 280px at 20% -40%, #16356a 0%, #0b1220 60%);
  border:1px solid #204a8c;
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.offers-teaser-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.offers-teaser-title{margin:12px 0 6px;font-size:22px;color:#fff}
.offers-teaser-desc{margin:0 0 12px;color:#cfe3ff}
.offers-teaser-actions{margin-top:10px}
.offers-teaser-bullets{margin:14px 0 0;padding-left:18px;color:#b8c9ff;font-size:13.5px;line-height:1.6}
