/*
Theme Name: 2SS Academy
Theme URI: https://2sscompany.com.br
Author: 2SS Company
Author URI: https://2sscompany.com.br
Description: Tema oficial da 2SS Academy — Conhecimento que transforma profissionais em referência na Segurança do Trabalho.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 2ss-academy
Tags: dark, green, responsive, sst, workplace-safety, custom-menu, custom-logo, featured-images, theme-options
*/

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

:root {
  --green:        #5DC800;
  --green-dark:   #3a8a00;
  --green-glow:   rgba(93,200,0,0.18);
  --bg:           #0d0d0d;
  --bg-card:      #141414;
  --bg-card2:     #1a1a1a;
  --text:         #ffffff;
  --text-muted:   #a0a0a0;
  --border:       rgba(93,200,0,0.25);
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --transition:   0.25s ease;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Barlow', 'Inter', sans-serif;
  --container:    1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.85; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #000;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); opacity: 1; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); opacity: 1; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }
.btn svg, .btn .btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.6); }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; max-width: var(--container); margin: 0 auto;
}

.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  font-family: var(--font-heading);
}
.site-logo .logo-text span { color: var(--green); }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: all var(--transition); position: relative;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--text); background: var(--green-glow); opacity: 1;
}

.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--text);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: currentColor; margin: 5px 0;
  transition: all var(--transition); border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  min-height: 90vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #0f1f0a 100%);
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18; mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.95) 40%, rgba(13,13,13,0.4) 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 80px 20px; max-width: var(--container); margin: 0 auto; width: 100%;
}

.hero-badge {
  display: inline-block; background: var(--green-glow);
  border: 1px solid var(--border); color: var(--green);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1;
  color: var(--text); margin-bottom: 16px;
}
.hero-title .accent { color: var(--green); display: block; }
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 460px; margin-bottom: 12px; font-weight: 500; line-height: 1.5;
}
.hero-tagline {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-initiative {
  margin-top: 24px; font-size: 0.82rem; color: var(--text-muted);
}
.hero-initiative a { color: var(--green); font-weight: 600; }

.hero-visuals {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; position: relative;
}
.hero-book {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--transition);
  box-shadow: var(--shadow);
}
.hero-book:hover { transform: translateY(-6px); }
.hero-book img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero-book .book-label {
  padding: 12px; font-size: 0.78rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.hero-book .book-label strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--text);
}
.section-heading h2 .accent { color: var(--green); }
.section-heading p {
  color: var(--text-muted); margin-top: 12px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-line {
  width: 60px; height: 3px; background: var(--green);
  margin: 16px auto 0; border-radius: 2px;
}

/* ============================================================
   MATERIAIS EM DESTAQUE
   ============================================================ */
#featured-materials { background: var(--bg-card); }
.materials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.material-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.material-card:hover { transform: translateY(-8px); box-shadow: 0 8px 40px rgba(93,200,0,0.15); }
.material-card .card-img {
  position: relative; overflow: hidden;
}
.material-card .card-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-volume-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: #000;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.material-card .card-body {
  padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 14px;
}
.material-card h3 { font-size: 1.25rem; color: var(--text); }
.material-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.card-features { display: flex; flex-direction: column; gap: 8px; }
.card-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted);
}
.card-feature::before {
  content: '✓'; color: var(--green); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card-actions .btn { flex: 1; min-width: 120px; justify-content: center; }

/* ============================================================
   POR QUE APRENDER
   ============================================================ */
#why-us { background: var(--bg); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.why-card:hover { transform: translateY(-6px); border-color: var(--green); }
.why-icon {
  width: 56px; height: 56px; background: var(--green-glow);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem; color: var(--green);
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   PRÓXIMOS LANÇAMENTOS
   ============================================================ */
#launches { background: var(--bg-card); }
.launches-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.launch-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px; text-align: center;
  position: relative; overflow: hidden;
  transition: border-color var(--transition);
}
.launch-card:hover { border-color: var(--green); }
.launch-badge {
  display: inline-block; background: var(--green-glow);
  border: 1px solid var(--border); color: var(--green);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  text-transform: uppercase;
}
.launch-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.launch-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.launch-em-breve {
  background: rgba(93,200,0,0.1); color: var(--green);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  text-transform: uppercase; display: inline-block;
}

/* ============================================================
   MATERIAIS GRATUITOS
   ============================================================ */
#free-materials { background: var(--bg); }
.free-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.free-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.free-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text-muted);
}
.free-item::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--green); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.free-visual {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.free-visual img { width: 100%; object-fit: cover; }
.free-visual .visual-label {
  padding: 20px; text-align: center;
}
.free-visual .visual-label h3 { font-size: 1.1rem; margin-bottom: 4px; }
.free-visual .visual-label p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   CONHECIMENTO QUE TRANSFORMA
   ============================================================ */
#knowledge-block {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.knowledge-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.knowledge-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.knowledge-text p { color: var(--text-muted); margin-bottom: 10px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background: linear-gradient(135deg, #0a1a05, #0d0d0d);
  border-top: 2px solid var(--green);
  text-align: center; padding: 80px 20px;
  position: relative; overflow: hidden;
}
#cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(93,200,0,0.07) 0%, transparent 70%);
}
#cta-banner .container { position: relative; z-index: 1; }
#cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; margin-bottom: 12px;
}
#cta-banner h2 em { font-style: normal; color: var(--green); }
#cta-banner p { color: var(--text-muted); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-about .footer-logo { margin-bottom: 16px; }
.footer-about p { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--green); opacity: 1; }
.footer-col .contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; flex-direction: column; }
  .primary-nav, .nav-cta {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
  }
  .primary-nav { flex-direction: column; align-items: flex-start; }
  .primary-nav.open, .nav-cta.open { display: flex; }
  .nav-cta.open { padding-top: 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visuals { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.5rem; }

  .free-grid { grid-template-columns: 1fr; }
  .knowledge-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-pad { padding: 50px 0; }
}

