/* ================================================================
   LEARNING COUPONS — Guides Archive Page Stylesheet
   Extends css/style.css — do not use standalone.
================================================================ */

/* ============================================================
   ARCHIVE HERO
============================================================ */
.archive-hero {
  background: var(--dark-navy);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.archive-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 90% -5%,  rgba(56,178,172,.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at -5% 90%,  rgba(72,187,120,.12) 0%, transparent 65%);
  pointer-events: none;
}
.archive-hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.archive-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  border: 1.5px solid var(--teal);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.archive-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.archive-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 24px;
}
.archive-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ahs-item { text-align: center; }
.ahs-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font-mono);
  line-height: 1;
}
.ahs-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.ahs-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* CTA Box in hero */
.archive-hero-cta-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.ahcb-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  margin: 0 auto 12px;
}
.archive-hero-cta-box strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 6px;
}
.archive-hero-cta-box p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-bottom: 14px;
}
.ahcb-btn { margin-bottom: 14px !important; display: block; }
.ahcb-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
}
.ahcb-coupon code {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: rgba(236,201,75,.12);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ============================================================
   MAIN LAYOUT
============================================================ */
.archive-main { padding: 44px 0 64px; }

/* Single-column centered layout:
   Main guide cards fill the centered column;
   sidebar widgets display below as a compact grid row */
.archive-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.archive-main-col {
  width: 100%;
  min-width: 0;
}
.archive-sidebar-col {
  width: 100%;
  margin: 36px 0 0;
  position: static !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* Make the primary CTA widget span full width */
.ga-sticky-widget {
  grid-column: 1 / -1;
  position: static !important;
}

/* ============================================================
   FILTER BAR
============================================================ */
.archive-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-gray);
}
.afb-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
}
.afb-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.afb-filter-btn {
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-gray);
  background: var(--white);
  color: var(--body-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.afb-filter-btn:hover,
.afb-filter-btn.active {
  background: var(--dark-navy);
  color: var(--white);
  border-color: var(--dark-navy);
}

/* ============================================================
   GUIDE CARDS — FEATURED
============================================================ */
.guide-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  transition: var(--transition);
}
.guide-card-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gc-featured-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.gc-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.guide-card-featured:hover .gc-featured-image img { transform: scale(1.03); }
.gc-featured-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}
.gc-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gc-featured-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.gc-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gc-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tutorial-badge { background: var(--teal);   border: 1.5px solid var(--teal);   color: var(--white); }
.pricing-badge  { background: var(--orange); border: 1.5px solid var(--orange); color: var(--white); }
.mobile-badge   { background: var(--purple); border: 1.5px solid var(--purple); color: var(--white); }
.gc-meta-item {
  font-size: 12px;
  color: #4A5568;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.gc-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.gc-title a:hover { color: var(--teal); }
.gc-excerpt {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}
.gc-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.gc-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--green-dark);
  background: rgba(72,187,120,.08);
  border: 1px solid rgba(72,187,120,.2);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.gc-featured-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.gc-read-btn, .gc-trial-btn { flex-shrink: 0; }

/* ============================================================
   GUIDE CARDS — GRID
============================================================ */
.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.guide-card-regular {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.guide-card-regular:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal); }
.gc-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.gc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.guide-card-regular:hover .gc-image img { transform: scale(1.04); }
.gc-category-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}
.gc-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gc-body .gc-title { font-size: 1rem; margin-bottom: 8px; }
.gc-body .gc-excerpt { font-size: 13px; margin-bottom: 12px; flex: 1; }
.gc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.gc-tag {
  font-size: 11px;
  color: #4A5568;
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  padding: 2px 8px;
  border-radius: 4px;
}
.gc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-gray);
  padding-top: 12px;
  margin-top: auto;
}
.gc-read-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.gc-read-link:hover { color: var(--green-dark); gap: 10px; }
.gc-updated {
  font-size: 11px;
  color: #4A5568;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Hide card when filtered */
.guide-card-regular.hidden { display: none; }

/* ============================================================
   COMING SOON SECTION
============================================================ */
.coming-soon-section {
  margin-bottom: 44px;
}
.cs-header {
  margin-bottom: 22px;
}
.cs-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 10px 0 8px;
}
.cs-header p {
  font-size: 14px;
  color: #4A5568;
  margin: 0;
}
.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.cs-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px dashed var(--border-gray);
  border-radius: var(--radius-md);
  padding: 16px;
  opacity: .8;
  transition: var(--transition);
}
.cs-card:hover { opacity: 1; border-style: solid; box-shadow: var(--shadow-sm); }
.cs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cs-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--light-gray);
  color: #4A5568;
  border: 1px solid var(--border-gray);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cs-card h4 { font-size: 13px; font-weight: 700; color: var(--dark-navy); margin-bottom: 4px; }
