/* ==========================================================================
   Ideo Guides — Design System & Custom Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --ideo-navy: #062d49;
  --ideo-navy-light: #0a3d66;
  --ideo-navy-dark: #041e33;
  --ideo-navy-accent: #082e4a;
  --ideo-teal: #4db3b5;
  --ideo-teal-soft: #2a7d7f;
  --ideo-teal-text: #217a7c;
  --ideo-teal-pale: #e0f2f2;
  --ideo-blue: #0275d8;
  --ideo-surface: #f7f7f7;
  --ideo-border: #e3e3e3;
  --ideo-text: #2d2d2d;
  --ideo-text-secondary: #5f6368;
  --ideo-font-display: 'Montserrat', sans-serif;
  --ideo-font-body: 'Open Sans', sans-serif;
}

/* ---------- Container ---------- */
.ideo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Utility ---------- */
@media (max-width: 767px) {
  .ideo-hide-mobile { display: none !important; }
}

/* ---------- Top Bar ---------- */
.ideo-top-bar {
  background: var(--ideo-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.ideo-top-bar .ideo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ideo-top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ideo-top-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.ideo-top-bar a:hover {
  color: #fff;
}

.ideo-top-bar-right a {
  font-weight: 600;
  color: #fff;
}

/* ---------- Main Bar ---------- */
.ideo-main-bar {
  background: #fff;
  border-bottom: 1px solid var(--ideo-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ideo-main-bar .ideo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ideo-main-bar-left {
  display: flex;
  align-items: center;
}

.ideo-main-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo */
.ideo-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.ideo-logo-img {
  height: 2.5rem;
  width: auto;
}

.ideo-logo-text {
  font-family: var(--ideo-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ideo-navy);
}

.ideo-logo-badge {
  background: var(--ideo-teal-pale);
  color: var(--ideo-navy);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav link */
.ideo-nav-link {
  color: var(--ideo-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.ideo-nav-link:hover {
  color: var(--ideo-teal-text);
}

/* Buttons */
.ideo-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--ideo-navy);
  border-radius: 8px;
  color: var(--ideo-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ideo-btn-outline:hover {
  background: var(--ideo-navy);
  color: #fff;
}

.ideo-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--ideo-navy-accent);
  border: 1.5px solid var(--ideo-navy-accent);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ideo-btn-primary:hover {
  background: #fff;
  color: var(--ideo-navy-accent);
  border-color: var(--ideo-navy-accent);
}

/* Hamburger */
.ideo-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ideo-navy);
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .ideo-hamburger {
    display: none;
  }
}

/* ---------- Sub-bar ---------- */
.ideo-sub-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ideo-sub-bar-inner::-webkit-scrollbar {
  display: none;
}

.ideo-sub-bar-arrow {
  color: var(--ideo-text-secondary);
  flex-shrink: 0;
}

.ideo-sub-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.ideo-sub-bar-links a {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ideo-sub-bar-label,
  .ideo-sub-bar-arrow {
    display: none;
  }

  .ideo-sub-bar-links {
    gap: 1rem;
  }

  .ideo-sub-bar-links a {
    font-size: 0.8125rem;
  }
}

/* ---------- Mobile Drawer ---------- */
.ideo-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ideo-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ideo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ideo-drawer.open {
  transform: translateX(0);
}

.ideo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ideo-border);
}

.ideo-drawer-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ideo-text);
}

.ideo-drawer-nav {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ideo-drawer-section {
  font-family: var(--ideo-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ideo-text-secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.ideo-drawer-section:first-child {
  margin-top: 0;
}

.ideo-drawer-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ideo-navy);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ideo-surface);
}

.ideo-drawer-nav a:hover {
  color: var(--ideo-teal-text);
}

.ideo-drawer-cta {
  margin: 1rem 1.25rem;
  padding: 0.75rem;
  background: var(--ideo-navy-accent);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ---------- Hide Blocksy defaults on guide pages ---------- */
.blog header[data-id="type-1"],
.category header[data-id="type-1"],
.single-post header[data-id="type-1"] {
  display: none !important;
}

.blog footer[data-id],
.category footer[data-id],
.single-post footer[data-id],
.blog .ct-footer-copyright,
.category .ct-footer-copyright,
.single-post .ct-footer-copyright {
  display: none !important;
}

/* ---------- Base typography ---------- */
.ideo-guides body,
.blog,
.category,
.single-post {
  font-family: var(--ideo-font-body);
  color: var(--ideo-text);
}

.ideo-guides h1,
.ideo-guides h2,
.ideo-guides h3,
.ideo-guides h4,
.blog h1,
.blog h2,
.blog h3,
.category h1,
.category h2,
.single-post h1,
.single-post h2,
.single-post h3 {
  font-family: var(--ideo-font-display);
}

/* ---------- Card hover ---------- */
.ideo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ideo-border);
}

