/* ═══════════════════════════════════════════════════════
   Afaq Pro — Main CSS v4.0
   File: css/main.css
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --P: #1a5f7a; --Pl: #2a85a8; --Pd: #0f3d4f;
  --A: #c8873a; --Ad: #a06b2a;
  --P-rgb: 26,95,122; --A-rgb: 200,135,58;
  --Plt: rgba(26,95,122,.10); --Pxs: rgba(26,95,122,.05);
  --Alt: rgba(200,135,58,.10);
  --bg: #f4f5f7; --sur: #ffffff; --sur2: #f0f2f5; --sur3: #e8eaed;
  --ink: #0f172a; --tx: #374151; --tx2: #6b7280; --tx3: #9ca3af;
  --bd: #e5e7eb; --bd2: #f0f2f5;
  --fb: 'Cairo', sans-serif;
  --fh: 'Lora', serif;
  --fz: 16px; --lh: 1.75;
  --r: 12px; --rs: 8px; --rl: 20px;
  --W: 1200px;
  --hdr-h: 65px;
  --logo-h: 40px;
  --hero-h: 520px;
  --footer-bg: #0d0e13;
  --s1: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.06);
  --s2: 0 4px 6px rgba(0,0,0,.05), 0 10px 15px rgba(0,0,0,.07);
  --s3: 0 10px 25px rgba(0,0,0,.08), 0 20px 40px rgba(0,0,0,.08);
  --s4: 0 20px 50px rgba(0,0,0,.12), 0 40px 80px rgba(0,0,0,.10);
  --ease: .22s cubic-bezier(.4,0,.2,1);
  --ease-spring: .4s cubic-bezier(.34,1.56,.64,1);
}

/* DARK MODE */
body[data-theme="dark"], body.dark-mode {
  --bg: #0f1117; --sur: #181b24; --sur2: #1e2130; --sur3: #242840;
  --ink: #f0f2f6; --tx: #c5c9d5; --tx2: #8b8fa8; --tx3: #52566a;
  --bd: #2a2f42; --bd2: #1e2130;
  --s1: 0 1px 3px rgba(0,0,0,.3);
  --s2: 0 4px 20px rgba(0,0,0,.4);
  --s3: 0 10px 40px rgba(0,0,0,.5);
  --s4: 0 20px 60px rgba(0,0,0,.6);
  --Plt: rgba(26,95,122,.14); --Pxs: rgba(26,95,122,.07);
  --Alt: rgba(200,135,58,.12);
}

/* ── RESET ── */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 100%; }
body {
  font-family: var(--fb);
  font-size: var(--fz);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--P); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--A); }
ul, ol { padding-inline-start: 1.5em; }
button { font-family: var(--fb); }
.container { max-width: var(--W); margin: 0 auto; padding: 0 20px; }

/* ── ACCESSIBILITY ── */
.afq-skip {
  position: absolute; top: -300px; inset-inline-start: 10px; z-index: 99999;
  background: var(--P); color: #fff; padding: 10px 24px;
  border-radius: var(--rs); font-size: 14px; font-weight: 700;
  text-decoration: none; box-shadow: var(--s3);
  transition: top .25s ease;
}
.afq-skip:focus { top: 10px; color: #fff; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--P);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast */
body.high-contrast {
  --bd: #444;
  filter: contrast(1.2);
}

/* ── READING PROGRESS BAR ── */
.afq-rbar {
  position: fixed; top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--P), var(--A));
  transform-origin: left; transform: scaleX(0);
  transition: transform .1s linear;
  border-radius: 0 3px 3px 0;
}
[dir="rtl"] .afq-rbar { transform-origin: right; }

/* ═══════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════ */
.afq-topbar {
  background: var(--P);
  color: rgba(255,255,255,.85);
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 500;
  display: none;
}
.afq-topbar.visible { display: block; }
.afq-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.afq-topbar-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.afq-topbar-text {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.afq-topbar-actions { display: flex; align-items: center; gap: 8px; }
.afq-topbar a { color: rgba(255,255,255,.7); font-size: 11px; }
.afq-topbar a:hover { color: #fff; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.afq-header {
  background: var(--sur);
  border-bottom: 1px solid var(--bd);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow var(--ease), background .3s, border-color .3s;
  will-change: box-shadow;
}
.afq-header.stuck { box-shadow: var(--s2); }
.afq-header.transparent {
  position: fixed; width: 100%;
  background: transparent; border-color: transparent;
}
.afq-header.transparent.stuck {
  background: var(--sur);
  border-color: var(--bd);
}

.afq-hdr {
  display: flex; align-items: center;
  height: var(--hdr-h); gap: 16px;
}

/* Шeuear (Logo) */
.afq-logo {
  display: flex; align-items: center;
  gap: 10px; text-decoration: none; flex-shrink: 0;
}
.afq-logo-mark {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--P), var(--Pd));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--fh); font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(var(--P-rgb),.3);
  transition: transform var(--ease-spring), box-shadow var(--ease);
}
.afq-logo:hover .afq-logo-mark {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(var(--P-rgb),.4);
}
.afq-logo-img {
  height: var(--logo-h); width: auto;
  object-fit: contain; border-radius: 0;
  transition: transform var(--ease-spring);
}
.afq-logo:hover .afq-logo-img { transform: scale(1.04); }
.afq-logo-text { display: flex; flex-direction: column; }
.afq-logo-name {
  font-family: var(--fh); font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.1;
  transition: color .3s;
}
.afq-logo-tag {
  font-size: 9.5px; color: var(--tx3); letter-spacing: .8px;
  text-transform: uppercase;
}

/* Nav */
.afq-nav { flex: 1; display: flex; justify-content: center; }
.afq-nav > ul {
  display: flex; list-style: none; gap: 2px;
  padding: 0; margin: 0;
}
.afq-nav > ul > li { position: relative; }
.afq-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 13px; font-size: 13.5px; font-weight: 600;
  color: var(--tx2); border-radius: var(--rs);
  transition: all var(--ease); white-space: nowrap;
}
.afq-nav > ul > li > a:hover,
.afq-nav .current-menu-item > a,
.afq-nav .current_page_item > a {
  color: var(--P); background: var(--Plt);
}
.afq-nav-arrow {
  font-size: 9px; opacity: .5;
  transition: transform .2s;
}
.afq-nav > ul > li:hover .afq-nav-arrow { transform: rotate(-180deg); }

