/*
 * style-article.css — M2TEC Blog Theme
 *
 * Design tokens, componentes reutilizables y estilos prose para
 * el contenido generado por WordPress (the_content()).
 *
 * Complementa Tailwind CDN con:
 *  - CSS Custom Properties (design tokens)
 *  - Clases de componente que Tailwind no puede generar dinámicamente
 *  - Estilos prose para .entry-content (h2, h3, p, ul, blockquote, table...)
 *  - Clases de WP (alignleft, alignright, wp-caption)
 *  - Widgets del sidebar
 *  - Scrollbar personalizado
 */

/* ════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════ */
:root {
  --m2-bg:           #080f1a;
  --m2-surface-1:    #0d1d2e;
  --m2-surface-2:    #132940;
  --m2-surface-3:    #1a3655;
  --m2-accent:       #7DC142;
  --m2-accent-light: #9DD862;
  --m2-accent-dark:  #5fa030;
  --m2-text:         #e8eef4;
  --m2-text-75:      rgba(232,238,244,0.75);
  --m2-text-50:      rgba(232,238,244,0.50);
  --m2-text-30:      rgba(232,238,244,0.30);
  --m2-border:       rgba(125,193,66,0.12);
  --m2-border-hover: rgba(125,193,66,0.45);
  --m2-card-radius:  1rem;
  --font-display:    'Exo 2', sans-serif;
  --font-body:       'DM Sans', sans-serif;
}

/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--m2-bg);
  color: var(--m2-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--m2-surface-1); }
::-webkit-scrollbar-thumb { background: var(--m2-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--m2-accent-light); }

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

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--m2-text-75);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--m2-accent);
  transition: width 0.25s ease;
}

.nav-link:hover { color: var(--m2-text); }
.nav-link:hover::after,
.nav-link--active::after { width: 100%; }
.nav-link--active { color: var(--m2-text); }
.nav-link:focus-visible { outline: 1px dashed var(--m2-accent); outline-offset: 4px; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--m2-accent) 0%, var(--m2-accent-light) 100%);
  color: var(--m2-surface-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.875rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 20px rgba(125,193,66,0.3), 0 1px 0 rgba(255,255,255,0.1) inset;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(125,193,66,0.45);
  opacity: 0.95;
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--m2-accent); outline-offset: 3px; }

.btn-primary--sm { font-size: 0.8125rem; padding: 0.55rem 1.25rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--m2-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.875rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: rgba(125,193,66,0.6);
  color: var(--m2-accent-light);
  background: rgba(125,193,66,0.05);
}

/* ════════════════════════════════════════
   BLOG TAG
════════════════════════════════════════ */
.blog-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m2-accent);
  background: rgba(125,193,66,0.1);
  border: 1px solid rgba(125,193,66,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blog-tag:hover {
  background: rgba(125,193,66,0.18);
  border-color: rgba(125,193,66,0.4);
  color: var(--m2-accent-light);
}

/* ════════════════════════════════════════
   SECTION DIVIDER
════════════════════════════════════════ */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,193,66,0.2), transparent);
}

/* ════════════════════════════════════════
   READ MORE
════════════════════════════════════════ */
.read-more {
  color: var(--m2-accent);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.read-more:hover { color: var(--m2-accent-light); gap: 0.6rem; }
.read-more:focus-visible { outline: 1px dashed var(--m2-accent); outline-offset: 3px; }

/* ════════════════════════════════════════
   BLOG CARDS
════════════════════════════════════════ */
.blog-card {
  background: linear-gradient(160deg, var(--m2-surface-1) 0%, rgba(19,41,64,0.7) 100%);
  border: 1px solid var(--m2-border);
  border-radius: var(--m2-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  border-color: var(--m2-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 30px rgba(125,193,66,0.07);
}

.blog-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }

.blog-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.5) 0%, transparent 60%);
}

.blog-card-thumb-tag { position: absolute; top: 0.875rem; left: 0.875rem; }

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
}

.blog-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--m2-text);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title { color: var(--m2-accent-light); }

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--m2-text-50);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78125rem;
  color: var(--m2-text-50);
}

.blog-card-meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--m2-text-50);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   HERO POST (featured)
════════════════════════════════════════ */
.hero-post {
  position: relative;
  border-radius: var(--m2-card-radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.hero-post-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-post:hover .hero-post-img { transform: scale(1.03); }

.hero-post-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,15,26,0.97) 0%, rgba(8,15,26,0.65) 50%, rgba(8,15,26,0.1) 100%);
}

.hero-post-content {
  position: relative; z-index: 1;
  padding: 2.5rem; width: 100%;
}

.hero-post-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.hero-post-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.875rem;
  max-width: 640px;
  transition: color 0.2s;
}

.hero-post:hover .hero-post-title { color: var(--m2-accent-light); }

.hero-post-excerpt {
  font-size: 0.9375rem;
  color: rgba(232,238,244,0.65);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(232,238,244,0.45);
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   LAYOUT: BLOG GRID + SIDEBAR
════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 3rem;
}

@media (min-width: 1024px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding-inline: 0.5rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(232,238,244,0.5);
  background: var(--m2-surface-1);
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  border-color: rgba(125,193,66,0.35);
  color: var(--m2-accent);
  background: rgba(125,193,66,0.06);
}

.pagination .page-numbers.current {
  background: var(--m2-accent);
  color: var(--m2-surface-1);
  border-color: var(--m2-accent);
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
  color: rgba(232,238,244,0.2);
}

/* ════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--m2-text-30);
  flex-wrap: wrap;
  padding: 1.25rem 0 0.5rem;
}

.breadcrumb a { color: var(--m2-text-30); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--m2-accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.15); font-size: 0.75rem; }
.breadcrumb-current { color: var(--m2-text-75); }

/* ════════════════════════════════════════
   SECTION HEADING
════════════════════════════════════════ */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap; gap: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--m2-text);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 2.5rem; height: 3px;
  background: linear-gradient(90deg, var(--m2-accent), transparent);
  border-radius: 2px;
}

.section-count { font-size: 0.8125rem; color: var(--m2-text-30); }

/* ════════════════════════════════════════
   SINGLE ARTICLE
════════════════════════════════════════ */
.single-header { padding-block: 2.5rem 0; }

.single-hero {
  position: relative;
  border-radius: var(--m2-card-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
}

.single-hero img { width: 100%; height: 100%; object-fit: cover; }

.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(8,15,26,0.6) 100%);
}

.single-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--m2-text);
  margin-bottom: 1rem;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--m2-text-50);
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.single-meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ════════════════════════════════════════
   ENTRY CONTENT (prose generada por WP)
════════════════════════════════════════ */
.entry-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--m2-text-75);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--m2-text);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.entry-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.625rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(125,193,66,0.15);
}

.entry-content h3 { font-size: clamp(1.1rem, 2vw, 1.3125rem); }
.entry-content h4 { font-size: 1.0625rem; }
.entry-content h5 { font-size: 1rem; }
.entry-content h6 { font-size: 0.9375rem; }

.entry-content p { margin-bottom: 1.5rem; }
.entry-content p:last-child { margin-bottom: 0; }

.entry-content a {
  color: var(--m2-accent);
  text-decoration: underline;
  text-decoration-color: rgba(125,193,66,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.entry-content a:hover {
  color: var(--m2-accent-light);
  text-decoration-color: var(--m2-accent-light);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
  margin-bottom: 0.5rem;
  color: var(--m2-text-75);
}

.entry-content li::marker { color: var(--m2-accent); }

.entry-content blockquote {
  border-left: 3px solid var(--m2-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(125,193,66,0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--m2-text-75);
}

.entry-content strong { font-weight: 700; color: var(--m2-text); }
.entry-content em { font-style: italic; }

.entry-content hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,193,66,0.2), transparent);
  border: none;
  margin: 2.5rem 0;
}

.entry-content img {
  border-radius: 8px;
  margin: 2rem auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(125,193,66,0.08);
}

.entry-content figure { margin: 2rem 0; }

.entry-content figcaption {
  font-size: 0.8125rem;
  color: var(--m2-text-30);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.entry-content table th {
  background: var(--m2-surface-2);
  color: var(--m2-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(125,193,66,0.2);
  white-space: nowrap;
}

.entry-content table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--m2-text-75);
}

.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* Code */
.entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--m2-accent-light);
}

.entry-content pre {
  background: var(--m2-surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

/* ════════════════════════════════════════
   POST TAGS
════════════════════════════════════════ */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.post-tags-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m2-text-30);
}

/* ════════════════════════════════════════
   AUTHOR BOX
════════════════════════════════════════ */
.author-box {
  background: var(--m2-surface-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--m2-card-radius);
  padding: 1.75rem;
  margin-top: 3rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(125,193,66,0.2);
}

.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--m2-text);
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--m2-accent);
  margin-bottom: 0.5rem;
}

.author-bio { font-size: 0.875rem; color: var(--m2-text-50); line-height: 1.6; }

/* ════════════════════════════════════════
   RELATED POSTS
════════════════════════════════════════ */
.related-posts { margin-top: 4rem; }

.related-posts-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--m2-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ════════════════════════════════════════
   ARCHIVE HEADER
════════════════════════════════════════ */
.archive-header {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.archive-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m2-accent);
  margin-bottom: 0.5rem;
}

.archive-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--m2-text);
  margin-bottom: 0.75rem;
}

.archive-desc {
  font-size: 1rem;
  color: var(--m2-text-50);
  max-width: 600px;
  line-height: 1.65;
}

/* ════════════════════════════════════════
   404 PAGE
════════════════════════════════════════ */
.error-404 { text-align: center; padding-block: 6rem; }

.error-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 9rem);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--m2-accent) 0%, rgba(125,193,66,0.2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--m2-text);
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1rem;
  color: var(--m2-text-50);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════
   SIDEBAR & WIDGETS
════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--m2-surface-1);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--m2-card-radius);
  padding: 1.5rem;
}

.widget-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m2-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(125,193,66,0.15);
}

/* Category list */
.widget_categories ul { list-style: none; padding: 0; margin: 0; }
.widget_categories li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
  color: var(--m2-text-75);
  transition: color 0.2s;
}
.widget_categories li:last-child { border-bottom: none; }
.widget_categories li:hover { color: var(--m2-text); }
.widget_categories a { color: inherit; transition: color 0.2s; }
.widget_categories a:hover { color: var(--m2-accent-light); }
.widget_categories .count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--m2-accent);
  background: rgba(125,193,66,0.1);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  flex-shrink: 0;
}

/* Recent posts */
.widget_recent_entries ul { list-style: none; padding: 0; margin: 0; }
.widget_recent_entries li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: opacity 0.2s;
}
.widget_recent_entries li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_recent_entries li:first-child { padding-top: 0; }
.widget_recent_entries li:hover { opacity: 0.85; }
.widget_recent_entries a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--m2-text-75);
  line-height: 1.35;
  transition: color 0.2s;
  display: block;
}
.widget_recent_entries a:hover { color: var(--m2-accent-light); }
.widget_recent_entries .post-date {
  display: block;
  font-size: 0.7rem;
  color: var(--m2-text-30);
  margin-top: 0.25rem;
}

.recent-thumb {
  width: 64px; height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Tag cloud */
.widget_tag_cloud .tagcloud {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.widget_tag_cloud .tag-cloud-link {
  display: inline-block;
  font-size: 0.7rem !important;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: rgba(232,238,244,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.widget_tag_cloud .tag-cloud-link:hover {
  background: rgba(125,193,66,0.1);
  color: var(--m2-accent);
  border-color: rgba(125,193,66,0.2);
}

/* Search widget */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search .search-field {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0.6rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--m2-text);
  outline: none;
  transition: border-color 0.2s;
}
.widget_search .search-field:focus { border-color: rgba(125,193,66,0.35); }
.widget_search .search-field::placeholder { color: rgba(232,238,244,0.2); }
.widget_search .search-submit {
  background: linear-gradient(135deg, var(--m2-accent), var(--m2-accent-light));
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 1rem;
  cursor: pointer;
  color: var(--m2-surface-1);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: opacity 0.2s;
}
.widget_search .search-submit:hover { opacity: 0.85; }

/* Newsletter widget */
.widget-newsletter {
  background: linear-gradient(135deg, #0d2548 0%, var(--m2-surface-2) 100%);
  border: 1px solid rgba(125,193,66,0.15);
  position: relative;
  overflow: hidden;
}

.widget-newsletter::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,193,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-desc {
  font-size: 0.8125rem;
  color: var(--m2-text-50);
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.625rem; position: relative; }

.newsletter-input {
  background: rgba(8,15,26,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--m2-text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.newsletter-input:focus { border-color: rgba(125,193,66,0.4); }
.newsletter-input::placeholder { color: rgba(232,238,244,0.2); }

.newsletter-note {
  font-size: 0.6875rem;
  color: rgba(232,238,244,0.25);
  line-height: 1.5;
  margin-top: 0.25rem;
  position: relative;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer { background: #04090f; border-top: 1px solid rgba(255,255,255,0.05); }

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m2-accent);
  margin-bottom: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(232,238,244,0.3);
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(232,238,244,0.65); }

.social-link {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(232,238,244,0.35);
  transition: all 0.2s;
}
.social-link:hover {
  background: rgba(125,193,66,0.1);
  border-color: rgba(125,193,66,0.25);
  color: var(--m2-accent);
}

/* ════════════════════════════════════════
   WP ALIGNMENT CLASSES
════════════════════════════════════════ */
.alignleft   { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.7s ease forwards; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.45s ease both; }

/* ════════════════════════════════════════
   SCREEN READER / A11Y
════════════════════════════════════════ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}
.screen-reader-text:focus {
  background: var(--m2-surface-1);
  clip: auto; display: block;
  font-size: 0.875rem; font-weight: 600;
  height: auto; left: 5px; padding: 1rem 1.5rem; top: 5px;
  width: auto; z-index: 999;
  border-radius: 6px; color: var(--m2-text);
  outline: 2px solid var(--m2-accent);
}
