/*
Theme Name: Easy Drawing Hub
Theme URI: https://easydrawinghub.com
Author: Easy Drawing Hub Team
Description: A custom WordPress theme for drawing tutorials and coloring pages - designed for kids!
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: easy-drawing-hub
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f0e8;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2d7d9a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fredoka One for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

/* Global panel — white bg, black border, offset shadow */
.panel,
.dotd-card,
.card,
.sketch-card,
.hero-search .search-form {
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: 3px 3px 0 #1a1a1a;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header — clean white with black border */
.site-header {
  background: #fff;
  border-bottom: 1.5px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 0 #1a1a1a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  max-height: 44px;
  width: auto;
}

/* Logo — styled to match new branding */
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #fff;
  border: 2px solid #2d7d9a;
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-text strong {
  color: #2d7d9a;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-menu li a:hover,
.nav-menu li.current a {
  color: #2d7d9a;
  background: #f0f8fa;
}

/* Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid #333;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #333;
  min-height: auto;
  min-width: auto;
}

.mobile-nav {
  display: none;
  background: rgba(245, 240, 232, 0.97);
  padding: 1rem 20px;
  border-top: 1px dashed #ccc;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.mobile-nav .nav-menu li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-inner {
    padding: 0.5rem 15px;
  }

  .logo-text {
    font-size: 0.88rem;
    padding: 0.25rem 0.6rem;
  }
}

/* Footer — dark charcoal, yellow headings */
.site-footer {
  background: #1a1a1a;
  border-top: 3px solid #1a1a1a;
  margin-top: 3rem;
  padding: 2.5rem 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  font-family: 'Fredoka One', cursive;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-nav h4 {
  font-family: 'Fredoka One', cursive;
  color: #5bbcd6;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #5bbcd6;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding: 1rem 20px;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  max-width: 100%;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 0;
  }

  .footer-brand h3 {
    font-size: 1.2rem;
  }

  .footer-brand p {
    font-size: 0.82rem;
  }

  .footer-nav h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    margin-top: 1.25rem;
    padding: 0.75rem 15px;
    font-size: 0.78rem;
  }
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-tutorial {
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
}

.badge-coloring {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: white;
}

/* Tag Pills - Compact */
.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
  margin: 0.15rem;
  transition: all 0.3s;
  font-weight: 700;
}

.tag-pill:hover {
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
  transform: translateY(-1px);
}

.tag-pill.coloring {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
}

.tag-pill.coloring:hover {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: white;
}

/* Cards — black border, offset shadow */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border: 1.5px solid #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.card-image-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f8f8f8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid #1a1a1a;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s;
  padding: 0.5rem;
}

.card:hover .card-image {
  transform: scale(1.02);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.card-title a:hover {
  color: #2d7d9a;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  width: fit-content;
  border: 2px solid #1a1a1a;
}

.badge-tutorial {
  background: #dbeafe;
  color: #1e40af;
}

.badge-coloring {
  background: #dcfce7;
  color: #166534;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}

/* On desktop, overflow tags are visible; "+N" pill is hidden */
.tag-more {
  display: none;
}

@media (max-width: 768px) {
  .tag-more {
    display: inline-block;
  }
}

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #ccc;
  transition: all 0.2s;
  font-weight: 700;
  text-decoration: none;
}

.tag-pill:hover {
  background: #1a1a1a;
  color: white;
}

.tag-pill.coloring {
  background: #dcfce7;
  color: #166534;
}

.tag-pill.coloring:hover {
  background: #166534;
  color: white;
}

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

  .card-image-wrapper {
    height: 150px;
  }

  .card-body {
    padding: 0.75rem;
    gap: 0.35rem;
  }

  .card-title {
    font-size: 0.85rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.5rem;
    border-width: 1.5px;
  }

  .card-tags {
    gap: 0.2rem;
  }

  .card {
    border-radius: 10px;
    box-shadow: 2px 2px 0 #1a1a1a;
  }
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #4a5568;
}

.breadcrumb a {
  color: #2b6cb0;
}

.breadcrumb a:hover {
  color: #1a5f73;
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* Hero search — centered, black border, depth shadow */
.hero-search-section {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  color: #2d7d9a;
  margin-bottom: 0.75rem;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
}

.hero-search .search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #1a1a1a;
  padding: 0;
}

