/*
Theme Name: Stoics
Theme URI: https://hustlestock.com/stoics
Author: HustleStock
Author URI: https://hustlestock.com
Description: Stoics is a fast, plugin-free WordPress theme built for writers, thinkers, and minimalists. Clean typography with bundled Inter and Playfair Display fonts.
Version: 1.4.1
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stoics
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/


/* ========================================
   CSS VARIABLES (Set by Customizer)
   ======================================== */
:root {
  /* Colors - Julia theme defaults */
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --header-bg: #ffffff;
  --nav-bg: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2d2d2d;
  --accent-hover: #000000;
  
  /* Layout */
  --content-width: 1200px;
  --card-spacing: 30px;
  --border-radius: 8px;
  
  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --title-size: clamp(40px, 12vw, 80px);
  --title-weight: 700;
  --body-size: 16px;
  
  /* Image */
  --image-aspect: 4 / 3;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-primary);
  background: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

@media (min-width: 640px) {
  .container {
    padding: 0 30px;
  }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: var(--header-bg);
  padding: 60px 0 40px;
  text-align: center;
}

.site-header.layout-left {
  text-align: left;
}

.site-header.layout-left .brand {
  align-items: flex-start;
}

.brand {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  line-height: 0.9;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.site-title a {
  color: inherit;
}

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

.site-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
  font-weight: 500;
}

