/* ============================
   WORDPRESS FSE OVERRIDES v2.0
   Full rewrite to match maquette HTML exactly
   ============================ */

/* ======= RESET WP DEFAULTS ======= */
.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.site-main > .wp-block-group > :where(.is-layout-flow) > *,
.site-main > .wp-block-group > :where(.is-layout-constrained) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: auto !important;
  margin-right: auto !important;
}
:root :where(.is-layout-flow) > * + * {
  margin-block-start: 0;
}
:root :where(.is-layout-constrained) > * + * {
  margin-block-start: 0;
}


/* ======= TOPBAR ======= */
.topbar {
  background: #F3F1FA;
  border-bottom: 1px solid rgba(139,92,246,0.10);
  padding: 0;
  font-size: 12px;
  color: #6B7280;
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 40px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-flags { display: flex; align-items: center; gap: 4px; }
.flag-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 500;
  background: transparent; border: 1px solid transparent;
  color: #6B7280; cursor: pointer; transition: all 0.15s;
}
.flag-btn:hover { background: rgba(108,58,237,0.06); color: #6C3AED; border-color: rgba(108,58,237,0.15); }
.flag-btn.active { background: rgba(108,58,237,0.10); color: #6C3AED; border-color: rgba(108,58,237,0.25); font-weight: 600; }
.flag-emoji { font-size: 14px; line-height: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: #6B7280; transition: color 0.15s; text-decoration: none; }
.topbar-right a:hover { color: #6C3AED; }


/* ======= NAVBAR ======= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(108,58,237,0.15), rgba(249,115,22,0.12), rgba(108,58,237,0.08)) 1;
  box-shadow: 0 2px 16px rgba(108,58,237,0.06);
  padding: 0 40px;
}
.navbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
  display: flex; align-items: baseline; gap: 0;
}
.logo-text .logo-comp { color: #1E1B4B; }
.logo-text .logo-sep { color: rgba(30,27,75,0.2); margin: 0 1px; font-weight: 400; }
.logo-text .logo-ia {
  font-weight: 700;
  background: linear-gradient(135deg, #A78BFA 0%, #F97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: #6B7280;
  transition: all 0.2s; text-decoration: none;
}
.nav-links a:hover { background: rgba(108,58,237,0.06); color: #6C3AED; }
.nav-links a.active { color: #6C3AED; background: rgba(108,58,237,0.08); font-weight: 600; }
.nav-cta {
  padding: 9px 20px; border-radius: 8px;
  background: #6C3AED; color: white !important;
  font-size: 13px; font-weight: 600;
  transition: all 0.25s; border: none; cursor: pointer; text-decoration: none;
}
.nav-cta:hover { background: #8B5CF6; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,58,237,0.4); }

/* ======= NAVBAR SEARCH ======= */
.nav-search {
  display: flex; align-items: center; gap: 6px;
  margin: 0 16px 0 auto;
  padding: 6px 10px 6px 12px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  transition: all 0.2s;
  min-width: 220px;
  max-width: 320px;
}
.nav-search:focus-within {
  background: #fff;
  border-color: #6C3AED;
  box-shadow: 0 0 0 3px rgba(108,58,237,0.12);
}
.nav-search .nav-search-icon { color: #9CA3AF; flex-shrink: 0; }
.nav-search input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-size: 13px; color: #1E1B4B;
  font-family: inherit;
}
.nav-search input::placeholder { color: #9CA3AF; }
.nav-search button {
  padding: 4px 10px;
  background: #6C3AED; color: #fff;
  border: none; border-radius: 6px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-search button:hover { background: #8B5CF6; }
@media (max-width: 1024px) {
  .nav-search {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    margin: 0 10px;
  }
  .nav-search input { font-size: 14px; }
  .nav-search button { padding: 4px 8px; font-size: 10px; }
}
@media (max-width: 768px) {
  .nav-search {
    min-width: 0;
    max-width: none;
    margin: 8px 0 0 0;
    order: 10;
    flex-basis: 100%;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .nav-search { padding: 5px 8px; }
  .nav-search button {
    padding: 3px 6px;
    font-size: 10px;
  }
  .nav-search input { font-size: 13px; }
}


/* ======= FULL-WIDTH HERO SECTIONS ======= */
/* Nuclear approach: override ALL possible WP FSE layout constraints */

/* 1. Remove any max-width WP might apply to wp-site-blocks children */
.wp-site-blocks {
  max-width: none !important;
  width: 100% !important;
}
:where(.wp-site-blocks) > * {
  max-width: none !important;
}

/* 2. Alignfull wrapper — force full width */
.wp-site-blocks > .alignfull,
.wp-site-blocks > .wp-block-group.alignfull,
.wp-block-group.alignfull {
  max-width: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 3. Hero sections — fill available width naturally (auto respects sidebar margin) */
.alignfull > .cia-hero,
.alignfull > section.hero-compact,
.alignfull > section.hero,
.cia-hero,
.hero-compact.hero,
section.hero-compact,
.wp-site-blocks > .hero-compact,
.wp-site-blocks > .cia-hero,
.wp-site-blocks > section.hero {
  width: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

/* 4. Restore constrained layout ONLY inside main content groups */
.site-main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 5. Guide single page — no WP constraints on bottom sections */
.single-guide-main .article-bottom,
.single-guide-main .cta-section,
.single-guide-main .article-layout {
  max-width: none;
}
.single-guide-main .article-bottom {
  max-width: 1140px;
  margin: 0 auto;
  box-sizing: border-box;
}
.single-guide-main .related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ======= HERO ======= */
.cia-hero {
  background: linear-gradient(180deg, #EDE9FE 0%, #F5F3FF 30%, #FAFAFE 70%, #F8F7FF 100%);
  position: relative; overflow: hidden;
  padding: 100px 40px 88px;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; top: -200px; left: -100px; background: rgba(108,58,237,0.08); animation-delay: 0s; }
.hero-orb-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; background: rgba(249,115,22,0.06); animation-delay: -3s; }
.hero-orb-3 { width: 350px; height: 350px; top: 30%; right: 10%; background: rgba(59,130,246,0.05); animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(108,58,237,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero-streak {
  display: none;
}
.cia-hero-content {
  max-width: 800px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  background: rgba(108,58,237,0.15); border: 1px solid rgba(139,92,246,0.25);
  font-size: 13px; font-weight: 500; color: #6C3AED;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.cia-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px; font-weight: 700; line-height: 1.05;
  color: #1E1B4B; letter-spacing: -2px;
  margin-bottom: 24px;
}
.cia-hero h1 .gradient {
  background: linear-gradient(135deg, #8B5CF6 0%, #6C3AED 25%, #F97316 75%, #FB923C 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 19px; color: #6B7280; line-height: 1.6;
  max-width: 580px; margin: 0 auto 40px;
}
.hero-sub strong { color: #1E1B4B; font-weight: 600; }

/* Hero Search */
.hero-search {
  max-width: 620px; margin: 0 auto 32px;
  position: relative;
}
.hero-search input {
  width: 100%; padding: 20px 60px 20px 28px;
  border-radius: 16px; border: 1px solid rgba(108,58,237,0.15);
  background: white;
  box-shadow: 0 4px 20px rgba(108,58,237,0.08);
  font-size: 16px; color: #1E1B4B;
  font-family: 'Inter', sans-serif;
  outline: none; transition: all 0.3s;
}
.hero-search input::placeholder { color: #9CA3AF; }
.hero-search input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 4px rgba(108,58,237,0.15), 0 8px 32px rgba(108,58,237,0.1);
}
.hero-search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #6C3AED 0%, #8B5CF6 100%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(108,58,237,0.3);
}
.hero-search-btn:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 6px 24px rgba(108,58,237,0.4); }
.hero-search-btn svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2.5; }

/* Hero Tags */
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.hero-tag {
  padding: 7px 16px; border-radius: 100px;
  background: rgba(108,58,237,0.06); border: 1px solid rgba(108,58,237,0.15);
  font-size: 13px; color: #4B5563; font-weight: 600;
  transition: all 0.2s; cursor: pointer;
  text-decoration: none !important; display: inline-block;
  position: relative; z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hero-tag:hover { background: rgba(108,58,237,0.14); border-color: rgba(139,92,246,0.3); color: #6C3AED; box-shadow: 0 2px 8px rgba(108,58,237,0.15); transform: translateY(-1px); }
.hero-tag:visited { color: #4B5563; }

/* Hero Stats Bar */
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(108,58,237,0.03);
  border-top: 1px solid rgba(108,58,237,0.06);
  backdrop-filter: blur(10px);
}
.hero-stats-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: center;
}
.hero-stat {
  flex: 1; text-align: center; padding: 20px 32px;
  border-right: 1px solid rgba(108,58,237,0.08);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; color: #1E1B4B; letter-spacing: -0.5px;
}
.hero-stat-val .accent { color: #F97316; }
.hero-stat-lab {
  font-size: 11px; color: #6B7280; margin-top: 2px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}


/* ======= SECTIONS ======= */
.cia-section {
  padding: 72px 40px;
}
.cia-section .section-inner { max-width: 1440px; margin: 0 auto; }
.section-alt { background: transparent !important; }

/* ======= PAGINATION (paginate_links type=list) ======= */
ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none !important;
  padding: 0 !important;
  margin: 40px 0 0 !important;
}
ul.page-numbers > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
ul.page-numbers a,
ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #1E1B4B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
ul.page-numbers a:hover {
  background: rgba(108,58,237,0.08);
  border-color: #6C3AED;
  color: #6C3AED;
}
ul.page-numbers .current {
  background: linear-gradient(135deg, #6C3AED, #8B5CF6);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(108,58,237,0.3);
}
ul.page-numbers .dots {
  background: transparent;
  border: none;
  color: #9CA3AF;
}

.section-dark {
  background: #3B3580;
  color: white;
  padding: 72px 40px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: #6C3AED; margin-bottom: 10px;
}
.section-dark .section-label { color: #A78BFA; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
  color: #1E1B4B;
}
.section-dark .section-title { color: white; }
.section-subtitle { font-size: 15px; color: #6B7280; margin-top: 8px; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.45); }


/* ======= TOOL CARDS ======= */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.wp-block-group.tool-card,
.tool-card {
  background: white; border-radius: 12px; padding: 24px;
  border: 1px solid #E5E7EB; position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); cursor: pointer;
}
.wp-block-group.tool-card:hover,
.tool-card:hover {
  border-color: #8B5CF6;
  box-shadow: 0 12px 48px rgba(108,58,237,0.10);
  transform: translateY(-4px);
}
.tool-card-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-selection { background: #EDE9FE; color: #6C3AED; }
.badge-trending { background: #FFF7ED; color: #F97316; }
.badge-new { background: #D1FAE5; color: #10B981; }

.tool-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tool-logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tool-name { font-size: 15px; font-weight: 700; color: #1E1B4B; }
.tool-cat { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
.tool-desc { font-size: 13px; color: #6B7280; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; }
.tool-price { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.price-free { background: #D1FAE5; color: #059669; }
.price-freemium { background: #DBEAFE; color: #2563EB; }
.price-paid { background: #F3F4F6; color: #6B7280; }
.tool-visit {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #6C3AED;
  padding: 7px 16px; border-radius: 8px;
  background: rgba(108,58,237,0.08); transition: all 0.2s;
  text-decoration: none;
}
.tool-visit:hover { background: #6C3AED; color: white; }

/* WP post template card adjustments */
.wp-block-post-template.is-layout-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
/* Guarantee tool-card does not exceed its grid cell */
.wp-block-post-template.is-layout-grid > li,
.wp-block-post-template.is-layout-grid > .wp-block-post {
  min-width: 0;
  width: 100%;
}
.wp-block-group.tool-card .wp-block-post-featured-image {
  border-radius: 13px;
  overflow: hidden;
}
.wp-block-group.tool-card .wp-block-post-featured-image img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
  border-radius: 13px;
}
.wp-block-group.tool-card .wp-block-post-title a {
  color: #1E1B4B; text-decoration: none; font-weight: 700;
}
.wp-block-group.tool-card .wp-block-post-title a:hover { color: #6C3AED; }
.wp-block-group.tool-card .wp-block-post-excerpt { margin: 0; }
.wp-block-group.tool-card .wp-block-post-terms a {
  color: #9CA3AF; text-decoration: none; font-size: 11px;
}

/* Read more as tool-visit button */
.wp-block-group.tool-card .wp-block-read-more,
a.tool-visit.wp-block-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #6C3AED;
  padding: 7px 16px; border-radius: 8px;
  background: rgba(108,58,237,0.08); transition: all 0.2s;
  text-decoration: none; margin-top: 12px;
}
.wp-block-group.tool-card .wp-block-read-more:hover,
a.tool-visit.wp-block-read-more:hover { background: #6C3AED; color: white; }


/* ======= LINK PILLS / BUTTONS ======= */
.link-row { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.link-pill {
  padding: 10px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
  border: 1px solid #E5E7EB; color: #1E1B4B; text-decoration: none;
}
.link-pill:hover { border-color: #6C3AED; color: #6C3AED; background: rgba(108,58,237,0.06); }
.link-pill-primary { background: #6C3AED; color: white !important; border-color: #6C3AED; }
.link-pill-primary:hover { background: #4C1D95; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,58,237,0.3); }


/* ======= NEWSLETTER ======= */
.newsletter-form {
  display: flex; max-width: 500px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.newsletter-input {
  flex: 1; padding: 14px 20px;
  background: transparent; border: none;
  color: white; font-size: 15px; font-family: 'Inter', sans-serif;
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-btn {
  padding: 14px 28px;
  background: white; color: #6C3AED;
  border: none; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.newsletter-btn:hover { background: #F5F3FF; }


/* ======= FOOTER ======= */
.wp-block-group.footer.section-dark {
  background: #3B3580 !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 60px 40px 0 !important;
}
.wp-block-group.footer.section-dark p { color: rgba(255,255,255,0.6); }
.wp-block-group.footer.section-dark a { color: rgba(255,255,255,0.6) !important; text-decoration: none !important; transition: color 0.15s; }
.wp-block-group.footer.section-dark a:hover { color: white !important; }
.wp-block-group.footer.section-dark p[style*="font-family"] { color: white !important; font-size: 16px; margin-bottom: 16px !important; }
.wp-block-group.footer.section-dark ul { list-style: none; padding: 0 !important; }
.wp-block-group.footer.section-dark ul li { margin-bottom: 8px; font-size: 14px; }
.wp-block-group.footer.section-dark hr.footer-divider { border-color: rgba(255,255,255,0.08) !important; margin: 32px 0 !important; }
.wp-block-group.footer-bottom { padding-bottom: 24px !important; }
.wp-block-group.footer-bottom p { font-size: 13px !important; color: rgba(255,255,255,0.4) !important; }


/* ======= EMPTY QUERY PLACEHOLDERS ======= */
.wp-block-query-no-results p {
  padding: 40px 20px;
  text-align: center;
  font-style: italic;
}


/* ======= RESPONSIVE ======= */
@media (max-width: 1200px) {
  .tools-grid,
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .tools-grid,
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cia-hero {
    padding: 60px 24px 88px;
    min-height: auto;
  }
  .cia-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { flex: 1 0 33%; }
  .cia-section { padding: 48px 24px; }
  .section-dark { padding: 48px 24px; }
  .navbar { padding: 0 20px; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .nav-links { display: none; }
  .topbar { display: none; }
}
@media (max-width: 640px) {
  .tools-grid,
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .cia-hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .hero-stat { padding: 16px 20px; flex: 1 0 50%; }
  .navbar-inner { padding: 0 10px; }
}

/* ======= NEWSLETTER PAGE OVERRIDES ======= */
/* WordPress FSE layout classes override flex/grid — force them back */

/* Newsletter forms: WP adds display:flex on form elements — kill it */
.nl-hero-form,
.nl-cta-form,
form.newsletter-form {
  display: block !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

/* Hero form: force flex row layout */
.nl-form-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}
/* Hint text must be below, not beside */
.nl-form-hint {
  display: block !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #9CA3AF !important;
  margin: 12px 0 0 !important;
  width: 100% !important;
}
.nl-input-hero {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 14px 18px !important;
  border: 2px solid #D1D5DB !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  background: #fff !important;
  color: #1F2937 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
.nl-input-cta {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 14px 18px !important;
  border: 2px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.nl-input-hero:focus,
.nl-input-cta:focus {
  border-color: #6C3AED !important;
  box-shadow: 0 0 0 3px rgba(108,58,237,0.1) !important;
  outline: none !important;
}
.nl-btn-hero,
.nl-btn-cta {
  flex-shrink: 0 !important;
  padding: 14px 28px !important;
  white-space: nowrap !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.nl-btn-hero {
  background: linear-gradient(135deg, #6C3AED, #7C3AED) !important;
  color: #fff !important;
}
.nl-hero-form {
  max-width: 520px !important;
  margin: 0 auto !important;
}

/* Hero badge icon */
.nl-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 72px !important;
  height: 72px !important;
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE) !important;
  border-radius: 20px !important;
}

/* Icon circles - force display & size */
.nl-icon-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  margin: 0 auto 16px !important;
}
.nl-icon-purple { background: #F3F0FF !important; }
.nl-icon-amber  { background: #FEF3C7 !important; }
.nl-icon-green  { background: #D1FAE5 !important; }
.nl-icon-indigo { background: #E0E7FF !important; }

/* Content icons */
.nl-content-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: #F5F3FF !important;
  border-radius: 10px !important;
}

/* Stat icons */
.nl-stat-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: #F5F3FF !important;
  border-radius: 12px !important;
  margin-bottom: 10px !important;
}

/* CTA icon */
.nl-cta-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Numbers too faint — darken them */
.nl-content-num {
  color: #C4B5FD !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  line-height: 1 !important;
}

/* Why/content grids forced */
.nl-why-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
.nl-content-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 20px !important;
}
.nl-stats-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Stats value/label */
.nl-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.nl-stat-value {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #6C3AED !important;
}

/* CTA bottom dark card overrides */
.nl-cta-card {
  background: linear-gradient(135deg, #1E1B4B, #312E81) !important;
  border-radius: 20px !important;
  text-align: center !important;
}
.nl-input-cta {
  border-color: rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.nl-input-cta::placeholder {
  color: rgba(255,255,255,0.4) !important;
}
.nl-btn-cta {
  background: linear-gradient(135deg, #F97316, #EA580C) !important;
  color: #fff !important;
}

/* SVG icons inside elements */
.nl-icon-circle svg,
.nl-content-icon svg,
.nl-stat-icon svg,
.nl-hero-badge svg,
.nl-cta-icon-wrap svg {
  display: block !important;
  flex-shrink: 0 !important;
}

/* Responsive overrides */
@media (max-width: 900px) {
  .nl-why-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .nl-content-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .nl-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .nl-form-row {
    flex-direction: column !important;
  }
  .nl-btn-hero,
  .nl-btn-cta { width: 100% !important; }
  .nl-why-grid { grid-template-columns: 1fr !important; }
  .nl-content-grid { grid-template-columns: 1fr !important; }
  .nl-stats-bar { grid-template-columns: 1fr !important; }
}

/* ============================
   HUB PAGES — WP Overrides
   ============================ */
.hub-grid {
  display: grid !important;
}
.hub-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.hub-card {
  display: block !important;
  text-decoration: none !important;
}
.hub-card-icon {
  display: inline-flex !important;
  width: 48px !important;
  height: 48px !important;
}
.hub-card-icon svg {
  display: block !important;
}
.tags-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
}
.tag-pill {
  display: inline-flex !important;
}
.glossaire-alpha {
  display: flex !important;
  flex-wrap: wrap !important;
}
.glossaire-list {
  display: flex !important;
  flex-direction: column !important;
}
.baro-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}
.baro-stat-card {
  text-align: center !important;
}
.baro-stat-icon {
  display: inline-flex !important;
  width: 48px !important;
  height: 48px !important;
}
.baro-stat-icon svg {
  display: block !important;
}
.baro-trends-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}
.baro-ranking {
  display: flex !important;
  flex-direction: column !important;
}
.baro-rank-item {
  display: flex !important;
  flex-direction: row !important;
}
.baro-rank-bar {
  display: flex !important;
  flex-direction: row !important;
}
.baro-update-note {
  display: flex !important;
  flex-direction: row !important;
}
.baro-update-note svg {
  display: block !important;
}
@media (max-width: 900px) {
  .hub-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .baro-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .baro-trends-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .hub-grid-3 { grid-template-columns: 1fr !important; }
  .baro-stats-grid { grid-template-columns: 1fr !important; }
  .baro-trends-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════
   HOMEPAGE RESPONSIVE (hero + sections)
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .cia-hero { padding: 32px 20px !important; }
  .cia-hero h1 { font-size: 32px !important; }
  .cia-hero .hero-sub { font-size: 16px !important; }
  .cia-hero .hero-search { max-width: 100% !important; }
  .cia-hero .hero-search input { font-size: 14px !important; padding: 14px 50px 14px 16px !important; }
  .cia-hero .hero-tags { gap: 6px !important; }
  .cia-hero .hero-tag { font-size: 12px !important; padding: 6px 12px !important; }
  .hero-stats-bar { margin-left: -20px !important; margin-right: -20px !important; }
  .hero-stats-inner { flex-wrap: wrap !important; justify-content: center !important; }
  .hero-stat { flex: none !important; width: 50% !important; border-right: none !important; padding: 16px 12px !important; }
  .hero-stat-val { font-size: 22px !important; }
  .cia-section { padding-left: 20px !important; padding-right: 20px !important; padding-top: 48px !important; padding-bottom: 48px !important; }
}
@media (max-width: 480px) {
  .cia-hero h1 { font-size: 26px !important; }
  .cia-hero .hero-sub { font-size: 15px !important; }
  .hero-stat-val { font-size: 20px !important; }
  .cia-section { padding-left: 16px !important; padding-right: 16px !important; padding-top: 36px !important; padding-bottom: 36px !important; }
}