@media (max-width: 480px) {
  .hero-visuals { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .launches-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   WORDPRESS DEFAULTS (alignment, captions, etc.)
   ============================================================ */
.wp-block-image figcaption { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-top: 8px; }
.wp-block-quote { border-left: 3px solid var(--green); padding-left: 20px; color: var(--text-muted); font-style: italic; }
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { margin: 0 auto 16px; display: block; }

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   PAGE / SINGLE CONTENT
   ============================================================ */
.page-content { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 16px; }
.page-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.page-content h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--green); }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }

/* ============================================================
   LOADING SKELETON (Lazy images)
   ============================================================ */
.lazy-img { opacity: 0; transition: opacity 0.4s ease; }
.lazy-img.loaded { opacity: 1; }

/* ============================================================
   HERO CONTENT (text column inside .hero-inner grid)
   ============================================================ */
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
}

/* ============================================================
   FREE CONTENT (text column inside .free-grid)
   ============================================================ */
.free-content {
  display: flex; flex-direction: column; justify-content: center;
}

/* ============================================================
   ENTRY CONTENT (page/post body)
   ============================================================ */
.entry-content { line-height: 1.8; }
.entry-content p  { margin-bottom: 16px; color: var(--text-muted); }
.entry-content h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--green); }
.entry-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.entry-content ul,
.entry-content ol { padding-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.entry-content li { margin-bottom: 6px; }
.entry-content a   { color: var(--green); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }

/* ============================================================
   FEATURED IMAGE (single post/material)
   ============================================================ */
.featured-img {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
}
.featured-img img { width: 100%; height: auto; }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header { margin-bottom: 40px; }
.archive-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }

/* ============================================================
   PAGE / BLOG TITLES
   ============================================================ */
.page-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 32px; font-weight: 800;
}

/* ============================================================
   READ MORE LINK (excerpt)
   ============================================================ */
.read-more {
  color: var(--green); font-weight: 600;
  text-decoration: none;
}
.read-more:hover { opacity: 0.8; }

/* ============================================================
   SECTION BLOG (template-parts/section-posts.php)
   ============================================================ */
.section-blog { background: var(--bg); }

/* ============================================================
   SINGLE SSA_MATERIAL wrapper
   ============================================================ */
.ssa-material-single { /* inherits .page-content layout */ }

/* ============================================================
   MATERIAL PRICE
   ============================================================ */
.material-price {
  margin: 8px 0 20px;
}
.material-price strong {
  font-size: 1.8rem;
  color: var(--green);
  font-family: var(--font-heading);
}

/* ============================================================
   MATERIAL FEATURES BLOCK (single-ssa_material)
   ============================================================ */
.material-features-block {
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.material-features-block h2 {
  font-size: 1.1rem; margin-bottom: 14px;
  color: var(--green);
}

/* ============================================================
   MATERIAL CTA (buy block in single-ssa_material)
   ============================================================ */
.material-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px;
}

/* ============================================================
   WIDGET TITLE (sidebar)
   ============================================================ */
.widget-title {
  font-size: 1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ============================================================
   FOOTER SOCIAL LINKS
   ============================================================ */
.footer-social {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.social-link:hover {
  background: var(--green); border-color: var(--green);
  color: #000; opacity: 1; transform: translateY(-2px);
}
.social-link svg { display: block; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-muted); list-style: none;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li + li::before { content: '›'; color: var(--border); }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--green); opacity: 1; }
.breadcrumb-list [aria-current="page"] { color: var(--green); font-weight: 600; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin-top: 48px; }
.page-numbers {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; list-style: none;
}
.page-numbers li a,
.page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.page-numbers li .current {
  background: var(--green); border-color: var(--green);
  color: #000;
}
.page-numbers li a:hover { border-color: var(--green); color: var(--green); opacity: 1; }

/* ============================================================
   POSTS GRID (blog / index)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; background: var(--green); color: #000;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(93,200,0,0.4);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }
