/* ==========================================================================
   AFROTRADE - combined stylesheet (all pages)
   --------------------------------------------------------------------------
   * Rules shared by every page are written once, unscoped.
   * Rules that differ between pages are scoped with :where(.pg-xxx) so each
     page keeps exactly the look it had with its own inline <style> block.
     :where() adds no specificity, so the cascade is identical to the original.
   * Each page sets its own class on <html>, e.g. <html lang="en" class="pg-about">.
   ========================================================================== */

/* Page class map:
     pg-about-afrotrade           -> about_afrotrade.php
     pg-advertising-b             -> advertising_b.php
     pg-advertising-tx            -> advertising_tx.php
     pg-advertising               -> afrotrade_advertising.php
     pg-contactus                 -> afrotrade_contactus.php
     pg-directory                 -> afrotrade_directory.php
     pg-gallery                   -> afrotrade_gallery.php
     pg-listing                   -> afrotrade_listing.php
     pg-listing1                  -> afrotrade_listing1.php
     pg-sublisting                -> afrotrade_sublisting.php
     pg-terms                     -> afrotrade_terms.php
     pg-auto                      -> auto.php
     pg-build                     -> build.php
     pg-detail-news               -> detail_news.php
     pg-directory-tx              -> directory_tx.php
     pg-index                     -> index.php
     pg-index1                    -> index1.html
     pg-industrial                -> industrial.php
     pg-market-news               -> market_news.php
     pg-media-partners            -> media_partners.php
     pg-medical                   -> medical.php
     pg-oilgas                    -> oilgas.php
     pg-powerenergy               -> powerenergy.php
     pg-search                    -> search.php
     pg-trade-events              -> trade_events.php
     pg-xdeals-banners            -> xdeals_banners.php
*/


/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .intro-img {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
:where(html.pg-directory) .intro-img:hover {
  transform: scale(1.03);
}
:where(html.pg-directory) .section-title {
  margin: 2.5rem 0 1.2rem;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 600;
}
:where(html.pg-directory) .benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
:where(html.pg-directory) .benefits-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}
:where(html.pg-directory) .benefits-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  :where(html.pg-directory) .intro-img {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
  :where(html.pg-directory) .section-title {
    font-size: 1.3rem;
  }
  :where(html.pg-directory) .benefits-list li {
    padding-left: 2.2rem;
    font-size: 1rem;
  }
}

/* ===== advertising_b, afrotrade_terms, detail_news ===== */
:root:where(.pg-advertising-b, .pg-detail-news, .pg-terms) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --accent-light: #fff3ee;
  --gold: #c9871f;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== advertising_b, afrotrade_directory ===== */
:where(html.pg-advertising-b, html.pg-directory),
:where(html.pg-advertising-b, html.pg-directory) *,
:where(html.pg-advertising-b, html.pg-directory) *::before,
:where(html.pg-advertising-b, html.pg-directory) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== directory_tx ===== */
:root:where(.pg-directory-tx) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --accent-light: #fff0e8;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --green: #16a34a;
  --green-light: #dcfce7;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_listing1, xdeals_banners ===== */
:root:where(.pg-advertising-tx, .pg-listing, .pg-listing1, .pg-xdeals-banners) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== afrotrade_advertising, trade_events ===== */
:root:where(.pg-advertising, .pg-trade-events) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --accent-light: #fff3ee;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== advertising_tx, afrotrade_advertising, afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news, directory_tx, trade_events, xdeals_banners ===== */
:where(html.pg-advertising, html.pg-advertising-tx, html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms, html.pg-trade-events, html.pg-xdeals-banners),
:where(html.pg-advertising, html.pg-advertising-tx, html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms, html.pg-trade-events, html.pg-xdeals-banners) *,
:where(html.pg-advertising, html.pg-advertising-tx, html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms, html.pg-trade-events, html.pg-xdeals-banners) *::before,
:where(html.pg-advertising, html.pg-advertising-tx, html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms, html.pg-trade-events, html.pg-xdeals-banners) *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== advertising_b, afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news, directory_tx, xdeals_banners ===== */
html:where(.pg-advertising-b, .pg-detail-news, .pg-directory-tx, .pg-listing, .pg-listing1, .pg-terms, .pg-xdeals-banners) {
  scroll-behavior: smooth;
}

/* ===== advertising_b, afrotrade_directory ===== */
:where(html.pg-advertising-b, html.pg-directory) body {
  font-family: "DM Sans",system-ui,sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:where(html.pg-advertising-b, html.pg-directory) a {
  color: inherit;
  text-decoration: none;
}
:where(html.pg-advertising-b, html.pg-directory) img {
  display: block;
  max-width: 100%;
  height: auto;
}
:where(html.pg-advertising-b, html.pg-directory) ul {
  list-style: none;
}
:where(html.pg-advertising-b, html.pg-directory) button {
  cursor: pointer;
  font-family: inherit;
}
:where(html.pg-advertising-b, html.pg-directory) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%231370bc' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle,rgba(19,112,188,.3) 0%,transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0 40px;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero h1 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(24px,4.5vw,48px);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero h1 span {
  color: #f9c74f;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-sub {
  font-size: clamp(14px,1.8vw,16px);
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 28px;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat {
  padding: 0 32px 0 0;
  text-align: left;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat+.adv-hero-stat {
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,.12);
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat-val {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 30px;
  color: #f9c74f;
  display: block;
  line-height: 1;
}
:where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  margin-top: 4px;
  display: block;
}
:where(html.pg-advertising-b, html.pg-directory) .breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
:where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner {
  max-width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}
:where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner a {
  color: var(--primary);
  transition: color var(--transition);
}
:where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner a:hover {
  color: var(--accent);
}
:where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner i {
  font-size: 10px;
}
:where(html.pg-advertising-b, html.pg-directory) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}
@media(max-width:1100px) {
  :where(html.pg-advertising-b, html.pg-directory) .page-wrap {
    grid-template-columns: 1fr;
  }
}
@media(min-width:1024px) {
  :where(html.pg-advertising-b, html.pg-directory) .page-wrap {
    padding-left: 80px;
    padding-right: 80px;
  }
}
@media(min-width:1440px) {
  :where(html.pg-advertising-b, html.pg-directory) .page-wrap {
    padding-left: 120px;
    padding-right: 120px;
  }
}
:where(html.pg-advertising-b, html.pg-directory) .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ===== advertising_b ===== */
:where(html.pg-advertising-b) .section-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== advertising_b, afrotrade_directory ===== */
:where(html.pg-advertising-b, html.pg-directory) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

