/* AI4Writers Homepage Plugin — frontend.css v1.0.7 */
/* All selectors prefixed #ai4wh-page to beat Elementor global styles */

/* ── RESET ── */
#ai4wh-page,
#ai4wh-page * {
  box-sizing: border-box !important;
}
body.ai4wh-homepage {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

#ai4wh-page {
  display: block !important;
  position: relative !important;
  flex: 1 0 auto !important;
  min-height: auto !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #111 !important;
  background: #fff !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 0 4rem 0 !important;
  width: 100% !important;
  overflow-x: clip !important;
  clear: both !important;
}
/* Inner content max-width wrapper — used by sections that need side breathing room */
.ai4wh-inner {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  width: 100% !important;
}
#ai4wh-page a {
  text-decoration: none !important;
  color: inherit !important;
}
/* Neutralise Elementor's p override */
#ai4wh-page p,
#ai4wh-page li,
#ai4wh-page span {
  font-size: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
}
/* Prevent theme pseudo-element bullets */
#ai4wh-page *::before,
#ai4wh-page *::after {
  content: none !important;
}
/* Inline SVG icon spans — restore content:none override selectively */
#ai4wh-page .ai4wh-icon {
  display: inline-flex !important;
  align-items: center !important;
  width: 1em !important;
  height: 1em !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
#ai4wh-page .ai4wh-icon svg {
  width: 100% !important;
  height: 100% !important;
}