/* Dropdown */
.afq-dropdown {
  position: absolute; top: calc(100% + 8px);
  inset-inline-start: 0;
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--r); box-shadow: var(--s3);
  min-width: 200px; padding: 6px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 100;
}
.afq-nav > ul > li:hover .afq-dropdown,
.afq-nav > ul > li:focus-within .afq-dropdown {
  opacity: 1; visibility: visible;
  pointer-events: auto; transform: translateY(0);
}
.afq-dropdown li a {
  display: block; padding: 9px 14px;
  font-size: 13px; font-weight: 500; color: var(--tx);
  border-radius: var(--rs);
  transition: all var(--ease);
}
.afq-dropdown li a:hover {
  background: var(--Plt); color: var(--P);
  padding-inline-start: 18px;
}

/* Header Right */
.afq-hdr-r { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.afq-ico-btn {
  width: 36px; height: 36px; border: 1.5px solid var(--bd);
  border-radius: var(--rs); background: transparent;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--tx2);
  transition: all var(--ease); font-size: 13px;
  position: relative;
}
.afq-ico-btn:hover {
  border-color: var(--P); color: var(--P); background: var(--Plt);
}
.afq-lang-btn {
  font-family: var(--fb); font-size: 10.5px; font-weight: 800;
  letter-spacing: .5px;
}
.afq-cta {
  background: var(--P); color: #fff !important;
  padding: 8px 18px; border-radius: var(--rs);
  font-size: 13px; font-weight: 700; border: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 3px 10px rgba(var(--P-rgb),.3);
  transition: all var(--ease);
}
.afq-cta:hover { background: var(--Pd); transform: translateY(-2px); color: #fff !important; }

/* Cart button */
.afq-cart-btn {
  position: relative;
  width: 36px; height: 36px; border: 1.5px solid var(--bd);
  border-radius: var(--rs); background: transparent;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--tx2);
  transition: all var(--ease); text-decoration: none; font-size: 14px;
}
.afq-cart-btn:hover { border-color: var(--P); color: var(--P); background: var(--Plt); }
.afq-cart-count {
  position: absolute; top: -5px; inset-inline-end: -5px;
  background: var(--A); color: #fff;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--sur);
}
.afq-cart-count:empty { display: none; }

/* Dark / Theme Toggle */
.afq-theme-btn .fa-moon { display: none; }
body[data-theme="dark"] .afq-theme-btn .fa-sun,
body.dark-mode .afq-theme-btn .fa-sun { display: none; }
body[data-theme="dark"] .afq-theme-btn .fa-moon,
body.dark-mode .afq-theme-btn .fa-moon { display: inline; }

/* Burger */
.afq-burger {
  display: none; border: 1.5px solid var(--bd);
  border-radius: var(--rs); width: 38px; height: 38px;
  background: transparent; cursor: pointer;
  flex-direction: column; gap: 4px;
  align-items: center; justify-content: center; padding: 8px;
}
.afq-burger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--tx); border-radius: 2px;
  transition: all .25s;
}
.afq-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.afq-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.afq-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
[dir="ltr"] .afq-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(-45deg); }
[dir="ltr"] .afq-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(45deg); }

