.header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  background-color: hsl(var(--dark-1));
}

/* ── Category Nav ─────────────────────────────── */
.blog-category-nav {
  background-color: hsl(var(--dark-1));
  border-bottom: 1px solid hsl(var(--gold-5) / 0.15);
}

.blog-category-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-category-list::-webkit-scrollbar {
  display: none;
}

.blog-category-list li {
  flex-shrink: 0;
  position: relative;
}

.blog-category-list li a {
  display: block;
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--light) / 0.7);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}

.blog-category-list li:first-child a {
  padding-left: 0;
}

@media (min-width: 992px) {
  .blog-category-list li a {
    font-size: 0.825rem;
    padding: 0.925rem 1rem;
  }

  .blog-category-list {
    justify-content: flex-start;
  }
}
.blog-category-list li a:hover {
  color: hsl(var(--gold-2));
  /* border-bottom-color: hsl(var(--gold-2) / 0.5); */
}

.blog-category-list li.active a {
  color: hsl(var(--gold-3));
  /* border-bottom-color: hsl(var(--gold-3)); */
  font-weight: 700;
}

/* ────────────────────────────────────────────── */
.mfc-blog {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  /* background-color: hsl(var(--dark-2)); */
}
@media (min-width: 992px) {
  .mfc-blog {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.mfc-blog-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .mfc-blog-content {
    gap: 1.25rem;
  }
}
.mfc-feed {
  position: relative;
  transition: 1s;
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mfc-feed.show {
  opacity: 1;
  transform: scale(1);
}

.mfc-feed:hover {
  transform: scale(1.03);
}

@keyframes img-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.mfc-feed-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  margin: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.8s infinite;
}

.mfc-feed-image.img-ready {
  background: rgba(0, 0, 0, 0.45);
  animation: none;
}

.mfc-feed-image.img-error {
  background: hsl(var(--dark-2));
  animation: none;
}

.mfc-feed-image.img-error::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: url("../../../images/general/mba_logo_gray.webp?ver=3") center /
    contain no-repeat;
}

.mfc-feed-image > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mfc-feed-image > img.img-loaded {
  opacity: 1;
}
.mfc-feed-body {
  position: relative;
  margin-top: 0.75rem;
}
.mfc-feed-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: hsl(var(--white));
  font-weight: 500;
}

.mfc-feed:hover .mfc-feed-title {
  color: hsl(var(--gold-3));
}
.mfc-feed-excerpt {
  font-size: 0.875rem;
  line-height: 1.3;
  margin: 0.5rem 0 0;
  color: hsl(var(--white) / 0.75);
}

.mfc-feed-meta {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.mfc-feed-meta span {
  position: relative;
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--light));
}
.mfc-feed-meta span:not(:first-child):before {
  position: relative;
  top: -2px;
  display: inline-block;
  margin-right: 0.325rem;
  content: "";
  height: 3px;
  width: 3px;
  background-color: hsl(var(--light));
  border-radius: 50%;
}
/* .mfc-feed-meta span:last-child {
  display: none;
} */
.mfc-feed-link {
  display: block;
}

@media (min-width: 992px) {
  .mfc-feed-title {
    font-size: 1.125rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mfc-feed-excerpt {
    font-size: 0.875rem;
  }
  .mfc-feed-meta span {
    font-size: 0.825rem;
  }

  .mfc-feed-meta span:last-child {
    display: block;
  }
}

/* ── Blog Pagination ───────────────────────────── */
.blog-paging {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.blog-paging-list {
  display: flex;
  align-items: center;
  gap: 0.325rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-paging-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: hsl(var(--white) / 0.75);
  border: 1px solid hsl(var(--white) / 0.54);
  background-color: hsl(var(--dark-2));
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

a.blog-paging-btn:hover {
  color: hsl(var(--gold-3));
  border-color: hsl(var(--gold-5) / 0.5);
  background-color: hsl(var(--gold-5) / 0.08);
}

.blog-paging-item.active .blog-paging-btn {
  color: hsl(var(--gold-3));
  border-color: hsl(var(--gold-4));
  background-color: hsl(var(--gold-5) / 0.12);
  font-weight: 700;
  cursor: default;
}

.blog-paging-item.disabled .blog-paging-btn {
  opacity: 0.35;
  cursor: default;
}