.header-widget-area {
  margin-top: 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
  background: var(--nav-bg);
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav > ul > li {
  position: relative;
}

.nav a {
  display: block;
  padding: 18px 25px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* Dropdown Submenus */
.nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: calc(var(--border-radius) / 2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  flex-direction: column;
  padding: 8px 0;
  pointer-events: none;
}

.nav ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav ul ul li {
  width: 100%;
}

.nav ul ul a {
  padding: 12px 20px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.5px;
  border-radius: 0;
}

.nav ul ul a:hover {
  background: var(--bg-tertiary);
  padding-left: 25px;
}

/* Third level submenus */
.nav ul ul ul {
  left: 100%;
  top: 0;
}

/* Menu item with children indicator */
.nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.nav ul ul .menu-item-has-children > a::after {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  border-right: 0;
  margin-left: auto;
  float: right;
  margin-top: 2px;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
@media (max-width: 1024px) {
  /* Force hide all submenus by default on mobile */
  .nav ul ul {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    display: none;
  }
  
  /* Completely disable hover effects on mobile */
  .nav ul li:hover > ul {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    display: none;
  }
  
  /* Disable hover background color change on parent items with children on mobile */
  .nav .menu-item-has-children > a:hover {
    background: transparent;
  }
  
  /* Only show submenu when explicitly toggled with .submenu-open class */
  .nav ul li.submenu-open > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: flex !important;
  }
  
  /* Rotate arrow to point up when submenu is open */
  .nav .menu-item-has-children.submenu-open > a::after {
    transform: rotate(180deg);
  }
  
  /* Ensure opened submenus stay visible when interacting with them */
  .nav ul li.submenu-open > ul:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: flex !important;
  }
}

/* ========================================
   POST GRIDS
   ======================================== */
.posts-grid {
  display: grid;
  gap: var(--card-spacing);
  margin-bottom: 60px;
}

/* Grid Layouts */
.posts-grid.layout-3-column {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.posts-grid.layout-2-column {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (min-width: 768px) {
  .posts-grid.layout-3-column {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .posts-grid.layout-2-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* List View */
.posts-grid.layout-list {
  grid-template-columns: 1fr;
  gap: 40px;
}

.posts-grid.layout-list .post {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.posts-grid.layout-list .post-image {
  flex: 0 0 350px;
  margin-bottom: 0;
  aspect-ratio: auto;
}

.posts-grid.layout-list .post-content {
  flex: 1;
  padding: 30px;
}

/* Masonry Layouts */
.posts-grid.layout-masonry,
.posts-grid.layout-2-column-masonry {
  display: block;
  column-gap: 30px;
}

.posts-grid.layout-masonry {
  column-count: 3;
}

.posts-grid.layout-2-column-masonry {
  column-count: 2;
}

.posts-grid.layout-masonry .post,
.posts-grid.layout-2-column-masonry .post {
  display: inline-block;
  width: 100%;
  margin-bottom: 30px;
  break-inside: avoid;
}

.posts-grid.layout-masonry .post-image,
.posts-grid.layout-2-column-masonry .post-image {
  aspect-ratio: auto;
}

@media (max-width: 1024px) {
  .posts-grid.layout-masonry,
  .posts-grid.layout-2-column-masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .posts-grid.layout-masonry,
  .posts-grid.layout-2-column-masonry {
    column-count: 1;
  }
}

/* ========================================
   POST CARDS
   ======================================== */
.post {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post:hover {
  transform: translateY(-4px);
}

.post-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  aspect-ratio: var(--image-aspect);
  width: 100%;
  background: var(--bg-tertiary);
}

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

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

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

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  flex-wrap: wrap;
}

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

.meta a {
  color: var(--text-secondary);
}

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

.post-title {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.post-title a {
  color: inherit;
}

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

.post-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 15px;
  flex: 1;
}

.post-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: calc(var(--border-radius) / 2);
  transition: all 0.2s ease;
  align-self: flex-start;
}

.read-more:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: white;
}

/* ========================================
   SIDEBAR
   ======================================== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 60px 0;
}
.main-grid.has-hero {
  padding-top: 0;
}
@media (min-width: 1024px) {
  .main-grid.has-sidebar.sidebar-right {
    grid-template-columns: 2fr 1fr;
  }
  
  .main-grid.has-sidebar.sidebar-left {
    grid-template-columns: 1fr 2fr;
  }
  
  .main-grid.has-sidebar.sidebar-left .sidebar {
    order: -1;
  }
}

.sidebar {
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 60px;
}

.widget {
  margin-bottom: 40px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

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

.widget li {
  padding: 8px 0;
}

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

.widget a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* Round avatars in widgets */
.widget .avatar,
.sidebar .avatar,
.header-widget-area .avatar {
  border-radius: 50%;
  max-width: 150px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* ========================================
   AUTHOR WELCOME WIDGET
   ======================================== */
.author-welcome-widget {
  max-width: 300px;
  padding: 30px 20px;
  background: var(--author-widget-bg, var(--bg-primary));
  border-radius: var(--author-widget-radius, var(--border-radius));
  text-align: var(--author-widget-align, center);
  margin: 0 auto;
}

.author-welcome-widget .author-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
}

.author-welcome-widget .author-name {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-primary);
}

.author-welcome-widget .author-bio {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========================================
   SINGLE POST CONTENT
   ======================================== */
.post-header {
  margin-bottom: 15px;
}

.featured-image {
  margin: 15px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-content-text {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
}

.post-content-text h1,
.post-content-text h2,
.post-content-text h3,
.post-content-text h4,
.post-content-text h5,
.post-content-text h6 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2em 0 0.75em;
}

.post-content-text h2 {
  font-size: 32px;
}

.post-content-text h3 {
  font-size: 26px;
}

.post-content-text p {
  margin: 0 0 1.5em;
}

.post-content-text a {
  text-decoration: underline;
}

.post-content-text blockquote {
  border-left: 4px solid var(--border-strong);
  padding-left: 30px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 20px;
}

.post-content-text img {
  border-radius: var(--border-radius);
  margin: 2em 0;
}

.post-content-text ul,
.post-content-text ol {
  margin: 1.5em 0;
  padding-left: 30px;
}

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

/* ========================================
   POST NAVIGATION
   ======================================== */
.post-navigation {
  margin: 60px 0;
  padding: 30px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

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

.post-navigation .nav-subtitle {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.post-navigation .nav-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.post-navigation a:hover .nav-title {
  color: var(--accent);
}

/* ========================================
   POST TAGS
   ======================================== */
.post-tags {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.post-tags strong {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: calc(var(--border-radius) / 2);
  font-size: 13px;
  margin: 5px 5px 5px 0;
  transition: all 0.2s ease;
}

.post-tags a:hover {
  background: var(--accent);
  color: white;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 60px 0 0;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: calc(var(--border-radius) / 2);
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  color: var(--accent);
}

.page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

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

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
}

/* ========================================
   SOCIAL SHARING
   ======================================== */
.social-sharing {
  margin: 40px 0;
  padding: 30px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.social-sharing-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.social-sharing-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.social-share-button svg {
  flex-shrink: 0;
}

.social-share-button.facebook {
  background: #1877f2;
  color: white;
}

.social-share-button.facebook:hover {
  background: #166fe5;
}

.social-share-button.twitter {
  background: #1da1f2;
  color: white;
}

.social-share-button.twitter:hover {
  background: #1a94da;
}

.social-share-button.pinterest {
  background: #e60023;
  color: white;
}

.social-share-button.pinterest:hover {
  background: #d00020;
}

.social-share-button.email {
  background: var(--accent);
  color: white;
}

.social-share-button.email:hover {
  background: var(--accent-hover);
}

.social-share-button.copy-link {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.social-share-button.copy-link:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
}

/* ========================================
   AUTHOR BOX
   ======================================== */
.author-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.author-box-avatar {
  flex-shrink: 0;
}

.author-box-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

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

.author-box-name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.author-box-name a {
  color: var(--text-primary);
}

.author-box-name a:hover {
  color: var(--accent);
}

.author-box-bio {
  margin: 0 0 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.author-box-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.author-box-link:hover {
  color: var(--accent-hover);
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
  margin: 60px 0;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

.related-posts-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 30px;
  font-family: var(--font-serif);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.related-post {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.related-post-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 20px;
}

.related-post-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.related-post-title a {
  color: var(--text-primary);
}

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

.related-post-meta {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-primary);
  padding: 50px 0 30px;
  text-align: center;
  margin-top: 80px;
}

.footer-nav {
  margin-bottom: 30px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-menu a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.site-footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

/* Footer Widgets */
.footer-widgets {
  background: var(--bg-primary);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget:last-child {
  margin-bottom: 0;
}

.footer-widget p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
}

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

.footer-widget li {
  padding: 8px 0;
}

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

.footer-widget a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

.comments-title {
  font-size: 24px;
  margin-bottom: 30px;
  font-family: var(--font-serif);
}

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

.comment {
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button,
input[type="submit"] {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
/* ========================================
   GUTENBERG BUTTON BLOCKS
   ======================================== */
.wp-block-button__link {
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  text-decoration: none !important;
}

/* Default/Fill style buttons */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  color: white !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus {
  color: white !important;
  opacity: 0.9;
}

/* Outline style buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent);
}

/* ========================================
   UTILITIES
   ======================================== */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skip-link.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background-color: var(--bg-secondary);
  border-radius: calc(var(--border-radius) / 2);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--accent);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.alignleft {
  float: left;
  margin: 0 30px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 30px;
}

.aligncenter {
  display: block;
  margin: 30px auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
  .site-header {
    padding: 40px 0 30px;
  }
  
  .brand {
    margin-bottom: 30px;
  }
  
  .nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .nav a {
    padding: 15px 30px;
    width: 100%;
    text-align: center;
  }
  
  /* Mobile submenu styles */
  .nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: var(--bg-tertiary);
    border-radius: 0;
  }
  
  .nav ul ul a {
    padding-left: 40px;
    text-align: left;
  }
  
  .nav ul ul ul a {
    padding-left: 60px;
  }
  
  .nav .menu-item-has-children > a::after {
    float: right;
  }
  
  .posts-grid.layout-list .post {
    flex-direction: column;
  }
  
  .posts-grid.layout-list .post-image {
  flex: unset;
  width: 100%;
  aspect-ratio: auto;
}
  
  .main-grid {
    gap: 40px;
    padding: 40px 0;
  }
  
  .sidebar {
    position: static;
    top: auto;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .social-sharing-buttons {
    flex-direction: column;
  }
  
  .social-share-button {
    width: 100%;
    justify-content: center;
  }
  
  .footer-widgets {
    padding: 40px 0 20px;
  }
  
  .footer-widgets-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .post-content {
    padding: 20px;
  }
  
  .posts-grid {
    gap: 30px;
  }
  
  .author-welcome-widget {
    max-width: 280px;
    padding: 20px;
  }
  
  .author-welcome-widget .author-avatar {
    width: 80px;
    height: 80px;
  }
}
/* ========================================
   WORDPRESS CORE CLASSES
   ======================================== */
.sticky {
  display: block;
}

.wp-caption {
  max-width: 100%;
  background: var(--bg-tertiary);
  padding: 10px;
  border-radius: calc(var(--border-radius) / 2);
  margin-bottom: 1.5em;
}

.wp-caption-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 5px 0 0;
  text-align: center;
}

.gallery-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: block;
  text-align: center;
}

.bypostauthor {
  /* Style for comments by the post author */
}
/* ========================================
   GUTENBERG BLOCKS SUPPORT
   ======================================== */

/* Wide and Full Width Alignments */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Columns Block */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 1.5em;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 781px) {
  .wp-block-columns {
    flex-direction: column;
  }
}

/* Group Block */
.wp-block-group {
  margin-bottom: 1.5em;
}

.wp-block-group__inner-container {
  padding: 0;
}

.wp-block-group.has-background {
  padding: 2em;
  margin-bottom: 1.5em;
}

/* Cover Block */
.wp-block-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  margin-bottom: 1.5em;
}

.wp-block-cover__inner-container {
  width: 100%;
  z-index: 1;
  color: #fff;
}

.wp-block-cover.has-background-dim::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: inherit;
  opacity: 0.5;
}

/* Media & Text Block */
.wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
  gap: 2em;
  align-items: center;
  margin-bottom: 1.5em;
}

.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 50%;
}

.wp-block-media-text__media {
  margin: 0;
}

.wp-block-media-text__content {
  padding: 0;
}

@media (max-width: 781px) {
  .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 0;
  }
}

/* Quote Block */
.wp-block-quote {
  border-left: 4px solid var(--border-strong);
  padding-left: 30px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-secondary);
}

