/* ======================================================================
   Ojuba Web theme — assets/css/style.css
   هوية بصرية مستقلة: بنفسجي/نيلي (indigo/violet) كلون أساسي + ذهبي كلون
   ثانوي للتمييز — مصمّم كصفحة تسويق منتج (product marketing) لسكربت
   أُعجوبة نفسه، لا تشترك أي متغيرات ألوان مع أي قالب آخر بالمشروع.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #5B3DF6;
  --primary-deep: #3B1FAE;
  --primary-soft: rgba(91,61,246,.10);
  --gold: #E8A93B;
  --gold-deep: #B9821F;
  --gold-soft: rgba(232,169,59,.14);

  --bg: #F6F5FC;
  --card: #FFFFFF;
  --text: #16112B;
  --muted: #6B6480;
  --border: rgba(59,31,174,.12);

  --danger: #EF4444;
  --success: #22C55E;
  --warning: #F59E0B;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(59,31,174,.12);
  --shadow-sm: 0 8px 20px rgba(59,31,174,.08);

  --font: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg: #120D22;
  --card: #1B1533;
  --text: #F2F0FA;
  --muted: #A79FC4;
  --border: rgba(255,255,255,.09);
  --primary-soft: rgba(91,61,246,.18);
  --gold-soft: rgba(232,169,59,.18);
  --shadow: 0 20px 50px rgba(0,0,0,.55);
  --shadow-sm: 0 8px 20px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

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

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

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.3; margin: 0; }

p { margin: 0; color: var(--muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

section { padding: 84px 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(91,61,246,.35); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: var(--primary-deep); color: #fff; font-size: 13px; font-weight: 700; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 22px; flex-wrap: wrap; text-align: center; }
.topbar-inner a { color: var(--gold); text-decoration: underline; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.brand img { height: 34px; width: auto; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 700; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; background: var(--card); border-bottom: 1px solid var(--border); padding: 10px 22px 18px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 10px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, var(--primary-deep), var(--primary) 60%, #7C5CFF); color: #fff; padding: 76px 0 0; overflow: hidden; position: relative; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 22px 60px; }
.hero-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 18px; }
.hero-inner > p { color: rgba(255,255,255,.86); font-size: 17px; max-width: 640px; margin: 0 auto 30px; }
.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 700; }

.hero-shot { max-width: 920px; margin: 0 auto; }
.mock { background: var(--card); border-radius: 18px 18px 0 0; box-shadow: 0 -24px 60px rgba(20,10,60,.28); overflow: hidden; border: 1px solid var(--border); border-bottom: none; }
.mock-bar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.mock-stat { background: var(--card); padding: 22px 12px; text-align: center; }
.mock-stat .v { font-size: 26px; font-weight: 900; color: var(--primary); }
.mock-stat .l { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.mock-rows { padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mock-row:last-child { border-bottom: none; }
.dotc { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); flex-shrink: 0; }
.mock-row .t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mock-row .bar1, .mock-row .bar2 { height: 8px; border-radius: 4px; background: var(--border); }
.mock-row .bar1 { width: 60%; } .mock-row .bar2 { width: 35%; }
.mock-row .pill { background: var(--gold-soft); color: var(--gold-deep); font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }

@media (max-width: 720px) {
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Section head ===== */
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--primary); background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.pillar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); }
.pillar .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 18px; }
.pillar .ic.p2 { background: var(--gold-soft); color: var(--gold-deep); }
.pillar .ic.p3 { background: rgba(34,197,94,.14); color: var(--success); }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ===== Features ===== */
.features-wrap { background: var(--bg); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ===== Flow ===== */
.flow { display: flex; align-items: flex-start; gap: 10px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.flow-step { flex: 1; min-width: 190px; max-width: 240px; text-align: center; }
.flow-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; margin: 0 auto 14px; }
.flow-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.flow-step p { font-size: 13.5px; }
.flow-arrow { font-size: 22px; color: var(--border); padding-top: 8px; }
@media (max-width: 760px) { .flow-arrow { display: none; } .flow { flex-direction: column; align-items: center; } .flow-step { max-width: 320px; } }

/* ===== Compare table ===== */
.compare { margin-top: 50px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.compare-row { display: grid; grid-template-columns: 1fr 130px 130px; align-items: center; }
.compare-plans { --compare-cols: 3; }
.compare-plans .compare-row { grid-template-columns: 1fr repeat(var(--compare-cols), 130px); }
.compare-row > div { padding: 16px 18px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); }
.compare-row:last-child > div { border-bottom: none; }
.compare-row .cell { text-align: center; font-weight: 800; }
.compare-head { background: var(--bg); }
.compare-head .cell:last-child { color: var(--primary); }
.cell-yes { color: var(--success); }
.cell-no { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .compare-row, .compare-plans .compare-row { grid-template-columns: 1fr; text-align: center; }
  .compare-row > div:first-child { background: var(--bg); font-weight: 900; }
}

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; background: var(--primary-soft); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 16px; }
.team-role { color: var(--primary); font-weight: 800; font-size: 13px; margin-top: 4px; }
.team-bio { font-size: 13px; color: var(--muted); margin-top: 10px; }
.team-social { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.team-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.team-social a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.team-social a:hover { color: var(--primary); border-color: var(--primary); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ===== Clients + testimonials ===== */
.clients-label { text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.clients-strip { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; opacity: .8; }
.clients-strip img { height: 32px; width: auto; filter: grayscale(1); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonial-card .rating { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card .quote { color: var(--text); font-weight: 600; font-size: 14.5px; margin-bottom: 18px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; }
.testimonial-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .name { font-weight: 800; font-size: 14px; }
.testimonial-card .role { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.pricing-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; text-align: center; }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow); transform: scale(1.03); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 999px; }
.pricing-card h3 { font-size: 18px; margin-bottom: 14px; }
.pricing-price { font-size: 38px; font-weight: 900; color: var(--primary); }
.pricing-price span { font-size: 15px; color: var(--muted); font-weight: 700; margin-inline-start: 4px; }
.pricing-period { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: right; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pricing-features li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 12px; font-size: 14px; }

/* ===== Download CTA banner ===== */
.download-cta { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; text-align: center; }
.download-cta h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.download-cta p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 26px; }

/* ===== CTA (inline) ===== */
.cta { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: var(--radius); padding: 44px 32px; text-align: center; margin-bottom: 40px; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 22px; }
.cta-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; margin-top: 40px; align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 7px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 14.5px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.info-card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card .ic svg { width: 19px; height: 19px; }
.info-card .label { font-size: 12px; color: var(--muted); font-weight: 700; }
.info-card .value { font-weight: 800; font-size: 14px; }
.social-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.social-box .label { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.social-row { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { color: var(--primary); border-color: var(--primary); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
footer { background: var(--card); border-top: 1px solid var(--border); padding-top: 60px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; margin-bottom: 14px; }
.foot-brand img { height: 32px; }
.foot-desc { font-size: 13.5px; max-width: 300px; }
.foot-col-title { font-size: 14px; margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--primary); }
.foot-address { font-size: 13.5px; color: var(--muted); }
.foot-social { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.foot-social a svg { width: 15px; height: 15px; }
.foot-social a:hover { color: var(--primary); border-color: var(--primary); }
.foot-copy { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.mobile-cta-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 70; background: var(--card);
  border-top: 1px solid var(--border); padding: 12px 18px; display: none;
  align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.mobile-cta-bar span { font-weight: 800; font-size: 13.5px; }
.mobile-cta-bar.hide { transform: translateY(110%); }
@media (max-width: 720px) { .mobile-cta-bar { display: flex; } body { padding-bottom: 68px; } }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; padding: 70px 0 60px; text-align: center; }
.page-hero .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.page-hero .eyebrow .dot { background: #fff; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }
.search-box { max-width: 460px; margin: 26px auto 0; position: relative; }
.search-box input { width: 100%; padding: 13px 46px 13px 16px; border-radius: 999px; border: none; font-family: inherit; font-size: 14.5px; }
.search-box svg { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ===== Blog grid ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; justify-content: center; }
.filter-pill { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; color: var(--muted); }
.filter-pill.active, .filter-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .thumb svg { width: 34px; height: 34px; color: var(--border); }
.blog-card .body { padding: 20px; }
.cat-tag { display: inline-block; background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.blog-card h3 { font-size: 16.5px; margin-bottom: 12px; }
.blog-card .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.blog-card .meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 900; }
.blog-card .excerpt { font-size: 13.5px; margin-top: 8px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== Pagination ===== */
.pagination { margin-top: 46px; display: flex; justify-content: center; }
.pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination li.disabled span { color: var(--muted); opacity: .5; }
.pagination li.dots span { border: none; }

/* ===== Newsletter ===== */
.newsletter { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.newsletter h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 999px; border: none; font-family: inherit; font-size: 14px; }
.newsletter-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ===== Breadcrumb / Article ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; padding: 26px 0 10px; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); }
.article-head { max-width: 760px; margin: 0 auto; text-align: center; padding: 20px 0 30px; }
.article-head h1 { font-size: clamp(24px, 3.6vw, 36px); margin: 10px 0 16px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.article-meta .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.article-meta .sep { opacity: .5; }
.article-image { max-width: 900px; margin: 0 auto 34px; border-radius: var(--radius); overflow: hidden; }
.article-body { max-width: 720px; margin: 0 auto 30px; font-size: 16.5px; line-height: 1.95; color: var(--text); }
.article-body h2 { font-size: 22px; margin: 34px 0 14px; }
.article-body h3 { font-size: 18px; margin: 26px 0 12px; }
.article-body p { color: var(--text); margin-bottom: 16px; }
.article-body img { border-radius: var(--radius-sm); margin: 20px 0; }
.article-body ul, .article-body ol { color: var(--text); padding-inline-start: 22px; margin-bottom: 16px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.tag-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.share-row .label { font-size: 13px; font-weight: 800; color: var(--muted); }
.author-box { max-width: 720px; margin: 0 auto 50px; display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.author-box .name { font-weight: 800; font-size: 15px; }
.author-box .role { font-size: 12.5px; color: var(--muted); }

.related-wrap { background: var(--bg); padding: 70px 0; }
.related-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* ===== Ad zones (kept for structural completeness, ads module disabled by default) ===== */
.ad-zone { padding: 30px 0; }
.ad-eyebrow { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase; }
.ad-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.ad-card { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 14px; }
.ad-text-link, .ad-text { color: var(--primary); font-weight: 700; }

/* ===== Dark mode initial script guard ===== */
[data-theme] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* ===== Responsive tweaks ===== */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .pillars, .team-grid { grid-template-columns: 1fr; }
}
