/*
Theme Name: 18 ОПТБ
Theme URI: https://18optb.mil.gov.ua
Description: Премиум-тема для личного сайта 18-го отдельного противотанкового батальона. Тактический тёмный дизайн, интерактивный арсенал, высокая скорость работы и полная адаптивность.
Author: Antigravity
Author URI: https://google.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 18optb
Tags: dark, two-columns, right-sidebar, flexible-header, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* --- CSS Variables & Design System --- */
:root {
  --bg-darker: #07090c;
  --bg-dark: #0e1117;
  --bg-card: #151b24;
  --bg-card-hover: #1e2633;
  --bg-olive: #162019;
  --bg-olive-hover: #1f2d23;
  --bg-olive-glow: rgba(31, 45, 35, 0.4);
  
  --primary: #ff7300; /* Tactical Orange */
  --primary-hover: #e06500;
  --primary-glow: rgba(255, 115, 0, 0.18);
  --primary-glow-strong: rgba(255, 115, 0, 0.4);
  
  --success: #22c55e;
  --danger: #ef4444;
  
  --text-white: #f8fafc;
  --text-muted: #94a3b8;
  --text-dimmed: #64748b;
  
  --border-tactical: rgba(255, 115, 0, 0.3);
  --border-tactical-hover: rgba(255, 115, 0, 0.6);
  --border-muted: rgba(148, 163, 184, 0.12);
  
  --font-heading: 'Russo One', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --container-width: 1200px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text-white);
  position: relative;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: 1rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.8rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--text-white);
}

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

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

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

.section-padding {
  padding: 6rem 0;
}

.text-center { text-align: center; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- HUD & Tactical Design Elements --- */
.hud-title {
  display: inline-block;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.hud-title::after {
  content: ' [//18_OPTB]';
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 2px;
  vertical-align: middle;
}

.hud-border {
  border: 1px solid var(--border-muted);
  position: relative;
  transition: border var(--transition-normal);
}
.hud-border:hover {
  border-color: var(--border-tactical);
}

/* Corner brackets for tactical look */
.hud-border::before, .hud-border::after,
.hud-corners::before, .hud-corners::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
/* Top-left */
.hud-border::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
/* Bottom-right */
.hud-border::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}
.hud-border:hover::before, .hud-border:hover::after {
  opacity: 1;
}

/* Glowing Tactical Buttons */
.btn-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.btn-tactical span {
  position: relative;
  z-index: 2;
}
.btn-tactical::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--primary);
  transition: left var(--transition-normal);
  z-index: 1;
}
.btn-tactical:hover {
  color: var(--bg-darker);
  box-shadow: 0 0 15px var(--primary-glow-strong);
}
.btn-tactical:hover::before {
  left: 0;
}

.btn-tactical-filled {
  background: var(--primary);
  color: var(--bg-darker) !important;
  border-color: var(--primary);
}
.btn-tactical-filled::before {
  background: var(--text-white);
}
.btn-tactical-filled:hover {
  color: var(--bg-darker) !important;
  box-shadow: 0 0 20px var(--primary-glow-strong);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-text-large {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-white);
  letter-spacing: 1px;
}
.logo-text-large span {
  color: var(--primary);
}

/* Navigation menu */
.nav-menu {
  display: none;
}
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
  }
  .nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
  }
  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
  }
  .nav-menu a:hover {
    color: var(--text-white);
  }
  .nav-menu a:hover::after, .nav-menu .current-menu-item > a::after {
    width: 100%;
  }
  .nav-menu .current-menu-item > a {
    color: var(--text-white);
  }
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 105;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}
.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-white);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 350px; height: 100vh;
  background: var(--bg-darker);
  border-left: 1px solid var(--border-tactical);
  z-index: 101;
  padding: 6rem 2rem 2rem 2rem;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}
.mobile-nav a:hover, .mobile-nav .current-menu-item > a {
  color: var(--primary);
}

/* --- Hero Section (HUD & Radar vibe) --- */
.hero {
  position: relative;
  padding: 8rem 0 6rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 115, 0, 0.05) 0%, rgba(14, 17, 23, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(34, 197, 94, 0.03) 0%, rgba(14, 17, 23, 0) 50%),
              var(--bg-darker);
  border-bottom: 1px solid var(--border-muted);
  overflow: hidden;
}

/* Decorative target crosshair grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 115, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 115, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
}

/* Scanning line animation */
.hero-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
  animation: scan 6s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-title {
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Tactical HUD widget on hero right side */
.hero-hud-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-tactical);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hud-widget-header {
  border-bottom: 1px dashed var(--border-tactical);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hud-widget-title {
  font-size: 0.9rem;
  color: var(--text-white);
  font-family: var(--font-heading);
}
.hud-widget-signal {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hud-widget-signal::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.hud-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-muted);
}
.hud-stat-row:last-child {
  border-bottom: none;
}
.hud-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hud-stat-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--primary);
}

