/*
Theme Name:  EduEcho
Theme URI:   https://eduecho.com
Author:      EduEcho Team
Description: قالب صدى التعليم — منصة تعليمية اجتماعية بتصميم داكن وأنيق مع دعم كامل للغة العربية وإضافة EduEcho
Version:     2.0.0
Text Domain: eduecho-theme
Tags:        rtl-language, dark, education, arabic, custom-menu, featured-images, full-width-template
*/

/* ══════════════════════════════════════════════════════════════
   EDUECHO THEME — MASTER STYLESHEET
   Colour system: Ink Dark + Liquid Gold + Teal Accent
   ══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&family=Markazi+Text:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Ink palette */
  --ink0:  #09111a;
  --ink1:  #0f1923;
  --ink2:  #162230;
  --ink3:  #1c2c3c;
  --ink4:  #243344;

  /* Brand */
  --gold:   #c9a84c;
  --gold2:  #e8c96a;
  --gold3:  rgba(201,168,76,.15);
  --teal:   #24a896;
  --teal2:  rgba(36,168,150,.15);

  /* Text */
  --text:   rgba(255,255,255,.90);
  --text2:  rgba(255,255,255,.60);
  --text3:  rgba(255,255,255,.35);

  /* Borders */
  --bdr:    rgba(255,255,255,.07);
  --bdr2:   rgba(201,168,76,.20);

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  /* Fonts */
  --f-display: 'Markazi Text', 'Cairo', serif;
  --f-body:    'Tajawal', 'Cairo', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink1);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold2); }
p  { margin-bottom: 1.2em; }
h1,h2,h3,h4,h5,h6 { font-family: var(--f-body); font-weight: 800; line-height: 1.25; color: #fff; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink2); }
::-webkit-scrollbar-thumb { background: var(--ink4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */
.site              { display: flex; flex-direction: column; min-height: 100vh; }
.site-content      { flex: 1; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide  { max-width: 1400px; }
.container--narrow{ max-width: 740px; }

/* ── Grid ─────────────────────────────────────────────────── */
.content-area    { flex: 1 1 700px; min-width: 0; }
.widget-area     { flex: 0 0 310px; }
.has-sidebar     { display: flex; gap: 40px; align-items: flex-start; padding: 48px 0; }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(15,25,35,.85);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--bdr);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-branding__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 24px rgba(201,168,76,.25);
  flex-shrink: 0;
}
.site-branding__text {}
.site-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff !important;
  line-height: 1;
}
.site-title:hover { color: var(--gold) !important; }
.site-description {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
}

/* Navigation */
.main-navigation { display: flex; align-items: center; gap: 4px; }
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2) !important;
  border-radius: var(--r-sm);
  transition: all .2s var(--ease);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
  color: #fff !important;
  background: var(--bdr);
}

/* Dropdown */
.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  min-width: 200px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s var(--ease);
  z-index: 300;
  flex-direction: column;
}
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu a { padding: 9px 14px; border-radius: var(--r-sm); font-size: 13px; display: block; }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: var(--bdr);
  border: 1px solid var(--bdr);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 18px;
  align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTIONS
   ══════════════════════════════════════════════════════════ */
