/*
Theme Name: Maxsan
Theme URI: https://maxsan.com
Description: A modern, professional WordPress blog theme perfect for news websites, multi-blog platforms, niche blogs, and personal blogs. Features responsive design, dark mode, customizable layouts, and SEO optimization. Ideal for all types of blog websites.
Author: Maxsan
Author URI: https://maxsan.com
Version: 5.12.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxsan
Tags: blog, news, magazine, two-columns, responsive-layout, dark-mode, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, professional, seo-friendly, multi-purpose
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { 
  margin: 0; 
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif; 
  color: #0b0b0c; 
  background: #FCFCF9; 
  overflow-x: hidden; 
  overflow-y: scroll; 
  scrollbar-gutter: stable;
  transition: opacity 0.2s ease-in;
  /* Prevent layout shift on refresh */
  min-height: 100vh;
  position: relative;
}
a { text-decoration: none; }

/* Accessibility: Skip to content link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 999999;
  padding: 12px 16px;
  background: #0b0b0c;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus {
  top: 0;
  left: 0;
  position: fixed;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Accessibility: Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark theme focus indicators */
body.dark-theme a:focus-visible,
body.dark-theme button:focus-visible,
body.dark-theme input:focus-visible,
body.dark-theme textarea:focus-visible,
body.dark-theme select:focus-visible {
  outline-color: #ffffff;
}

/* Fix: Dark theme circular buttons focus states */
body.dark-theme .social-btn:focus,
body.dark-theme .social-btn:active,
body.dark-theme .social-btn:focus-visible,
body.dark-theme .theme-toggle-btn:focus,
body.dark-theme .theme-toggle-btn:active,
body.dark-theme .theme-toggle-btn:focus-visible,
body.dark-theme .buy-theme-btn:focus,
body.dark-theme .buy-theme-btn:active,
body.dark-theme .buy-theme-btn:focus-visible,
body.dark-theme .channel-btn:focus,
body.dark-theme .channel-btn:active,
body.dark-theme .channel-btn:focus-visible {
  outline-color: #ffffff;
  border-radius: 999px;
}

/* Remove focus outline from nav links in dark theme - no border on click */
body.dark-theme .nav-link:focus,
body.dark-theme .nav-link:active,
body.dark-theme .nav-link:focus-visible,
body.dark-theme .site-nav .nav-list li a:focus,
body.dark-theme .site-nav .nav-list li a:active,
body.dark-theme .site-nav .nav-list li a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Screen reader only text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
:root {
  --container-max: 1200px;
  --g-1: 4px;
  --g-2: 8px;
  --g-3: 12px;
  --g-4: 16px;
  --g-6: 24px;
  --g-8: 32px;
  --g-10: 40px;
  --border: 1px solid #d4d4d4;
  --shadow-1: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);
  --radius-6: 8px;
  --text-dim: #5d6679;
}

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--g-4); }

/* Header */
.site-header { position: relative; background: #FCFCF9; border-bottom: none; }
/* Nav bar borders inside the header */
.site-header .header-inner { 
  border-bottom: var(--border);
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: var(--g-4);
}
.site-header > .container + .container { 
  padding-block: var(--g-3);
  padding-inline: var(--g-4);
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}
.site-nav { 
  border-bottom: var(--border); 
  padding-top: 0px;
  padding-bottom: 10px;
  margin-top: -1.5px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--g-4);
  box-sizing: border-box;
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--g-3); padding: var(--g-6) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--g-3); text-decoration: none; color: inherit; }
.brand-name { font-family: 'Advent Pro', 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: .2px; }

.social-buttons { display: flex; gap: var(--g-2); justify-self: start; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #F0F1F5; color: #0b0b0c; text-decoration: none; border: var(--border); border-radius: 999px; }
/* Fix: Keep circular border on focus/active states */
.social-btn:focus,
.social-btn:active,
.social-btn:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 999px;
}

/* When featured image is hidden - add background to header buttons */
body.featured-image-hidden:not(.dark-theme) .social-btn {
  background: #F0F1F5;
}
.social-icon { flex-shrink: 0; }

.theme-toggle-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #F0F1F5; color: #0b0b0c; border: var(--border); border-radius: 999px; cursor: pointer; }
/* Fix: Keep circular border on focus/active states */
.theme-toggle-btn:focus,
.theme-toggle-btn:active,
.theme-toggle-btn:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 999px;
}

/* When featured image is hidden - add background to theme toggle */
body.featured-image-hidden:not(.dark-theme) .theme-toggle-btn {
  background: #F0F1F5;
}
.theme-icon { flex-shrink: 0; }

/* Buy Theme Button */
.buy-theme-wrapper {
  position: relative;
}

.buy-theme-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 32px; 
  height: 32px; 
  background: #F0F1F5; 
  color: #0b0b0c; 
  border: var(--border); 
  border-radius: 999px; 
  cursor: pointer; 
  padding: 0;
}
/* Fix: Keep circular border on focus/active states */
.buy-theme-btn:focus,
.buy-theme-btn:active,
.buy-theme-btn:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 999px;
}