/* Search Dropdown */
.afq-search-drop {
  display: none; background: var(--sur);
  border-bottom: 1px solid var(--bd); padding: 16px 0;
  box-shadow: var(--s2); transition: background .3s;
}
.afq-search-drop.open { display: block; animation: fadeDown .2s ease; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.afq-search-wrap { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; }
.afq-search-input {
  flex: 1; border: 1.5px solid var(--bd); border-radius: var(--rs);
  padding: 11px 16px; font-family: var(--fb); font-size: 14px;
  color: var(--ink); background: var(--sur2); outline: none;
  transition: border-color var(--ease), background .3s;
}
.afq-search-input:focus { border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt); }
.afq-search-input::placeholder { color: var(--tx3); }
.afq-search-btn {
  background: var(--P); color: #fff; border: none;
  padding: 11px 22px; border-radius: var(--rs);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--fb); transition: background var(--ease);
}
.afq-search-btn:hover { background: var(--Pd); }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.afq-hero {
  position: relative; overflow: hidden;
  background: #070a14; min-height: var(--hero-h);
}
.afq-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.afq-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.45) saturate(1.15);
  transition: transform 8s ease;
}
.afq-hero:hover .afq-hero-bg img { transform: scale(1.03); }
body.dark-mode .afq-hero-bg img,
body[data-theme="dark"] .afq-hero-bg img {
  filter: brightness(.32) saturate(.9);
}
.afq-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7,10,20,.2) 0%,
    rgba(7,10,20,.5) 50%,
    rgba(7,10,20,.9) 100%
  );
}
.afq-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 400px;
  gap: 28px; align-items: end;
  padding: 90px 0 56px; min-height: var(--hero-h);
}
.afq-hero-main { display: flex; flex-direction: column; justify-content: flex-end; }
.afq-hero-cat {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--A); color: #fff;
  font-size: 10.5px; font-weight: 800;
  padding: 5px 16px; border-radius: 50px;
  width: fit-content; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .6px;
  box-shadow: 0 4px 14px rgba(var(--A-rgb),.4);
}
.afq-hero-title {
  font-family: var(--fh); font-size: clamp(28px,4.5vw,50px);
  font-weight: 700; color: #fff; line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.afq-hero-title a { color: inherit; text-decoration: none; }
.afq-hero-excerpt {
  font-size: 15.5px; color: rgba(255,255,255,.65);
  line-height: 1.85; max-width: 560px; margin-bottom: 24px;
}
.afq-hero-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45);
  margin-bottom: 24px;
}
.afq-hero-author { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-weight: 600; }
.afq-hero-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,.2); }
.afq-hero-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--A); color: #fff;
  padding: 12px 28px; border-radius: var(--rs);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(var(--A-rgb),.4);
  transition: all var(--ease); text-decoration: none;
  width: fit-content;
}
.afq-hero-btn:hover { background: var(--Ad); transform: translateY(-3px); color: #fff; }
[dir="ltr"] .afq-hero-btn i { transform: scaleX(-1); }

/* Hero Side Cards */
.afq-hero-side { display: flex; flex-direction: column; gap: 14px; }
.afq-hero-card {
  display: flex; gap: 14px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
  padding: 14px; cursor: pointer;
  transition: all var(--ease); text-decoration: none; color: inherit;
}
.afq-hero-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateX(-5px); color: inherit;
}
[dir="ltr"] .afq-hero-card:hover { transform: translateX(5px); }
.afq-hero-card-img {
  width: 96px; height: 78px; border-radius: var(--rs);
  overflow: hidden; flex-shrink: 0;
}
.afq-hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.afq-hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.afq-hero-card-cat { font-size: 9px; font-weight: 800; color: var(--A); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.afq-hero-card-title {
  font-family: var(--fh); font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.9); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.afq-hero-card-date { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 5px; }

/* ═══════════════════════════════════════════
   AD ZONES
═══════════════════════════════════════════ */
.afq-ad-zone { transition: all .3s; position: relative; }
.afq-ad-zone.ad-off { display: none !important; }
.afq-ad-live {
  max-width: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; min-height: 50px;
}
.afq-ad-live::before {
  content: 'Ad'; display: inline-block;
  font-size: 9px; font-weight: 700; color: var(--tx3);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 6px; padding: 2px 10px;
  background: rgba(0,0,0,.04); border-radius: 4px;
}
.afq-ad-wrap {
  background: var(--sur2); border: 1.5px dashed var(--bd);
  border-radius: var(--r); padding: 22px 14px;
  text-align: center; position: relative;
}
.afq-ad-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.afq-ad-ico { font-size: 22px; color: var(--bd); }
.afq-ad-lbl { font-size: 12px; color: var(--tx3); font-weight: 600; }
.afq-ad-sz  { font-size: 10px; color: var(--tx3); opacity: .6; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.afq-sec { padding: 60px 0; position: relative; }
.afq-sec-head {
  display: flex; align-items: center; gap: 16px; margin: 0 0 32px;
}
.afq-sec-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--A), var(--Ad));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
  box-shadow: 0 0 0 6px rgba(var(--A-rgb),.1), 0 4px 16px rgba(var(--A-rgb),.35);
  transition: all .3s;
}
.afq-sec-dot i { font-size: 14px; }
.afq-sec-head:hover .afq-sec-dot {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 0 0 10px rgba(var(--A-rgb),.08), 0 6px 22px rgba(var(--A-rgb),.45);
}
.afq-sec-line {
  flex: 1; height: 2px;
  background: linear-gradient(to left, var(--A) 0%, var(--P) 60%, transparent 100%);
  border-radius: 10px; opacity: .45;
  transition: opacity .3s;
}
.afq-sec-head:hover .afq-sec-line { opacity: .85; }
.afq-sec-title {
  font-family: var(--fh); font-size: 20px; font-weight: 700;
  color: var(--ink); transition: color .3s; white-space: nowrap;
}
.afq-sec-more {
  font-size: 11px; font-weight: 800; color: var(--P);
  background: var(--Plt); display: inline-flex; align-items: center;
  gap: 6px; white-space: nowrap; padding: 7px 16px;
  border-radius: 50px; border: 1px solid transparent;
  transition: all .3s; text-transform: uppercase;
  letter-spacing: .5px; flex-shrink: 0;
}
.afq-sec-more:hover {
  color: #fff; background: linear-gradient(135deg, var(--P), var(--Pl));
  box-shadow: 0 4px 16px rgba(var(--P-rgb),.3);
}

/* Reveal animations */
.afq-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.afq-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── GRIDS ── */
.afq-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.afq-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.afq-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── CARDS ── */
.afq-card {
  display: flex; flex-direction: column;
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--s1); transition: all var(--ease);
  text-decoration: none; color: inherit;
}
.afq-card:hover {
  border-color: transparent; transform: translateY(-5px);
  box-shadow: var(--s3); color: inherit;
}
.afq-card-img {
  height: 210px; position: relative;
  overflow: hidden; background: var(--sur2); flex-shrink: 0;
}
.afq-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s ease;
}
.afq-card:hover .afq-card-img img { transform: scale(1.06); }
.afq-card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.afq-card-cat {
  display: inline-block; background: var(--Plt); color: var(--P);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; margin-bottom: 8px; width: fit-content;
  transition: all var(--ease);
}
.afq-card-cat:hover { background: var(--P); color: #fff; }
.afq-card-title {
  font-family: var(--fh); font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.45; margin: 0 0 10px;
  transition: color var(--ease);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.afq-card:hover .afq-card-title { color: var(--P); }
.afq-card-excerpt {
  font-size: 13.5px; color: var(--tx2); line-height: 1.7;
  margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.afq-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--bd2);
}
.afq-card-author-sm {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--tx2);
}
.afq-card-author-sm img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.afq-card-date { font-size: 11px; color: var(--tx3); display: flex; align-items: center; gap: 4px; }
.afq-card-lg .afq-card-img { height: 270px; }
.afq-card-lg .afq-card-title { font-size: 21px; -webkit-line-clamp: 3; }

/* ── HORIZONTAL CARD ── */
.afq-hcard {
  display: flex; gap: 0;
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--s1); transition: all var(--ease);
  text-decoration: none; color: inherit;
}
.afq-hcard:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--s3); color: inherit; }
.afq-hcard-img {
  width: 220px; min-height: 168px; flex-shrink: 0;
  overflow: hidden; position: relative; background: var(--sur2);
}
.afq-hcard-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s;
}
.afq-hcard:hover .afq-hcard-img img { transform: scale(1.06); }
.afq-hcard-body {
  padding: 20px 22px; display: flex; flex-direction: column;
  justify-content: center; flex: 1; min-width: 0;
}
.afq-hcard-cat {
  display: inline-block; background: var(--Plt); color: var(--P);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; margin-bottom: 8px; width: fit-content;
}
.afq-hcard-title {
  font-family: var(--fh); font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.45; margin-bottom: 9px;
  transition: color var(--ease);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.afq-hcard:hover .afq-hcard-title { color: var(--P); }
.afq-hcard-excerpt {
  font-size: 13.5px; color: var(--tx2); line-height: 1.7;
  margin-bottom: 11px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.afq-hcard-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--tx3); flex-wrap: wrap; }

