/*
Theme Name: Abode Parenting
Theme URI: https://example.com/abode-parenting
Description: A high-performance, SEO-optimized WordPress theme for parenting content
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abode-parenting
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* Google Font: Poppins — loaded via functions.php */

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
  --color-primary-green: #316541;
  --color-primary-green-dark: #244d31;
  --color-white: #ffffff;
  --color-light-yellow: #fffef5;
  --color-light-gray: #f6f6f6;
  --color-gray: #e0e0e0;
  --color-dark-gray: #888888;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-cloud-yellow: #f5e6a3;

  /* Category card backgrounds */
  --color-card-pink: #fce4e4;
  --color-card-purple: #ebe8ff;
  --color-card-yellow: #fdfde6;
  --color-card-blue: #e3f6ff;
  --color-card-green: #edfade;
  --color-card-orange: #fdecd6;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}

.category-card {
  -webkit-user-drag: none;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--color-primary-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-green-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 101, 65, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  /* Gray text matching mockup */
  border: 1px solid #374151;
}

.btn-outline:hover {
  background-color: #f3f4f6;
  color: #111827;
  transform: translateY(-2px);
  border-color: #111827;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background-color: #ffffff;
  padding: 10px 0;
  position: relative;
  min-height: 100px;
  overflow: visible;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.site-header .container {
  max-width: 1400px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  margin-left: -10px;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 130px;
  /* Balanced size */
  width: auto;
  object-fit: contain;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Base Nav Menu */
.main-nav {
  flex: 1;
}

.nav-menu {
  display: flex;
  gap: 36px;
  /* Spaced out to match Figma */
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #333333;
  font-size: 17.5px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
  padding: 0.3rem 0;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary-green);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-primary-green);
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA */
.header-cta {
  flex-shrink: 0;
}



/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background-color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: stretch;
}

