/* ============================================================
   Qloo Marketing — WordPress Theme Stylesheet
   Converted from Claude Design prototype
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---- TOKENS ---- */
:root {
  --canvas:   #E8EFEB;
  --canvas-2: #DFE8E3;
  --white:    #FFFFFF;
  --cool:     #F4F6F5;

  --teal-100: #C8DDD6;
  --teal-200: #A0C4B8;
  --teal-300: #5DA898;
  --teal-400: #2E8E7A;
  --teal-500: #007864;
  --teal-600: #006050;
  --teal-700: #145050;
  --teal-800: #0A2020;

  --teal-glow:   rgba(0,120,100,.12);
  --teal-border: rgba(0,120,100,.25);

  --text-dark:    rgba(0,0,0,.87);
  --text-mid:     rgba(0,0,0,.58);
  --text-muted:   rgba(0,0,0,.38);
  --text-white:   #FFFFFF;
  --text-white-s: rgba(255,255,255,.70);

  --border:   rgba(0,0,0,.10);
  --border-s: rgba(0,0,0,.18);

  --success: #16A34A;
  --success-strong: #15803D;
  --error:   #DC2626;
  --error-strong: #B91C1C;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 50px;

  --shadow-card: 0 0 .5px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.14);
  --shadow-nav:  0 1px 3px rgba(0,0,0,.10), 0 2px 2px rgba(0,0,0,.06);
  --shadow-btn:  0 2px 8px rgba(0,120,100,.25);

  --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
  --font-en: 'Manrope', 'Helvetica Neue', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--text-dark);
  min-height: 100vh;
}
body.lang-en { font-family: var(--font-en); }

/* ---- LANG TOGGLE ---- */
.ar-content { display: block; }
.en-content { display: none; }
.lang-en .ar-content { display: none; }
.lang-en .en-content { display: block; }

.ar-inline { display: inline; }
.en-inline { display: none; }
.lang-en .ar-inline { display: none; }
.lang-en .en-inline { display: inline; }

/* ---- CONTAINER ---- */
.qm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.qm-container-md { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.qm-container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.qm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
}
.qm-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.qm-nav-logo { height: 30px; width: auto; cursor: pointer; }
.qm-navlinks { display: flex; gap: 26px; align-items: center; }
.qm-navlinks a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-mid);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.qm-navlinks a:hover,
.qm-navlinks a.active {
  color: var(--teal-600);
  border-bottom-color: var(--teal-500);
}
.qm-nav-actions { display: flex; align-items: center; gap: 10px; }
.qm-lang-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--cool);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dark);
  cursor: pointer;
  letter-spacing: .02em;
}
.qm-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.qm-burger-icon {
  display: block; width: 18px; height: 2px;
  background: var(--text-dark);
  box-shadow: 0 6px 0 var(--text-dark), 0 -6px 0 var(--text-dark);
}
.qm-mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 10px 24px 18px;
}
.qm-mobile-menu.open { display: block; }
.qm-mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.qm-mobile-menu a.active { color: var(--teal-600); }
.qm-mobile-cta { margin-top: 14px; }

/* ---- BUTTONS ---- */
.qm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.qm-btn:hover { opacity: .9; }
.qm-btn:active { transform: scale(.98); }

.qm-btn-primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.qm-btn-primary:hover { background: var(--teal-600); }

.qm-btn-outline {
  background: transparent;
  color: var(--teal-600);
  border: 1.5px solid var(--teal-500);
}
.qm-btn-outline:hover { background: var(--teal-glow); }

.qm-btn-lg { height: 50px; padding: 0 28px; border-radius: var(--r-pill); font-size: 16px; }
.qm-btn-md { height: 40px; padding: 0 20px; border-radius: var(--r-pill); font-size: 14px; }
.qm-btn-full { width: 100%; }

/* ---- BADGE ---- */
.qm-badge {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--font-en);
}
.qm-badge-teal {
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  color: var(--teal-600);
}

/* ---- MARQUEE / SLIDER ---- */
.qm-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Force LTR so the track always starts from the LEFT on RTL pages */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.qm-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: qm-scroll 34s linear infinite;
  will-change: transform;
}
.qm-track.qm-tools { animation-duration: 52s; }
.qm-marquee:hover .qm-track { animation-play-state: paused; }
@keyframes qm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .qm-track { animation: none; } }

/* client logos */
.qm-logo-item { padding: 0 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-width: 180px; cursor: pointer; }
.qm-logo-item img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1) sepia(1) hue-rotate(144deg) saturate(3) brightness(0.45);
  opacity: .8;
  transition: filter .3s, opacity .3s;
}
.qm-logo-item:hover img { filter: none; opacity: 1; }

