/* ============================================================
   IsraelLaw.info2 — Design System
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root {
  --primary:       #1c1d4c;
  --primary-light: #2e3080;
  --secondary:     #4040ca;
  --accent:        #d4a840;
  --accent-dark:   #b8892a;
  --bg:            #f9fafb;
  --card:          #ffffff;
  --border:        #e5e7eb;
  --text:          #111827;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;

  /* Area colors */
  --inheritance:    #4040ca;
  --real-estate:    #0d9488;
  --family-law:     #be185d;
  --debt-collection:#b45309;
  --corporate:      #1d4ed8;
  --tax:            #0369a1;
  --arbitration:    #7c3aed;
  --immigration:    #059669;

  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Merriweather', Georgia, serif;

  --radius:    0.5rem;
  --radius-lg: 0.75rem;
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  --max-w: 1200px;
  --header-h: 68px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-white  { color: #fff; }
.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }
.section--dark { background: var(--primary); }
.section--gray { background: #f3f4f6; }
.section--accent-tint { background: rgba(212,168,64,0.06); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.max-w-xl { max-width: 640px; }
.max-w-2xl { max-width: 768px; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn--primary {
  background: var(--accent);
  color: var(--primary);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn--outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline-dark:hover { background: var(--primary); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--accent-dark); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.logo span { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: default; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 0;
  font-size: 0.875rem;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); max-width: 700px; line-height: 1.6; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); white-space: nowrap; }

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(64,64,202,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 660px; }
.hero-content .overline { color: var(--accent); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p.lead { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

/* Category hero variants */
.hero--inheritance  { background: linear-gradient(135deg, #1c1d4c 0%, #2a2b7a 100%); }
.hero--real-estate  { background: linear-gradient(135deg, #0c3a38 0%, #0d9488 100%); }
.hero--family-law   { background: linear-gradient(135deg, #3b0a22 0%, #be185d 100%); }
.hero--debt-collection { background: linear-gradient(135deg, #3b1a00 0%, #b45309 100%); }
.hero--corporate    { background: linear-gradient(135deg, #0a1f4b 0%, #1d4ed8 100%); }
.hero--tax          { background: linear-gradient(135deg, #012942 0%, #0369a1 100%); }
.hero--arbitration  { background: linear-gradient(135deg, #1e0a40 0%, #7c3aed 100%); }
.hero--immigration  { background: linear-gradient(135deg, #022a1a 0%, #059669 100%); }

/* --- Trust Bar --------------------------------------------- */
.trust-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.trust-stat-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.trust-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* --- Section Headers --------------------------------------- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* --- Cards ------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card--area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}
.card--area:hover { border-color: rgba(64,64,202,0.3); }
.area-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.card--area h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.card--area p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.card--area .arrow { margin-top: auto; font-size: 0.85rem; font-weight: 600; }

/* Article card */
.article-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.article-card:hover { border-color: rgba(64,64,202,0.3); }
.area-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article-card h3 { font-size: 1rem; line-height: 1.4; }
.article-card h3 a:hover { color: var(--secondary); }
.article-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.55; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-light); flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* Why card */
.why-card { padding: 2rem; text-align: center; }
.why-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.875rem; color: var(--text-muted); }

/* --- Featured guide box ------------------------------------ */
.featured-guide {
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  background: rgba(212,168,64,0.04);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.featured-guide-icon { font-size: 3rem; flex-shrink: 0; }
.featured-guide-body { flex: 1; min-width: 240px; }
.featured-guide-body .overline { color: var(--accent); }
.featured-guide-body h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.featured-guide-body p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.guide-meta { display: flex; gap: 1.25rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.5rem; flex-wrap: wrap; }
.guide-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- CTA Section ------------------------------------------ */
.cta-section {
  background: var(--primary);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2.5rem; }
.cta-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.cta-checks span { display: flex; align-items: center; gap: 0.4rem; }
.cta-checks span::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* --- CTA Banner (inline) ----------------------------------- */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-banner h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.25rem; }
.cta-banner p  { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 1rem 0;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-light); }

/* --- Category hero inner ----------------------------------- */
.area-hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.area-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.area-hero .container { position: relative; z-index: 1; }
.area-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.area-hero .lead { color: rgba(255,255,255,0.78); margin-bottom: 2rem; font-size: 1.05rem; }

/* Sub-topics grid */
.subtopic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.subtopic-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.subtopic-item:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.subtopic-item::before { content: '→'; color: var(--secondary); font-weight: 700; }

/* --- FAQ --------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 0.5rem; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  text-align: left;
  background: none;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg); }
.faq-q .faq-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.5rem 1.25rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- Blog page -------------------------------------------- */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.blog-search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}
.blog-search-bar input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.blog-search-bar input:focus { border-color: var(--secondary); }
.blog-search-bar .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover  { border-color: var(--secondary); color: var(--secondary); }
.filter-tab.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.no-results { padding: 3rem; text-align: center; color: var(--text-muted); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover   { border-color: var(--secondary); color: var(--secondary); }
.page-btn.active  { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Blog sidebar */
.blog-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }

/* --- Article page ----------------------------------------- */
.article-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

.article-body { font-size: 1rem; line-height: 1.8; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body strong { color: var(--primary); }
.article-body a { color: var(--secondary); text-decoration: underline; }
.article-body a:hover { color: var(--primary); }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: rgba(212,168,64,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* Table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; font-family: var(--font-sans); }
.toc-list { display: flex; flex-direction: column; gap: 0.25rem; }
.toc-list a {
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--secondary); border-left-color: var(--secondary); background: rgba(64,64,202,0.05); }
.toc-list a.active { color: var(--secondary); border-left-color: var(--secondary); background: rgba(64,64,202,0.07); }

/* Related articles block */
.related-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 3rem;
}
.related-block h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.related-list { display: flex; flex-direction: column; gap: 0; }
.related-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}
.related-list a:last-child { border-bottom: none; }
.related-list a:hover { color: var(--secondary); }
.related-list a::before { content: '→'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.author-box-info { flex: 1; min-width: 200px; }
.author-box-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.author-box-info .role { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.author-box-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* --- Forms ------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.form-input, .form-select, .form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(64,64,202,0.12);
}
.form-input.error, .form-select.error, .form-textarea.error { border-color: #dc2626; }
.form-error { font-size: 0.775rem; color: #dc2626; }
.form-textarea { min-height: 130px; resize: vertical; }
.form-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}
.form-success.show { display: block; }

/* --- Ad Slots --------------------------------------------- */
.ad-slot {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}
.ad-slot--banner  { width: 100%; height: 90px; margin: 1.5rem 0; }
.ad-slot--rect    { width: 100%; height: 250px; margin: 1.5rem 0; }
.ad-slot--sidebar { width: 100%; min-height: 250px; }

/* --- About page ------------------------------------------- */
.lawyer-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.lawyer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.lawyer-info { flex: 1; min-width: 220px; }
.lawyer-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.lawyer-creds { display: flex; flex-direction: column; gap: 0.35rem; margin: 1rem 0; }
.lawyer-creds span { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.5rem; }
.lawyer-creds span::before { content: '✓'; color: var(--accent); flex-shrink: 0; font-weight: 700; }

.cta-box {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h3 { color: var(--primary); font-size: 1.35rem; margin-bottom: 0.75rem; }
.cta-box p  { color: rgba(28,29,76,0.75); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* --- Contact page ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* --- Back to top ------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 800;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); transform: translateY(-2px); }

/* --- Utilities -------------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(64,64,202,0.08);
  color: var(--secondary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.reading-time { font-size: 0.775rem; color: var(--text-light); }

/* Highlight box */
.highlight-box {
  background: rgba(64,64,202,0.06);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* === Responsive =========================================== */
@media (max-width: 1024px) {
  .grid-4, .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-areas { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 2rem; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .nav-right .btn { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-areas { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured-guide { flex-direction: column; }
  .articles-grid { grid-template-columns: 1fr; }
  .subtopic-grid { grid-template-columns: 1fr; }
  .lawyer-card { flex-direction: column; align-items: center; text-align: center; }
  .author-box  { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
}
@media (max-width: 480px) {
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-group { flex-direction: column; }
}
