/*
 * Theme Name:   Aiweko Child
 * Theme URI:    https://aiweko.com
 * Description:  Child theme for Aiweko cross-border platform
 * Author:       Aiweko
 * Author URI:   https://aiweko.com
 * Template:     astra
 * Version:      5.6.1
 * Text Domain:  aiweko
 * Domain Path:  /languages
 * License:      GPL-2.0-or-later
 *
 * Design basis: 1920×1080px, container max-width 75rem (1200px), centered
 * Responsive: 1280px / 1366px / 1440px / 1920px via media queries
 * Layout: Flex + Grid, global box-sizing: border-box
 * Units: widths in %/vw/fr, fonts in rem/em, no fixed pixel sizes
 */

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* === Colors === */
  --aiweko-primary:      #0A5CB8;
  --aiweko-secondary:    #00A878;
  --aiweko-accent:       #F5A623;
  --aiweko-dark:         #0D1B2A;
  --aiweko-light:        #F4F7FC;
  --color-energy:        #E85D3D;
  --color-materials:     #1D9E75;
  --color-smart:         #5B4CE8;

  /* === Typography === */
  --font-body:    'Inter', 'Noto Sans', sans-serif;
  --font-heading: 'Inter', 'Noto Sans SC', sans-serif;
  --font-rtl:     'Noto Sans Arabic', 'Tahoma', sans-serif;

  /* === Spacing (rem-based) === */
  --space-xs:   0.25rem;   /* 4px */
  --space-sm:   0.5rem;    /* 8px */
  --space-md:   0.75rem;   /* 12px */
  --space-base: 1rem;      /* 16px */
  --space-lg:   1.25rem;   /* 20px */
  --space-xl:   1.5rem;    /* 24px */
  --space-2xl:  2rem;      /* 32px */
  --space-3xl:  2.5rem;    /* 40px */
  --space-4xl:  3rem;      /* 48px */
  --space-5xl:  4rem;      /* 64px */
  --space-6xl:  5rem;      /* 80px */

  /* === Container === */
  --max-width: 75rem;      /* 1200px */

  /* === Border radius (rem-based) === */
  --radius-sm:    0.375rem;  /* 6px */
  --radius-md:    0.625rem;  /* 10px */
  --radius-lg:    1rem;      /* 16px */
  --radius-full:  6.25rem;   /* 100px */

  /* === Shadows === */
  --shadow-sm:  0 0.0625rem 0.1875rem rgba(0,0,0,0.08);
  --shadow-md:  0 0.25rem 1rem rgba(0,0,0,0.12);
  --shadow-lg:  0 0.5rem 2rem rgba(0,0,0,0.16);

  /* === Sizing === */
  --icon-sm:  1.5rem;   /* 24px */
  --icon-md:  2.25rem;  /* 36px */
  --icon-lg:  3.375rem; /* 54px */
  --icon-xl:  4.5rem;   /* 72px */
}

html {
  font-size: 100%; /* 16px baseline */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--aiweko-dark);
  line-height: 1.7;
  background: #fff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--aiweko-dark);
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

html[lang="ar"] body, .rtl body {
  font-family: var(--font-rtl);
  direction: rtl;
  text-align: right;
}

/* ============================================================
   ASTRA RESET — Strip all Astra container constraints on
   custom template pages (keep in external CSS, not inline)
   ============================================================ */

body.aiweko-custom-page .ast-single-entry-banner,
body.aiweko-custom-page .ast-article-header,
body.aiweko-custom-page .entry-header,
body.aiweko-custom-page .page-title,
body.aiweko-custom-page .ast-article-image-container,
body.aiweko-custom-page .entry-title {
  display: none !important;
}

body.aiweko-custom-page .ast-separate-container {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.aiweko-custom-page .ast-separate-container .ast-article-single {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.aiweko-custom-page .site-content,
body.aiweko-custom-page #content,
body.aiweko-custom-page .ast-container,
body.aiweko-custom-page .site-content > .ast-container,
body.aiweko-custom-page .content-area,
body.aiweko-custom-page #primary,
body.aiweko-custom-page .site-main,
body.aiweko-custom-page .ast-article-single,
body.aiweko-custom-page .ast-article-inner,
body.aiweko-custom-page .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  contain: none !important;
}

/* CRITICAL: Prevent flex children from overflowing their containers */
body.aiweko-custom-page .ast-container,
body.aiweko-custom-page #primary,
body.aiweko-custom-page .site-content {
  min-width: 0 !important;
}

/* Force Astra #page wrapper to allow content to shrink */
body.aiweko-custom-page #page.site,
body.aiweko-custom-page #page {
  overflow-x: hidden !important;
}

/* Safety net for any page template */
body[class*="page-template"] .ast-single-entry-banner,
body[class*="page-template"] .ast-article-header,
body[class*="page-template"] .entry-header,
body[class*="page-template"] .page-title,
body[class*="page-template"] .ast-article-image-container {
  display: none !important;
}

body[class*="page-template"] .ast-separate-container {
  background: transparent !important;
  box-shadow: none !important;
}

body[class*="page-template"] .site-content,
body[class*="page-template"] #content,
body[class*="page-template"] .content-area,
body[class*="page-template"] #primary,
body[class*="page-template"] .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

body[class*="page-template"] .ast-article-single,
body[class*="page-template"] .ast-article-inner {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body[class*="page-template"] .site-content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   LAYOUT — Container & Section
   ============================================================ */

.aiweko-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-2xl);
}

.aiweko-section {
  padding-block: var(--space-5xl);
}

.aiweko-section--gray {
  background: #f0f4f8;
}

.aiweko-section--dark {
  background: #0D1B2A;
  color: #fff;
}

.aiweko-section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.aiweko-section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: var(--space-base);
}

.aiweko-section-header p {
  color: #6b7280;
  max-width: 33.75rem;
  margin-inline: auto;
  font-size: 0.9375rem;
}

.aiweko-section--dark .aiweko-section-header p {
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   HEADER — Desktop Navigation (v5.6.0 aligned with design)
   ============================================================ */

.site-header {
  background: var(--aiweko-dark) !important;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.3);
}

/* Logo: AI white + WEKO green — matches design .logo span */
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  color: #fff !important;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: #fff !important;
}
.ast-site-identity .site-title a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Green accent on "WEKO" — target Astra logo via customizer or use :after trick */
/* If site title is "AIWEKO", the whole thing is white. Green accent handled via
   Astra > Customize > Site Identity > Site Title Color — or we use filter */

.main-header-bar .ast-builder-grid-row {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Above Header (top bar) === */
.ast-above-header {
  background: #0a1a2e !important;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ast-above-header .ast-above-header-section {
  display: flex;
  align-items: center;
  gap: var(--space-base);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.ast-above-header .ast-above-header-section a,
.ast-above-header .widget,
.ast-above-header .widget * {
  color: rgba(255,255,255,0.55) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.55) !important;
}

.ast-above-header .ast-above-header-section a:hover,
.ast-above-header .widget a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Language switcher buttons in above-header */
.ast-above-header .ast-above-header-section .lang-btn,
.ast-above-header .wpml-ls-legacy-dropdown a,
.ast-above-header .wpml-ls-legacy-dropdown-click a {
  color: rgba(255,255,255,0.55) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.55) !important;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.25rem;
  padding: 0.125em 0.5em;
  font-size: 0.78rem;
  transition: all 0.2s;
}
.ast-above-header .ast-above-header-section .lang-btn:hover,
.ast-above-header .wpml-ls-legacy-dropdown a:hover,
.ast-above-header .wpml-ls-legacy-dropdown-click:hover > a {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255,255,255,0.4);
}

/* === Main Navigation === */
@media (min-width: 57.625em) { /* 922px */
  .ast-primary-header-bar nav a,
  .ast-primary-header-bar nav .menu-link {
    color: rgba(255,255,255,0.8) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4em 0.85em;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .ast-primary-header-bar nav a:hover,
  .ast-primary-header-bar nav .menu-link:hover,
  .ast-primary-header-bar nav .current-menu-item > a,
  .ast-primary-header-bar nav .current-menu-item > .menu-link {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .main-header-bar {
    padding-inline: var(--space-2xl);
  }

  /* Dropdown submenu */
  .ast-primary-header-bar .menu-item-has-children {
    position: relative;
  }

  .ast-primary-header-bar .menu-item-has-children > a .ast-header-navigation-arrow,
  .ast-primary-header-bar .menu-item-has-children > .ast-menu-toggle {
    display: none;
  }

  .ast-primary-header-bar .sub-menu,
  .ast-primary-header-bar .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14.375rem;
    background: var(--aiweko-dark) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: var(--space-xs) 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1000;
    border: 0.0625rem solid rgba(255,255,255,0.08);
    border-top: 0.125rem solid var(--aiweko-primary);
  }

  .ast-primary-header-bar .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ast-primary-header-bar .sub-menu li { margin: 0; }

  .ast-primary-header-bar .sub-menu a,
  .ast-primary-header-bar .sub-menu .menu-link {
    display: block;
    padding: 0.65em 1.25em;
    color: rgba(255,255,255,0.8) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
    font-size: 0.875rem;
    border-radius: 0;
    transition: background 0.15s, color 0.15s, padding-left 0.2s;
  }

  .ast-primary-header-bar .sub-menu a:hover,
  .ast-primary-header-bar .sub-menu .menu-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding-left: 1.5em;
  }

  .ast-primary-header-bar .sub-menu .ast-icon.icon-arrow { display: none; }

  /* B2C Shop CTA button in nav — green, matches design .nav-cta */
  .ast-primary-header-bar .nav-cta > a,
  .ast-primary-header-bar .nav-cta > .menu-link {
    background: var(--aiweko-secondary) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5em 1.2em;
    transition: background 0.2s, transform 0.15s;
  }

  .ast-primary-header-bar .nav-cta > a:hover,
  .ast-primary-header-bar .nav-cta > .menu-link:hover {
    background: #008f66 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-0.0625rem);
  }
}

/* === Mobile menu === */
.ast-header-break-point .ast-primary-header-bar nav a,
.ast-header-break-point .ast-primary-header-bar nav .menu-link {
  color: rgba(255,255,255,0.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}
.ast-header-break-point .ast-primary-header-bar nav a:hover,
.ast-header-break-point .ast-primary-header-bar nav .menu-link:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.ast-header-break-point .nav-cta > a,
.ast-header-break-point .nav-cta > .menu-link {
  background: var(--aiweko-secondary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  padding: 0.7em 1.2em;
  margin: 0.5em 0;
}

/* ============================================================
   HERO — Full-width gradient banner
   ============================================================ */

.aiweko-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #0A5CB8 55%, #00A878 100%);
  padding: clamp(3.125rem, 8vw, 6.25rem) var(--space-2xl) clamp(3rem, 6vw, 5rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.aiweko-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(10,92,184,0.4) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(0,168,120,0.3) 0%, transparent 60%);
}

.aiweko-hero > * {
  position: relative;
}

.aiweko-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 0.0625rem solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 0.3125em 1.125em;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75em;
  color: rgba(255,255,255,0.9);
}

.aiweko-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff !important;
  max-width: 51.25rem;
  margin: 0 auto 1.5em;
  font-weight: 700;
  line-height: 1.2;
}

.aiweko-hero h1 em {
  font-style: normal;
  color: #7dd3c0 !important;
  -webkit-text-fill-color: #7dd3c0 !important;
}

.aiweko-hero > p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 36.25rem;
  margin: 0 auto 2.5em;
}

.aiweko-hero-cta {
  display: flex;
  gap: var(--space-base);
  justify-content: center;
  flex-wrap: wrap;
}

.aiweko-hero-stats {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5em;
  padding-top: 2.5em;
  border-top: 0.0625rem solid rgba(255,255,255,0.15);
}

.aiweko-hero-stat { text-align: center; }

.aiweko-hero-stat .stat-num {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
}

.aiweko-hero-stat .stat-label {
  font-size: 0.8125rem;
  opacity: 0.65;
  margin-top: 0.125em;
}