/* ===== advertising_b ===== */
:where(html.pg-advertising-b) .card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== advertising_b, afrotrade_directory ===== */
:where(html.pg-advertising-b, html.pg-directory) .card-head {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right,var(--surface-3),var(--surface));
}
:where(html.pg-advertising-b, html.pg-directory) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg,var(--primary),var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: .01em;
}
:where(html.pg-advertising-b, html.pg-directory) .card-head-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .06em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
:where(html.pg-advertising-b, html.pg-directory) .card-body {
  padding: 24px;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-bottom: 8px;
}
@media(max-width:900px) {
  :where(html.pg-advertising-b, html.pg-directory) .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media(max-width:560px) {
  :where(html.pg-advertising-b, html.pg-directory) .pricing-grid {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-mid);
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-card-head {
  background: linear-gradient(135deg,var(--primary) 0%,var(--primary-mid) 100%);
  padding: 16px 20px;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-card-head h3 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-card-head p {
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  margin: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-size-demo {
  background: var(--surface-3);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .06em;
  margin: 14px 18px;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-rows {
  padding: 0 18px 18px;
  flex: 1;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-3);
  font-size: 13px;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-row:last-child {
  border-bottom: none;
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-row-dur {
  color: var(--text-2);
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-row-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}
:where(html.pg-advertising-b, html.pg-directory) .pricing-row-price span {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card {
  background: linear-gradient(135deg,var(--primary) 0%,#072d52 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle,rgba(19,112,188,.3) 0%,transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card-inner {
  padding: 22px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card-badge i {
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card-badge span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
:where(html.pg-advertising-b, html.pg-directory) .email-card h3 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .email-card p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
  line-height: 1.6;
  flex: 1;
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition),border-color var(--transition);
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg:last-child {
  margin-bottom: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg-name {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg-sub {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg-price {
  font-weight: 700;
  font-size: 20px;
  color: #f9c74f;
  white-space: nowrap;
}
:where(html.pg-advertising-b, html.pg-directory) .email-pkg-price span {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-head {
  background: linear-gradient(to right,var(--surface-3),var(--surface));
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-head-accent {
  width: 4px;
  height: 26px;
  background: linear-gradient(180deg,var(--primary),var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-head-text h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(16px,2.5vw,20px);
  color: var(--text);
  font-weight: 400;
  margin-bottom: 2px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-head-text p {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-body {
  padding: 24px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:580px) {
  :where(html.pg-advertising-b, html.pg-directory) .form-row-2 {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-advertising-b, html.pg-directory) .form-group {
  margin-bottom: 16px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 5px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-label .req {
  color: #ef4444;
  margin-left: 2px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-control,
:where(html.pg-advertising-b, html.pg-directory) .form-select {
  width: 100%;
  padding: 10px 13px;
  font-family: "DM Sans",sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition),box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
:where(html.pg-advertising-b, html.pg-directory) .form-control:focus,
:where(html.pg-advertising-b, html.pg-directory) .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,82,140,.1);
}
:where(html.pg-advertising-b, html.pg-directory) .form-control::placeholder {
  color: var(--text-3);
}
:where(html.pg-advertising-b, html.pg-directory) textarea.form-control {
  resize: vertical;
  min-height: 88px;
}
:where(html.pg-advertising-b, html.pg-directory) .select-wrap {
  position: relative;
}
:where(html.pg-advertising-b, html.pg-directory) .select-wrap::after {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-3);
  pointer-events: none;
}
:where(html.pg-advertising-b, html.pg-directory) .hp-field {
  opacity: 0;
  position: absolute;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
}
:where(html.pg-advertising-b, html.pg-directory) .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: "DM Sans",sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition),transform var(--transition),box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(10,82,140,.3);
  width: 100%;
}
:where(html.pg-advertising-b, html.pg-directory) .btn-submit:hover {
  background: var(--primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(10,82,140,.4);
}
:where(html.pg-advertising-b, html.pg-directory) .btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
:where(html.pg-advertising-b, html.pg-directory) .btn-submit i {
  font-size: 14px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-card-body form > .btn-submit {
  display: flex;
  margin: 8px auto 0;
  width: auto;
  min-width: 240px;
  padding: 13px 36px;
}
@media(max-width:580px) {
  :where(html.pg-advertising-b, html.pg-directory) .form-card-body form > .btn-submit {
    width: 100%;
    min-width: 0;
  }
}
:where(html.pg-advertising-b, html.pg-directory) .form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
:where(html.pg-advertising-b, html.pg-directory) .form-feedback.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
:where(html.pg-advertising-b, html.pg-directory) .form-feedback.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
:where(html.pg-advertising-b, html.pg-directory) .form-feedback i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== advertising_b ===== */
:where(html.pg-advertising-b) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
:where(html.pg-advertising-b) .sidebar-banner {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
:where(html.pg-advertising-b) .sidebar-banner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-advertising-b) .sidebar-banner img {
  width: 100%;
  display: block;
}
:where(html.pg-advertising-b) .sidebar .card {
  margin-bottom: 0;
}

/* ===== advertising_b, afrotrade_directory ===== */
:where(html.pg-advertising-b, html.pg-directory) .expo-promo {
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition),box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
:where(html.pg-advertising-b, html.pg-directory) .expo-promo:hover {
  border-color: var(--primary-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
:where(html.pg-advertising-b, html.pg-directory) .expo-promo img {
  width: 100%;
  height: auto;
  display: block;
}
:where(html.pg-advertising-b, html.pg-directory) .sb-block {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
}
:where(html.pg-advertising-b, html.pg-directory) .sb-block-head {
  background: linear-gradient(to right,var(--surface-3),var(--surface));
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
:where(html.pg-advertising-b, html.pg-directory) .sb-block-head-accent {
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg,var(--primary),var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .sb-block-head-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
:where(html.pg-advertising-b, html.pg-directory) .sb-block-body {
  padding: 14px;
}
:where(html.pg-advertising-b, html.pg-directory) .banner-item {
  display: block;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition),transform var(--transition),box-shadow var(--transition);
}
:where(html.pg-advertising-b, html.pg-directory) .banner-item:last-child {
  margin-bottom: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .banner-item:hover {
  border-color: var(--primary-mid);
  transform: scale(1.015);
  box-shadow: var(--shadow-sm);
}
:where(html.pg-advertising-b, html.pg-directory) .banner-item img {
  width: 100%;
  height: auto;
  display: block;
}
:where(html.pg-advertising-b, html.pg-directory) .why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
:where(html.pg-advertising-b, html.pg-directory) .why-card-head {
  background: linear-gradient(to right,var(--surface-3),var(--surface));
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
:where(html.pg-advertising-b, html.pg-directory) .why-card-head-accent {
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg,var(--primary),var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .why-card-head-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
:where(html.pg-advertising-b, html.pg-directory) .why-card-body {
  padding: 14px 18px;
}
:where(html.pg-advertising-b, html.pg-directory) .why-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-3);
  font-size: 13px;
}
:where(html.pg-advertising-b, html.pg-directory) .why-point:last-child {
  border-bottom: none;
}
:where(html.pg-advertising-b, html.pg-directory) .why-point-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
:where(html.pg-advertising-b, html.pg-directory) .why-point-text {
  color: var(--text-2);
  line-height: 1.5;
}
:where(html.pg-advertising-b, html.pg-directory) .why-point-text strong {
  color: var(--text);
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini {
  background: linear-gradient(135deg,var(--primary) 0%,#072d52 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-sm);
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini h4 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 400;
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini-item {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini-item:last-child {
  margin-bottom: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini-item i {
  color: #f9c74f;
  font-size: 14px;
  flex-shrink: 0;
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini-item a {
  color: rgba(255,255,255,.85);
}
:where(html.pg-advertising-b, html.pg-directory) .contact-mini-item a:hover {
  color: #fff;
}
:where(html.pg-advertising-b, html.pg-directory) .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease,transform .5s ease;
}
:where(html.pg-advertising-b, html.pg-directory) .reveal.in {
  opacity: 1;
  transform: none;
}
@media(max-width:1100px) {
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero .hero-inner {
    padding: 0 24px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .page-wrap {
    padding: 24px 24px 48px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner {
    padding: 0 24px;
  }
}
@media(max-width:840px) {
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero {
    padding: 36px 0 28px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero .hero-inner {
    padding: 0 16px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat {
    padding: 0!important;
    border: none!important;
  }
  :where(html.pg-advertising-b, html.pg-directory) .page-wrap {
    padding: 18px 16px 40px;
    gap: 20px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .breadcrumb-inner {
    padding: 0 16px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .card-body {
    padding: 18px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .form-card-body {
    padding: 18px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .form-card-head {
    padding: 16px 18px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
@media(max-width:560px) {
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero {
    padding: 28px 0 22px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero h1 {
    font-size: 22px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .adv-hero-stat-val {
    font-size: 22px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .pricing-size-demo {
    margin: 10px 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .pricing-rows {
    padding: 0 14px 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .pricing-card-head {
    padding: 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .email-card-inner {
    padding: 16px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .card-body {
    padding: 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .form-card-body {
    padding: 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .why-card-body {
    padding: 10px 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .contact-mini {
    padding: 14px;
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  :where(html.pg-advertising-b, html.pg-directory) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_terms, detail_news ===== */
:where(html.pg-advertising-tx, html.pg-detail-news, html.pg-listing, html.pg-terms) body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== afrotrade_listing1 ===== */
:where(html.pg-listing1) body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== afrotrade_terms, detail_news ===== */
:where(html.pg-detail-news, html.pg-terms) .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news ===== */
:where(html.pg-advertising-tx, html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .logo-wrap img.logo {
  max-height: 54px;
  width: auto;
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_listing1 ===== */
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) nav.desktop-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

/* ===== advertising_tx ===== */
:where(html.pg-advertising-tx) .search-form,
:where(html.pg-advertising-tx) .mobile-search-bar form {
  background: white !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 50px;
  overflow: hidden;
}
:where(html.pg-advertising-tx) .search-input,
:where(html.pg-advertising-tx) .mobile-search-bar input {
  background: white !important;
  color: var(--text) !important;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 200px;
}
:where(html.pg-advertising-tx) .search-btn,
:where(html.pg-advertising-tx) .mobile-search-bar button {
  background: var(--primary) !important;
  color: white !important;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0 50px 50px 0;
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_listing1 ===== */
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) .hamburger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 1.6rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) .hamburger:hover {
  background: #d0e3f5;
  transform: scale(1.05);
}
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}
:where(html.pg-advertising-tx, html.pg-listing, html.pg-listing1) .mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-2);
  background: none;
  border: none;
}

/* ===== advertising_tx, afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news ===== */
:where(html.pg-advertising-tx, html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
:where(html.pg-advertising-tx, html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ===== advertising_tx ===== */
:where(html.pg-advertising-tx) main {
  padding: 48px 0 100px;
}
:where(html.pg-advertising-tx) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1100px) {
  :where(html.pg-advertising-tx) .page-wrap {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-advertising-tx) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
:where(html.pg-advertising-tx) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-advertising-tx) .card-head {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-advertising-tx) .card-head-accent {
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
}

/* ===== advertising_tx, afrotrade_directory ===== */
:where(html.pg-advertising-tx, html.pg-directory) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
}
:where(html.pg-advertising-tx, html.pg-directory) .card-body {
  padding: 32px 36px;
}
:where(html.pg-advertising-tx, html.pg-directory) .intro-text {
  font-size: 1rem;
  color: var(--text-2);
  text-align: left;
  margin: 0 0 28px;
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table {
  width: 100%;
  max-width: 760px;
  margin: 16px auto 32px;
  border-collapse: collapse;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table thead th {
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  border: none;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
  text-align: center;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tbody tr:nth-child(even) {
  background: var(--surface-3);
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tbody tr:hover {
  background: var(--primary-light);
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td {
  padding: 8px 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border: none;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:last-child {
  text-align: center;
  width: 70px;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(2) {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  width: 120px;
}
:where(html.pg-advertising-tx, html.pg-directory) .ad-options-table input[type="radio"] {
  transform: scale(1.15);
  cursor: pointer;
  accent-color: var(--primary);
}
:where(html.pg-advertising-tx, html.pg-directory) .form-section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 36px 0 20px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  text-align: center;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 32px;
  border-collapse: separate;
  border-spacing: 0 10px;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td {
  padding: 4px 12px 4px 0;
  vertical-align: middle;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td:first-child {
  width: 190px;
  font-weight: 500;
  color: var(--text-2);
  font-size: 0.95rem;
  white-space: nowrap;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td:nth-child(2) {
  width: auto;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table input[type="text"],
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table input[type="text"]:focus,
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,82,140,0.08);
  background: white;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-fields-table textarea {
  min-height: 110px;
  resize: vertical;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-submit {
  text-align: center;
  margin-top: 8px;
  padding-left: 0 !important;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-submit input[type="submit"] {
  width: auto;
  min-width: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: white;
  border: none;
  padding: 13px 40px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}
:where(html.pg-advertising-tx, html.pg-directory) .form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== advertising_tx ===== */
:where(html.pg-advertising-tx) .required {
  color: #c62828;
  font-weight: bold;
}

/* ===== advertising_tx, afrotrade_directory ===== */
:where(html.pg-advertising-tx, html.pg-directory) .error-msg {
  color: #c62828;
  font-size: 0.95rem;
  margin-top: 8px;
  display: none;
}

/* ===== advertising_tx ===== */
:where(html.pg-advertising-tx) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
:where(html.pg-advertising-tx) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 48px;
}
:where(html.pg-advertising-tx) footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 80px 0 48px;
  text-align: center;
}
:where(html.pg-advertising-tx) .footer-links {
  margin-bottom: 40px;
  font-size: 1.08rem;
}
:where(html.pg-advertising-tx) .footer-links a {
  color: #94a3b8;
  margin: 0 20px;
  text-decoration: none;
}
:where(html.pg-advertising-tx) .btm-bar {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 28px 0;
  font-size: 1rem;
  border-top: 1px solid #1e293b;
}
:where(html.pg-advertising-tx) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 24px 40px;
  z-index: 9999;
  box-shadow: 0 -10px 40px rgba(10,60,120,0.15);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
:where(html.pg-advertising-tx) .cookie-consent p {
  font-size: 0.95rem;
  color: var(--text-2);
  flex: 1;
  min-width: 240px;
}
:where(html.pg-advertising-tx) .cookie-btns {
  display: flex;
  gap: 12px;
}
:where(html.pg-advertising-tx) .cookie-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
:where(html.pg-advertising-tx) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  :where(html.pg-advertising-tx) .hamburger {
    display: flex !important;
  }
  :where(html.pg-advertising-tx) nav.desktop-nav {
    display: none;
  }
  :where(html.pg-advertising-tx) .header-inner {
    grid-template-columns: auto auto;
    padding: 0 16px;
    min-height: 64px;
  }
  :where(html.pg-advertising-tx) .logo-wrap img.logo {
    max-height: 44px;
  }
  :where(html.pg-advertising-tx) .search-form {
    display: none;
  }
  :where(html.pg-advertising-tx) .page-wrap,
  :where(html.pg-advertising-tx) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-advertising-tx) .card-head {
    padding: 20px 24px;
  }
  :where(html.pg-advertising-tx) .card-body {
    padding: 32px 24px;
  }
}

/* ===== advertising_tx, afrotrade_directory ===== */
@media (max-width: 768px) {
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table {
    display: block;
    max-width: 100%;
    margin: 12px 0 24px;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table thead {
    display: none;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tbody {
    display: block;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table tr:hover {
    background: var(--primary-light);
    border-color: var(--primary);
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td {
    display: block;
    border: none;
    padding: 0;
    font-size: 0.82rem;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:before {
    display: none;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(1) {
    flex: 1;
    font-weight: 500;
    color: var(--text);
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(2) {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:last-child {
    flex-shrink: 0;
    width: auto;
    padding: 0;
    text-align: right !important;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table input[type="radio"] {
    transform: scale(1.2);
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table {
    border-spacing: 0;
    max-width: 100%;
    margin: 0 0 24px;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table tr {
    display: block;
    margin-bottom: 10px;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td {
    display: block;
    width: 100% !important;
    padding: 0;
    white-space: normal;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td:first-child {
    font-size: 0.88rem;
    margin-bottom: 4px;
    padding: 0;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table input[type="text"],
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table textarea {
    padding: 9px 12px;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-submit {
    text-align: center;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-submit input[type="submit"] {
    width: 100%;
    padding: 14px;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-section-title {
    font-size: 1rem;
    margin: 20px 0 14px;
    text-align: center;
    max-width: 100%;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .intro-text {
    font-size: 0.92rem;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(1):before {
    content: "Size / Position";
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(2):before {
    content: "Rate (USD)";
  }
  :where(html.pg-advertising-tx, html.pg-directory) .ad-options-table td:nth-child(3):before {
    content: "Select";
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-fields-table td {
    display: block;
    width: 100%;
    padding: 14px 0;
  }
  :where(html.pg-advertising-tx, html.pg-directory) .form-submit input[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .rates-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
:where(html.pg-directory) .rates-table th,
:where(html.pg-directory) .rates-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
:where(html.pg-directory) .rates-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
:where(html.pg-directory) .rates-table tr:nth-child(even) {
  background: var(--surface-3);
}
:where(html.pg-directory) .form-group {
  margin: 32px 0;
  padding: 20px;
  background: var(--surface-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
:where(html.pg-directory) select {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 280px;
  background: white;
  color: var(--text);
}
:where(html.pg-directory) input[type="submit"] {
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-left: 16px;
}
:where(html.pg-directory) input[type="submit"]:hover {
  background: var(--primary-mid);
}
@media (max-width: 768px) {
  :where(html.pg-directory) .rates-table th,
  :where(html.pg-directory) .rates-table td {
    font-size: 0.9rem;
    padding: 10px;
  }
  :where(html.pg-directory) .form-group {
    padding: 16px;
  }
  :where(html.pg-directory) select {
    width: 100%;
    min-width: auto;
  }
  :where(html.pg-directory) input[type="submit"] {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
}
:where(html.pg-directory) .form-group a {
  width: 100%;
  justify-content: center;
}
:where(html.pg-directory) .tech-modal-overlay {
  display: none;
  position: absolute;
  z-index: 9999;
  margin-top: 8px;
}
:where(html.pg-directory) .tech-modal-overlay.show {
  display: block;
}
:where(html.pg-directory) .tech-modal {
  background: white;
  border-radius: 12px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(10,60,120,0.15);
  border: 1px solid var(--border);
  animation: modalIn 0.2s ease-out;
}
:where(html.pg-directory) .tech-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:where(html.pg-directory) .tech-modal-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
:where(html.pg-directory) .tech-modal-close {
  width: 26px;
  height: 25px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
:where(html.pg-directory) .tech-modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}
:where(html.pg-directory) .tech-modal-body {
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-directory) .tech-modal-body h4 {
  color: var(--primary);
  font-size: 0.82rem;
  margin: 12px 0 6px;
  font-weight: 600;
}
:where(html.pg-directory) .tech-modal-body ul {
  list-style: none;
  padding-left: 0;
}
:where(html.pg-directory) .tech-modal-body li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
  font-size: 0.76rem;
}
:where(html.pg-directory) .tech-modal-body li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 600px) {
  :where(html.pg-directory) .tech-modal {
    max-height: 85vh;
  }
  :where(html.pg-directory) .tech-modal-body {
    padding: 20px;
    font-size: 0.95rem;
  }
}
:where(html.pg-directory) .card-body > p {
  text-align: center;
}
:where(html.pg-directory) table.contact-form {
  width: 100%;
  max-width: 700px;
  margin: 16px auto 24px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
:where(html.pg-directory) .contact-form td {
  padding: 4px 12px 4px 0;
  vertical-align: middle;
}
:where(html.pg-directory) .contact-form td:first-child {
  width: 190px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}
:where(html.pg-directory) .contact-form input[type="text"],
:where(html.pg-directory) .contact-form textarea {
  padding: 10px 14px;
  font-size: 0.95rem;
  background: #fff;
}
:where(html.pg-directory) .contact-form textarea {
  height: 100px;
}
:where(html.pg-directory) .contact-form #captcha_code {
  max-width: 220px;
}
:where(html.pg-directory) .contact-form tr:last-child td:last-child {
  text-align: center;
}
:where(html.pg-directory) .contact-form input[type="submit"] {
  width: auto;
  min-width: 220px;
  padding: 12px 36px;
  font-size: 1rem;
}

/* ===== advertising_tx, afrotrade_directory ===== */
:where(html.pg-advertising-tx, html.pg-directory) .error-msg.invalid {
  display: block !important;
}

/* ===== afrotrade_directory ===== */
@media (max-width: 768px) {
  :where(html.pg-directory) table.contact-form,
  :where(html.pg-directory) .contact-form tbody,
  :where(html.pg-directory) .contact-form tr,
  :where(html.pg-directory) .contact-form td {
    display: block;
    width: 100%;
  }
  :where(html.pg-directory) table.contact-form {
    max-width: 100%;
    border-spacing: 0;
    margin: 8px 0 16px;
  }
  :where(html.pg-directory) .contact-form tr {
    margin-bottom: 10px;
  }
  :where(html.pg-directory) .contact-form td {
    padding: 0 !important;
  }
  :where(html.pg-directory) .contact-form td:first-child {
    font-size: 0.88rem;
    margin-bottom: 4px;
    white-space: normal;
  }
  :where(html.pg-directory) .contact-form input[type="text"],
  :where(html.pg-directory) .contact-form textarea {
    padding: 9px 12px;
    font-size: 0.92rem;
  }
  :where(html.pg-directory) .contact-form textarea {
    height: 90px;
  }
  :where(html.pg-directory) .contact-form tr:last-child td:last-child {
    margin-top: 8px;
  }
  :where(html.pg-directory) .contact-form input[type="submit"] {
    width: 100%;
    min-width: 0;
    padding: 12px;
  }
}
:where(html.pg-directory) .hamburger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 1.4rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
:where(html.pg-directory) .hero img {
  width: 100%;
  height: 275px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
:where(html.pg-directory) .dir-intro {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 28px;
}
:where(html.pg-directory) .dir-intro strong {
  color: var(--text);
}
:where(html.pg-directory) .price-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  margin: 8px 0 32px;
  box-shadow: var(--shadow-sm);
}
:where(html.pg-directory) .price-badge i {
  font-size: 1.3rem;
  opacity: 0.85;
}
:where(html.pg-directory) .price-badge .price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "DM Serif Display", serif;
}
:where(html.pg-directory) .price-badge .price-label {
  font-size: 0.85rem;
  opacity: 0.85;
}
:where(html.pg-directory) .dir-features {
  list-style: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
:where(html.pg-directory) .dir-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
  transition: var(--transition);
}
:where(html.pg-directory) .dir-features li:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--text);
}
:where(html.pg-directory) .dir-features li i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
:where(html.pg-directory) .dir-cta-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  justify-content: center;
}
:where(html.pg-directory) .btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(232,81,10,0.3);
}
:where(html.pg-directory) .btn-apply:hover {
  background: #c9420a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,81,10,0.4);
}
:where(html.pg-directory) .btn-apply i {
  font-size: 1.1rem;
}
:where(html.pg-directory) .btn-sample {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface-3);
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
:where(html.pg-directory) .btn-sample:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}
:where(html.pg-directory) .btn-sample i {
  font-size: 1rem;
}
:where(html.pg-directory) .dir-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-directory) .dir-note i {
  color: var(--primary);
  margin-right: 6px;
}
:where(html.pg-directory) .sidebar-banner {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  background: transparent;
}
@media (max-width: 768px) {
  :where(html.pg-directory) .mobile-search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
  }
  :where(html.pg-directory) .mobile-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    font-family: inherit;
  }
  :where(html.pg-directory) .dir-features {
    grid-template-columns: 1fr;
  }
  :where(html.pg-directory) .dir-cta-wrap {
    flex-direction: column;
  }
  :where(html.pg-directory) .btn-apply,
  :where(html.pg-directory) .btn-sample {
    width: 100%;
    justify-content: center;
  }
  :where(html.pg-directory) .price-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ===== directory_tx ===== */
:where(html.pg-directory-tx) body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== afrotrade_directory, directory_tx ===== */
:where(html.pg-directory, html.pg-directory-tx) .hero {
  background: var(--primary);
  overflow: hidden;
}
:where(html.pg-directory, html.pg-directory-tx) .hero img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ===== afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news, directory_tx ===== */
:where(html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms) main {
  padding: 48px 0 80px;
}
:where(html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== afrotrade_terms, detail_news ===== */
@media (max-width: 1100px) {
  :where(html.pg-detail-news, html.pg-terms) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news, directory_tx ===== */
:where(html.pg-detail-news, html.pg-directory-tx, html.pg-listing, html.pg-listing1, html.pg-terms) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

/* ===== afrotrade_directory, directory_tx ===== */
:where(html.pg-directory, html.pg-directory-tx) .card-head {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-directory, html.pg-directory-tx) .card-head-accent {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-directory, html.pg-directory-tx) .card-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== afrotrade_listing, afrotrade_listing1, afrotrade_terms, detail_news ===== */
:where(html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .card-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-detail-news, html.pg-listing, html.pg-listing1, html.pg-terms) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ===== afrotrade_listing ===== */
:where(html.pg-listing) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== afrotrade_listing1 ===== */
:where(html.pg-listing1) .card-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== afrotrade_listing, afrotrade_listing1, directory_tx ===== */
:where(html.pg-directory-tx, html.pg-listing, html.pg-listing1) .card-body {
  padding: 28px 32px;
}

/* ===== afrotrade_directory, directory_tx ===== */
:where(html.pg-directory, html.pg-directory-tx) .info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
:where(html.pg-directory, html.pg-directory-tx) .info-tile {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
:where(html.pg-directory, html.pg-directory-tx) .info-tile:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}
:where(html.pg-directory, html.pg-directory-tx) .info-tile-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
:where(html.pg-directory, html.pg-directory-tx) .info-tile-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
:where(html.pg-directory, html.pg-directory-tx) .info-tile-text span {
  font-size: 0.8rem;
  color: var(--text-3);
}
:where(html.pg-directory, html.pg-directory-tx) .price-callout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
:where(html.pg-directory, html.pg-directory-tx) .price-callout-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
:where(html.pg-directory, html.pg-directory-tx) .price-callout-left i {
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
}
:where(html.pg-directory, html.pg-directory-tx) .price-callout-left .price-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
:where(html.pg-directory, html.pg-directory-tx) .price-callout-left .price-amount {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  font-family: "DM Serif Display", serif;
  line-height: 1;
}
:where(html.pg-directory, html.pg-directory-tx) .price-line-text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
}
:where(html.pg-directory, html.pg-directory-tx) .form-wrap {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
:where(html.pg-directory, html.pg-directory-tx) .form-intro {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}
:where(html.pg-directory, html.pg-directory-tx) .fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
:where(html.pg-directory, html.pg-directory-tx) .field-full {
  grid-column: 1 / -1;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
:where(html.pg-directory, html.pg-directory-tx) .field-group label .req {
  color: var(--accent);
  margin-left: 2px;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group input[type="text"],
:where(html.pg-directory, html.pg-directory-tx) .field-group select,
:where(html.pg-directory, html.pg-directory-tx) .field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group input:focus,
:where(html.pg-directory, html.pg-directory-tx) .field-group select:focus,
:where(html.pg-directory, html.pg-directory-tx) .field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,82,140,0.1);
  background: white;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group textarea {
  min-height: 100px;
  resize: vertical;
}
:where(html.pg-directory, html.pg-directory-tx) .field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5875' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
:where(html.pg-directory, html.pg-directory-tx) .err-msg {
  font-size: 0.8rem;
  color: #c62828;
  display: none;
  margin-top: 3px;
}
:where(html.pg-directory, html.pg-directory-tx) .err-msg.show {
  display: block;
}
:where(html.pg-directory, html.pg-directory-tx) .submit-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
:where(html.pg-directory, html.pg-directory-tx) .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(10,82,140,0.3);
}
:where(html.pg-directory, html.pg-directory-tx) .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,82,140,0.4);
}
:where(html.pg-directory, html.pg-directory-tx) .btn-submit:disabled {
  cursor: not-allowed !important;
  transform: none;
  box-shadow: 0 4px 16px rgba(10,82,140,0.3);
}
:where(html.pg-directory, html.pg-directory-tx) .btn-submit:disabled:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(10,82,140,0.3);
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 24px;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.success {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7;
  border-left: 5px solid var(--green);
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.warning {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffcc80;
  border-left: 5px solid #e65100;
}
:where(html.pg-directory, html.pg-directory-tx) .status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
:where(html.pg-directory, html.pg-directory-tx) .status-icon.green {
  background: var(--green);
  color: white;
}
:where(html.pg-directory, html.pg-directory-tx) .status-icon.orange {
  background: #e65100;
  color: white;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.success h3 {
  color: #2e7d32;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.success p {
  color: #388e3c;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.warning h3 {
  color: #e65100;
}
:where(html.pg-directory, html.pg-directory-tx) .status-banner.warning p {
  color: #bf360c;
}
:where(html.pg-directory, html.pg-directory-tx) .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
:where(html.pg-directory, html.pg-directory-tx) .btn-back.green-btn {
  background: var(--green);
  color: white;
}
:where(html.pg-directory, html.pg-directory-tx) .btn-back.green-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}
:where(html.pg-directory, html.pg-directory-tx) .btn-back.orange-btn {
  background: #e65100;
  color: white;
}
:where(html.pg-directory, html.pg-directory-tx) .btn-back.orange-btn:hover {
  background: #bf360c;
  transform: translateY(-2px);
}
:where(html.pg-directory, html.pg-directory-tx) .hp-field {
  display: none !important;
}

/* ===== directory_tx ===== */
:where(html.pg-directory-tx) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== afrotrade_directory, directory_tx ===== */
:where(html.pg-directory, html.pg-directory-tx) .sidebar-banner {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  transition: var(--transition);
}

/* ===== directory_tx ===== */
:where(html.pg-directory-tx) .sidebar-banner:hover {
  transform: translateY(-4px);
}
:where(html.pg-directory-tx) .sidebar-banner img {
  width: 75%;
  display: block;
  margin: 0 auto;
}
:where(html.pg-directory-tx) .sidebar .card {
  margin-bottom: 0;
}
:where(html.pg-directory-tx) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}
:where(html.pg-directory-tx) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 20px 40px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(10,60,120,0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html.pg-directory-tx) .cookie-consent p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
:where(html.pg-directory-tx) .cookie-btns {
  display: flex;
  gap: 10px;
}
:where(html.pg-directory-tx) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}
:where(html.pg-directory-tx) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ===== afrotrade_directory, directory_tx ===== */
@keyframes popIn-v2 {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
:where(html.pg-directory, html.pg-directory-tx) .pop-in {
  animation: popIn-v2 0.4s ease forwards;
}

/* ===== directory_tx ===== */
:where(html.pg-directory-tx) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}

/* ===== afrotrade_directory, directory_tx ===== */
:where(html.pg-directory, html.pg-directory-tx) .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px,100vw);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===== directory_tx ===== */
:where(html.pg-directory-tx) .mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-2);
  background: none;
  border: none;
}
@media (max-width: 768px) {
  :where(html.pg-directory-tx) .page-wrap,
  :where(html.pg-directory-tx) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-directory-tx) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== afrotrade_directory, directory_tx ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-directory-tx) .card-body {
    padding: 20px 18px;
  }
  :where(html.pg-directory, html.pg-directory-tx) .form-wrap {
    padding: 20px 16px;
  }
  :where(html.pg-directory, html.pg-directory-tx) .info-strip {
    grid-template-columns: 1fr 1fr;
  }
  :where(html.pg-directory, html.pg-directory-tx) .fields-grid {
    grid-template-columns: 1fr;
  }
  :where(html.pg-directory, html.pg-directory-tx) .field-full {
    grid-column: 1;
  }
  :where(html.pg-directory, html.pg-directory-tx) .price-callout {
    flex-direction: column;
    text-align: center;
  }
  :where(html.pg-directory, html.pg-directory-tx) .price-callout-left {
    justify-content: center;
  }
  :where(html.pg-directory, html.pg-directory-tx) .submit-row {
    flex-direction: column;
  }
  :where(html.pg-directory, html.pg-directory-tx) .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ===== directory_tx ===== */
@media (max-width: 768px) {
  :where(html.pg-directory-tx) .sidebar-banner img {
    width: 60%;
  }
}

/* ===== afrotrade_directory, directory_tx ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-directory-tx) .hero img {
    height: 180px;
  }
  :where(html.pg-directory, html.pg-directory-tx) .cookie-consent {
    padding: 16px;
  }
}
@media (max-width: 480px) {
  :where(html.pg-directory, html.pg-directory-tx) .info-strip {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-directory, html.pg-directory-tx) .delivery-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background-color: #fff;
}
:where(html.pg-directory, html.pg-directory-tx) .delivery-icon {
  font-size: 22px;
  color: #0073e6;
}
:where(html.pg-directory, html.pg-directory-tx) .delivery-text strong {
  display: block;
  font-size: 14px;
  color: #333;
}
:where(html.pg-directory, html.pg-directory-tx) .delivery-text small {
  font-size: 12px;
  color: #888;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1 ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-summary-left i {
  color: var(--primary);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-summary-left strong {
  color: var(--primary);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-summary-right {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-num {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-body {
  flex: 1;
  min-width: 0;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-thumb {
  flex: 0 0 120px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-thumb img {
  width: 120px;
  height: 85px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-company-info {
  flex: 1;
  min-width: 0;
}

/* ===== afrotrade_directory, afrotrade_listing ===== */
:where(html.pg-directory, html.pg-listing) .result-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: "Helvetica Neue", serif;
  margin-bottom: 8px;
}

/* ===== afrotrade_listing1 ===== */
:where(html.pg-listing1) .result-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: "DM Serif Display", serif;
  margin-bottom: 8px;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1 ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .result-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .comp-adv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: var(--transition);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .comp-adv-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn.pag-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  pointer-events: none;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn.pag-nav {
  padding: 0 16px;
  background: var(--surface-3);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn.pag-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-btn.pag-disabled {
  opacity: 0.4;
  pointer-events: none;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-dots {
  color: var(--text-3);
  font-size: 1rem;
  padding: 0 2px;
  line-height: 40px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-info {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-3);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .pag-info strong {
  color: var(--text-2);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-overlay.open {
  display: flex;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: advModalIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes advModalIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-close:hover {
  background: var(--accent);
  transform: scale(1.1) rotate(90deg);
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-img-wrap {
  margin-bottom: 16px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1) .adv-modal-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}

/* ===== afrotrade_directory, afrotrade_listing ===== */
:where(html.pg-directory, html.pg-listing) #advModalName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Helvetica Neue", serif;
  margin: 0;
}

/* ===== afrotrade_directory ===== */
@media (max-width: 768px) {
  :where(html.pg-directory) .result-item {
    padding: 14px 14px 14px 18px;
  }
  :where(html.pg-directory) .result-num {
    display: none;
  }
  :where(html.pg-directory) .result-top {
    flex-direction: column;
  }
  :where(html.pg-directory) .result-thumb {
    flex: none;
    width: 100%;
  }
  :where(html.pg-directory) .result-thumb img {
    width: 100%;
    height: 160px;
  }
}

/* ===== afrotrade_terms ===== */
:where(html.pg-terms) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
}
:where(html.pg-terms) .card-body {
  padding: 28px;
}

/* ===== afrotrade_directory, afrotrade_terms ===== */
:where(html.pg-directory, html.pg-terms) .terms-note {
  background: var(--accent-light);
  border: 1px solid #f5c6a8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.75;
}
:where(html.pg-directory, html.pg-terms) .terms-note b {
  color: var(--accent);
}
:where(html.pg-directory, html.pg-terms) .terms-list {
  list-style: none;
  counter-reset: terms-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li {
  counter-increment: terms-counter;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.8;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li:first-child {
  padding-top: 4px;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li::before {
  content: counter(terms-counter, lower-alpha) ".";
  min-width: 32px;
  height: 32px;
  background: var(--primary-light);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li b {
  color: var(--text);
  font-weight: 600;
}
:where(html.pg-directory, html.pg-terms) .terms-list > li .clause-text {
  flex: 1;
  padding-top: 4px;
}
:where(html.pg-directory, html.pg-terms) .terms-address {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .advt-modal-head h3 {
  font-family: "Helvetica Neue", serif;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== detail_news ===== */
:where(html.pg-detail-news) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
}
:where(html.pg-detail-news) .card-body {
  padding: 28px;
}

/* ===== afrotrade_directory, detail_news ===== */
:where(html.pg-detail-news, html.pg-directory) .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--primary-light);
  transition: var(--transition);
}
:where(html.pg-detail-news, html.pg-directory) .back-link:hover {
  background: var(--primary);
  color: white;
}
:where(html.pg-detail-news, html.pg-directory) .news-title {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 10px;
}
:where(html.pg-detail-news, html.pg-directory) .news-date {
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: right;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
:where(html.pg-detail-news, html.pg-directory) .news-date b {
  color: var(--text-2);
}
:where(html.pg-detail-news, html.pg-directory) .news-img {
  float: left;
  margin: 5px 20px 16px 0;
  max-width: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 4px;
  background: white;
  box-shadow: var(--shadow-xs);
}
:where(html.pg-detail-news, html.pg-directory) .news-body {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.7;
}
:where(html.pg-detail-news, html.pg-directory) .news-body p {
  margin-bottom: 10px;
}
:where(html.pg-detail-news, html.pg-directory) .news-body p:empty {
  display: none;
}
:where(html.pg-detail-news, html.pg-directory) .news-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 4px;
  background: white;
}
:where(html.pg-detail-news, html.pg-directory) .news-body a {
  color: var(--primary);
  font-weight: 500;
}
:where(html.pg-detail-news, html.pg-directory) .news-body a:hover {
  text-decoration: underline;
}
:where(html.pg-detail-news, html.pg-directory) .news-source {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 12px;
  clear: both;
}
:where(html.pg-detail-news, html.pg-directory) .share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  clear: both;
}
:where(html.pg-detail-news, html.pg-directory) .share-bar span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
:where(html.pg-detail-news, html.pg-directory) .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
:where(html.pg-detail-news, html.pg-directory) .share-btn.fb {
  background: #1877f2;
  color: white;
}
:where(html.pg-detail-news, html.pg-directory) .share-btn.tw {
  background: #1da1f2;
  color: white;
}
:where(html.pg-detail-news, html.pg-directory) .share-btn.wa {
  background: #25d366;
  color: white;
}
:where(html.pg-detail-news, html.pg-directory) .share-btn.lk {
  background: #0077b5;
  color: white;
}
:where(html.pg-detail-news, html.pg-directory) .share-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
:where(html.pg-detail-news, html.pg-directory) .ad-block {
  margin: 20px 0;
  text-align: center;
  clear: both;
}

/* ===== afrotrade_terms, detail_news ===== */
:where(html.pg-detail-news, html.pg-terms) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== afrotrade_directory, afrotrade_terms, detail_news ===== */
:where(html.pg-detail-news, html.pg-directory, html.pg-terms) .sidebar-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* ===== afrotrade_directory ===== */
@media (max-width: 640px) {
  :where(html.pg-directory) .page-wrap,
  :where(html.pg-directory) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-directory) .news-img {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  :where(html.pg-directory) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
  :where(html.pg-directory) .news-img {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }
}
:where(html.pg-directory) .category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}
:where(html.pg-directory) .category-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
:where(html.pg-directory) .category-icon {
  font-size: 1.4rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
  position: relative;
  top: 6px;
}
:where(html.pg-directory) .category-card:hover .category-icon {
  color: rgba(255,255,255,0.9);
  transform: scale(1.1);
}
:where(html.pg-directory) .float-img-right {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s;
}
:where(html.pg-directory) .float-img-right:hover {
  transform: scale(1.03);
}
:where(html.pg-directory) .dist-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
:where(html.pg-directory) .dist-text strong {
  color: var(--text);
}
:where(html.pg-directory) .dist-bullets {
  margin-top: 12px;
}
:where(html.pg-directory) .dist-bullets li {
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}
:where(html.pg-directory) .dist-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
:where(html.pg-directory) .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
@media (max-width: 768px) {
  :where(html.pg-directory) .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    justify-items: center;
    gap: 12px;
  }
  :where(html.pg-directory) .category-card {
    width: 100%;
    max-width: 280px;
  }
  :where(html.pg-directory) .more-item {
    display: none;
  }
  :where(html.pg-directory) .show-more-wrap {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 8px;
  }
  :where(html.pg-directory) .show-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  :where(html.pg-directory) .show-more-btn:hover {
    background: var(--primary-mid);
    transform: translateY(-1px);
  }
  :where(html.pg-directory) .show-more-btn.show-less {
    background: #555;
  }
  :where(html.pg-directory) .show-more-btn.show-less:hover {
    background: #444;
  }
}
@media (min-width: 769px) {
  :where(html.pg-directory) .show-more-wrap {
    display: none !important;
  }
}
@media (max-width: 768px) {
  :where(html.pg-directory) .news-item-body p {
    font-size: 0.75rem !important;
  }
  :where(html.pg-directory) .news-item-body h4 {
    font-size: 1rem !important;
  }
  :where(html.pg-directory) .news-item-meta {
    font-size: 0.82rem !important;
  }
  :where(html.pg-directory) .news-item-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  :where(html.pg-directory) .news-item-thumb {
    flex: none !important;
    width: 100% !important;
  }
  :where(html.pg-directory) .news-item-thumb img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  :where(html.pg-directory) .card-body > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 8px !important;
  }
  :where(html.pg-directory) .card-body > div[style*="grid-template-columns"]::-webkit-scrollbar {
    display: none !important;
  }
  :where(html.pg-directory) .expo-tile {
    flex: 0 0 150px !important;
    scroll-snap-align: start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px 12px !important;
  }
}
@media (max-width: 480px) {
  :where(html.pg-directory) .expo-tile {
    flex: 0 0 55% !important;
  }
}
:where(html.pg-directory) .expo-progress-wrap {
  display: none;
}
@media (max-width: 768px) {
  :where(html.pg-directory) .copy-link {
    padding: 11px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
}

/* ===== about_afrotrade, afrotrade_contactus, afrotrade_gallery, afrotrade_sublisting, market_news, media_partners ===== */
:root:where(.pg-about-afrotrade, .pg-contactus, .pg-gallery, .pg-market-news, .pg-media-partners, .pg-sublisting) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== about_afrotrade, afrotrade_contactus, afrotrade_gallery, market_news, media_partners ===== */
:where(html.pg-about-afrotrade, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners),
:where(html.pg-about-afrotrade, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners) *,
:where(html.pg-about-afrotrade, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners) *::before,
:where(html.pg-about-afrotrade, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners) *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== afrotrade_directory, market_news ===== */
:where(html.pg-directory, html.pg-market-news) body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
:where(html.pg-directory, html.pg-market-news) main {
  padding: 48px 0 100px;
}
:where(html.pg-directory, html.pg-market-news) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
:where(html.pg-directory, html.pg-market-news) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
:where(html.pg-directory, html.pg-market-news) .card-head {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-directory, html.pg-market-news) .card-head-accent {
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
}
:where(html.pg-directory, html.pg-market-news) .card-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
}
:where(html.pg-directory, html.pg-market-news) .card-body {
  padding: 40px 32px;
}
:where(html.pg-directory, html.pg-market-news) .news-post {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  transition: background 0.2s;
}
:where(html.pg-directory, html.pg-market-news) .news-post:hover {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0 -32px;
}
:where(html.pg-directory, html.pg-market-news) .news-image {
  flex: 0 0 220px;
}
:where(html.pg-directory, html.pg-market-news) .news-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
:where(html.pg-directory, html.pg-market-news) .news-content {
  flex: 1;
  min-width: 0;
}
:where(html.pg-directory, html.pg-market-news) .news-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 16px;
}
:where(html.pg-directory, html.pg-market-news) .news-excerpt {
  font-size: 1.05rem;
  color: var(--text-2);
  margin: 0 0 16px;
}
:where(html.pg-directory, html.pg-market-news) .news-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
:where(html.pg-directory, html.pg-market-news) .news-more:hover {
  text-decoration: underline;
}
:where(html.pg-directory, html.pg-market-news) .news-meta {
  font-size: 0.95rem;
  color: var(--text-3);
  margin-top: 20px;
}
:where(html.pg-directory, html.pg-market-news) .pagination {
  text-align: center;
  margin: 48px 0 24px;
  font-size: 1.05rem;
}
:where(html.pg-directory, html.pg-market-news) .pagination a,
:where(html.pg-directory, html.pg-market-news) .pagination span {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-2);
  transition: all 0.2s;
}
:where(html.pg-directory, html.pg-market-news) .pagination a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
:where(html.pg-directory, html.pg-market-news) .pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}
:where(html.pg-directory, html.pg-market-news) .pagination .disabled {
  color: #aaa;
  background: #f5f5f5;
  cursor: not-allowed;
}
:where(html.pg-directory, html.pg-market-news) .ads-container {
  text-align: center;
  margin: 48px 0;
  padding: 20px;
  background: var(--surface-3);
  border-radius: var(--radius);
}
:where(html.pg-directory, html.pg-market-news) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
:where(html.pg-directory, html.pg-market-news) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 48px;
}
:where(html.pg-directory, html.pg-market-news) footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 80px 0 48px;
  text-align: center;
}
:where(html.pg-directory, html.pg-market-news) .footer-links {
  margin-bottom: 40px;
  font-size: 1.08rem;
}
:where(html.pg-directory, html.pg-market-news) .footer-links a {
  color: #94a3b8;
  margin: 0 20px;
  text-decoration: none;
}
:where(html.pg-directory, html.pg-market-news) .btm-bar {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 28px 0;
  font-size: 1rem;
  border-top: 1px solid #1e293b;
}
:where(html.pg-directory, html.pg-market-news) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 24px 40px;
  z-index: 9999;
  box-shadow: 0 -10px 40px rgba(10,60,120,0.15);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
:where(html.pg-directory, html.pg-market-news) .cookie-consent p {
  font-size: 0.95rem;
  color: var(--text-2);
  flex: 1;
  min-width: 240px;
}
:where(html.pg-directory, html.pg-market-news) .cookie-btns {
  display: flex;
  gap: 12px;
}
:where(html.pg-directory, html.pg-market-news) .cookie-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-market-news) .card-head {
    padding: 20px 24px;
  }
  :where(html.pg-directory, html.pg-market-news) .card-body {
    padding: 32px 24px;
  }
  :where(html.pg-directory, html.pg-market-news) .news-post {
    flex-direction: column;
  }
  :where(html.pg-directory, html.pg-market-news) .news-image {
    flex: 0 0 auto;
    max-width: 100%;
  }
  :where(html.pg-directory, html.pg-market-news) .news-content {
    width: 100%;
  }
  :where(html.pg-directory, html.pg-market-news) .pagination a,
  :where(html.pg-directory, html.pg-market-news) .pagination span {
    padding: 8px 12px;
    margin: 4px;
    font-size: 0.95rem;
  }
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, media_partners, trade_events, xdeals_banners ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events, xdeals_banners ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .logo-wrap img.logo {
  max-height: 54px;
  width: auto;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) nav.desktop-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .search-form,
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .mobile-search-bar form {
  background: white !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 50px;
  overflow: hidden;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .search-input,
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .mobile-search-bar input {
  background: white !important;
  color: var(--text) !important;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 200px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .search-btn,
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .mobile-search-bar button {
  background: var(--primary) !important;
  color: white !important;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0 50px 50px 0;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events, xdeals_banners ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .hamburger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 1.6rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .hamburger:hover {
  background: #d0e3f5;
  transform: scale(1.05);
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-2);
  background: none;
  border: none;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) main {
  padding: 48px 0 80px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events ===== */
@media (max-width: 1100px) {
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events, xdeals_banners ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events, html.pg-xdeals-banners) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, trade_events, xdeals_banners ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events, html.pg-xdeals-banners) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ===== media_partners ===== */
:where(html.pg-media-partners) .card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .card-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ===== afrotrade_directory, market_news ===== */
:where(html.pg-directory, html.pg-market-news) .card-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, media_partners, trade_events ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-media-partners, html.pg-trade-events) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, media_partners, trade_events ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-media-partners, html.pg-trade-events) .card-body {
  padding: 28px;
}

/* ===== afrotrade_contactus, afrotrade_directory, market_news ===== */
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form table {
  width: 100%;
  max-width: 620px;
  margin: 20px auto;
  border-collapse: separate;
  border-spacing: 0 14px;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form td {
  padding: 8px 0;
  vertical-align: middle;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form label {
  font-weight: 500;
  color: var(--text-2);
  display: block;
  margin-bottom: 6px;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form input[type="text"],
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form textarea {
  height: 110px;
  resize: vertical;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form input[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.05rem;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form input[type="submit"]:hover {
  background: var(--primary-mid);
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .error-msg {
  color: #c62828;
  font-size: 0.9rem;
  margin-top: 6px;
  display: none;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .required {
  color: #c62828;
  font-weight: bold;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-info {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: var(--surface-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-info p {
  margin: 1.2rem 0;
  line-height: 1.6;
}
:where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-info strong {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===== afrotrade_advertising ===== */
:where(html.pg-advertising) .rates-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
:where(html.pg-advertising) .rates-table th,
:where(html.pg-advertising) .rates-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
:where(html.pg-advertising) .rates-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
:where(html.pg-advertising) .rates-table tr:nth-child(even) {
  background: var(--surface-3);
}
:where(html.pg-advertising) .form-group {
  margin: 32px 0;
  padding: 20px;
  background: var(--surface-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
:where(html.pg-advertising) select {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 280px;
  background: white;
  color: var(--text);
}
:where(html.pg-advertising) input[type="submit"] {
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-left: 16px;
}
:where(html.pg-advertising) input[type="submit"]:hover {
  background: var(--primary-mid);
}

/* ===== afrotrade_gallery ===== */
:where(html.pg-gallery) .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
:where(html.pg-gallery) .gallery-grid li a {
  display: block;
  cursor: pointer;
}
:where(html.pg-gallery) .gallery-grid img {
  width: 100%;
  height: auto;
  border: 3px solid #666;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
:where(html.pg-gallery) .gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
:where(html.pg-gallery) #imagePopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
:where(html.pg-gallery) #popupContent {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}
:where(html.pg-gallery) #popupImage {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  border: 4px solid white;
}
:where(html.pg-gallery) #closePopup {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: white;
  color: #c62828;
  border-radius: 50%;
  border: 4px solid white;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.2s;
}
:where(html.pg-gallery) #closePopup:hover {
  background: #ffebee;
  transform: scale(1.1);
}

/* ===== trade_events ===== */
:where(html.pg-trade-events) .event-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
:where(html.pg-trade-events) .event-list li {
  margin: 12px 0;
  font-size: 1.05rem;
}
:where(html.pg-trade-events) .event-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
:where(html.pg-trade-events) .event-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== about_afrotrade ===== */
:where(html.pg-about-afrotrade) .intro-img {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
:where(html.pg-about-afrotrade) .intro-img:hover {
  transform: scale(1.03);
}
:where(html.pg-about-afrotrade) .section-title {
  margin: 2.5rem 0 1.2rem;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 600;
}
:where(html.pg-about-afrotrade) .benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
:where(html.pg-about-afrotrade) .benefits-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}
:where(html.pg-about-afrotrade) .benefits-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1.4;
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, trade_events ===== */
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .footer-links a {
  color: #94a3b8;
  margin: 0 16px;
  text-decoration: none;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 20px 40px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(10,60,120,0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .cookie-consent p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .cookie-btns {
  display: flex;
  gap: 10px;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
}
:where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .hamburger {
    display: flex !important;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .header-inner {
    grid-template-columns: auto auto;
    padding: 0 16px;
    min-height: 64px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .logo-wrap img.logo {
    max-height: 44px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .search-form {
    display: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    position: sticky;
    top: 64px;
    z-index: 999;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .page-wrap,
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .advt-wrap {
    padding: 0 16px;
  }
}

/* ===== afrotrade_contactus, afrotrade_directory, market_news ===== */
@media (max-width: 768px) {
  :where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  :where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-form input[type="submit"] {
    width: 100%;
  }
  :where(html.pg-contactus, html.pg-directory, html.pg-market-news) .contact-info {
    padding: 1.2rem;
  }
}

/* ===== afrotrade_advertising ===== */
@media (max-width: 768px) {
  :where(html.pg-advertising) .rates-table th,
  :where(html.pg-advertising) .rates-table td {
    font-size: 0.9rem;
    padding: 10px;
  }
  :where(html.pg-advertising) .form-group {
    padding: 16px;
  }
  :where(html.pg-advertising) select {
    width: 100%;
    min-width: auto;
  }
  :where(html.pg-advertising) input[type="submit"] {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
}

/* ===== afrotrade_gallery ===== */
@media (max-width: 768px) {
  :where(html.pg-gallery) .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

/* ===== trade_events ===== */
@media (max-width: 768px) {
  :where(html.pg-trade-events) .event-list li {
    font-size: 1rem;
  }
}

/* ===== about_afrotrade ===== */
@media (max-width: 768px) {
  :where(html.pg-about-afrotrade) .intro-img {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
  :where(html.pg-about-afrotrade) .section-title {
    font-size: 1.3rem;
  }
  :where(html.pg-about-afrotrade) .benefits-list li {
    padding-left: 2.2rem;
    font-size: 1rem;
  }
}

/* ===== about_afrotrade, afrotrade_advertising, afrotrade_contactus, afrotrade_gallery, market_news, trade_events ===== */
@media (max-width: 640px) {
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .page-wrap,
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .utility-bar .inner,
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .footer-inner,
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .hero-overlay {
    padding: 24px 16px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .float-img-right {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) img {
    max-width: 100%;
    height: auto;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    min-height: 56px;
    gap: 10px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) nav.desktop-nav {
    display: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .header-right .search-form {
    display: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .header-right {
    gap: 0;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .logo-wrap {
    justify-content: flex-start;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .logo-wrap img.logo {
    max-height: 38px;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .logo-wrap img.tagline {
    display: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    position: sticky;
    top: 56px;
    z-index: 999;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar form:focus-within {
    border-color: var(--primary);
    background: #fff;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 9px 14px;
    font-size: 0.87rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.83rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    white-space: nowrap;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    position: sticky;
    top: 56px;
    z-index: 998;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar form {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar input:focus {
    outline: none;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .mobile-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .sidebar-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .sidebar-banner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  :where(html.pg-about-afrotrade, html.pg-advertising, html.pg-contactus, html.pg-gallery, html.pg-market-news, html.pg-trade-events) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* ===== afrotrade_directory, market_news ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-market-news) .page-wrap {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
    gap: 0 !important;
  }
  :where(html.pg-directory, html.pg-market-news) main {
    padding: 20px 0 60px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .card {
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .card-head {
    padding: 14px 16px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .card-head h2 {
    font-size: 1.1rem !important;
  }
}

/* ===== market_news ===== */
@media (max-width: 768px) {
  :where(html.pg-market-news) .card-body {
    padding: 16px !important;
  }
}

/* ===== afrotrade_directory, market_news ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-market-news) .news-post {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 0 !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-post:hover {
    padding: 16px !important;
    margin: 0 -16px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-image {
    flex: none !important;
    width: 100% !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-title {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-excerpt {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
  :where(html.pg-directory, html.pg-market-news) .news-meta {
    font-size: 0.82rem !important;
    margin-top: 10px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .pagination {
    margin: 24px 0 16px !important;
    font-size: 0.88rem !important;
  }
  :where(html.pg-directory, html.pg-market-news) .pagination a,
  :where(html.pg-directory, html.pg-market-news) .pagination span {
    padding: 7px 10px !important;
    margin: 3px !important;
    font-size: 0.85rem !important;
  }
  :where(html.pg-directory, html.pg-market-news) .ads-container {
    margin: 24px 0 !important;
    padding: 12px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .ads-container ins {
    width: 100% !important;
    max-width: 320px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .sidebar {
    gap: 16px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .advt-wrap {
    padding: 0 12px !important;
  }
  :where(html.pg-directory, html.pg-market-news) footer {
    padding: 40px 16px 24px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 4px !important;
    font-size: 0.85rem !important;
    padding: 0 12px !important;
    margin-bottom: 20px !important;
  }
  :where(html.pg-directory, html.pg-market-news) .footer-links a {
    margin: 0 6px !important;
    font-size: 0.85rem !important;
  }
  :where(html.pg-directory, html.pg-market-news) .btm-bar {
    font-size: 0.8rem !important;
    padding: 14px 16px !important;
    line-height: 1.7 !important;
  }
  :where(html.pg-directory, html.pg-market-news) .cookie-consent {
    padding: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  :where(html.pg-directory, html.pg-market-news) .cookie-btns {
    width: 100% !important;
    justify-content: flex-end !important;
  }
  :where(html.pg-directory, html.pg-market-news) body {
    overflow-x: hidden !important;
  }
  :where(html.pg-directory, html.pg-market-news) .page-wrap {
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  :where(html.pg-directory, html.pg-market-news) .card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  :where(html.pg-directory, html.pg-market-news) .advt-wrap {
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-directory, html.pg-market-news) main {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
  :where(html.pg-directory, html.pg-market-news) .page-wrap > div,
  :where(html.pg-directory, html.pg-market-news) .page-wrap > aside {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== afrotrade_directory, media_partners ===== */
:where(html.pg-directory, html.pg-media-partners) .mp-intro {
  font-size: 1rem;
  color: var(--text-2);
  margin: 0 0 24px;
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}
:where(html.pg-directory, html.pg-media-partners) .mp-title {
  text-align: center;
  margin-bottom: 36px;
}
:where(html.pg-directory, html.pg-media-partners) .mp-title h1 {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
:where(html.pg-directory, html.pg-media-partners) .mp-title hr {
  border: 0;
  border-top: 4px solid var(--primary-mid);
  width: 160px;
  margin: 18px auto 0;
  border-radius: 2px;
}
:where(html.pg-directory, html.pg-media-partners) .mp-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
:where(html.pg-directory, html.pg-media-partners) .mp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-image {
  width: 170px;
  height: 105px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
:where(html.pg-directory, html.pg-media-partners) .no-logo {
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-content {
  min-width: 0;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-content h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.3;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-content h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-content h3 a:hover {
  color: var(--primary-mid);
  text-decoration: underline;
}
:where(html.pg-directory, html.pg-media-partners) .media-partner-content p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}
:where(html.pg-directory, html.pg-media-partners) .no-partners {
  text-align: center;
  padding: 60px 16px;
  color: var(--text-3);
  font-size: 1.1rem;
}
:where(html.pg-directory, html.pg-media-partners) .mp-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-top: 32px;
}
:where(html.pg-directory, html.pg-media-partners) .mp-pagination a,
:where(html.pg-directory, html.pg-media-partners) .mp-pagination span {
  display: inline-block;
  min-width: 40px;
  padding: 8px 14px;
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
:where(html.pg-directory, html.pg-media-partners) .mp-pagination a:hover {
  background: var(--primary-light);
}
:where(html.pg-directory, html.pg-media-partners) .mp-pagination .active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
:where(html.pg-directory, html.pg-media-partners) .mp-pagination .disabled span {
  color: var(--text-3);
  background: var(--surface-3);
  cursor: not-allowed;
}

/* ===== media_partners ===== */
:where(html.pg-media-partners) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
:where(html.pg-media-partners) .sidebar .card {
  margin-bottom: 0;
}
:where(html.pg-media-partners) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}
:where(html.pg-media-partners) .footer-links a {
  color: #94a3b8;
  margin: 0 16px;
  text-decoration: none;
}
:where(html.pg-media-partners) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 20px 40px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(10,60,120,0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html.pg-media-partners) .cookie-consent p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
:where(html.pg-media-partners) .cookie-btns {
  display: flex;
  gap: 10px;
}
:where(html.pg-media-partners) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
}
:where(html.pg-media-partners) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  :where(html.pg-media-partners) .hamburger {
    display: flex !important;
  }
}

/* ===== afrotrade_directory, media_partners ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-media-partners) .search-form {
    display: none !important;
  }
  :where(html.pg-directory, html.pg-media-partners) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    position: sticky;
    top: 56px;
    z-index: 998;
  }
  :where(html.pg-directory, html.pg-media-partners) .mobile-search-bar form {
    display: flex;
    align-items: center;
  }
  :where(html.pg-directory, html.pg-media-partners) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    width: auto;
  }
}

/* ===== media_partners ===== */
@media (max-width: 768px) {
  :where(html.pg-media-partners) .page-wrap,
  :where(html.pg-media-partners) .advt-wrap {
    padding: 0 16px;
  }
}

/* ===== afrotrade_directory, media_partners ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-media-partners) .card-head {
    padding: 16px 20px;
  }
  :where(html.pg-directory, html.pg-media-partners) .card-body {
    padding: 20px 16px;
  }
  :where(html.pg-directory, html.pg-media-partners) .mp-list {
    gap: 12px;
  }
  :where(html.pg-directory, html.pg-media-partners) .media-partner-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }
  :where(html.pg-directory, html.pg-media-partners) .media-partner-image {
    width: 100%;
    max-width: 200px;
    height: 100px;
  }
  :where(html.pg-directory, html.pg-media-partners) .media-partner-content h3 {
    font-size: 1.05rem;
  }
  :where(html.pg-directory, html.pg-media-partners) .media-partner-content p {
    font-size: 0.88rem;
  }
  :where(html.pg-directory, html.pg-media-partners) .mp-pagination a,
  :where(html.pg-directory, html.pg-media-partners) .mp-pagination span {
    min-width: 36px;
    padding: 7px 11px;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:root:where(.pg-auto, .pg-build, .pg-index, .pg-industrial, .pg-medical, .pg-oilgas, .pg-powerenergy) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --accent-light: #fff3ee;
  --gold: #c9871f;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy),
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) *,
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) *::before,
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html:where(.pg-auto, .pg-build, .pg-index, .pg-industrial, .pg-medical, .pg-oilgas, .pg-powerenergy) {
  scroll-behavior: smooth;
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,40,80,0.7) 0%, transparent 100%);
  padding: 40px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero-overlay h1 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: white;
  max-width: 600px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero-overlay p {
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  font-size: 1rem;
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) main {
  padding: 48px 0 80px;
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== auto, build, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== index ===== */
@media (max-width: 1100px) {
  :where(html.pg-index) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card-body {
  padding: 28px;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .about-card .card-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .about-text {
  flex: 1;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .about-text p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .about-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .about-text a:hover {
  text-decoration: underline;
}

/* ===== afrotrade_directory, auto, build, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-item:last-of-type {
  border-bottom: none;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-item:hover {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px 14px;
  margin: 0 -14px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-thumb {
  flex: 0 0 110px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-thumb img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-body {
  flex: 1;
  min-width: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
  line-height: 1.4;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-body p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-adv-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-adv-link:hover {
  text-decoration: underline;
  color: var(--accent);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .see-more-wrap {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .see-more-btn:hover {
  background: #083f6e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li {
  height: 100%;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 110px;
  padding: 16px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-icon i {
  font-size: 1.3rem;
  color: var(--primary);
  transition: color 0.3s;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li a:hover .sub-cat-icon {
  background: rgba(255,255,255,0.25);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li a:hover .sub-cat-icon i {
  color: white;
}
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li a {
    min-height: 100px;
    padding: 14px 10px;
    font-size: 0.88rem;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-icon {
    width: 42px;
    height: 42px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-icon i {
    font-size: 1.15rem;
  }
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-overlay.open {
  display: flex;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}

/* ===== afrotrade_directory, build, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-head h3 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== auto ===== */
:where(html.pg-auto) .advt-modal-head h3 {
  font-family: "Helvetica Neue", serif;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== afrotrade_directory, auto, build, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-2);
  transition: var(--transition);
  flex-shrink: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(90deg);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-body {
  padding: 24px;
  text-align: center;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-row:last-of-type {
  border-bottom: none;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-row:hover {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px 14px;
  margin: 0 -14px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-thumb {
  flex: 0 0 110px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-thumb img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-body {
  flex: 1;
  min-width: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
  line-height: 1.4;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-body p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-meta {
  font-size: 0.77rem;
  color: var(--text-3);
  margin-top: 5px;
}

/* ===== index ===== */
:where(html.pg-index) .category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}
:where(html.pg-index) .category-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
:where(html.pg-index) .category-icon {
  font-size: 1.4rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
  position: relative;
  top: 6px;
}
:where(html.pg-index) .category-card:hover .category-icon {
  color: rgba(255,255,255,0.9);
  transform: scale(1.1);
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover::after {
  transform: scaleX(1);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
  align-self: center;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-icon i {
  font-size: 1.35rem;
  color: var(--primary);
  transition: color 0.3s;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover .expo-icon {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover .expo-icon i {
  color: #ffffff;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.3s;
  align-self: center;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover .expo-name {
  color: white;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  transition: color 0.3s;
  align-self: center;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-tile:hover .expo-year {
  color: rgba(255,255,255,0.75);
}

/* ===== index ===== */
:where(html.pg-index) .float-img-right {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s;
}
:where(html.pg-index) .float-img-right:hover {
  transform: scale(1.03);
}
:where(html.pg-index) .dist-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
:where(html.pg-index) .dist-text strong {
  color: var(--text);
}
:where(html.pg-index) .dist-bullets {
  margin-top: 12px;
}
:where(html.pg-index) .dist-bullets li {
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}
:where(html.pg-index) .dist-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 16px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .read-more:hover {
  text-decoration: underline;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .copy-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .copy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 80px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .copy-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(4px);
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .copy-link svg {
  fill: currentColor;
  flex-shrink: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .section-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sidebar-banner {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* ===== afrotrade_directory, afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .sidebar-banner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .sidebar-banner img {
  width: 100%;
  display: block;
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .sidebar .card {
  margin-bottom: 0;
}
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .footer-links a {
  color: #94a3b8;
  margin: 0 16px;
  text-decoration: none;
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 20px 40px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(10,60,120,0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-consent p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-btns {
  display: flex;
  gap: 10px;
}

/* ===== afrotrade_directory, afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-btn.accept:hover {
  background: #083f6e;
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ===== afrotrade_directory, afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
:where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .cookie-btn.reject:hover {
  background: var(--border);
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 640px) {
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap,
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .utility-bar .inner,
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .footer-inner,
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hero-overlay {
    padding: 24px 16px;
  }
}

/* ===== index ===== */
@media (max-width: 640px) {
  :where(html.pg-index) .float-img-right {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
}

/* ===== afrotrade_terms, detail_news ===== */
@media (max-width: 640px) {
  :where(html.pg-detail-news, html.pg-terms) .page-wrap,
  :where(html.pg-detail-news, html.pg-terms) .advt-wrap {
    padding: 0 16px;
  }
}

/* ===== detail_news ===== */
@media (max-width: 640px) {
  :where(html.pg-detail-news) .news-img {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) img {
    max-width: 100%;
    height: auto;
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    min-height: 56px;
    gap: 10px;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) nav.desktop-nav {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .header-right .search-form {
    display: none;
  }
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .header-right {
    gap: 0;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .logo-wrap {
    justify-content: flex-start;
  }
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .logo-wrap img.logo {
    max-height: 38px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .logo-wrap img.tagline {
    display: none;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    position: sticky;
    top: 56px;
    z-index: 999;
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 9px 14px;
    font-size: 0.87rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .mobile-search-bar button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.83rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    white-space: nowrap;
  }
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-thumb img {
    width: 85px;
    height: 62px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-item-thumb {
    flex: 0 0 85px;
  }
}

/* ===== afrotrade_terms, auto, build, detail_news, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    position: sticky;
    top: 56px;
    z-index: 998;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .mobile-search-bar form {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .mobile-search-bar input:focus {
    outline: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .mobile-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
  }
  :where(html.pg-auto, html.pg-build, html.pg-detail-news, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy, html.pg-terms) .sidebar-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
}

/* ===== auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sidebar-banner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  :where(html.pg-auto, html.pg-build, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* ===== index ===== */
:where(html.pg-index) .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
@media (max-width: 768px) {
  :where(html.pg-index) .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    justify-items: center;
    gap: 12px;
  }
  :where(html.pg-index) .category-card {
    width: 100%;
    max-width: 280px;
  }
  :where(html.pg-index) .more-item {
    display: none;
  }
  :where(html.pg-index) .show-more-wrap {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 8px;
  }
  :where(html.pg-index) .show-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  :where(html.pg-index) .show-more-btn:hover {
    background: var(--primary-mid);
    transform: translateY(-1px);
  }
  :where(html.pg-index) .show-more-btn.show-less {
    background: #555;
  }
  :where(html.pg-index) .show-more-btn.show-less:hover {
    background: #444;
  }
}
@media (min-width: 769px) {
  :where(html.pg-index) .show-more-wrap {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  :where(html.pg-index) .page-wrap,
  :where(html.pg-index) .advt-wrap {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (min-width: 1440px) {
  :where(html.pg-index) .page-wrap,
  :where(html.pg-index) .advt-wrap {
    padding-left: 220px;
    padding-right: 220px;
  }
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap {
    padding: 0 16px !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap > div,
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap > aside {
    width: 100% !important;
    min-width: 0 !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .card-body {
    padding: 16px !important;
  }
}

/* ===== afrotrade_directory, auto, build, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-item {
    flex-direction: column !important;
    gap: 10px !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-thumb {
    flex: none !important;
    width: 100% !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .comp-thumb img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .copy-link {
    padding: 11px 30px;
  }
}

/* ===== index ===== */
@media (max-width: 768px) {
  :where(html.pg-index) .news-item-body p {
    font-size: 0.75rem !important;
  }
  :where(html.pg-index) .news-item-body h4 {
    font-size: 1rem !important;
  }
  :where(html.pg-index) .news-item-meta {
    font-size: 0.82rem !important;
  }
  :where(html.pg-index) .news-item-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  :where(html.pg-index) .news-item-thumb {
    flex: none !important;
    width: 100% !important;
  }
  :where(html.pg-index) .news-item-thumb img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel::-webkit-scrollbar {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body {
    padding: 14px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    line-height: 1.4;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body p {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.55;
  }
}
@media (min-width: 769px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-card {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    transition: var(--transition);
    overflow: visible;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-card:last-child {
    border-bottom: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-card:hover {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 20px 14px;
    margin: 0 -14px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-img {
    flex: 0 0 110px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-img img {
    width: 110px;
    height: 78px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
    line-height: 1.4;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .news-carousel-body p {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.6;
  }
}
:where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expogroup-logo-link {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-header-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expogroup-logo-link {
    flex-shrink: unset !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expogroup-logo-link img {
    margin: 0 auto !important;
  }
}

/* ===== afrotrade_directory, auto, build, industrial, medical, oilgas, powerenergy ===== */
@media (min-width: 1024px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap,
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-wrap {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (min-width: 1440px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .page-wrap,
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-wrap {
    padding-left: 220px;
    padding-right: 220px;
  }
}
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) #gallery .card-body > .comp-item:first-of-type {
    margin-top: 0;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track::-webkit-scrollbar {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track .comp-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    flex-direction: column !important;
    gap: 10px !important;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px !important;
    margin: 0 !important;
    border-bottom: none !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track .comp-thumb {
    flex: none !important;
    width: 100% !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track .comp-thumb img {
    width: 60% !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm) !important;
    display: block;
    margin: 0 auto;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .advt-carousel-track .comp-thumb button {
    display: block;
    width: 100%;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-grid li.sub-cat-hidden {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-showmore-wrap {
    text-align: center;
    margin-top: 16px;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-showmore-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-showmore-btn:hover {
    background: var(--primary-mid);
    transform: translateY(-1px);
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-carousel-wrap {
    position: relative;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) #expoCarousel {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 12px !important;
    padding-right: 20px !important;
    padding-bottom: 8px !important;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) #expoCarousel::-webkit-scrollbar {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) #expoCarousel .expo-tile {
    flex: 0 0 42% !important;
    scroll-snap-align: start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px 10px !important;
  }
}

/* ===== index ===== */
@media (max-width: 768px) {
  :where(html.pg-index) .card-body > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 8px !important;
  }
  :where(html.pg-index) .card-body > div[style*="grid-template-columns"]::-webkit-scrollbar {
    display: none !important;
  }
  :where(html.pg-index) .expo-tile {
    flex: 0 0 150px !important;
    scroll-snap-align: start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px 12px !important;
  }
}
@media (max-width: 480px) {
  :where(html.pg-index) .expo-tile {
    flex: 0 0 55% !important;
  }
}
:where(html.pg-index) .expo-progress-wrap {
  display: none;
}

/* ===== afrotrade_directory, auto, build, index, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 768px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-progress-wrap {
    display: block;
    margin-top: 10px;
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-index, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-progress-bar {
    height: 100%;
    width: 8%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.15s ease;
  }
}

/* ===== afrotrade_directory, auto, build, industrial, medical, oilgas, powerenergy ===== */
@media (max-width: 480px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) #expoCarousel .expo-tile {
    flex: 0 0 55% !important;
  }
}
@media (min-width: 769px) {
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .expo-progress-wrap {
    display: none;
  }
  :where(html.pg-auto, html.pg-build, html.pg-directory, html.pg-industrial, html.pg-medical, html.pg-oilgas, html.pg-powerenergy) .sub-cat-showmore-wrap {
    display: none;
  }
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .search-form,
:where(html.pg-directory) .mobile-search-bar form {
  background: white !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 50px;
  overflow: hidden;
}
:where(html.pg-directory) .search-input,
:where(html.pg-directory) .mobile-search-bar input {
  background: white !important;
  color: var(--text) !important;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 200px;
}
:where(html.pg-directory) .search-btn,
:where(html.pg-directory) .mobile-search-bar button {
  background: var(--primary) !important;
  color: white !important;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0 50px 50px 0;
}
@media (max-width: 1100px) {
  :where(html.pg-directory) .page-wrap {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-directory) .card-body {
  padding: 28px;
}
:where(html.pg-directory) .event-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
:where(html.pg-directory) .event-list li {
  margin: 12px 0;
  font-size: 1.05rem;
}
:where(html.pg-directory) .event-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
:where(html.pg-directory) .event-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}
:where(html.pg-directory) .footer-links a {
  color: #94a3b8;
  margin: 0 16px;
  text-decoration: none;
}
:where(html.pg-directory) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
}
@media (max-width: 768px) {
  :where(html.pg-directory) .event-list li {
    font-size: 1rem;
  }
}
@media (max-width: 640px) {
  :where(html.pg-directory) .page-wrap,
  :where(html.pg-directory) .utility-bar .inner,
  :where(html.pg-directory) .footer-inner,
  :where(html.pg-directory) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-directory) .hero-overlay {
    padding: 24px 16px;
  }
  :where(html.pg-directory) .float-img-right {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  :where(html.pg-directory) img {
    max-width: 100%;
    height: auto;
  }
  :where(html.pg-directory) .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    min-height: 56px;
    gap: 10px;
  }
  :where(html.pg-directory) .header-right .search-form {
    display: none;
  }
  :where(html.pg-directory) .header-right {
    gap: 0;
  }
  :where(html.pg-directory) .logo-wrap {
    justify-content: flex-start;
  }
  :where(html.pg-directory) .logo-wrap img.logo {
    max-height: 38px;
  }
  :where(html.pg-directory) .logo-wrap img.tagline {
    display: none;
  }
  :where(html.pg-directory) .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  :where(html.pg-directory) .mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    position: sticky;
    top: 56px;
    z-index: 999;
  }
  :where(html.pg-directory) .mobile-search-bar form:focus-within {
    border-color: var(--primary);
    background: #fff;
  }
  :where(html.pg-directory) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 9px 14px;
    font-size: 0.87rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
  }
  :where(html.pg-directory) .mobile-search-bar button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.83rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    white-space: nowrap;
  }
  :where(html.pg-directory) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    position: sticky;
    top: 56px;
    z-index: 998;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  :where(html.pg-directory) .mobile-search-bar form {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
  }
  :where(html.pg-directory) .mobile-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
  }
  :where(html.pg-directory) .mobile-search-bar input:focus {
    outline: none;
  }
  :where(html.pg-directory) .mobile-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
  }
  :where(html.pg-directory) .sidebar-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
  :where(html.pg-directory) .sidebar-banner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  :where(html.pg-directory) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* ===== afrotrade_advertising ===== */
:where(html.pg-advertising) .form-group a {
  width: 100%;
  justify-content: center;
}
:where(html.pg-advertising) .tech-modal-overlay {
  display: none;
  position: absolute;
  z-index: 9999;
  margin-top: 8px;
}
:where(html.pg-advertising) .tech-modal-overlay.show {
  display: block;
}
:where(html.pg-advertising) .tech-modal {
  background: white;
  border-radius: 12px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(10,60,120,0.15);
  border: 1px solid var(--border);
  animation: modalIn 0.2s ease-out;
}
:where(html.pg-advertising) .tech-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:where(html.pg-advertising) .tech-modal-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
:where(html.pg-advertising) .tech-modal-close {
  width: 26px;
  height: 25px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
:where(html.pg-advertising) .tech-modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}
:where(html.pg-advertising) .tech-modal-body {
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-advertising) .tech-modal-body h4 {
  color: var(--primary);
  font-size: 0.82rem;
  margin: 12px 0 6px;
  font-weight: 600;
}
:where(html.pg-advertising) .tech-modal-body ul {
  list-style: none;
  padding-left: 0;
}
:where(html.pg-advertising) .tech-modal-body li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
  font-size: 0.76rem;
}
:where(html.pg-advertising) .tech-modal-body li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 600px) {
  :where(html.pg-advertising) .tech-modal {
    max-height: 85vh;
  }
  :where(html.pg-advertising) .tech-modal-body {
    padding: 20px;
    font-size: 0.95rem;
  }
}

/* ===== afrotrade_advertising, trade_events ===== */
:where(html.pg-advertising, html.pg-trade-events) .sidebar-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  display: block;
  background: transparent;
}

/* ===== afrotrade_advertising, afrotrade_directory, trade_events ===== */
:where(html.pg-advertising, html.pg-directory, html.pg-trade-events) .sidebar-banner:hover {
  box-shadow: none;
  transform: translateY(-4px);
}

/* ===== afrotrade_directory, afrotrade_sublisting ===== */
:where(html.pg-directory, html.pg-sublisting),
:where(html.pg-directory, html.pg-sublisting) *,
:where(html.pg-directory, html.pg-sublisting) *::before,
:where(html.pg-directory, html.pg-sublisting) *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html:where(.pg-directory, .pg-sublisting) {
  scroll-behavior: smooth;
}
:where(html.pg-directory, html.pg-sublisting) body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
:where(html.pg-directory, html.pg-sublisting) .logo-wrap img.logo {
  max-height: 54px;
  width: auto;
}
:where(html.pg-directory, html.pg-sublisting) nav.desktop-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .hamburger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 1.6rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
:where(html.pg-directory) .hamburger:hover {
  background: #d0e3f5;
  transform: scale(1.05);
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .hamburger {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 1.4rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
:where(html.pg-sublisting) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}

/* ===== afrotrade_directory, afrotrade_sublisting ===== */
:where(html.pg-directory, html.pg-sublisting) .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  padding: 24px 20px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}

/* ===== afrotrade_directory, afrotrade_sublisting ===== */
:where(html.pg-directory, html.pg-sublisting) .mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-2);
  background: none;
  border: none;
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
:where(html.pg-directory) .hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .hero {
  background: var(--primary);
  overflow: hidden;
}
:where(html.pg-sublisting) .hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ===== afrotrade_directory, afrotrade_sublisting ===== */
:where(html.pg-directory, html.pg-sublisting) main {
  padding: 48px 0 80px;
}
:where(html.pg-directory, html.pg-sublisting) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== afrotrade_directory ===== */
:where(html.pg-directory) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
:where(html.pg-directory) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}

/* ===== afrotrade_directory, afrotrade_sublisting, xdeals_banners ===== */
:where(html.pg-directory, html.pg-sublisting, html.pg-xdeals-banners) .card-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-directory, html.pg-sublisting, html.pg-xdeals-banners) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-directory, html.pg-sublisting, html.pg-xdeals-banners) .card-head h2 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
}

/* ===== afrotrade_directory, xdeals_banners ===== */
:where(html.pg-directory, html.pg-xdeals-banners) .card-body {
  padding: 28px 32px;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 8px 0;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 100px;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-item img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 0.95rem;
}
:where(html.pg-directory, html.pg-xdeals-banners) .sponsor-empty i {
  font-size: 2.5rem;
  color: var(--border);
  display: block;
  margin-bottom: 12px;
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .card-body {
  padding: 24px 28px;
}
:where(html.pg-sublisting) .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
:where(html.pg-sublisting) .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
:where(html.pg-sublisting) .breadcrumb a:hover {
  text-decoration: underline;
}
:where(html.pg-sublisting) .breadcrumb i {
  font-size: 0.7rem;
  color: var(--text-3);
}
:where(html.pg-sublisting) .result-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
:where(html.pg-sublisting) .result-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
}
:where(html.pg-sublisting) .result-summary-left i {
  color: var(--primary);
}
:where(html.pg-sublisting) .result-summary-left strong {
  color: var(--text);
}
:where(html.pg-sublisting) .result-summary-right {
  font-size: 0.85rem;
  color: var(--text-3);
}
:where(html.pg-sublisting) .results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
:where(html.pg-sublisting) .result-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
:where(html.pg-sublisting) .result-item:last-child {
  border-bottom: none;
}
:where(html.pg-sublisting) .result-item:hover {
  background: var(--primary-light);
  border-radius: var(--radius);
}
:where(html.pg-sublisting) .result-num {
  flex: 0 0 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
}
:where(html.pg-sublisting) .result-body {
  flex: 1;
  min-width: 0;
  padding: 18px 16px 18px 0;
}
:where(html.pg-sublisting) .result-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
:where(html.pg-sublisting) .result-thumb {
  flex: 0 0 110px;
}
:where(html.pg-sublisting) .result-thumb img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}
:where(html.pg-sublisting) .result-company-info {
  flex: 1;
  min-width: 0;
}
:where(html.pg-sublisting) .result-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.4;
}
:where(html.pg-sublisting) .result-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}
:where(html.pg-sublisting) .result-bottom {
  margin-top: 10px;
}
:where(html.pg-sublisting) .comp-adv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition);
}
:where(html.pg-sublisting) .comp-adv-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
:where(html.pg-sublisting) .pag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
:where(html.pg-sublisting) .pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  cursor: pointer;
}
:where(html.pg-sublisting) .pag-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
:where(html.pg-sublisting) .pag-btn.pag-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 700;
}
:where(html.pg-sublisting) .pag-btn.pag-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
:where(html.pg-sublisting) .pag-btn.pag-nav {
  padding: 0 16px;
  font-size: 0.88rem;
}
:where(html.pg-sublisting) .pag-dots {
  color: var(--text-3);
  font-size: 0.9rem;
  padding: 0 4px;
  line-height: 38px;
}
:where(html.pg-sublisting) .pag-info {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 10px;
}
:where(html.pg-sublisting) .empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
}
:where(html.pg-sublisting) .empty-state i {
  font-size: 3rem;
  color: var(--border);
  display: block;
  margin-bottom: 14px;
}
:where(html.pg-sublisting) .empty-state p {
  font-size: 1rem;
}

/* ===== afrotrade_listing1 ===== */
:where(html.pg-listing1) #advModalName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: "DM Serif Display", serif;
  margin: 0;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, xdeals_banners ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, xdeals_banners ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-xdeals-banners) .sidebar-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  display: block;
  background: transparent;
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .sidebar-banner {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  background: transparent;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, xdeals_banners ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .sidebar-banner:hover {
  transform: translateY(-4px);
}

/* ===== afrotrade_advertising, afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, trade_events, xdeals_banners ===== */
:where(html.pg-advertising, html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-trade-events, html.pg-xdeals-banners) .sidebar-banner img {
  width: 75%;
  display: block;
  margin: 0 auto;
}
:where(html.pg-advertising, html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-trade-events, html.pg-xdeals-banners) .sidebar .card {
  margin-bottom: 0;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, xdeals_banners ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}

/* ===== afrotrade_sublisting ===== */
:where(html.pg-sublisting) .adv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
:where(html.pg-sublisting) .adv-modal-overlay.open {
  display: flex;
}
:where(html.pg-sublisting) .adv-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-sublisting) .adv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-sublisting) .adv-modal-head h3 {
  font-family: "Helvetica Neue", serif;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
}
:where(html.pg-sublisting) .adv-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  transition: var(--transition);
  flex-shrink: 0;
}
:where(html.pg-sublisting) .adv-modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(90deg);
}
:where(html.pg-sublisting) .adv-modal-body {
  padding: 22px;
  text-align: center;
}
:where(html.pg-sublisting) .adv-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, xdeals_banners ===== */
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary-light);
  padding: 20px 40px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(10,60,120,0.12);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .cookie-consent p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
  min-width: 200px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .cookie-btns {
  display: flex;
  gap: 10px;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
:where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .cookie-btn.reject {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .hamburger {
    display: flex !important;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) nav.desktop-nav {
    display: none;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .header-inner {
    grid-template-columns: auto auto;
    padding: 0 16px;
    min-height: 64px;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .logo-wrap img.logo {
    max-height: 44px;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .search-form {
    display: none;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .mobile-search-bar {
    display: block !important;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    position: sticky;
    top: 64px;
    z-index: 999;
  }
}

/* ===== afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-sublisting) .mobile-search-bar form {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
  }
  :where(html.pg-sublisting) .mobile-search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
  }
  :where(html.pg-sublisting) .mobile-search-bar input:focus {
    outline: none;
  }
  :where(html.pg-sublisting) .mobile-search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    font-family: inherit;
  }
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .page-wrap,
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-xdeals-banners) .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== afrotrade_directory, afrotrade_listing, afrotrade_listing1, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-xdeals-banners) .card-body {
    padding: 16px 18px;
  }
}

/* ===== afrotrade_directory, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html.pg-directory, html.pg-xdeals-banners) .sponsor-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

/* ===== afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-sublisting) .card-body {
    padding: 16px;
  }
}

/* ===== afrotrade_listing, afrotrade_listing1 ===== */
@media (max-width: 768px) {
  :where(html.pg-listing, html.pg-listing1) .result-item {
    padding: 14px 14px 14px 18px;
  }
}

/* ===== afrotrade_listing, afrotrade_listing1, afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-listing, html.pg-listing1, html.pg-sublisting) .result-num {
    display: none;
  }
}

/* ===== afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-sublisting) .result-body {
    padding: 16px 12px 16px 12px;
  }
}

/* ===== afrotrade_listing, afrotrade_listing1, afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-listing, html.pg-listing1, html.pg-sublisting) .result-top {
    flex-direction: column;
  }
  :where(html.pg-listing, html.pg-listing1, html.pg-sublisting) .result-thumb {
    flex: none;
    width: 100%;
  }
  :where(html.pg-listing, html.pg-listing1, html.pg-sublisting) .result-thumb img {
    width: 100%;
    height: 160px;
  }
}

/* ===== afrotrade_advertising, afrotrade_directory, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, trade_events, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html.pg-advertising, html.pg-directory, html.pg-listing, html.pg-listing1, html.pg-sublisting, html.pg-trade-events, html.pg-xdeals-banners) .sidebar-banner img {
    width: 60%;
  }
}

/* ===== afrotrade_directory ===== */
:root:where(.pg-directory) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== index ===== */
@media (max-width: 768px) {
  :where(html.pg-index) .copy-link {
    padding: 11px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
}

/* ===== afrotrade_sublisting ===== */
@media (max-width: 768px) {
  :where(html.pg-sublisting) .hero img {
    height: 180px;
  }
}
:where(html.pg-sublisting) .result-thumb button img {
  transition: var(--transition);
}
:where(html.pg-sublisting) .result-thumb button:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  opacity: 0.88;
}
:where(html.pg-sublisting) .result-company-name button {
  transition: var(--transition);
}
:where(html.pg-sublisting) .result-company-name button:hover {
  color: var(--primary) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(html.pg-sublisting) .result-thumb button {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
:where(html.pg-sublisting) .result-thumb button::after {
  content: "";
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  background: rgba(10, 82, 140, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: var(--radius-sm);
}
:where(html.pg-sublisting) .result-thumb button:hover::after {
  opacity: 1;
}

/* ===== afrotrade_contactus ===== */
:where(html.pg-contactus) .card-body > p {
  text-align: center;
}
:where(html.pg-contactus) table.contact-form {
  width: 100%;
  max-width: 700px;
  margin: 16px auto 24px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
:where(html.pg-contactus) .contact-form td {
  padding: 4px 12px 4px 0;
  vertical-align: middle;
}
:where(html.pg-contactus) .contact-form td:first-child {
  width: 190px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}
:where(html.pg-contactus) .contact-form input[type="text"],
:where(html.pg-contactus) .contact-form textarea {
  padding: 10px 14px;
  font-size: 0.95rem;
  background: #fff;
}
:where(html.pg-contactus) .contact-form textarea {
  height: 100px;
}
:where(html.pg-contactus) .contact-form #captcha_code {
  max-width: 220px;
}
:where(html.pg-contactus) .contact-form tr:last-child td:last-child {
  text-align: center;
}
:where(html.pg-contactus) .contact-form input[type="submit"] {
  width: auto;
  min-width: 220px;
  padding: 12px 36px;
  font-size: 1rem;
}
:where(html.pg-contactus) .error-msg.invalid {
  display: block !important;
}
@media (max-width: 768px) {
  :where(html.pg-contactus) table.contact-form,
  :where(html.pg-contactus) .contact-form tbody,
  :where(html.pg-contactus) .contact-form tr,
  :where(html.pg-contactus) .contact-form td {
    display: block;
    width: 100%;
  }
  :where(html.pg-contactus) table.contact-form {
    max-width: 100%;
    border-spacing: 0;
    margin: 8px 0 16px;
  }
  :where(html.pg-contactus) .contact-form tr {
    margin-bottom: 10px;
  }
  :where(html.pg-contactus) .contact-form td {
    padding: 0 !important;
  }
  :where(html.pg-contactus) .contact-form td:first-child {
    font-size: 0.88rem;
    margin-bottom: 4px;
    white-space: normal;
  }
  :where(html.pg-contactus) .contact-form input[type="text"],
  :where(html.pg-contactus) .contact-form textarea {
    padding: 9px 12px;
    font-size: 0.92rem;
  }
  :where(html.pg-contactus) .contact-form textarea {
    height: 90px;
  }
  :where(html.pg-contactus) .contact-form tr:last-child td:last-child {
    margin-top: 8px;
  }
  :where(html.pg-contactus) .contact-form input[type="submit"] {
    width: 100%;
    min-width: 0;
    padding: 12px;
  }
}

/* ===== advertising_tx ===== */
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== afrotrade_terms, detail_news ===== */
@media (max-width: 768px) {
  :where(html.pg-detail-news, html.pg-terms) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
}

/* ===== detail_news ===== */
@media (max-width: 768px) {
  :where(html.pg-detail-news) .news-img {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }
}

/* ===== about_afrotrade, advertising_b, advertising_tx, afrotrade_advertising, afrotrade_contactus, afrotrade_directory, afrotrade_gallery, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, afrotrade_terms, auto, build, detail_news, directory_tx, index, industrial, market_news, media_partners, medical, oilgas, powerenergy, search, trade_events, xdeals_banners ===== */
:where(html:not(.pg-index1)) .utility-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 7px 0;
  letter-spacing: 0.01em;
}
:where(html:not(.pg-index1)) .utility-bar .inner {
  max-width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
:where(html:not(.pg-index1)) .utility-bar a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin: 0 10px;
}
:where(html:not(.pg-index1)) .utility-bar a:hover {
  color: white;
}
:where(html:not(.pg-index1)) header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
:where(html:not(.pg-index1)) .header-inner {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}
:where(html:not(.pg-index1)) .logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
:where(html:not(.pg-index1)) .logo-wrap img.logo {
  max-height: 54px;
  width: auto;
  margin-top: 20px;
}
:where(html:not(.pg-index1)) .logo-wrap img.tagline {
  max-height: 20px;
  width: auto;
  opacity: 0.8;
}
:where(html:not(.pg-index1)) nav.desktop-nav {
  display: flex;
  justify-content: center;
}
:where(html:not(.pg-index1)) nav.desktop-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
}
:where(html:not(.pg-index1)) nav.desktop-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
:where(html:not(.pg-index1)) nav.desktop-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
:where(html:not(.pg-index1)) nav.desktop-nav a.active {
  background: var(--primary);
  color: white;
}
:where(html:not(.pg-index1)) .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(html:not(.pg-index1)) .search-form {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
:where(html:not(.pg-index1)) .search-form:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(10,82,140,0.1);
}
:where(html:not(.pg-index1)) .search-input {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 200px;
  color: var(--text);
  font-family: inherit;
}
:where(html:not(.pg-index1)) .search-input:focus {
  outline: none;
}
:where(html:not(.pg-index1)) .search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
  border-radius: 0 50px 50px 0;
}
:where(html:not(.pg-index1)) .search-btn:hover {
  background: #083f6e;
}
:where(html:not(.pg-index1)) .hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  padding: 8px;
  line-height: 1;
}
:where(html:not(.pg-index1)) .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  padding: 28px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
:where(html:not(.pg-index1)) .mobile-menu.show {
  transform: translateX(0);
  display: block;
}
:where(html:not(.pg-index1)) .mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9997;
  backdrop-filter: blur(2px);
}
:where(html:not(.pg-index1)) .mobile-overlay.show {
  display: block;
}
:where(html:not(.pg-index1)) .mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-2);
  background: none;
  border: none;
}
:where(html:not(.pg-index1)) .mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}
:where(html:not(.pg-index1)) .mobile-menu a:hover {
  color: var(--primary);
}
:where(html:not(.pg-index1)) .mobile-search-bar {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  position: sticky;
  top: 56px;
  z-index: 998;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
:where(html:not(.pg-index1)) .mobile-search-bar form {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}
:where(html:not(.pg-index1)) .mobile-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
}
:where(html:not(.pg-index1)) .mobile-search-bar input:focus {
  outline: none;
}
:where(html:not(.pg-index1)) .mobile-search-bar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
}
@media (max-width: 900px) {
  :where(html:not(.pg-index1)) .hamburger {
    display: block;
  }
  :where(html:not(.pg-index1)) nav.desktop-nav {
    display: none;
  }
  :where(html:not(.pg-index1)) .header-inner {
    grid-template-columns: auto auto;
  }
}
@media (max-width: 768px) {
  :where(html:not(.pg-index1)) nav.desktop-nav {
    display: none !important;
  }
}

/* ===== about_afrotrade, advertising_b, advertising_tx, afrotrade_advertising, afrotrade_contactus, afrotrade_directory, afrotrade_gallery, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, afrotrade_terms, auto, build, detail_news, directory_tx, index, industrial, market_news, media_partners, medical, oilgas, powerenergy, trade_events, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html:not(.pg-index1, .pg-search)) .header-right .search-form {
    display: none !important;
  }
}

/* ===== about_afrotrade, advertising_b, advertising_tx, afrotrade_advertising, afrotrade_contactus, afrotrade_directory, afrotrade_gallery, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, afrotrade_terms, auto, build, detail_news, directory_tx, index, industrial, market_news, media_partners, medical, oilgas, powerenergy, search, trade_events, xdeals_banners ===== */
@media (max-width: 768px) {
  :where(html:not(.pg-index1)) .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  :where(html:not(.pg-index1)) .mobile-search-bar {
    display: block !important;
  }
  :where(html:not(.pg-index1)) .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 14px;
    min-height: 56px;
  }
  :where(html:not(.pg-index1)) .logo-wrap img.logo {
    max-height: 42px;
  }
}
@media (max-width: 640px) {
  :where(html:not(.pg-index1)) .header-inner {
    padding: 0 16px;
  }
  :where(html:not(.pg-index1)) .search-input {
    width: 130px;
  }
}
@media (min-width: 769px) {
  :where(html:not(.pg-index1)) .mobile-search-bar {
    display: none !important;
  }
}
@media (max-width: 768px) {
  :where(html:not(.pg-index1)) img.tagline {
    max-height: 14px;
    margin: 4px auto;
  }
  :where(html:not(.pg-index1)) .logo-wrap img.tagline {
    max-width: 85% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 6px auto !important;
  }
}

/* ===== search ===== */
:root:where(.pg-search) {
  --primary: #0a528c;
  --primary-mid: #1370bc;
  --primary-light: #e8f3fc;
  --accent: #e8510a;
  --accent-light: #fff3ee;
  --gold: #c9871f;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --surface-3: #eef4fb;
  --border: #d9e6f2;
  --text: #0d1f35;
  --text-2: #3d5875;
  --text-3: #7a97b4;
  --dark: #0f172a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 2px 8px rgba(10,60,120,0.06);
  --shadow-sm: 0 4px 16px rgba(10,60,120,0.08);
  --shadow-md: 0 8px 32px rgba(10,60,120,0.12);
  --shadow-lg: 0 20px 56px rgba(10,60,120,0.16);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
:where(html.pg-search),
:where(html.pg-search) *,
:where(html.pg-search) *::before,
:where(html.pg-search) *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html:where(.pg-search) {
  scroll-behavior: smooth;
}
:where(html.pg-search) body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
:where(html.pg-search) .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
:where(html.pg-search) .hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
:where(html.pg-search) .hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
:where(html.pg-search) main {
  padding: 48px 0 80px;
}
:where(html.pg-search) .page-wrap {
  max-width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1100px) {
  :where(html.pg-search) .page-wrap {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-search) .card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
:where(html.pg-search) .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-search) .card-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--surface-3), var(--surface));
}
:where(html.pg-search) .card-head-accent {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(html.pg-search) .card-head h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.01em;
}
:where(html.pg-search) .card-body {
  padding: 28px;
}
:where(html.pg-search) .about-card .card-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
:where(html.pg-search) .about-text {
  flex: 1;
}
:where(html.pg-search) .about-text p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}
:where(html.pg-search) .about-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
:where(html.pg-search) .about-text a:hover {
  text-decoration: underline;
}
:where(html.pg-search) .featured-news-inner {
  text-align: center;
}
:where(html.pg-search) .featured-news-inner h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 400;
}
:where(html.pg-search) .featured-news-inner a img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s;
}
:where(html.pg-search) .featured-news-inner a img:hover {
  transform: scale(1.02);
}
:where(html.pg-search) .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
:where(html.pg-search) .category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}
:where(html.pg-search) .category-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
:where(html.pg-search) .category-icon {
  font-size: 1.4rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
  position: relative;
  top: 6px;
}
:where(html.pg-search) .category-card:hover .category-icon {
  color: rgba(255,255,255,0.9);
  transform: scale(1.1);
}
:where(html.pg-search) .expo-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
:where(html.pg-search) .expo-tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
:where(html.pg-search) .expo-tile:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-search) .expo-tile:hover::after {
  transform: scaleX(1);
}
:where(html.pg-search) .expo-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
  align-self: center;
}
:where(html.pg-search) .expo-icon i {
  font-size: 1.35rem;
  color: var(--primary);
  transition: color 0.3s;
}
:where(html.pg-search) .expo-tile:hover .expo-icon {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
:where(html.pg-search) .expo-tile:hover .expo-icon i {
  color: #ffffff;
}
:where(html.pg-search) .expo-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.3s;
  align-self: center;
}
:where(html.pg-search) .expo-tile:hover .expo-name {
  color: white;
}
:where(html.pg-search) .expo-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  transition: color 0.3s;
  align-self: center;
}
:where(html.pg-search) .expo-tile:hover .expo-year {
  color: rgba(255,255,255,0.75);
}
:where(html.pg-search) .float-img-right {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s;
}
:where(html.pg-search) .float-img-right:hover {
  transform: scale(1.03);
}
:where(html.pg-search) .dist-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
:where(html.pg-search) .dist-text strong {
  color: var(--text);
}
:where(html.pg-search) .dist-bullets {
  margin-top: 12px;
}
:where(html.pg-search) .dist-bullets li {
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}
:where(html.pg-search) .dist-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
:where(html.pg-search) .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 16px;
}
:where(html.pg-search) .read-more:hover {
  text-decoration: underline;
}
:where(html.pg-search) .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) {
  :where(html.pg-search) .two-col {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-search) .news-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}
:where(html.pg-search) .news-scroll::-webkit-scrollbar {
  width: 4px;
}
:where(html.pg-search) .news-scroll::-webkit-scrollbar-track {
  background: var(--surface-3);
  border-radius: 4px;
}
:where(html.pg-search) .news-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
:where(html.pg-search) .news-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
:where(html.pg-search) .news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
:where(html.pg-search) .news-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.45;
}
:where(html.pg-search) .news-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}
:where(html.pg-search) .news-item p a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
:where(html.pg-search) .news-item p a:hover {
  text-decoration: underline;
}
:where(html.pg-search) .news-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 6px;
  text-align: right;
}
:where(html.pg-search) .copy-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(html.pg-search) .copy-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
:where(html.pg-search) .copy-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(4px);
}
:where(html.pg-search) .copy-link svg {
  fill: currentColor;
  flex-shrink: 0;
}
:where(html.pg-search) .sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
:where(html.pg-search) .sidebar-banner {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
:where(html.pg-search) .sidebar-banner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
:where(html.pg-search) .sidebar-banner img {
  width: 100%;
  display: block;
}
:where(html.pg-search) .sidebar .card {
  margin-bottom: 0;
}
:where(html.pg-search) .advt-wrap {
  max-width: 100%;
  padding: 0 40px;
  margin-top: 24px;
}
:where(html.pg-search) .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
:where(html.pg-search) .section-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
@media (min-width: 1024px) {
  :where(html.pg-search) .page-wrap,
  :where(html.pg-search) .advt-wrap {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (min-width: 1440px) {
  :where(html.pg-search) .page-wrap,
  :where(html.pg-search) .advt-wrap {
    padding-left: 220px;
    padding-right: 220px;
  }
}
@media (max-width: 768px) {
  :where(html.pg-search) img {
    max-width: 100%;
    height: auto;
  }
  :where(html.pg-search) .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    justify-items: center;
    gap: 12px;
  }
  :where(html.pg-search) .category-card {
    width: 100%;
    max-width: 280px;
  }
  :where(html.pg-search) .more-item {
    display: none;
  }
  :where(html.pg-search) .show-more-wrap {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 8px;
  }
  :where(html.pg-search) .show-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  :where(html.pg-search) .show-more-btn:hover {
    background: var(--primary-mid);
    transform: translateY(-1px);
  }
  :where(html.pg-search) .show-more-btn.show-less {
    background: #555;
  }
  :where(html.pg-search) .show-more-btn.show-less:hover {
    background: #444;
  }
  :where(html.pg-search) .float-img-right {
    float: none;
    display: block;
    margin: 0 auto 24px;
    max-width: 100%;
  }
  :where(html.pg-search) .hero-overlay {
    padding: 24px 16px;
  }
  :where(html.pg-search) .page-wrap,
  :where(html.pg-search) .advt-wrap {
    padding: 0 16px;
  }
  :where(html.pg-search) .sidebar-banner {
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 12px 0;
    background: white;
  }
  :where(html.pg-search) .sidebar-banner img {
    width: 80%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
@media (min-width: 769px) {
  :where(html.pg-search) .show-more-wrap {
    display: none !important;
  }
}
@media (max-width: 640px) {
  :where(html.pg-search) .page-wrap,
  :where(html.pg-search) .advt-wrap {
    padding: 0 16px;
  }
}

/* ===== afrotrade_contactus ===== */

/* ===== about_afrotrade, advertising_tx, afrotrade_advertising, afrotrade_contactus, afrotrade_directory, afrotrade_gallery, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, afrotrade_terms, auto, build, detail_news, directory_tx, index, industrial, market_news, media_partners, medical, oilgas, powerenergy, search, trade_events, xdeals_banners ===== */
:where(html:not(.pg-advertising-b, .pg-index1)) .advertisers-wrapper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .advertisers-wrapper::-webkit-scrollbar {
  display: none;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .advertisers-wrapper.dragging {
  cursor: grabbing;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .advertisers-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  padding: 0 10px;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .adv-item {
  flex: 0 0 auto;
  width: 102px;
  text-align: center;
  color: #333;
  cursor: pointer;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .adv-item img {
  display: block;
  margin: 0 auto 3px;
  height: 102px;
  width: 102px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.2s;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .adv-item:hover img {
  opacity: 0.85;
}
:where(html:not(.pg-advertising-b, .pg-index1)) .adv-item b {
  font-size: 10px;
  line-height: 1.2;
  pointer-events: none;
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModal.open {
  display: flex;
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModalBox {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModalClose {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a528c;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModalClose:hover {
  background: #e8510a;
  transform: scale(1.1);
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModalImg {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
:where(html:not(.pg-advertising-b, .pg-index1)) #advModalName {
  font-size: 1rem;
  font-weight: 600;
  color: #0d1f35;
  margin: 0;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== about_afrotrade, advertising_b, advertising_tx, afrotrade_advertising, afrotrade_contactus, afrotrade_directory, afrotrade_gallery, afrotrade_listing, afrotrade_listing1, afrotrade_sublisting, afrotrade_terms, auto, build, detail_news, directory_tx, index, industrial, market_news, media_partners, medical, oilgas, powerenergy, search, trade_events, xdeals_banners ===== */
:where(html:not(.pg-index1)) footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 60px 0 40px;
  text-align: center;
}
:where(html:not(.pg-index1)) .footer-links {
  margin-bottom: 32px;
  font-size: 1.05rem;
}
:where(html:not(.pg-index1)) .footer-links a {
  color: #94a3b8;
  margin: 0 16px;
  text-decoration: none;
  transition: color 0.2s;
}
:where(html:not(.pg-index1)) .footer-links a:hover {
  color: white;
}
:where(html:not(.pg-index1)) .btm-bar {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 20px 0;
  font-size: 0.96rem;
  border-top: 1px solid #1e293b;
}
:where(html:not(.pg-index1)) .cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 860px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
:where(html:not(.pg-index1)) .cookie-consent p {
  font-size: 0.88rem;
  color: #94a3b8;
  flex: 1;
  min-width: 200px;
  line-height: 1.6;
  margin: 0;
}
:where(html:not(.pg-index1)) .cookie-consent p strong {
  color: white;
  font-weight: 600;
}
:where(html:not(.pg-index1)) .cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
:where(html:not(.pg-index1)) .cookie-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}
:where(html:not(.pg-index1)) .cookie-btn.accept {
  background: var(--primary);
  color: white;
}
:where(html:not(.pg-index1)) .cookie-btn.accept:hover {
  background: var(--primary-mid);
  transform: translateY(-1px);
}
:where(html:not(.pg-index1)) .cookie-btn.reject {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.15);
}
:where(html:not(.pg-index1)) .cookie-btn.reject:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
@media (max-width: 768px) {
  :where(html:not(.pg-index1)) .cookie-consent {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px 18px;
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  :where(html:not(.pg-index1)) .cookie-btns {
    width: 100%;
  }
  :where(html:not(.pg-index1)) .cookie-btn {
    flex: 1;
    text-align: center;
  }
  :where(html:not(.pg-index1)) footer {
    padding: 40px 0 24px;
  }
  :where(html:not(.pg-index1)) .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 4px;
    font-size: 0.88rem;
    padding: 0 20px;
    margin-bottom: 24px;
  }
  :where(html:not(.pg-index1)) .footer-links a {
    margin: 0 6px;
    font-size: 0.88rem;
  }
  :where(html:not(.pg-index1)) .footer-links .fab {
    font-size: 1.1rem;
  }
  :where(html:not(.pg-index1)) .btm-bar {
    font-size: 0.82rem;
    padding: 16px 20px;
    line-height: 1.7;
  }
}
:where(html:not(.pg-index1)) .btm-bar .pr-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  border: 0;
}

/* ===== search ===== */
:where(html.pg-search) .search-page-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
:where(html.pg-search) .search-page-wrap:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(10,82,140,0.1);
}
:where(html.pg-search) .search-page-icon {
  padding: 0 14px 0 22px;
  color: var(--text-3);
  font-size: 0.95rem;
  flex-shrink: 0;
}
:where(html.pg-search) .search-page-input {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
:where(html.pg-search) .search-page-input:focus {
  outline: none;
}
:where(html.pg-search) .search-page-input::placeholder {
  color: var(--text-3);
}
:where(html.pg-search) .search-page-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(html.pg-search) .search-page-btn:hover {
  background: #083f6e;
}
:where(html.pg-search) .result-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
:where(html.pg-search) .result-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
}
:where(html.pg-search) .result-summary-left i {
  color: var(--primary);
}
:where(html.pg-search) .result-summary-left strong {
  color: var(--primary);
}
:where(html.pg-search) .result-summary-left em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
:where(html.pg-search) .result-summary-left.no-res i {
  color: var(--text-3);
}
:where(html.pg-search) .result-summary-right {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}
:where(html.pg-search) .results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:where(html.pg-search) .result-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
:where(html.pg-search) .result-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
}
:where(html.pg-search) .result-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
:where(html.pg-search) .result-num {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}
:where(html.pg-search) .result-body {
  flex: 1;
  min-width: 0;
}
:where(html.pg-search) .result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
:where(html.pg-search) .result-company-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
:where(html.pg-search) .result-company-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
:where(html.pg-search) .result-company-icon i {
  color: var(--primary);
  font-size: 0.95rem;
}
:where(html.pg-search) .result-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
:where(html.pg-search) .result-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
:where(html.pg-search) .result-view-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
:where(html.pg-search) .result-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
:where(html.pg-search) .result-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
:where(html.pg-search) .pag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
:where(html.pg-search) .pag-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
:where(html.pg-search) .pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
:where(html.pg-search) .pag-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}
:where(html.pg-search) .pag-btn.pag-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
:where(html.pg-search) .pag-btn.pag-nav {
  padding: 0 16px;
  background: var(--surface-3);
  font-weight: 600;
}
:where(html.pg-search) .pag-btn.pag-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
:where(html.pg-search) .pag-btn.pag-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
:where(html.pg-search) .pag-dots {
  color: var(--text-3);
  font-size: 1rem;
  padding: 0 2px;
  line-height: 40px;
  user-select: none;
}
:where(html.pg-search) .pag-info {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-3);
}
:where(html.pg-search) .pag-info strong {
  color: var(--text-2);
}
@media (max-width: 768px) {
  :where(html.pg-search) .pag-wrap {
    gap: 4px;
    margin-top: 24px;
  }
  :where(html.pg-search) .pag-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
    padding: 0 8px;
  }
  :where(html.pg-search) .pag-btn.pag-nav {
    padding: 0 12px;
  }
  :where(html.pg-search) .pag-label {
    display: none;
  }
  :where(html.pg-search) .pag-numbers {
    gap: 4px;
  }
  :where(html.pg-search) .pag-dots {
    padding: 0;
  }
}
@media (max-width: 480px) {
  :where(html.pg-search) .pag-numbers .pag-btn:not(.pag-active):not(:first-child):not(:last-child) {
    display: none;
  }
  :where(html.pg-search) .pag-numbers .pag-btn.pag-active,
  :where(html.pg-search) .pag-numbers .pag-btn:first-child,
  :where(html.pg-search) .pag-numbers .pag-btn:last-child {
    display: inline-flex;
  }
}
:where(html.pg-search) .search-empty-state {
  text-align: center;
  padding: 48px 20px;
}
:where(html.pg-search) .search-empty-icon-wrap {
  width: 76px;
  height: 76px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
:where(html.pg-search) .search-empty-icon-wrap i {
  font-size: 1.9rem;
  color: var(--primary);
}
:where(html.pg-search) .search-empty-icon-wrap.accent-icon {
  background: var(--accent-light);
}
:where(html.pg-search) .search-empty-icon-wrap.accent-icon i {
  color: var(--accent);
}
:where(html.pg-search) .search-empty-state h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 400;
}
:where(html.pg-search) .search-empty-state p {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.75;
}
:where(html.pg-search) .search-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
:where(html.pg-search) .search-tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-2);
  transition: var(--transition);
}
:where(html.pg-search) .search-tip-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
:where(html.pg-search) .search-tip-item i {
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.85rem;
}
:where(html.pg-search) .search-db-error {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #dc2626;
  font-weight: 500;
}
:where(html.pg-search) .search-db-error i {
  font-size: 1.2rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  :where(html.pg-search) .search-page-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  :where(html.pg-search) .search-page-input {
    font-size: 0.9rem;
    padding: 12px 6px;
  }
  :where(html.pg-search) .result-item {
    padding: 16px;
  }
  :where(html.pg-search) .result-num {
    display: none;
  }
  :where(html.pg-search) .result-top {
    flex-direction: column;
    align-items: flex-start;
  }
  :where(html.pg-search) .result-view-btn {
    align-self: flex-start;
  }
  :where(html.pg-search) .pag-btn {
    min-width: 36px;
    height: 36px;
  }
  :where(html.pg-search) .search-tip-grid {
    grid-template-columns: 1fr;
  }
}
:where(html.pg-search) .adv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
:where(html.pg-search) .adv-modal-overlay.open {
  display: flex;
}
:where(html.pg-search) .adv-modal-box {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: advModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:where(html.pg-search) .adv-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  line-height: 1;
  z-index: 1;
}
:where(html.pg-search) .adv-modal-close:hover {
  background: var(--accent);
  transform: scale(1.1) rotate(90deg);
}
:where(html.pg-search) .adv-modal-img-wrap {
  margin-bottom: 16px;
}
:where(html.pg-search) .adv-modal-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}
:where(html.pg-search) #advModalName {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: "DM Serif Display", serif;
  margin: 0;
}
:where(html.pg-search) .adv-modal-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
@media (max-width: 768px) {
  :where(html.pg-search) .adv-modal-box {
    padding: 20px;
    border-radius: var(--radius);
  }
  :where(html.pg-search) .adv-modal-close {
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  :where(html.pg-search) body {
    overflow-x: hidden !important;
  }
  :where(html.pg-search) .page-wrap {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) main {
    padding: 20px 0 50px !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  :where(html.pg-search) .page-wrap > div,
  :where(html.pg-search) .page-wrap > aside {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }
  :where(html.pg-search) .advt-wrap {
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) .card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }
  :where(html.pg-search) .card-head {
    padding: 14px 16px !important;
  }
  :where(html.pg-search) .card-head h2 {
    font-size: 1rem !important;
  }
  :where(html.pg-search) .card-body {
    padding: 16px !important;
  }
  :where(html.pg-search) .search-page-wrap {
    flex-wrap: nowrap !important;
  }
  :where(html.pg-search) .search-page-input {
    font-size: 0.88rem !important;
    padding: 11px 6px !important;
  }
  :where(html.pg-search) .search-page-btn {
    padding: 11px 14px !important;
    font-size: 0.82rem !important;
    gap: 4px !important;
  }
  :where(html.pg-search) .search-page-icon {
    padding: 0 8px 0 14px !important;
  }
  :where(html.pg-search) .result-summary-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 12px 14px !important;
    gap: 6px !important;
  }
  :where(html.pg-search) .result-summary-left {
    font-size: 0.88rem !important;
  }
  :where(html.pg-search) .result-summary-right {
    font-size: 0.8rem !important;
  }
  :where(html.pg-search) .results-list {
    gap: 12px !important;
  }
  :where(html.pg-search) .result-item {
    padding: 14px 14px 14px 18px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }
  :where(html.pg-search) .result-body {
    width: 100% !important;
    min-width: 0 !important;
  }
  :where(html.pg-search) .result-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }
  :where(html.pg-search) .result-company-wrap {
    gap: 8px !important;
  }
  :where(html.pg-search) .result-company-name {
    font-size: 0.95rem !important;
  }
  :where(html.pg-search) .result-company-icon {
    width: 30px !important;
    height: 30px !important;
  }
  :where(html.pg-search) .result-desc {
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
    margin-bottom: 10px !important;
  }
  :where(html.pg-search) .result-bottom {
    padding-top: 10px !important;
  }
  :where(html.pg-search) .read-more.adv-modal-trigger {
    font-size: 0.85rem !important;
  }
  :where(html.pg-search) .search-empty-state {
    padding: 32px 12px !important;
  }
  :where(html.pg-search) .search-empty-state h3 {
    font-size: 1.1rem !important;
  }
  :where(html.pg-search) .search-empty-state p {
    font-size: 0.88rem !important;
  }
  :where(html.pg-search) .search-tip-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  :where(html.pg-search) .search-tip-item {
    padding: 10px 12px !important;
    font-size: 0.84rem !important;
  }
  :where(html.pg-search) .pag-wrap {
    gap: 4px !important;
    margin-top: 20px !important;
  }
  :where(html.pg-search) .pag-btn {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 8px !important;
  }
  :where(html.pg-search) .pag-btn.pag-nav {
    padding: 0 10px !important;
  }
  :where(html.pg-search) .pag-info {
    font-size: 0.8rem !important;
    margin-top: 8px !important;
  }
  :where(html.pg-search) .sidebar {
    gap: 16px !important;
  }
  :where(html.pg-search) .sidebar-banner img {
    width: 80% !important;
    margin: 0 auto !important;
    display: block !important;
  }
  :where(html.pg-search) .adv-modal-overlay {
    padding: 12px !important;
  }
  :where(html.pg-search) .adv-modal-box {
    padding: 16px !important;
    max-height: 92vh !important;
  }
  :where(html.pg-search) .adv-modal-img-wrap img {
    max-height: 60vh !important;
  }
  html:where(.pg-search),
  :where(html.pg-search) body {
    width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  :where(html.pg-search) nav.desktop-nav,
  :where(html.pg-search) .utility-bar {
    display: none !important;
  }
  :where(html.pg-search) header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
  }
  :where(html.pg-search) .header-inner {
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    min-height: 56px !important;
    gap: 8px !important;
    width: 100% !important;
  }
  :where(html.pg-search) .logo-wrap img.logo {
    max-height: 40px !important;
    margin-top: 0 !important;
  }
  :where(html.pg-search) .header-right .search-form {
    display: none !important;
  }
  :where(html.pg-search) .hamburger {
    display: flex !important;
  }
  :where(html.pg-search) .hero img {
    max-height: 600px !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  :where(html.pg-search) main {
    padding: 16px 0 40px !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  :where(html.pg-search) .page-wrap {
    display: block !important;
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) .page-wrap > div,
  :where(html.pg-search) .page-wrap > aside {
    display: block !important;
    width: 100% !important;
    float: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) .card {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 16px 0 !important;
    border-radius: 10px !important;
  }
  :where(html.pg-search) .card-head {
    padding: 12px 14px !important;
  }
  :where(html.pg-search) .card-head h2 {
    font-size: 0.95rem !important;
  }
  :where(html.pg-search) .card-body {
    padding: 14px !important;
  }
  :where(html.pg-search) .search-page-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) .search-page-input {
    font-size: 0.88rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  :where(html.pg-search) .search-page-btn {
    padding: 12px 14px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
  :where(html.pg-search) .result-item {
    padding: 12px 12px 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  :where(html.pg-search) .result-num {
    display: none !important;
  }
  :where(html.pg-search) .result-company-name {
    font-size: 0.92rem !important;
  }
  :where(html.pg-search) .result-desc {
    font-size: 0.84rem !important;
  }
  :where(html.pg-search) .search-tip-grid {
    grid-template-columns: 1fr !important;
  }
  :where(html.pg-search) .advt-wrap {
    padding: 0 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  :where(html.pg-search) .sidebar {
    margin-top: 0 !important;
    gap: 16px !important;
  }
  :where(html.pg-search) .sidebar-banner {
    display: block !important;
    text-align: center !important;
  }
  :where(html.pg-search) .sidebar-banner img {
    width: 85% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
  }
  :where(html.pg-search) .section-eyebrow {
    font-size: 0.72rem !important;
  }
}

/* ===== index1 ===== */
:where(html.pg-index1),
:where(html.pg-index1) * {
  box-sizing: border-box;
}
:where(html.pg-index1) body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg,#0f172a,#1e3a5f);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}
:where(html.pg-index1) .card {
  max-width: 620px;
  padding: 55px 35px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
:where(html.pg-index1) .icon {
  font-size: 58px;
  margin-bottom: 20px;
}
:where(html.pg-index1) h1 {
  font-size: clamp(30px,5vw,46px);
  margin: 0 0 18px;
}
:where(html.pg-index1) p {
  font-size: 18px;
  line-height: 1.7;
  color: #dbe5f2;
  margin: 0 0 18px;
}
:where(html.pg-index1) .line {
  width: 65px;
  height: 4px;
  border-radius: 4px;
  background: #38bdf8;
  margin: 26px auto;
}
:where(html.pg-index1) .small {
  font-size: 14px;
  color: #aebed1;
  margin-bottom: 0;
}
