/*
Theme Name: Playful Kids Lab Sand
Theme URI: https://playfulkidslab-sand.com
Author: Naoya Ueda
Author URI: https://naoyaueda.com
Description: World's best WordPress theme for sand art and sand play. Featuring playful interactions, warm colors, and a highly engaging design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Playful Kids Lab Sand
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Quicksand:wght@400;600;700&display=swap');

:root {
  /* Colorful Sand Palette */
  --bg-color: #FDFBF7;
  --sand-soft: #F4E8D1;
  --sand-warm: #E8C39E;
  --sand-deep: #D09D64;

  /* Playful Accents */
  --accent-coral: #FF8A65;
  --accent-teal: #4DB6AC;
  --accent-sun: #FFD54F;

  /* Text */
  --text-main: #5D4037;
  --text-light: #8D6E63;
  --text-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  /* UI Elements */
  --radius-soft: 20px;
  --radius-organic: 40px 10px 40px 10px;
  --radius-organic-alt: 10px 40px 10px 40px;
  --radius-pill: 50px;

  /* Shadows & Glass */
  --shadow-soft: 0 10px 30px rgba(93, 64, 55, 0.08);
  --shadow-hover: 0 20px 40px rgba(93, 64, 55, 0.15);
  --glass-bg: rgba(253, 251, 247, 0.7);
  --glass-blur: blur(12px);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
  /* Strictly force completely hiding the default OS cursor everywhere */
}

/* Restore system cursor for WordPress Admin Bar to prevent disappearing cursors */
#wpadminbar,
#wpadminbar * {
  cursor: default !important;
}

#wpadminbar a,
#wpadminbar a *,
#wpadminbar button,
#wpadminbar button *,
#wpadminbar input,
#wpadminbar .ab-item {
  cursor: pointer !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  /* Very subtle sand texture using CSS dots */
  background-image: radial-gradient(rgba(208, 157, 100, 0.05) 1.5px, transparent 1.5px),
    radial-gradient(rgba(208, 157, 100, 0.05) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-soft);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='29' y='12' width='6' height='30' fill='%23D09D64'/%3E%3Crect x='20' y='8' width='24' height='8' rx='4' fill='%234DB6AC'/%3E%3Cpath d='M26 8 C26 -2, 38 -2, 38 8' fill='none' stroke='%234DB6AC' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M20 40 Q32 32 44 40 L40 54 Q32 64 24 54 Z' fill='%23FF8A65'/%3E%3Cpath d='M24 42 L40 42 L36 50 L28 50 Z' fill='%23FFAA8E'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: 9999;

  /* Anchor to bottom center (tip of the shovel) */
  transform-origin: 50% 100%;
  transform: translateY(-100%) translateX(-50%) rotate(20deg);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
  /* Add subtle drop shadow */
  filter: drop-shadow(4px 10px 10px rgba(93, 64, 55, 0.1));
}

.custom-cursor.hovering {
  /* Scoop animation effect when hovering */
  transform: translateY(-100%) translateX(-50%) rotate(50deg) scale(1.2);
  filter: drop-shadow(8px 15px 15px rgba(255, 138, 101, 0.4));
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-white);
  background: var(--accent-coral);
  border-radius: var(--radius-organic);
  border: none;
  cursor: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 138, 101, 0.5);
  cursor: pointer;
  border-radius: var(--radius-organic-alt);
  color: var(--text-white);
}

/* Squishy Sand Button Effect */
.btn:active {
  transform: scale(1.05, 0.85) translateY(5px);
  border-radius: 60px 40px 60px 40px;
  box-shadow: inset 0 8px 15px rgba(200, 70, 30, 0.5), 0 2px 2px rgba(255, 138, 101, 0.1);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s ease, border-radius 0.1s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-secondary {
  background: var(--accent-teal);
}



.site-brand a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-coral);
  letter-spacing: -1px;
}

.site-brand a span {
  color: var(--accent-teal);
}

.site-branding {
  position: relative;
  z-index: 1001;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

/* Sliding Mega Menu Overlay */
.main-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--sand-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -10px 40px rgba(93, 64, 55, 0.15);
  z-index: 998;
  overflow-y: auto;
  padding: 160px 2rem 220px;
  /* Safe padding for header & footer space */
}

