/*
Theme Name: ConcretePore_8048
Theme URI: https://betopen.ru
Author: BetOpen
Author URI: https://betopen.ru
Description: Тема для сайта о пенообразователях для ячеистых бетонов. Индустриальная эстетика, функциональность и удобство чтения технических текстов.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: concretepore
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, theme-options
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --color-bg: #F8F9FA;
  --color-text: #1E2A3A;
  --color-accent: #2B6C8F;
  --color-accent-hover: #1A4F6E;
  --color-secondary: #5C6B7A;
  --color-card: #FFFFFF;
  --color-orange: #E67E22;
  --color-border: #DEE2E6;
  --shadow-card: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.07);
  --radius-btn: 6px;
  --radius-img: 4px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --sidebar-width: 320px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Literata', 'Georgia', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Пунктирная волна при наведении на ссылки в тексте */
.entry-content a,
.comment-content a {
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--color-accent) 33%, transparent 33%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size var(--transition), color var(--transition);
}

.entry-content a:hover,
.comment-content a:hover {
  background-image: linear-gradient(
    180deg,
    transparent 65%,
    rgba(43,108,143,0.15) 65%
  );
  background-size: 100% 100%;
  background-position: 0 0;
  color: var(--color-accent-hover);
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2.2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.75rem; margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
h4 { font-size: 1.15rem; margin-bottom: 0.35em; }

p {
  margin-bottom: 1.2em;
}

blockquote {
  border-left: 3px solid var(--color-secondary);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(92,107,122,0.05);
  font-style: italic;
  color: var(--color-secondary);
  border-radius: 0 var(--radius-img) var(--radius-img) 0;
}

pre, code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(92,107,122,0.08);
  border: 1px solid rgba(92,107,122,0.15);
  border-radius: var(--radius-img);
}

code {
  padding: 2px 6px;
  font-size: 0.88em;
}