/* Search filter dropdown */
.search-filter-dropdown {
  border: none;
  border-right: 1.5px solid #1a1a1a;
  padding: 0.9rem 0.75rem;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  background: #f8f6f2;
  cursor: pointer;
  outline: none;
  appearance: auto;
  min-width: 130px;
  border-radius: 12px 0 0 12px;
}

.search-filter-dropdown:focus {
  background: #fff;
  outline: 3px solid #ffd700;
  outline-offset: -2px;
}

.hero-search .search-input {
  flex: 1;
  border: none;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #555;
  background: transparent;
  outline: none;
  width: auto;
}

.hero-search .search-btn {
  background: none;
  border: none;
  border-left: 2px solid #1a1a1a;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  min-height: auto;
  min-width: auto;
  transition: color 0.2s, background 0.2s;
}

.hero-search .search-btn:hover {
  color: #2d7d9a;
  background: #f0f8fa;
  transform: none;
}

/* Section Headings — Fredoka One with red underline */
.section-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-bottom: none;
  position: relative;
  padding-bottom: 0.3rem;
}

.section-heading::after {
  content: '';
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='6'%3E%3Cpath d='M0 3 Q12.5 0 25 3 Q37.5 6 50 3 Q62.5 0 75 3 Q87.5 6 100 3' stroke='%232d7d9a' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 100px 6px;
  height: 6px;
  margin-top: 4px;
  background-color: transparent;
}

/* Single Post Layout - Compact */
.single-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 20px;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #4a5568;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 600;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.featured-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Tutorial Overview - Compact */
.tutorial-overview {
  background: #f0fafa;
  color: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 2px solid #c8e6ec;
  box-shadow: 3px 3px 0 #b8dce8;
}

.tutorial-overview h1 {
  color: #1a3a4a;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tutorial-intro-text {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

.tutorial-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stat-item {
  background: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid #c8e6ec;
  color: #2d7d9a;
}

.stat-item strong {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.2rem;
}

.tutorial-result-image {
  margin-top: 1.5rem;
  text-align: center;
}

.tutorial-result-image h3 {
  color: #2d7d9a;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.tutorial-result-image img {
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  height: auto;
}

/* Steps Section - Compact */
.steps-section {
  margin-top: 2rem;
}

.steps-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a202c;
  font-weight: 800;
}

.step {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.step:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #2d7d9a;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(45, 125, 154, 0.3);
}

.step-title {
  font-size: 1.5rem;
  color: #1a202c;
  margin: 0;
  font-weight: 800;
}

.step-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-instruction {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
  font-weight: 600;
}

.no-content-message {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 600;
}

/* Coloring Page - Compact */
.coloring-page-content {
  text-align: center;
}

.coloring-image-container {
  text-align: center;
  margin: 1.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.coloring-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1.15rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

.download-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.45);
}

/* Related Posts - Compact */
.related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

.related-heading {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

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

/* Archive Pages - Compact */
.archive-header {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.archive-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.archive-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 600;
}

.archive-search {
  max-width: 580px;
  margin: 1.5rem auto 0;
  position: relative;
}

/* Archive search bar — same look as hero search */
.archive-search.hero-search .search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 3px 3px 0 #1a1a1a;
  padding: 0;
}

.archive-search.hero-search .search-input {
  flex: 1;
  border: none;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #333;
  background: transparent;
  outline: none;
  border-radius: 12px 0 0 12px;
}

.archive-search.hero-search .search-btn {
  background: none;
  border: none;
  border-left: 1.5px solid #1a1a1a;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  min-width: auto;
  transition: color 0.2s, background 0.2s;
  border-radius: 0 12px 12px 0;
}

.archive-search.hero-search .search-btn:hover {
  color: #2d7d9a;
  background: #f0f8fa;
  transform: none;
}

/* Live-search dropdown for archive search */
.archive-search .search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #1a1a1a;
  z-index: 200;
  display: none;
  overflow: hidden;
}

.archive-search .search-results-dropdown.active {
  display: block;
}

/* Archive pages — mobile compact */
@media (max-width: 768px) {
  .archive-header {
    padding: 1rem 0;
    margin-bottom: 1rem;
  }

  .archive-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

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

  .archive-search {
    margin-top: 0.75rem;
  }

  .archive-search.hero-search .search-form {
    box-shadow: 2px 2px 0 #1a1a1a;
  }

  .archive-search.hero-search .search-input {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
  }

  .archive-search.hero-search .search-btn {
    padding: 0.7rem 0.8rem;
  }

  .archive-search .search-filter-dropdown {
    min-width: 80px;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Tags Page */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.tag-card {
  display: block;
  text-decoration: none;
  background: white;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  border: 1.5px solid #1a1a1a;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: all 0.2s;
  overflow: hidden;
}

.tag-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.tag-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid #1a1a1a;
}

.tag-card:hover .tag-card-thumb {
  background: #f5f0e8;
}

.tag-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.3s;
}