.main-navigation.is-open {
  transform: translateY(0);
}

/* Container for top-level menu */
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  /* Grid-like layout for mega menu */
  gap: 3rem 4rem;
  margin: auto;
  /* Vertically center if short, scroll if tall */
  padding: 0;
  text-align: left;
  max-width: 1200px;
  width: 100%;
}

.main-navigation ul li {
  flex: 1 1 200px;
  /* Minimum 200px width for top-level items */
  position: relative;
}

/* Top-level Links */
.main-navigation>ul>li>a {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-coral);
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--sand-warm);
  padding-bottom: 0.5rem;
  width: 100%;
}

.main-navigation a:hover {
  color: var(--accent-teal);
}

/* Sub-menus Level 2+ */
.main-navigation .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Tighter gap for submenus */
}

.main-navigation .sub-menu li {
  flex: none;
  /* Prevent inheriting the 200px flex-basis which makes them huge in column layout */
}

/* Hide WordPress default sub-menu nesting indent since we use flex */
.main-navigation .sub-menu .sub-menu {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sand-soft);
}

/* Sub-menu link styling */
.main-navigation .sub-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.1rem;
  padding-left: 0;
  transition: padding-left 0.3s ease, color 0.3s ease;
  display: block;
}

.main-navigation .sub-menu a:hover {
  color: var(--accent-coral);
  padding-left: 6px;
}

/* Organic Shapes & Sand Effects */
.organic-card {
  background: #fff;
  border-radius: var(--radius-organic);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  height: 100%;
}

.organic-card:hover {
  transform: translateY(-10px);
  border-radius: var(--radius-organic-alt);
  box-shadow: var(--shadow-hover);
}

/* Hero Sandpit (Full Screen) */
.hero-sandpit {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--sand-soft);
  box-shadow: inset 0 15px 50px rgba(93, 64, 55, 0.15), inset 0 -15px 50px rgba(93, 64, 55, 0.1);
  border-radius: 0;
  border: none;
}

/* Hero Elements */
.hero-logo-img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
  filter: drop-shadow(0 8px 20px rgba(93, 64, 55, 0.2));
}

.hero-title {
  font-size: 5rem;
  color: var(--accent-coral);
  margin-bottom: 2rem;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-title-highlight {
  color: var(--accent-teal);
}

.hero-desc {
  font-size: 1.5rem;
  color: var(--text-main);
  max-width: 600px;
  margin: 0 auto 3rem;
  pointer-events: auto;
}



/* Toys Sizes */
.toy-gem {
  font-size: 3rem;
}

.toy-coin {
  font-size: 3.5rem;
}

.toy-crown {
  font-size: 4rem;
}

.toy-bucket {
  font-size: 4.5rem;
}

.toy-tractor {
  font-size: 5rem;
}

.toy-castle {
  font-size: 6.5rem;
}

/* Sand Toys */
.sand-toy {
  position: absolute;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sand-toy:active {
  cursor: grabbing;
  transform: scale(1.15) rotate(5deg);
}

/* Toys Made of Sand */
.sand-made {
  filter: sepia(1) saturate(1.5) hue-rotate(-15deg) brightness(0.95) contrast(0.9);
  opacity: 0.95;
}

.sand-made:active {
  filter: sepia(1) saturate(1.5) hue-rotate(-15deg) brightness(0.9) contrast(0.9);
}

/* Buried Treasures */
.buried-treasure {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  pointer-events: none;
  /* User can't touch it until found */
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.buried-treasure.found {
  opacity: 1;
  transform: scale(1.1) translateY(-10px);
  pointer-events: auto;
  /* Now they can drag it! */
  z-index: 20 !important;
  /* Pop out of the sand */
  animation: sparkle 2s infinite alternate;
}

@keyframes sparkle {
  0% {
    filter: drop-shadow(0 5px 10px rgba(255, 213, 79, 0.4)) brightness(1);
  }

  100% {
    filter: drop-shadow(0 15px 30px rgba(255, 213, 79, 0.9)) brightness(1.2);
  }
}

/* Sand Pouring Page Transitions */
.sand-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--sand-warm);
  background-image: radial-gradient(rgba(93, 64, 55, 0.08) 2px, transparent 2px), radial-gradient(rgba(93, 64, 55, 0.08) 2px, transparent 2px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  z-index: 999999;
  pointer-events: none;
  transform: translateY(-100%);
}

/* Sand Pit Article Cards */
.post-card.organic-card {
  background-color: var(--sand-soft);
  box-shadow: inset 0 10px 20px rgba(93, 64, 55, 0.08), inset 0 0px 8px rgba(208, 157, 100, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-organic-alt);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-card.organic-card:hover {
  transform: translateY(2px) scale(0.98);
  /* Simulate sinking into the sand */
  box-shadow: inset 0 15px 30px rgba(93, 64, 55, 0.12), inset 0 0px 12px rgba(208, 157, 100, 0.6);
  border-radius: var(--radius-organic);
  background-color: #f1e2c4;
  /* Slightly darker sand on hover */
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card .post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.1);
  /* The image floats inside the pit */
}

.post-card .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card .entry-meta {
  font-size: 0.9rem;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-card .entry-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-card .entry-title a {
  color: var(--text-main);
}

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

/* Main Content Area */
.home .site-main {
  padding-top: 0;
  padding-bottom: 0;
  /* Footer widget area follows in normal flow — no gap needed */
}

.site-main {
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 6rem;
  /* Just enough to clear the fixed nav footer bar (~80px) */
}

/* Layout Utilities */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

/* Navigation Toggle Button */
.playful-menu-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand-soft);
  border: 2px solid var(--accent-coral);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  color: var(--accent-coral);
  cursor: pointer;
  position: relative;
  z-index: 1001;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 138, 101, 0.15);
}