.hero {
  background: var(--ink2);
  padding: clamp(64px,10vw,120px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--bdr);
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(36,168,150,.06) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  border-radius: 50%;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 24px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold3); border: 1px solid var(--bdr2);
  color: var(--gold); font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: .5px;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(36px,7vw,72px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title em { color: var(--gold); font-style: normal; }
.hero__subtitle {
  font-size: clamp(16px,2.5vw,20px);
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero (smaller) */
.page-hero {
  background: var(--ink2);
  padding: 48px 0;
  border-bottom: 1px solid var(--bdr);
}
.page-hero__title { font-size: clamp(24px,4vw,40px); margin-bottom: 8px; }
.page-hero__breadcrumb { font-size: 13px; color: var(--text3); }
.page-hero__breadcrumb a { color: var(--text3); }
.page-hero__breadcrumb a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .25s var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), #a07820);
  color: #fff;
  box-shadow: 0 6px 24px rgba(201,168,76,.25);
}
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,.35); color:#fff; }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--bdr2);
  color: var(--gold);
}
.btn--outline:hover { background: var(--gold3); border-color: var(--gold); color: var(--gold); }
.btn--ghost {
  background: var(--bdr);
  color: var(--text2);
  border: 1px solid var(--bdr);
}
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn--teal { background: linear-gradient(135deg, var(--teal), #1a7a6e); color: #fff; }
.btn--sm  { padding: 8px 18px; font-size: 13px; }
.btn--lg  { padding: 16px 36px; font-size: 17px; }
.btn--full { width: 100%; }

/* ══════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--ink2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover {
  border-color: var(--bdr2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__body  { padding: 22px; }
.card__meta  { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card__title { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.card__title a { color: #fff; }
.card__title a:hover { color: var(--gold); }
.card__excerpt { font-size: 14px; color: var(--text2); line-height: 1.65; margin-bottom: 16px; }
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--bdr); }

/* ── Post Grid ────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Featured post ────────────────────────────────────────── */
.post-featured {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
}
.post-featured__bg {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.post-featured__bg img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__content { position: relative; z-index: 1; padding: 40px; }
.post-featured__title { font-size: clamp(24px,4vw,40px); margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════ */
.entry-header { padding: 48px 0 32px; }
.entry-title  { font-size: clamp(26px,4vw,48px); margin-bottom: 20px; }
.entry-meta   { display: flex; gap: 20px; color: var(--text3); font-size: 13px; flex-wrap: wrap; }
.entry-meta a { color: var(--text3); }
.entry-meta a:hover { color: var(--gold); }

.entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,.82);
}
.entry-content h2 { font-size: 26px; margin: 2em 0 .75em; padding-bottom: .5em; border-bottom: 1px solid var(--bdr); }
.entry-content h3 { font-size: 20px; margin: 1.8em 0 .6em; color: var(--gold); }
.entry-content h4 { font-size: 17px; margin: 1.5em 0 .5em; }
.entry-content p  { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol { margin: 0 2em 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a  { color: var(--teal); border-bottom: 1px solid rgba(36,168,150,.3); }
.entry-content a:hover { color: var(--gold); border-color: rgba(201,168,76,.4); }
.entry-content blockquote {
  border-right: 4px solid var(--gold);
  background: var(--gold3);
  padding: 20px 24px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.8em 0;
  font-style: italic;
  color: rgba(255,255,255,.75);
}
.entry-content code {
  background: var(--ink3); color: var(--teal);
  padding: 2px 8px; border-radius: 5px; font-size: .88em;
}
.entry-content pre {
  background: var(--ink0); border: 1px solid var(--bdr);
  padding: 24px; border-radius: var(--r-md); overflow-x: auto;
  margin: 1.8em 0;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; }
.entry-content th { background: var(--ink3); padding: 12px 16px; text-align: right; font-weight: 700; border: 1px solid var(--bdr); }
.entry-content td { padding: 12px 16px; border: 1px solid var(--bdr); color: var(--text2); }
.entry-content img { border-radius: var(--r-md); margin: 1.8em auto; }
.entry-content .wp-caption-text { font-size: 13px; color: var(--text3); text-align: center; margin-top: 8px; }

/* ── Post Thumbnail ───────────────────────────────────────── */
.entry-thumbnail {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/8;
}
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ── Post Navigation ──────────────────────────────────────── */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0;
}
.nav-link {
  background: var(--ink2); border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 18px 22px;
  transition: border-color .2s;
}
.nav-link:hover { border-color: var(--bdr2); }
.nav-link__label { font-size: 11px; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.nav-link__title { font-size: 15px; font-weight: 700; color: #fff; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag-cloud, .entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag-link, .entry-tags a {
  background: var(--bdr); border: 1px solid var(--bdr);
  color: var(--text2); padding: 5px 14px; border-radius: 20px; font-size: 13px;
  transition: all .2s;
}
.tag-link:hover, .entry-tags a:hover { background: var(--gold3); border-color: var(--bdr2); color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   BADGES & LABELS
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.badge--gold  { background: var(--gold3);  color: var(--gold);  border: 1px solid rgba(201,168,76,.25); }
.badge--teal  { background: var(--teal2);  color: var(--teal);  border: 1px solid rgba(36,168,150,.25); }
.badge--red   { background: rgba(192,57,43,.12); color: #e74c3c; border: 1px solid rgba(192,57,43,.25); }
.badge--blue  { background: rgba(100,149,237,.12); color: #6495ed; border: 1px solid rgba(100,149,237,.25); }

/* ══════════════════════════════════════════════════════════
   SIDEBAR & WIDGETS
   ══════════════════════════════════════════════════════════ */
.widget-area { position: sticky; top: 88px; }
.widget {
  background: var(--ink2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bdr);
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--bdr); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--text2); }
.widget ul li a:hover { color: var(--gold); }
/* Search widget */
.widget_search form { display: flex; gap: 8px; }
.widget_search input[type=search] {
  flex: 1; background: var(--ink3); border: 1px solid var(--bdr);
  color: var(--text); padding: 10px 14px; border-radius: var(--r-sm);
  font-family: var(--f-body); outline: none;
}
.widget_search input[type=search]:focus { border-color: var(--gold); }
.widget_search button { background: var(--gold3); border: 1px solid var(--bdr2); color: var(--gold); padding: 10px 14px; border-radius: var(--r-sm); cursor: pointer; font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════════════════════════ */
.comments-area { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--bdr); }
.comments-title { font-size: 22px; margin-bottom: 28px; }
.comment-list   { list-style: none; }
.comment        { padding: 20px 0; border-bottom: 1px solid var(--bdr); }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bdr2); }
.comment-author-name { font-weight: 700; font-size: 15px; }
.comment-meta-date   { font-size: 12px; color: var(--text3); }
.comment-content { font-size: 15px; color: var(--text2); line-height: 1.7; padding-right: 56px; }
.reply-link { font-size: 12px; color: var(--teal); margin-top: 8px; display: inline-block; padding-right: 56px; }

/* Comment form */
.comment-respond { margin-top: 36px; }
.comment-respond h3 { font-size: 20px; margin-bottom: 20px; }
.comment-form-group { margin-bottom: 16px; }
.comment-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.comment-form-group input,
.comment-form-group textarea {
  width: 100%; background: var(--ink3); border: 1px solid var(--bdr);
  color: var(--text); padding: 12px 16px; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: 15px; outline: none;
  transition: border-color .2s;
}
.comment-form-group input:focus,
.comment-form-group textarea:focus { border-color: var(--gold); }
.comment-form-group textarea { min-height: 120px; resize: vertical; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; flex-wrap: wrap; }
.pagination .page-numbers {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink2); border: 1px solid var(--bdr);
  border-radius: var(--r-sm); color: var(--text2); font-size: 14px; font-weight: 700;
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--gold3); border-color: var(--bdr2); color: var(--gold); }
.pagination .page-numbers.dots { background: none; border: none; cursor: default; }

/* ══════════════════════════════════════════════════════════
   FORMS (generic WP forms)
   ══════════════════════════════════════════════════════════ */
input[type=text],input[type=email],input[type=password],
input[type=search],input[type=url],textarea,select {
  background: var(--ink3); border: 1px solid var(--bdr);
  color: var(--text); padding: 12px 16px; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: 15px;
  width: 100%; outline: none; transition: border-color .2s;
}
input:focus,textarea:focus,select:focus { border-color: var(--gold); }
select option { background: var(--ink3); }
label { display: block; font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink0);
  border-top: 1px solid var(--bdr);
  padding: 60px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--text3); line-height: 1.8; margin-top: 14px; }