.tag-card:hover .tag-card-thumb img {
  transform: scale(1.05);
}

.tag-card-emoji {
  font-size: 2.5rem;
  opacity: 0.4;
}

.tag-card h3 {
  margin: 0.75rem 0.5rem 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
}

.tag-card:hover h3 {
  color: #2d7d9a;
}

.tag-card .tag-count {
  padding: 0 0.5rem 0.75rem;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tags-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .tag-card h3 {
    font-size: 0.9rem;
  }
}

/* old tag-card styles removed — see Tags Page section above */

.tag-count {
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Tabs - Compact */
.tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: #f7fafc;
  color: #2d7d9a;
  border-color: #2d7d9a;
}

.tab-btn.active {
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(45, 125, 154, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Pagination - Compact */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination ul {
  display: flex;
  list-style: none;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.pagination li {
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 0.85rem;
  border-radius: 12px;
  background: white;
  color: #2d3748;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid #e2e8f0;
  text-decoration: none;
}

.pagination a:hover {
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(45, 125, 154, 0.3);
}

.pagination .current {
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(45, 125, 154, 0.3);
}

@media (max-width: 768px) {
  .pagination {
    margin: 1.25rem 0;
  }

  .pagination ul {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 7rem;
  background: linear-gradient(135deg, #2d7d9a 0%, #1a5f73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.25rem;
  color: #718096;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 2.5rem;
}

.mb-4 {
  margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero-search-section {
    padding: 1rem 0 0.75rem;
  }

  .hero-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-search .search-form {
    box-shadow: 2px 2px 0 #1a1a1a;
  }

  .search-filter-dropdown {
    min-width: 80px;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero-search .search-input {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
  }

  .hero-search .search-btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }

  .section-heading {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .post-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Single post container — tighter on mobile */
  .single-post-container {
    padding: 0.75rem 0;
  }

  .single-post-container .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 15px;
  }

  /* Tutorial overview — compact card */
  .tutorial-overview {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border-width: 1.5px;
    box-shadow: 2px 2px 0 #b8dce8;
  }

  .tutorial-overview h1 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
  }

  .tutorial-intro-text {
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }

  .tutorial-stats {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .stat-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .stat-item strong {
    font-size: 1rem;
    margin-bottom: 0;
    display: inline;
    margin-right: 0.25rem;
  }

  .tutorial-result-image {
    margin-top: 1rem;
  }

  .tutorial-result-image h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .tutorial-result-image img {
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  }

  /* Steps — tight and clean */
  .steps-section {
    margin-top: 1.25rem;
  }

  .steps-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .step {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-width: 1.5px;
  }

  .step-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-image {
    margin-bottom: 0.75rem;
  }

  .step-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .step-instruction {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Post tags on single pages */
  .post-tags {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .post-tags .tag-pill {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  /* Coloring page — compact */
  .coloring-image-container {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
  }

  .coloring-image-container img {
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }

  .download-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  /* Related posts — 2 columns, compact */
  .related-posts {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .related-heading {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

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

  .related-grid .card-image-wrapper {
    height: 120px;
  }

  .related-grid .card-body {
    padding: 0.6rem;
  }

  .related-grid .card-title {
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .related-grid .card {
    border-radius: 10px;
    box-shadow: 2px 2px 0 #1a1a1a;
  }

  .container {
    padding: 0 15px;
  }

  .tabs {
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
  }
}

/* Child-Friendly Focus States */
*:focus {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* Make sure buttons are big enough for children */
button,
.btn,
.search-btn,
.tab-btn,
.download-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Larger touch targets for mobile */
@media (max-width: 768px) {

  button,
  .btn,
  .search-btn,
  .tab-btn,
  .download-btn,
  .nav-menu a {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
  }

  /* Tag pills stay compact — they're inline discovery, not primary actions */
  .tag-pill {
    min-height: auto;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
  }

  /* Hide overflow tags on mobile, show "+N" pill */
  .tag-overflow {
    display: none;
  }

  .tag-more {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #d1d5db;
    cursor: default;
    font-weight: 800;
    font-size: 0.6rem;
  }
}

/* =============================================================
   GLOBAL PAPER BACKGROUND
   Warm paper base + tiling inline SVG doodle pattern.
   The SVG is embedded as a data URI — no external request, no SEO impact.
   REVERT: replace this block with the old version.
   ============================================================= */
html {
  background-color: #ede8dc;
}

body {
  background-color: #f5f0e8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23c4b8a8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.45'%3E%3Cpath d='M40 30l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z'/%3E%3Cpath d='M250 20l12 3-2 8-12-3zm-2 8l-1 4 3 1 1-4z'/%3E%3Cline x1='247' y1='32' x2='246' y2='35'/%3E%3Cpath d='M150 70c0-8 12-8 12 0s-12 8-12 0c0-12 20-12 20 0s-20 12-20 0'/%3E%3Cpath d='M70 140c-3-6 4-10 8-6 4-4 11 0 8 6l-8 10z'/%3E%3Cpath d='M200 130l5 8 5-8 5 8 5-8 5 8'/%3E%3Ccircle cx='40' cy='220' r='8'/%3E%3Ccircle cx='42' cy='218' r='7'/%3E%3Cpath d='M270 200l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z'/%3E%3Cpath d='M100 250c5-5 10 5 15 0s10 5 15 0s10 5 15 0'/%3E%3Cpath d='M220 270l8 14h-16z'/%3E%3Cpath d='M160 180c0-5 8-5 8 0s-8 5-8 0'/%3E%3Cpath d='M90 80v10m-5-5h10'/%3E%3Cpath d='M280 110l5 7-5 7-5-7z'/%3E%3Ccircle cx='130' cy='130' r='1.5'/%3E%3Ccircle cx='135' cy='127' r='1'/%3E%3Ccircle cx='127' cy='133' r='1'/%3E%3Cpath d='M30 280l4-7h4l-2 4h4l-6 9 2-6z'/%3E%3Cpath d='M180 30c3 0 3 5 0 5s-3 5 0 5 3 5 0 5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  position: relative;
}

/* Ensure all direct children sit above the background */
body>* {
  position: relative;
  z-index: 1;
}

/* =============================================================
   DRAWING OF THE DAY — matches reference exactly
   ============================================================= */
.dotd-section {
  padding: 2rem 0;
}

.dotd-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  align-items: center;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #1a1a1a;
  max-width: 860px;
  margin: 0 auto;
}

.dotd-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
}

/* dashed inner frame around the image */
.dotd-image-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed #aaa;
  border-radius: 8px;
  pointer-events: none;
}

.dotd-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.dotd-card:hover .dotd-img {
  transform: scale(1.02);
}

.dotd-steps-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 2;
  letter-spacing: 0.01em;
}

.dotd-content {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.dotd-badge {
  display: inline-block;
  background: #b8e6f0;
  color: #1a5f73;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.07em;
  width: fit-content;
  text-transform: uppercase;
  border: 1.5px solid #1a1a1a;
}

.dotd-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.6rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.05;
  color: #1a1a1a;
}

.dotd-excerpt {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
  margin: 0;
}

.dotd-highlight {
  color: #2d7d9a;
  font-weight: 700;
  text-decoration: none;
}

.dotd-highlight:hover {
  text-decoration: underline;
}

.dotd-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a5f73;
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  box-shadow: 0 3px 10px rgba(26, 95, 115, 0.35);
  width: fit-content;
  text-decoration: none;
}

.dotd-cta:hover {
  color: #fff;
  background: #237a8f;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(26, 95, 115, 0.4);
}

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

  .dotd-card {
    grid-template-columns: 120px 1fr;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 2px 2px 0 #1a1a1a;
  }

  .dotd-image-wrap {
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
    border-right: 1.5px solid #1a1a1a;
    border-bottom: none;
  }

  .dotd-image-wrap::after {
    inset: 5px;
    border-width: 1.5px;
  }

  .dotd-content {
    padding: 0.75rem 1rem;
    gap: 0.4rem;
  }

  .dotd-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
  }

  .dotd-title {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .dotd-excerpt {
    display: none;
  }

  .dotd-cta {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(26, 95, 115, 0.25);
  }

  .dotd-steps-badge {
    display: none;
  }
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.view-all-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d7d9a;
  text-decoration: none;
  padding-bottom: 1px;
}

.view-all-link:hover {
  color: #1a5f73;
  text-decoration: underline;
}

/* CTA Pill Buttons — cute, rounded, kid-friendly */
.cta-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: #fff;
  color: #2d7d9a;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  border: 2px solid #2d7d9a;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 rgba(45, 125, 154, 0.2);
}

.cta-pill-btn:hover {
  background: #2d7d9a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 rgba(45, 125, 154, 0.3);
}

.cta-pill-btn--alt {
  border-color: #e67e22;
  color: #e67e22;
  box-shadow: 2px 2px 0 rgba(230, 126, 34, 0.2);
}

.cta-pill-btn--alt:hover {
  background: #e67e22;
  color: #fff;
  box-shadow: 3px 4px 0 rgba(230, 126, 34, 0.3);
}

.section-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-pill-btn {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }

  .section-cta-row {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }
}

/* =============================================================
   PICK YOUR PENCIL — cloud blobs, top 8, single spacious row
   ============================================================= */
.pick-pencil-section {
  padding: 2rem 0 2.5rem;
}

.cloud-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0;
}

.cloud-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 100px;
  padding: 1rem 1.25rem;
  /* cloud/blob shape */
  border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%;
  color: white;
  font-family: 'Fredoka One', cursive;
  text-decoration: none;
  text-align: center;
  gap: 0.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.25);
}

.cloud-cat:nth-child(2n) {
  border-radius: 58% 42% 45% 55% / 52% 56% 44% 48%;
}

.cloud-cat:nth-child(3n) {
  border-radius: 50% 50% 58% 42% / 44% 52% 48% 56%;
}

.cloud-cat:nth-child(4n) {
  border-radius: 45% 55% 42% 58% / 56% 48% 52% 44%;
}

.cloud-cat:hover {
  transform: translateY(-4px) scale(1.05);
  color: white;
  box-shadow: 3px 6px 0 rgba(0, 0, 0, 0.3);
}

.cloud-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

.cloud-name {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  display: block;
}

@media (max-width: 768px) {
  .cloud-categories {
    gap: 0.6rem;
    justify-content: center;
  }

  .cloud-cat {
    min-width: 70px;
    min-height: 70px;
    padding: 0.5rem 0.7rem;
  }

  .cloud-icon {
    font-size: 1.1rem;
  }

  .cloud-name {
    font-size: 0.72rem;
  }

  .pick-pencil-section {
    padding: 1.25rem 0 1.5rem;
  }

  .pick-pencil-section .section-heading {
    font-size: 1.4rem;
  }

  .pick-pencil-section .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .pick-pencil-section .cta-pill-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }
}

