/* Single Post Layout - Modern Sleek Design */

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --text-dark: #1f2937;
  --text-medium: #3a4555;
  --text-light: #6b7280;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --content-padding: 1rem;
  
  /* Responsive breakpoints */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
}

/* Main Container */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

.single-main {
  background: var(--background-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.5rem var(--content-padding);
  font-size: 0.8125rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  line-height: 1.4;
  display: block;
}

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

.breadcrumbs a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Page Title */
.page-title {
  font-size: 17px;
  margin: 0.5rem 0;
  line-height: 1.3;
}

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

.page-title a:hover {
  color: var(--primary-color);
}

/* Image Optimization */
.page-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: var(--radius-sm);
}

.page-image .image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.page-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px; /* Set a minimum height for the container */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.page-image .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.page-image img.loaded {
    opacity: 1;
}

/* Shimmer animation for image loading */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Single Post Title */
.single-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 12px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Social Share Section */
.social-share-section {
  padding: 0 var(--content-padding) 1.25rem;
  overflow: hidden;
}

.social-share {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -0.5rem;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.social-share::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.share-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-medium);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 0.25rem 0;
  margin-left: 0.5rem;
}

.share-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 0.875rem;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn.pinterest { background: #e60023; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

/* Front Content Section */
.front-content {
  padding: 0 1rem 0.25rem;
}

.first-paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

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

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.remaining-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

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

/* Simplified Related Coloring Pages Section */
.related-coloring-pages {
  padding: 0.75rem 1rem;
  background: var(--background-light);
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: unset;
}

.related-title-wrapper {
  width: 100%;
}

.related-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Compact month buttons */
.related-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.month-button {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.month-button.inactive {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #e5e7eb;
}

.month-button.active {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.month-button:hover {
  transform: translateY(-1px);
}

/* Compact coloring pages grid */
.related-coloring-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-months {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.month-btn {
  background: #fff;
  color: #3b82f6;
  border: 2px solid #bcd0ee;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: none;
  margin: 0;
  min-width: 0;
  display: inline-block;
  cursor: pointer;
}

.month-btn:hover,
.month-btn:focus {
  background: #eaf4fb;
  color: #2563eb;
  border-color: #2563eb;
  text-decoration: none;
  outline: none;
}

.month-btn:active {
  transform: translateY(1px);
}

/* Enhanced Coloring Page Styles */
.coloring-page {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid #919191;
}

.coloring-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.coloring-page-content {
  padding: 1rem;
}

.coloring-page-title {
  font-size: 16px;
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.3;
  font-weight: bold;
}

.coloring-page-description {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve readability for long content */
.coloring-page-description p {
  margin: 0 0 1em 0;
}

.coloring-page-description p:last-child {
  margin-bottom: 0;
}

/* Better link styling */
.coloring-page-description a {
  color: #3182ce;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.coloring-page-description a:hover {
  color: #2c5282;
  text-decoration: none;
}

/* Figure Styles for Coloring Pages */
.wp-block-image.size-full {
  margin: 0;
  position: relative;
  max-width: 100%;
  height: auto;
}

.wp-block-image.size-full {
  aspect-ratio: 1/1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wp-block-image.size-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem 0.5rem 0 0;
}

.wp-block-image.size-full a {
  display: block;
  text-decoration: none;
}

/* Responsive Images */
.wp-block-image.size-full picture {
  display: block;
  line-height: 0;
}

/* Remove default figure margins */
.wp-block-image {
  margin: 0;
}

/* Enhanced Coloring Pages Grid */
.coloring-pages-grid {
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Clean White Card Design */
.coloring-page-card {
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
}

.coloring-page-card:hover,
.coloring-page-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Touch devices */
@media (hover: none) {
  .coloring-page-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
}

.page-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  aspect-ratio: 1/1; /* Maintain square aspect ratio */
}

.page-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  background: #ffffff;
}

.page-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 0.5rem;
}

.page-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  flex-direction: column;
  background: #ffffff;
  height: 25%; /* Reduced to match new layout */
  overflow: hidden;
}

/* Button Design - moved to top */
.page-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem; /* Space between buttons and title */
  order: -1; /* Move to top of flex container */
}

/* Simpler Font Styling */
.page-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0.25em;
  text-align: center;
  transition: color 0.2s ease;
  padding-top: 2px !important;
  margin-bottom: 2px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5em;
}

.page-description {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.4;
  margin: 0.5rem 0 1rem 0;
  padding: 0 0.5rem;
  min-height: auto;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-height: none;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  height: auto !important;
}

.btn-download-pdf,
.btn-color-online {
  flex: 1;
  padding: 0.625rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-download-pdf {
  background: var(--primary-color);
  color: white;
}

.btn-download-pdf:hover {
  background: var(--primary-dark);
}

.btn-color-online {
  background: #f8f9fa;
  color: #333333;
  border: 1px solid #dee2e6;
}

.btn-color-online:hover {
  background: #e9ecef;
}

@media (max-width: 480px) {
  .page-buttons {
    flex-direction: column;
  }
  
  .btn-download-pdf,
  .btn-color-online {
    width: 100%;
  }
}

/* Front Content Section */
.front-content {
  padding: 0 1rem 1.5rem;
}

.first-paragraph {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}
}

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

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.remaining-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

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

