/* ==========================================================================
   qualia - 情報スカイスクレイパー
   Modern Responsive Stylesheet (Static HTML Edition)
   ========================================================================== */

:root {
  --primary: #1e3a8a;        /* Deep Indigo Navy */
  --primary-light: #2563eb;  /* Royal Blue */
  --primary-dark: #172554;
  --secondary: #0284c7;      /* Sky Cyan Accent */
  --accent: #f59e0b;         /* Warm Amber */
  --accent-hover: #d97706;
  
  --bg-body: #f8fafc;        /* Slate Light */
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-sidebar: #ffffff;
  
  --text-main: #1e293b;      /* Slate 800 */
  --text-muted: #64748b;     /* Slate 500 */
  --text-light: #94a3b8;     /* Slate 400 */
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s ease-in-out;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --max-width: 1200px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

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

ul, ol {
  padding-left: 1.5rem;
}

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

.site-main-layout {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.25rem;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevents overflow */
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-title a {
  color: var(--primary);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.site-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary-light);
  background-color: var(--bg-subtle);
  text-decoration: none;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 110;
}

.nav-item:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-light);
  text-decoration: none;
}

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

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 8px;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 105;
}

/* ==========================================================================
   Article Grid / Card Layout (Home & Categories)
   ========================================================================== */
.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.25rem;
  background: var(--primary-light);
  border-radius: 3px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.post-card-thumb-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 58, 138, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  z-index: 2;
  text-decoration: none;
}

.post-badge:hover {
  background: var(--primary-light);
  color: #fff;
  text-decoration: none;
}

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

.post-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

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

.post-card-title a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.page-num:hover, .page-num.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   Single Article Detail Page
   ========================================================================== */
.article-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0.75rem 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-eyecatch {
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-eyecatch img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Table of Contents (TOC) */
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  background: #ffffff;
}

.toc-list {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: decimal;
}

.toc-list li {
  margin: 0.4rem 0;
  font-size: 0.925rem;
}

.toc-list li a {
  color: var(--text-main);
  text-decoration: none;
}

.toc-list li a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.toc-list .toc-sub {
  list-style: circle;
  padding-left: 1.25rem;
  margin-top: 0.3rem;
}

/* Article Body Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.article-body p {
  margin: 1.5rem 0;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.75rem 0 1.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
  border-left: 5px solid var(--primary-light);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--secondary);
}

.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}

.article-body li {
  margin: 0.4rem 0;
}

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-left: 4px solid var(--text-light);
  color: var(--text-muted);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.article-body th, .article-body td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-body th {
  background: var(--bg-subtle);
  font-weight: 700;
}

.article-body tr:nth-child(even) td {
  background: #fafafa;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   AdSense & Ranking Units
   ========================================================================== */
.ad-unit {
  margin: 2.25rem 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ad-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ranking Section */
.ranking-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.ranking-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ranking-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.ranking-btn-fc2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e11d48;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.25);
  transition: var(--transition);
  text-decoration: none;
}

.ranking-btn-fc2:hover {
  background: #be123c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(225, 29, 72, 0.35);
  text-decoration: none;
}

.ranking-banner-with2 {
  display: inline-block;
  transition: var(--transition);
}

.ranking-banner-with2 img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ranking-banner-with2:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Post Navigation (Prev / Next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.post-nav-card {
  padding: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-nav-card:hover {
  background: #ffffff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

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

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}

/* Profile Widget */
.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.profile-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Widget */
.widget-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-cat-item {
  border-bottom: 1px solid #f1f5f9;
}

.widget-cat-item:last-child {
  border-bottom: none;
}

.widget-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.25rem;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.widget-cat-link:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
  text-decoration: none;
}

.widget-cat-count {
  font-size: 0.75rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Sub-categories in widget */
.widget-subcat-list {
  list-style: none;
  padding-left: 1rem;
}

.widget-subcat-item {
  border-bottom: 1px dashed #f1f5f9;
}

.widget-subcat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.widget-subcat-link:hover {
  color: var(--primary-light);
  padding-left: 0.3rem;
  text-decoration: none;
}

/* Recent Posts Widget */
.widget-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-post-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.widget-post-thumb {
  width: 72px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

.widget-post-info {
  flex: 1;
  min-width: 0;
}

.widget-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-title a {
  color: var(--text-main);
  text-decoration: none;
}

.widget-post-title a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.widget-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Archive List Widget */
.widget-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-archive-link {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-main);
  transition: var(--transition);
}

.widget-archive-link:hover {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-brand .site-title a {
  color: #ffffff;
}

.footer-brand .site-tagline {
  color: #94a3b8;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 0.25rem;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   Static Pages (About, Contact, Privacy)
   ========================================================================== */
.contact-form-container {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.4rem;
}

.form-label .req {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.btn-submit {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .site-main-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 0;
  }

  .site-title {
    font-size: 1.45rem;
  }

  .site-tagline {
    font-size: 0.75rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    z-index: 110;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    margin: 0.3rem 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .article-container {
    padding: 1.5rem 1.25rem;
  }

  .article-title {
    font-size: 1.45rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