.playful-menu-btn:hover {
  background: var(--accent-coral);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 138, 101, 0.3);
}

.playful-menu-btn.is-active {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #fff;
  box-shadow: 0 4px 15px rgba(77, 182, 172, 0.3);
}

.playful-menu-btn .menu-svg-open,
.playful-menu-btn .menu-svg-close {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playful-menu-btn .menu-svg-open {
  transform: rotate(30deg);
}

.playful-menu-btn.is-active .menu-svg-open {
  display: none !important;
}

.playful-menu-btn.is-active .menu-svg-close {
  display: inline-block !important;
  transform: rotate(90deg);
}

@media (max-width: 768px) {

  /* Mobile Hero Adjustments */
  .hero-sandpit {
    padding-bottom: 100px;
  }

  .hero-logo-img {
    max-height: 80px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  /* Mobile Navigation Adjustments */
  .custom-cursor {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    cursor: auto !important;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .menu-text {
    display: none;
  }

  .playful-menu-btn {
    padding: 0.35rem;
  }

  .playful-menu-btn svg {
    width: 22px;
    height: 22px;
  }

  .toy-gem {
    font-size: 2rem;
  }

  .toy-coin {
    font-size: 2.5rem;
  }

  .toy-crown {
    font-size: 2.8rem;
  }

  .toy-bucket {
    font-size: 3rem;
  }

  .toy-tractor {
    font-size: 3.5rem;
  }

  .toy-castle {
    font-size: 4.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .main-navigation>ul>li>a {
    font-size: 1.5rem;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Site Info Strip */
.site-info {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem 120px;
  font-size: 0.9rem;
  color: var(--text-light);
  background-color: var(--sand-soft);
}

/* Footer Widget Area */
.footer-widgets-wrap {
  width: 100%;
  background: var(--sand-soft);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(208, 157, 100, 0.3);
  position: relative;
  z-index: 1;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-widgets-col--empty {
  /* Reserves space so columns stay aligned even when empty */
}

.footer-widget {
  /* Individual widget wrapper */
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sand-warm);
}

/* Common widget inner styles */
.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-widget ul li a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-widget ul li a:hover {
  color: var(--accent-coral);
  padding-left: 4px;
}

.footer-widget p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-widget img {
  max-width: 100%;
  border-radius: var(--radius-soft);
}

/* Search widget inside footer */
.footer-widget .search-form {
  display: flex;
  gap: 0.5rem;
}

.footer-widget .search-field {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--sand-warm);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  outline: none;
}

.footer-widget .search-field:focus {
  border-color: var(--accent-coral);
}

.footer-widget .search-submit {
  padding: 0.6rem 1.2rem;
  background: var(--accent-coral);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-widget .search-submit:hover {
  background: var(--accent-teal);
}

@media (max-width: 768px) {
  .footer-widgets-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-widgets-wrap {
    padding: 3rem 0 2rem;
  }
}

/* Footer (Now the Main Navigation Base) */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background-color: var(--sand-soft);
  /* Perfectly matches the wave color! */
  color: var(--text-main);
  padding: 0 0 1rem;
  /* Shorter padding below the items */
  text-align: center;
  transition: background-color 0.4s ease;
}

.footer-wave {
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 25px;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 25px;
}

.footer-wave .shape-fill {
  fill: var(--sand-soft);
  transition: fill 0.4s ease;
}

.site-footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}

.site-footer p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}


/* ============================================================
   TEMPLATE: ONE COLUMN
   ============================================================ */

.template-one-col {
  max-width: 800px;
}

.template-one-col .organic-card {
  background: #fff;
  padding: 3rem;
}

.entry-subtitle {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

.one-col-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-main);
}

.one-col-content p {
  margin-bottom: 1.5rem;
}

.one-col-content h2,
.one-col-content h3 {
  margin-top: 2.5rem;
}


/* ============================================================
   TEMPLATE: TWO COLUMN
   ============================================================ */

.two-col-header {
  padding: 4rem 0 2rem;
}

.two-col-header .entry-title {
  font-size: 3rem;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.two-col-main .organic-card {
  background: #fff;
}

.two-col-main .entry-content {
  font-size: 1.1rem;
  line-height: 1.9;
}

.two-col-main .entry-content p {
  margin-bottom: 1.5rem;
}

.two-col-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget.organic-card {
  padding: 1.8rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sand-warm);
  font-family: var(--font-heading);
}

.sidebar-recent-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-recent-posts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-recent-posts a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.sidebar-recent-posts a:hover {
  color: var(--accent-coral);
}

.sidebar-recent-posts .post-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.sidebar-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-categories li a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.sidebar-categories li a:hover {
  color: var(--accent-coral);
}

@media (max-width: 900px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .two-col-sidebar {
    position: static;
  }
}


/* ============================================================
   TEMPLATE: BLOG HUB
   ============================================================ */

.blog-hub-header {
  padding: 3rem 0 3.5rem;
}

.blog-hub-title {
  font-size: 3.5rem;
  color: var(--text-main);
  letter-spacing: -1px;
}

.blog-hub-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 1rem auto 0;
}

.hub-category-section {
  margin-bottom: 5rem;
}

.hub-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--sand-warm);
}