/* --- Features / Mission Block --- */
.mission-sec {
  background: var(--bg-dark);
}
.mission-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-muted);
  position: relative;
  transition: transform var(--transition-normal), border var(--transition-normal);
}
.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-tactical);
}
.mission-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-olive);
  border: 1px solid var(--border-tactical);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}
.mission-card:hover .mission-icon {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Interactive Tactical Arsenal (Tabs) --- */
.arsenal-sec {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.tabs-container {
  margin-top: 3rem;
}

.tabs-headers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 1rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all var(--transition-normal);
}
.tab-btn:hover {
  color: var(--text-white);
  border-color: var(--border-tactical);
}
.tab-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: inset 0 2px 0 var(--primary);
}

.tab-content-wrapper {
  margin-top: 2rem;
}

.tab-pane {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .tab-pane.active {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.weapon-info h3 {
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.weapon-type {
  display: inline-block;
  background: var(--bg-olive);
  border: 1px solid var(--border-tactical);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.weapon-spec-list {
  list-style: none;
  margin: 1.5rem 0;
}
.weapon-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border-muted);
}
.weapon-spec-name {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.weapon-spec-val {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 0.9rem;
}

/* SPEC PROGRESS BAR */
.spec-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-dark);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.spec-progress-fill {
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.weapon-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-tactical);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.weapon-visual img {
  border-radius: 4px;
  max-height: 350px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.weapon-visual:hover img {
  transform: scale(1.05);
}

/* --- News / Blog Section --- */
.news-sec {
  background: var(--bg-dark);
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  height: 100%;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-tactical);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.news-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.news-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-date {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-tactical);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  z-index: 2;
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.news-title a {
  color: var(--text-white);
}
.news-title a:hover {
  color: var(--primary);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-footer {
  border-top: 1px solid var(--border-muted);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-more {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-more:hover {
  color: var(--text-white);
}

.news-category {
  font-size: 0.75rem;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Contact & Tactical Terminal Form --- */
.contact-sec {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-muted);
  position: relative;
}

.contact-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-tactical);
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  overflow: hidden;
}

.terminal-header {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-tactical);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--danger); }
.terminal-dot.yellow { background: var(--primary); }
.terminal-dot.green { background: var(--success); }

.terminal-title {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.terminal-body {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  color: var(--text-white);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-info-icon {
  font-size: 1.3rem;
  color: var(--primary);
  background: var(--bg-card);
  width: 45px;
  height: 45px;
  border-radius: 4px;
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-info-text p {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-muted);
  padding: 5rem 0 2rem 0;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
}

.footer-logo {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.footer-logo span {
  color: var(--primary);
}

.footer-title {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-tactical);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-muted);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- General Post / Article styling (single.php / page.php) --- */
.content-area {
  padding: 5rem 0;
}
.post-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 2rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-dimmed);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-top: 1rem;
}
.post-meta a {
  color: var(--text-dimmed);
}
.post-meta a:hover {
  color: var(--primary);
}

.post-thumbnail {
  margin-bottom: 3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.entry-content p {
  margin-bottom: 1.8rem;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-white);
}
.entry-content ul, .entry-content ol {
  margin-bottom: 1.8rem;
  padding-left: 2rem;
}
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  font-style: italic;
  margin: 2rem 0;
  color: var(--text-white);
}

/* Sidebar Customization */
.sidebar-area {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  padding: 2rem;
}
.widget {
  margin-bottom: 3rem;
}
.widget:last-child {
  margin-bottom: 0;
}
.widget-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-tactical);
  padding-bottom: 0.5rem;
}
.widget ul {
  list-style: none;
}
.widget li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-muted);
}
.widget li:last-child {
  border-bottom: none;
}
.widget a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.widget a:hover {
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all var(--transition-normal);
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--primary);
  color: var(--bg-darker);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Standard breadcrumbs placeholder */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: var(--text-dimmed);
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* Comments Styling */
.comments-area {
  margin-top: 4rem;
  border-top: 1px solid var(--border-muted);
  padding-top: 3rem;
}
.comments-title {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.comment-list {
  list-style: none;
  margin-bottom: 3rem;
}
.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-dimmed);
}
.comment-author {
  font-weight: 700;
  color: var(--text-white);
}
.comment-content {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.comment-reply {
  margin-top: 1rem;
  text-align: right;
}
.comment-reply a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
}
