/* Animated gradient background */
body.page-news {
  background: linear-gradient(270deg, #1a1a1a, #222, #1a1a1a);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Honeycomb canvas — fullscreen fixed */
.honeycomb-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.news-page {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  min-height: 100vh;
}

.news-header {
  margin-bottom: 40px;
  text-align: center;
}

.news-heading {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.news-sub {
  font-size: 0.95rem;
  color: #757575;
}

/* News grid */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-card {
  background: #242525;
  display: flex;
  padding: 8px;
}

.news-card-img {
  width: 320px;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #313131;
  cursor: pointer;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-img--full {
  display: flex;
  align-items: center;
  background: #1d1e1e;
}

.news-card-img--full img {
  object-fit: contain;
}

.news-card-img--stack {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.news-card-img--stack img {
  height: auto;
}

.news-card-img--stack-fill {
  min-height: 200px;
}

.news-card-img--stack-fill img {
  flex: 1;
  object-fit: cover;
}

/* Image below text (full width) */
.news-card--img-bottom {
  flex-direction: column;
}

.news-card--img-bottom .news-card-img {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

/* Lightbox */
.news-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-lightbox.active {
  display: flex;
}

.news-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 40px);
  object-fit: contain;
  display: block;
}

.news-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #D4A373;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #949494;
  margin-bottom: 12px;
}

.news-card-text p {
  margin: 0 0 8px;
}

.news-card-text p:last-child {
  margin-bottom: 0;
}

.news-card-text ul {
  margin: 4px 0 8px 20px;
  padding: 0;
}

.news-card-text li {
  margin-bottom: 2px;
}

.news-card-text a {
  color: #D4A373;
  text-decoration: none;
  transition: color 0.15s;
}

.news-card-text a:hover {
  color: #e0b98a;
}

.news-card-date {
  font-size: 0.75rem;
  color: #5a5a5a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

@media (max-width: 768px) {
  .news-page {
    padding: 80px 16px 40px;
  }

  .news-heading {
    font-size: 22px;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card:not(.news-card--img-bottom) .news-card-body {
    order: -1;
  }

  .news-card-body {
    padding: 20px;
  }

  .news-card-img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-card-title {
    font-size: 17px;
  }
}

/* Pagination card */
.news-pagination-card {
  padding: 16px;
  justify-content: center;
}

.news-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.news-pagination-pages {
  display: none;
  gap: 4px;
}

.pg-tier-lg {
  display: flex;
}

.news-pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #757575;
  background: #1d1e1e;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.news-pagination-num:hover {
  background: #313131;
  color: #fff;
}

.news-pagination-num.active {
  background: #D4A373;
  color: #1a1a1a;
}

.news-pagination-num.active:hover {
  background: #D4A373;
  color: #1a1a1a;
}

.pg-dots {
  pointer-events: none;
  color: #5a5a5a;
  background: transparent;
}

.pg-dots:hover {
  background: transparent;
  color: #5a5a5a;
}

.news-pagination-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #949494;
  text-decoration: none;
  padding: 8px 16px;
  background: #1d1e1e;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.news-pagination-btn:hover {
  background: #313131;
  color: #fff;
}

@media (max-width: 767px) {
  .pg-tier-lg { display: none; }
  .pg-tier-md { display: flex; }

  .news-pagination-btn {
    display: none;
  }
}

@media (max-width: 429px) {
  .pg-tier-md { display: none; }
  .pg-tier-sm { display: flex; }
}

@media (max-width: 480px) {
  .news-heading {
    font-size: 20px;
  }

  .news-card-body {
    padding: 16px;
  }

  .news-card-title {
    font-size: 15px;
  }

  .news-card-text {
    font-size: 0.85rem;
  }
}

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .news-page {
    max-width: 1200px;
    padding: 110px 24px 60px;
  }

  .news-heading {
    font-size: 32px;
  }

  .news-grid {
    gap: 32px;
  }

  .news-card {
    padding: 10px;
  }

  .news-card-img {
    width: 420px;
    min-height: 240px;
  }

  .news-card-body {
    padding: 28px 32px;
  }

  .news-card-title {
    font-size: 21px;
  }

  .news-card-text {
    font-size: 0.95rem;
  }
}

/* Extra-large screens (1920px+ / 2K) */
@media (min-width: 1920px) {
  .news-page {
    max-width: 1400px;
    padding: 120px 32px 70px;
  }

  .news-heading {
    font-size: 36px;
    margin-bottom: 48px;
  }

  .news-sub {
    font-size: 1.05rem;
  }

  .news-grid {
    gap: 36px;
  }

  .news-card {
    padding: 12px;
  }

  .news-card-img {
    width: 520px;
    min-height: 280px;
  }

  .news-card-body {
    padding: 32px 36px;
  }

  .news-card-title {
    font-size: 23px;
  }

  .news-card-text {
    font-size: 1rem;
  }

  .news-card-date {
    font-size: 0.8rem;
  }

  .news-pagination-num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Desktop: news cards fade-in from below */
@media (min-width: 769px) {
  .news-grid > .news-card:not(.news-pagination-card) {
    opacity: 0;
    transform: translateY(20px);
    animation: newsCardIn 0.5s ease forwards;
  }
  .news-grid > .news-card:nth-child(1) { animation-delay: 0s; }
  .news-grid > .news-card:nth-child(2) { animation-delay: 0.06s; }
  .news-grid > .news-card:nth-child(3) { animation-delay: 0.12s; }
  .news-grid > .news-card:nth-child(4) { animation-delay: 0.18s; }
  .news-grid > .news-card:nth-child(5) { animation-delay: 0.24s; }
  .news-grid > .news-card:nth-child(6) { animation-delay: 0.30s; }
  .news-grid > .news-card:nth-child(7) { animation-delay: 0.36s; }
  .news-grid > .news-card:nth-child(8) { animation-delay: 0.42s; }
  .news-grid > .news-card:nth-child(9) { animation-delay: 0.48s; }
  .news-grid > .news-card:nth-child(10) { animation-delay: 0.54s; }

  @keyframes newsCardIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