/* --- Hero Animations --- */
@keyframes heroBounceUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }

  60% {
    transform: translateY(-8px);
    opacity: 1;
  }

  80% {
    transform: translateY(4px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroPopIn {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes heroDropBounce {
  0% {
    transform: translateY(-120px) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translateY(20px) scale(1);
    opacity: 1;
  }

  75% {
    transform: translateY(-10px) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes heroFadeUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: flex-start;
  min-height: 430px;
}

/* ---- Hero Text ---- */
.hero-text {
  padding: 90px 0 48px 0;
  position: relative;
  /* needed for .hero-deco-strokes absolute positioning */
}

/*
  3 decorative stroke marks.
  .hero-text is position:relative, font ~3.6rem, line-height 1.1.
  Each line is about 3.96rem tall.
  Line 2 ("Your Parenting") ends at ~top: 7.9rem from the .hero-text top
  including the 90px padding.
  We position the strokes so they sit to the RIGHT of the 2nd heading line.
*/
.hero-deco-strokes {
  position: absolute;
  /* Vertically: align with end of line 2 of h1 */
  top: calc(90px + 3.5rem);
  /* approx at line-2 baseline */
  /* Horizontally: to the right — after "Your Parenting" text ends */
  left: 96%;
  /* nudge right of the text; adjust if needed */
  display: block;
  line-height: 0;
  pointer-events: none;
  opacity: 0;
  animation: heroPopIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.65s;
}

.hero-text h1 {
  font-family: 'Fugaz One', cursive;
  font-size: clamp(2.2rem, 5vw, 56px);
  font-weight: 400;
  font-style: normal;
  color: #0d0d0d;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
  opacity: 0;
  animation: heroFadeUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-text p {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 340px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease-out forwards;
  animation-delay: 0.7s;
}

.hero-text .btn {
  opacity: 0;
  animation: heroFadeUp 0.6s ease-out forwards;
  animation-delay: 0.85s;
}

/* ---- Hero Image ---- */
.hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  /* push image to the left within its column */
  height: 100%;
  min-height: 430px;
  overflow: visible;
  /* allow kid to extend above section */
}

.hero-image img {
  height: 760px;
  /* bigger to fill section despite PNG transparent padding */
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 1;
  display: block;
  margin-left: -600px;
  /* pull left toward the text */
  margin-bottom: -10px;
  /* pull down slightly to sit on section bottom */

  opacity: 0;
  animation: heroBounceUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-delay: 0.05s;
}

/* ---- Decorative Circles ---- */
/* All circles are absolutely positioned within .hero (position: relative) */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: heroDropBounce 0.75s ease-out forwards;
}

/* 1. Small green — beside "Journey" text (left side, mid-height) */
.hero-circle-green-left {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 35%, #F2FFF0 0%, #BCEBB3 50%, #8DB885 100%);
  left: 11%;
  top: 57%;
  animation-delay: 0.2s;
}

/* 2. Medium teal — left side, below the green ball */
.hero-circle-teal-mid-left {
  width: 55px;
  height: 55px;
  background: radial-gradient(circle at 35% 35%, #E0FAF8 0%, #4DD9D0 50%, #2BB8B0 100%);
  left: 2%;
  top: 66%;
  animation-delay: 0.25s;
}

/* 3. Large teal — bottom-left corner, now fully visible */
.hero-circle-teal-btm-lg {
  width: 95px;
  height: 95px;
  background: radial-gradient(circle at 35% 35%, #E0FAF8 0%, #4DD9D0 50%, #2BB8B0 100%);
  left: 2%;
  bottom: 15px;
  animation-delay: 0.3s;
}

/* 4. Small green — top-right */
.hero-circle-green-right {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 35% 35%, #F2FFF0 0%, #BCEBB3 50%, #8DB885 100%);
  right: 8%;
  top: 18%;
  animation-delay: 0.35s;
}

/* 5. Medium teal — right-middle */
.hero-circle-teal-right {
  width: 55px;
  height: 55px;
  background: radial-gradient(circle at 35% 35%, #E0FAF8 0%, #4DD9D0 50%, #2BB8B0 100%);
  right: 7%;
  top: 73%;
  animation-delay: 0.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.categories-section .container {
  max-width: 100%;
  width: 100%;
  padding: 0 80px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 30px;
  border-radius: 35px;
  border: 2px dashed #333333;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-style: solid;
  /* Switch to solid on hover for a premium feel */
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.category-card-icon {
  flex-shrink: 0;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 0;
  font-family: 'Chelsea Market', 'Fredoka One', 'Comic Sans MS', cursive, sans-serif;
}

.category-card p {
  font-size: 15px;
  color: #4B5563;
  margin: 0;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

/* Category Specific Colors from Figma */
.category-card.parenting {
  background-color: #F8DADA;
}

.category-card.parenting h3 {
  color: #E57373;
}

.category-card.reading {
  background-color: #E1E1FA;
}

.category-card.reading h3 {
  color: #7986CB;
}

.category-card.fun-games {
  background-color: #F9F9D9;
}

.category-card.fun-games h3 {
  color: #AFB42B;
}

.category-card.celebrations {
  background-color: #D8F2FA;
}

.category-card.celebrations h3 {
  color: #4FC3F7;
}

.category-card.food-nutrition {
  background-color: #E1FAD8;
}

.category-card.food-nutrition h3 {
  color: #8BC34A;
}

.category-card.learning {
  background-color: #FADED8;
}

.category-card.learning h3 {
  color: #FF8A65;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  background-color: var(--color-white);
  padding: 80px 0;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 48px;
  font-weight: 700;
  color: #1A1A1A;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: flex-start;
}

.faq-item {
  background-color: rgba(195, 236, 235, 0.75);
  /* #C3ECEB at 75% opacity */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  /* Updated gentle shadow */
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: auto;
}

.faq-item.is-open {
  border-radius: 20px;
}

.faq-item-title {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-item-title:hover {
  color: #1A1A1A;
}

.faq-arrow {
  font-size: 24px;
  font-weight: 300;
  color: #000000;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.faq-arrow::before {
  content: '+';
}

.faq-item.is-open .faq-arrow::before {
  content: '\2212';
  /* En dash / Minus sign */
}

.faq-item-answer {
  padding: 0 24px 0 64px;
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.is-open .faq-item-answer {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  padding: 0 24px 24px 64px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
  background-color: var(--color-white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-circles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.nl-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.nl-circle-1 {
  width: 18px;
  height: 18px;
  background: rgba(141, 184, 133, 0.7);
  top: 60%;
  left: 15%;
  filter: blur(2px);
}

.nl-circle-2 {
  width: 240px;
  height: 240px;
  background: rgba(224, 250, 248, 0.8);
  top: 50%;
  left: -2%;
  filter: blur(40px);
}

.nl-circle-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(188, 235, 179, 0.5) 0%, rgba(188, 235, 179, 0) 70%);
  bottom: 0%;
  right: 15%;
}

.nl-circle-4 {
  width: 16px;
  height: 16px;
  background: rgba(43, 184, 176, 0.5);
  top: 40%;
  right: 25%;
  filter: blur(1px);
}

.nl-circle-5 {
  width: 22px;
  height: 22px;
  background: rgba(141, 184, 133, 0.6);
  bottom: 25%;
  right: 18%;
  filter: blur(2px);
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--color-gray);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  width: 280px;
  transition: border-color 0.25s ease;
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

.newsletter-input:focus {
  border-color: var(--color-primary-green);
}

.newsletter-btn {
  padding: 0.65rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-white);
  padding: 6rem 0 1.5rem;
  /* plenty of top padding to avoid cloud overlap */
  position: relative;
  overflow-x: hidden;
  /* prevents scrollbar from the edge-to-edge line */
}

/* SVG cloud — hanging down from the top of the footer */
.footer-cloud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 20;
  /* Add subtle drop shadow to make the cloud pop */
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.06));
}

.footer-cloud-top svg {
  display: block;
  width: 100%;
}

/* ---- Footer content grid ---- */
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  /* Reasonable, balanced natural flexbox gaps */
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 200px;
}

.footer-logo-wrapper img {
  height: 130px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #000000;
  font-weight: 500;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.footer-social a {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  transition: all 0.25s ease;
}

.footer-social a:hover {
  color: var(--color-primary-green);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-column h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-column a {
  color: #000000;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: var(--color-primary-green);
}

/* ---- Footer bottom bar ---- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background-color: #111111;
  /* Dark defined colored line */
}

.footer-copyright {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--color-text-secondary);
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-primary-green);
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */
.category-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--color-primary-green);
  transition: color 0.25s ease;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-dark-gray);
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--color-text-primary);
}

.category-header {
  background-color: var(--color-light-gray);
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  text-align: center;
}

.category-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

/* Category controls */
.category-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.category-filters {
  flex: 1;
  min-width: 280px;
}

.filter-group {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--color-gray);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary-green);
  color: var(--color-primary-green);
}