.ideo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 45, 73, 0.12);
}

.ideo-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.ideo-card-body {
  padding: 1.25rem;
}

/* ---------- Horizontal card (category page) ---------- */
.ideo-card-horizontal {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ideo-border);
  transition: box-shadow 0.25s ease;
}

.ideo-card-horizontal:hover {
  box-shadow: 0 8px 24px rgba(6, 45, 73, 0.1);
}

@media (min-width: 640px) {
  .ideo-card-horizontal {
    flex-direction: row;
  }

  .ideo-card-horizontal img {
    width: 18rem;
    flex-shrink: 0;
  }
}

.ideo-card-horizontal img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- Category pill ---------- */
.ideo-cat-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--ideo-teal-pale);
  color: var(--ideo-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ideo-cat-pill:hover,
.ideo-cat-pill.active {
  background: var(--ideo-navy);
  color: #fff;
}

/* ---------- Link arrow ---------- */
.ideo-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--ideo-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ideo-link-arrow:hover {
  color: var(--ideo-teal-text);
}

.ideo-link-arrow svg {
  transition: transform 0.2s ease;
  width: 1rem;
  height: 1rem;
}

.ideo-link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Gold underline (section titles) ---------- */
.ideo-underline {
  position: relative;
  display: inline-block;
}

.ideo-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--ideo-teal);
  border-radius: 2px;
}

/* ---------- Hero section (archive) ---------- */
.ideo-hero {
  position: relative;
  background: var(--ideo-navy);
  color: #fff;
  padding: 3rem 0;
  overflow: hidden;
}

.ideo-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77, 179, 181, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ideo-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 117, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ideo-hero h1 {
  font-family: var(--ideo-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 768px) {
  .ideo-hero {
    padding: 4rem 0;
  }

  .ideo-hero h1 {
    font-size: 3rem;
  }
}

/* ---------- Featured article card ---------- */
.ideo-featured {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(6, 45, 73, 0.08);
  transition: box-shadow 0.3s ease;
}

.ideo-featured:hover {
  box-shadow: 0 12px 40px rgba(6, 45, 73, 0.15);
}

@media (min-width: 768px) {
  .ideo-featured {
    flex-direction: row;
  }

  .ideo-featured img {
    width: 50%;
    flex-shrink: 0;
  }
}

.ideo-featured img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ideo-featured-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .ideo-featured-body {
    padding: 2rem;
  }
}

/* ---------- Sidebar ---------- */
.ideo-sidebar {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .ideo-sidebar {
    display: flex;
    position: sticky;
    top: calc(var(--ideo-main-bar-height, 3.5rem) + 3rem);
    align-self: start;
  }
}

/* Sidebar blocks */
.ideo-sidebar-block {
  border-radius: 12px;
  overflow: hidden;
}