/* small logos (square/portrait) — 50% taller than base */
.qm-logo-item img[alt="Taraf Jewelry"],
.qm-logo-item img[alt="Degla"],
.qm-logo-item img[alt="Ice Land"],
.qm-logo-item img[alt="Clown Snacks"],
.qm-logo-item img[alt="Dan Ladn"],
.qm-logo-item img[alt="United Architects"],
.qm-logo-item img[alt="Kolak Asal"],
.qm-logo-item img[alt="Fitnah Perfumes"],
.qm-logo-item img[alt="Al Gawda"] {
  height: 84px;
}

/* Zid: convert brand color → theme teal + scale up to compensate SVG whitespace */
.qm-track.qm-tools img[alt="Zid"] {
  filter: grayscale(1) sepia(1) hue-rotate(144deg) saturate(3) brightness(0.45) !important;
  transform: scale(1.4);
}

/* client name tooltip */
#qm-client-tip {
  position: fixed;
  z-index: 9999;
  background: var(--teal-700, #155e5e);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  transform: translateX(-50%);
}

/* tool pill */
.qm-tool-pill {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px; font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  font-family: var(--font-en);
}

/* ---- HERO ---- */
.qm-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.qm-hero-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border-radius: 24px;
}
.qm-hero-panel-head {
  background: var(--teal-800);
  padding: 22px 24px;
}
.qm-hero-panel-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.qm-metric-bar-wrap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.qm-metric-bar-bg { height: 8px; border-radius: var(--r-pill); background: var(--canvas-2); overflow: hidden; }
.qm-metric-bar { height: 100%; border-radius: var(--r-pill); background: var(--teal-500); transition: width 1s ease; }

/* ---- STATS ---- */
.qm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.qm-stat { text-align: center; padding: 8px 6px; }
.qm-stat-value { font-size: 44px; font-weight: 800; color: var(--teal-500); font-family: var(--font-en); letter-spacing: -.02em; }
.qm-stat-label { font-size: 13px; color: var(--text-mid); margin-top: 6px; font-weight: 600; }

/* ---- SERVICE CARDS ---- */
.qm-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.qm-service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.qm-service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.qm-service-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.qm-service-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 0 0 10px; }
.qm-service-desc { font-size: 14px; line-height: 1.75; color: var(--text-mid); margin: 0; }

/* ---- TESTIMONIALS ---- */
.qm-testi-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}
.qm-testi-quote { font-size: 20px; line-height: 1.75; color: var(--text-dark); font-weight: 500; margin: 0 0 26px; }
.qm-testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff; font-weight: 800;
  font-family: var(--font-en);
  display: flex; align-items: center; justify-content: center;
}
.qm-testi-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.qm-testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  color: var(--teal-600);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.qm-dot { height: 8px; border-radius: var(--r-pill); background: var(--teal-100); cursor: pointer; transition: all .2s; width: 8px; }
.qm-dot.active { background: var(--teal-500); width: 22px; }

/* ---- PORTFOLIO ---- */
.qm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}
.qm-case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.qm-case-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.qm-case-thumb {
  height: 190px;
  background: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 24px 32px;
}
.qm-case-thumb img {
  max-height: 110px;
  max-width: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* white bg logos: add subtle shadow so they read on canvas bg */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.15));
}
.qm-case-sector-tag {
  position: absolute; top: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 11px; font-weight: 700;
  color: var(--teal-600);
}
.qm-case-body { padding: 22px 22px 24px; }
.qm-case-title { font-size: 19px; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; }
.qm-case-summary { font-size: 13px; line-height: 1.7; color: var(--text-mid); margin: 0 0 18px; }
.qm-case-metrics { display: flex; gap: 18px; flex-wrap: wrap; }
.qm-case-metric-val { font-size: 20px; font-weight: 800; color: var(--teal-500); font-family: var(--font-en); }
.qm-case-metric-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* Filter pills */
.qm-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.qm-filter-btn {
  height: 38px; padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.qm-filter-btn.active {
  background: var(--teal-600);
  color: #fff;
  border-color: var(--teal-600);
}

/* ---- CASE DETAIL HEADER ---- */
.qm-case-header { background: var(--teal-800); padding: 52px 0 60px; }
.qm-case-back { color: var(--text-white-s); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.qm-case-back:hover { color: #fff; }
.qm-case-header-inner { display: flex; align-items: center; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.qm-case-logo-box {
  background: #fff; border-radius: var(--r-lg);
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: center;
}
.qm-case-logo-box img { height: 40px; }

.qm-metrics-float {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  transform: translateY(-40px);
}
.qm-metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px; text-align: center;
}
.qm-metric-card-val { font-size: 34px; font-weight: 800; color: var(--teal-500); font-family: var(--font-en); }
.qm-metric-card-lbl { font-size: 12px; color: var(--text-mid); margin-top: 4px; font-weight: 600; }

/* ---- PROCESS STEPS ---- */
.qm-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.qm-process-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-card);
}
.qm-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-500); color: #fff;
  font-weight: 800; font-family: var(--font-en);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ---- VALUES ---- */