/* ── TWO COLUMN LAYOUT ── */
.afq-two-col { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }

/* ── QUOTE ── */
.afq-quote-sec {
  background: linear-gradient(135deg, var(--P), var(--Pd));
  padding: 96px 0; position: relative; overflow: hidden;
}
.afq-quote-bg-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--fh); font-size: 26vw;
  color: rgba(255,255,255,.04); pointer-events: none;
  animation: afq-float 8s ease-in-out infinite; z-index: 0;
}
@keyframes afq-float {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-22px); }
}
.afq-quote-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 800px; margin: 0 auto;
  background: rgba(255,255,255,.08); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--rl);
  padding: 64px 52px; box-shadow: 0 8px 32px rgba(0,0,0,.22);
  transition: transform .3s, box-shadow .3s;
}
.afq-quote-inner:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.afq-quote-deco { width: 52px; height: 3px; background: var(--A); margin: 0 auto 38px; border-radius: 10px; }
.afq-quote-text {
  font-family: var(--fh); font-size: clamp(18px,2.8vw,27px);
  font-weight: 600; color: #fff; line-height: 2.0;
  margin-bottom: 36px; font-style: italic;
}
.afq-quote-author-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; }
.afq-quote-author-line { width: 40px; height: 1px; background: rgba(255,255,255,.3); }
.afq-quote-author { font-size: 14px; color: rgba(255,255,255,.75); font-weight: 700; margin: 0; }

/* ── NEWSLETTER ── */
.afq-nl-sec {
  background: var(--sur); border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd); padding: 56px 0;
}
.afq-nl-inner {
  display: flex; align-items: center; gap: 44px;
  justify-content: space-between; flex-wrap: wrap;
}
.afq-nl-text { max-width: 440px; }
.afq-nl-heading { font-family: var(--fh); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.afq-nl-desc { font-size: 14px; color: var(--tx2); line-height: 1.7; }
.afq-nl-form-wrap { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.afq-nl-input {
  flex: 1; border: 1.5px solid var(--bd); border-radius: var(--rs);
  padding: 13px 16px; font-family: var(--fb); font-size: 14px;
  color: var(--ink); background: var(--sur2); outline: none;
  transition: border-color var(--ease);
}
.afq-nl-input:focus { border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt); }
.afq-nl-input::placeholder { color: var(--tx3); }
.afq-nl-submit {
  background: var(--P); color: #fff; border: none;
  padding: 13px 28px; border-radius: var(--rs);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--fb); transition: all var(--ease);
  white-space: nowrap; box-shadow: 0 3px 12px rgba(var(--P-rgb),.3);
}
.afq-nl-submit:hover { background: var(--Pd); transform: translateY(-2px); }

/* ── SIDEBAR ── */
.afq-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--hdr-h) + 20px); }
.afq-widget {
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--r); padding: 22px;
  box-shadow: var(--s1); transition: all var(--ease); overflow: hidden;
}
.afq-widget:hover { box-shadow: var(--s2); border-color: rgba(var(--P-rgb),.1); }
.afq-widget-title {
  font-family: var(--fh); font-size: 17px; font-weight: 800;
  color: var(--ink); margin: 0 0 18px; padding-bottom: 14px;
  position: relative; display: flex; align-items: center;
  gap: 10px; transition: color .3s;
}
.afq-widget-title::before {
  content: ''; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--A), var(--P));
  border-radius: 10px; flex-shrink: 0;
}
.afq-widget-title::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 0;
  height: 1px; background: var(--bd2);
}
.afq-cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--rs);
  text-decoration: none; transition: all var(--ease); margin-bottom: 3px;
}
.afq-cat-row:hover { background: var(--Plt); }
.afq-cat-name {
  font-size: 13px; font-weight: 600; color: var(--tx);
  display: flex; align-items: center; gap: 8px;
  transition: color var(--ease);
}
.afq-cat-name::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bd); flex-shrink: 0; transition: all var(--ease);
}
.afq-cat-row:hover .afq-cat-name { color: var(--P); font-weight: 700; }
.afq-cat-row:hover .afq-cat-name::before { background: var(--A); transform: scale(1.3); }
.afq-cat-num {
  background: var(--sur2); color: var(--tx3);
  font-size: 10px; font-weight: 800; padding: 2px 8px;
  border-radius: 20px; transition: all var(--ease);
}
.afq-cat-row:hover .afq-cat-num { background: var(--P); color: #fff; }

/* Popular Posts Widget */
.afq-pop-list { display: flex; flex-direction: column; }
.afq-pop-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--bd2);
  text-decoration: none; transition: all var(--ease);
}
.afq-pop-row:last-child { border-bottom: none; }
.afq-pop-row:hover { transform: translateX(-3px); }
[dir="ltr"] .afq-pop-row:hover { transform: translateX(3px); }
.afq-pop-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--sur2); color: var(--tx3);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); margin-top: 2px;
}
.afq-pop-row:nth-child(1) .afq-pop-num {
  background: linear-gradient(135deg, var(--A), var(--P));
  color: #fff; box-shadow: 0 3px 10px rgba(var(--A-rgb),.35);
}
.afq-pop-row:hover .afq-pop-num { background: var(--P); color: #fff; }
.afq-pop-body { flex: 1; min-width: 0; }
.afq-pop-cat { font-size: 9.5px; font-weight: 800; color: var(--P); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.afq-pop-t {
  font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--ease);
}
.afq-pop-row:hover .afq-pop-t { color: var(--P); }
.afq-pop-d { font-size: 10.5px; color: var(--tx3); margin-top: 3px; }

/* Newsletter Widget */
.afq-widget-nl { background: linear-gradient(135deg,var(--Plt),var(--Pxs)); border-color: rgba(var(--P-rgb),.14); }
.afq-nl-desc-sm { font-size: 13px; color: var(--tx2); line-height: 1.65; margin-bottom: 14px; }
.afq-nl-form-sm { display: flex; flex-direction: column; gap: 8px; }
.afq-nl-input-sm {
  border: 1.5px solid var(--bd); border-radius: var(--rs);
  padding: 10px 14px; font-family: var(--fb); font-size: 13px;
  color: var(--ink); background: var(--sur); outline: none;
  transition: border-color var(--ease);
}
.afq-nl-input-sm:focus { border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt); }
.afq-nl-btn-sm {
  background: var(--P); color: #fff; border: none;
  padding: 10px; border-radius: var(--rs);
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--fb); transition: all var(--ease);
}
.afq-nl-btn-sm:hover { background: var(--Pd); transform: translateY(-1px); }

