/*
Theme Name: Mini Space Garden
Theme URI: https://minispacegarden.com
Description: Modern, clean WordPress theme for gardening blogs
Version: 1.0
Author: Your Name
*/

/* --------------------
   GLOBAL RESET
-------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Bulletproof image responsiveness - prevents ALL images from overflowing */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent grid/flex children from overflowing their containers */
.single-grid>*,
.article-content-area,
.sidebar-area,
.blog-article {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}


/* --------------------
   COLOR PALETTE
-------------------- */

:root {

  /* Primary Brand Colors (From Logo) */

  --primary-green: #4CAF50;
  --deep-green: #2E7D32;
  --light-green: #A5D6A7;

  --earth-brown: #6D4C41;
  --terracotta: #C97B47;

  --sun-yellow: #FBC02D;

  /* Neutral Colors */

  --text-dark: #2B2B2B;
  --text-light: #666;
  --background-light: #F9FBF9;
  --white: #FFFFFF;
}

/* --------------------
   GLOBAL STYLING
-------------------- */

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--background-light);
  color: var(--text-dark);
}

/* --------------------
   TYPOGRAPHY SYSTEM
-------------------- */

h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--deep-green);
}

h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--deep-green);
}

h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--deep-green);
}

p {
  color: var(--text-light);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--deep-green);
}

/* Layout */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --------------------
   HEADER (STICKY)
-------------------- */

.site-header {
  position: sticky;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 12px 0;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right group: nav + search icon together */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}


/* Logo */

.logo-area .custom-logo {
  width: 200px;
  height: 80px;
  object-fit: contain;
}

.logo-area img {
  max-width: 200px;
  max-height: 80px;
  height: auto;
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--deep-green);
}

/* --------------------
   NAVIGATION
-------------------- */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav li {
  margin-left: 28px;
  position: relative;
}

.main-nav a {
  font-size: 15px;
  color: var(--earth-brown);
  font-weight: 500;
  position: relative;
}

.main-nav a:hover {
  color: var(--deep-green);
}

/* Subtle underline animation */
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* --------------------
   SUB-MENU (DROPDOWN)
-------------------- */

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: block;
  /* Override flex */
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.main-nav .sub-menu li {
  margin: 0;
  /* Override left margin from main nav items */
  display: block;
}

.main-nav .sub-menu a {
  padding: 10px 24px;
  display: block;
  font-size: 14.5px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.main-nav .sub-menu li:last-child a {
  border-bottom: none;
}

.main-nav .sub-menu a::after {
  display: none;
  /* No underline animation for submenus */
}

.main-nav .sub-menu a:hover {
  background: rgba(76, 175, 80, 0.06);
  color: var(--primary-green);
  padding-left: 28px;
  /* Slight subtle slide effect */
}

/* Deeper levels nested to the right */
.main-nav .sub-menu .sub-menu {
  top: -12px;
  left: 100%;
  transform: translateX(12px);
}

.main-nav li:hover>.sub-menu>.sub-menu {
  transform: translateX(0);
}

/* --------------------
   HEADER SEARCH
-------------------- */

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

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--earth-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.search-icon-btn:hover {
  color: var(--primary-green);
  background: rgba(76, 175, 80, 0.08);
}

/* Dropdown panel */

.search-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
  border: 1px solid rgba(0, 0, 0, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 9999;
  overflow: hidden;
}

.header-search:hover .search-dropdown,
.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Input row */

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.search-input-wrap svg {
  color: var(--text-light);
  flex-shrink: 0;
}

#live-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14.5px;
  color: var(--text-dark);
  background: transparent;
  font-family: inherit;
}

#live-search-input::placeholder {
  color: var(--text-light);
}

/* Results area */

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-hint {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  padding: 18px 16px;
  margin: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(76, 175, 80, 0.06);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--background-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

.search-result-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-cat {
  font-size: 11.5px;
  color: var(--primary-green);
  margin-top: 3px;
}

.search-loading {
  text-align: center;
  padding: 18px;
  color: var(--text-light);
  font-size: 13px;
}

.search-no-results {
  text-align: center;
  padding: 18px 16px;
  color: var(--text-light);
  font-size: 13px;
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--primary-green);
  font-weight: 500;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
  transition: background 0.15s;
}

