/*
Theme Name: Simple Garden Joy
Theme URI: https://simplegardenjoy.com
Author: Simple Garden Joy
Author URI: https://simplegardenjoy.com
Description: Ultra-lightweight custom theme optimized for garden content. Built for speed and readability.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simplegardenjoy
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready

Simple Garden Joy - A custom lightweight theme built from scratch.
Optimized for performance and content readability.

COLOR PALETTE:
- Primary Green: #48bb78 (links, buttons, accents)
- Hover Green: #38a169 (all hover states)
- Heading Green: #2f6b3f (headings, emphasis)
- Sage Border: #c8d5c7 (subtle borders/underlines)
- Text Dark: #2d3748
- Text Medium: #4a5568
- Text Light: #718096
- Background: #ffffff
- Background Light: #f7fafc
- Border: #e2e8f0
*/

:root {
  --font-size-body-min: 1.05rem;
  --font-size-body-max: 1.25rem;
  --font-size-body-fluid: calc(1rem + 0.35vw);
  --font-size-h1-min: 2.25rem;
  --font-size-h1-max: 3.25rem;
  --font-size-h1-fluid: calc(1.75rem + 2vw);
  --font-size-h2-min: 1.9rem;
  --font-size-h2-max: 2.6rem;
  --font-size-h2-fluid: calc(1.4rem + 1.5vw);
  --font-size-h3-min: 1.45rem;
  --font-size-h3-max: 2rem;
  --font-size-h3-fluid: calc(1.1rem + 1vw);
  --font-size-h4-min: 1.25rem;
  --font-size-h4-max: 1.6rem;
  --font-size-h4-fluid: calc(1rem + 0.6vw);
  --font-size-h5-min: 1.1rem;
  --font-size-h5-max: 1.35rem;
  --font-size-h5-fluid: calc(0.95rem + 0.4vw);
  --font-size-h6-min: 1rem;
  --font-size-h6-max: 1.15rem;
  --font-size-h6-fluid: calc(0.9rem + 0.25vw);
  --line-height-body: 1.75;
  --line-height-heading: 1.3;
}

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(var(--font-size-body-min), var(--font-size-body-fluid), var(--font-size-body-max));
  line-height: var(--line-height-body);
  color: #2d3748;
  background-color: #ffffff;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: 1rem;
  color: #2f6b3f;
}

h1 {
  font-size: clamp(var(--font-size-h1-min), var(--font-size-h1-fluid), var(--font-size-h1-max));
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(var(--font-size-h2-min), var(--font-size-h2-fluid), var(--font-size-h2-max));
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(var(--font-size-h3-min), var(--font-size-h3-fluid), var(--font-size-h3-max));
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(var(--font-size-h4-min), var(--font-size-h4-fluid), var(--font-size-h4-max));
  margin-top: 1.5rem;
}

h5 {
  font-size: clamp(var(--font-size-h5-min), var(--font-size-h5-fluid), var(--font-size-h5-max));
  margin-top: 1.25rem;
}