/* =============================================================
   FRESH FROM THE SKETCHBOOK — sketch-style cards
   ============================================================= */
.sketchbook-section {
  padding: 2.5rem 0;
  text-align: center;
}

.sketchbook-section .section-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.sketchbook-subtitle {
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
}

.sketch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.sketch-card {
  background: white;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 3px 3px 0 #1a1a1a;
  position: relative;
  text-decoration: none;
  display: block;
}

.sketch-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.sketch-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid #1a1a1a;
}

.sketch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  display: block;
}

.sketch-card-label {
  padding: 0.5rem 0.75rem 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* tape effect removed — using solid borders instead */

@media (max-width: 1024px) {
  .sketch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .sketchbook-section {
    padding: 1.5rem 0;
  }

  .sketchbook-section .section-heading {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .sketchbook-subtitle {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .sketch-card-label {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem 0.5rem;
  }
}

/* =============================================================
   COLORING COLLECTIONS — safe to remove this block to revert
   ============================================================= */

/* Single collection page */
.collection-container {
  max-width: 860px;
}

.collection-container.has-sidebar {
  max-width: 1200px;
}

.collection-header {
  margin-bottom: 2rem;
}

.collection-sheet-count {
  font-size: 1rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 0.75rem;
}

.collection-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  font-weight: 500;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

/* Individual sheet items — vertical list */
.collection-sheets {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2rem 0;
}

.collection-sheet-item {
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 3rem;
}

.collection-sheet-item:last-child {
  border-bottom: none;
}

.collection-sheet-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.collection-sheet-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  font-weight: 500;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.collection-sheet-image-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
  background: #fafafa;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
}

.collection-sheet-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.collection-sheet-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.collection-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #1e40af;
  border: 2px solid #1e40af;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}

.collection-view-btn:hover {
  background: #1e40af;
  color: #fff;
  transform: translateY(-2px);
}

/* Conclusion block */
.collection-conclusion {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  font-weight: 500;
}

/* Archive grid — mosaic cards */
.collection-archive-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

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

.collection-card {
  position: relative;
}

.collection-card-mosaic {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px dashed #1a1a1a;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
}

.mosaic-cell {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #eee;
}

.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  transition: transform 0.3s;
}

.collection-card:hover .mosaic-cell img {
  transform: scale(1.04);
}

.collection-card-placeholder {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #f8f8f8;
}

.collection-sheet-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid #1a1a1a;
  box-shadow: 1px 1px 0 #1a1a1a;
  letter-spacing: 0.02em;
  z-index: 2;
}