.cs-card p { font-size: 12px; color: #4A5568; line-height: 1.5; margin: 0; }

/* Newsletter CTA */
.newsletter-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f0fff4, #e6fffa);
  border: 1px solid #c6f6d5;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.nc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}
.nc-text { flex: 1; }
.nc-text strong { display: block; font-size: 15px; color: var(--dark-navy); margin-bottom: 3px; }
.nc-text p { font-size: 13px; color: var(--body-text); margin: 0; }
.nc-btn { white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   TOPICS INDEX
============================================================ */
.topics-index { margin-bottom: 44px; }
.ti-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-gray);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}
.topic-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.tc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}
.topic-card h3 { font-size: 14px; font-weight: 700; color: var(--dark-navy); margin-bottom: 10px; }
.topic-card ul { list-style: none; padding: 0; margin: 0; }
.topic-card ul li { margin-bottom: 6px; }
.topic-card ul li a {
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.topic-card ul li a:hover { color: var(--green-dark); text-decoration: underline; }
.tc-soon { font-size: 12px; color: #4A5568; }
.tc-soon em { font-style: normal; font-size: 11px; }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.ga-sticky-widget {
  border: 2px solid var(--green);
  box-shadow: 0 4px 20px rgba(72,187,120,.15);
}
.ga-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gray);
}
.ga-widget-header h3 { font-size: 15px; font-weight: 700; color: var(--dark-navy); margin: 0; }
.ga-widget-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 8px;
}
.ga-sticky-widget > p { font-size: 13px; color: var(--body-text); margin-bottom: 12px; line-height: 1.5; }
.ga-coupon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4A5568;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ga-coupon-row code { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--dark-navy); }
.ga-perks {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #4A5568;
}
.ga-perks span { display: flex; align-items: center; gap: 4px; }
.ga-perks .fas { color: var(--green); }

/* All Guides list */
.ga-guide-list { list-style: none; padding: 0; }
.ga-guide-item { margin-bottom: 4px; }
.ga-guide-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}
.ga-guide-item a:hover { background: var(--light-gray); border-color: var(--border-gray); }
.ggl-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tutorial-badge-sm { background: var(--teal);   border: 1.5px solid var(--teal);   color: var(--white); }
.pricing-badge-sm  { background: var(--orange); border: 1.5px solid var(--orange); color: var(--white); }
.mobile-badge-sm   { background: var(--purple); border: 1.5px solid var(--purple); color: var(--white); }
.ga-guide-item a div strong { display: block; font-size: 13px; color: var(--dark-navy); font-weight: 600; }
.ga-guide-item a div span { font-size: 11px; color: #4A5568; }

/* Platform stats grid */
.ga-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gas-item {
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.gas-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-navy);
  font-family: var(--font-mono);
  line-height: 1;
}
.gas-val span { font-size: 13px; font-weight: 500; color: #4A5568; }
.gas-label { font-size: 11px; color: #4A5568; margin-top: 3px; }

/* Coupon list */
.ga-coupon-list { display: flex; flex-direction: column; gap: 8px; }
.gac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gray);
}
.gac-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.gac-info { flex: 1; }
.gac-info strong { display: block; font-size: 11px; color: var(--dark-navy); font-weight: 600; }
.gac-info code { font-size: 11px; color: var(--orange); font-family: var(--font-mono); }
.gac-claim {
  background: var(--dark-navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.gac-claim:hover { background: var(--teal); color: var(--white); }

/* ============================================================
   SECTION LABEL BADGE (reuse from guide.css context)
============================================================ */
.section-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  border: 1.5px solid var(--teal);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.section-label-badge.teal { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ============================================================
   BREADCRUMB  (matches style in pricing.css)
============================================================ */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb ol li {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb ol li::after {
  content: '›';
  margin: 0 7px;
  color: rgba(255,255,255,0.35);
}
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a { color: rgba(255,255,255,0.55); transition: var(--transition); text-decoration: none; }
.breadcrumb ol li a:hover { color: var(--teal); }
.breadcrumb ol li span { color: rgba(255,255,255,0.85); }

/* ============================================================
   ANIMATION KEYFRAMES
============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  /* layout already single-column — only hero adjustment needed */
  .archive-hero-inner { grid-template-columns: 1fr; }
  .archive-hero-cta-box { max-width: 480px; }
}
@media (max-width: 768px) {
  .guide-card-featured { grid-template-columns: 1fr; }
  .gc-featured-image { min-height: 200px; max-height: 240px; }
  .guide-cards-grid { grid-template-columns: 1fr; }
  .cs-cards-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-hero-stats { gap: 14px; }
  .newsletter-cta { flex-direction: column; text-align: center; }
  .nc-btn { width: 100%; text-align: center; }
  .archive-filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .archive-sidebar-col { grid-template-columns: 1fr 1fr; max-width: 100%; }
}
@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr; }
  .archive-sidebar-col { grid-template-columns: 1fr; }
  .ga-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .afb-right { gap: 4px; width: 100%; }
  .afb-filter-btn { padding: 5px 12px; font-size: 12px; }
  .archive-main-col { max-width: 100%; }
}
