/*
Theme Name: AIStackDigest Astra Child
Theme URI: https://aistackdigest.com
Description: Astra Child Theme optimized for AI content and AdSense compliance
Author: AIStackDigest
Author URI: https://aistackdigest.com
Template: astra
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Header Optimizations */
.site-header {
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Content Readability */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Ad Placements */
.asd-ad-container {
    margin: 2em 0;
    text-align: center;
    min-height: 280px;
    clear: both;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .entry-content {
        font-size: 1em;
        padding: 0 15px;
    }
    
    .site-header {
        padding: 0.5em 1em;
    }
}

/* Cookie Notice */
#eu-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    padding: 1em;
    text-align: center;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    z-index: 999999;
}

#eu-cookie-notice button {
    margin-left: 1em;
    padding: 0.5em 1em;
    background: #3459e6;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Typography */
.entry-content h2 {
    margin-top: 1.5em;
    color: #2d2d2d;
}

.entry-content p {
    margin-bottom: 1.5em;
}/* ── Section shell ──────────────────────────── */
.asd-latest-news,
.asd-latest-reviews {
  padding: 3.5rem 0;
  background: #f8fafc;
}
.asd-latest-reviews { background: #fff; }

.asd-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.asd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.asd-section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.asd-view-all {
  font-size: .9rem;
  font-weight: 600;
  color: #3459e6;
  text-decoration: none;
  white-space: nowrap;
}
.asd-view-all:hover { text-decoration: underline; }

/* ── News grid ──────────────────────────────── */
.asd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) { .asd-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .asd-news-grid { grid-template-columns: 1fr; } }

.asd-news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.asd-news-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.asd-news-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.asd-news-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.asd-news-card:hover .asd-news-img-wrap img { transform: scale(1.04); }

.asd-news-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }

.asd-news-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #3459e6;
  text-decoration: none;
  margin-bottom: .4rem;
  display: inline-block;
}

.asd-news-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; }
.asd-news-title a { color: #0f172a; text-decoration: none; }
.asd-news-title a:hover { color: #3459e6; }

.asd-news-excerpt { font-size: .875rem; color: #64748b; line-height: 1.5; flex: 1; margin: 0 0 .75rem; }

.asd-news-meta { font-size: .78rem; color: #94a3b8; }
.asd-news-read { margin-left: .25rem; }

/* ── Reviews grid ───────────────────────────── */
.asd-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .asd-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .asd-reviews-grid { grid-template-columns: 1fr; } }

.asd-review-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
}
.asd-review-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.asd-review-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.asd-review-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.asd-review-card:hover .asd-review-img-wrap img { transform: scale(1.04); }

.asd-review-body { padding: 1rem 1.25rem 1.25rem; }
.asd-review-badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #f59e0b; margin-bottom: .4rem; display: inline-block;
}
.asd-review-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; }
.asd-review-title a { color: #0f172a; text-decoration: none; }
.asd-review-title a:hover { color: #3459e6; }
.asd-review-excerpt { font-size: .875rem; color: #64748b; line-height: 1.5; margin: 0 0 .6rem; }
.asd-review-body time { font-size: .78rem; color: #94a3b8; }

/* ── AdSense slot ───────────────────────────── */
.asd-ad-slot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
  min-height: 90px;
  clear: both;
}
.asd-ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: .65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

/* ═══════════════════════════════════════════════════
   DESKTOP FIXES — AIStackDigest
   ═══════════════════════════════════════════════════ */

/* ── Force full-width on homepage template ── */
.ast-page-builder-template #primary,
.ast-page-builder-template .site-content,
.ast-page-builder-template #content,
.ast-page-builder-template .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

/* ── Hero full-width dark section ── */
.asd-hero {
  width: 100%;
  min-height: 480px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.asd-hero-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ── Homepage sections full-width ── */
.asd-home {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.asd-section-inner,
.asd-tools-section .asd-section-inner,
.asd-latest-news .asd-section-inner,
.asd-latest-reviews .asd-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── News + Reviews grids: 3 cols on desktop ── */
@media (min-width: 1024px) {
  .asd-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
  }
  .asd-reviews-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
  }
  .asd-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* ── Professional Header / Nav ── */
#masthead {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.main-header-bar {
  padding: 0 !important;
  min-height: 64px !important;
}

.ast-container {
  max-width: 1240px;
}

/* Logo */
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

/* Nav links */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 0 1rem !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
  color: #3459e6 !important;
  border-bottom-color: #3459e6 !important;
}

/* Newsletter CTA in nav */
.ast-builder-menu-1 .main-header-menu > .menu-item:last-child > .menu-link {
  background: #3459e6 !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 0 1.1rem !important;
  margin-left: 0.5rem !important;
  height: 36px !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  border-bottom: none !important;
}
.ast-builder-menu-1 .main-header-menu > .menu-item:last-child > .menu-link:hover {
  background: #2547c7 !important;
  color: #fff !important;
}

/* Dropdown menus */
.ast-builder-menu-1 .sub-menu {
  background: #ffffff !important;
  border-top: 2px solid #3459e6 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
  min-width: 200px !important;
  padding: 0.5rem 0 !important;
}

.ast-builder-menu-1 .sub-menu .menu-item .menu-link {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 0.55rem 1.25rem !important;
  display: block !important;
  transition: background .15s, color .15s;
}

.ast-builder-menu-1 .sub-menu .menu-item .menu-link:hover {
  background: #f1f5f9 !important;
  color: #3459e6 !important;
}

/* ── Card improvements ── */
.asd-news-card,
.asd-review-card {
  border: 1px solid #e2e8f0;
}

/* ── Section padding desktop ── */
@media (min-width: 1024px) {
  .asd-latest-news,
  .asd-latest-reviews {
    padding: 4rem 0;
  }
  .asd-section-header {
    margin-bottom: 2rem;
  }
}

/* ── Remove Astra's default entry padding on homepage ── */
.ast-page-builder-template .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Category pills desktop ── */
.asd-cats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  margin: 1.5rem auto !important;
  max-width: 900px !important;
}

/* ── Trust bar / stats full width ── */
.asd-trust {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}

.asd-trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════
   ARTICLE / SINGLE POST — PROFESSIONAL DESKTOP LAYOUT
   ═══════════════════════════════════════════════════ */

.single .site-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single #primary {
  max-width: 780px;
  margin: 2.5rem auto;
  padding: 0;
}