/* When featured image is hidden - add background to buy theme button */
body.featured-image-hidden:not(.dark-theme) .buy-theme-btn {
  background: #F0F1F5;
}

.buy-icon { 
  flex-shrink: 0; 
  width: 20px; 
  height: 20px;
  object-fit: contain;
  display: block;
}

.buy-icon-light {
  display: block;
}

.buy-icon-dark {
  display: none;
}

/* Dark theme - show white icon, hide black icon */
body.dark-theme .buy-icon-light {
  display: none;
}

body.dark-theme .buy-icon-dark {
  display: block;
}

/* Buy Theme Dropdown */
.buy-theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 320px;
  padding: 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.buy-theme-wrapper.active .buy-theme-dropdown {
  display: flex;
}

.buy-theme-dropdown-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--g-4);
  border-bottom: var(--border);
  gap: var(--g-3);
}

.buy-theme-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0b0b0c;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.4;
  flex: 1;
}

.buy-theme-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #5d6679;
  cursor: pointer;
  padding: 0;
}

.buy-theme-message {
  margin: 0;
  padding: 0 var(--g-4);
  font-size: 14px;
  color: #5d6679;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.buy-theme-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: var(--g-4);
  padding: var(--g-3) var(--g-4);
  background: #0b0b0c;
  color: #fff;
  border-radius: 8px;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  text-align: center;
}

.channel-btn { display: inline-flex; align-items: center; gap: var(--g-2); padding: 8px 12px; background: #F0F1F5; color: #0b0b0c; text-decoration: none; border: var(--border); border-radius: 999px; font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .2px; text-transform: uppercase; }
/* Fix: Keep circular border on focus/active states */
.channel-btn:focus,
.channel-btn:active,
.channel-btn:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
  border-radius: 999px;
}

/* When featured image is hidden - add background to channel button */
body.featured-image-hidden:not(.dark-theme) .channel-btn {
  background: #F0F1F5;
}
.whatsapp-icon { flex-shrink: 0; color: #0b0b0c; }

/* Theme Toggle - Right side buttons container */
.header-actions { display: flex; gap: 6px; justify-self: end; align-items: center; }

/* Dark Theme */
body.dark-theme {
  background: #0f0f0f;
  color: #ffffff;
}

body.dark-theme .site-header,
body.dark-theme .site-footer {
  background: #0f0f0f;
  color: #ffffff;
}

/* Light theme - ensure header and footer have same background as body */
.site-header,
.site-footer {
  background: #FCFCF9;
}

body.dark-theme .pager,
body.dark-theme .pager-wrapper a,
body.dark-theme .nav-link,
body.dark-theme .site-nav .nav-list li a,
body.dark-theme .social-btn,
body.dark-theme .theme-toggle-btn,
body.dark-theme .channel-btn,
body.dark-theme .buy-theme-btn {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #333333;
}


body.dark-theme .buy-theme-dropdown {
  background: #1a1a1a;
  border-color: #333333;
}

body.dark-theme .buy-theme-dropdown-header {
  border-bottom-color: #333333;
}

body.dark-theme .buy-theme-title {
  color: #ffffff;
}

body.dark-theme .buy-theme-close {
  color: #cccccc;
}

body.dark-theme .buy-theme-message {
  color: #cccccc;
}

body.dark-theme .buy-theme-email-link {
  background: #ffffff;
  color: #0b0b0c;
}

body.dark-theme .nav-link.is-active,
body.dark-theme .site-nav .nav-list li.current-menu-item > a,
body.dark-theme .site-nav .nav-list li.current_page_item > a,
body.dark-theme .site-nav .nav-list li.current_page_ancestor > a,
body.dark-theme .site-nav .nav-list li.current-page-ancestor > a,
body.dark-theme .site-nav .nav-list li.current-cat > a,
body.dark-theme .site-nav .nav-list li a.current,
body.dark-theme .page-numbers .current,
body.dark-theme .page-numbers span.current {
  background: #ffffff;
  color: #0f0f0f !important;
  border-color: #ffffff;
}

body.dark-theme .page-numbers a,
body.dark-theme .page-numbers span {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #333333;
}

body.dark-theme .brand-name,
body.dark-theme .page-title,
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3,
body.dark-theme p,
body.dark-theme li,
body.dark-theme strong {
  color: #ffffff;
}

body.dark-theme .page-header {
  border-color: #333333;
}

body.dark-theme .page-content h2,
body.dark-theme .page-content h3 {
  color: #ffffff;
}

body.dark-theme .page-content a,
body.dark-theme .entry-content a {
  color: #00BFFF;
  text-decoration: none;
}


body.dark-theme .footer-text,
body.dark-theme .footer-copy {
  color: #cccccc;
}

body.dark-theme .site-header .header-inner,
body.dark-theme .site-header > .container + .container,
body.dark-theme .site-nav {
  border-color: #333333;
}

/* Dark theme for mobile header border line */
@media (max-width: 640px) {
  body.dark-theme .site-header .header-inner::after {
    border-bottom-color: #333333;
  }
}

body.dark-theme .site-footer::before {
  background: #333333;
}



body.dark-theme .whatsapp-icon,
body.dark-theme .social-icon,
body.dark-theme .theme-icon {
  color: #ffffff;
}

body.dark-theme a {
  color: #ffffff;
}

body.dark-theme .section-heading {
  color: #ffffff;
}

body.dark-theme .section-heading::after {
  background: #ffffff;
}

.site-nav { width: 100%; }
.site-nav .nav-list { display: flex; gap: var(--g-2); align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; }
.site-nav .nav-list li { margin: 0; padding: 0; }
.nav-link, .site-nav .nav-list li a { appearance: none; border: var(--border); background: #F0F1F5; color: #0b0b0c; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .2px; text-transform: uppercase; text-decoration: none; display: inline-block; white-space: nowrap; }
/* Remove focus outline from nav links - no border on click */
.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible,
.site-nav .nav-list li a:focus,
.site-nav .nav-list li a:active,
.site-nav .nav-list li a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* When featured image is hidden - add background to nav links */
body.featured-image-hidden:not(.dark-theme) .nav-link,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li a {
  background: #F0F1F5;
}

/* Active nav links - full black background with white text (override featured-image-hidden) */
body.featured-image-hidden:not(.dark-theme) .nav-link.is-active,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li.current-menu-item > a,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li.current_page_item > a,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li.current_page_ancestor > a,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li.current-page-ancestor > a,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li.current-cat > a,
body.featured-image-hidden:not(.dark-theme) .site-nav .nav-list li a.current {
  background: #0b0b0c !important;
  color: #ffffff !important;
  border-color: #d4d4d4 !important;
}
.nav-link.is-active, 
.site-nav .nav-list li.current-menu-item > a, 
.site-nav .nav-list li.current_page_item > a, 
.site-nav .nav-list li.current_page_ancestor > a,
.site-nav .nav-list li.current-page-ancestor > a,
.site-nav .nav-list li.current-cat > a,
.site-nav .nav-list li a.current { 
  background: #0b0b0c; 
  color: #fff !important; 
  border-color: #d4d4d4; 
}

/* Content Wrapper - Two Column Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--g-8);
  align-items: start;
  padding-top: var(--g-6);
  padding-bottom: var(--g-10);
  padding-inline: var(--g-4);
  box-sizing: border-box;
}

/* Main */
.site-main { 
  padding-block: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Ensure posts section width matches header exactly */
.site-main.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--g-4);
}

/* Home page specific - reduced top padding */
body.home .content-wrapper { 
  padding-top: var(--g-6);
  padding-bottom: var(--g-10);
}

/* Category Posts Grid */
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--g-6);
}