.hub-cat-label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hub-cat-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.3s;
}

.hub-cat-name:hover {
  color: var(--accent-coral);
}

.hub-cat-count {
  background: var(--sand-soft);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.hub-cat-view-all {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease, color 0.3s;
}

.hub-cat-view-all:hover {
  color: var(--accent-teal);
  gap: 0.8rem;
}

.hub-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hub-post-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hub-post-card .post-thumbnail {
  margin-bottom: 0;
  border-radius: var(--radius-soft) var(--radius-soft) 0 0;
  overflow: hidden;
}

.hub-post-card .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0;
}

.hub-post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.hub-post-card .entry-header,
.hub-post-card .entry-summary,
.hub-post-card .hub-card-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hub-post-card .entry-header {
  padding-top: 1.2rem;
}

.hub-post-card .entry-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hub-post-card .entry-meta {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hub-post-card .entry-summary {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.hub-post-card .entry-summary p {
  margin: 0;
}

.hub-card-footer {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.hub-read-more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-coral);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s, color 0.3s;
}

.hub-read-more:hover {
  color: var(--accent-teal);
  gap: 0.6rem;
}

.post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sand-soft) 0%, var(--sand-warm) 100%);
  border-radius: var(--radius-soft) var(--radius-soft) 0 0;
}

.post-thumb-placeholder span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(93, 64, 55, 0.2);
  text-transform: uppercase;
}

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

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

  .blog-hub-title {
    font-size: 2.2rem;
  }

  .hub-cat-name {
    font-size: 1.4rem;
  }
}