/*** Year Filter Buttons ***/
.year-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.year-filter-btn {
  padding: 10px 24px;
  border: 2px solid #eee9de;
  background: transparent;
  color: #eee9de;
  font-weight: 400;
  font-size: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year-filter-btn:hover {
  background: #2fa7d8;
  color: #eee9de;
}

.year-filter-btn.active {
  background: #2fa7d8;
  color: #212121;
  font-weight: 800;
}

/*** Year Divider Styling ***/
.year-divider {
  width: 100%;
  text-align: center;
  margin: 40px 0 30px 0;
  position: relative;
}

.year-divider span {
  border-radius: 25px;
  border: 2px solid #eee9de;
  padding: 20px;
  width: 200px;
  height: 150px;
  background: #586c91;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 500;
  color: #eee9de;
  position: relative;
  z-index: 1;
}

.year-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #eee9de;
  z-index: 0;
}

/*** Blog Card Improvements ***/
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #eee9de;
}

.blog-card-content .meta {
  font-size: 13px;
  color: #eee9de;
  margin-bottom: 10px;
}

.blog-card-content p {
  font-size: 18px;
  color: #eee9de;
  line-height: 1.6;
  margin: 0;
}

/*** Related Posts Section ***/
.related-posts-section {
  padding: 60px 0;
  background: #222831;
}

.related-posts-title {
  color: #eee9de;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

/*** Ensure related post cards are visible on dark background ***/
.related-posts-section .blog-card {
  background: #222831;
}

.related-posts-section .blog-card-content h3 {
  color: #eee9de;
}

.related-posts-section .blog-card-content .meta {
  color: #eee9de;
}

/*** Hero Image Border Radius (on single blog pages) ***/
.page-single-post .image-anime {
  border-radius: 15px;
  overflow: hidden;
}

.page-single-post .image-anime img {
  border-radius: 15px;
  display: block;
}

/*** Related Posts Images Border Radius ***/
.related-posts-section .blog-card-image {
  border-radius: 15px;
  overflow: hidden;
}

.related-posts-section .blog-card-image img {
  border-radius: 15px;
  display: block;
}

/* Fix ADA contrast for related post dates */
.related-posts-section .blog-card-content .meta {
  color: #eee9de !important; /* White text on dark background */
}

.blog-card img {
  aspect-ratio: 16 / 9;
}
