/*
Theme Name: FuninBlog
Theme URI: https://funinchiryou-ninkatsu.com
Author: Custom Theme
Description: makuring.jpスタイルのカスタムブログテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: funinblog
*/

/* ============================================
   CSS Variables
============================================ */
:root {
  --color-main: #13b2aa;
  --color-secondary: #316c82;
  --color-accent: #ffb36b;
  --color-bg: #f4f4f4;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-card-bg: #ffffff;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --font-main: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --container-width: 1100px;
  --content-width: 730px;
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

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

.site-main {
  padding: 32px 0 48px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

/* ============================================
   Header
============================================ */
.site-header {
  background-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--container-width);
  margin: 0 auto;
  height: 64px;
}

.site-branding {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

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

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

.site-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ============================================
   Navigation
============================================ */
.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-menu li a {
  display: block;
  padding: 8px 16px;
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition);
}

.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   Category Color Bar
============================================ */
.category-bar {
  background-color: var(--color-main);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar-inner {
  display: flex;
  gap: 0;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.category-bar a {
  display: block;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition);
}

.category-bar a:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--color-white);
}

/* ============================================
   Breadcrumbs
============================================ */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-text-light);
}

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

.breadcrumbs .sep {
  margin: 0 6px;
}

/* ============================================
   Article Cards (Archive / Homepage)
============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.article-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: #ddd;
}

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

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

.card-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-main), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-main);
  background-color: rgba(19, 178, 170, 0.1);
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.card-meta .date::before {
  content: "📅 ";
  font-size: 0.7rem;
}

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

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--box-shadow);
}

.pagination a:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.pagination .current {
  background: var(--color-main);
  color: var(--color-white);
  box-shadow: var(--box-shadow);
}

/* ============================================
   Single Post
============================================ */
.single-article {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.single-header {
  padding: 32px 40px 0;
}

.single-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-main);
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.single-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--color-text);
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.single-thumbnail {
  margin: 0;
}

.single-thumbnail img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.single-content {
  padding: 36px 40px 40px;
}

/* ============================================
   Post Content Typography
============================================ */
.entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  background-color: var(--color-main);
  color: var(--color-white);
  padding: 0.65em 1.1em;
  border-radius: var(--border-radius-sm);
  margin: 2em 0 1em;
  position: relative;
}

.entry-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 5px solid var(--color-main);
  border-bottom: 1px solid var(--color-border);
  padding: 0.4em 0 0.4em 0.9em;
  margin: 1.8em 0 1em;
  color: var(--color-text);
}

.entry-content h4 {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3em 0 0.3em 0.7em;
  border-left: 3px solid var(--color-accent);
  margin: 1.5em 0 0.8em;
}

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

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

.entry-content ul li {
  position: relative;
  list-style: none;
  padding-left: 1.4em;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--color-main);
  border-radius: 50%;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-main);
  background-color: rgba(19, 178, 170, 0.05);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

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

.entry-content table th,
.entry-content table td {
  border: 1px solid var(--color-border);
  padding: 0.6em 0.9em;
  text-align: left;
}

.entry-content table th {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
}

.entry-content table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.entry-content img {
  border-radius: var(--border-radius-sm);
  margin: 1em auto;
}

.entry-content a {
  color: var(--color-main);
  text-decoration: underline;
  text-decoration-color: rgba(19, 178, 170, 0.4);
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--color-secondary);
}

.entry-content strong {
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(255, 179, 107, 0.4) 60%);
}

.entry-content code {
  background-color: #f0f0f0;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: monospace;
}

.entry-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 1.2em 1.5em;
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  margin: 1.5em 0;
}