.search-view-all:hover {
  background: rgba(76, 175, 80, 0.06);
}

/* Mobile search adjustments */
@media (max-width: 768px) {
  .header-search {
    display: none;
  }
}


/* --------------------
   BUTTONS
-------------------- */

.button {
  background: var(--primary-green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.2s ease;
}

.button:hover {
  background: var(--deep-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.button.secondary {
  background: var(--earth-brown);
}

.button.secondary:hover {
  background: #5a3d32;
}

.button-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 12px 32px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.22s ease;
}

.button-outline:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.25);
}

/* Centered CTA below a section grid */

.section-cta {
  text-align: center;
  margin-top: 40px;
}


/* --------------------
   CARDS (CRITICAL UI)
-------------------- */

.card {
  background: var(--white);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --------------------
   HOMEPAGE SECTIONS
-------------------- */

/* Hero Section */

.hero {
  background: linear-gradient(135deg, #f0f9f0 0%, #ffffff 100%);
  padding: 60px 0;
}

.hero-premium {
  padding: 70px 0 40px;
}

.hero-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-center h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--deep-green);
  line-height: 1.3;
}

.hero-subtext {
  font-size: 17px;
  margin: 18px 0 28px;
  color: var(--text-dark);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.button {
  display: inline-block;
  background: var(--primary-green);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.button:hover {
  background: var(--deep-green);
}

/* Section Headings */

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--deep-green);
}

.section-heading p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Pillar Posts Section (SEO Authority) */

/* ================================
   ESSENTIAL GUIDES / PILLAR SECTION
   ================================ */

.pillar-section {
  padding: 80px 0;
  background:
    linear-gradient(160deg, #f0faf0 0%, #e8f5e9 50%, #f1f8e9 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative leaf watermark */
.pillar-section::before {
  content: '🌿';
  position: absolute;
  font-size: 320px;
  opacity: 0.04;
  top: -60px;
  right: -60px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pillar-section::after {
  content: '🌱';
  position: absolute;
  font-size: 220px;
  opacity: 0.04;
  bottom: -40px;
  left: -40px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* 3-column grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.pillar-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 28px 24px 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.08);
  border: 1.5px solid rgba(76, 175, 80, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Green top stripe that grows on hover */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(46, 125, 50, 0.14);
  border-color: rgba(76, 175, 80, 0.3);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

/* Top row: badge + emoji */
.pillar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* Numbered badge */
.pillar-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-green);
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.5px;
}

/* Emoji bubble */
.pillar-emoji {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.13), rgba(139, 195, 74, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pillar-card:hover .pillar-emoji {
  transform: scale(1.12) rotate(-5deg);
}

/* Title */
.pillar-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 10px;
  line-height: 1.35;
}

/* Description */
.pillar-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

/* Read Guide link */
.pillar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.pillar-card:hover .pillar-link {
  color: var(--deep-green);
}



/* Value Proposition Section */

.value-section {
  padding: 50px 0;
  background: var(--background-light);
}

.value-section h2 {
  font-size: 30px;
  margin-bottom: 18px;
  color: var(--deep-green);
}

.value-section p {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* Category Section (Topical Silos) */

.category-section {
  padding: 50px 0;
  background: var(--white);
}


/* REMOVED OLD CONFLICTING CATEGORY STYLES - NOW USING ARCHIVE.PHP STYLES BELOW */


/* Featured Section */

.featured-section {
  padding: 50px 0;
  background: var(--background-light);
}

.featured-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 35px;
  color: var(--deep-green);
}

/* Latest Posts Section */

.latest-posts {
  padding: 50px 0;
  background: var(--white);
}

.latest-posts h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 35px;
  color: var(--deep-green);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.post-card {
  background: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.post-card .post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card .post-content {
  padding: 18px;
}

.post-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.post-card h3 a {
  color: var(--deep-green);
}

.post-card .post-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* Trust Section */

.trust-section {
  padding: 60px 0;
  background: var(--background-light);
}

.trust-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--deep-green);
}

.trust-section p {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.7;
}

/* --------------------
   SINGLE POST PAGE
-------------------- */

.single-post {
  padding: 0;
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 35px;
}

/* Breadcrumbs */

.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.breadcrumbs a {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}


/* Article Design */

.article-content-area,
.sidebar-area {
  padding-top: 35px;
}

.blog-article {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Article Title (Title-First Hierarchy) */

.article-title {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--deep-green);
}

/* Meta Section */

.article-meta {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.updated-date {
  color: var(--primary-green);
  font-weight: 500;
}

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

.article-category a:hover {
  color: var(--primary-green);
}

/* Featured Image System */

.featured-image {
  margin: 18px 0 28px;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.blog-article:hover .featured-image img {
  transform: scale(1.03);
}

.blog-article h1 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--deep-green);
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--light-green);
}