.wp-block-quote cite {
  display: block;
  margin-top: 1em;
  font-size: 0.9em;
  font-style: normal;
  color: var(--text-muted);
}

.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
  border-left: none;
  padding-left: 0;
  font-size: 1.5em;
  text-align: center;
}

/* Pullquote Block */
.wp-block-pullquote {
  padding: 2em 0;
  margin: 2em 0;
  border-top: 4px solid var(--border-strong);
  border-bottom: 4px solid var(--border-strong);
  text-align: center;
}

.wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.5em;
  font-style: italic;
}

.wp-block-pullquote cite {
  margin-top: 1em;
  font-size: 0.8em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--text-muted);
}

/* Separator Block */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em auto;
}

.wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  max-width: none;
  line-height: 1;
  height: auto;
}

.wp-block-separator.is-style-dots::before {
  content: '···';
  color: var(--text-muted);
  font-size: 1.5em;
  letter-spacing: 2em;
  padding-left: 2em;
  font-family: serif;
}

/* Spacer Block */
.wp-block-spacer {
  clear: both;
}

/* Table Block */
.wp-block-table {
  margin: 2em 0;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.75em;
  border: 1px solid var(--border);
}

.wp-block-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  text-align: left;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--bg-tertiary);
}

/* Code Block */
.wp-block-code {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: calc(var(--border-radius) / 2);
  padding: 1.5em;
  margin: 2em 0;
  overflow-x: auto;
}