/* ── BREADCRUMB ── */
.afq-crumb { padding: 12px 0 16px; font-size: 12px; color: var(--tx3); }
.afq-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 3px; padding: 0; margin: 0; }
.afq-crumb li + li::before { content: '›'; margin-inline-end: 3px; opacity: .4; }
.afq-crumb a { color: var(--tx3); transition: color var(--ease); }
.afq-crumb a:hover { color: var(--P); }
.afq-crumb [aria-current="page"] { color: var(--P); font-weight: 600; }

/* ── SINGLE ARTICLE ── */
.afq-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.afq-content-wrap {
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--rl); padding: 38px 44px;
  box-shadow: var(--s1); transition: background .3s, border-color .3s;
}
.afq-art-header { margin-bottom: 28px; }
.afq-art-cats { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.afq-art-cat {
  display: inline-block; background: var(--Plt); color: var(--P);
  font-size: 10px; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .4px;
  transition: all var(--ease);
}
.afq-art-cat:hover { background: var(--P); color: #fff; }
.afq-art-title {
  font-family: var(--fh); font-size: clamp(24px,3.8vw,44px);
  font-weight: 700; color: var(--ink); line-height: 1.25;
  margin-bottom: 16px;
}
.afq-art-subtitle { font-size: 18px; color: var(--tx2); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.afq-art-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--tx3);
  padding: 14px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd);
  margin-bottom: 28px;
}
.afq-art-author { display: flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 600; }
.afq-art-author-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.afq-art-author-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-art-meta .sep { opacity: .3; }
.afq-art-thumb {
  width: 100%; border-radius: var(--r); overflow: hidden;
  margin-bottom: 32px; box-shadow: var(--s2);
}
.afq-art-thumb img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.afq-art-thumb figcaption {
  background: var(--sur2); padding: 10px 16px;
  font-size: 12px; color: var(--tx3);
  border-top: 1px solid var(--bd);
}

/* TOC */
.afq-toc {
  background: var(--sur2); border: 1px solid var(--bd);
  border-radius: var(--r); padding: 20px 24px; margin-bottom: 32px;
}
.afq-toc-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.afq-toc ol { padding-inline-start: 1.5em; }
.afq-toc li { font-size: 13.5px; color: var(--tx2); margin-bottom: 6px; }
.afq-toc a { color: var(--tx2); transition: color var(--ease); }
.afq-toc a:hover { color: var(--P); }

