/*
Theme Name: Firva Digital Marketing Blog
Theme URI: https://firvadigitalmarketing.com
Author: Firva Digital Marketing
Author URI: https://firvadigitalmarketing.com
Description: Tema blog profesional khusus untuk Firva Digital Marketing dengan warna brand biru yang elegan, fully customizable, SEO-ready, dan mobile responsive.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firva-blog
Tags: blog, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   ========================================= */
:root {
  --blue-deep:    #0A2472;
  --blue-mid:     #1A56DB;
  --blue-bright:  #3B82F6;
  --blue-light:   #EFF6FF;
  --blue-lighter: #DBEAFE;
  --accent-green: #10B981;
  --accent-orange:#F59E0B;
  --text-dark:    #0F172A;
  --text-body:    #475569;
  --text-muted:   #94A3B8;
  --white:        #FFFFFF;
  --bg:           #F8FAFF;
  --border:       #E2E8F0;
  --shadow:       0 4px 24px rgba(10,36,114,0.08);
  --shadow-md:    0 8px 40px rgba(10,36,114,0.12);
  --shadow-lg:    0 16px 56px rgba(10,36,114,0.16);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 800;
}

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--blue-deep); }

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

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

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

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   NAVBAR
   ========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-deep);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Navigation Menu */
#primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--blue-mid);
  background: var(--blue-light);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s;
  z-index: 100;
}

.nav-menu li { position: relative; }

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-menu .sub-menu a:hover {
  color: var(--blue-mid);
  background: var(--blue-light);
}

/* Header Search & CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 200px;
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-dark);
  transition: all 0.25s;
  outline: none;
}

.header-search input:focus {
  border-color: var(--blue-bright);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  width: 260px;
}

.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

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

/* =========================================
   HERO / BANNER BLOG
   ========================================= */
.blog-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue-bright) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E") repeat;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.blog-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* =========================================
   BLOG LAYOUT
   ========================================= */
.blog-layout {
  padding: 60px 0 80px;
}

.blog-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* =========================================
   POST CARDS
   ========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

/* Featured Post (first post full width) */
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--blue-light);
}

.post-card:first-child .post-thumbnail {
  aspect-ratio: 21/9;
}

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

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

.post-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue-mid);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-reading-time {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--text-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.post-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card:first-child .post-body {
  padding: 32px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.post-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text-dark);
  transition: color 0.2s;
}

.post-card:first-child .post-title {
  font-size: 1.4rem;
}

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

.post-title a:hover {
  color: var(--blue-mid);
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card:first-child .post-excerpt {
  -webkit-line-clamp: 4;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

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

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-mid);
  transition: all 0.2s;
}

.read-more-link:hover {
  gap: 8px;
  color: var(--blue-deep);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination-wrap {
  margin-top: 48px;
}

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

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  background: white;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--blue-mid);
  color: white;
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 92px;
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue-light);
  position: relative;
}

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

/* Search Widget */
.search-widget-form {
  position: relative;
}

.search-widget-form input {
  width: 100%;
  padding: 11px 44px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: all 0.25s;
}

.search-widget-form input:focus {
  border-color: var(--blue-bright);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.search-widget-form button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: var(--blue-mid);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.search-widget-form button:hover {
  background: var(--blue-deep);
}

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

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all 0.2s;
}

.category-list li a:hover {
  background: var(--blue-light);
  color: var(--blue-mid);
}

.category-count {
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-light);
}

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

.recent-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

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

.recent-post-title a {
  color: inherit;
  text-decoration: none;
}
.recent-post-title a:hover { color: var(--blue-mid); }

.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tags Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s;
  text-decoration: none;
}

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

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border: none;
  text-align: center;
}

.cta-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255,255,255,0.15);
}

.cta-widget .widget-title::after {
  background: rgba(255,255,255,0.5);
}