@media (max-width: 48em) { /* 768px */
  .aiweko-hero-stats { gap: var(--space-2xl); margin-top: 2.5em; padding-top: 2em; }
  .aiweko-hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 30em) { /* 480px */
  .aiweko-hero-stats { gap: var(--space-xl); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.aiweko-trust-bar {
  background: #0a1528;
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.aiweko-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
}

.aiweko-trust-item .trust-icon {
  font-size: var(--icon-sm);
}

@media (max-width: 48em) {
  .aiweko-trust-bar { gap: var(--space-lg); padding: var(--space-lg) var(--space-base); }
  .aiweko-trust-item { font-size: 0.75rem; }
}

@media (max-width: 30em) {
  .aiweko-trust-bar { gap: var(--space-md); }
  .aiweko-trust-item { font-size: 0.6875rem; gap: var(--space-sm); }
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */

.aiweko-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.aiweko-cat-card {
  border: 0.09375rem solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  display: block;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.aiweko-cat-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.75rem 2.5rem rgba(0,0,0,0.12);
}

.aiweko-cat-card.energy    { border-top: 0.25rem solid var(--color-energy); }
.aiweko-cat-card.materials { border-top: 0.25rem solid var(--color-materials); }
.aiweko-cat-card.smart     { border-top: 0.25rem solid var(--color-smart); }
.aiweko-cat-card.energy:hover    { border-color: var(--color-energy); }
.aiweko-cat-card.materials:hover { border-color: var(--color-materials); }
.aiweko-cat-card.smart:hover     { border-color: var(--color-smart); }

.aiweko-cat-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: var(--space-lg);
}

.energy    .aiweko-cat-icon { background: #fff5f2; }
.materials .aiweko-cat-icon { background: #f0faf5; }
.smart     .aiweko-cat-icon { background: #f2f0fe; }

.aiweko-cat-subtitle {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aiweko-cat-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-base);
  color: var(--aiweko-dark);
}

.aiweko-cat-card > p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* Sub-category list */
.aiweko-subcat-list {
  list-style: none;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
}

.aiweko-subcat-list li {
  padding: 0.35em 0;
  font-size: 0.8125rem;
  color: #6b7280;
  border-bottom: 0.0625rem solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.aiweko-subcat-list li::before {
  content: '\203A';
  color: #d1d5db;
  font-weight: 700;
}

.aiweko-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: var(--space-lg);
}

.aiweko-cat-tag {
  border-radius: var(--radius-full);
  padding: 0.1875em 0.625em;
  font-size: 0.75rem;
  font-weight: 500;
  border: 0.0625rem solid;
}

.aiweko-cat-tag--energy    { background: #fff5f2; color: #E85D3D; border-color: #fca; }
.aiweko-cat-tag--materials { background: #f0faf5; color: #1D9E75; border-color: #9fe1cb; }
.aiweko-cat-tag--smart     { background: #f2f0fe; color: #5B4CE8; border-color: #cec; }

.aiweko-cat-link {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.energy    .aiweko-cat-link { color: var(--color-energy); }
.materials .aiweko-cat-link { color: var(--color-materials); }
.smart     .aiweko-cat-link { color: var(--color-smart); }

@media (max-width: 64em) { /* 1024px */
  .aiweko-cat-card { padding: 1.75rem; }
}

@media (max-width: 56.25em) { /* 900px */
  .aiweko-categories { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40em) { /* 640px */
  .aiweko-categories { grid-template-columns: 1fr; }
  .aiweko-cat-card { padding: var(--space-xl); }
}

/* ============================================================
   B2B / B2C SPLIT CARDS
   ============================================================ */

.aiweko-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 68.75rem;
  margin-inline: auto;
}

.aiweko-split-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid #e5e7eb;
  transition: box-shadow 0.25s, transform 0.25s;
}

.aiweko-split-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.aiweko-split-card__header {
  padding: 2.5em 2em;
  color: #fff;
}

.aiweko-split-card__header--b2c {
  background: linear-gradient(135deg, #00A878, #0D1B2A);
}

.aiweko-split-card__header--b2b {
  background: linear-gradient(135deg, #0A5CB8, #0D1B2A);
}

.aiweko-split-card__header .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75em;
}

.aiweko-split-card__header h2 {
  color: #fff !important;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.aiweko-split-card__header p {
  opacity: 0.85;
  font-size: 0.875rem;
  margin: 0;
}

.aiweko-split-card__body {
  padding: var(--space-2xl);
}

.aiweko-split-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75em;
}

.aiweko-split-card__body li {
  padding: 0.5em 0;
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.6em;
  border-bottom: 0.0625rem solid #f3f4f6;
}

.aiweko-split-card__body li:last-child { border-bottom: none; }
.aiweko-split-card__body .check-b2c { color: #00A878; font-weight: 700; }
.aiweko-split-card__body .check-b2b { color: #0A5CB8; font-weight: 700; }

@media (max-width: 56.25em) {
  .aiweko-split { grid-template-columns: 1fr; gap: var(--space-xl); }
  .aiweko-split-card__header { padding: 2em 1.5em; }
  .aiweko-split-card__body { padding: var(--space-xl); }
}

/* ============================================================
   INTERNATIONAL TRADE & PAYMENT
   ============================================================ */

.aiweko-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.aiweko-payment-methods h3,
.aiweko-shipping-methods h3 {
  font-size: 1.0625rem;
  margin-bottom: 1.25em;
  padding-bottom: 0.75em;
  border-bottom: 0.125rem solid var(--aiweko-primary);
}

.aiweko-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.aiweko-method-item {
  background: #f8fafc;
  border: 0.0625rem solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 0.85em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aiweko-method-item:hover {
  border-color: var(--aiweko-primary);
  box-shadow: 0 0 0 0.1875rem rgba(10,92,184,0.08);
}

.aiweko-method-item .method-icon {
  font-size: var(--icon-md);
  margin-bottom: 0.35em;
}

.aiweko-method-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.aiweko-method-item p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* Incoterms */
.aiweko-incoterms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.aiweko-inco-badge {
  background: #eff6ff;
  color: var(--aiweko-primary);
  border: 0.0625rem solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.5em 1em;
  font-size: 0.8125rem;
  font-weight: 600;
}

.aiweko-shipping-heading {
  margin-top: 1.5em !important;
}

@media (max-width: 56.25em) {
  .aiweko-payment-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

@media (max-width: 40em) {
  .aiweko-method-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RFQ FORM
   ============================================================ */

.aiweko-rfq-section { background: #f8fafc; }

.aiweko-rfq-form {
  max-width: 50rem;
  margin: 0 auto;
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 2.5em;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.06);
}

.aiweko-rfq-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-base);
}

.aiweko-rfq-form .form-row-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.aiweko-rfq-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: #374151;
}

.aiweko-rfq-form input,
.aiweko-rfq-form select,
.aiweko-rfq-form textarea {
  width: 100%;
  padding: 0.6em 0.9em;
  border: 0.0625rem solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aiweko-rfq-form input:focus,
.aiweko-rfq-form select:focus,
.aiweko-rfq-form textarea:focus {
  border-color: var(--aiweko-primary);
  box-shadow: 0 0 0 0.1875rem rgba(10,92,184,0.1);
  outline: none;
}

.aiweko-rfq-form .form-group {
  margin-bottom: var(--space-base);
}

.btn-submit-rfq {
  width: 100%;
  justify-content: center;
  padding: 1em !important;
  font-size: 1rem;
}

.rfq-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: var(--space-md);
  margin-bottom: 0;
}

@media (max-width: 40em) {
  .aiweko-rfq-form { padding: var(--space-xl); }
  .aiweko-rfq-form .form-row,
  .aiweko-rfq-form .form-row-3col { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY CHOOSE — Grid
   ============================================================ */

.aiweko-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.aiweko-reason-card {
  padding: 1.75em;
  background: rgba(255,255,255,0.05);
  border: 0.0625rem solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: background 0.2s, border-color 0.2s;
}

.aiweko-reason-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.aiweko-reason-card .reason-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.aiweko-reason-card h3 {
  color: #fff !important;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.aiweko-reason-card p {
  opacity: 0.6;
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.65;
}

/* Narrow container for Why Choose section */
.aiweko-container--narrow {
  max-width: 68.75rem;
  margin-inline: auto;
  padding-inline: var(--space-2xl);
}

/* Narrow container for CTA banner */
.aiweko-container--cta {
  max-width: 43.75rem;
  margin-inline: auto;
  padding-inline: var(--space-2xl);
}

@media (max-width: 56.25em) {
  .aiweko-reasons { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 34em) { /* 544px */
  .aiweko-reasons { grid-template-columns: 1fr; gap: var(--space-base); }
  .aiweko-reason-card { padding: 1.5em; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.aiweko-cta-banner {
  background: linear-gradient(135deg, #0A5CB8 0%, #00A878 100%);
  padding: clamp(3rem, 6vw, 6rem) var(--space-2xl);
  text-align: center;
  color: #fff;
}

.aiweko-cta-banner h2 {
  color: #fff !important;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  margin-bottom: var(--space-base);
}

.aiweko-cta-banner p {
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: 2.5em;
  max-width: 37.5rem;
  margin-inline: auto;
}

.aiweko-cta-banner .cta-buttons {
  display: flex;
  gap: var(--space-base);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 48em) {
  .aiweko-cta-banner h2 { font-size: 1.625rem; }
}

@media (max-width: 30em) {
  .aiweko-cta-banner .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  background: var(--aiweko-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7em 1.8em;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
}

.btn-primary:hover {
  background: #008a62;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.75rem rgba(0,168,120,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--aiweko-primary);
  border: 0.125rem solid var(--aiweko-primary);
  border-radius: var(--radius-sm);
  padding: 0.6em 1.75em;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--aiweko-primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 0.125rem solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 0.7em 1.8em;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-block {
  display: flex !important;
  width: 100%;
  justify-content: center;
  padding: 0.8em !important;
}

.btn-b2b { background: var(--aiweko-primary) !important; }
.btn-b2b:hover { background: #094fa0 !important; }
.btn-b2c-shop { background: var(--aiweko-secondary) !important; }
.btn-b2c-shop:hover { background: #008a62 !important; }
.btn-cta-white { background: #fff !important; color: var(--aiweko-primary) !important; }
.btn-cta-white:hover { background: #f0f4f8 !important; transform: translateY(-0.0625rem); box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.woocommerce ul.products li.product {
  border: 0.0625rem solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: var(--space-base);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-0.125rem);
}

.woocommerce a.button,
.woocommerce button.button {
  background: var(--aiweko-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.6em 1.25em;
  border: none;
  transition: background 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #094fa0;
  color: #fff;
}

.woocommerce .price {
  color: var(--aiweko-primary);
  font-weight: 700;
}

.aiweko-made-in-china {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125em 0.5em;
  border-radius: var(--radius-full);
  border: 0.0625rem solid #fcd34d;
}

@media (max-width: 64em) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 48em) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--space-base); } }
@media (max-width: 30em) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ============================================================
   B2B INQUIRY PAGE
   ============================================================ */

.aiweko-b2b-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #0A5CB8 100%);
  padding: clamp(3.125rem, 8vw, 6.25rem) var(--space-2xl) clamp(2.5rem, 5vw, 4.375rem);
  text-align: center;
  color: #fff;
}

.aiweko-b2b-hero h1 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  color: #fff !important;
  margin-bottom: var(--space-base);
}

.aiweko-b2b-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 37.5rem;
  margin: 0 auto;
}

.aiweko-b2b-section {
  background: #f8fafc;
  padding: var(--space-4xl) var(--space-2xl);
  border-top: 0.0625rem solid #e5e7eb;
}

.aiweko-b2b-section .section-title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  text-align: center;
  margin-bottom: var(--space-base);
}

.aiweko-b2b-section .section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: var(--space-3xl);
}

.aiweko-trade-methods {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-base);
  max-width: 56.25rem;
  margin: 0 auto var(--space-3xl);
}

.aiweko-trade-method {
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.25em 0.5em;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aiweko-trade-method:hover {
  border-color: var(--aiweko-primary);
  box-shadow: 0 0 0 0.1875rem rgba(10,92,184,0.08);
}

.aiweko-trade-method .method-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.aiweko-trade-method h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25em;
}

.aiweko-trade-method p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 56.25em) { .aiweko-trade-methods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 34em) {
  .aiweko-trade-methods { grid-template-columns: repeat(2, 1fr); }
  .aiweko-b2b-section { padding: var(--space-3xl) var(--space-base); }
}

/* ============================================================
   CONTACT CARDS
   ============================================================ */

.aiweko-contact-cards {
  max-width: 50rem;
  margin: var(--space-3xl) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.aiweko-contact-card {
  padding: 1.75em;
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}

.aiweko-contact-card:hover { box-shadow: var(--shadow-md); }
.aiweko-contact-card .contact-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.aiweko-contact-card h4 { font-size: 0.875rem; margin-bottom: 0.25em; }
.aiweko-contact-card p, .aiweko-contact-card a { font-size: 0.875rem; color: #6b7280; }
.aiweko-contact-card a { color: var(--aiweko-primary); }

@media (max-width: 40em) { .aiweko-contact-cards { grid-template-columns: 1fr; gap: var(--space-base); } }

/* ============================================================
   B2C PAGE
   ============================================================ */

.aiweko-b2c-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #00A878 100%);
  padding: clamp(3.125rem, 7vw, 5.625rem) var(--space-2xl) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.aiweko-b2c-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: #fff !important;
  margin-bottom: var(--space-base);
}

.aiweko-b2c-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 37.5rem;
  margin: 0 auto 2em;
}

.aiweko-b2c-hero .hero-cta {
  display: flex;
  gap: var(--space-base);
  justify-content: center;
  flex-wrap: wrap;
}

.aiweko-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
}

.aiweko-step {
  text-align: center;
  padding: 1.5em var(--space-base);
}

.aiweko-step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--aiweko-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  margin: 0 auto var(--space-md);
}

.aiweko-step h4 { font-size: 0.875rem; margin-bottom: var(--space-sm); }
.aiweko-step p { font-size: 0.8125rem; color: #6b7280; margin: 0; }

@media (max-width: 48em) { .aiweko-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-base); } }
@media (max-width: 30em) { .aiweko-steps { grid-template-columns: repeat(2, 1fr); } }

.aiweko-filter-tabs {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.aiweko-filter-tab {
  padding: 0.4em 1.125em;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 0.0625rem solid;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.aiweko-filter-tab--active {
  background: var(--aiweko-primary) !important;
  color: #fff !important;
  border-color: var(--aiweko-primary) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0a1a2e;
  color: rgba(255,255,255,0.7);
}

.site-footer a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.site-footer a:hover { color: #fff; }

.aiweko-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-2xl) var(--space-2xl);
}

.aiweko-footer-grid .footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.8;
  margin: var(--space-base) 0;
}

.aiweko-footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aiweko-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aiweko-footer-col ul li {
  margin-bottom: var(--space-md);
}

.aiweko-footer-bottom {
  border-top: 0.0625rem solid rgba(255,255,255,0.08);
  padding: var(--space-lg) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.aiweko-cert-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.aiweko-cert-badge {
  font-size: 0.6875rem;
  background: rgba(255,255,255,0.08);
  border: 0.0625rem solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 0.125em 0.5em;
  border-radius: 0.25rem;
}

@media (max-width: 56.25em) {
  .aiweko-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); padding: var(--space-3xl) var(--space-xl) var(--space-2xl); }
  .aiweko-footer-grid .footer-brand { grid-column: span 2; }
}

@media (max-width: 34em) {
  .aiweko-footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); padding: var(--space-3xl) var(--space-lg) var(--space-xl); }
  .aiweko-footer-grid .footer-brand { grid-column: span 1; }
  .aiweko-footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; padding: var(--space-lg); }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle,
.wpml-ls-legacy-list-horizontal a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.8125rem;
  padding: 0.25em 0.5em;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.wpml-ls-legacy-dropdown-click:hover > a,
.wpml-ls-legacy-list-horizontal a:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

/* ============================================================
   RESPONSIVE — Desktop breakpoints
   1280px / 1366px / 1440px / 1920px
   ============================================================ */

/* 1280px — Smallest common desktop */
@media (min-width: 80em) {
  .aiweko-split {
    max-width: 75rem;
  }
}

/* 1366px */
@media (min-width: 85.375em) {
  .aiweko-section {
    padding-block: clamp(4rem, 4.5vw, 5.5rem);
  }
}

/* 1440px */
@media (min-width: 90em) {
  .aiweko-hero h1 {
    max-width: 55rem;
  }

  .aiweko-split {
    gap: 2.5rem;
  }

  .aiweko-payment-grid {
    gap: 4rem;
  }
}

/* 1920px — Full HD */
@media (min-width: 120em) {
  .aiweko-section {
    padding-block: 6rem;
  }

  .aiweko-hero h1 {
    max-width: 62.5rem;
  }

  .aiweko-hero-stats {
    gap: 4rem;
  }

  .aiweko-trust-bar {
    gap: 5rem;
  }

  .aiweko-payment-grid {
    gap: 5rem;
  }

  .aiweko-method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   GLOBAL HELPERS
   ============================================================ */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   PC LAYOUT FIX v5.4.0
   — Ensures no inherited CSS can constrain full-width layout
   — Overrides accidental wp-custom-css / Astra defaults
   — Forces ast-container wrapper to full width on custom pages
   — Ensures text is always visible (no white-on-white)
   — CRITICAL FIX: Astra's flex layout on .ast-container squeezes
     #primary width. We force display:block to break the flex.
   ============================================================ */

/* Full-width foundation — prevent horizontal scroll */
html {
  width: 100% !important;
  max-width: none !important;
}

body {
  width: 100% !important;
  max-width: none !important;
  overflow-x: hidden;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   TEXT COLOR SYSTEM v5.6.0 — Complete contrast fix
   - Light bg → dark text
   - Dark bg → white text (via .aiweko-section--dark etc.)
   - Header/Footer → white text
   ============================================================ */

/* --- 1. DEFAULT (light backgrounds) — dark text --- */
body.aiweko-custom-page,
body.aiweko-custom-page .site-content,
body.aiweko-custom-page #content,
body.aiweko-custom-page .ast-container,
body.aiweko-custom-page .entry-content,
body.aiweko-custom-page .content-area,
body.aiweko-custom-page #primary {
  color: #334155 !important;
}

body.aiweko-custom-page h1,
body.aiweko-custom-page h2,
body.aiweko-custom-page h3,
body.aiweko-custom-page h4,
body.aiweko-custom-page h5,
body.aiweko-custom-page h6 {
  color: #0D1B2A !important;
  -webkit-text-fill-color: #0D1B2A !important;
}

body.aiweko-custom-page p,
body.aiweko-custom-page li,
body.aiweko-custom-page span,
body.aiweko-custom-page td,
body.aiweko-custom-page th,
body.aiweko-custom-page label,
body.aiweko-custom-page input,
body.aiweko-custom-page select,
body.aiweko-custom-page textarea,
body.aiweko-custom-page .wpcf7-form-control {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

body.aiweko-custom-page a {
  color: var(--aiweko-primary) !important;
  -webkit-text-fill-color: var(--aiweko-primary) !important;
}
body.aiweko-custom-page a:hover {
  color: var(--aiweko-primary) !important;
  -webkit-text-fill-color: var(--aiweko-primary) !important;
}

body.aiweko-custom-page .aiweko-section-header p {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
}

/* --- 2. SITE HEADER — white text on dark bg --- */
.site-header,
.site-header *,
#masthead,
#masthead *,
.ast-primary-header-bar,
.ast-primary-header-bar *,
.main-header-bar,
.main-header-bar * {
  color: inherit !important;
}

/* --- 3. DARK-BACKGROUND SECTIONS — white text --- */
body.aiweko-custom-page .aiweko-hero,
body.aiweko-custom-page .aiweko-hero *,
body.aiweko-custom-page .aiweko-trust-bar,
body.aiweko-custom-page .aiweko-trust-bar *,
body.aiweko-custom-page .aiweko-cta-banner,
body.aiweko-custom-page .aiweko-cta-banner *,
body.aiweko-custom-page .aiweko-section--dark,
body.aiweko-custom-page .aiweko-section--dark *,
body.aiweko-custom-page .aiweko-reason-card,
body.aiweko-custom-page .aiweko-reason-card *,
body.aiweko-custom-page .aiweko-split-card__header,
body.aiweko-custom-page .aiweko-split-card__header *,
body.aiweko-custom-page .aiweko-b2b-hero,
body.aiweko-custom-page .aiweko-b2b-hero *,
body.aiweko-custom-page .aiweko-b2c-hero,
body.aiweko-custom-page .aiweko-b2c-hero *,
body.aiweko-custom-page .aiweko-split-card__header--b2c,
body.aiweko-custom-page .aiweko-split-card__header--b2c *,
body.aiweko-custom-page .aiweko-split-card__header--b2b,
body.aiweko-custom-page .aiweko-split-card__header--b2b *,
body.aiweko-custom-page .aiweko-cta-banner .btn-primary,
body.aiweko-custom-page .aiweko-cta-banner .btn-outline-white,
body.aiweko-custom-page .aiweko-cta-banner .btn-cta-white,
body.aiweko-custom-page footer,
body.aiweko-custom-page footer *,
body.aiweko-custom-page .site-footer,
body.aiweko-custom-page .site-footer * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* --- 4. DARK SECTION LINKS — stay white --- */
body.aiweko-custom-page .aiweko-section--dark a,
body.aiweko-custom-page .site-footer a {
  color: rgba(255,255,255,0.7) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.7) !important;
}
body.aiweko-custom-page .aiweko-section--dark a:hover,
body.aiweko-custom-page .site-footer a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* --- 5. HERO TEXT — ultimate white override --- */
body.aiweko-custom-page .aiweko-hero h1,
body.aiweko-custom-page .aiweko-hero h1 * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-hero h1 em,
body.aiweko-custom-page .aiweko-hero h1 em * {
  color: #7dd3c0 !important;
  -webkit-text-fill-color: #7dd3c0 !important;
}
body.aiweko-custom-page .aiweko-hero > p,
body.aiweko-custom-page .aiweko-hero > p * {
  color: rgba(255,255,255,0.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}
body.aiweko-custom-page .aiweko-hero-tag,
body.aiweko-custom-page .aiweko-hero-tag * {
  color: rgba(255,255,255,0.9) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.9) !important;
}
body.aiweko-custom-page .aiweko-hero-stat .stat-num {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-hero-stat .stat-label {
  color: rgba(255,255,255,0.65) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
}
body.aiweko-custom-page .aiweko-hero-cta a.btn-primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-hero-cta a.btn-outline-white {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* --- 6. WHY SECTION specific white overrides --- */
body.aiweko-custom-page .aiweko-section--dark h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-section--dark .aiweko-section-header p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.aiweko-custom-page .aiweko-reason-card h3 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-reason-card p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* --- 7. TRUST BAR specific --- */
body.aiweko-custom-page .aiweko-trust-bar .aiweko-trust-item,
body.aiweko-custom-page .aiweko-trust-bar .aiweko-trust-item * {
  color: rgba(255,255,255,0.65) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
}

/* --- 8. SPLIT CARD HEADERS --- */
body.aiweko-custom-page .aiweko-split-card__header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-split-card__header p {
  color: rgba(255,255,255,0.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}

/* --- 9. CTA BANNER specific --- */
body.aiweko-custom-page .aiweko-cta-banner h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .aiweko-cta-banner p {
  color: rgba(255,255,255,0.9) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.9) !important;
}

/* --- 10. FOOTER specific --- */
body.aiweko-custom-page .site-footer h4,
body.aiweko-custom-page .site-footer .aiweko-footer-col h4 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.aiweko-custom-page .site-footer .aiweko-footer-grid .footer-brand p,
body.aiweko-custom-page .site-footer .aiweko-footer-col ul li a {
  color: rgba(255,255,255,0.6) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.6) !important;
}
body.aiweko-custom-page .site-footer .aiweko-footer-bottom {
  color: rgba(255,255,255,0.35) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.35) !important;
}

/* Ensure #page allows transparent backgrounds for hero sections.
   Do NOT force white on #page — that would cover the hero gradient.
   Instead, let sections manage their own backgrounds. */
#page.site,
#page {
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: transparent !important;
  /* background is NOT forced to white — sections define their own */
}

/* CRITICAL: Force ast-container wrapper to full width on our custom pages.
   Astra renders <div class="ast-container"> inside #content which limits
   width to 1240px. This override makes it truly full-viewport.
   NOTE: Do NOT force background here — let hero gradient show through. */
body.aiweko-custom-page .ast-container,
body.aiweko-custom-page .site-content > .ast-container,
body.aiweko-custom-page #content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
}

/* Global fallback: override Astra container even if body class fails */
.ast-container,
.site-content > .ast-container,
#content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

/* High-priority override using #page ID selector */
#page .ast-container,
#page .site-content > .ast-container,
#page #content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

/* Also force #primary and .entry-content wrapper to full width */
body.aiweko-custom-page #primary,
body.aiweko-custom-page .site-content,
body.aiweko-custom-page #content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

/* ============================================================
   CRITICAL FIX v5.4.0 — Astra flex layout squeeze
   Astra uses display:flex on .site-content .ast-container with
   #primary and #secondary as flex children. When sidebar is
   hidden, #primary flex-basis is still constrained.
   We break the flex layout entirely on custom pages.
   ============================================================ */

/* Break Astra's flex layout on .ast-container — force block */
body.aiweko-custom-page .site-content .ast-container,
body.aiweko-custom-page #content .ast-container,
body.aiweko-custom-page .ast-container {
  display: block !important;
  background: transparent !important;
}

/* Force #primary to take full available width as block element */
body.aiweko-custom-page .ast-container #primary,
body.aiweko-custom-page .ast-container .content-area,
body.aiweko-custom-page #primary,
body.aiweko-custom-page .content-area {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Override Astra's dynamic CSS that sets flex-basis on #primary */
body.aiweko-custom-page.ast-plain-container #primary,
body.aiweko-custom-page.ast-no-sidebar #primary {
  flex: none !important;
  flex-basis: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
}

/* Ensure entry-content is also block-level full width */
body.aiweko-custom-page .entry-content,
body.aiweko-custom-page .ast-article-single,
body.aiweko-custom-page .ast-article-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

/* Hide sidebar on custom pages */
body.aiweko-custom-page .sidebar,
body.aiweko-custom-page .widget-area,
body.aiweko-custom-page #secondary {
  display: none !important;
}

/* Hero / trust bar / CTA: true full-viewport width */
.aiweko-hero,
.aiweko-trust-bar,
.aiweko-cta-banner {
  width: 100%;
  box-sizing: border-box;
}

/* Sections: full width, container inside centers content */
.aiweko-section,
.aiweko-rfq-section {
  width: 100%;
  max-width: 100%;
}

/* RFQ section background */
.aiweko-rfq-section {
  background: #f8fafc;
  padding-block: var(--space-5xl);
}

/* Astra header: always full width */
.site-header,
#masthead,
.main-header-bar,
.ast-above-header,
.ast-primary-header-bar {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   FLEX/GRID OVERFLOW FIX — prevent children from forcing
   parent to expand beyond viewport width
   ============================================================ */

/* Ensure all flex/grid containers can shrink */
.aiweko-container,
.aiweko-section,
.aiweko-categories,
.aiweko-split,
.aiweko-payment-grid,
.aiweko-method-grid,
.aiweko-reasons,
.aiweko-hero-cta,
.aiweko-hero-stats,
.aiweko-trust-bar,
.aiweko-footer-grid,
.cta-buttons {
  min-width: 0;
}

/* Ensure all flex/grid items can shrink */
.aiweko-container > *,
.aiweko-categories > *,
.aiweko-split > *,
.aiweko-payment-grid > *,
.aiweko-method-grid > *,
.aiweko-reasons > *,
.aiweko-hero-cta > *,
.aiweko-hero-stats > *,
.aiweko-trust-bar > *,
.aiweko-footer-grid > *,
.cta-buttons > * {
  min-width: 0;
}

/* Force images to never overflow their containers */
.aiweko-container img,
.aiweko-section img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Astra plain-container: remove any remaining padding */
.ast-plain-container #primary,
.ast-plain-container .site-content,
.ast-plain-container #content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  background: transparent !important;
}

/* Override Astra flex-basis on primary when sidebar is hidden */
body.aiweko-custom-page.ast-no-sidebar #primary,
body.aiweko-custom-page.ast-no-sidebar .content-area {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

/* Global fallback: force primary content to full width */
#primary.primary,
.content-area.primary,
#primary {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

/* Ensure Astra's site-content flex layout does not constrain width */
body.aiweko-custom-page .site-content .ast-container {
  display: block !important;
  background: transparent !important;
}

body.aiweko-custom-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* ============================================================
   ASTRA DYNAMIC CSS OVERRIDE — Astra injects inline styles via
   its dynamic CSS that set max-width: 1240px on .ast-container
   at >=922px breakpoint. We must override with higher specificity.
   ============================================================ */

/* Override Astra's dynamic CSS max-width on .ast-container */
body.aiweko-custom-page div.ast-container,
body.aiweko-custom-page #page div.ast-container,
body.aiweko-custom-page .site-content div.ast-container {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
}

/* Override Astra's media query that sets max-width: 1240px */
@media (min-width: 57.625em) {
  body.aiweko-custom-page .ast-container,
  body.aiweko-custom-page .site-content .ast-container,
  body.aiweko-custom-page #content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
  }
}

/* PC: Category cards equal-height flex columns */
@media (min-width: 64em) {
  .aiweko-categories {
    align-items: stretch;
  }
  .aiweko-cat-card {
    display: flex;
    flex-direction: column;
  }
  .aiweko-cat-link {
    margin-top: auto;
  }
  /* Hero stats: force horizontal row on desktop */
  .aiweko-hero-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3rem;
  }
  .aiweko-hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-base);
  }
}


