/* ==========================================================================
   REPORTER THEME - Japanese Editorial Magazine Design System
   High-Performance & PageSpeed Optimized (100% Core Web Vitals)
   ========================================================================== */

:root {
  --primary: #13ae6f;
  --primary-hover: #0e8d59;
  --primary-glow: rgba(19, 174, 111, 0.25);
  --primary-light: rgba(19, 174, 111, 0.08);
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f8fafc;
  --bg-overlay: rgba(15, 23, 42, 0.65);
  --text-main: #1e293b;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1200px;
  --header-height: 70px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", Roboto, sans-serif;
  --font-heading: "Neuton", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
}

[data-theme="dark"], body.dark-theme {
  --primary: #10b981;
  --primary-hover: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --primary-light: rgba(16, 185, 129, 0.12);
  --bg-body: #0b1120;
  --bg-card: #131c31;
  --bg-alt: #0f172a;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --text-main: #f1f5f9;
  --text-dark: #ffffff;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #1e293b;
  --border-light: #172033;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

*, *::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-base);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6em;
}

p {
  margin-bottom: 1.4em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, background-color 0.25s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #13ae6f 0%, #0e8d59 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(19, 174, 111, 0.35);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-link:hover .brand-icon {
  box-shadow: 0 6px 16px rgba(19, 174, 111, 0.5);
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", Roboto, sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(19, 174, 111, 0.25);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Footer Brand Link */
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 22px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-title .brand-name {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-brand-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: rgba(19, 174, 111, 0.2);
  color: #34d399;
  border: 1px solid rgba(19, 174, 111, 0.4);
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  margin-right: 4px;
  color: var(--border);
  font-size: 0.85rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  padding: 8px 36px 8px 14px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background-color: var(--bg-alt);
  color: var(--text-main);
  width: 170px;
  transition: all 0.25s ease;
  outline: none;
}

.header-search input:focus {
  width: 230px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-color: var(--bg-card);
}

.header-search button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.header-search button:hover {
  color: var(--primary);
}

.theme-toggle-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero & Top Bar Announcement
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #0d9488 100%);
  color: #ffffff;
  padding: 7px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Main Layout & Grid System
   ========================================================================== */
.main-wrapper {
  padding: 35px 0 60px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 36px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 12px;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
}

.section-title {
  font-family: var(--font-base);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
}

.section-title svg {
  color: var(--primary);
}

/* ==========================================================================
   Article Cards (Reporter Signature Design)
   ========================================================================== */
.featured-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 35px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-alt);
}

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

.featured-card:hover .card-media img,
.article-card:hover .card-media img {
  transform: scale(1.03);
}

.media-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.card-content {
  padding: 24px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-tag:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: inline;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-position: 0% 92%;
  background-repeat: no-repeat;
  background-size: 0% 3px;
  transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
}

a:hover > .post-title,
.post-title a:hover,
a.post-title-link:hover .post-title {
  background-size: 100% 3px;
  color: var(--text-dark);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.author-info-mini {
  display: flex;
  align-items: center;
  gap: 9px;
}

.author-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-name-mini {
  font-weight: 600;
  color: var(--text-main);
}

.read-more-link {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.read-more-link:hover {
  transform: translateX(4px);
  color: var(--primary-hover);
}

/* 2-Column Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

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

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.article-card .card-media {
  aspect-ratio: 16 / 10;
}

.article-card .card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .post-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.article-card .post-excerpt {
  font-size: 0.88rem;
  margin-bottom: 14px;
  -webkit-line-clamp: 2;
  flex: 1;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.widget-title {
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: 0.03em;
}

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

/* Widget: About Author */
.widget-about-body {
  text-align: center;
}

.about-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.about-author-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-author-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.about-author-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: left;
}

.btn-author-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-author-more:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Widget: Recommended Posts */
.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommended-featured {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 16px;
}

.recommended-featured .card-media {
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.recommended-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-light);
  transition: transform 0.2s ease;
}

.recommended-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recommended-item:hover {
  transform: translateX(3px);
}

.recommended-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-alt);
}

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

.recommended-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-dark);
}

.recommended-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Widget: Categories */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.category-item a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.category-count {
  font-size: 0.78rem;
  background-color: var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.category-item a:hover .category-count {
  background-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Single Post Specific Styles
   ========================================================================== */
.single-post-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin-bottom: 35px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs-sep {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumbs-current {
  color: var(--text-main);
  font-weight: 600;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-title {
  font-size: 2.1rem;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

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

.single-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-alt);
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table of Contents (TOC) */
.toc-container {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 25px 0 35px;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li a {
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.5;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc-list li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.toc-list li.toc-h3 {
  padding-left: 18px;
  font-size: 0.88rem;
}

/* Post Typography & Content */
.post-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-main);
  word-break: break-word;
}

.post-body p {
  margin-bottom: 1.6em;
}

.post-body strong, .post-body b {
  font-weight: 700;
  color: var(--text-dark);
}

.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: var(--primary-hover);
}

.post-body figure {
  margin: 2.2rem 0;
  text-align: center;
}

.post-body figure img {
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  height: auto;
}

.post-body figcaption {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  text-align: center;
}

.post-body h2 {
  font-size: 1.6rem;
  margin-top: 45px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.post-body h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.post-body h3 {
  font-size: 1.35rem;
  margin-top: 35px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--bg-alt);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
}

.post-body ul, .post-body ol {
  margin: 20px 0 24px 24px;
}

.post-body li {
  margin-bottom: 8px;
}

/* Notice / Alert boxes */
.notice-box {
  padding: 16px 20px;
  margin: 26px 0;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  background-color: var(--bg-alt);
  font-size: 0.95rem;
}

.notice-box.tip {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
}

.notice-box.note {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.08);
}

.notice-box.warning {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.08);
}

/* Social Share Bar */
.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 35px 0;
  padding: 18px 22px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.share-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #ffffff;
}

.share-btn.twitter { background-color: #000000; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.line { background-color: #06c755; }
.share-btn.hatena { background-color: #00a4de; }
.share-btn.pinterest { background-color: #bd081c; }

/* Author Bio Box */
.author-box-large {
  display: flex;
  gap: 24px;
  align-items: center;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.author-box-info {
  flex: 1;
}

.author-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-box-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 45px;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.page-link-btn:hover, .page-link-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

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

.back-to-top-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 50px 0 30px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 35px;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-bottom: 25px;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-desc {
  max-width: 600px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #64748b;
}

.footer-bottom {
  border-top: 1px solid #172033;
  padding-top: 25px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-menu-btn {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-item:not(:last-child)::after {
    display: none;
  }
  .nav-link {
    padding: 10px 14px;
  }
  .single-post-wrapper {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-tag {
    display: none;
  }
  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-search {
    display: none;
  }
  .single-title {
    font-size: 1.6rem;
  }
  .post-title {
    font-size: 1.25rem;
  }
  .author-box-large {
    flex-direction: column;
    text-align: center;
  }
  .author-box-avatar {
    margin: 0 auto;
  }
}