.cta-widget p {
  color: rgba(255,255,255,0.85);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.btn-cta-widget {
  display: block;
  padding: 12px 20px;
  background: white;
  color: var(--blue-mid);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-cta-widget:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* =========================================
   SINGLE POST
   ========================================= */
.single-layout {
  padding: 60px 0 80px;
}

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

.single-article {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.single-featured-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.single-article-body {
  padding: 44px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.post-category-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.single-post-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}

/* Post Content Typography */
.post-content {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.85;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
  padding-top: 0.5rem;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: var(--text-dark);
}

.post-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 1.4rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.6rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.8rem auto;
  box-shadow: var(--shadow);
}

.post-content a {
  color: var(--blue-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content blockquote {
  border-left: 4px solid var(--blue-mid);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

.post-content code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--blue-deep);
}

.post-content pre {
  background: var(--text-dark);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.8rem 0;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.9rem;
}

.post-content th {
  background: var(--blue-mid);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.post-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.post-content tr:nth-child(even) td {
  background: var(--bg);
}

/* Post Tags */
.post-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.post-tags .tag-cloud { gap: 6px; }

/* Author Box */
.author-box {
  margin-top: 40px;
  padding: 28px;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

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

.author-box-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-mid);
  margin-bottom: 4px;
}

.author-box-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-post-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s;
  text-decoration: none;
}

.nav-post-link:hover {
  border-color: var(--blue-bright);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-post-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.nav-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.related-posts-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
}

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

/* Comments */
.comments-section {
  margin-top: 52px;
  padding: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.comments-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

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

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

.comment:last-child { border-bottom: none; }

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

.comment-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  overflow: hidden;
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comment-content { font-size: 0.9rem; line-height: 1.7; }

/* Comment Form */
.comment-respond {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comment-reply-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.comment-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form-row-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-field input,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--bg);
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-bright);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

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

.btn-submit-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}

.btn-submit-comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.4);
}

/* =========================================
   NO POSTS / 404
   ========================================= */
.no-posts {
  text-align: center;
  padding: 80px 24px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.no-posts-icon { font-size: 4rem; margin-bottom: 20px; }
.no-posts h2 { font-size: 1.4rem; margin-bottom: 12px; }
.no-posts p { color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--blue-bright); }

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: white; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: white;
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.45);
  color: white;
}

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

.btn-outline:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================
   SEARCH RESULTS PAGE
   ========================================= */
.search-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 60px 0;
  text-align: center;
  color: white;
}

.search-hero h1 { color: white; margin-bottom: 8px; }
.search-hero p { color: rgba(255,255,255,0.8); }

/* =========================================
   CATEGORY / ARCHIVE PAGE
   ========================================= */
.archive-hero {
  background: var(--blue-light);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.archive-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }

.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.category-filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: white;
}

/* =========================================
   LOADING SKELETON
   ========================================= */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton {
  background: var(--border);
  border-radius: var(--radius-sm);
  animation: skeleton-pulse 1.5s ease infinite;
}

/* =========================================
   BACK TO TOP
   ========================================= */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,86,219,0.4);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.5);
}

/* =========================================
   PROGRESS BAR (reading progress)
   ========================================= */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-bright));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .blog-grid-wrapper,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }

  #primary-nav.open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--blue-light);
    padding: 4px 4px 4px 16px;
    margin-top: 4px;
  }

  .header-search { display: none; }

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

  .posts-grid .post-card:first-child {
    grid-column: auto;
  }

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

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

  .single-article-body { padding: 24px; }

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

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

  .comment-form-wrap {
    grid-template-columns: 1fr;
  }

  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; gap: 10px; }
  .header-actions .btn { display: none; }
}

/* =========================================
   WORDPRESS BLOCK EDITOR ALIGNMENT
   ========================================= */
.alignwide {
  margin-left: -32px;
  margin-right: -32px;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.aligncenter {
  text-align: center;
  margin: 0 auto;
}

/* WP Caption */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Gutenberg Gallery */
.wp-block-gallery {
  margin-bottom: 1.8rem;
}