.category-post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  overflow: hidden;
  border-radius: 10px;
}

/* Border styling when featured image is hidden */
.category-post-card.no-featured-image {
  border: var(--border);
  border-radius: 10px !important;
  padding: var(--g-4);
  background: #F0F1F5;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

/* Left side image layout - Desktop and Tablets only */
@media (min-width: 641px) {
  .category-post-card.no-featured-image.has-left-image {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: var(--g-4);
    align-items: start;
    padding: var(--g-4);
  }
  
  .category-post-image-left {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .category-post-thumbnail-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }
  
  /* Content area takes remaining 4/5th space */
  .category-post-card.no-featured-image.has-left-image .category-post-content {
    padding: 0;
  }
}

/* Hide left image on mobile devices */
@media (max-width: 640px) {
  .category-post-image-left {
    display: none;
  }
  
  .category-post-card.no-featured-image.has-left-image {
    display: block;
  }
}


/* Category logo background when featured image is hidden */
.category-post-card.no-featured-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-image: var(--category-logo, none);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Show logo only if CSS variable is set */
.category-post-card.no-featured-image[style*="--category-logo"]::before {
  background-image: var(--category-logo);
}

/* Ensure content is above background logo */
.category-post-card.no-featured-image > * {
  position: relative;
  z-index: 1;
}

.category-post-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 8px;
  background: #F0F1F5;
  min-height: 200px;
}

.category-post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease-in;
}

.category-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
  border-radius: 8px;
}

.category-post-badges {
  position: absolute;
  top: var(--g-3);
  left: var(--g-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-2);
  align-items: center;
  justify-content: flex-start;
}