/* ============================================================
   
/* === 1. ABOVE HEADER (top bar) — was rgba(255,255,255,0.55) === */
.ast-above-header .ast-above-header-section {
  color: rgba(255,255,255,0.85) !important;  /* was 0.55 */
}

.ast-above-header .ast-above-header-section a,
.ast-above-header .widget,
.ast-above-header .widget * {
  color: rgba(255,255,255,0.85) !important;  /* was 0.55 */
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}

.ast-above-header .wpml-ls-legacy-dropdown a,
.ast-above-header .wpml-ls-legacy-dropdown-click a {
  color: rgba(255,255,255,0.85) !important;  /* was 0.55 */
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}

/* === 2. MAIN NAVIGATION — was rgba(255,255,255,0.8) === */
@media (min-width: 57.625em) {
  .ast-primary-header-bar nav a,
  .ast-primary-header-bar nav .menu-link {
    color: #fff !important;  /* was rgba(255,255,255,0.8) */
    -webkit-text-fill-color: #fff !important;
  }

  .ast-primary-header-bar .sub-menu a,
  .ast-primary-header-bar .sub-menu .menu-link {
    color: #fff !important;  /* was rgba(255,255,255,0.8) */
    -webkit-text-fill-color: #fff !important;
  }
}

/* Mobile menu — was rgba(255,255,255,0.85) — already bright, keep as is */