/* Article title */
.single .entry-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Article meta line */
.article-meta {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Key stats strip inside articles */
.asd-key-stats {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.asd-key-stats .stat-item {
  flex: 1;
  min-width: 100px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.asd-key-stats .stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #3459e6;
  line-height: 1;
}

.asd-key-stats .stat-item span {
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .3rem;
  display: block;
}

/* Article body typography */
.single .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 100%;
}

.single .entry-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.5rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e2e8f0;
}

.single .entry-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 .5rem;
}

.single .entry-content p {
  margin-bottom: 1.25rem;
}

.single .entry-content ul,
.single .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.single .entry-content ul li,
.single .entry-content ol li {
  margin-bottom: .4rem;
}

.single .entry-content strong {
  color: #0f172a;
  font-weight: 700;
}

/* Featured image */
.single .post-thumbnail {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.single .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE DESKTOP — FULL WIDTH FIX
   ═══════════════════════════════════════════════════ */

/* Remove Astra's default page padding on home template */
.page-template-home .ast-container,
.page-template-home #primary,
.page-template-home .site-content,
.page-template-home #content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Ensure home sections span full width */
.asd-home > * {
  width: 100%;
}

/* Tools strip */
.asd-strip {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: .75rem 0;
}

.asd-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}

/* Category news sections */
.asd-latest-news,
.asd-latest-reviews {
  width: 100%;
}

/* Sidebar ad desktop */
@media (min-width: 1200px) {
  .single .site-content .ast-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem;
  }
  .single #secondary {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE FULL-WIDTH BREAKOUT — DESKTOP FIX
   Forces homepage to use full viewport width,
   escaping Astra's .ast-container constraints
   ═══════════════════════════════════════════════════ */

/* Step 1: Kill ALL width constraints on ancestor chain */
.home .site-content,
.home .ast-container,
.home #content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Step 2: asd-home fills viewport */
.asd-home {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  overflow-x: hidden;
}

/* Step 3: Hero — full dark background, large desktop layout */
.asd-hero {
  width: 100% !important;
  min-height: 520px;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.asd-hero-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Step 4: All inner sections use 1240px centred inner wrapper */
.asd-strip,
.asd-cats-section,
.asd-latest-news,
.asd-latest-reviews,
.asd-tools-section,
.asd-newsletter-section,
.asd-trust {
  width: 100% !important;
  max-width: 100% !important;
}

.asd-strip-inner,
.asd-cats-inner,
.asd-section-inner,
.asd-newsletter-inner,
.asd-trust-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Step 5: Grids — 3-col news, 4-col tools on desktop */
@media (min-width: 1024px) {
  .asd-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
    width: 100% !important;
  }
  .asd-reviews-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
    width: 100% !important;
  }
  .asd-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  .asd-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .asd-news-grid,
  .asd-reviews-grid,
  .asd-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .asd-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* Step 6: Category pills strip */