.category-post-badges .badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Views Count Wrapper - Right Corner */
.category-post-views-wrapper {
  position: absolute;
  top: var(--g-3);
  right: var(--g-3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.category-post-views {
  color: #ffffff;
  text-shadow: none;
  font-weight: 700;
  margin: 0;
  font-size: 11px;
  letter-spacing: .2px;
  border: 1px solid #0b0b0c;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b0b0c;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  white-space: nowrap;
  display: inline-block;
}

/* Dark theme views count on featured images - white background with black text */
body.dark-theme .category-post-views {
  color: #0b0b0c;
  text-shadow: none;
  border: 1px solid #ffffff;
  background: #ffffff;
}

.category-post-content {
  padding: var(--g-4) 0 0 0;
}

/* Content header when featured image is hidden */
.category-post-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--g-3);
  gap: var(--g-3);
  width: 100%;
}

/* Ensure content padding is correct when no featured image */
.no-featured-image .category-post-content {
  padding: 0;
}

.no-featured-image .category-post-content-header .category-post-badges {
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-2);
  align-items: center;
  justify-content: flex-start;
}

/* When featured image is hidden - Category and Views labels styling */
.no-featured-image .category-post-content-header .category-post-badges .badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b0b0c !important;
  color: #ffffff !important;
  border: 1px solid #0b0b0c !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Dark theme - white background with black text for no-featured-image badges */
body.dark-theme .no-featured-image .category-post-content-header .category-post-badges .badge {
  background: #ffffff !important;
  color: #0b0b0c !important;
  border: 1px solid #ffffff !important;
}

.no-featured-image .category-post-content-header .category-post-views-wrapper {
  position: relative;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.no-featured-image .category-post-content-header .category-post-views {
  color: #ffffff !important;
  text-shadow: none;
  font-weight: 700;
  margin: 0;
  font-size: 11px;
  letter-spacing: .2px;
  border: 1px solid #0b0b0c !important;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b0b0c !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  white-space: nowrap;
  display: inline-block;
}

/* Dark theme views count - white background with black text */
body.dark-theme .no-featured-image .category-post-content-header .category-post-views {
  color: #0b0b0c !important;
  border: 1px solid #ffffff !important;
  background: #ffffff !important;
}

.category-post-title {
  margin: 0 0 var(--g-3);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.category-post-title a {
  color: #0b0b0c;
  text-decoration: none;
}

.category-post-description {
  margin: 0 0 var(--g-3);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.category-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--g-3);
  margin-top: auto;
}

.category-post-author {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.category-post-author strong {
  color: #0b0b0c;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}

.category-post-date {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

/* Dark Theme for Category Posts */
body.dark-theme .category-post-title a {
  color: #ffffff;
}

body.dark-theme .category-post-description {
  color: #cccccc;
}

body.dark-theme .category-post-author strong {
  color: #ffffff;
}

body.dark-theme .category-post-author,
body.dark-theme .category-post-date {
  color: #cccccc;
}

/* Dark theme for cards without featured image */
body.dark-theme .category-post-card.no-featured-image {
  border-color: #333333;
  background: #1a1a1a;
  border-radius: 10px !important;
}

/* Dark theme - Category logo background opacity */
body.dark-theme .category-post-card.no-featured-image::before {
  opacity: 0.12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Dark theme - Left side image layout (Desktop and Tablets) */
@media (min-width: 641px) {
  body.dark-theme .category-post-card.no-featured-image.has-left-image {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: var(--g-4);
    align-items: start;
    padding: var(--g-4);
    background: #1a1a1a;
  }
  
  body.dark-theme .category-post-card.no-featured-image.has-left-image .category-post-content {
    padding: 0;
  }
}

body.dark-theme .category-post-content-header .category-post-badges .badge {
  background: #ffffff;
  color: #0b0b0c;
  border: 1px solid #ffffff;
}

body.dark-theme .category-post-content-header .category-post-views {
  color: #0b0b0c;
  border: 1px solid #ffffff;
  background: #ffffff;
}

/* When featured image is hidden - 1 column layout on desktop and tablets */
.category-posts-grid:has(.no-featured-image) {
  grid-template-columns: 1fr;
  gap: var(--g-6);
}

/* Responsive - Category Sections */
@media (max-width: 1024px) {
  .category-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--g-6);
  }
  
  /* When featured image is hidden - 1 column layout on tablets */
  .category-posts-grid:has(.no-featured-image) {
    grid-template-columns: 1fr;
    gap: var(--g-6);
  }
}

@media (max-width: 640px) {
  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: var(--g-6);
  }
  
  .category-post-title {
    font-size: 16px;
  }
}

/* Section Headings */
.section-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: var(--g-8);
  color: #0b0b0c;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: var(--g-3);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0b0b0c;
  border-radius: 2px;
}


/* Dark mode for author icons */
body.dark-theme .author-icon {
  border-color: #ffffff;
  border-width: 1px;
  background: #1f2937;
  color: #9ca3af;
}

/* Dark mode - Contact Page */
/* Content width ONLY for single posts and static pages (NOT for home or category pages) */
/* No sidebar on single posts and pages - full width content */
body.single .content-wrapper,
body.page .content-wrapper {
  grid-template-columns: 1fr;
  max-width: 1200px;
  padding-top: var(--g-3);
}

body.single .site-main,
body.page .site-main {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--g-4);
  padding-top: var(--g-3);
}

