/*
Theme Name: Lex Arca Legal Vault
Theme URI: https://lex-arca.com
Author: Lex Arca
Author URI: https://lex-arca.com
Description: The Legal Vault — insider resource for attorneys and law firms. Dark, authoritative design for legal intelligence publishing.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lex-arca
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --bg-primary:     #07070f;
  --bg-secondary:   #0c0c18;
  --bg-card:        #0f0f1e;
  --bg-card-hover:  #141428;
  --border:         #1e1e3a;
  --border-light:   #2a2a4a;
  --gold:           #c9a84c;
  --gold-light:     #e0be72;
  --gold-dim:       #8a6f2e;
  --text-primary:   #eaeaf4;
  --text-secondary: #9090b0;
  --text-muted:     #555570;
  --accent-blue:    #3b6fd4;
  --accent-blue-light: #5585e8;
  --white:          #ffffff;
  --hero-overlay:   rgba(7, 7, 15, 0.72);
  --font-display:   'Cinzel', serif;
  --font-body:      'Lora', serif;
  --font-ui:        'Jost', sans-serif;
  --radius:         4px;
  --radius-lg:      8px;
  --transition:     all 0.25s ease;
  --shadow-card:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold:    0 0 24px rgba(201,168,76,0.15);
  --max-width:      1100px;
  --max-width-post: 740px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: var(--transition); }

ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }

strong { color: var(--text-primary); font-weight: 700; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--post {
  max-width: var(--max-width-post);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.articles-section .section-label {
  color: var(--gold-dim);
}

.articles-section .section-label::after {
  background: #d0c8a0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #070710;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.btn--dark {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--dark:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: var(--bg-card-hover);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn--outline:hover {
  background: var(--gold);
  color: #070710;
}

.btn--cta {
  background: var(--gold);
  color: #070710;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  border-radius: 2px;
}
.btn--cta:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ============================================
   HEADER / SITE NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(7, 7, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo__icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-logo__tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.site-nav a:hover { color: var(--gold); }

.site-nav .btn--gold {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
  color: #111111 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
  margin-top: 68px;
}

/* Background image layer — set via Customizer or inline style */
.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay — 75% opacity over the hero image */
.hero__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.75);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59,111,212,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px rgba(201,168,76,0.2);
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.25s;
}

.hero__form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.hero__form input {
  flex: 1;
  background: #ffffff;
  border: none;
  outline: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #111111;
}

.hero__form input::placeholder {
  color: #888888;
}

.hero__form button {
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: #070710;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  white-space: nowrap;
}

.hero__form button:hover {
  background: var(--gold-light);
}

.hero__divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  z-index: 3;
}

/* ============================================
   ARTICLE LISTING — INDEX PAGE
   ============================================ */
.articles-section {
  padding: 4rem 0 6rem;
  background: #f5f4f0;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Article Card */
.article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e0e0e8;
  border-bottom: none;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.article-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.article-card:last-child  { border-bottom: 1px solid #e0e0e8; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.article-card:only-child  { border-radius: var(--radius-lg); border-bottom: 1px solid #e0e0e8; }

.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
}

.article-card:hover {
  background: #f9f8f4;
  border-color: #d0c8a0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-card:hover::before { opacity: 1; }

.article-card__thumb {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 140px;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

.article-card__thumb--placeholder {
  background: linear-gradient(135deg, #e8e6df 0%, #d4cfc0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 1.5rem;
  max-height: 140px;
}

.article-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.article-card__date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #888888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.article-card:hover .article-card__title {
  color: var(--gold-dim);
}

.article-card__excerpt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #555555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111111;
  background: #f0efe8;
  border: 1px solid #d0c8a0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  margin-top: 0.25rem;
  align-self: flex-start;
  transition: var(--transition);
  text-decoration: none;
}

.article-card__link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.article-card__link svg {
  transition: transform 0.2s;
}

.article-card:hover .article-card__link svg {
  transform: translateX(3px);
}

/* ============================================
   CTA BANNER — SUBSCRIBE / DEMO
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #0c0c1e 0%, #10102a 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Background image layer — set via Customizer */
.cta-banner__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  border-radius: var(--radius-lg);
}

/* 75% dark overlay — matches hero */
.cta-banner__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.75);
  border-radius: var(--radius-lg);
}

/* Gold top-line accent */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}