h6 {
  font-size: clamp(var(--font-size-h6-min), var(--font-size-h6-fluid), var(--font-size-h6-max));
  margin-top: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: #48bb78;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #38a169;
  text-decoration: underline;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Content + Sidebar Layout */
.content-sidebar-wrap {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-area {
  flex: 1;
  min-width: 0; /* Prevents flex overflow */
  max-width: 800px;
}

/* Full-width content for pages */
.page .content-area {
  max-width: 100%;
}

.sidebar {
  flex: 0 0 300px;
  width: 300px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header Top - Logo + Search */
.header-top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
}

.site-branding {
  flex: 1 1 auto;
  min-width: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #38a169;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title a:hover {
  color: #276749;
  text-decoration: none;
}

.site-description {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.25rem;
  line-height: 1.3;
  max-width: 500px;
}

/* Header Actions (Search + Mobile Toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Header Search */
.header-search {
  flex-shrink: 0;
}

.header-search form {
  display: flex;
  gap: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #38a169;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Search Icon */
.mobile-search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.mobile-search-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #38a169;
  stroke-width: 2;
  fill: none;
}

/* Mobile Search Form */
.mobile-search-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-search-form.active {
  display: block;
  transform: translateY(0);
}

.mobile-search-form form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mobile-search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
}

.mobile-search-form button[type="submit"] {
  background: #38a169;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-search-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #718096;
  padding: 0;
  width: 40px;
  height: 40px;
}

.header-search input[type="search"] {
  padding: 0.4rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 200px;
  transition: border-color 0.2s ease;
}

.header-search input[type="search"]:focus {
  outline: none;
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.header-search button,
.header-search input[type="submit"] {
  padding: 0.4rem 1rem;
  background: #48bb78;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.header-search input[type="submit"]:hover {
  background: #38a169;
}

/* Navigation */
.main-navigation {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  margin: 0;
  padding: 0.25rem 0;
}

.main-navigation a {
  color: #4a5568;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.main-navigation a:hover {
  color: #38a169;
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-cat > a {
  color: #38a169;
  font-weight: 600;
  position: relative;
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after,
.main-navigation .current-cat > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #48bb78;
  border-radius: 2px;
}

/* Dropdown Menu */
.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
}

.main-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul li {
  padding: 0;
  width: 100%;
}

.main-navigation ul ul a {
  display: block;
  padding: 0.65rem 1.25rem;
  white-space: normal;
  font-size: 0.9rem;
}

.main-navigation ul ul a:hover {
  background: #f7fafc;
  color: #38a169;
}

.main-navigation ul ul .current-menu-item > a,
.main-navigation ul ul .current_page_item > a {
  background: #f0fdf4;
  color: #38a169;
}

.main-navigation ul ul .current-menu-item > a::after,
.main-navigation ul ul .current_page_item > a::after {
  display: none;
}

/* Dropdown arrow indicator */
.main-navigation .menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.6;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.site-main {
  padding: 3rem 0;
  min-height: 70vh;
}

/* Article/Post */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #c8d5c7;
}

.entry-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #2f6b3f;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-meta {
  font-size: 0.95rem;
  color: #718096;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-meta .meta-sep {
  color: #cbd5e0;
}

.entry-meta .categories a {
  color: #48bb78;
  font-weight: 500;
  transition: color 0.2s ease;
}

.entry-meta .categories a:hover {
  color: #38a169;
  text-decoration: none;
}

/* Featured Image */
.entry-featured-image {
  margin: 0 0 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* Article Content */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d3748;
}

/* Content Headings */
.entry-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2f6b3f;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c8d5c7;
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2f6b3f;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2f6b3f;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Paragraphs */
.entry-content p {
  margin-bottom: 1.75rem;
}

/* Images in Content */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-content figure {
  margin: 2.5rem 0;
}

.entry-content figcaption {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1.75rem;
  padding-left: 0;
}

.entry-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.entry-content ul li {
  list-style-type: disc;
}