.article-meta span {
  margin-right: 8px;
}

/* Article Typography Rhythm */

.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 24px;
}

/* Table of Contents */

.table-of-contents {
  background: var(--background-light);
  border-left: 4px solid var(--primary-green);
  padding: 20px 24px;
  margin: 25px 0 30px;
  border-radius: 8px;
}

.table-of-contents h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--deep-green);
}

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

.toc-list li {
  margin-bottom: 8px;
}

.toc-list li a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list li a:hover {
  color: var(--primary-green);
}

.toc-list li.toc-sub {
  margin-left: 20px;
  font-size: 14px;
}


.article-body h2 {
  margin-top: 50px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--deep-green);
}

.article-body h3 {
  margin-top: 35px;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--deep-green);
}

.article-body ul,
.article-body ol {
  margin: 10px 0 25px 22px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 25px 0;
}

/* Semantic Internal Linking */

.article-body a {
  color: var(--primary-green);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.article-body a:hover {
  color: var(--deep-green);
  border-bottom-color: var(--deep-green);
}

/* Table of Contents Support */

.toc {
  background: var(--background-light);
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 35px;
  font-size: 15px;
  border: 1px solid var(--light-green);
}

.toc h2,
.toc h3 {
  margin-top: 0 !important;
  font-size: 16px !important;
}

/* Related Posts Engine */

.related-posts {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--light-green);
}

.related-posts h3 {
  font-size: 22px;
  margin-bottom: 25px;
  color: var(--deep-green);
}

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

.related-card {
  background: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.related-thumbnail img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h4 {
  padding: 15px;
  font-size: 16px;
  margin: 0;
}

.related-card h4 a {
  color: var(--deep-green);
}

/* Sidebar Enhancements */

/* Article Content */

.article-body {
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.article-body h3 {
  margin-top: 25px;
  margin-bottom: 12px;
}

.article-body img {
  width: 100%;
  border-radius: 12px;
  margin: 28px 0;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 10px;
}

/* Sidebar */

.sidebar-widget {
  background: var(--background-light);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.sidebar-widget h3,
.widget-title {
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--deep-green);
}

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

.sidebar-widget li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-widget a {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.sidebar-widget a:hover {
  color: var(--primary-green);
}

/* Comments */

.comments-area {
  margin-top: 40px;
  background: var(--background-light);
  padding: 22px;
  border-radius: 12px;
}

.comments-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--deep-green);
}

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

.comment-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

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

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--light-green);
  font-family: inherit;
  font-size: 15px;
}

.comment-form textarea {
  min-height: 100px;
}

.comment-form .submit {
  background: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.comment-form .submit:hover {
  background: var(--deep-green);
}

/* --------------------
   STATIC PAGES (About, Contact, etc)
-------------------- */

.static-page {
  padding: 0;
}

.page-content {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.page-title {
  font-size: 38px;
  margin-bottom: 25px;
  color: var(--deep-green);
}

.page-body p {
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.8;
}

.page-body h2 {
  margin-top: 35px;
  margin-bottom: 10px;
  color: var(--deep-green);
}

.page-body h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  color: var(--deep-green);
}

.page-body ul,
.page-body ol {
  margin: 15px 0 20px 20px;
}

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

.page-body img {
  width: 100%;
  border-radius: 14px;
  margin: 28px 0;
}

/* --------------------
   CATEGORY ARCHIVE PAGES (Unified Premium System)
-------------------- */

/* Category Hero Section */

.category-hero {
  background: linear-gradient(135deg, var(--light-green), var(--background-light));
  padding: 50px 0 25px;
  text-align: center;
}

.hero-center {
  max-width: 800px;
  margin: 0 auto;
}

.category-hero h1 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--deep-green);
}