.wp-block-code code {
  background: none;
  padding: 0;
  border: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: var(--text-primary);
}

/* Preformatted Block */
.wp-block-preformatted {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: calc(var(--border-radius) / 2);
  padding: 1.5em;
  margin: 2em 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}

/* Verse Block */
.wp-block-verse {
  font-family: inherit;
  padding: 1.5em;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--border-strong);
  margin: 2em 0;
  white-space: pre-wrap;
}

/* Gallery Block */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin: 2em 0;
  list-style: none;
  padding: 0;
}

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

.wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wp-block-gallery.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-image {
  margin: 0;
}

.wp-block-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--border-radius) / 2);
}

@media (max-width: 767px) {
  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Image Block */
.wp-block-image {
  margin: 2em 0;
}

.wp-block-image img {
  height: auto;
  max-width: 100%;
  border-radius: var(--border-radius);
}

.wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.875em;
  text-align: center;
  color: var(--text-secondary);
}

.wp-block-image.alignleft,
.wp-block-image.alignright {
  max-width: 50%;
}

/* Video Block */
.wp-block-video {
  margin: 2em 0;
}

.wp-block-video video {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Audio Block */
.wp-block-audio {
  margin: 2em 0;
}

.wp-block-audio audio {
  width: 100%;
}

/* File Block */
.wp-block-file {
  margin: 2em 0;
  padding: 1.5em;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

.wp-block-file a {
  text-decoration: none;
}

.wp-block-file a:hover {
  text-decoration: underline;
}

.wp-block-file .wp-block-file__button {
  background: var(--accent);
  color: white;
  padding: 0.75em 1.5em;
  border-radius: calc(var(--border-radius) / 2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875em;
  transition: all 0.2s ease;
}

.wp-block-file .wp-block-file__button:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

/* Embed Blocks */
.wp-block-embed {
  margin: 2em 0;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

/* Search Block */
.wp-block-search {
  margin: 2em 0;
}

.wp-block-search__button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: calc(var(--border-radius) / 2);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-block-search__button:hover {
  background: var(--accent-hover);
}

/* Latest Posts Block */
.wp-block-latest-posts {
  list-style: none;
  padding: 0;
}

.wp-block-latest-posts li {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border);
}

.wp-block-latest-posts li:last-child {
  border-bottom: none;
}

.wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.875em;
  color: var(--text-muted);
  margin-top: 0.5em;
}

.wp-block-latest-posts__post-excerpt {
  margin-top: 0.5em;
  color: var(--text-secondary);
}

/* Social Links Block */
.wp-block-social-links {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.wp-block-social-links .wp-social-link {
  background: var(--accent);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.wp-block-social-links .wp-social-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Color Classes */
.has-text-color a {
  color: inherit;
}

/* Background Colors */
.has-background {
  padding: 2em;
  margin-bottom: 1.5em;
  border-radius: var(--border-radius);
}
/* ========================================
   HERO POST
   ======================================== */
.hero-post {
  margin-top: 60px;
  margin-bottom: 60px;
  width: 100%;
}

.hero-post-image {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-secondary);
}

.hero-post-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  grid-column: 2;
  grid-row: 1;
}

.hero-post-overlay {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding: 60px;
  background: var(--bg-secondary);
  z-index: 1;
}

.hero-post-content {
  max-width: 100%;
  color: var(--text-primary);
}

.hero-post-content .meta {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.hero-post-content .meta a {
  color: var(--text-secondary);
}

.hero-post-content .meta a:hover {
  color: var(--accent);
}

.hero-post-content .meta span {
  color: var(--text-muted);
}

.hero-post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

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

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

.hero-post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 25px;
}

.hero-post-excerpt p {
  margin: 0;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: calc(var(--border-radius) / 2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.hero-read-more:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-post-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  
  .hero-post-image img {
    grid-column: 1;
    grid-row: 1;
    min-height: 300px;
  }
  
  .hero-post-overlay {
    grid-column: 1;
    grid-row: 2;
    padding: 40px 30px;
  }
}

@media (max-width: 767px) {
  .hero-post {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  
  .hero-post-overlay {
    padding: 30px 20px;
  }
  
  .hero-post-title {
    font-size: 24px;
  }
  
  .hero-post-excerpt {
    font-size: 15px;
  }
}