@media (max-width: 768px) {
  .collection-sheet-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .collection-sheet-title {
    font-size: 1.1rem;
  }

  .collection-sheet-desc {
    font-size: 0.88rem;
  }

  .collection-sheet-image-wrap {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .collection-sheet-item {
    padding-bottom: 1.5rem;
    gap: 1.5rem;
  }

  .collection-intro {
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 10px;
  }

  .collection-conclusion {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .collection-view-btn {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    border-radius: 20px;
  }

  .collection-sheet-count {
    font-size: 0.88rem;
  }
}

/* =============================================================
   HOME COLLECTIONS SECTION
   ============================================================= */

.home-collections-section {
  padding: 2.5rem 0;
}

.home-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-collection-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 2px dashed #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-collection-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.home-collection-thumb {
  position: relative;
  border-bottom: 2px dashed #1a1a1a;
  background: #f8f8f8;
  overflow: hidden;
}

.home-collection-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 4 / 3;
}

.home-mosaic-cell {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #eee;
}

.home-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  transition: transform 0.3s;
}

.home-collection-card:hover .home-mosaic-cell img {
  transform: scale(1.04);
}

.home-collection-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-collection-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.home-collection-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid #1a1a1a;
  box-shadow: 1px 1px 0 #1a1a1a;
  z-index: 2;
}