.category-hero .category-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.category-page {
  padding: 0;
}

/* Category Page Width Control */

.category-page .container {
  max-width: 1100px;
}

/* Category Intro Block */

.category-intro {
  background: var(--background-light);
  padding: 25px;
  border-radius: 16px;
  margin: 30px auto;
  max-width: 820px;
  text-align: center;
}

.category-intro h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--deep-green);
}

.category-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Category Layout (2-Column with Sidebar) */

.category-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 35px;
  margin-top: 40px;
}

.category-main {
  min-width: 0;
}

/* Sorting Filters */

.category-filters {
  text-align: center;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--background-light);
  border-radius: 10px;
}

.category-filters span {
  font-weight: 500;
  color: var(--text-dark);
  margin-right: 10px;
}

.category-filters a {
  margin-left: 15px;
  font-size: 14px;
  color: var(--primary-green);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category-filters a:hover,
.category-filters a.active {
  background: var(--primary-green);
  color: var(--white);
}

/* Featured Category Posts */

.featured-category {
  margin: 45px 0 35px;
}

.featured-category h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--deep-green);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.featured-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-thumb {
  overflow: hidden;
  line-height: 0;
}

.featured-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-thumb img {
  transform: scale(1.06);
}

.featured-card h3 {
  padding: 18px;
  font-size: 18px;
  margin: 0;
}

.featured-card h3 a {
  color: var(--deep-green);
}

/* Category Grid — Explore Topics */

.category-section {
  padding: 70px 0;
  background: var(--background-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Individual card */

.category-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.2);
}

.category-card:hover::before {
  opacity: 1;
}

/* Emoji icon bubble */

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(139, 195, 74, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.category-card:hover .cat-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Title */

.cat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-green);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Description */

.cat-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

/* Arrow link */

.cat-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.3px;
  transition: gap 0.2s ease;
}

.category-card:hover .cat-arrow {
  color: var(--deep-green);
}



/* Pagination */

.pagination {
  margin: 45px 0;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--background-light);
  border-radius: 8px;
  color: var(--text-dark);
}

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

.pagination .current {
  background: var(--primary-green);
  color: var(--white);
}

/* --------------------
   📚 BLOG ARCHIVE PAGE
-------------------- */

.blog-archive {
  padding: 50px 0;
}

.archive-title {
  margin-bottom: 35px;
  text-align: center;
}

/* Archive Grid System */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Thumbnail Styling */

.archive-thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.archive-thumb:hover img {
  transform: scale(1.02);
}

/* Card Polish */

.archive-card h3 {
  margin: 10px 0;
  font-size: 18px;
}

.archive-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Read More Link */

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-green);
  display: inline-block;
  margin-top: 10px;
}

.read-more:hover {
  color: var(--deep-green);
}

/* Pagination */

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--light-green);
  border-radius: 6px;
  color: var(--deep-green);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* --------------------
   RESPONSIVE SYSTEM
-------------------- */

/* Universal Responsive Layout */

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* Responsive Grid */

.grid {
  display: grid;
  gap: 22px;
}

/* --------------------
   MOBILE MENU SYSTEM
-------------------- */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--deep-green);
}

/* Desktop Menu */

.main-nav ul {
  display: flex;
}

/* --------------------
   RESPONSIVE BREAKPOINTS
-------------------- */

/* Tablet */

@media (max-width: 1024px) {

  .hero-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  /* Single Post Tablet - stack sidebar below */

  .single-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .sidebar-area {
    margin-top: 0;
  }
}

/* Small phones */

@media (max-width: 480px) {

  .container {
    padding: 0 14px;
  }

  .article-title {
    font-size: 20px;
  }

  .blog-article {
    padding: 14px;
  }

  .article-body {
    font-size: 14.5px;
  }

  .related-card {
    flex-direction: column;
  }

  .related-thumbnail {
    width: 100%;
  }

  .related-thumbnail img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
  }
}


