/* =============================================================
   BLOG LISTING PAGE
   ============================================================= */

.blog-listing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Filter wrapper */
.blog-listing-filter {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Year filter dropdown */
.blog-year-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
}
.blog-year-label {
  display: inline !important;
  font-size: 0.875rem;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}
.blog-year-select {
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 0.4rem 2.25rem 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 110px;
  color: #333;
}
.blog-year-select:focus {
  outline: none;
  border-color: #c8102e;
}

/* 3-column grid */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-listing-grid { grid-template-columns: 1fr; }
}

/* Blog card — scoped to listing grid and sidebar only, does NOT affect home page blog grid */
.blog-listing-grid .blog-card,
.sidebar-other-blogs .blog-card {
  display: flex;
  flex-direction: column;
  border: none;
  background: #fff;
  overflow: hidden;
}
.blog-listing-grid .blog-card__image,
.sidebar-other-blogs .blog-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}
.blog-listing-grid .blog-card__image img,
.sidebar-other-blogs .blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-listing-grid .blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}
.blog-listing-grid .blog-card__body,
.sidebar-other-blogs .blog-card__body {
  padding: 1rem;
}
.blog-listing-grid .blog-card__date,
.sidebar-other-blogs .blog-card__date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c8102e;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.blog-listing-grid .blog-card__title,
.sidebar-other-blogs .blog-card__title {
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #1a1a1a;
}
.blog-listing-grid .blog-card__title a,
.sidebar-other-blogs .blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-listing-grid .blog-card__title a:hover,
.sidebar-other-blogs .blog-card__title a:hover {
  color: #c8102e;
}

/* No results */
.blog-listing-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #666;
  font-size: 1rem;
}

/* Pagination */
.blog-listing-pager {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.blog-listing-pager .pager {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}
.blog-listing-pager .pager__item {
  display: inline-flex !important;
  list-style: none;
  width: auto !important;
  float: none;
}
.blog-listing-pager .pager__item a,
.blog-listing-pager .pager__item.is-active span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #c8102e;
  border: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.blog-listing-pager .pager__item a:hover {
  background: #a00d24;
  color: #fff;
}
.blog-listing-pager .pager__item.is-active a {
  background: #fff;
  color: #c8102e;
  border: 2px solid #c8102e;
  font-weight: 700;
  pointer-events: none;
}

/* =============================================================
   BLOG DETAIL PAGE
   ============================================================= */

.blog-detail-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Title */
.blog-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

/* Meta: date + share */
.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.blog-detail-date {
  font-size: 0.875rem;
  color: #c8102e;
  font-weight: 600;
}
.blog-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.blog-share__label {
  font-size: 0.8rem;
  color: #666;
}
.blog-share__link {
  color: #555;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-share__link:hover { color: #c8102e; }

/* Featured image */
.blog-detail-featured-image {
  margin-bottom: 1.75rem;
  border-radius: 4px;
  overflow: hidden;
}
.blog-detail-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Key Takeaways box */
.blog-key-takeaways {
  background: #f7f7f7;
  border-left: 4px solid #c8102e;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
}
.blog-key-takeaways__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}
.blog-key-takeaways__content ul {
  margin: 0;
  padding-left: 1.25rem;
}
.blog-key-takeaways__content li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.4rem;
}

/* Body content */
.blog-detail-body {
  font-size: 0.975rem;
  line-height: 1.75;
  color: #333;
}
.blog-detail-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2rem 0 0.75rem;
}
.blog-detail-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 0.5rem;
}
.blog-detail-body p {
  margin-bottom: 1rem;
}
.blog-detail-body ul,
.blog-detail-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.blog-detail-body li {
  margin-bottom: 0.4rem;
}
.blog-detail-body a {
  color: #c8102e;
  text-decoration: none;
}
.blog-detail-body a:hover { text-decoration: underline; }

/* Red callout / infographic box */
.blog-callout-box {
  background: #c8102e;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  margin: 2rem 0;
}
.blog-callout-box h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
.blog-callout-box ul {
  margin: 0;
  padding-left: 1.25rem;
}
.blog-callout-box li {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* FAQ section */
.faq-section {
  margin-top: 2.5rem;
}
.faq-section h2 {
  color: #1a1a1a;
}
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.faq-item p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

/* =============================================================
   BLOG SIDEBAR
   ============================================================= */

.blog-detail-sidebar {
  position: sticky;
  top: 1.5rem;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  border-bottom: 2px solid #c8102e;
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

/* Other blogs in sidebar - horizontal card */
.sidebar-other-blogs .blog-card {
  flex-direction: row;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}
.sidebar-other-blogs .blog-card:last-child {
  border-bottom: none;
}
.sidebar-other-blogs .blog-card__image {
  width: 100px;
  min-width: 100px;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: unset;
  overflow: hidden;
}
.sidebar-other-blogs .blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-other-blogs .blog-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.sidebar-other-blogs .blog-card__date {
  font-size: 0.72rem;
}
.sidebar-other-blogs .blog-card__title {
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-other-blogs .blog-card__read-more {
  display: inline-block;
  font-size: 0.75rem;
  color: #c8102e;
  font-weight: 600;
  margin-top: 0.3rem;
  text-decoration: none;
}
.sidebar-other-blogs .blog-card__read-more:hover { text-decoration: underline; }

/* Categories */
.sidebar-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-categories__item {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}
.sidebar-categories__item:last-child { border-bottom: none; }
.sidebar-categories__item a {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-categories__item a:hover { color: #c8102e; }

/* Hide drupal field labels in blog context */
.blog-detail-main .field__label,
.blog-detail-sidebar .field__label { display: none; }