.home-collection-label {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-collection-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.home-collection-card:hover .home-collection-title {
  color: #2d7d9a;
}

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

@media (max-width: 600px) {
  .home-collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .home-collections-section {
    padding: 1.5rem 0;
  }

  .home-collections-section .section-heading {
    font-size: 1.4rem;
  }

  .home-collections-section .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .home-collections-section .cta-pill-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }

  .home-collection-label {
    padding: 0.6rem 0.75rem;
    gap: 0.25rem;
  }

  .home-collection-title {
    font-size: 0.85rem;
  }

  .home-collection-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
  }

  .home-collection-card {
    border-radius: 10px;
    box-shadow: 2px 2px 0 #1a1a1a;
  }
}


/* =============================================================
   SIDEBAR WIDGETS — desktop only, sticky
   ============================================================= */
.single-post-container.has-sidebar {
  max-width: 1200px;
  padding: 0 20px;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 780px) 280px;
  gap: 2rem;
  align-items: start;
  justify-content: center;
}

.content-main {
  min-width: 0;
  max-width: 780px;
}

.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
}

.sidebar-widget {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.sidebar-widget-title {
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

/* Sidebar Search */
.sidebar-search-form {
  display: flex;
  border: 1.5px solid #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  outline: none;
  background: transparent;
}

.sidebar-search-btn {
  border: none;
  border-left: 1.5px solid #1a1a1a;
  background: none;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: auto;
  min-width: auto;
}

/* Sidebar Popular List */
.sidebar-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-popular-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar-popular-item:hover {
  background: #f0f8fa;
}

.sidebar-popular-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.sidebar-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-popular-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-popular-item:hover .sidebar-popular-title {
  color: #2d7d9a;
}

/* Sidebar Categories */
.sidebar-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.sidebar-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: #f8f8f8;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-cat-pill:hover {
  background: #2d7d9a;
  color: #fff;
  border-color: #2d7d9a;
}

.sidebar-cat-pill:hover .sidebar-cat-count {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.sidebar-cat-count {
  font-size: 0.68rem;
  background: #e2e8f0;
  color: #4a5568;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
}

/* Sidebar CTA button */
.sidebar-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

/* Hide sidebar on mobile/tablet */
@media (max-width: 1024px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .sidebar-widgets {
    display: none;
  }

  .single-post-container.has-sidebar {
    max-width: 900px;
  }

  .content-main {
    max-width: 100%;
  }
}