/* Article Body */
.afq-article { font-size: 17px; line-height: 1.95; color: var(--tx); }
.afq-article h2 { font-family: var(--fh); font-size: 26px; font-weight: 700; color: var(--ink); margin: 42px 0 14px; padding-inline-start: 16px; border-inline-start: 4px solid var(--P); }
.afq-article h3 { font-family: var(--fh); font-size: 21px; font-weight: 700; color: var(--ink); margin: 32px 0 10px; }
.afq-article h4 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; }
.afq-article p { margin-bottom: 24px; }
.afq-article a { color: var(--P); text-decoration: underline; text-decoration-color: rgba(var(--P-rgb),.3); }
.afq-article a:hover { color: var(--A); }
.afq-article blockquote {
  background: var(--Plt); border-inline-start: 5px solid var(--P);
  border-radius: 0 var(--rs) var(--rs) 0;
  padding: 20px 22px; margin: 30px 0;
  font-family: var(--fh); font-size: 19px; font-style: italic; color: var(--P);
}
.afq-article ul, .afq-article ol { margin-bottom: 24px; padding-inline-start: 28px; }
.afq-article li { margin-bottom: 8px; }
.afq-article img { border-radius: var(--r); margin: 28px 0; border: 1px solid var(--bd); }
.afq-article strong { color: var(--ink); font-weight: 700; }
.afq-article table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.afq-article th { background: var(--P); color: #fff; padding: 11px 15px; text-align: start; font-weight: 700; }
.afq-article td { padding: 11px 15px; border-bottom: 1px solid var(--bd); }
.afq-article tr:nth-child(even) td { background: var(--sur2); }
.afq-article code { background: var(--sur2); border: 1px solid var(--bd); border-radius: 5px; padding: 2px 7px; font-size: 14px; }
.afq-article pre { background: var(--ink); color: #e8f0fe; border-radius: var(--r); padding: 20px; margin: 28px 0; overflow-x: auto; }
.afq-article pre code { background: none; border: none; color: inherit; font-size: 14px; }

/* Share Buttons */
.afq-share {
  background: var(--sur2); border: 1px solid var(--bd);
  border-radius: var(--r); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0; flex-wrap: wrap;
}
.afq-share-lbl { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.afq-share-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.afq-sh {
  width: 38px; height: 38px; border-radius: var(--rs);
  border: 1.5px solid var(--bd); background: var(--sur);
  color: var(--tx2); display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; cursor: pointer;
  font-family: var(--fb); transition: all var(--ease); text-decoration: none;
}
.afq-sh:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.afq-sh-x:hover    { background: #000; border-color: #000; color: #fff; }
.afq-sh-fb:hover   { background: #1877f2; border-color: #1877f2; color: #fff; }
.afq-sh-wa:hover   { background: #25d366; border-color: #25d366; color: #fff; }
.afq-sh-tele:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.afq-sh-li:hover   { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.afq-sh-cp:hover   { background: var(--Plt); border-color: var(--P); color: var(--P); }

/* Author Box */
.afq-author-box {
  background: linear-gradient(135deg,var(--Plt),var(--Pxs));
  border: 1px solid rgba(var(--P-rgb),.12);
  border-radius: var(--r); padding: 24px;
  display: flex; gap: 20px; margin: 32px 0;
}
.afq-author-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(var(--P-rgb),.25); }
.afq-author-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-author-name { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.afq-author-role { font-size: 11px; font-weight: 700; color: var(--P); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.afq-author-bio { font-size: 13.5px; color: var(--tx2); line-height: 1.65; }

/* Tags */
.afq-post-tags { display: flex; align-items: center; gap: 7px; margin: 22px 0; flex-wrap: wrap; }
.afq-post-tags-lbl { font-size: 11px; font-weight: 700; color: var(--tx3); text-transform: uppercase; letter-spacing: .7px; }
.afq-tag {
  background: var(--sur2); color: var(--tx2); font-size: 11.5px;
  padding: 4px 12px; border-radius: 50px; text-decoration: none;
  border: 1px solid var(--bd); transition: all var(--ease); font-weight: 600;
}
.afq-tag:hover { background: var(--Plt); color: var(--P); border-color: var(--P); }

/* Related Posts */
.afq-related { margin-top: 46px; }
.afq-related-title { font-family: var(--fh); font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--bd); }

/* Comments */
.afq-comments-section { margin-top: 46px; padding-top: 38px; border-top: 2px solid var(--bd); }
.afq-comments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.afq-comments-head h3 { font-family: var(--fh); font-size: 22px; font-weight: 700; color: var(--ink); }
.afq-comments-count { background: var(--Plt); color: var(--P); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.afq-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--bd2); }
.afq-comment:last-child { border-bottom: none; }
.afq-comment-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.afq-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.afq-comment-body { flex: 1; min-width: 0; }
.afq-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.afq-comment-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.afq-comment-badge { font-size: 9px; font-weight: 700; padding: 1px 8px; border-radius: 8px; text-transform: uppercase; }
.afq-comment-badge.is-author { background: var(--Alt); color: var(--A); }
.afq-comment-date { font-size: 11px; color: var(--tx3); margin-inline-start: auto; }
.afq-comment-text { font-size: 15px; color: var(--tx); line-height: 1.8; }
.afq-replies { padding-inline-start: 36px; margin-top: 4px; }
.afq-comment-form { background: var(--sur2); border: 1px solid var(--bd); border-radius: var(--rl); padding: 28px; margin-top: 32px; }
.afq-comment-form-title { font-family: var(--fh); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.afq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.afq-form-group { display: flex; flex-direction: column; gap: 5px; }
.afq-form-label { font-size: 11.5px; font-weight: 700; color: var(--tx2); text-transform: uppercase; letter-spacing: .6px; }
.afq-form-input, .afq-form-textarea {
  border: 1.5px solid var(--bd); border-radius: var(--rs);
  padding: 11px 15px; font-family: var(--fb); font-size: 14px;
  color: var(--ink); background: var(--sur); outline: none;
  transition: border-color var(--ease), box-shadow var(--ease); width: 100%;
}
.afq-form-input:focus, .afq-form-textarea:focus {
  border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt);
}
.afq-form-textarea { min-height: 130px; resize: vertical; line-height: 1.75; }
.afq-form-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.afq-form-hint { font-size: 12px; color: var(--tx3); }
.afq-submit-btn {
  background: var(--P); color: #fff; border: none;
  padding: 12px 32px; border-radius: var(--rs);
  font-family: var(--fb); font-size: 14px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; box-shadow: 0 3px 12px rgba(var(--P-rgb),.3);
  transition: all var(--ease);
}
.afq-submit-btn:hover { background: var(--Pd); transform: translateY(-2px); }

/* ── 404 ── */
.afq-404 { text-align: center; padding: 100px 20px; }
.afq-404-code { font-family: var(--fh); font-size: clamp(80px,15vw,160px); font-weight: 700; color: var(--P); line-height: 1; opacity: .12; }
.afq-404-title { font-family: var(--fh); font-size: 30px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.afq-404-text { font-size: 16px; color: var(--tx2); margin-bottom: 30px; }

/* ── ARCHIVE ── */
.afq-archive-head { background: linear-gradient(135deg,var(--P),var(--Pd)); padding: 56px 0; margin-bottom: 44px; }
.afq-archive-head h1 { font-family: var(--fh); font-size: clamp(24px,4vw,40px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.afq-archive-head p { font-size: 15px; color: rgba(255,255,255,.6); }
.afq-archive-head .afq-badge { background: rgba(255,255,255,.15); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 50px; display: inline-block; margin-bottom: 14px; }
.afq-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.afq-pagination a, .afq-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--rs); border: 1.5px solid var(--bd); font-size: 14px; font-weight: 600; color: var(--tx2); transition: all var(--ease); text-decoration: none; }
.afq-pagination a:hover, .afq-pagination .current { background: var(--P); color: #fff; border-color: var(--P); }

/* ── FOOTER ── */
.afq-footer { background: var(--footer-bg); color: rgba(255,255,255,.5); padding: 56px 0 0; }
.afq-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.07); }
.afq-foot-logo { margin-bottom: 14px; }
.afq-foot-name { font-family: var(--fh); font-size: 26px; font-weight: 700; color: #fff; display: block; margin-bottom: 10px; }
.afq-foot-desc { font-size: 14px; color: rgba(255,255,255,.38); line-height: 1.8; max-width: 240px; margin-bottom: 18px; }
.afq-foot-soc { display: flex; gap: 7px; flex-wrap: wrap; }
.afq-soc-btn { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); text-decoration: none; font-size: 13px; transition: all var(--ease); }
.afq-soc-btn:hover { background: var(--P); border-color: var(--P); color: #fff; transform: translateY(-3px); }
.afq-foot-col-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.26); text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 18px; display: block; }
.afq-foot-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.afq-foot-links a { color: rgba(255,255,255,.42); font-size: 13.5px; text-decoration: none; transition: color var(--ease); }
.afq-foot-links a:hover { color: #fff; padding-inline-start: 4px; }
.afq-foot-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.2); flex-wrap: wrap; gap: 8px; }
.afq-foot-bottom a { color: rgba(255,255,255,.32); transition: color var(--ease); }
.afq-foot-bottom a:hover { color: #fff; }

/* ── BTT + TOAST ── */
.afq-btt {
  position: fixed; bottom: 28px; inset-inline-end: 28px; z-index: 9998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--P); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(var(--P-rgb),.4);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all var(--ease);
}
.afq-btt.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.afq-btt:hover { background: var(--Pd); transform: translateY(-3px); }

.afq-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 12px 24px;
  border-radius: var(--rs); font-size: 14px; font-weight: 600;
  font-family: var(--fb); box-shadow: var(--s4); z-index: 99999;
  opacity: 0; transition: all .35s ease; pointer-events: none;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.afq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── WOOCOMMERCE LAYOUT ── */
.afq-woo-container { padding: 32px 20px; }
.afq-woo-layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.afq-woo-main { min-width: 0; }
.afq-woo-sidebar { position: sticky; top: calc(var(--hdr-h) + 20px); }

/* WooCommerce Product Cards */
.woocommerce ul.products li.product {
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--s1); transition: all var(--ease);
}
.woocommerce ul.products li.product:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--s3); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fh); font-size: 15px; font-weight: 700; color: var(--ink);
}
.woocommerce ul.products li.product .price { color: var(--P); font-weight: 800; font-size: 15px; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--P) !important; color: #fff !important;
  border-radius: var(--rs) !important; font-family: var(--fb) !important;
  font-weight: 700 !important; transition: all var(--ease) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--Pd) !important;
}
.woocommerce .onsale { background: var(--A) !important; border-radius: var(--rs) !important; }
.woocommerce nav.woocommerce-pagination ul li a { border-color: var(--bd); color: var(--tx2); border-radius: var(--rs); }
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--P); border-color: var(--P); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .afq-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .afq-two-col, .afq-layout, .afq-woo-layout { grid-template-columns: 1fr; }
  .afq-hero-inner { grid-template-columns: 1fr; }
  .afq-hero-side { display: none; }
  .afq-sidebar, .afq-woo-sidebar { position: static !important; top: auto; }
}