.qm-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.qm-value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-card);
}
.qm-value-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--teal-glow); border: 1px solid var(--teal-border);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---- SPLIT LAYOUT ---- */
.qm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.qm-split-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

/* ---- ABOUT STATS PANEL ---- */
.qm-about-stats {
  background: var(--teal-800);
  border-radius: 24px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.qm-about-stat-val { font-size: 34px; font-weight: 800; color: #fff; font-family: var(--font-en); }
.qm-about-stat-lbl { font-size: 12px; color: var(--text-white-s); margin-top: 4px; font-weight: 600; }

/* ---- CONTACT ---- */
.qm-contact-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--teal-glow); border: 1px solid var(--teal-border);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qm-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
}
.qm-input, .qm-select, .qm-textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border-s);
  border-radius: var(--r-md);
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color .15s, box-shadow .15s;
}
.qm-input:focus, .qm-select:focus, .qm-textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.qm-textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.qm-form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 9px; }
.qm-form-group { margin-bottom: 20px; }
.qm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qm-field-error { color: var(--error-strong); font-size: 12px; margin-top: 7px; }
.qm-promise-box { background: var(--canvas); border-radius: var(--r-lg); padding: 24px; }

.qm-wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 14px; font-weight: 700;
  margin: 2px 0 22px;
}

/* ---- CTA BAND ---- */
.qm-cta-band {
  background: var(--teal-800);
  padding: 72px 0;
  text-align: center;
}

/* ---- BLOG ---- */
.qm-blog-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-bottom: 40px;
  text-decoration: none;
  color: inherit;
}
.qm-blog-featured:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.qm-blog-featured-img {
  position: relative; min-height: 300px;
  background: var(--teal-800);
  overflow: hidden;
}
.qm-blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.qm-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.qm-blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.qm-blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.qm-blog-card-img { position: relative; height: 200px; background: var(--teal-800); overflow: hidden; }
.qm-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.qm-category-tag {
  position: absolute; top: 16px;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 11px; font-weight: 800;
  color: var(--teal-600);
  text-transform: uppercase; letter-spacing: .08em;
  z-index: 2;
}

/* Post article */
.qm-post-lead { font-size: 20px; line-height: 1.9; color: var(--text-dark); font-weight: 500; margin: 0 0 34px; }
.qm-post-block h3 { font-size: 23px; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; letter-spacing: -.01em; }
.qm-post-block p { font-size: 16px; line-height: 1.95; color: var(--text-mid); margin: 0 0 14px; }
.qm-post-quote { background: var(--canvas); border-radius: 12px; padding: 26px 30px; margin: 36px 0; }
.qm-post-quote p { font-size: 21px; line-height: 1.6; color: var(--teal-800); font-weight: 700; margin: 0; }
.qm-post-takeaways {
  background: var(--teal-glow); border: 1px solid var(--teal-border);
  border-radius: 16px; padding: 28px 30px; margin-top: 36px;
}

/* ---- FOOTER ---- */
.qm-footer { background: var(--teal-800); padding: 60px 0 32px; }
.qm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

/* ---- SECTION HEADERS ---- */
.qm-section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* ---- PLATFORM TAGS ---- */
.qm-platform-tag {
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  color: var(--teal-600);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-en);
  display: inline-block;
}

/* ---- NOTICE TAGS ---- */
.qm-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(22,163,74,.10); border: 1px solid rgba(22,163,74,.25);
  color: var(--success-strong);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 30px;
}

/* RTL adjustments for Arabic */
html[dir="rtl"] .qm-category-tag,
html[dir="rtl"] .qm-case-sector-tag { right: 14px; left: auto; }
html[dir="ltr"] .qm-category-tag,
html[dir="ltr"] .qm-case-sector-tag { left: 14px; right: auto; }

html[dir="rtl"] .qm-post-quote { border-right: 4px solid var(--teal-500); border-left: none; }
html[dir="ltr"] .qm-post-quote { border-left: 4px solid var(--teal-500); border-right: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .qm-hero { grid-template-columns: 1fr; gap: 36px; }
  .qm-split { grid-template-columns: 1fr; gap: 36px; }
  .qm-split-footer { grid-template-columns: 1fr; gap: 24px; }
  .qm-navlinks { display: none; }
  .qm-nav-cta-hide-mobile { display: none !important; }
  .qm-burger { display: inline-flex; }
  .qm-blog-featured { grid-template-columns: 1fr; }
  .qm-portfolio-grid { grid-template-columns: 1fr; }
  .qm-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .qm-stat-value { font-size: 32px; }
  .qm-testi-card { padding: 28px 20px; }
  .qm-form-card { padding: 24px 20px; }
}