/* Mobile */

@media (max-width: 768px) {

  /* Prevent horizontal overflow */

  * {
    max-width: 100%;
  }

  .container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Typography Adjustments */

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  body {
    font-size: 15px;
  }

  /* Mobile Menu Toggle */

  .header-right {
    gap: 8px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--deep-green);
    order: 1;
  }

  /* Search icon stays visible on mobile, after hamburger */
  .header-search {
    display: flex;
    order: 2;
  }

  /* Search dropdown on mobile: full-width below header */
  .search-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 14px 14px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    width: 100%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    z-index: 9998;
    order: 0;
  }

  .main-nav.active {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 15px 0;
  }

  .main-nav li {
    margin: 12px 0;
    margin-left: 0;
    text-align: center;
  }

  /* Reset sub-menus for mobile */
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    /* Hide by default, can be toggled via JS or hover fallback */
    padding: 0;
    border: none;
    background: transparent;
    min-width: 100%;
  }

  /* Simpler fallback to show submenu on active parent for mobile 
     Ideally handled by JS toggle, but this provides a CSS fallback */
  .main-nav li:hover>.sub-menu,
  .main-nav li:active>.sub-menu,
  .main-nav li:focus-within>.sub-menu {
    display: block;
    margin-top: 10px;
  }

  .main-nav .sub-menu a {
    padding: 8px 15px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.02);
    /* Slight contrast to distinguish hierarchy */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .main-nav .sub-menu a:hover {
    padding-left: 15px;
    /* Disable the desktop slide effect on mobile */
  }

  /* Hero Section */

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

  .hero h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Trust Section */

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

  /* Archive Grid */

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

  /* Article Layout */

  .article-layout {
    padding: 25px 0;
  }

  .single-post {
    padding: 0;
  }

  /* Single Post Sidebar Stacking */

  .single-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-area {
    margin-top: 0;
  }

  .blog-article {
    padding: 16px;
    border-radius: 10px;
  }

  /* Article Title */

  .article-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  /* Article Meta */

  .article-meta {
    font-size: 12px;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  /* Featured Image */

  .featured-image {
    margin: 12px 0 20px;
    border-radius: 10px;
  }

  .featured-image img {
    width: 100%;
    height: auto;
  }

  /* Article Body */

  .article-body {
    font-size: 15px;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 30px;
  }

  .article-body h3 {
    font-size: 17px;
    margin-top: 22px;
  }

  .article-body img {
    width: 100%;
    height: auto;
  }

  /* Table of Contents */

  .table-of-contents {
    padding: 14px 16px;
    margin: 16px 0 20px;
  }

  .table-of-contents h3 {
    font-size: 16px;
  }

  /* Related Posts */

  .related-posts {
    margin-top: 30px;
  }

  .related-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .related-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .related-thumbnail {
    width: 90px;
    flex-shrink: 0;
  }

  .related-thumbnail img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Breadcrumbs */

  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Static Pages Mobile */

  .page-content {
    margin: 25px auto;
    padding: 0 15px;
  }

  .page-title {
    font-size: 28px;
  }

  /* Category Pages Mobile */

  .category-hero {
    padding: 45px 0 30px;
  }

  .category-hero h1 {
    font-size: 26px;
  }

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

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

  .category-intro {
    margin: 20px auto;
    padding: 20px;
  }

  .category-thumb img {
    height: 180px;
  }

  .category-content h2 {
    font-size: 17px;
  }

  /* Footer Responsive */

  .footer-flex {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-right ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-right li {
    margin: 0 10px;
  }
}

/* --------------------
   FOOTER
-------------------- */

.site-footer {
  background: var(--deep-green);
  padding: 35px 0;
  margin-top: 60px;
  margin-bottom: 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer Text */

.footer-left p {
  color: var(--white);
  font-size: 14px;
  margin: 0;
}

/* Footer Menu */

.footer-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.footer-right li {
  margin-left: 20px;
}

.footer-right a {
  color: var(--light-green);
  font-size: 14px;
}

.footer-right a:hover {
  color: var(--white);
}

/* --------------------
   ADMIN BAR FIX
-------------------- */

body.admin-bar .site-header {
  margin-top: 0;
}