.footer-widget-title {
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--bdr);
}
.footer-links { list-style: none; }
.footer-links li { padding: 6px 0; }
.footer-links a { font-size: 14px; color: var(--text3); }
.footer-links a:hover { color: var(--gold); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--bdr);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text3); margin: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bdr); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 15px;
  transition: all .2s;
}
.footer-social a:hover { background: var(--gold3); border-color: var(--bdr2); color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   NOTICE / ALERT BARS
   ══════════════════════════════════════════════════════════ */
.notice {
  padding: 14px 20px; border-radius: var(--r-md);
  font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.notice--info    { background: rgba(100,149,237,.1); border: 1px solid rgba(100,149,237,.25); color: #6495ed; }
.notice--success { background: rgba(46,204,113,.1);  border: 1px solid rgba(46,204,113,.25);  color: #2ecc71; }
.notice--warning { background: rgba(241,196,15,.1);  border: 1px solid rgba(241,196,15,.25);  color: #f1c40f; }
.notice--error   { background: rgba(231,76,60,.1);   border: 1px solid rgba(231,76,60,.25);   color: #e74c3c; }

/* ══════════════════════════════════════════════════════════
   SECTION UTILITIES
   ══════════════════════════════════════════════════════════ */
.section         { padding: 72px 0; }
.section--sm     { padding: 40px 0; }
.section--lg     { padding: 100px 0; }
.section--dark   { background: var(--ink0); }
.section--card   { background: var(--ink2); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.section-header  { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-tag     { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title   { font-size: clamp(26px,4vw,44px); margin-bottom: 16px; }
.section-lead    { font-size: 17px; color: var(--text2); line-height: 1.7; }

/* Divider */
.divider { height: 1px; background: var(--bdr); margin: 48px 0; }

/* ══════════════════════════════════════════════════════════
   FEATURE / STATS BLOCKS
   ══════════════════════════════════════════════════════════ */
.features-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.feature-card {
  background: var(--ink2); border: 1px solid var(--bdr);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, transform .2s var(--ease);
}
.feature-card:hover { border-color: var(--bdr2); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--gold3); border: 1px solid var(--bdr2);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-text  { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* Stats row */
.stats-row     { display: flex; gap: 0; border: 1px solid var(--bdr); border-radius: var(--r-lg); overflow: hidden; }
.stat-item     { flex: 1; padding: 28px 20px; text-align: center; border-right: 1px solid var(--bdr); }
.stat-item:last-child { border-right: none; }
.stat-item:first-child { border-right: none; border-left: 1px solid var(--bdr); }
.stat-number   { font-family: var(--f-display); font-size: 48px; font-weight: 600; color: var(--gold); line-height: 1; }
.stat-label    { font-size: 13px; color: var(--text3); margin-top: 6px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .has-sidebar { flex-direction: column; }
  .widget-area { position: static; flex: 1 1 auto; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation { display: none; position: fixed; inset: 68px 0 0 0; background: rgba(9,17,26,.97); padding: 24px; overflow-y: auto; flex-direction: column; align-items: flex-start; z-index: 190; }
  .main-navigation.is-open { display: flex; }
  .main-navigation ul { flex-direction: column; width: 100%; gap: 4px; }
  .main-navigation a { font-size: 18px; padding: 12px 16px; }
  .main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--ink3); padding: 0 0 0 16px; }
  .header-cta .btn:not(.btn--primary) { display: none; }
  .footer-grid   { grid-template-columns: 1fr; }
  .stats-row     { flex-direction: column; }
  .stat-item     { border-right: none; border-left: none; border-bottom: 1px solid var(--bdr); }
  .stat-item:last-child { border-bottom: none; }
  .posts-grid    { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
  .entry-content h2 { font-size: 22px; }
  .section { padding: 48px 0; }
}

/* ══════════════════════════════════════════════════════════
   WP CORE CLASSES
   ══════════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-quote    { border-right: 4px solid var(--gold); background: var(--gold3); padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.wp-block-separator { border: none; border-top: 1px solid var(--bdr); margin: 40px 0; }
.wp-block-button .wp-block-button__link { background: linear-gradient(135deg,var(--gold),#a07820) !important; border-radius: var(--r-md) !important; font-family: var(--f-body) !important; }
.alignleft  { float: right; margin: 0 0 20px 24px; }
.alignright { float: left;  margin: 0 24px 20px 0; }
.aligncenter { margin: 0 auto 20px; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