/* ── NAV ── */
.ai4wh-nav {
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
  padding: 0 !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
}
.ai4wh-nav > * {
  /* nav children laid out inside the inner wrapper */
}
.ai4wh-nav-inner {
  max-width: 1280px !important;
  width: 100% !important;
  padding: 0 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
}
.ai4wh-nav-logo {
  font-weight: 900 !important;
  font-size: 18px !important;
  letter-spacing: -.5px !important;
  color: #111 !important;
  display: flex !important;
  align-items: center !important;
}
.ai4wh-nav-logo em {
  color: #16ADAF !important;
  font-style: normal !important;
}
.ai4wh-nav-center {
  display: flex !important;
  align-items: center !important;
  gap: 1.75rem !important;
}
.ai4wh-nav-center a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #444 !important;
  transition: color .15s !important;
}
.ai4wh-nav-center a:hover {
  color: #16ADAF !important;
}
.ai4wh-nav-badge {
  background: #16ADAF !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-left: 4px !important;
  letter-spacing: .04em !important;
  vertical-align: middle !important;
  display: inline-block !important;
}
.ai4wh-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: .75rem !important;
}
.ai4wh-nav-login {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #555 !important;
  padding: 7px 14px !important;
  transition: color .15s !important;
}
.ai4wh-nav-login:hover { color: #16ADAF !important; }
.ai4wh-nav-cta {
  background: #16ADAF !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  transition: background .15s !important;
  display: inline-block !important;
}
.ai4wh-nav-cta:hover { background: #128e90 !important; }

/* ── HERO ── */
.ai4wh-hero {
  background: #f5fafa !important;
  padding: 4rem 0 0 !important;
  overflow: hidden !important;
  position: relative !important;
}
.ai4wh-hero::before {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 55% !important;
  height: 100% !important;
  background: radial-gradient(ellipse 80% 70% at 80% 30%, #d0f0f0 0%, transparent 70%) !important;
  pointer-events: none !important;
}
.ai4wh-hero-left {
  padding-bottom: 3rem !important;
  position: relative !important;
  z-index: 2 !important;
}
.ai4wh-hero-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: #16ADAF !important;
  margin-bottom: 1.25rem !important;
}
.ai4wh-hero-h1 {
  font-size: clamp(36px, 4.5vw, 58px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  color: #0d1f1f !important;
  letter-spacing: -2px !important;
  margin-bottom: 1rem !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ai4wh-hero-h1 em {
  color: #16ADAF !important;
  font-style: normal !important;
}
.ai4wh-hero-sub {
  font-size: 14px !important;
  color: #607070 !important;
  line-height: 1.75 !important;
  max-width: 400px !important;
  margin-bottom: 2rem !important;
  font-weight: 500 !important;
}
.ai4wh-hero-actions {
  display: flex !important;
  gap: .85rem !important;
  align-items: center !important;
  margin-bottom: 1.75rem !important;
  flex-wrap: wrap !important;
}
.ai4wh-btn-primary {
  background: #16ADAF !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: background .15s, transform .1s !important;
  border: none !important;
}
.ai4wh-btn-primary:hover {
  background: #128e90 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
.ai4wh-btn-ghost {
  background: #fff !important;
  color: #333 !important;
  padding: 11px 22px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid #ddd !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all .15s !important;
}
.ai4wh-btn-ghost:hover {
  border-color: #16ADAF !important;
  color: #16ADAF !important;
}
.ai4wh-hero-trust {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.ai4wh-trust-avatars {
  display: flex !important;
}
.ai4wh-trust-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  background: #c8e8e8 !important;
  margin-left: -6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #16ADAF !important;
}
.ai4wh-trust-avatar:first-child { margin-left: 0 !important; }
.ai4wh-trust-stars {
  color: #F59E0B !important;
  font-size: 13px !important;
  margin: 0 4px !important;
}
.ai4wh-trust-text {
  font-size: 12px !important;
  color: #8a9a9a !important;
  font-weight: 600 !important;
}


/* Hero inner wrapper — constrains grid to max-width with side padding */
.ai4wh-hero-wrap {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2.5rem !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1.3fr !important;
  gap: 2rem !important;
  align-items: flex-start !important;
  min-height: 520px !important;
}

/* Hero right — BookTrendr product card */
.ai4wh-hero-right {
  position: relative !important;
  z-index: 2 !important;
  align-self: flex-start !important;
  padding-bottom: 3rem !important;
}
.ai4wh-hero-product {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 40px rgba(0,120,120,.1), 0 0 0 1px rgba(0,0,0,.05) !important;
  overflow: visible !important;
  position: relative !important;
}
.ai4wh-hp-header {
  background: #fff !important;
  border-bottom: 1px solid #eef !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 16px 16px 0 0 !important;
}
.ai4wh-hp-logo {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0d1f1f !important;
}
.ai4wh-hp-logo em { color: #16ADAF !important; font-style: normal !important; }
.ai4wh-hp-live {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #888 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}
.ai4wh-hp-dot {
  width: 7px !important;
  height: 7px !important;
  background: #16ADAF !important;
  border-radius: 50% !important;
  animation: ai4wh-pulse 1.8s ease-in-out infinite !important;
  display: inline-block !important;
}
@keyframes ai4wh-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.3; transform:scale(.6); }
}
.ai4wh-hp-body {
  display: grid !important;
  grid-template-columns: 155px 1fr !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 0 0 0 0 !important;
}
.ai4wh-hp-sidebar {
  border-right: 1px solid #f0f0f0 !important;
  padding: 10px 0 !important;
}
.ai4wh-hp-sidebar-item {
  padding: 8px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #aaa !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: all .1s !important;
  border-left: 2px solid transparent !important;
}
.ai4wh-hp-sidebar-item.active {
  color: #16ADAF !important;
  background: #f0fafa !important;
  border-left-color: #16ADAF !important;
}
.ai4wh-hp-sidebar-item:not(.active):hover { color: #555 !important; }
.ai4wh-hp-main { padding: 14px 15px !important; }
.ai4wh-hp-section-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0d1f1f !important;
  margin-bottom: 10px !important;
}
.ai4wh-hp-table { width: 100% !important; }
.ai4wh-hp-table-head {
  display: grid !important;
  grid-template-columns: 1.6fr .5fr .6fr .65fr .55fr !important;
  gap: 4px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  margin-bottom: 4px !important;
}
.ai4wh-hp-th {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: #bbb !important;
}
.ai4wh-hp-row {
  display: grid !important;
  grid-template-columns: 1.6fr .5fr .6fr .65fr .55fr !important;
  gap: 4px !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #f8f8f8 !important;
  align-items: center !important;
}
.ai4wh-hp-row:last-child { border-bottom: none !important; }
.ai4wh-hp-niche-name { font-size: 11px !important; font-weight: 700 !important; color: #0d1f1f !important; }
.ai4wh-hp-books-count {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #555 !important;
}
.ai4wh-hp-tag {
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}
.ai4wh-hp-tag.high { background: #e1f5ee !important; color: #0F6E56 !important; }
.ai4wh-hp-tag.med  { background: #e1f5ee !important; color: #0F6E56 !important; }
.ai4wh-hp-tag.low  { background: #f3f4f6 !important; color: #6b7280 !important; }
.ai4wh-hp-score { font-size: 12px !important; font-weight: 800 !important; color: #16ADAF !important; }

/* Charts */
.ai4wh-hp-charts {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 12px 15px !important;
  border-top: 1px solid #f0f0f0 !important;
  background: #fafafa !important;
  border-radius: 0 0 16px 16px !important;
}
.ai4wh-hp-chart-card {
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 8px !important;
  padding: 10px !important;
}
.ai4wh-hp-chart-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: #bbb !important;
  margin-bottom: 6px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.ai4wh-hp-chart-badge {
  background: #e1f5ee !important;
  color: #0F6E56 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}
.ai4wh-kw-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.ai4wh-kw-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.ai4wh-kw-word {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #555 !important;
  width: 80px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ai4wh-kw-bar {
  flex: 1 !important;
  height: 4px !important;
  background: #e8f5f5 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  display: block !important;
}
.ai4wh-kw-bar-fill {
  height: 4px !important;
  background: #16ADAF !important;
  border-radius: 2px !important;
  display: block !important;
}
.ai4wh-kw-vol {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #16ADAF !important;
  width: 36px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}
.ai4wh-donut-wrap { display: flex !important; align-items: center !important; gap: 10px !important; }
.ai4wh-donut { width: 52px !important; height: 52px !important; flex-shrink: 0 !important; }
.ai4wh-donut-legend { font-size: 9px !important; font-weight: 600 !important; color: #666 !important; }
.ai4wh-dl-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 3px !important;
}
.ai4wh-dl-dot { width: 6px !important; height: 6px !important; border-radius: 50% !important; flex-shrink: 0 !important; }

/* Floating hot niche card */
.ai4wh-hp-hot {
  position: absolute !important;
  right: -10px !important;
  top: 60px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
  padding: 12px 14px !important;
  width: 145px !important;
  border: 1px solid #eee !important;
  z-index: 10 !important;
}
.ai4wh-hp-hot-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: #F59E0B !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 5px !important;
}
.ai4wh-hp-hot-name  { font-size: 13px !important; font-weight: 800 !important; color: #0d1f1f !important; margin-bottom: 2px !important; }
.ai4wh-hp-hot-stat  { font-size: 24px !important; font-weight: 900 !important; color: #16ADAF !important; line-height: 1 !important; }
.ai4wh-hp-hot-sub   { font-size: 9px !important; font-weight: 600 !important; color: #bbb !important; margin-top: 2px !important; text-transform: uppercase !important; letter-spacing: .05em !important; }

/* ── DIRECTORY BAND ── */
.ai4wh-dir-band {
  background: #16ADAF !important;
  padding: 3rem 0 !important;
  margin-top: 0 !important;
}
.ai4wh-dir-band-inner {
  display: grid !important;
  grid-template-columns: 1fr 2.5fr !important;
  gap: 3rem !important;
  align-items: start !important;
}
.ai4wh-dir-band-eyebrow {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.8) !important;
  margin-bottom: .6rem !important;
}
.ai4wh-dir-band-title {
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.1 !important;
  letter-spacing: -.8px !important;
  margin-bottom: .85rem !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ai4wh-dir-band-desc {
  font-size: 13px !important;
  color: rgba(255,255,255,.85) !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}
.ai4wh-dir-cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: .85rem !important;
}
.ai4wh-dir-card {
  background: #f5fafa !important;
  background-image: radial-gradient(ellipse 120% 100% at 80% 0%, #d0f0f0 0%, transparent 65%), radial-gradient(ellipse 80% 80% at 10% 100%, #c8eee8 0%, transparent 60%) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  transition: all .2s !important;
  display: block !important;
}
.ai4wh-dir-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
  border-color: rgba(255,255,255,.9) !important;
}
.ai4wh-dir-card-icon {
  width: 56px !important;
  height: 56px !important;
  background: #d4f0ef !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  color: #16ADAF !important;
  margin-bottom: 1rem !important;
}
.ai4wh-dir-card-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0d1f1f !important;
  margin-bottom: 2px !important;
}
.ai4wh-dir-card-count {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #16ADAF !important;
  letter-spacing: -.5px !important;
}
.ai4wh-dir-card-sub {
  font-size: 11px !important;
  color: #607070 !important;
  margin-bottom: .85rem !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin-top: .3rem !important;
}
.ai4wh-dir-card-link {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #16ADAF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap .15s !important;
}
.ai4wh-dir-card-link:hover { gap: 8px !important; color: #0a8a8a !important; }

/* ── ARTICLES ── */
.ai4wh-articles-section { padding: 3.5rem 0 !important; }
.ai4wh-section-header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin-bottom: 1.75rem !important;
}
.ai4wh-section-title {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #0d1f1f !important;
  letter-spacing: -.5px !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ai4wh-section-link {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #16ADAF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap .15s !important;
  white-space: nowrap !important;
}
.ai4wh-section-link:hover { gap: 8px !important; }
.ai4wh-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1.25rem !important;
}
.ai4wh-article-card { cursor: pointer !important; }
.ai4wh-article-img-wrap {
  display: block !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: .75rem !important;
  aspect-ratio: 16/10 !important;
  background: #e8f5f5 !important;
  position: relative !important;
}
.ai4wh-article-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .25s !important;
  display: block !important;
}
.ai4wh-article-card:hover .ai4wh-article-img { transform: scale(1.03) !important; }
.ai4wh-article-img-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ai4wh-article-featured-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  background: #16ADAF !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
.ai4wh-article-tag {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #16ADAF !important;
  margin-bottom: 5px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  display: block !important;
}
.ai4wh-article-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0d1f1f !important;
  line-height: 1.4 !important;
  display: block !important;
}
.ai4wh-article-title:hover { color: #16ADAF !important; }

/* ── NEWSLETTER ── */
.ai4wh-nl-section {
  background: #f0fafa !important;
  border-top: 1px solid #e0f0f0 !important;
  border-bottom: 1px solid #e0f0f0 !important;
  padding: 1.75rem 0 !important;
}
.ai4wh-nl-inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 2.5rem !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.ai4wh-nl-graphic {
  width: 80px !important;
  height: 70px !important;
  background: #e1f5ee !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
  flex-shrink: 0 !important;
}
.ai4wh-nl-title {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #0d1f1f !important;
  letter-spacing: -.5px !important;
  margin-bottom: .3rem !important;
  font-family: 'Montserrat', sans-serif !important;
}
.ai4wh-nl-sub {
  font-size: 13px !important;
  color: #607070 !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
}
.ai4wh-nl-perks {
  display: flex !important;
  gap: 1.25rem !important;
  margin-top: .6rem !important;
  flex-wrap: wrap !important;
}
.ai4wh-nl-perk {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #16ADAF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.ai4wh-nl-form-wrap { min-width: 260px !important; flex-shrink: 0 !important; }
.ai4wh-nl-form {
  display: flex !important;
  flex-direction: column !important;
  gap: .6rem !important;
}
.ai4wh-nl-input {
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  border: 1.5px solid #c8e8e8 !important;
  background: #fff !important;
  color: #0d1f1f !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: border-color .15s !important;
  width: 100% !important;
}
.ai4wh-nl-input:focus { border-color: #16ADAF !important; }
.ai4wh-nl-input::placeholder { color: #bbb !important; }
.ai4wh-nl-btn {
  background: #16ADAF !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: 'Montserrat', sans-serif !important;
  transition: background .15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
}
.ai4wh-nl-btn:hover { background: #128e90 !important; }
.ai4wh-nl-note { font-size: 10px !important; color: #aaa !important; text-align: center !important; }
.ai4wh-nl-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: #b0b0b0 !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  margin-top: 4px !important;
}
.ai4wh-nl-consent input[type="checkbox"] {
  accent-color: #16ADAF !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
}
.ai4wh-nl-consent a {
  color: #16ADAF !important;
  text-decoration: underline !important;
}
.ai4wh-nl-consent a:hover { color: #128e90 !important; }

/* Newsletter spinner & message */
.ai4wh-spinner {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: ai4wh-spin 0.6s linear infinite !important;
  vertical-align: middle !important;
}
@keyframes ai4wh-spin { to { transform: rotate(360deg); } }
.ai4wh-nl-btn:disabled { opacity: 0.7 !important; cursor: wait !important; }
.ai4wh-nl-msg { text-align: center !important; }

/* ── PODCASTS + BOOKS ── */
.ai4wh-mid-section {
  padding: 49px 0 3.5rem !important;
  display: grid !important;
  grid-template-columns: 1fr 1.6fr !important;
  gap: 2.5rem !important;
}
.ai4wh-pod-list {
  display: flex !important;
  flex-direction: column !important;
  gap: .75rem !important;
  margin-top: 1.25rem !important;
}
.ai4wh-pod-item {
  display: flex !important;
  align-items: center !important;
  gap: .85rem !important;
  padding: .85rem !important;
  border: 1px solid #eef5f5 !important;
  border-radius: 10px !important;
  transition: all .2s !important;
  cursor: pointer !important;
  color: #111 !important;
}
.ai4wh-pod-item:hover {
  border-color: #c0e8e8 !important;
  background: #f5fafa !important;
  color: #111 !important;
}
.ai4wh-pod-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: #c8e8e8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #16ADAF !important;
}
.ai4wh-pod-info { flex: 1 !important; }
.ai4wh-pod-name  { font-size: 12px !important; font-weight: 700 !important; color: #0d1f1f !important; margin-bottom: 2px !important; }
.ai4wh-pod-host  { font-size: 10px !important; color: #888 !important; margin-bottom: 1px !important; font-weight: 500 !important; }
.ai4wh-pod-topic { font-size: 10px !important; color: #aaa !important; font-weight: 500 !important; }
.ai4wh-pod-play {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  border: 1.5px solid #e0e0e0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #888 !important;
  flex-shrink: 0 !important;
  transition: all .15s !important;
}
.ai4wh-pod-item:hover .ai4wh-pod-play {
  border-color: #16ADAF !important;
  color: #16ADAF !important;
}
.ai4wh-books-scroll {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: .85rem !important;
  margin-top: 1.25rem !important;
}
.ai4wh-book-card {
  cursor: pointer !important;
  display: block !important;
  color: inherit !important;
}
.ai4wh-book-cover {
  border-radius: 6px !important;
  aspect-ratio: 2/3 !important;
  margin-bottom: .6rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: .5rem !important;
  line-height: 1.3 !important;
  transition: transform .2s !important;
}
.ai4wh-book-card:hover .ai4wh-book-cover { transform: translateY(-2px) !important; }
.ai4wh-book-cover.c1 { background: linear-gradient(145deg,#0d4f4f,#16ADAF) !important; color: #fff !important; }
.ai4wh-book-cover.c2 { background: linear-gradient(145deg,#f9f5e3,#e8dfc0) !important; color: #333 !important; }
.ai4wh-book-cover.c3 { background: linear-gradient(145deg,#f59e0b,#d97706) !important; color: #fff !important; }
.ai4wh-book-cover.c4 { background: linear-gradient(145deg,#1e293b,#334155) !important; color: #fff !important; }
.ai4wh-book-cover.c5 { background: linear-gradient(145deg,#fef3c7,#fde68a) !important; color: #333 !important; }
.ai4wh-book-title  { font-size: 11px !important; font-weight: 700 !important; color: #0d1f1f !important; margin-bottom: 2px !important; line-height: 1.3 !important; }
.ai4wh-book-author { font-size: 10px !important; color: #aaa !important; margin-bottom: 3px !important; font-weight: 500 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .ai4wh-hp-hot { display: none !important; }
}
@media (max-width: 960px) {
  .ai4wh-hero-wrap,
  .ai4wh-dir-band-inner,
  .ai4wh-mid-section {
    grid-template-columns: 1fr !important;
  }
  .ai4wh-hero { padding-bottom: 2rem !important; }
  .ai4wh-hero-right { padding-bottom: 0 !important; }
  .ai4wh-dir-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .ai4wh-articles-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .ai4wh-nl-inner { grid-template-columns: 1fr !important; }
  .ai4wh-nl-graphic { display: none !important; }
}
@media (max-width: 680px) {
  .ai4wh-nav-center { display: none !important; }
  .ai4wh-dir-cards { grid-template-columns: 1fr !important; }
  .ai4wh-articles-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ai4wh-books-scroll { grid-template-columns: repeat(3, 1fr) !important; }

  /* ── BookTrendr product card — mobile fix ── */
  .ai4wh-hero-product {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .ai4wh-hp-body {
    grid-template-columns: 1fr !important;
  }
  .ai4wh-hp-sidebar {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 8px 10px !important;
  }
  .ai4wh-hp-sidebar-item {
    padding: 6px 10px !important;
    font-size: 10px !important;
    border-left: none !important;
    border-bottom: 2px solid transparent !important;
  }
  .ai4wh-hp-sidebar-item.active {
    border-left-color: transparent !important;
    border-bottom-color: #16ADAF !important;
  }
  .ai4wh-hp-main {
    padding: 12px !important;
    overflow-x: auto !important;
  }
  .ai4wh-hp-table-head,
  .ai4wh-hp-row {
    grid-template-columns: 1.4fr .5fr .55fr .6fr .5fr !important;
    gap: 3px !important;
  }
  .ai4wh-hp-niche-name {
    font-size: 10px !important;
  }
  .ai4wh-hp-th {
    font-size: 8px !important;
  }
  .ai4wh-hp-tag {
    font-size: 8px !important;
    padding: 1px 5px !important;
  }
  .ai4wh-hp-score {
    font-size: 10px !important;
  }
  .ai4wh-hp-charts {
    grid-template-columns: 1fr !important;
    padding: 10px 12px !important;
  }
  .ai4wh-kw-word {
    width: 65px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 480px) {
  .ai4wh-articles-grid { grid-template-columns: 1fr !important; }
  .ai4wh-books-scroll { grid-template-columns: repeat(2, 1fr) !important; }
  .ai4wh-hero-h1 { letter-spacing: -1px !important; }

  /* ── BookTrendr card — small phone ── */
  .ai4wh-hp-header {
    padding: 10px 12px !important;
  }
  .ai4wh-hp-logo {
    font-size: 12px !important;
  }
  .ai4wh-hp-sidebar-item {
    font-size: 9px !important;
    padding: 5px 7px !important;
  }
  .ai4wh-hp-section-title {
    font-size: 11px !important;
  }
  .ai4wh-hp-niche-name {
    font-size: 9px !important;
  }
  .ai4wh-hp-books-count {
    font-size: 9px !important;
  }
  .ai4wh-hp-row {
    padding: 5px 0 !important;
  }
  .ai4wh-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .ai4wh-hero-wrap {
    padding: 0 1rem !important;
  }
}

/* ── TENWEB / ELEMENTOR FOOTER FLOW FIX ── */
/* Keep the footer after the custom homepage content instead of overlapping it. */
.ai4wh-homepage [data-elementor-type="footer"],
.ai4wh-homepage .elementor-location-footer,
.ai4wh-homepage footer[data-elementor-type],
.ai4wh-homepage footer,
.ai4wh-homepage #colophon {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
  z-index: 10 !important;
  clear: both !important;
  flex-shrink: 0 !important;
}

.ai4wh-homepage .elementor-location-footer {
  display: block !important;
}