.ideo-sidebar-devis {
  background: var(--ideo-navy-accent);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.ideo-sidebar-devis h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.ideo-sidebar-devis p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.ideo-sidebar-devis .ideo-btn-devis {
  display: inline-block;
  background: #fff;
  color: var(--ideo-navy-accent);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ideo-sidebar-devis .ideo-btn-devis:hover {
  background: var(--ideo-teal-pale);
}

/* Sidebar categories list */
.ideo-sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ideo-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.ideo-sidebar-categories a:hover,
.ideo-sidebar-categories a.active {
  background: rgba(6, 45, 73, 0.05);
  border-left-color: var(--ideo-teal);
  color: var(--ideo-navy);
  font-weight: 600;
}

.ideo-sidebar-categories .count {
  font-size: 0.75rem;
  color: var(--ideo-text-secondary);
}

/* ---------- CTA blocks (mid & end of article) ---------- */
.ideo-cta-block {
  background: var(--ideo-navy-accent) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.ideo-cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(77, 179, 181, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ideo-cta-block h3 {
  color: #fff !important;
  font-family: var(--ideo-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.ideo-cta-block p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.ideo-cta-block .ideo-btn {
  display: inline-block;
  background: #fff !important;
  color: var(--ideo-navy-accent) !important;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
  position: relative;
}

.ideo-cta-block .ideo-btn:hover {
  background: var(--ideo-teal-pale) !important;
}

.ideo-cta-block .ideo-cta-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7) !important;
  position: relative;
}

/* ---------- CTA mid-article (shortcode / MB Block) ---------- */
.ideo-cta-mid {
  background: var(--ideo-navy) !important;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ideo-cta-mid::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(77, 179, 181, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ideo-cta-mid .ideo-cta-mid-title,
.ideo-prose .ideo-cta-mid .ideo-cta-mid-title {
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ideo-cta-mid .ideo-cta-mid-text,
.ideo-prose .ideo-cta-mid .ideo-cta-mid-text {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.ideo-cta-mid .ideo-cta-mid-btn,
.ideo-prose .ideo-cta-mid .ideo-cta-mid-btn {
  display: inline-block;
  background: #fff !important;
  color: var(--ideo-navy-accent) !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.ideo-cta-mid .ideo-cta-mid-btn:hover,
.ideo-prose .ideo-cta-mid .ideo-cta-mid-btn:hover {
  background: var(--ideo-teal-pale) !important;
}

/* ---------- Article prose ---------- */
.ideo-prose {
  max-width: 85ch;
  font-size: 1.0625rem;
  line-height: 1.62;
}

.ideo-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ideo-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}

.ideo-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ideo-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ideo-prose p {
  margin-bottom: 1.25rem;
  color: var(--ideo-text);
}

.ideo-prose ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.ideo-prose ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.ideo-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ideo-teal);
}

.ideo-prose blockquote {
  border-left: 4px solid var(--ideo-teal);
  background: var(--ideo-teal-pale);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
}

.ideo-prose a {
  color: var(--ideo-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ideo-prose a:hover {
  color: var(--ideo-teal-text);
}

.ideo-prose img {
  border-radius: 12px;
  margin: 1.5rem 0;
  width: 100%;
}

.ideo-prose strong {
  font-weight: 700;
  color: var(--ideo-navy);
}

/* ---------- TOC (sidebar) ---------- */
.ideo-toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--ideo-text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.ideo-toc a:hover,
.ideo-toc a.active {
  color: var(--ideo-navy);
  border-left-color: var(--ideo-teal);
  font-weight: 600;
}

/* Mobile TOC (collapsible) — hidden on desktop where sidebar TOC is visible */
@media (min-width: 1024px) {
  .ideo-toc-mobile {
    display: none !important;
  }
}

.ideo-toc-mobile summary {
  font-weight: 600;
  font-family: var(--ideo-font-display);
  color: var(--ideo-navy);
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--ideo-teal-pale);
  border-radius: 8px;
}

.ideo-toc-mobile[open] summary {
  border-radius: 8px 8px 0 0;
}

.ideo-toc-mobile nav {
  background: var(--ideo-teal-pale);
  padding: 0.5rem 1rem 0.75rem;
  border-radius: 0 0 8px 8px;
}

.ideo-toc-mobile nav a {
  display: block;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  color: var(--ideo-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 179, 181, 0.15);
}

.ideo-toc-mobile nav a:last-child {
  border-bottom: none;
}

.ideo-toc-mobile nav a:hover,
.ideo-toc-mobile nav a.active {
  color: var(--ideo-navy);
  font-weight: 600;
}

/* ---------- Reading progress bar ---------- */
.ideo-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ideo-teal), var(--ideo-teal-soft));
  width: 0;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Share buttons ---------- */
.ideo-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ideo-surface);
  color: var(--ideo-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ideo-share-btn:hover {
  background: var(--ideo-navy);
  color: #fff;
}

/* ---------- Section "Découvrir nos produits" — Slider ---------- */
.ideo-products-slider {
  position: relative;
}

.ideo-products-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 4rem;
}

.ideo-products-grid::-webkit-scrollbar {
  display: none;
}

.ideo-product-card {
  flex: 0 0 calc(50% - 0.5rem);
  scroll-snap-align: start;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--ideo-navy);
  transition: all 0.2s ease;
  border: 1px solid var(--ideo-border);
}

@media (min-width: 768px) {
  .ideo-product-card {
    flex: 0 0 calc(25% - 0.75rem);
  }

  .ideo-products-grid {
    padding-right: 6rem;
  }
}

.ideo-product-card:hover {
  border-color: var(--ideo-teal);
  box-shadow: 0 4px 16px rgba(6, 45, 73, 0.08);
}

/* Slider arrows */
.ideo-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ideo-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ideo-navy);
  z-index: 2;
  transition: all 0.2s ease;
}

.ideo-slider-arrow:hover {
  border-color: var(--ideo-teal);
  color: var(--ideo-teal-text);
}

.ideo-slider-arrow[hidden] {
  display: none;
}

.ideo-slider-arrow--left {
  left: -1.25rem;
}

.ideo-slider-arrow--right {
  right: -1.25rem;
}

/* Fade hint on the right when more content */
.ideo-products-slider::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4rem;
  background: linear-gradient(to right, transparent, var(--ideo-bg, #f7f8fa));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.ideo-products-slider.at-end::after {
  opacity: 0;
}

/* ---------- Mobile sticky CTA ---------- */
.ideo-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ideo-navy-accent);
  padding: 1.08rem 1rem;
  z-index: 999;
  text-align: center;
}

