/* Blog Listing Page Styles */
:root {
  --green: #0c3a30;
  --green-soft: #4d6459;
  --cream: #fffaf4;
  --orange: #ffbe8e;
  --orange-deep: #e89b65;
  --white: #ffffff;
  --text-soft: #687588;
}
.premium-hero-container {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.text-glow-headline {
    font-size: clamp(38px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.2;
    padding-bottom: 15px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #ffffff 30%, #ffd2b1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero .crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--green-soft);
}

.blog-hero .crumb a {
  color: var(--green-soft);
  text-decoration: none;
}

.blog-hero .crumb .sep {
  opacity: 0.5;
}

.blog-hero .crumb .current {
  color: var(--orange-deep);
}

.main-page-wrapper,
.blog-body,
.blog-content-section {
    overflow: visible !important;
}

/* Category Sidebar & Filter Listing */
@media (min-width: 992px) {
    .insights-sidebar-col {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 110px !important;
        align-self: flex-start !important;
        z-index: 90 !important;
    }
    .insights-sidebar {
        margin-bottom: 40px;
    }
}

.insights-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(12, 58, 48, 0.08);
    box-shadow: 0 15px 45px rgba(12, 58, 48, 0.04);
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(12, 58, 48, 0.08);
}

.sidebar-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0c3a30;
    margin: 0;
}

.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-cat-link.filter-btn {
    display: block !important;
    padding: 10px 16px !important;
    background: transparent !important;
    border: none !important;
    color: #4d6459 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.sidebar-cat-link.filter-btn:hover {
    background: var(--orange, #ff7a30) !important;
    color: var(--primary, #0c3a30) !important;
    transform: none !important;
    box-shadow: none !important;
}

.sidebar-cat-link.filter-btn.active {
    background: var(--orange, #ff7a30) !important;
    color: var(--primary, #0c3a30) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid rgba(12, 58, 48, 0.08);
    box-shadow: 0 15px 45px rgba(12, 58, 48, 0.04);
    text-align: center;
    margin-top: 24px;
}

.cta-icon-box {
    width: auto;
    height: auto;
    background: transparent;
    color: #0c3a30;
    display: block;
    font-size: 24px;
    margin: 0 auto 16px;
}

.cta-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0c3a30;
}

.cta-text {
    font-size: 14.5px;
    color: #4d6459;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.btn-sidebar-cta {
    display: inline-block;
    background: transparent;
    color: #0c3a30;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.btn-sidebar-cta:hover {
    color: #000000;
    border-bottom-color: #0c3a30;
    transform: none;
}

/* Category Filter Menu (Legacy Horizontal) */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 1px solid rgba(12, 58, 48, 0.1);
  color: var(--green);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 10px 25px rgba(12, 58, 48, 0.15);
}

/* Post Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 1400px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(12, 58, 48, 0.04);
  border: 1px solid rgba(12, 58, 48, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(12, 58, 48, 0.08);
}

.card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-soft, #4d6459);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-category {
  background: rgba(255, 190, 142, 0.25);
  color: #76583b;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--orange-deep);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(12, 58, 48, 0.08);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link.active, .page-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

@media (max-width: 991px) {
  .insights-sidebar-col,
  .insights-sidebar {
    position: static !important;
    top: auto !important;
    margin-bottom: 24px !important;
    z-index: 1 !important;
  }
  
  .insights-sidebar-card {
    padding: 14px 18px !important;
    border-radius: 16px !important;
  }

  .sidebar-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  .sidebar-title {
    font-size: 15px !important;
    letter-spacing: -0.2px;
  }

  .sidebar-category-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 4px !important;
    margin-bottom: -4px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sidebar-category-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar-cat-link.filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 8px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 100px !important;
    background: rgba(12, 58, 48, 0.05) !important;
    color: #0c3a30 !important;
    border: 1px solid rgba(12, 58, 48, 0.08) !important;
  }

  .sidebar-cat-link.filter-btn:hover,
  .sidebar-cat-link.filter-btn.active {
    background: #ffbe8e !important;
    color: #0c3a30 !important;
    border-color: #ffbe8e !important;
    font-weight: 700 !important;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img {
    height: 320px;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .insights-search-box {
    max-width: 100% !important;
    width: 100% !important;
  }

  .blog-content-section {
    padding-top: 24px !important;
    padding-bottom: 40px !important;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .card-img {
    height: 200px !important;
  }

  .card-content {
    padding: 20px !important;
  }

  .card-title {
    font-size: 18px !important;
  }

  .card-excerpt {
    font-size: 13.5px !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 16px !important;
  }

  .featured-content {
    padding: 24px;
  }
}