/* Page Headings (for static pages like About, Contact, etc.) */
.page-header {
  text-align: center;
  margin-bottom: var(--g-6);
  padding-bottom: var(--g-3);
  padding-top: 0;
  border-bottom: var(--border);
}

.page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #0b0b0c;
}

.page-content {
  margin-top: var(--g-4);
}

.page-content h2 {
  margin-top: var(--g-6);
  margin-bottom: var(--g-3);
  font-size: 24px;
  font-weight: 600;
  color: #0b0b0c;
}

.page-content h3 {
  margin-top: var(--g-4);
  margin-bottom: var(--g-2);
  font-size: 20px;
  font-weight: 600;
  color: #0b0b0c;
}

.page-content p {
  margin-bottom: var(--g-3);
  line-height: 1.6;
}

.page-content ul, .page-content ol {
  margin-bottom: var(--g-3);
  padding-left: var(--g-6);
  line-height: 1.6;
}

.page-content li {
  margin-bottom: var(--g-1);
}

/* Images in page content - 1280x600 ratio with rounded corners */
.page-content img,
.entry-content img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 600;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: var(--g-6);
  display: block;
}

/* Links inside page content - blue color for light theme, no underline */
.page-content a,
.entry-content a {
  color: #0066CC;
  text-decoration: none;
}

/* Badge Styling */
.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #ffffff;
  background: #0b0b0c;
  border: 1px solid #0b0b0c;
  box-shadow: none;
  white-space: nowrap;
  text-decoration: none;
}

/* Badge as link - no hover effect */
.badge:hover,
.badge:focus {
  text-decoration: none;
  color: #ffffff;
}

