.ahb-hero-section {
  text-align: center;
}

.ahb-featured-topics-section .ahb-silo-card,
.ahb-top-guides-section .ahb-guide-card {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.ahb-lead-magnet-section {
  background: linear-gradient(135deg, #f5f9ff, #eef7ff);
}

.ahb-hero-section .wp-block-image img {
  border-radius: 12px;
}

.ahb-silo-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  text-align: left;
}

.ahb-silo-card .ahb-topic-icon img {
  max-width: 100%;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ahb-guide-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.ahb-guide-card .ahb-guide-cta .wp-block-button__link {
  font-weight: 600;
}

/* Quick start bar styling */
.ahb-quickstart-bar {
  margin-top: -10px; /* gently tuck it under the hero */
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Label "Quick start:" */
.ahb-quickstart-bar .ahb-quickstart-label {
  font-size: 1.2rem;      /* bigger than default */
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

/* Pills */
.ahb-quickstart-bar .ahb-quickstart-pill .wp-block-button__link {
  border-radius: 999px;
  padding: 10px 24px;      /* slightly taller + wider */
  font-size: 1.05rem;      /* a touch bigger */
  font-weight: 600;
}

.ahb-quickstart-bar .wp-block-buttons {
  flex-wrap: wrap;
}


/* Hero heading + text */
.ahb-hero-section h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.ahb-hero-section p.has-medium-font-size {
  font-size: 1rem;
  max-width: 540px;
}

/* Topic cards */
.ahb-silo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.ahb-silo-card p {
  font-size: 0.95rem;
}


.ahb-about-tagline {
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 14px;
}

.ahb-about-tagline a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sticky mobile CTA bar */
.ahb-sticky-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: #0f63d8; /* tweak to match Astra primary if needed */
  color: #fff;
  display: none;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.18);
}

.ahb-sticky-mobile-cta.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ahb-sticky-mobile-cta a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.ahb-sticky-mobile-cta__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  margin-left: 12px;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 783px) {
  .ahb-sticky-mobile-cta {
    display: none !important;
  }
}
/* Top 3 Picks strip */
.ahb-top-picks-section .ahb-top-pick-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 16px;
  height: 100%;
}

.ahb-top-picks-section .ahb-top-pick-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.ahb-top-picks-section .ahb-top-pick-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.ahb-top-picks-section .ahb-top-pick-link-wrap {
  margin-top: auto;
}

.ahb-top-picks-section .ahb-top-pick-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mini trust row under hero */
.ahb-trust-row {
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  background: #ffffff;
}

.ahb-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 0.85rem;
  margin: 0;
  padding-left: 0;
}

.ahb-trust-list li {
  list-style: none;
}

.ahb-trust-list li::before {
  content: "✓ ";
  color: #15803d;
  font-weight: 600;
}

@media (max-width: 600px) {
  .ahb-trust-list {
    justify-content: flex-start;
  }
}



/* === LATEST ARTICLES – custom flex grid === */

/* Outer container: flex row with wrapping */
.ahb-latest-posts-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