@media (min-width: 1024px) {
  .ideo-mobile-cta {
    display: none;
  }
}

.ideo-mobile-cta a {
  display: block;
  background: #fff;
  color: var(--ideo-navy-accent);
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9375rem;
}

/* ---------- Sub-bar (header category navigation) ---------- */
.ideo-sub-bar {
  background: var(--ideo-surface);
  border-bottom: 1px solid var(--ideo-border);
  padding: 0.625rem 0;
  font-size: 0.875rem;
  position: sticky;
  top: var(--ideo-main-bar-height, 3.5rem);
  z-index: 998;
}

.ideo-sub-bar a {
  color: var(--ideo-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ideo-sub-bar a:hover {
  color: var(--ideo-teal-text);
}

.ideo-sub-bar a.active {
  font-weight: 600;
}

.ideo-sub-bar .ideo-sub-bar-label {
  color: var(--ideo-navy);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ---------- Breadcrumb ---------- */
.ideo-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ideo-text-secondary);
  padding: 1rem 0;
}

.ideo-breadcrumb a {
  color: var(--ideo-text-secondary);
  text-decoration: none;
}

.ideo-breadcrumb a:hover {
  color: var(--ideo-teal-text);
}

/* ---------- Category page header ---------- */
.ideo-cat-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--ideo-border);
}

.ideo-cat-header .ideo-cat-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(77, 179, 181, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ideo-teal-text);
  margin-bottom: 1rem;
}

.ideo-cat-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ideo-navy);
  margin-bottom: 0.5rem;
}

/* ---------- Pagination ---------- */
.ideo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.ideo-pagination a,
.ideo-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ideo-pagination a {
  color: var(--ideo-text);
  background: var(--ideo-surface);
}

.ideo-pagination a:hover {
  background: var(--ideo-navy);
  color: #fff;
}

.ideo-pagination .current {
  background: var(--ideo-navy);
  color: #fff;
  font-weight: 700;
}

/* ---------- Newsletter form ---------- */
.ideo-newsletter {
  background: var(--ideo-surface);
  border-radius: 12px;
  padding: 1.5rem;
}

.ideo-newsletter input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ideo-border);
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ideo-newsletter button {
  width: 100%;
  padding: 0.625rem;
  background: var(--ideo-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ideo-newsletter button:hover {
  background: var(--ideo-navy-light);
}

/* ---------- Custom Footer ---------- */
.ideo-footer {
  background: var(--ideo-navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.6;
}

.ideo-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ideo-footer a:hover {
  color: var(--ideo-teal-text);
}

.ideo-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ideo-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ideo-footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.ideo-footer-logo {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.ideo-footer-heading,
.ideo-footer h4 {
  color: #fff;
  font-family: var(--ideo-font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ideo-footer ul,
.ideo-footer .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ideo-footer ul li,
.ideo-footer .menu-item {
  margin-bottom: 0.5rem;
  display: block;
}

.ideo-footer .menu-item a {
  display: block;
}

.ideo-footer ul.ideo-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.ideo-footer ul.ideo-footer-contact li svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  opacity: 0.6;
}

.ideo-footer ul.ideo-footer-contact li > span,
.ideo-footer ul.ideo-footer-contact li > a {
  flex: 1 1 auto;
  min-width: 0;
}

.ideo-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .ideo-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ideo-footer-bottom p {
  margin: 0;
}

.ideo-footer-legal {
  display: flex;
  gap: 1.25rem;
}

.ideo-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.ideo-footer-legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Fade-up animation ---------- */
@keyframes ideoFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ideo-fade-up {
  animation: ideoFadeUp 0.6s ease forwards;
  opacity: 0;
}

/* ---------- Focus visible ---------- */
.blog *:focus-visible,
.category *:focus-visible,
.single-post *:focus-visible {
  outline: 2px solid var(--ideo-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ideo-card,
  .ideo-fade-up,
  .ideo-link-arrow svg,
  .ideo-progress-bar {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Mobile padding for sticky CTA ---------- */
@media (max-width: 1023px) {
  .blog,
  .category,
  .single-post {
    padding-bottom: 72px;
  }
}

/* ---------- Main grid layout ---------- */
.ideo-main-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ideo-main-grid {
    grid-template-columns: 1fr 320px;
  }
}

.ideo-articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ideo-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