/* Dark theme badges - white background with black text */
body.dark-theme .badge {
  color: #0b0b0c;
  background: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Dark theme badge link - no hover effect */
body.dark-theme .badge:hover,
body.dark-theme .badge:focus {
  text-decoration: none;
  color: #0b0b0c;
}

/* Author Icon Styling */
.author-icon {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #E4E7E5;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f9fafb;
  color: #6b7280;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  align-self: center;
}

.author-icon-light {
  display: block !important;
}

.author-icon-dark {
  display: none !important;
}

/* Dark theme - show white icon, hide black icon */
body.dark-theme .author-icon-light {
  display: none !important;
}

body.dark-theme .author-icon-dark {
  display: block !important;
}

/* Pagination */
.pagination { 
  display: flex; 
  flex-wrap: wrap; 
  gap: var(--g-4); 
  align-items: center; 
  justify-content: center; 
  margin-top: var(--g-6); 
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-column: 1 / -1; /* Span full width of grid */
}

/* Prev/Next Buttons */
.pager, .pager-wrapper a { appearance: none; border: var(--border); background: #F0F1F5; color: #0b0b0c; padding: 0 14px; height: 36px; border-radius: 10px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* When featured image is hidden - add background to pagination buttons */
body.featured-image-hidden:not(.dark-theme) .pager,
body.featured-image-hidden:not(.dark-theme) .pager-wrapper a {
  background: #F0F1F5;
}
.pager:disabled, .pager.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* WordPress Pagination Numbers */
.page-numbers { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.page-numbers li { margin: 0; padding: 0; list-style: none; }
.page-numbers a, .page-numbers span { appearance: none; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: var(--border); background: #F0F1F5; color: #0b0b0c; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* When featured image is hidden - add background to pagination numbers */
body.featured-image-hidden:not(.dark-theme) .page-numbers a,
body.featured-image-hidden:not(.dark-theme) .page-numbers span {
  background: #F0F1F5;
}

/* Active pagination number - full black background with white text (override featured-image-hidden) */
body.featured-image-hidden:not(.dark-theme) .page-numbers .current,
body.featured-image-hidden:not(.dark-theme) .page-numbers span.current {
  background: #0b0b0c !important;
  color: #ffffff !important;
  border-color: #d4d4d4 !important;
}

.page-numbers .current, .page-numbers span.current { background: #0b0b0c; color: #fff; border-color: #d4d4d4; }
.page-numbers .dots { border: none; background: transparent; cursor: default; }
.page-numbers .prev, .page-numbers .next { padding: 0 14px; border-radius: 10px; }

/* Footer */
.site-footer { margin-top: var(--g-6); border-top: none; background: #FCFCF9; position: relative; }
.site-footer::before { content: ""; display: block; height: 1px; background: #d4d4d4; width: calc(var(--container-max) - 32px); max-width: calc(100% - 32px); margin: 0 auto; }
.footer-inner { padding: var(--g-10) var(--g-4); display: grid; gap: var(--g-4); justify-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: var(--g-3); }
.footer-brand .brand-name { 
  font-size: 30px; 
  text-decoration: none;
  color: inherit;
}

.footer-text { margin: 0; color: #4b5563; }
.footer-copy { margin: 0; color: #4b5563; font-size: 13px; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: var(--g-4);
  width: 100%;
  max-width: 320px;
  align-self: start;
}

.widget {
  margin-bottom: var(--g-8);
  padding: var(--g-6);
  background: #F0F1F5;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
}

/* When featured image is hidden - add background to sidebar widgets (like post cards) */
body.featured-image-hidden:not(.dark-theme) .widget {
  background: #F0F1F5;
}

.widget-title {
  margin: 0 0 var(--g-4);
  font-size: 18px;
  font-weight: 700;
  color: #0b0b0c;
  padding-bottom: var(--g-2);
  border-bottom: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  gap: var(--g-2);
}

.widget-search .widget-title {
  display: none;
}

.trending-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Sidebar Search */
.widget-search .sidebar-search-form {
  width: 100%;
}

.sidebar-search-wrapper {
  display: flex;
  align-items: center;
  gap: var(--g-2);
  background: #F0F1F5;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}

/* When featured image is hidden - add background to search wrapper (like dark theme) */
body.featured-image-hidden:not(.dark-theme) .sidebar-search-wrapper {
  background: #F0F1F5;
}

.sidebar-search-wrapper:focus-within {
  border-color: #d4d4d4;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  color: #0b0b0c;
  padding: 4px 8px;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s;
}

/* Ensure search input stays transparent when featured image is hidden */
body.featured-image-hidden:not(.dark-theme) .sidebar-search-input {
  background: transparent;
}

/* Input field active state - no background change, no border */
.sidebar-search-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Style search cancel button (X icon) */
.sidebar-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: #0b0b0c;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}


.sidebar-search-input::placeholder {
  color: var(--text-dim);
}

/* Remove focus box-shadow - no black border on focus */
.sidebar-search-input:focus {
  outline: none;
  box-shadow: none;
}
body.dark-theme .sidebar-search-input:focus {
  outline: none;
  box-shadow: none;
  background: #2a2a2a;
}

.sidebar-search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #0b0b0c;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 0;
}

.sidebar-search-submit svg {
  width: 18px;
  height: 18px;
}

/* Top Posts Widget */
.top-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-post-item {
  margin-bottom: var(--g-4);
  padding-bottom: var(--g-4);
  border-bottom: 1px solid #d4d4d4;
}

.top-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.top-post-link {
  display: flex;
  align-items: flex-start;
  gap: var(--g-3);
  text-decoration: none;
  color: inherit;
}

.top-post-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  color: #0b0b0c;
  border-radius: 0;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  min-width: 32px;
}

.top-post-content {
  flex: 1;
  min-width: 0;
}

.top-post-title {
  margin: 0 0 var(--g-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0b0b0c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-post-meta {
  display: flex;
  align-items: center;
  gap: var(--g-2);
  font-size: 12px;
  color: var(--text-dim);
}

.top-post-date {
  color: var(--text-dim);
}

.no-top-posts {
  padding: var(--g-4);
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Categories Widget */
.categories-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-2);
}

.category-item {
  margin: 0;
  padding: 0;
  border: none;
}

.category-item:last-child {
  margin: 0;
  padding: 0;
  border: none;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F0F1F5;
  border: 1px solid #d4d4d4;
  border-radius: 999px !important;
  text-decoration: none;
  color: #0b0b0c;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

/* Active category link - light theme */
.category-link-active {
  background: #0b0b0c !important;
  border-color: #0b0b0c !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

.category-link-active .category-name {
  color: #ffffff !important;
}

.category-link-active .category-count {
  color: #ffffff !important;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #0b0b0c;
}

.category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-width: auto;
}

.no-categories {
  padding: var(--g-4);
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Dark Theme for Sidebar */
body.dark-theme .widget {
  background: #1a1a1a;
  border-color: #333333;
}

body.dark-theme .widget-title {
  color: #ffffff;
  border-bottom-color: #333333;
}

body.dark-theme .sidebar-search-wrapper {
  background: #1a1a1a;
  border-color: #333333;
}

body.dark-theme .sidebar-search-input {
  color: #ffffff;
  background: transparent;
}

body.dark-theme .sidebar-search-input:focus {
  background: transparent;
}

body.dark-theme .sidebar-search-input::-webkit-search-cancel-button {
  background-color: #ffffff;
}


body.dark-theme .sidebar-search-input::placeholder {
  color: #9ca3af;
}

body.dark-theme .sidebar-search-submit {
  background: transparent;
  color: #ffffff;
}

body.dark-theme .top-post-item {
  border-bottom-color: #333333;
}

body.dark-theme .top-post-title {
  color: #ffffff;
}

body.dark-theme .top-post-number {
  background: transparent;
  color: #ffffff;
}

body.dark-theme .top-post-meta {
  color: #cccccc;
}

body.dark-theme .no-top-posts {
  color: #9ca3af;
}

body.dark-theme .category-link {
  background: transparent !important;
  border-color: #333333;
  color: #ffffff;
  border-radius: 999px !important;
  overflow: hidden;
}

/* Active category link - dark theme */
body.dark-theme .category-link-active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0b0b0c !important;
  border-radius: 999px !important;
}

body.dark-theme .category-link-active .category-name {
  color: #0b0b0c !important;
}

body.dark-theme .category-link-active .category-count {
  color: #0b0b0c !important;
}

body.dark-theme .category-name {
  color: #ffffff;
}

body.dark-theme .category-count {
  color: #cccccc;
}

body.dark-theme .no-categories {
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 1024px) {
  /* Tablet: Ensure header has side padding */
  .container {
    padding-inline: var(--g-6);
  }
  
  /* Pagination centered properly on tablet/iPad */
  .pagination {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  /* Tablet: Stack sidebar below content */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--g-6);
  }
  
  .sidebar {
    position: static;
    max-width: 100%;
  }
  
  /* Tablet: Nav bar horizontally scrollable */
  .site-nav {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-inline: 0;
  }
  
  .site-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .site-nav .nav-list {
    flex-wrap: nowrap;
    min-width: min-content;
    padding: 0 var(--g-4);
  }
  
  .site-nav .nav-list li a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  /* Mobile: Side spacing */
  .container {
    padding-inline: var(--g-4);
  }
  
  .content-wrapper {
    padding-inline: var(--g-4);
    padding-top: var(--g-4);
    padding-bottom: var(--g-8);
    gap: var(--g-6);
  }
  
  .widget {
    padding: var(--g-4);
  }
  
  .widget-title {
    font-size: 16px;
  }
  
  .top-post-title {
    font-size: 15px;
  }
  
  .top-post-date {
    font-size: 13px;
  }
  
  .category-link {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .category-name {
    font-size: 12px;
  }
  
  .category-count {
    font-size: 11px;
  }
  
  .top-post-number {
    width: auto;
    height: auto;
    font-size: 20px;
    min-width: 28px;
  }
  
  /* Mobile Header Layout - Left to Right */
  .header-inner { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--g-3);
    padding: var(--g-4); 
  }
  
  /* Make header-inner same width as site-main (post cards container) on mobile */
  .site-header .header-inner {
    max-width: var(--container-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-inline: var(--g-4) !important;
    box-sizing: border-box;
    border-bottom: none !important;
    position: relative;
  }
  
  /* Ensure header-inner border-bottom has sides spacing on mobile - matches nav bar line */
  .site-header .header-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--g-4);
    right: var(--g-4);
    height: 1px;
    border-bottom: var(--border);
  }
  
  /* Extra side spacing for mobile header - ensure container wrapper has padding like site-main */
  .site-header > .container {
    max-width: var(--container-max) !important;
    width: 100% !important;
    padding-inline: var(--g-4) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  
  /* Ensure nav bar container wrapper also has same padding as site-main */
  .site-header > .container + .container {
    max-width: var(--container-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-inline: var(--g-4) !important;
    box-sizing: border-box;
  }
  
  /* Hide desktop social buttons on mobile */
  .social-buttons { 
    display: none !important; 
  }
  
  /* Brand on LEFT */
  .brand { 
    position: relative;
    order: 0;
  }
  
  .brand-name {
    font-size: 32px;
  }
  
  .brand-logo {
    height: 35px;
  }
  
  /* Section heading responsive */
  .section-heading {
    font-size: 24px;
    margin-bottom: var(--g-6);
    padding-bottom: var(--g-2);
  }
  
  .section-heading::after {
    width: 60px;
    height: 2px;
  }
  
  /* Page title responsive */
  .page-title {
    font-size: 24px;
  }
  
  .page-header {
    margin-bottom: var(--g-4);
    padding-bottom: var(--g-2);
  }
  
  /* Smaller border radius for mobile images */
  .page-content img,
  .entry-content img {
    border-radius: 8px;
    margin-bottom: var(--g-4);
  }
  
  /* Buttons on RIGHT */
  .header-actions {
    display: flex;
    gap: var(--g-2);
    align-items: center;
    order: 1;
  }
  
  .header-actions .buy-theme-btn {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  .header-actions .buy-theme-btn .buy-icon {
    width: 22px;
    height: 22px;
  }
  
  /* Mobile - ensure site icons display correctly */
  .header-actions .buy-theme-btn .buy-icon-light,
  .header-actions .buy-theme-btn .buy-icon-dark {
    width: 22px;
    height: 22px;
  }
  
  .header-actions .theme-toggle-btn {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  .header-actions .theme-toggle-btn .theme-icon {
    width: 18px;
    height: 18px;
  }
  
  .buy-theme-dropdown {
    right: 0;
    left: auto;
    min-width: 260px;
    max-width: calc(100vw - 32px);
  }
  
  .buy-theme-dropdown-header {
    padding: var(--g-3);
  }
  
  .buy-theme-title {
    font-size: 15px;
  }
  
  .buy-theme-message {
    font-size: 13px;
    padding: 0 var(--g-3);
  }
  
  .buy-theme-email-link {
    font-size: 13px;
    margin: var(--g-3);
    padding: var(--g-2) var(--g-3);
  }
  
  .header-actions .channel-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  
  .header-actions .channel-btn .whatsapp-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Hide "Channel" text on mobile */
  .header-actions .channel-btn span {
    display: none !important;
  }
  
  /* Nav bar horizontally scrollable - same width as site-main */
  .site-nav {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-top: 0px;
    padding-bottom: 10px;
    margin-top: -1.5px;
    border-bottom: var(--border);
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }
  
  .site-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .nav-list {
    flex-wrap: nowrap;
    min-width: min-content;
    padding: 0;
    margin: 0;
  }
  
  .nav-link,
  .site-nav .nav-list li a {
    white-space: nowrap;
    flex-shrink: 0;
    border-width: 1px; /* Ensure all borders visible */
  }
  
  /* Mobile responsive styles */
  /* Smaller author icons on mobile */
  .author-icon {
    width: 18px;
    height: 18px;
    padding: 0;
    border-width: 1px;
  }
  
  /* Ensure no-featured-image cards work well on mobile */
  .category-post-card.no-featured-image {
    padding: var(--g-3);
    border-radius: 10px !important;
  }
  
  .category-post-content-header {
    flex-wrap: wrap;
    gap: var(--g-2);
  }
  
  .no-featured-image .category-post-content-header .category-post-badges,
  .no-featured-image .category-post-content-header .category-post-views-wrapper {
    width: auto;
  }
  
  .site-main { 
    padding-block: var(--g-8);
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }
  
  /* Single post and page content width same as homepage on mobile */
  body.single .site-main,
  body.page .site-main {
    max-width: var(--container-max);
    padding-inline: 0;
  }
  
  /* Single/post pages content-wrapper padding same as homepage on mobile */
  body.single .content-wrapper,
  body.page .content-wrapper {
    padding-inline: var(--g-4);
  }
  
  /* Remove padding from site-main when inside content-wrapper on mobile */
  .content-wrapper .site-main {
    padding-inline: 0;
  }
  
  /* Single/post pages site-main inside content-wrapper - no extra padding */
  body.single .content-wrapper .site-main,
  body.page .content-wrapper .site-main {
    padding-inline: 0;
  }
  
  /* Fix: Ensure category post cards don't overflow on mobile */
  .category-post-card {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  
  /* Fix: Ensure category post images don't overflow on mobile - add proper containment */
  .category-post-image {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    /* Ensure image container doesn't extend beyond parent */
    contain: layout;
  }
  
  /* Fix: Ensure thumbnail doesn't overflow and maintains border radius */
  .category-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    max-width: 100%;
  }
  
  /* Fix: Adjust badges position on mobile to prevent left side clipping - use smaller gap */
  .category-post-badges {
    left: var(--g-2);
    top: var(--g-2);
    max-width: calc(100% - var(--g-6));
    z-index: 2;
    /* Ensure badges don't overflow */
    box-sizing: border-box;
  }
  
  /* Fix: Adjust views wrapper position on mobile to prevent right side clipping - use smaller gap */
  .category-post-views-wrapper {
    right: var(--g-2);
    top: var(--g-2);
    max-width: calc(100% - var(--g-6));
    z-index: 2;
    /* Ensure views don't overflow */
    box-sizing: border-box;
  }
  
  /* Fix: Ensure overlay doesn't cause overflow issues */
  .category-post-overlay {
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Fix: Ensure category posts grid doesn't cause overflow */
  .category-posts-grid {
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    /* Ensure grid items stay within bounds */
    contain: layout;
  }
  
  /* Home page, Search page, and Category page specific on mobile */
  body.home .content-wrapper,
  body.search .content-wrapper,
  body.category .content-wrapper,
  body.search-results .content-wrapper { 
    padding-top: 0;
    margin-top: -10px;
    padding-bottom: var(--g-8); 
  }
  
  /* Badge spacing on mobile */
  .badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .category-post-badges .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
  }
  
  /* Category post views on mobile */
  .category-post-views {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
  }
  
  /* Pagination responsive */
  .pagination {
    gap: var(--g-3);
    justify-content: center;
  }
  
  .pager, .pager-wrapper a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .page-numbers {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--g-2);
    flex-shrink: 0;
  }
  
  .page-numbers::-webkit-scrollbar {
    display: none;
  }

  .page-title {
    font-size: 32px;
  }
}

/* No Posts Message */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--g-10);
}

/* Moon Icon (hidden by default, shown in dark theme) */
.moon-icon {
  display: none;
}

body.dark-theme .moon-icon {
  display: block;
}

body.dark-theme .sun-icon {
  display: none;
}