/* === 3. LANGUAGE SWITCHER — was rgba(255,255,255,0.75) === */
.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle,
.wpml-ls-legacy-list-horizontal a {
  color: rgba(255,255,255,0.95) !important;  /* was 0.75 */
}

/* === 4. TRUST BAR — was rgba(255,255,255,0.65) === */
.aiweko-trust-item {
  color: rgba(255,255,255,0.9) !important;  /* was 0.65 */
  font-size: 0.8125rem;
}

/* === 5. B2C/B2B SPLIT CARDS HEADER — was opacity: 0.85 === */
.aiweko-split-card__header p {
  opacity: 1 !important;  /* was 0.85 */
  color: rgba(255,255,255,0.95) !important;  /* added explicit color */
  font-size: 0.875rem;
  margin: 0;
}

/* === 6. WHY CHOOSE SECTION — was rgba(255,255,255,0.6) === */
.aiweko-section--dark .aiweko-section-header p {
  color: rgba(255,255,255,0.85) !important;  /* was 0.6 */
}

.aiweko-reason-card p {
  opacity: 0.85 !important;  /* was 0.6 */
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.65;
}

/* === 7. CTA BANNER — was opacity: 0.9 === */
.aiweko-cta-banner p {
  opacity: 1 !important;  /* was 0.9 */
  color: rgba(255,255,255,0.95) !important;  /* added explicit color */
}