.asd-strip {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  overflow: hidden;
}

.asd-strip-inner {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Step 7: Section backgrounds alternate properly */
.asd-latest-news { background: #f8fafc; padding: 3.5rem 0; }
.asd-latest-reviews { background: #fff; padding: 3.5rem 0; }
.asd-tools-section { background: #f0f9ff; padding: 3.5rem 0; }

/* Step 8: Section header row */
.asd-section-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════
   CRITICAL FIX: Astra content container is flex-row
   Force it to stack sections vertically
   ═══════════════════════════════════════════════════ */

/* The content ast-container wraps asd-home sections as flex items side by side.
   Force column stacking and full width on all homepage sections. */
#content .ast-container {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

#content .ast-container > * {
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
}

/* asd-home itself is a flex/block container — also fix its children */
.asd-home {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  position: static !important;
}

/* Every direct section in asd-home: full width */
.asd-home > section,
.asd-home > div {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Hero re-affirm */
.asd-hero {
  width: 100% !important;
  min-height: 500px;
  box-sizing: border-box;
}

/* Sections from home.php (appended after asd-home) */
.asd-latest-news,
.asd-latest-reviews,
.asd-ad-slot--homepage {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ── Category archive: always-clickable post cards ── */
/* Make entire article card clickable, not just the image */
.ast-archive-post .post-thumb-img-content,
.ast-article-post .post-thumb-img-content {
  display: block;
}
/* Fallback placeholder for posts missing featured image */
.ast-archive-post .post-thumb-img-content a:empty,
.ast-article-post .post-thumb-img-content a:empty {
  display: block;
  min-height: 200px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}
/* Ensure title link is always visible and clickable */
.ast-archive-post .entry-title a,
.ast-article-post .entry-title a {
  pointer-events: auto !important;
  cursor: pointer !important;
  color: inherit;
}
/* Posts without thumbnails: show branded placeholder */
.ast-archive-post:not(:has(.post-thumb-img-content img)) .ast-blog-featured-section::before,
.ast-article-post:not(:has(.post-thumb-img-content img)) .ast-blog-featured-section::before {
  content: '';
  display: block;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4f46e5 100%) center/cover no-repeat;
}
/* Mobile: ensure cards are touch-friendly */
@media (max-width: 768px) {
  .ast-archive-post,
  .ast-article-post {
    cursor: pointer;
  }
  .ast-archive-post .entry-title,
  .ast-article-post .entry-title {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* ══════════════════════════════════════════
   GLOBAL MOBILE FIXES — added 2026-03-20
   ══════════════════════════════════════════ */

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
  max-width: 100%;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Single post: reset desktop padding/width on mobile */
@media (max-width: 768px) {
  .single .site-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .single #primary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }
  .single .ast-post-format-,
  .single .single-layout-1 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {

  /* ── General layout ── */
  .entry-content,
  .wp-block-group,
  .wp-block-columns {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* ── Tables: make scrollable not overflowing ── */
  .wp-block-table, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  /* ── Images ── */
  img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── Code blocks ── */
  pre, code, .wp-block-code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
  }

  /* ── Forms & inputs ── */
  input[type="email"],
  input[type="text"],
  input[type="search"],
  textarea,
  select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }

  /* ── Buttons ── */
  .wp-block-button__link,
  .ast-button,
  button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* ── Hero sections ── */
  .asd-hero {
    padding: 40px 16px !important;
    min-height: auto !important;
  }
  .asd-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  }

  /* ── Home page news cards ── */
  .asd-news-card,
  .asd-review-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ── WP columns: stack on mobile ── */
  .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  /* ── Astra blog archive cards ── */
  .ast-article-post,
  .ast-archive-post {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* ── Sidebar / widgets: hide or stack ── */
  .ast-right-sidebar .ast-sidebar-wrap,
  .ast-left-sidebar .ast-sidebar-wrap {
    width: 100% !important;
    float: none !important;
  }

  /* ── Navigation: ensure hamburger menu works ── */
  .ast-mobile-menu-buttons {
    display: flex !important;
  }

  /* ── Page padding ── */
  .ast-container,
  .entry-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .asd-nl-hero h1,
  .entry-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  .wp-block-button__link {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}

/* Partners page — no featured image */
.page-id-1779 .ast-single-post-featured-section {
    display: none !important;
}