/* ============================================
   Info Box / Point Box
============================================ */
.entry-content .point-box {
  background: rgba(19, 178, 170, 0.07);
  border: 2px solid var(--color-main);
  border-radius: var(--border-radius);
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

.entry-content .point-box-title {
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.entry-content .warning-box {
  background: rgba(255, 179, 107, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

/* ============================================
   Post Navigation (prev/next)
============================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

.nav-previous a,
.nav-next a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--color-text);
  text-decoration: none;
}

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

.nav-next a {
  flex-direction: row-reverse;
}

.nav-direction {
  font-size: 0.72rem;
  color: var(--color-main);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

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

/* ============================================
   Related Posts
============================================ */
.related-posts {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.related-posts-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-posts-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--color-main);
  border-radius: 2px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============================================
   Tags
============================================ */
.post-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tags-label {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.tag-link {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 12px;
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  transition: var(--transition);
}

.tag-link:hover {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* ============================================
   Author Box
============================================ */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--color-border);
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.author-bio {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Comments
============================================ */
.comments-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-secondary);
}

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

.comment-body {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 16px;
}

.comment-author strong {
  font-weight: 700;
  color: var(--color-secondary);
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.comment-content p {
  font-size: 0.9rem;
  margin: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-main);
}

.comment-form .submit {
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  padding: 10px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
}

.comment-form .submit:hover {
  background: var(--color-secondary);
}

/* ============================================
   Sidebar
============================================ */
.sidebar {
  position: sticky;
  top: 80px;
}

.widget {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.widget-title {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  margin: 0;
  letter-spacing: 0.03em;
}

.widget-content {
  padding: 16px 18px;
}

/* Widget: Recent Posts */
.widget-recent-posts li {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.widget-recent-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-posts a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.widget-recent-posts a:hover {
  color: var(--color-main);
}

.widget-recent-posts .thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: #ddd;
}

.widget-recent-posts .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Widget: Categories */
.widget-categories li {
  border-bottom: 1px solid var(--color-border);
}

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

.widget-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.widget-categories a:hover {
  color: var(--color-main);
}

.widget-categories .cat-count {
  background: var(--color-bg);
  color: var(--color-text-light);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 30px;
}

/* Widget: Search */
.widget-search .search-form {
  display: flex;
  gap: 8px;
}

.widget-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
}

.widget-search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-main);
}

.widget-search button {
  background: var(--color-main);
  color: var(--color-white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  transition: background-color var(--transition);
}

.widget-search button:hover {
  background: var(--color-secondary);
}

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

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
  text-align: left;
}

/* Widget: Tag Cloud */
.widget-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-tag-cloud a {
  display: inline-block;
  font-size: 0.78rem !important;
  padding: 3px 10px;
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  transition: var(--transition);
}

.widget-tag-cloud a:hover {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* Standard WordPress Widgets */
.widget ul {
  list-style: none;
}

.widget ul li a {
  color: var(--color-text);
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

/* ============================================
   Page Header (Archive, Category, Search)
============================================ */
.page-header {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.archive-label {
  display: inline-block;
  background: var(--color-main);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 30px;
  margin-bottom: 10px;
}

/* ============================================
   404 / No Posts
============================================ */
.not-found-section,
.no-results {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 60px 40px;
  text-align: center;
}

.not-found-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.not-found-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.not-found-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 60px;
}

.footer-widgets {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-main);
}

.footer-widget-content {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-widget-content a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-widget-content a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: color var(--transition);
}

.footer-nav ul li:last-child a {
  border-right: none;
}

.footer-nav ul li a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Search Results
============================================ */
.search-results-header {
  margin-bottom: 24px;
}

.search-query {
  color: var(--color-main);
  font-weight: 700;
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-main);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-main);
  border: 2px solid var(--color-main);
}

.btn-outline:hover {
  background: var(--color-main);
  color: var(--color-white);
}

/* ============================================
   Sticky Sidebar Ad / Banner
============================================ */
.ad-banner {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

/* ============================================
   Mobile Menu Overlay
============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--color-secondary);
  z-index: 201;
  overflow-y: auto;
  transition: right 0.35s ease;
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-menu {
  list-style: none;
  padding: 12px 0;
}

.mobile-nav-menu li a {
  display: block;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.mobile-nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container-width: 100%;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav-overlay {
    display: block;
  }

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

  .single-header,
  .single-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .single-title {
    font-size: 1.3rem;
  }

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

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

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

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

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

@media (max-width: 400px) {
  .header-inner {
    padding: 0 12px;
  }

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