/* Each card: 3 columns on desktop */
.ahb-latest-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  box-sizing: border-box;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .ahb-latest-card {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

/* Mobile: 1 column */
@media (max-width: 700px) {
  .ahb-latest-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Image at top of card */
.ahb-latest-card__thumb {
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
}

.ahb-latest-card__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Title / excerpt / CTA */
.ahb-latest-card__title {
  font-size: 1rem;
  margin: 0 0 6px;
}

.ahb-latest-card__title a {
  text-decoration: none;
}

.ahb-latest-card__excerpt {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ahb-latest-card__more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}


/* === Top 3 Affiliate Products strip === */

.ahb-aff-products-section {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #f8fafc;
}

.ahb-aff-products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ahb-aff-products-heading {
  text-align: center;
  font-size: 2rem;
	margin-bottom:20px;
  position:relative;
}

.ahb-aff-products-heading::after {
  content:'';
  display:block;
  width:80px;
  height:3px;
  margin:10px auto 0;
  border-radius:999px;
  background:#ff9900; /* same as CTA */
}

.ahb-aff-products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ahb-aff-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  padding:16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 1024px) {
  .ahb-aff-card {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

@media (max-width: 700px) {
  .ahb-aff-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.ahb-aff-card__thumb {
  margin-bottom: 12px;
}

.ahb-aff-card__image {
  max-height: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ahb-aff-card__title {
  font-size: 1.1rem;
  margin: 8px 0;
}

.ahb-aff-card__spec {
  margin: 4px 0;
  font-size: 0.95rem;
}

.ahb-aff-card__desc {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.ahb-aff-card__cta {
  margin-top: auto;
}

.ahb-aff-card__button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ff9900;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* Badge for "Best Overall", "Best Budget", etc. */
.ahb-aff-card__badge {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}

/* Make cards equal height in the strip */
.ahb-aff-products-grid {
  align-items: stretch;
}

.ahb-aff-card {
  height: 100%;
}

/* Clamp description to one line so CTAs line up */
.ahb-aff-card__desc {
  font-size: 0.9rem;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 1;       /* 1 line visible */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.4em;           /* reserve space for one line */
}

/* Micro-trust note under the grid */
.ahb-aff-products-note {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 14px;
}

/* Remove underline from Top 3 products CTA buttons */
.ahb-aff-card__button,
.ahb-aff-card__button:hover,
.ahb-aff-card__button:focus,
.ahb-aff-card__button:active {
  text-decoration: none !important;
}

/* Latest Articles – override Astra link styling inside our section */
body .ahb-latest-posts-section .ahb-latest-posts-grid a {
  text-decoration: none !important;
  box-shadow: none !important;   /* Astra uses this as "underline" */
  border-bottom: none !important;
}

/* Optional: softer hover instead of underline */
body .ahb-latest-posts-section .ahb-latest-posts-grid a:hover {
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
  opacity: 0.9;
}

/* Top 3 Picks for You – remove underlines / Astra link shadows */
body .ahb-top-picks-section a {
  text-decoration: none !important;
  box-shadow: none !important;   /* Astra's fake underline */
  border-bottom: none !important;
}

/* Optional hover style */
body .ahb-top-picks-section a:hover {
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
  opacity: 0.9;
}



/* === Next Step card thumbnails (featured image + fallback icon) === */
.ahb-card-thumb {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 12px 0;
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ahb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ahb-card-thumb--fallback {
  color: rgba(17,24,39,0.55);
}

.ahb-card-thumb--fallback .ahb-fallback-icon {
  width: 62px;
  height: 62px;
}

/* Make the "Choose Your Next Step" cards align nicely */
.ahb-nextstep-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ahb-nextstep-card .wp-block-buttons {
  margin-top: auto;
}

.ahb-nextstep-card h3 {
  margin-top: 0;
}

/* Starter Guides grid (one post per hub category) */
.ahb-starter-guides-grid {
  margin-top: 16px;
}

.ahb-starter-badge {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}

/* Optional: extra row spacing if Astra compresses the 2-row grids */
.ahb-starter-guides-grid {
  row-gap: 32px;
}

/* === Equal-height cards + bottom-aligned CTAs === */

/* Make Gutenberg columns stretch each card to equal height */
.ahb-featured-topics-section .wp-block-columns,
.ahb-top-guides-section .wp-block-columns,
.ahb-top-picks-section .wp-block-columns {
  align-items: stretch;
}

/* Each column becomes a flex container so the card can fill it */
.ahb-featured-topics-section .wp-block-column,
.ahb-top-guides-section .wp-block-column,
.ahb-top-picks-section .wp-block-column {
  display: flex;
}

/* Core card layout: full-height flex columns */
.ahb-silo-card,
.ahb-guide-card,
.ahb-top-picks-section .ahb-top-pick-card,
.ahb-aff-card,
.ahb-latest-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Make the flex grids stretch cards vertically */
.ahb-aff-products-grid,
.ahb-latest-posts-grid {
  align-items: stretch;
}

/* Push CTA / final row to the bottom of the card */
.ahb-guide-card .wp-block-buttons,
.ahb-top-picks-section .ahb-top-pick-link-wrap,
.ahb-aff-card__cta,
.ahb-latest-card__more {
  margin-top: auto;
}

.ahb-silo-card a.ahb-topic-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ahb-silo-card a.ahb-topic-card-link:hover {
  text-decoration: none;
}

