/**
 * Unbound Care - Blog Archive & Single Post Stylesheet
 * Brand Palette:
 * Primary Teal: #146C70 | Mint Soft: #E7F3EF | Text: #20353D | Background: #FAF9F5
 */

/* ==========================================================================
   1. Layout & Common Utilities
   ========================================================================== */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-main {
  background-color: var(--uc-bg, #faf9f5);
  min-height: 80vh;
  padding-bottom: 80px;
}

/* ==========================================================================
   2. Blog Archive Hero Section
   ========================================================================== */
.blog-hero {
  background: linear-gradient(180deg, #eaf4f1 0%, #faf9f5 100%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--uc-border, #dce7e3);
  margin-bottom: 48px;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  font-family: var(--uc-heading-font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid var(--uc-border, #dce7e3);
}

.blog-hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background-color: var(--uc-teal, #146c70);
  border-radius: 50%;
  display: inline-block;
}

.blog-hero-title {
  font-family: var(--uc-heading-font);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--uc-ink, #20353d);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-hero-title span {
  color: var(--uc-teal, #146c70);
}

.blog-hero-desc {
  font-size: 1.15rem;
  color: var(--uc-muted, #536b6f);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Filter Bar */
.blog-category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.cat-pill {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uc-ink, #20353d);
  background: var(--uc-white, #ffffff);
  border: 1px solid var(--uc-border, #dce7e3);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  border-color: var(--uc-teal, #146c70);
  box-shadow: 0 4px 12px rgba(20, 108, 112, 0.2);
}

/* ==========================================================================
   3. Posts Grid & Cards
   ========================================================================== */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.blog-card {
  background: var(--uc-white, #ffffff);
  border: 1px solid var(--uc-border, #dce7e3);
  border-radius: var(--uc-radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(32, 53, 61, 0.04);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(20, 108, 112, 0.12), 0 0 0 1px var(--uc-teal, #146c70);
  border-color: var(--uc-teal, #146c70);
}

.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--uc-mint, #e7f3ef);
}

.blog-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-fallback-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #146c70 0%, #0c3e41 100%);
  color: #ffffff;
}

.blog-card-fallback-thumb svg {
  width: 54px;
  height: 54px;
  opacity: 0.85;
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--uc-teal, #146c70);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--uc-muted, #536b6f);
  margin-bottom: 12px;
}

.blog-card-meta .separator {
  color: var(--uc-border, #dce7e3);
}

.blog-card-title {
  font-family: var(--uc-heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--uc-ink, #20353d);
}

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

.blog-card-title a:hover {
  color: var(--uc-teal, #146c70);
}

.blog-card-excerpt {
  color: var(--uc-muted, #536b6f);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-footer {
  border-top: 1px solid var(--uc-border-light, #eaf1ed);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uc-border, #dce7e3);
}

.author-name-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uc-ink, #20353d);
}

.blog-read-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--uc-teal, #146c70);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.blog-read-link:hover {
  gap: 8px;
  color: var(--uc-teal-hover, #0f5457);
}

/* ==========================================================================
   4. Pagination
   ========================================================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--uc-radius-md, 10px);
  border: 1px solid var(--uc-border, #dce7e3);
  background: #ffffff;
  color: var(--uc-ink, #20353d);
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--uc-teal, #146c70);
  border-color: var(--uc-teal, #146c70);
  color: #ffffff;
}

/* ==========================================================================
   5. Single Post Layout
   ========================================================================== */
.single-post-main {
  background-color: var(--uc-bg, #faf9f5);
  padding: 40px 0 80px;
}

.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--uc-muted, #536b6f);
  margin-bottom: 24px;
}

.single-breadcrumbs a {
  color: var(--uc-muted, #536b6f);
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-breadcrumbs a:hover {
  color: var(--uc-teal, #146c70);
}

.single-breadcrumbs span.sep {
  color: var(--uc-border, #dce7e3);
}

.single-breadcrumbs span.current {
  color: var(--uc-teal, #146c70);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Article Header */
.single-header {
  margin-bottom: 32px;
}

.single-cat-badge {
  display: inline-block;
  background-color: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid var(--uc-border, #dce7e3);
}

.single-title {
  font-family: var(--uc-heading-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--uc-ink, #20353d);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.single-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--uc-border, #dce7e3);
  color: var(--uc-muted, #536b6f);
  font-size: 0.925rem;
}

.single-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--uc-border, #dce7e3);
}

.single-author-name {
  font-weight: 700;
  color: var(--uc-ink, #20353d);
}

.single-featured-image {
  margin: 32px 0 40px;
  border-radius: var(--uc-radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 108, 112, 0.08);
  border: 1px solid var(--uc-border, #dce7e3);
}

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

/* Article Body Typography */
.single-content {
  background: #ffffff;
  padding: 48px;
  border-radius: var(--uc-radius-lg, 16px);
  border: 1px solid var(--uc-border, #dce7e3);
  box-shadow: 0 4px 20px rgba(32, 53, 61, 0.03);
  font-family: var(--uc-body-font);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #273e47;
}

.single-content p {
  margin-bottom: 24px;
}

.single-content p.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--uc-ink, #20353d);
  font-weight: 500;
}

.single-content h2 {
  font-family: var(--uc-heading-font);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--uc-ink, #20353d);
  margin-top: 40px;
  margin-bottom: 18px;
  border-left: 4px solid var(--uc-teal, #146c70);
  padding-left: 16px;
  line-height: 1.3;
}

.single-content h3 {
  font-family: var(--uc-heading-font);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--uc-ink, #20353d);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.single-content ul,
.single-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.single-content li {
  margin-bottom: 10px;
}

.single-content blockquote {
  background: var(--uc-mint-soft, #f1f8f5);
  border-left: 4px solid var(--uc-teal, #146c70);
  border-radius: 0 var(--uc-radius-md, 10px) var(--uc-radius-md, 10px) 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--uc-ink, #20353d);
  line-height: 1.7;
}

.single-content a {
  color: var(--uc-teal, #146c70);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover {
  color: var(--uc-teal-hover, #0f5457);
}

.single-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--uc-border, #dce7e3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--uc-muted, #536b6f);
}

.single-tag-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--uc-border, #dce7e3);
}

/* ==========================================================================
   6. Consultation Banner CTA
   ========================================================================== */
.blog-cta-box {
  background: linear-gradient(135deg, #146c70 0%, #0c3e41 100%);
  color: #ffffff;
  border-radius: var(--uc-radius-lg, 16px);
  padding: 40px;
  margin-top: 48px;
  text-align: center;
  box-shadow: 0 16px 36px -10px rgba(20, 108, 112, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-cta-box h3 {
  font-family: var(--uc-heading-font);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.blog-cta-box p {
  font-size: 1.05rem;
  color: #dce7e3;
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.blog-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-cta-btn-primary {
  background: #ffffff;
  color: var(--uc-teal, #146c70);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.blog-cta-btn-primary:hover {
  background: #f1f8f5;
  transform: translateY(-2px);
}

.blog-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.blog-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   7. Responsive Queries
   ========================================================================== */
@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  .single-content {
    padding: 28px 20px;
    font-size: 1.05rem;
  }
  .blog-cta-box {
    padding: 32px 20px;
  }
}


/* ==========================================================================
   8. Single Post 2-Column Grid & Sticky Sidebar
   ========================================================================== */
.single-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
}

.single-main-col {
  min-width: 0;
}

.single-sidebar-col {
  min-width: 0;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--uc-border, #dce7e3);
  border-radius: var(--uc-radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(32, 53, 61, 0.03);
}

.widget-title {
  font-family: var(--uc-heading-font);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--uc-ink, #20353d);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uc-mint, #e7f3ef);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
}

.widget-title span.count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Sidebar Recent Posts */
.sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 8px;
  border-radius: var(--uc-radius-md, 10px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar-post-item:hover {
  background-color: var(--uc-mint-soft, #f1f8f5);
  transform: translateX(3px);
}

.sidebar-post-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--uc-mint, #e7f3ef);
  border: 1px solid var(--uc-border, #dce7e3);
}

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

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

.sidebar-post-info {
  flex-grow: 1;
  min-width: 0;
}

.sidebar-post-cat {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--uc-teal, #146c70);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.sidebar-post-title {
  font-family: var(--uc-heading-font);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--uc-ink, #20353d);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-post-meta {
  font-size: 0.75rem;
  color: var(--uc-muted, #536b6f);
}

/* Sidebar Categories */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--uc-radius-sm, 6px);
  color: var(--uc-ink, #20353d);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--uc-bg, #faf9f5);
  border: 1px solid var(--uc-border-light, #eaf1ed);
  transition: all 0.2s ease;
}

.sidebar-cat-item a:hover {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  border-color: var(--uc-teal, #146c70);
}

.sidebar-cat-item a span.count {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Sidebar Quick Consultation Card */
.sidebar-booking-card {
  background: linear-gradient(135deg, #146c70 0%, #0c3e41 100%);
  color: #ffffff;
  border-radius: var(--uc-radius-lg, 16px);
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px -4px rgba(20, 108, 112, 0.2);
}

.sidebar-booking-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sidebar-booking-card h3 {
  font-family: var(--uc-heading-font);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.sidebar-booking-card p {
  font-size: 0.875rem;
  color: #dce7e3;
  line-height: 1.5;
  margin-bottom: 18px;
}

.sidebar-booking-btn {
  display: block;
  background: #ffffff;
  color: var(--uc-teal, #146c70);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sidebar-booking-btn:hover {
  background: #f1f8f5;
  transform: translateY(-2px);
}

.sidebar-wa-btn {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-wa-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 991px) {
  .single-post-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sidebar-sticky-wrap {
    position: static;
  }
}


/* ==========================================================================
   9. Comments Section Styling
   ========================================================================== */
.comments-area {
  margin-top: 48px;
  padding: 36px;
  background: #ffffff;
  border-radius: var(--uc-radius-lg, 16px);
  border: 1px solid var(--uc-border, #dce7e3);
  box-shadow: 0 4px 16px rgba(32, 53, 61, 0.03);
}

.comments-title,
.comment-reply-title {
  font-family: var(--uc-heading-font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--uc-ink, #20353d);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uc-mint, #e7f3ef);
}

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

.comment-body {
  background: var(--uc-bg, #faf9f5);
  border: 1px solid var(--uc-border-light, #eaf1ed);
  border-radius: var(--uc-radius-md, 10px);
  padding: 20px;
  margin-bottom: 18px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid var(--uc-mint, #e7f3ef);
  vertical-align: middle;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--uc-ink, #20353d);
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--uc-muted, #536b6f);
}

.comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.comment-content {
  font-size: 0.975rem;
  line-height: 1.6;
  color: #273e47;
  margin-bottom: 12px;
}

.reply a {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--uc-teal, #146c70);
  text-decoration: none;
  background: #ffffff;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--uc-border, #dce7e3);
  transition: all 0.2s ease;
}

.reply a:hover {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  border-color: var(--uc-teal, #146c70);
}

/* Comment Form */
.comment-respond {
  margin-top: 36px;
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--uc-muted, #536b6f);
  margin-bottom: 16px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .comment-form-row {
    grid-template-columns: 1fr;
  }
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--uc-ink, #20353d);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--uc-border, #dce7e3);
  border-radius: var(--uc-radius-md, 10px);
  background: #ffffff;
  color: var(--uc-ink, #20353d);
  font-family: var(--uc-body-font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--uc-teal, #146c70);
  box-shadow: 0 0 0 3px rgba(20, 108, 112, 0.12);
}

.btn-submit-comment {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  font-family: var(--uc-heading-font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 108, 112, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-submit-comment:hover {
  background: var(--uc-teal-hover, #0f5457);
  transform: translateY(-2px);
}


/* ==========================================================================
   10. 404 Error Page & Search Forms
   ========================================================================== */
.error-404-main {
  background-color: var(--uc-bg, #faf9f5);
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.error-404-box {
  background: #ffffff;
  border: 1px solid var(--uc-border, #dce7e3);
  border-radius: var(--uc-radius-xl, 24px);
  padding: 64px 32px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(32, 53, 61, 0.04);
}

.error-404-badge {
  display: inline-block;
  background: var(--uc-mint, #e7f3ef);
  color: var(--uc-teal, #146c70);
  font-family: var(--uc-heading-font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.error-404-title {
  font-family: var(--uc-heading-font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--uc-ink, #20353d);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.error-404-desc {
  font-size: 1.1rem;
  color: var(--uc-muted, #536b6f);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 32px;
}

.search-input-wrap {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--uc-border, #dce7e3);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 4px 14px rgba(32, 53, 61, 0.05);
  margin: 0 auto 36px;
  max-width: 500px;
}

.search-input-wrap .search-field {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-family: var(--uc-body-font);
  font-size: 0.95rem;
  color: var(--uc-ink, #20353d);
}

.search-input-wrap .search-field:focus {
  outline: none;
}

.search-input-wrap .search-submit {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  border: none;
  font-family: var(--uc-heading-font);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-input-wrap .search-submit:hover {
  background: var(--uc-teal-hover, #0f5457);
}

.error-404-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.btn-error-primary {
  background: var(--uc-teal, #146c70);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-error-primary:hover {
  background: var(--uc-teal-hover, #0f5457);
  transform: translateY(-2px);
}

.btn-error-secondary {
  background: var(--uc-mint-soft, #f1f8f5);
  color: var(--uc-teal, #146c70);
  border: 1px solid var(--uc-border, #dce7e3);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-error-secondary:hover {
  background: var(--uc-mint, #e7f3ef);
}

.error-404-help {
  border-top: 1px solid var(--uc-border-light, #eaf1ed);
  padding-top: 24px;
}

.error-404-help p {
  font-size: 0.925rem;
  color: var(--uc-muted, #536b6f);
  margin-bottom: 10px;
}

.btn-error-wa {
  font-weight: 700;
  color: var(--uc-teal, #146c70);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-error-wa:hover {
  text-decoration: underline;
}