/* Related Coloring Pages Section */
.related-coloring-pages {
  padding: 1.5rem 1.5rem;
  background: #f0f5fd;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
}

.related-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-months {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.month-btn {
  background: #fff;
  color: #3b82f6;
  border: 2px solid #bcd0ee;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: none;
  margin: 0;
  min-width: 0;
  display: inline-block;
  cursor: pointer;
}

.month-btn:hover,
.month-btn:focus {
  background: #eaf4fb;
  color: #2563eb;
  border-color: #2563eb;
  text-decoration: none;
  outline: none;
}

.month-btn:active {
  transform: translateY(1px);
}

/* Sidebar Section Headers - Modern Pill Design */
.sidebar-section {
  margin-bottom: 0;
  position: relative;
}

.sidebar-section-header {
  background: transparent;
  color: #111827;
  padding: 1.25rem 1.5rem 0.75rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.sidebar-section-header i {
  font-size: 1.25rem;
  background: var(--primary-color);
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.sidebar-section-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
}

.sidebar-section-header h3:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Modern Post List with Cards */
.sidebar-post-list {
  display: flex;
  flex-direction: column;
  padding: 2px;
}

.sidebar-post-item {
  margin-bottom: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  /* Increase width */
  max-width: 100%;
}

.sidebar-post-item:last-child {
  margin-bottom: 0;
}

.sidebar-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sidebar-post-thumbnail {
  width: 120px;
  height: 85px;
  overflow: hidden;
  position: relative;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sidebar-post-item:hover .post-thumb {
  transform: scale(1.08);
}

.sidebar-post-info {
  flex: 1;
  padding: 0.75rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--primary-color);
}

.sidebar-post-views {
  font-size: 0.75rem;
  color: white;
  margin-top: 0;
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.sidebar-post-views:before {
  content: "\f06e"; /* Eye icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.6875rem;
  margin-right: 4px;
}

/* Popular Coloring Pages Header */
.popular-coloring-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.popular-coloring-header .sidebar-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.popular-coloring-header .sidebar-heading strong {
  font-weight: 700;
  font-size: inherit;
  line-height: 1.2;
}

.popular-coloring-header .icon {
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Last Coloring Pages Header */
.last-coloring-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  border-radius: var(--radius-sm);
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.last-coloring-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.last-coloring-header .icon {
  font-size: 1rem;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.category-pill {
  background: #f1f5f9;
  color: #334155;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

/* End Content Section */
.end-content-section,
.content-end {
  padding: 0 1.5rem;
}

.end-content,
.content-end-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

/* Bottom Social Share */
.bottom-share {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: none;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* Post Navigation */
.post-navigation {
  padding: 1.5rem;
  background: var(--background-light);
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 0.875rem 1rem;
  background: var(--background-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nav-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-next {
  text-align: right;
}

/* Sidebar */
.single-sidebar {
  background: var(--background-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 1.25rem;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-header {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-section-header i {
  font-size: 1rem;
}

.sidebar-section-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Sidebar Post List */
.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-post-item {
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sidebar-post-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.sidebar-post-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

/* Sidebar Post Thumbnail */
.sidebar-post-thumbnail {
  flex-shrink: 0;
  width: 95px;
  height: 65px;
  overflow: hidden;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sidebar-post-item:hover .post-thumb {
  transform: scale(1.05);
}

/* Sidebar Post Info */
.sidebar-post-info {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-post-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--primary-color);
}

.sidebar-post-views {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .coloring-pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  
  .coloring-page-card {
    max-height: 480px;
  }
}

@media (max-width: 992px) {
  .single-layout {
    gap: 1.5rem;
  }
  
  .coloring-pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  
  .coloring-page-card {
    max-height: 540px;
  }
}

@media (max-width: 1024px) {
  .coloring-pages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0 1.25rem 1.5rem;
  }
  
  .single-title {
    font-size: 1.5rem;
    padding: 0 0 20px 15px;
  }
  
  .page-description {
    font-size: 0.95rem;
    -webkit-line-clamp: none;
    line-clamp: none;
  }
}

@media (max-width: 768px) {
  .single-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.25rem;
  }
  
  .single-title {
    font-size: 1.5rem;
    padding: 12px;
    line-height: 1.3;
  }
  
  .social-share-section {
    padding: 0 var(--content-padding) 1rem;
   padding-left:  20px;
  }

  .page-description {
    font-size: 0.9rem;
    -webkit-line-clamp: none;
    line-clamp: none;
    margin: 0.5rem 0;
  }
  
  .social-share-section,
  .front-content,
  .related-coloring-pages,
  .coloring-pages-grid,
  .end-content-section,
  .content-end,
  .post-navigation {
    padding-left: 0;
    padding-right: 0;
  }
  
  .breadcrumbs {
    padding: 0.5rem 0 0;
    font-size: 0.85rem;
  }
  
  .coloring-pages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0 1.25rem;
  }
  
  .coloring-page-card {
    min-height: 0;
  }
  
  .page-title {
    font-size: 0.9rem;
    margin: 0.25rem 0.5rem 0.25rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 1.5em;
  }
  
  .page-meta {
    padding: 0.25rem 0.5rem 0.5rem;
  }
  
  .page-buttons {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .page-buttons a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-next {
    text-align: left;
  }
  
  .single-sidebar {
    margin-top: 1.5rem;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .container {
    padding-top: 30px!important;
    }
  .single-sidebar {
    order: 2;
    margin-top: 1rem;
  }
  
  .single-main {
    order: 1;
  }
  
  .single-title {
    font-size: 1.75rem;
    padding: 12px;
  }
  
  .featured-image-container {
    margin: 1rem 0;
  }
  
  .related-coloring-pages {
    margin: 1rem 0;
  }
  
  .month-button {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --content-padding: 1rem;
  }
  
  .social-share-section,.end-content-section, .front-content {
    padding: 0 var(--content-padding) 1rem;
   padding-left:  15px;
  }
  .container {
    padding-top: 40px!important;
    }

    .breadcrumbs {
      padding-bottom: 10px!important;
      font-size: 14px;
    }
  .single-title {
    font-size: 1.625rem;
    line-height: 1.3;
    padding: 12px;
  }
  
  .first-paragraph {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  
  .share-buttons {
    gap: 0.5rem;
  }
  
  .share-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .related-months {
    gap: 0.4rem;
  }
  
  .month-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 15px;
    --side-padding: 12px;
  }
  
  .single-layout {
    padding-top: 35px!important;
    }
    
  .single-layout {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .single-main {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  
  .single-title {
    font-size: 22px!important;
    padding: 0 10px 15px!important;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  .social-share-section {
    margin: 0 0 15px 0;
    padding: 0 var(--side-padding);
    width: 100%;
    box-sizing: border-box;
  }
  
  .breadcrumbs {
    font-size: 12px!important;
    margin-bottom: 10px!important;
    padding: 8px var(--side-padding);
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }

  .breadcrumbs .container {
    padding-left:10px!important;
  }
  
  .front-content {
    padding: 0 var(--side-padding);
  }
  
  .first-paragraph {
    font-size: 12px;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-medium);
    width: 100%;
  }
  
  .related-title-wrapper {
    margin: 0 var(--side-padding) 10px;
    padding: 0;
  }
  
  .related-title {
    font-size: 14px;
  }
  
  .single-main article {
    width: 100%;
    margin: 0;
    padding: 0 var(--side-padding);
    box-sizing: border-box;
  }
  

  
  .social-share {
    gap: 8px;
    padding: 5px 0;
    margin: 0;
    justify-content: flex-start;
  }
  
  .share-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .coloring-pages-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 15px;
    padding: 0 var(--side-padding) 20px;
    margin: 0;
  }
  
  .coloring-page-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .single-title {
    font-size: 1.4rem;
  }
  
  .page-title {
    font-size: 1rem;
    margin: 0.5rem 0.25rem 0.25rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .page-description {
    font-size: 0.85rem;
    -webkit-line-clamp: none;
    line-clamp: none;
    margin: 0.25rem 0.75rem 0.5rem;
  }
  
  .page-meta {
    padding: 0.25rem 0.75rem 0.75rem;
  }
  
  .page-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem 0.75rem;
  }
  
  .page-buttons a {
    flex: 1 1 auto;
    min-width: 120px;
  }
  
}

/* Font Awesome Icons (if not already loaded) */
.fab,
.fas {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
}

.fab {
  font-weight: 400;
}

.fas {
  font-weight: 900;
}

/* Print styles */
@media print {
  .social-share-section,
  .related-coloring-pages,
  .single-sidebar,
  .post-navigation {
    display: none;
  }
  
  .single-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .coloring-pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Comments Section --- */
.comments-area {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  margin: 2.5rem 0 1.5rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.comments-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1.2rem;
  text-align: left;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.comment-list .comment {
  background: #f7fafd;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.2rem 0.9rem 1.2rem;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
  position: relative;
}
.comment-list .comment .comment-meta {
  font-size: 0.97rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.comment-list .comment .comment-author {
  font-weight: 600;
  color: #2563eb;
}
.comment-list .comment .comment-content {
  font-size: 1.05rem;
  color: #222;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.comment-list .comment .reply {
  margin-top: 0.2rem;
}
.comment-list .comment .reply a {
  color: #3b82f6;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 10px;
  transition: background 0.18s, color 0.18s;
}
.comment-list .comment .reply a:hover {
  background: #eaf4fb;
  color: #2563eb;
}
.comment-list .children {
  margin-left: 1.5rem;
  margin-top: 1rem;
  border-left: 2px solid #e5e7eb;
  padding-left: 1rem;
}
.comment-form {
  margin-top: 2rem;
  background: #f7fafd;
  border-radius: 10px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
}
.comment-form label {
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 0.2rem;
  display: block;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 95%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #bcd0ee;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: #fff;
  transition: border 0.18s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: #2563eb;
  outline: none;
}
.comment-form .form-submit input[type="submit"] {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.comment-form .form-submit input[type="submit"]:hover {
  background: #174bbd;
}