.filter-btn.active {
  background-color: var(--color-primary-green);
  color: white;
  border-color: var(--color-primary-green);
}

/* Search */
.category-search {
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: 25px;
  padding: 0.3rem 0.5rem;
  overflow: hidden;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  color: var(--color-text-primary);
}

.search-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-primary-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog grid (category page) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.blog-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
}

.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-text-secondary);
}

/* Load more */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn-load-more {
  background-color: var(--color-primary-green);
  color: white;
  padding: 0.75rem 2.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-load-more:hover {
  background-color: var(--color-primary-green-dark);
  transform: translateY(-2px);
}

.btn-load-more:disabled {
  background-color: var(--color-gray);
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
/* Fix header spacing on single posts — reduce the "gap" perceived by the large logo */
body.single-post-page .site-header {
  padding-top: 0;
  padding-bottom: 5px;
}

.single-post-page {
  padding: 1.5rem 0 3rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.single-breadcrumb {
  margin-bottom: 2rem;
}

.single-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: start;
}

.single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.single-meta {
  margin-bottom: 2rem;
}

.meta-author {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.meta-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.meta-author-social {
  display: flex;
  gap: 10px;
  margin-left: 15px;
  align-items: center;
}

.author-social-link {
  color: #64748b;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.author-social-link.twitter:hover {
  color: #1DA1F2;
}

.author-social-link.linkedin:hover {
  color: #0077b5;
}

.author-social-link.website:hover {
  color: #10b981;
}

.single-featured-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-placeholder-image {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
}

.single-content {
  color: var(--color-text-primary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 4rem;
}

.single-content h2,
.single-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.single-content p {
  margin-bottom: 1.5rem;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.single-content blockquote {
  border-left: 4px solid var(--color-primary-green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-secondary);
}

.single-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray);
}

.share-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.share-icons {
  display: flex;
  gap: 0.75rem;
}

.share-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-light-gray);
  color: var(--color-text-primary);
  transition: all 0.25s ease;
}

.share-icon:hover {
  background-color: var(--color-primary-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Sidebar */
.single-sidebar .popular-widget {
  background-color: #FFFDF4;
  /* Pale yellow from design */
  padding: 2rem;
  border-radius: 12px;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-text-primary);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.popular-post-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.popular-post-item:hover {
  transform: translateX(4px);
}

.popular-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-placeholder-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
}

.popular-info {
  flex: 1;
}

.popular-meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pop-cat {
  color: var(--color-primary-green);
  font-weight: 600;
  text-transform: uppercase;
}

.popular-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

/* Related section */
.related-section {
  padding-top: 4rem;
  border-top: 1px solid var(--color-gray);
}

.related-header {
  text-align: center;
  margin-bottom: 3rem;
}

.related-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.related-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* Related posts grid — exactly 3 columns, all equal height */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

/* Vertical blog card shell */
.blog-card-vertical {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card-vertical:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Image at top — fixed height */
.blog-card-vertical .blog-card-image {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.blog-card-vertical .blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no thumbnail */
.blog-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content below image */
.blog-card-vertical .blog-card-content {
  flex: 1;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* Category label */
.blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-green);
  margin-bottom: 0.5rem;
  display: block;
}

/* Card title */
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--color-text-primary);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color-primary-green);
}

