.container {
  margin-top: 45rem;
}

.top-nav {
  display: flex;
  gap: 52rem;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(36, 16, 46, 0.7) 0%,
    rgba(125, 58, 117, 0.6) 50%,
    rgba(36, 16, 46, 0.7) 100%
  );
  border: 1px solid #7c4586;
  border-radius: 8px;
  padding: 14rem 29rem;
  margin-bottom: 12rem;
  box-shadow: 0px 4px 4px 0px #0000004d;
}
.top-nav::-webkit-scrollbar {
  display: none;
}
.top-nav a {
  color: white;
  text-decoration: none;
  font-size: 16rem;
  line-height: 20rem;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}
.top-nav a::after {
  content: "";
  position: absolute;
  bottom: 0rem;
  left: 50%;
  width: 0;
  height: 2rem;
  background: linear-gradient(90deg, #ff0077, #ffcc00);
  bottom: -14.5rem;
  transition:
    width 0.2s ease,
    left 0.2s ease;
}
.top-nav a.active,
.top-nav a:hover {
  color: #fecb45;
}

.top-nav a.active::after,
.top-nav a:hover::after {
  width: 100%;
  left: 0;
  background: linear-gradient(90deg, #ff2676 0%, #fea845 100%);
  border-radius: 10rem;
}

.layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 12px;
}

.main-column {
  background: #3900554d;
  padding: 25rem 20rem;
  position: relative;
  color: white;
  overflow-y: auto;
  border-radius: 10rem;
}
.main-column::-webkit-scrollbar {
  width: 7rem;
  margin-right: 10rem;
}

.main-column::-webkit-scrollbar-track {
  background: #d9d9d91a;
  /* Optional: Round the track edges too */
  border-radius: 1000px !important;
}

.main-column::-webkit-scrollbar-thumb {
  background: linear-gradient(178.12deg, #3e1273 1.59%, #e72887 89.35%);
  border-radius: 1000px !important;
}
.main-column-lighten {
  background: url(../images/lighten-big.webp) top center no-repeat;
  background-size: cover;
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 165.5rem;
  z-index: -1;
}

.href {
  text-decoration: none;
}

.hero-card h1:hover,
.content-text {
  cursor: pointer;
  opacity: 0.9;
}

.hero-card h1 {
  font-size: 22rem;
  line-height: 36rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 17rem;
  color: white;
}

.date-time {
  margin-bottom: 18rem;
}

.content-text {
  font-size: 16rem;
  color: #ddd8cd;
  line-height: 22rem;
}

.divỉder {
  height: 2rem;
  width: 100%;
  background: url(../images/divider-line.webp) top center no-repeat;
  background-size: cover;
  margin-block: 43rem 36rem;
}

.hero-image {
  border-radius: 12rem;
  overflow: hidden;
  margin-bottom: 26.5rem;
}

.hero-image img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.hero-image img:hover,
.news-card-img img:hover,
.side-card-img img:hover {
  scale: 1.05;
  transition-duration: 0.3s;
  cursor: pointer;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rem;
}
/* ── Load more button (mobile) ─────────────────────────────────────────── */
.load-more-btn {
  display: none;
  margin: 4rem auto 18rem;
  padding: 10rem 24rem;
  background: #26071c4d;
  border-radius: 59rem;
  font-size: 17rem;
  line-height: 22rem;
  font-weight: 600;
  border: 1px solid #3e1141;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.news-card {
  cursor: pointer;
  padding-bottom: 24rem;
  background: url(../images/divider-small.webp) bottom center no-repeat;
  background-size: contain;
}

.news-card h3 {
  font-size: 20rem;
  line-height: 1.4;
  margin-bottom: 18rem;
  font-weight: 600;
}

.news-card-img {
  width: 400rem;
  aspect-ratio: 400/225;
  object-fit: cover;
  border-radius: 12rem;
  display: block;
  margin-bottom: 17rem;
  overflow: hidden;
}

.news-card img {
  width: 100%;
}

.news-card p {
  color: #ddd8cd;
  font-size: 16rem;
  line-height: 22rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 18rem;
  overflow: hidden;
}

.sidebar-wrapper {
  position: relative;
  overflow: hidden;
}

.sidebar-lighten {
  background: url(../images/lighten-small.webp) top center no-repeat;
  background-size: cover;
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  height: 165.6rem;
  z-index: 0;
}

.side-card {
  background: #3900554d;
  /* border: 1px solid rgba(198, 84, 255, 0.28); */
  border-radius: 10rem;
  backdrop-filter: blur(37px);
  padding: 22rem 11rem 25rem;
  color: white;
}

.side-card:first-of-type {
  background-color: #3900554d !important;
  background: url(../images/lighten-small.webp) top center no-repeat;
  background-size: contain;
}

.side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1rem;
  /* border thickness */
  border-radius: inherit;

  background: linear-gradient(
    90deg,
    rgba(232, 56, 229, 0.3) -1.12%,
    rgba(250, 228, 177, 0.3) 100.84%
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.side-tags {
  display: flex;
  align-items: center;
  gap: 16rem;
  margin-bottom: 13rem;
  flex-wrap: wrap;
  padding-bottom: 19rem;
  font-size: 16rem;
  line-height: 20rem;
  background: url(../images/divider-small.webp) bottom center no-repeat;
  background-size: contain;
}
.side-tags span.active {
  opacity: 1;
  font-weight: 700;
  color: white;
}

.drawer-icon.icon-images.active {
  background: #fecb45;
  -webkit-mask: url(../icon/images-icon.svg) no-repeat center / contain;
  mask: url(../icon/images-icon.svg) no-repeat center / contain;
  width: 24rem;
  height: 24rem;
  flex-shrink: 0;
  margin-right: 4rem;
}

.drawer-icon.icon-diamond.active {
  background: #fecb45;
  -webkit-mask: url("../icon/diamond-icon.svg") no-repeat center /
    contain;
  mask: url("../icon/diamond-icon.svg") no-repeat center / contain;
  width: 24rem;
  flex-shrink: 0;
  height: 24rem;
}

.drawer-icon.icon-poker.active {
  background: #e82767;
  -webkit-mask: url("../icon/PokerChip.svg") no-repeat center / contain;
  mask: url("../icon/PokerChip.svg") no-repeat center / contain;
  width: 24rem;
  flex-shrink: 0;
  height: 24rem;
}

.drawer-icon.icon-club.active {
  background: #54b932;
  -webkit-mask: url("../icon/Club.svg") no-repeat center / contain;
  mask: url("../icon/Club.svg") no-repeat center / contain;
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
}

.side-tags span {
  position: relative;
  color: #e6d9eb;
}

.side-tags span:hover,
.side-card h2:hover,
.side-card p:hover {
  cursor: pointer;
  opacity: 0.9;
}

.side-tags.gold span:first-child,
.side-tags.pink span:first-child,
.side-tags.green span:first-child {
  color: #fecb45;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  gap: 10rem;
}

.side-tags.pink span:first-child {
  color: #e82767;
}

.side-tags.green span:first-child {
  color: #54b932;
}

.side-card h2 {
  font-size: 20rem;
  line-height: 1.4;
  margin-bottom: 13rem;
  font-weight: 600;
  color: white;
}

.side-card p {
  font-size: 16rem;
  line-height: 22rem;
  margin-bottom: 18rem;
  color: #ddd8cd;
}

.side-card-img {
  aspect-ratio: 380 / 214;
  object-fit: cover;
  border-radius: 12rem;
  display: block;
  margin-bottom: 21rem;
  overflow: hidden;
}

.side-card > img,
.side-card-img img {
  width: 100%;
}

.side-card ul {
  list-style: none;
}

.side-card li {
  display: flex;
  gap: 11rem;
  color: inherit;
  font-size: 16rem;
  line-height: 22rem;
  margin-bottom: 21rem;
}

.side-card li p {
  height: 11rem;
  margin-bottom: unset;
}

.side-card li img {
  width: 18rem;
  height: 18rem;
  margin-top: 5rem;
}

/* ── Infinite scroll spinner ────────────────────────────────────────────── */
#loadMoreSpinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  padding: 24rem 0;
}

#loadMoreSpinner.hidden {
  display: none;
}

.spinner-dot {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #ff2676 0%, #fea845 100%);
  animation: spinnerPulse 1.2s ease-in-out infinite;
}

.spinner-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.hidden {
  display: none;
}

@keyframes spinnerPulse {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Global loading overlay ─────────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.05em;
  display: flex;
}

.loading-overlay.hidden {
  display: none;
}

/* ── Global error message ───────────────────────────────────────────────── */
.error-message {
  display: block;
  padding: 16px 24px;
  background: #7c1d1d;
  border: 1px solid #ef4444;
  border-radius: 10rem;
  color: #fca5a5;
  margin: 12px auto;
  max-width: 920px;
  font-size: 14px;
}

.error-message.hidden {
  display: none;
}

/* ── Scroll sentinel ────────────────────────────────────────────────────── */
.scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

/* ── Hero card interactive elements ─────────────────────────────────────── */
.hero-card h1.clickable,
.hero-card .content-text.clickable,
.hero-image img.clickable {
  cursor: pointer;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar-empty-state {
  font-size: 20rem;
  line-height: 1.4;
  margin-bottom: 13rem;
  font-weight: 600;
  color: #ddd8cd;
}

.sidebar-article-title {
  cursor: pointer;
  font-size: 20rem;
  line-height: 1.4;
  margin-bottom: 13rem;
  font-weight: 600;
  color: white;
}

.sidebar-article-excerpt {
  cursor: pointer;
  font-size: 16rem;
  line-height: 22rem;
  margin-bottom: 18rem;
  color: #ddd8cd;
}

.side-card li p.clickable {
  cursor: pointer;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.breadcrumb-home-link {
  color: #ffffff80 !important;
  text-decoration: none;
  font-size: 16rem;
  cursor: pointer;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #888;
  font-size: 14rem;
}

.breadcrumb-cat-link {
  color: #ffffff80 !important;
  text-decoration: none;
  font-size: 16rem;
  cursor: pointer;
}

.breadcrumb-current {
  color: #fff;
  font-size: 16rem;
  font-weight: 500;
}

/* ── Article detail ─────────────────────────────────────────────────────── */
.article-detail-container {
  padding: 10rem 0;
}

.detail-tags-row {
  display: flex;
  gap: 10rem;
  flex-wrap: wrap;
  margin-bottom: 18rem;
}

.detail-category-tag {
  background: linear-gradient(90deg, #ff2676 0%, #fea845 100%);
  border-radius: 4rem;
  padding: 4rem 12rem;
  font-size: 14rem;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.detail-subcategory-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4rem;
  padding: 4rem 12rem;
  font-size: 14rem;
  color: #ddd8cd;
}

.detail-title {
  font-size: 26rem;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16rem;
  text-transform: uppercase;
}

.detail-date {
  font-size: 16rem;
  color: #fecb45;
  line-height: 22rem;
  margin-bottom: 24rem;
}

.detail-hero-image {
  margin-bottom: 28rem;
}

.detail-hero-image img {
  width: 100%;
  border-radius: 12rem;
  display: block;
  height: auto;
  object-fit: cover;
}

.detail-body {
  font-size: 16rem;
  color: #ddd8cd;
  line-height: 26rem;
  white-space: pre-line;
}

/* ── No results ─────────────────────────────────────────────────────────── */
.no-results-container {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 0;
  color: #ddd8cd;
}

.no-results-text {
  font-size: 16rem;
  line-height: 22rem;
}


@media (max-width: 768px) {
  .container {
    margin-top: 21rem;
  }
  .layout {
    grid-template-columns: 1fr;
  }

  .top-nav {
    max-width: 402rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 15rem;
    padding: 12rem;
    border-right: 0px;
    border-left: 0px;
    border-radius: 0;
  }

  .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-wrap: nowrap !important;
  }

  .breadcrumb-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .top-nav a.active::after {
    bottom: -11.5rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20rem;
  }

  .main-column {
    margin-inline: 12rem;
    padding: 15rem 10rem;
    height: auto !important;
    overflow-y: visible !important;
  }
  .main-column-lighten {
    display: none;
  }

  .hero-card h1 {
    font-size: 18rem;
    line-height: 26rem;
    margin-bottom: 16rem;
  }

  .content-text.date-time {
    font-size: 14rem;
    margin-bottom: 16rem;
  }

  .hero-image {
    width: 359rem;
    height: 210rem;
    margin-bottom: 20rem;
  }

  .content-text {
    font-size: 15rem;
  }

  .divỉder {
    margin-block: 28rem;
  }

  .news-card {
    padding-bottom: 20rem;
  }
  .news-card:last-of-type {
    background: unset;
  }
  .news-card-img {
    width: 100%;
  }
  .news-card h3 {
    font-size: 18rem;
    line-height: 24rem;
    margin-bottom: 20rem;
  }

  .news-card p,
  .side-card p {
    font-size: 15rem;
  }
  .load-more-btn {
    display: block;
  }
}