.entry-content ol li {
  list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Blockquotes */
.entry-content blockquote {
  border-left: 4px solid #48bb78;
  background: #f7fafc;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Links in Content */
.entry-content a {
  color: #48bb78;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(72, 187, 120, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: #38a169;
  text-decoration-color: rgba(56, 161, 105, 0.6);
}

/* Strong/Bold */
.entry-content strong,
.entry-content b {
  font-weight: 600;
  color: #1a202c;
}

/* Tables */
.entry-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.entry-content th {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

.entry-content tr:hover {
  background: #fafafa;
}

/* Code */
.entry-content code {
  background: #f7fafc;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #d53f8c;
  font-family: 'Monaco', 'Courier New', monospace;
}

.entry-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2.5rem 0;
}

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

/* Entry Footer (Tags) */
/* Social Share Buttons */
.social-share {
  margin: 3rem 0;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.social-share-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2f6b3f;
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #ffffff;
}

.share-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.share-facebook {
  background: #1877f2;
}

.share-facebook:hover {
  background: #0c63d4;
  color: #ffffff;
}

.share-twitter {
  background: #1da1f2;
}

.share-twitter:hover {
  background: #0d8bd9;
  color: #ffffff;
}

.share-pinterest {
  background: #e60023;
}

.share-pinterest:hover {
  background: #bd001c;
  color: #ffffff;
}

.share-linkedin {
  background: #0077b5;
}

.share-linkedin:hover {
  background: #005885;
  color: #ffffff;
}

.share-email {
  background: #718096;
}

.share-email:hover {
  background: #4a5568;
  color: #ffffff;
}

/* Mobile responsive for share buttons */
@media (max-width: 768px) {
  .social-share {
    padding: 1.5rem;
  }

  .social-share-buttons {
    flex-direction: column;
  }

  .share-button {
    justify-content: center;
    width: 100%;
  }
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.entry-footer .tags {
  font-size: 0.95rem;
  color: #718096;
}

.entry-footer .tags a {
  display: inline-block;
  background: #f7fafc;
  color: #4a5568;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin: 0.25rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.entry-footer .tags a:hover {
  background: #48bb78;
  color: #ffffff;
  border-color: #48bb78;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #144222;
  border-top: 1px solid #2a5a3a;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.95rem;
  color: #c8d5c7;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-branding {
  padding-right: 2rem;
}

.footer-site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-description {
  color: #c8d5c7;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-company {
  color: #c8d5c7;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.footer-email {
  margin: 0;
}

.footer-email a {
  color: #48bb78;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-email a:hover {
  color: #38a169;
  text-decoration: underline;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7fdb9f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-menu,
.footer-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li,
.footer-category-list li {
  margin-bottom: 0.75rem;
}

.footer-menu a,
.footer-category-list a {
  color: #c8d5c7;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-menu a:hover,
.footer-category-list a:hover {
  color: #7fdb9f;
}

.footer-bottom {
  border-top: 1px solid #2a5a3a;
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  margin: 0;
  color: #9ab09a;
  font-size: 0.9rem;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-branding {
    padding-right: 0;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .site-container {
    padding: 0 0.75rem;
  }

  /* Header responsive */
  .header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }

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

  .site-title {
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-description {
    display: none;
  }

  .header-actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .mobile-search-toggle,
  .mobile-menu-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .header-search {
    display: none;
  }

  /* Show mobile search and menu toggle */
  .mobile-search-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Mobile Navigation */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 5rem 0 2rem 0;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }

  .main-navigation li {
    border-bottom: 1px solid #f7fafc;
    padding: 0;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    white-space: normal;
    text-align: right;
  }

  .main-navigation a:hover {
    background: #f7fafc;
  }

  /* Dropdown in mobile */
  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f7fafc;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-navigation ul ul a {
    padding-right: 2.5rem;
    padding-left: 1.5rem;
    font-size: 0.85rem;
  }

  /* Mobile menu overlay */
  .main-navigation::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
  }

  .main-navigation.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Article responsive */
  .site-main {
    padding: 2rem 0;
  }

  .entry-title {
    font-size: 2rem;
  }

  .article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .entry-content {
    font-size: 1.05rem;
  }

  .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .entry-content h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }

  .entry-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  .entry-content ul,
  .entry-content ol {
    margin-left: 1.5rem;
  }

  .entry-content blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 2rem 0;
  }

  .entry-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
  }

  /* Sidebar responsive - stack on mobile */
  .content-sidebar-wrap {
    flex-direction: column;
  }

  .sidebar {
    flex: 1;
    width: 100%;
  }
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar {
  /* Sidebar scrolls naturally with page content */
}

.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: #ffffff;
  padding: 0;
  margin-bottom: 2rem;
  border-radius: 0;
  border: none;
  border-left: 3px solid #48bb78;
  padding-left: 1.25rem;
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #48bb78;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

/* Style widget area paragraph titles (for manually added widget titles) */
.widget-area > section > p:first-child,
p.widget-styled-title,
.widget-styled-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #48bb78;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

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

.widget li {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

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

.widget a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
}

.widget a:hover {
  color: #48bb78;
}

/* Recent Posts Widget */
.widget_recent_entries .post-date {
  display: block;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 0.25rem;
}

/* Widget Post Images */
.widget img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.2s ease;
}

.widget a:hover img {
  transform: scale(1.02);
}

/* Categories Widget */
.widget_categories select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Tag Cloud */
.tagcloud a {
  display: inline-block;
  background: #f7fafc;
  color: #4a5568;
  padding: 0.4rem 0.9rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem !important;
  transition: all 0.2s ease;
}

.tagcloud a:hover {
  background: #48bb78;
  color: #ffffff;
  border-color: #48bb78;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e2e8f0;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

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

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid #48bb78;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}

.comment-author .fn {
  font-weight: 600;
  font-size: 1rem;
  color: #2d3748;
  font-style: normal;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #718096;
}

.comment-metadata a {
  color: #718096;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-metadata a:hover {
  color: #48bb78;
}

.comment-content {
  color: #4a5568;
  line-height: 1.7;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #48bb78;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.comment-reply-link:hover {
  background: #38a169;
}

/* Nested Comments */
.children {
  list-style: none;
  margin-left: 2rem;
  padding-left: 0;
  margin-top: 2rem;
}

.children .comment {
  background: #ffffff;
  border-left-color: #cbd5e0;
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.comment-reply-title small {
  font-size: 0.875rem;
  font-weight: 400;
}

.comment-reply-title small a {
  color: #718096;
  text-decoration: none;
}

.comment-reply-title small a:hover {
  color: #48bb78;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin: 0;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  margin: 0;
}

.form-submit input[type="submit"] {
  padding: 0.75rem 2rem;
  background: #48bb78;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit input[type="submit"]:hover {
  background: #38a169;
}

/* Comment Navigation */
.comment-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
  display: inline-block;
}

.comment-navigation a {
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.comment-navigation a:hover {
  color: #38a169;
}

/* No Comments Message */
.no-comments {
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
  text-align: center;
  color: #718096;
  font-size: 1rem;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
  margin-top: 4rem;
  padding: 3rem 0;
  background: #f7fafc;
  border-top: 2px solid #e2e8f0;
}

.related-posts-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-align: center;
}

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

.related-post-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.related-post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.related-post-content {
  padding: 1.5rem;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.related-post-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-title a:hover {
  color: #48bb78;
}

.related-post-excerpt {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.related-post-link {
  display: inline-block;
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.related-post-link:hover {
  color: #38a169;
}

/* Responsive adjustments for related posts */
@media (max-width: 1024px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: 2rem 0;
  }

  .related-posts-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */

.archive-header {
  padding: 1.5rem 0 2rem;
  background: #ffffff;
  border-bottom: 2px solid #c8d5c7;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2f6b3f;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.archive-description {
  color: #718096;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.archive-posts {
  padding: 3rem 0;
  background: #f7fafc;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-post-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.archive-post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

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

.archive-post-content {
  padding: 1.5rem;
}

.archive-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.archive-post-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.archive-post-title a:hover {
  color: #48bb78;
}

.archive-post-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
}

.archive-post-meta .meta-sep {
  margin: 0 0.5rem;
}

.archive-post-excerpt {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.archive-post-link {
  display: inline-block;
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.archive-post-link:hover {
  color: #38a169;
}

/* Pagination */
.archive-pagination,
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: #ffffff;
  color: #4a5568;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background: #48bb78;
  color: #ffffff;
  border-color: #48bb78;
}

.page-numbers.current {
  background: #48bb78;
  color: #ffffff;
  border-color: #48bb78;
}

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

.page-numbers.prev,
.page-numbers.next {
  padding: 0 1.25rem;
}

/* No Results */
.no-results {
  padding: 4rem 2rem;
  text-align: center;
  background: #f7fafc;
  border-radius: 8px;
  margin: 3rem 0;
}

.no-results h1 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.no-results p {
  color: #718096;
  font-size: 1.125rem;
}

/* Responsive adjustments for archives */
@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-title {
    font-size: 2rem;
  }
}

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

  .archive-header {
    padding: 2rem 0 1.5rem;
  }

  .archive-title {
    font-size: 1.75rem;
  }

  .archive-description {
    font-size: 1rem;
  }

  .archive-posts {
    padding: 2rem 0;
  }
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-header {
  padding: 1.5rem 0 2rem;
  background: #ffffff;
  border-bottom: 2px solid #c8d5c7;
}

.search-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2f6b3f;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.search-query {
  color: #48bb78;
  font-style: italic;
}

.search-results-count {
  color: #718096;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.search-results {
  padding: 3rem 0;
  background: #f7fafc;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-result-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-result-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.search-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-thumbnail img {
  transform: scale(1.05);
}

.search-result-content {
  padding: 1.5rem;
}

.search-result-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.search-result-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: #48bb78;
}

.search-result-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
}

.search-result-meta .meta-sep {
  margin: 0 0.5rem;
}

.search-result-meta .categories a {
  color: #48bb78;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-meta .categories a:hover {
  color: #38a169;
}

.search-result-excerpt {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.search-result-link {
  display: inline-block;
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.search-result-link:hover {
  color: #38a169;
}

/* Search No Results */
.search-no-results {
  padding: 4rem 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  margin: 3rem 0;
  border: 2px solid #c8d5c7;
}

.no-results-title {
  font-size: 2rem;
  color: #2f6b3f;
  margin-bottom: 1rem;
}

.no-results-text {
  color: #4a5568;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-try-again {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.search-try-again .search-form {
  display: flex;
  gap: 0.5rem;
}

.search-try-again .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-try-again .search-field:focus {
  outline: none;
  border-color: #48bb78;
}

.search-try-again .search-submit {
  padding: 0.75rem 1.5rem;
  background: #48bb78;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-try-again .search-submit:hover {
  background: #38a169;
}

.search-suggestions {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
}

.search-suggestions h3 {
  font-size: 1.125rem;
  color: #2f6b3f;
  margin-bottom: 1rem;
}

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

.search-suggestions li {
  padding: 0.5rem 0;
  color: #4a5568;
  line-height: 1.6;
}

.search-suggestions li::before {
  content: "→";
  color: #48bb78;
  margin-right: 0.75rem;
  font-weight: 600;
}

.search-suggestions a {
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.search-suggestions a:hover {
  color: #38a169;
  text-decoration: underline;
}

/* Responsive adjustments for search */
@media (max-width: 1024px) {
  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-title {
    font-size: 1.75rem;
  }
}

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

  .search-header {
    padding: 2rem 0 1.5rem;
  }

  .search-title {
    font-size: 1.5rem;
  }

  .search-results-count {
    font-size: 0.9rem;
  }

  .search-results {
    padding: 2rem 0;
  }

  .search-no-results {
    padding: 2.5rem 1.5rem;
  }

  .no-results-title {
    font-size: 1.5rem;
  }

  .no-results-text {
    font-size: 1rem;
  }
}

/* ==========================================================================
   HOMEPAGE (FRONT PAGE)
   ========================================================================== */

/* Hero Section */
.home-hero {
  background: linear-gradient(135deg, #f7fafc 0%, #e8f5e9 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

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

.hero-text {
  padding: 2rem 0;
}

.hero-category {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-category a {
  display: inline-block;
  background: #e6f7ed;
  color: #2f6b3f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.hero-category a:hover {
  background: #d1f0dd;
  color: #2f6b3f;
  text-decoration: none;
}

.hero-title {
  font-size: clamp(2.25rem, 1.8rem + 1.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.25rem 0;
  color: #2f6b3f;
  letter-spacing: -0.02em;
}

.hero-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-title a:hover {
  color: #48bb78;
}

.hero-meta {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

.hero-meta .meta-sep {
  margin: 0 0.5rem;
}

.hero-excerpt {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  background: #48bb78;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.hero-button:hover {
  background: #38a169;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Category Sections */
.category-section {
  padding: 3rem 0;
  background: #ffffff;
}

.category-section:nth-of-type(even) {
  background: #f7fafc;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.category-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2f6b3f;
  margin: 0;
}

.category-section-title a {
  color: #2f6b3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-section-title a:hover {
  color: #48bb78;
}

.category-view-all {
  color: #48bb78;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-view-all:hover {
  color: #38a169;
}

/* Hero Style Layout (Odd Categories) */
.category-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.category-hero-post {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-hero-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-hero-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.category-hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-hero-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.category-hero-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-hero-title a:hover {
  color: #48bb78;
}

.category-hero-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-hero-excerpt {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.category-hero-link {
  color: #48bb78;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.category-hero-link:hover {
  color: #38a169;
}

/* Hero Grid (2x2 small cards) */
.category-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.category-grid-item-small {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.category-grid-item-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-grid-thumbnail-small {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.category-grid-thumbnail-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-grid-item-small:hover .category-grid-thumbnail-small img {
  transform: scale(1.05);
}

.category-grid-content-small {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-grid-title-small {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
  flex: 1;
}

.category-grid-title-small a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-grid-title-small a:hover {
  color: #48bb78;
}

.category-grid-meta-small {
  font-size: 0.8125rem;
  color: #718096;
  margin: 0;
}

/* Grid Style Layout (Even Categories - 3x2) */
.category-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-grid-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-grid-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.category-grid-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-grid-item:hover .category-grid-thumbnail img {
  transform: scale(1.05);
}

.category-grid-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-grid-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.category-grid-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-grid-title a:hover {
  color: #48bb78;
}

.category-grid-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-grid-excerpt {
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex: 1;
}

.category-grid-link {
  color: #48bb78;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.category-grid-link:hover {
  color: #38a169;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .category-hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .category-section {
    padding: 2rem 0;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-section-title {
    font-size: 1.5rem;
  }

  .category-hero-title {
    font-size: 1.5rem;
  }

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

  .category-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Latest Articles Grid (Legacy - can be removed if not used) */
.home-grid {
  padding: 3rem 0;
  background: #ffffff;
}

.home-grid-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2f6b3f;
  text-align: center;
  margin: 0 0 3rem 0;
  padding-bottom: 1rem;
  position: relative;
}

.home-grid-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #48bb78;
  border-radius: 3px;
}

.home-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.home-grid-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-grid-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.home-grid-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-grid-item:hover .home-grid-thumbnail img {
  transform: scale(1.05);
}

.home-grid-content {
  padding: 1.5rem;
}

.home-grid-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.home-grid-item-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-grid-item-title a:hover {
  color: #48bb78;
}

.home-grid-meta {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
}

.home-grid-meta .meta-sep {
  margin: 0 0.5rem;
}

.home-grid-excerpt {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.home-grid-link {
  display: inline-block;
  color: #48bb78;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.home-grid-link:hover {
  color: #38a169;
}

/* Homepage Pagination */
.home-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.home-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: #ffffff;
  color: #4a5568;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  transition: all 0.2s ease;
}

.home-pagination .page-numbers:hover,
.home-pagination .page-numbers.current {
  background: #48bb78;
  color: #ffffff;
  border-color: #48bb78;
}

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

/* Responsive Design for Homepage */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text {
    padding: 1rem 0;
  }

  .hero-title {
    font-size: clamp(2rem, 1.65rem + 1.2vw, 2.75rem);
  }

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

  .home-grid-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 2rem 0;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.4rem);
  }

  .hero-excerpt {
    font-size: 1rem;
  }

  .hero-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .home-grid {
    padding: 2rem 0;
  }

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

  .home-grid-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   CONTACT FORM 7 STYLING
   ========================================================================== */

/* Form Container */
.wpcf7-form {
  max-width: 700px;
  margin: 2rem 0;
}

/* Form Paragraphs */
.wpcf7-form p {
  margin-bottom: 1.5rem;
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Input Fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: #2d3748;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Input Focus State */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

/* Textarea Specific */
.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Invalid/Error State */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
  border-color: #ef4444;
}

.wpcf7-form input.wpcf7-not-valid:focus,
.wpcf7-form textarea.wpcf7-not-valid:focus,
.wpcf7-form select.wpcf7-not-valid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validation Error Messages */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #ef4444;
}

/* Form Response Messages */
.wpcf7-form .wpcf7-response-output {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

/* Success Message */
.wpcf7-form .wpcf7-mail-sent-ok {
  border-color: #48bb78;
  background-color: #f0fdf4;
  color: #2f6b3f;
}

/* Error Message */
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng {
  border-color: #ef4444;
  background-color: #fef2f2;
  color: #991b1b;
}

/* Spam/Blocked Message */
.wpcf7-form .wpcf7-spam-blocked {
  border-color: #f59e0b;
  background-color: #fffbeb;
  color: #92400e;
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  color: #ffffff;
  background-color: #48bb78;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Submit Button Hover */
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background-color: #38a169;
  transform: translateY(-2px);
}

/* Submit Button Active */
.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Submit Button Disabled/Submitting */
.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form button[type="submit"]:disabled {
  background-color: #cbd5e0;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.wpcf7-form .wpcf7-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 0.75rem;
  vertical-align: middle;
  border: 3px solid rgba(72, 187, 120, 0.3);
  border-top-color: #48bb78;
  border-radius: 50%;
  animation: wpcf7-spin 0.6s linear infinite;
}

@keyframes wpcf7-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Checkbox & Radio Buttons */
.wpcf7-form .wpcf7-list-item {
  display: block;
  margin: 0.5rem 0;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.wpcf7-form .wpcf7-list-item-label {
  display: inline;
  font-weight: normal;
  vertical-align: middle;
}

/* Acceptance Checkbox (Terms & Conditions) */
.wpcf7-form .wpcf7-acceptance {
  margin: 1.5rem 0;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

/* File Upload */
.wpcf7-form input[type="file"] {
  padding: 0.5rem;
  font-size: 0.95rem;
}

/* Select Dropdown */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232d3748' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 3rem;
}

/* Quiz/Quiz-Result Styling */
.wpcf7-form .wpcf7-quiz-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Placeholder Styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #a0aec0;
  opacity: 1;
}

/* Focus Visible for Accessibility */
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form button:focus-visible {
  outline: 2px solid #48bb78;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wpcf7-form {
    margin: 1.5rem 0;
  }

  .wpcf7-form input[type="submit"],
  .wpcf7-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
  }

  .wpcf7-form p {
    margin-bottom: 1.25rem;
  }
}

/* Dark Background Compatibility */
.has-dark-background .wpcf7-form input[type="text"],
.has-dark-background .wpcf7-form input[type="email"],
.has-dark-background .wpcf7-form input[type="url"],
.has-dark-background .wpcf7-form input[type="tel"],
.has-dark-background .wpcf7-form input[type="number"],
.has-dark-background .wpcf7-form input[type="date"],
.has-dark-background .wpcf7-form select,
.has-dark-background .wpcf7-form textarea {
  background-color: #2d3748;
  color: #ffffff;
  border-color: #4a5568;
}

.has-dark-background .wpcf7-form input::placeholder,
.has-dark-background .wpcf7-form textarea::placeholder {
  color: #718096;
}