/* Excerpt */
.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

/* Author footer */
.blog-meta-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-avatar img {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.meta-author-info {
  display: flex;
  flex-direction: column;
}

.meta-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.meta-date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ============================================
   AUTHORS PAGE
   ============================================ */
.page-authors {
  padding: 3rem 0 6rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}

.author-card {
  display: flex;
  flex-direction: column;
}

.author-avatar {
  margin-bottom: 1.5rem;
}

.author-avatar img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background-color: #e0e0e0;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.author-name a {
  color: inherit;
  transition: color 0.25s ease;
}

.author-name a:hover {
  color: var(--color-primary-green);
}

.author-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4B5563;
  margin-bottom: 1rem;
}

.author-desc {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-social {
  display: flex;
  gap: 1rem;
}

.author-social .social-icon {
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.author-social .social-icon:hover {
  color: var(--color-primary-green);
}

/* ============================================
   SINGLE AUTHOR PAGE (AUTHOR.PHP)
   ============================================ */
.page-single-author {
  padding: 3rem 0;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.author-profile-header {
  display: flex;
  gap: 3.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.author-profile-image {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
}

.author-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #6b7280;
  /* Gray from mockup */
}

.author-profile-placeholder {
  width: 100%;
  height: 100%;
  background-color: #6b7280;
}

.author-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-profile-quote {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.6;
  margin: 0 0 4rem 0;
  max-width: 600px;
}

.author-profile-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.author-profile-info {
  display: flex;
  flex-direction: column;
}

.author-profile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.author-profile-title {
  font-size: 0.85rem;
  color: #4B5563;
}

.author-profile-divider {
  width: 1px;
  height: 35px;
  background-color: #d1d5db;
}

.author-profile-social {
  display: flex;
  gap: 1.25rem;
}

.author-profile-social .social-icon {
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.author-profile-social .social-icon:hover {
  color: var(--color-primary-green);
}

/* Author Feed Posts */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111827;
}

.author-posts-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.author-feed-post {
  display: flex;
  flex-direction: column;
  padding-bottom: 5rem;
  border-bottom: 1px solid #e5e7eb;
}

.author-feed-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.author-feed-image {
  width: 100%;
  height: 500px;
  margin-bottom: 1.5rem;
  background-color: #f3f4f6;
  overflow: hidden;
}

.author-feed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-feed-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f3f4f6;
}

.author-feed-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.feed-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feed-meta-by {
  font-size: 0.9rem;
  color: #111827;
}

.feed-meta-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.feed-meta-right {
  display: flex;
  gap: 1rem;
}

.share-icon-small {
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.share-icon-small:hover {
  color: var(--color-primary-green);
}

.author-feed-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.author-feed-title a {
  color: inherit;
}

.author-feed-title a:hover {
  color: var(--color-primary-green);
}

.author-feed-excerpt {
  text-align: center;
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.author-feed-readmore {
  display: flex;
  justify-content: center;
}

.author-feed-readmore .btn-read-more:hover {
  background-color: var(--color-primary-green-dark) !important;
  transform: translateY(-2px);
}

/* ============================================
   ABOUT PAGE (PAGE-ABOUT.PHP)
   ============================================ */
.page-about {
  padding: 3rem 0;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.about-text-content {
  font-size: 1rem;
  color: #111827;
  line-height: 1.6;
}

.about-text-content p {
  margin-bottom: 1.5rem;
}

.about-image {
  width: 100%;
  height: 100%;
}

.about-placeholder-img {
  width: 100%;
  min-height: 480px;
  background-color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CONTACT PAGE (PAGE-CONTACT.PHP)
   ============================================ */
.page-contact {
  padding: 3rem 0 6rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.contact-header-section {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-box,
.contact-form-box {
  background-color: #e5ede6;
  /* Soft sage green from mockup */
  border-radius: 16px;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.contact-info-box {
  z-index: 1;
}

.contact-info-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  z-index: 2;
  position: relative;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #374151;
  text-align: center;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
}

.contact-social-link {
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.contact-social-link:hover {
  color: var(--color-primary-green);
}

/* Decorative circles */
.contact-circles-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-circle-1 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(162, 212, 169, 0.7) 0%, rgba(162, 212, 169, 0.3) 100%);
  border-radius: 50%;
  bottom: 30px;
  right: 50px;
}

.contact-circle-2 {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(184, 216, 191, 0.5);
  border-radius: 50%;
  bottom: -40px;
  right: -20px;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  background-color: #d1dad3;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: #111827;
  width: 100%;
  outline: none;
  transition: box-shadow 0.25s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 2px var(--color-primary-green);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.contact-submit-btn {
  background-color: var(--color-primary-green);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.75rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-submit-btn:hover {
  background-color: var(--color-primary-green-dark);
  transform: translateY(-2px);
}

/* ============================================
   GENERIC TEXT PAGE (TERMS, PRIVACY, ETC)
   ============================================ */
.page-generic-text {
  padding: 2rem 0 8rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.generic-text-content {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.8;
}

.generic-text-content h2,
.generic-text-content h3,
.generic-text-content h4,
.generic-text-content h5,
.generic-text-content h6 {
  color: #111827;
  font-weight: 700;
}

.generic-text-content h2 {
  font-size: 2.2rem;
  margin: 3rem 0 1.5rem;
  font-weight: 800;
}

.generic-text-content h3 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.25rem;
}

.generic-text-content h4 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1.25rem;
}

.generic-text-content h5 {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
}

.generic-text-content h6 {
  font-size: 1.05rem;
  margin: 2rem 0 1rem;
}

.generic-text-content p {
  margin-bottom: 1.5rem;
}

.generic-text-content strong {
  font-weight: 700;
  color: #111827;
}

.generic-text-content blockquote {
  border-left: 2px solid #e5e7eb;
  padding-left: 2rem;
  margin: 3rem 0;
  font-size: 1.05rem;
  color: #111827;
}

.generic-text-content blockquote p {
  margin-bottom: 0;
}

/* ============================================
   PRIVACY POLICY (PAGE-PRIVACY-POLICY.PHP)
   ============================================ */
.page-privacy-policy {
  padding: 4rem 0 8rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.privacy-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
}

.privacy-sidebar {
  position: relative;
}

.toc-widget {
  position: sticky;
  top: 120px;
}

.toc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.toc-item {
  display: block;
}

.toc-item a {
  display: block;
  padding: 0.8rem 1rem;
  color: #374151;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.toc-item.level-2 a {
  padding-left: 1rem;
}

.toc-item.level-3 a {
  padding-left: 2rem;
}

.toc-item.level-4 a {
  padding-left: 3rem;
}

.toc-item.level-5 a {
  padding-left: 4rem;
}

.toc-item.level-6 a {
  padding-left: 5rem;
}

.toc-item a:hover {
  color: #111827;
  background-color: #f9fafb;
}

.toc-item.active a {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

/* ============================================
   ERROR 404 PAGE (404.PHP)
   ============================================ */
.page-404 {
  padding: 4rem 0 8rem;
  background-color: var(--color-white);
  min-height: calc(100vh - 200px);
}

.error-404-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 800px;
  padding: 2rem 0;
}

.error-404-huge-title {
  font-size: 8rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 1rem 0;
  line-height: 1;
}

.error-404-subtitle {
  font-size: 3rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 1.5rem 0;
}

.error-404-text {
  font-size: 1.5rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.error-404-actions {
  display: flex;
  gap: 1.5rem;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-green);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   WORDPRESS SPECIFICS
   ============================================ */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   RESPONSIVE — LAPTOP / SMALL DESKTOP (1024px)
   ============================================ */
@media (max-width: 1024px) {

  /* Category Page */
  .category-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-filters {
    width: 100%;
  }

  .category-search {
    width: 100%;
  }

  .search-form {
    width: 100%;
    max-width: 420px;
  }

  /* 2-column blog grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Related posts - 2 columns */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Single post layout */
  .single-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    min-height: 70px;
  }

  .site-logo img {
    height: 80px;
  }

  .header-content {
    justify-content: space-between;
    min-height: 50px;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Nav Wrapper as dropdown */
  .nav-wrapper {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-top: 1px solid #eee;
  }

  .nav-wrapper.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    width: 100%;
    align-items: center;
    margin-top: 0;
  }

  .header-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  /* Hero */
  .hero,
  .hero-content,
  .hero-image {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px 0 10px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-text p {
    margin: 0 auto 0.5rem auto;
    max-width: 90%;
    font-size: 1rem;
  }

  .hero-image {
    order: 2;
    margin-left: 0;
    margin-top: -10px;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
  }

  /* Mobile circles spacing adjustments */
  .hero-circle-green-left {
    top: 15%;
    left: 5%;
  }

  .hero-circle-teal-mid-left {
    top: 45%;
    left: 5%;
  }

  .hero-circle-teal-btm-lg {
    bottom: 20px;
    left: 15%;
  }

  .hero-circle-green-right {
    top: 25%;
    right: 5%;
  }

  .hero-circle-teal-right {
    top: 65%;
    right: 10%;
  }

  /* Categories */
  .categories-section {
    padding: 60px 0;
  }

  .categories-section .container {
    padding: 0 30px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* About Page */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image .about-placeholder-img {
    min-height: 350px;
  }

  /* Contact Page */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* Privacy Policy Page */
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .toc-widget {
    position: static;
  }

  /* Authors Page */
  .authors-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Single Author Page */
  .author-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .author-profile-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }

  .author-profile-meta {
    justify-content: center;
  }

  .author-feed-image {
    height: 300px;
  }

  /* Single Post */
  .single-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .single-title {
    font-size: 2rem;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* 404 Error */
  .error-404-huge-title {
    font-size: 6rem;
  }

  .error-404-subtitle {
    font-size: 2.2rem;
  }

  .error-404-text {
    font-size: 1.25rem;
  }

  /* Footer */
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-logo-col {
    margin-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Category Page — Tablet */
  .category-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 1.75rem;
  }

  .filter-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }

  .filter-btn.active {
    padding: 0.55rem 1.2rem;
  }

  .category-search {
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  /* 2-column blog grid on tablet */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .blog-card-vertical .blog-card-image {
    height: 155px;
  }

  .blog-card-vertical .blog-card-content {
    padding: 0.85rem 1.1rem 1.1rem;
  }

  .blog-card-title {
    font-size: 0.9rem;
  }

  .blog-card-excerpt {
    font-size: 0.8rem;
  }

  /* Related grid — 2 col */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .related-title {
    font-size: 1.6rem;
  }

  /* Load more */
  .btn-load-more {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  .site-header {
    padding-bottom: 20px;
  }

  .nav-container {
    gap: 1rem;
  }

  .site-logo {
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .categories-section {
    padding: 40px 0;
  }

  .categories-section .container {
    padding: 0 15px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 20px 15px;
  }

  .category-card h3 {
    font-size: 22px;
  }

  .faq-item-title {
    padding: 16px;
    font-size: 16px;
  }

  .faq-item-answer {
    padding: 0 16px 16px 48px;
    font-size: 15px;
  }

  .single-title {
    font-size: 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-input {
    width: 100%;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  /* Category Page — Mobile */
  .category-controls {
    gap: 10px;
    margin-bottom: 1.25rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .filter-btn.active {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  /* Single column on mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-card-vertical .blog-card-image {
    height: 180px;
  }

  .blog-card-vertical .blog-card-content {
    padding: 0.85rem 1rem 1rem;
  }

  .blog-card-title {
    font-size: 0.95rem;
  }

  /* Related grid — single col on mobile */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-title {
    font-size: 1.4rem;
  }

  /* Category header */
  .category-header {
    padding: 2rem 1rem;
    border-radius: 10px;
  }

  .category-title {
    font-size: 1.6rem;
  }

  /* Load more */
  .btn-load-more {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}