pre {
  padding: 1.2em;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ========================================
   LAYOUT
======================================== */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-area {
  display: flex;
  gap: 40px;
  padding: 40px 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* ========================================
   HEADER
======================================== */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-branding .custom-logo {
  max-height: 48px;
  width: auto;
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-formula {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-top: 2px;
  opacity: 0.85;
}

.site-formula sub {
  font-size: 0.6em;
}

.site-description {
  display: none;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 8px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(43,108,143,0.08);
  color: var(--color-accent);
}

/* Submenu */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card-hover);
  min-width: 200px;
  flex-direction: column;
  z-index: 999;
  padding: 6px 0;
}

.main-navigation li:hover > ul {
  display: flex;
}

.main-navigation ul ul a {
  padding: 8px 16px;
  border-radius: 0;
  font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ========================================
   HERO / FOAM ANIMATION (Front Page)
======================================== */
.hero-section {
  background: linear-gradient(135deg, #1E2A3A 0%, #2B6C8F 50%, #1A4F6E 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  color: #F8F9FA;
}

.hero-text h1 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(248,249,250,0.85);
  max-width: 540px;
}

.hero-svg-wrap {
  flex-shrink: 0;
  width: 320px;
  height: 280px;
}

.hero-svg-wrap svg {
  width: 100%;
  height: 100%;
}

/* Bubble animation */
.bubble {
  animation: bubbleFloat 6s ease-in-out infinite;
  transform-origin: center center;
}

.bubble:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.bubble:nth-child(3) { animation-delay: -2s; animation-duration: 5.5s; }
.bubble:nth-child(4) { animation-delay: -3s; animation-duration: 8s; }
.bubble:nth-child(5) { animation-delay: -0.5s; animation-duration: 6.5s; }
.bubble:nth-child(6) { animation-delay: -4s; animation-duration: 7.5s; }
.bubble:nth-child(7) { animation-delay: -1.5s; animation-duration: 5s; }
.bubble:nth-child(8) { animation-delay: -2.5s; animation-duration: 9s; }
.bubble:nth-child(9) { animation-delay: -3.5s; animation-duration: 6s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  25% { transform: translateY(-8px) scale(1.05); opacity: 0.7; }
  50% { transform: translateY(-4px) scale(0.97); opacity: 0.6; }
  75% { transform: translateY(-12px) scale(1.03); opacity: 0.55; }
}

/* ========================================
   ARTICLE CARDS
======================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--color-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(43,108,143,0.15), rgba(30,42,58,0.08));
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.article-card:hover .card-thumbnail img {
  transform: scale(1.03);
}

/* Абстрактный блок с текстурой, если нет изображения */
.card-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2B6C8F 0%, #1E2A3A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-thumbnail-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

.card-thumbnail-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .entry-title {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.card-body .entry-title a {
  color: var(--color-text);
  text-decoration: none;
}

.card-body .entry-title a:hover {
  color: var(--color-accent);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--color-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}

.card-excerpt a {
  color: var(--color-accent);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: var(--color-secondary);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.card-tag {
  background: rgba(230,126,34,0.12);
  color: var(--color-orange);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
  padding-top: 4px;
}

.read-more-link:hover {
  color: var(--color-accent-hover);
}

.read-more-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.read-more-link:hover svg {
  transform: translateX(3px);
}

/* ========================================
   SECTION HEADING
======================================== */
.section-heading {
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* ========================================
   PAGINATION
======================================== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.pagination-wrap .page-numbers:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination-wrap .page-numbers.current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination-wrap .page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0 4px;
}

/* ========================================
   SINGLE POST
======================================== */
.single-header {
  margin-bottom: 32px;
}

.single-header .entry-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta-item svg {
  width: 15px;
  height: 15px;
}

.featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius-img);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  border-radius: var(--radius-img);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.entry-content h2 {
  margin-top: 2em;
}

.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0 1.5em 1.5em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content img {
  border-radius: var(--radius-img);
  margin: 1.5em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: rgba(43,108,143,0.06);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Post tags */
.post-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.post-tags span {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
}

.post-tags a {
  display: inline-block;
  padding: 4px 10px;
  margin: 4px 4px 4px 0;
  background: rgba(43,108,143,0.06);
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: 'Manrope', sans-serif;
  color: var(--color-accent);
  transition: background var(--transition);
}

.post-tags a:hover {
  background: rgba(43,108,143,0.14);
}

/* Post navigation */
.post-navigation {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.post-navigation a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ========================================
   PAGE TEMPLATE
======================================== */
.page-header-block {
  margin-bottom: 32px;
}

/* ========================================
   SIDEBAR / "Лаборатория"
======================================== */
.sidebar .widget {
  background: var(--color-card);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Micro-фактура */
.sidebar .widget::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image: radial-gradient(circle, rgba(92,107,122,0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.sidebar .widget-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  position: relative;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(92,107,122,0.1);
  font-size: 0.9rem;
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  color: var(--color-text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}

.sidebar .widget ul li a:hover {
  color: var(--color-accent);
}

/* ========================================
   COMMENTS
======================================== */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.comment-list {
  list-style: none;
}

.comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-list .children {
  list-style: none;
  margin-left: 32px;
  padding-left: 20px;
  border-left: 2px solid rgba(43,108,143,0.15);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-meta .avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
}

.comment-date {
  font-size: 0.78rem;
  color: var(--color-secondary);
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.comment-reply-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 8px;
  display: inline-block;
}

/* Comment form */
.comment-respond {
  margin-top: 32px;
}

.comment-respond .comment-reply-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  background: rgba(248,249,250,0.5);
  font-family: 'Literata', serif;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  border-radius: 0;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  background: rgba(43,108,143,0.02);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: 16px;
}

.comment-form p {
  margin-bottom: 16px;
}

/* ========================================
   BUTTONS
======================================== */
.btn,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--color-accent-hover);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
  color: #FFFFFF;
}

/* ========================================
   SEARCH FORM
======================================== */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  background: rgba(248,249,250,0.5);
  font-family: 'Literata', serif;
  font-size: 0.92rem;
  color: var(--color-text);
  border-radius: 0;
  transition: border-color var(--transition);
}

.search-form .search-field:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.search-form .search-submit {
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  padding: 10px 16px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--color-text);
  color: rgba(248,249,250,0.75);
  position: relative;
  overflow: hidden;
}

/* Micro-фактура подвала */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-widgets .widget-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-widgets .widget {
  position: relative;
}

.footer-widgets .widget ul {
  list-style: none;
}

.footer-widgets .widget ul li {
  padding: 5px 0;
}

.footer-widgets .widget ul li a {
  color: rgba(248,249,250,0.7);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-widgets .widget ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: rgba(248,249,250,0.5);
  position: relative;
  z-index: 1;
}

/* ========================================
   SEARCH RESULTS / ARCHIVES
======================================== */
.archive-header,
.search-header {
  margin-bottom: 32px;
}

.archive-header h1,
.search-header h1 {
  font-size: 1.6rem;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results h2 {
  margin-bottom: 16px;
}

/* ========================================
   ACCESSIBILITY
======================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-card);
  clip: auto !important;
  display: block;
  font-size: 0.9rem;
  height: auto;
  left: 5px;
  padding: 15px 23px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .content-area {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-svg-wrap {
    width: 240px;
    height: 200px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-navigation.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: block;
  }

  .post-navigation {
    flex-direction: column;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .comment-list .children {
    margin-left: 16px;
    padding-left: 12px;
  }

  .single-header .entry-title {
    font-size: 1.6rem;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding: 0 16px;
  }

  .card-meta {
    gap: 8px;
  }

  .hero-svg-wrap {
    width: 180px;
    height: 150px;
  }
}