/* === 8. FOOTER — was rgba(255,255,255,0.7/0.6/0.4) === */
.site-footer {
  background: #0a1a2e;
  color: rgba(255,255,255,0.9) !important;  /* was 0.7 */
}

.site-footer a {
  color: rgba(255,255,255,0.85) !important;  /* was 0.6 */
  transition: color 0.2s;
}

.aiweko-footer-grid .footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.8;
  margin: var(--space-base) 0;
  color: rgba(255,255,255,0.85) !important;  /* was inherited 0.7 */
}

.aiweko-footer-col ul li a {
  color: rgba(255,255,255,0.85) !important;  /* was 0.6 */
}

.aiweko-footer-bottom {
  border-top: 0.0625rem solid rgba(255,255,255,0.08);
  padding: var(--space-lg) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6) !important;  /* was 0.4 */
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* === 9. CERT BADGES — was rgba(255,255,255,0.6) === */
.aiweko-cert-badge {
  font-size: 0.6875rem;
  background: rgba(255,255,255,0.08);
  border: 0.0625rem solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9) !important;  /* was 0.6 */
  padding: 0.125em 0.5em;
  border-radius: 0.25rem;
}

/* === 10. HERO PARAGRAPH — was no explicit opacity === */
.aiweko-hero > p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 36.25rem;
  margin: 0 auto 2.5em;
  color: rgba(255,255,255,0.95) !important;  /* ensure bright white */
}

/* === 11. B2B/B2C HERO PARAGRAPH — was opacity: 0.85 === */
.aiweko-b2b-hero p {
  font-size: 1rem;
  opacity: 1 !important;  /* was 0.85 */
  color: rgba(255,255,255,0.95) !important;
  max-width: 37.5rem;
  margin: 0 auto;
}

.aiweko-b2c-hero p {
  font-size: 1rem;
  opacity: 1 !important;  /* was 0.85 */
  color: rgba(255,255,255,0.95) !important;
  max-width: 37.5rem;
  margin: 0 auto 2em;
}

/* === 12. HERO STATS LABEL — was opacity: 0.65 === */
.aiweko-hero-stat .stat-label {
  font-size: 0.8125rem;
  opacity: 0.85 !important;  /* was 0.65 */
  margin-top: 0.125em;
}

/* === 13. HERO TAG — was rgba(255,255,255,0.9) — already bright === */
/* Keep as is */

/* === 14. NAV MENU HOVER — ensure white on hover === */
@media (min-width: 57.625em) {
  .ast-primary-header-bar nav a:hover,
  .ast-primary-header-bar nav .menu-link:hover,
  .ast-primary-header-bar nav .current-menu-item > a,
  .ast-primary-header-bar nav .current-menu-item > .menu-link {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}

/* === 15. MOBILE MENU — ensure bright white === */
.ast-header-break-point .ast-primary-header-bar nav a,
.ast-header-break-point .ast-primary-header-bar nav .menu-link {
  color: #fff !important;  /* was rgba(255,255,255,0.85) — make full white */
  -webkit-text-fill-color: #fff !important;
}

/* ============================================================
   END OF TEXT COLOR BRIGHTNESS FIX
   ============================================================ */


/* ====================================================
   TEXT COLOR BRIGHTNESS FIX v6.0
   Ensures all text on dark backgrounds is bright/white
   applied across all viewports (desktop, tablet, mobile)
   ==================================================== */

/* --- HEADER: handled by functions.php inline CSS --- */

/* --- B2C Section (dark background) --- */
.aiweko-b2c-section,
.aiweko-b2c-section *,
.page-template-template-home .aiweko-b2c-section,
.page-template-template-home .aiweko-b2c-section * {
    color: #fff !important;
}

/* --- B2B Section (dark background) --- */
.aiweko-b2b-section,
.aiweko-b2b-section *,
.page-template-template-home .aiweko-b2b-section,
.page-template-template-home .aiweko-b2b-section * {
    color: #fff !important;
}

/* --- Why Source Through Section (dark background) --- */
.why-choose-section,
.aiweko-why-choose,
.page-template-template-home .why-choose-section,
.page-template-template-home .aiweko-why-choose,
.page-template-template-home .why-choose-section *,
.page-template-template-home .aiweko-why-choose * {
    color: #fff !important;
}
.why-choose-section p,
.why-choose-section .section-desc,
.why-choose-section .description {
    color: rgba(255,255,255,0.92) !important;
}

/* --- Trust Bar / Certification badges --- */
.aiweko-trust-bar,
.aiweko-trust-bar *,
.page-template-template-home .aiweko-trust-bar,
.page-template-template-home .aiweko-trust-bar *,
.trust-badges,
.trust-badges * {
    color: rgba(255,255,255,0.92) !important;
}
.trust-badges .badge-label,
.aiweko-trust-bar .badge-label {
    color: #fff !important;
    font-weight: 600 !important;
}

/* --- Footer --- */
.site-footer,
.site-footer *,
.aiweko-footer,
.aiweko-footer * {
    color: rgba(255,255,255,0.9) !important;
}
.site-footer a,
.aiweko-footer a {
    color: #fff !important;
}
.site-footer .footer-widget-area,
.aiweko-footer-widgets {
    color: rgba(255,255,255,0.85) !important;
}

/* --- Any dark-background section with white text fallback --- */
[class*="dark-bg"] *,
[style*="background-color: #0D1B2A"] *,
[style*="background: #0D1B2A"] *,
[style*="background-color:#0D1B2A"] *,
[style*="background:#0D1B2A"] * {
    color: #fff !important;
}

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .aiweko-b2c-section *,
    .aiweko-b2b-section *,
    .why-choose-section *,
    .aiweko-trust-bar *,
    .trust-badges *,
    .site-footer * {
        color: #fff !important;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .aiweko-b2c-section *,
    .aiweko-b2b-section *,
    .why-choose-section *,
    .aiweko-trust-bar *,
    .trust-badges *,
    .site-footer * {
        color: #fff !important;
    }
}


/* ====================================================
   TEXT COLOR BRIGHTNESS FIX v7.0 — SPECIFIC SELECTORS
   Targeted at exact classes in template-home.php
   ==================================================== */

/* --- HERO Section --- */
.aiweko-hero,
.aiweko-hero h1,
.aiweko-hero h1 em,
.aiweko-hero p,
.aiweko-hero .aiweko-hero-tag,
.aiweko-hero .aiweko-hero-stats,
.aiweko-hero .stat-num,
.aiweko-hero .stat-label {
    color: #fff !important;
}

/* --- Trust Bar --- */
.aiweko-trust-bar,
.aiweko-trust-bar .aiweko-trust-item,
.aiweko-trust-bar .trust-icon,
.aiweko-trust-bar span {
    color: #fff !important;
}

/* --- Category Cards --- */
.aiweko-cat-card,
.aiweko-cat-card h3,
.aiweko-cat-card p,
.aiweko-cat-card .aiweko-cat-subtitle,
.aiweko-cat-card .aiweko-cat-link,
.aiweko-cat-card .aiweko-subcat-list li {
    color: #fff !important;
}
.aiweko-cat-card .aiweko-cat-icon {
    color: #fff !important;
    opacity: 1 !important;
}

/* --- B2C / B2B Split Cards --- */
.aiweko-split-card,
.aiweko-split-card h2,
.aiweko-split-card p,
.aiweko-split-card li,
.aiweko-split-card .check-b2c,
.aiweko-split-card .check-b2b {
    color: #fff !important;
}
.aiweko-split-card__header--b2c,
.aiweko-split-card__header--b2c h2,
.aiweko-split-card__header--b2c p,
.aiweko-split-card__header--b2c .card-icon {
    color: #fff !important;
}
.aiweko-split-card__header--b2b,
.aiweko-split-card__header--b2b h2,
.aiweko-split-card__header--b2b p,
.aiweko-split-card__header--b2b .card-icon {
    color: #fff !important;
}

/* --- Payment Section --- */
.aiweko-payment-section,
.aiweko-payment-section h2,
.aiweko-payment-section h3,
.aiweko-payment-section h4,
.aiweko-payment-section p,
.aiweko-payment-section .method-icon,
.aiweko-payment-section .aiweko-method-item {
    color: #fff !important;
}
.aiweko-payment-section .aiweko-inco-badge {
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* --- RFQ Section --- */
.aiweko-rfq-section,
.aiweko-rfq-section h2,
.aiweko-rfq-section p,
.aiweko-rfq-section label,
.aiweko-rfq-section .rfq-disclaimer {
    color: #fff !important;
}

/* --- Why Choose Section (aiweko-section--dark) --- */
.aiweko-section--dark,
.aiweko-section--dark h2,
.aiweko-section--dark h3,
.aiweko-section--dark p,
.aiweko-section--dark .reason-icon,
.aiweko-reason-card {
    color: #fff !important;
}

/* --- CTA Banner --- */
.aiweko-cta-banner,
.aiweko-cta-banner h2,
.aiweko-cta-banner p {
    color: #fff !important;
}

/* --- CE/RoHS/ISO Trust Badges in Trust Bar --- */
.aiweko-trust-bar,
[class*="trust"] {
    color: #fff !important;
}

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .aiweko-hero *,
    .aiweko-trust-bar *,
    .aiweko-cat-card *,
    .aiweko-split-card *,
    .aiweko-payment-section *,
    .aiweko-rfq-section *,
    .aiweko-section--dark *,
    .aiweko-cta-banner * {
        color: #fff !important;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .aiweko-hero *,
    .aiweko-trust-bar *,
    .aiweko-cat-card *,
    .aiweko-split-card *,
    .aiweko-payment-section *,
    .aiweko-rfq-section *,
    .aiweko-section--dark *,
    .aiweko-cta-banner * {
        color: #fff !important;
    }
}
