/*
Theme Name: Disassemble Modern
Description: Space-tech engineering blog theme. Dark, stylish design inspired by JAXA/NASA PR aesthetics.
Version: 2.0.0
Author: Disassemble Team
Text Domain: disassemble-modern
*/

@charset "utf-8";

/* Josh's Custom CSS Reset */
*,*::before,*::after{box-sizing:border-box}*{margin:0}html,body{height:100%}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}#root,#__next{isolation:isolate}

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --bg-deep: #ffffff;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-surface: #e2e8f0;

  --accent-cyan: #0891b2;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-amber: #f59e0b;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --glow-cyan: rgba(8, 145, 178, 0.08);
  --glow-blue: rgba(37, 99, 235, 0.08);

  --radius: 12px;
  --radius-lg: 16px;
}

/* ========================================
   Base
   ======================================== */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  background: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-primary);
}

body a:any-link {
  transition: color 0.2s ease, opacity 0.2s ease;
  color: var(--text-secondary);
  text-decoration: none;
}

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

::selection {
  background: rgba(8, 145, 178, 0.2);
  color: #1e293b;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-guides-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.header-guides-link:hover {
  background: rgba(8, 145, 178, 0.08);
  border-color: var(--accent-cyan);
}

.header-stats {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-stats .stat-num {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

/* ========================================
   Domain Navigation Bar
   ======================================== */
.domain-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 64px;
  left: 0;
  z-index: 999;
  overflow: hidden;
}

.domain-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.domain-nav-inner::-webkit-scrollbar {
  display: none;
}

.domain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  white-space: nowrap;
  padding: 10px 0;
}

.domain-list li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.domain-list li a:hover {
  color: var(--accent-cyan);
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.15);
}

.domain-list li a.active {
  color: var(--bg-deep);
  background: var(--accent-cyan);
  font-weight: 600;
}

/* Domain group separator */
.domain-list li.domain-sep {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.domain-list li.domain-sep::before {
  content: '';
  width: 1px;
  height: 16px;
  background: var(--border-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 40px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(79, 70, 229, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
}

/* Star field layers */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero::before {
  background-image: none;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero::after {
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(8, 145, 178, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  background: rgba(8, 145, 178, 0.06);
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h2 .accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
}

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

.hero-metric .metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-metric .metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
  min-height: 100vh;
  padding: 160px 40px 80px;
  background: var(--bg-primary);
  position: relative;
}

/* ホームページ: ヒーロー直下なのでpadding-top不要 */
.home .main-content,
.blog .main-content {
  padding-top: 48px;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.post-list {
  flex: 2;
  min-width: 0;
}

/* ========================================
   Post Cards
   ======================================== */
.post-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-indigo));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-item:hover {
  border-color: rgba(8, 145, 178, 0.15);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 40px var(--glow-cyan);
}

.post-item:hover::before {
  opacity: 1;
}

.post-item h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-item h2 a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.post-item h2 a:hover {
  color: var(--accent-cyan);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-meta time {
  font-weight: 500;
  color: var(--text-secondary);
}

.category {
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(8, 145, 178, 0.2);
  transition: all 0.2s ease;
}

.category:hover {
  background: rgba(8, 145, 178, 0.2);
  color: var(--text-primary);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-top: 12px;
}

.post-excerpt p {
  margin: 0;
}

/* Tags */
.post-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tags .tag,
.tag-cloud .tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.post-tags .tag:hover,
.tag-cloud .tag:hover {
  color: var(--accent-cyan);
  border-color: rgba(8, 145, 178, 0.2);
  background: rgba(8, 145, 178, 0.06);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
  flex: 1;
  min-width: 300px;
  max-width: 360px;
}

.widget {
  background: var(--bg-card);
  padding: 28px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0.5;
}

.widget h3 {
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 4px;
}

.widget a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 400;
  line-height: 1.5;
}

.widget a:hover {
  color: var(--accent-cyan);
  background: rgba(8, 145, 178, 0.06);
}

.widget .domain-list li.active a {
  color: var(--accent-cyan);
  background: rgba(8, 145, 178, 0.08);
  font-weight: 600;
}

.category-list a::after {
  content: attr(data-count);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 6px;
  opacity: 0.6;
}

.profile-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--bg-secondary);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-about {
  padding-right: 20px;
}

.footer-about .footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about .footer-logo .logo-mark {
  width: 24px;
  height: 24px;
  font-size: 0.65rem;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--accent-cyan);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  margin: 48px 0;
  text-align: center;
}

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.3);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  padding: 0 18px;
  font-weight: 600;
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: default;
  box-shadow: none;
}

.pagination .page-numbers.dots:hover {
  background: none;
  color: var(--text-muted);
  transform: none;
}

/* ========================================
   Category & Tag Pages
   ======================================== */
.category-title,
.tag-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-cyan);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-description,
.tag-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ========================================
   KaTeX Math
   ======================================== */
.katex,
.katex-display,
.math-expression {
  font-family: "KaTeX_Main", "Times New Roman", serif !important;
}

.math-expression {
  background: rgba(8, 145, 178, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-style: italic;
  color: var(--accent-cyan);
  font-weight: 500;
  display: inline-block;
  margin: 4px 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif !important;
  font-style: normal !important;
}

/* ========================================
   Related Articles (style.css version for listing pages)
   ======================================== */
.related-articles {
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}

.related-articles h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.related-article {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.related-article:hover {
  border-color: rgba(8, 145, 178, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-article h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.related-article h4 a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.related-article h4 a:hover {
  color: var(--accent-cyan);
}

.related-article p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.related-meta time {
  color: var(--text-muted);
}

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

  .sidebar {
    min-width: 260px;
    max-width: 300px;
  }
}

@media screen and (max-width: 800px) {
  .header-inner {
    padding: 0 20px;
    height: 56px;
  }

  .header-stats {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .domain-nav {
    top: 56px;
    max-height: 0;
    overflow: hidden;
    border-bottom: none;
    transition: max-height 0.3s ease, border-bottom 0.3s ease;
  }

  .domain-nav.nav-open {
    max-height: 400px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
  }

  .domain-nav-inner {
    padding: 0 16px;
  }

  .domain-list {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .domain-list li a {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .domain-list li.domain-sep {
    display: none;
  }

  /* モバイルではドメインナビ非表示時にコンテンツ位置を調整 */
  .main-content {
    padding-top: 100px !important;
  }

  .home .main-content,
  .blog .main-content {
    padding-top: 32px !important;
  }

  .hero {
    min-height: 380px;
    padding: 130px 20px 60px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-metrics {
    gap: 28px;
  }

  .hero-metric .metric-value {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 130px 16px 40px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .sidebar {
    min-width: 100%;
    max-width: 100%;
  }

  .post-item {
    padding: 24px;
  }

  .post-item h2 {
    font-size: 1.15rem;
  }

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

  .footer-main {
    padding: 48px 20px 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .hero-metric .metric-value {
    font-size: 1.3rem;
  }

  .post-item {
    padding: 20px;
    margin-bottom: 16px;
  }
}