/* All inner content must sit above the image overlay */
.cta-banner__inner {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.cta-banner__form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.cta-banner__form input {
  flex: 1;
  background: #ffffff;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #111111;
}

.cta-banner__form input::placeholder { color: #888888; }

.cta-banner__form button {
  padding: 0.8rem 1.4rem;
  background: var(--gold);
  color: #070710;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.cta-banner__form button:hover { background: var(--gold-light); }

/* ============================================
   SINGLE POST
   ============================================ */
.post-wrap {
  padding-top: calc(68px + 3rem);
  padding-bottom: 6rem;
}

.post-header {
  max-width: var(--max-width-post);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #a0a0c0;
  margin-bottom: 2rem;
}

.post-breadcrumb a { color: #a0a0c0; }
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb span { color: #a0a0c0; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.post-meta__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: #070710;
  font-weight: 700;
  overflow: hidden;
}

.post-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta__name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #d8d8ec;
  font-weight: 600;
}

.post-meta__sep { color: var(--border-light); }

.post-meta__date,
.post-meta__read {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #a0a0c0;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.post-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #b0b0cc;
  line-height: 1.6;
  margin-bottom: 0;
}

.post-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.post-share a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.post-share a:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* Post Featured Image */
.post-featured-image {
  max-width: var(--max-width-post);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.post-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Post Content */
.post-content {
  max-width: var(--max-width-post);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d8d8ec;
}

.post-content p { margin-bottom: 1.5rem; color: #d8d8ec; }
.post-content p:first-child { color: #eaeaf4; font-size: 1.1rem; }

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 2rem 0 0.75rem;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #eaeaf4;
  margin: 1.5rem 0 0.5rem;
}

.post-content strong { color: var(--white); font-weight: 700; }

.post-content em { color: #d8d8ec; }

.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--gold-light); }

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #d8d8ec;
}

.post-content li { margin-bottom: 0.5rem; color: #d8d8ec; }

.post-content img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem auto;
  width: 100%;
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Pull Quote */
.pull-quote {
  font-style: italic;
  color: var(--gold-light) !important;
  font-size: 1.05rem !important;
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Post CTA */
.post-cta {
  max-width: var(--max-width-post);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e8e8f0;
}

.post-cta a.btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   RELATED POSTS (Keep Reading)
   ============================================ */
.related-posts {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding: 3rem 1.5rem 0;
  border-top: 1px solid var(--border);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-card {
  background: #ffffff;
  border: 1px solid #e0e0e8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.related-card:hover {
  border-color: #d0c8a0;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  background: #f9f8f4;
}

.related-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.related-card:hover .related-card__thumb img {
  transform: scale(1.04);
}

.related-card__thumb--placeholder {
  background: linear-gradient(135deg, #e8e6df 0%, #d4cfc0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-size: 2rem;
  font-family: var(--font-display);
}

.related-card__body {
  padding: 1.25rem;
}

.related-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.related-card__date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #888888;
}

.related-card__read {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #888888;
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.related-card:hover .related-card__title { color: var(--gold-dim); }

.related-card__excerpt {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #555555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.related-card__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: #070710;
  font-weight: 700;
  overflow: hidden;
}

.related-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.related-card__author-name {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: #666666;
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2rem;
  transition: var(--transition);
}

.view-more-link:hover { color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #060610;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* Footer background image — set via Customizer */
.site-footer__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.site-footer__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 16, 0.82);
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand__icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand__desc {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #c0bfd8;
  line-height: 1.65;
  max-width: 260px;
  margin: 0;
}

.footer-col__title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col__links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #c0bfd8;
  transition: var(--transition);
}

.footer-col__links a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0bfd8;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: #c0bfd8;
  margin: 0;
}

.site-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom-links a {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: #c0bfd8;
  transition: var(--transition);
}

.site-footer__bottom-links a:hover { color: var(--gold); }

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.form-success {
  display: none;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gold-light);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination ul.page-numbers li {
  display: flex;
  margin: 0;
  padding: 0;
}

.pagination ul.page-numbers li a,
.pagination ul.page-numbers li span {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.pagination ul.page-numbers li a:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.pagination ul.page-numbers li span.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #070710;
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .site-header__inner { gap: 1rem; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(7,7,15,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
  }
  .site-nav.is-open a { padding: 0.6rem 0; }

  .nav-toggle { display: block; }

  .article-card {
    grid-template-columns: 110px 1fr;
  }

  .article-card__thumb { max-height: 110px; }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .site-footer__bottom { flex-direction: column; text-align: center; }

  .related-posts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card__thumb {
    max-height: 180px;
    aspect-ratio: 16/7;
  }

  .hero__form {
    flex-direction: column;
    background: none;
    border: none;
    gap: 0.75rem;
  }

  .hero__form input {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: rgba(15,15,30,0.8);
    padding: 0.85rem 1.25rem;
  }

  .hero__form button {
    border-radius: var(--radius);
    padding: 0.85rem;
    width: 100%;
  }

  .site-footer__grid { grid-template-columns: 1fr; }
}