@media (max-width: 768px) {
  .afq-nav {
    display: none; position: fixed;
    top: var(--hdr-h); inset-inline: 0;
    background: var(--sur); border-bottom: 1px solid var(--bd);
    padding: 12px 20px; z-index: 100; box-shadow: var(--s2);
    max-height: calc(100vh - var(--hdr-h)); overflow-y: auto;
  }
  .afq-nav.is-open { display: block; animation: fadeDown .2s ease; }
  .afq-nav > ul { flex-direction: column; gap: 2px; }
  .afq-dropdown { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: none; background: var(--sur2); margin-top: 4px; display: none; }
  .afq-nav > ul > li.is-open .afq-dropdown { display: block; }
  .afq-burger { display: flex; }
  .afq-hdr { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .afq-hdr-r .afq-cta { display: none; }
  .afq-grid-2, .afq-grid-3, .afq-grid-4 { grid-template-columns: 1fr; }
  .afq-hcard { flex-direction: column; }
  .afq-hcard-img { width: 100%; min-height: 200px; }
  .afq-hcard-body { padding: 16px; }
  .afq-nl-inner { flex-direction: column; text-align: center; }
  .afq-nl-text { max-width: 100%; }
  .afq-nl-form-wrap { max-width: 100%; width: 100%; }
  .afq-hero-inner { padding: 52px 0 38px; }
  .afq-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .afq-foot-bottom { flex-direction: column; text-align: center; }
  .afq-content-wrap { padding: 24px 20px; }
  .afq-form-row { grid-template-columns: 1fr; }
  .afq-replies { padding-inline-start: 18px; }
  .afq-share { flex-direction: column; align-items: flex-start; }
  .afq-author-box { flex-direction: column; }
  .afq-quote-inner { padding: 38px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .afq-nl-form-wrap { flex-direction: column; }
  .afq-article h2 { font-size: 21px; }
  .afq-btt { bottom: 16px; inset-inline-end: 16px; }
}

/* ── Customizer Preview ── */
body.customize-preview .afq-header { position: relative; }

/* ── Cards overrides for dark mode (important) ── */
body[data-theme="dark"] .afq-card,
body.dark-mode .afq-card,
body[data-theme="dark"] .afq-hcard,
body.dark-mode .afq-hcard {
  background: var(--sur);
  border-color: var(--bd);
}
body[data-theme="dark"] .afq-card-title,
body.dark-mode .afq-card-title,
body[data-theme="dark"] .afq-hcard-title,
body.dark-mode .afq-hcard-title {
  color: var(--ink);
}
body[data-theme="dark"] .afq-card-excerpt,
body.dark-mode .afq-card-excerpt {
  color: var(--tx2);
}
/* ═══════════════════════════════════════════
   ★ Shop Page — Professional Grid Design
   ═════════════════════════════════════════ */
.afq-shop-page {
  padding: 60px 0 80px;
  background: var(--bg);
}

/*────*/
.afq-shop-nav {
  margin-bottom: 32px;
  position: relative;
  z-index: 20;
}

.afq-shop-nav-inner {
  display: flex;
  align-items: center;
  background: var(--sur);
  border: 1.5px solid var(--bd);
  border-radius: 50px;
  padding: 4px;
  position: relative;
  width: fit-content;
  gap: 0; /* */
}

.afq-shop-nav-btn {
  background: transparent;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight:  8a:hover .afq-shop-arrow {
    transform: rotate(180deg);
  }
}

[dir="rtl"] .afq-shop-arrow { transform: rotate(180deg); }

/* */
.afq-shop-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scaleY(0); /* */
  background: var(--su  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 8px 0;
  box-shadow: var(--s3);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  z-index: 50;
}

/* */
.afq-shop-nav-inner:hover .afq-dropdown,
.afq-shop-nav-inner.is-open .afq-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scaleY(1);
}

/* */
.afq-shop-drop-link {
  display: flex;
  align-items: ` + 'center' + ';
  justify-content: space-between;
  padding: 11px 16px;
  text-decoration: none;
  transition: all var(--ease);
}

.afq-shop-drop-link:hover {
  background: var(--Plt);
}

/* */
.afq-shop-drop-link > a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--ease);
}

.afq-shop-drop-link:hover > a {
  color: var(--P);
}

/* */
.afq-shop-cat-count {
  background: var(--sur2);
  color: var(--tx3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

/* */
.afq-shop-drop-link .afq-cat-arrow {
  font-size: 8px;
  color: var(--tx3);
  transition: transform var(--ease);
}

.afq-shop-drop-link:hover .afq-cat-arrow {
  color: var(--P);
  transform: translateX(-4px);
}

[dir="ltr"] .afq-shop-arrow,
[dir="ltr"] .afq-cat-arrow { transform: scaleX(-1); }
[dir="ltr"] .afq-shop-drop-link:hover .afq-cat-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .afq-shop-arrow { transform: scaleX(-1); }
.afq-shop-nav:hover .afq-shop-arrow { transform: rotate(180deg); }
[dir="rtl"] .afq-nav:hover .afq-shop-arrow { transform: rotate(180deg); }

/*──(Grid)──*/
.afq-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* */
.afq-shop-card {
  display: flex;
  flex-direction: colspan;
  background: var(--sur);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s1);
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
}

.afq-shop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s4);
  border-color: transparent;
  color: inherit;
}

/* */
.afq-shop-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--sur2);
  flex-shrink: 0;
}

.afq-shop-card-img a { display: block; }

.afq-shop-card-img img {
  width: 100%; height: 100%; 
  object-fit: cover;
  transition: transform .4s;
}

.afq-shop-card:hover .afq-shop-card-img img {
  transform: scale(1.05);
}

/*(SaleBadge)*/
.afq-shop-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  pointer-events: none;
}

/* */
.afq-shop-badge span.onsale {
  display: block !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: var(--A) !important;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  position: static !important;
  margin: 0 !important;
  width: fit-content !important;
  transform: none !important;
}

/* */
.afq-shop-card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: };
  gap: 8px;
}

/* */
.afq-shop-card-cat {
  a {
    font-size: 10px;
    font-weight: 700;
    color: var(--P);
    background: var(--pl);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: all var(--ease);
    display: inline-block;
    width: fit-content;
    text-decoration: inherit;
  }
  
  a:hover {
    background: var(--P);
    color: #fff;
  }
}

/* */
.afq-shop-card-title {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ease);
  text-decoration: none;
}

.afq-shop-card:hover .afq-shop-card-title {
  color: var(--);
}

/*机构和*/
.afq-shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.afq-shop-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* */
.afq-shop-old-price {
  font-size: 13px;
  color: var(--tx3);
  text-decoration: line-through;
  font-weight: 400;
}

/* */
.afq-now-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

/* */
[data-theme="dark"] .afq-shop-card {
  background: var(--sur);
  border-color: var(--bd);
}
[data-theme="dark"] .afq-shop-card-title { color: var(--ink); }
[data-theme="dark"] .afq-shop-old-price { color: var(--tx3); }
[data-theme="dark"] .afq-now-price { color: var(--ink); }
[data-theme="dark"] .afq-shop-nav { background: var(--sur); border-color: var(--bd); }
[data-theme="dark"] .afq-shop-dropdown { background: var(--sur); border-color: var(--bd); }
[data-theme="dark"] .afq-shop-drop-link:hover { background: var(--Plt); }
[data-theme="dark"] .afq-shop-cat { color: var(--P); background: var(--Plt); }
[data-theme="dark"] .afq-shop-cat a:hover { background: var(--P); color: #fff; }
[data-theme="dark"] .afq-shop-cat-count { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
[data-theme="dark"] .afq-shop-card-img { background: rgba(255,255,255,.03); }

/*──()──*/
.afq-shop-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.afq-shop-pagination a,
.afq-shop-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rs);
  border: 1.5px solid var(--bd);
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
  transition: all var(--ease);
  text-decoration: none;
}

.afq-shop-pagination a:hover,
.afq-pagination .current {
  background: var(--P);
  color: #fff;
  border-color: var(--P);
}

/*()*/
.afq-shop-pagination a.next,
.afq-pagination .next { font-size: 18px; }
.afq-shop-pagination a.prev,
.afq-pagination .prev { font-size: 18px; }

/*────*/
@media (max-width: 1024px) {
  .afq-shop-grid { grid-template-columns: repeat(3, 1fr); }
  .afq-shop-page { padding: 40px 0 60px; }
  .afq-shop-nav-inner { margin-bottom: 20px; }
}

@media (max-width: 768px) {
  .afq-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .afq-shop-page { padding: 30px 0 40px; }
  
  /* */
  .afq-shop-nav-inner { width: 100%; justify-content: space-between; }
  .afq-shop-dropdown {
    top: auto;
    left: 15px;
    right: 15px;
    transform: none;
    box-shadow: var(--s3);
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
  }
  
  .afq-shop-nav-inner:hover .afq-dropdown,
  .afq-shop-nav-inner.is-open .afq-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* */
  .afq-shop-arrow {
    transform: rotate(0deg) !important;
  }
  
  .afq-shop-nav-inner:hover .afq-shop-arrow {
    transform: rotate(180deg) !important;
  }
  
  [dir="rtl"] .afq-shop-nav-inner:hover .afq-shop-arrow {
    transform: rotate(180deg) !important;
  }
  
  .afq-shop-card-img { height: 180px; }
  .afq-shop-card-body { padding: 14px; }
  .afq-shop-card-title { font-size: 14px; -webkit-line-clamp: 1; }
  .afq-shop-old-price { font-size: 12px; }
  .afq-shop-now-price { font-size: 15px; }
  .afq-shop-page { padding: 20px 0 30px; }
}