/* General page styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main color on dark background */
  background-color: #140C0C; /* Background color */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-news__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F3C54D; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}
.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F3C54D, transparent);
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 16px;
  background-color: #7E0D0D; /* Deep Red as accent */
  background-image: url('[GALLERY:hero:1920x1080:hitclub.win,news,background,dynamic]'); /* Main visual */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 10px 16px 40px;
}
.page-news__hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}
.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.page-news__main-title {
  font-size: clamp(2.2em, 5vw, 3.5em); /* Use clamp for H1 font size */
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.page-news__description {
  font-size: 1.2em;
  color: #FFF1E8;
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-news__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff; /* White text on button */
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}
.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}
.page-news__btn-secondary {
  background: #2A1212; /* Card BG color */
  color: #F3C54D; /* Gold text */
  border: 2px solid #F3C54D; /* Gold border */
  margin-left: 20px;
}
.page-news__btn-secondary:hover {
  background: #F3C54D;
  color: #2A1212;
  transform: translateY(-2px);
}

/* News List Section */
.page-news__news-list-section {
  padding: 60px 0;
}
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.page-news__news-card {
  background: #2A1212; /* Card BG color */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.page-news__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.page-news__card-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}
.page-news__card-title a {
  color: #F3C54D; /* Gold for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}
.page-news__card-title a:hover {
  color: #FFB04A; /* Lighter gold on hover */
}
.page-news__card-meta {
  font-size: 0.9em;
  color: #FFF1E8;
  opacity: 0.7;
  margin-bottom: 15px;
}
.page-news__card-excerpt {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}
.page-news__pagination-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #FFF1E8;
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  transition: all 0.3s ease;
}
.page-news__pagination-link:hover {
  background-color: #6A1E1E;
  color: #F3C54D;
}
.page-news__pagination-link--active {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border-color: transparent;
  pointer-events: none;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #7E0D0D; /* Deep Red */
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}
.page-news__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.page-news__cta-title {
  font-size: 2.2em;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: 700;
}
.page-news__cta-description {
  font-size: 1.1em;
  color: #FFF1E8;
  max-width: 700px;
  margin: 0 auto;
}
.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* For mobile responsiveness */
  max-width: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-news__faq-section {
  padding-bottom: 60px;
}
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card BG color */
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(106, 30, 30, 0.5); /* Hover effect using border color */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold text for questions */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C; /* Background color for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8; /* Text Main for answer */
}

/* Boilerplate CSS for homepage responsiveness (as required) */
@media (max-width: 1023px) {
  .page-news__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot {
    display: none !important;
  }
  .page-news__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-news__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-topbar,
  .page-news__game-trial-bottombar {
    display: none !important;
  }
  .page-news__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-news__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-news__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-news__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot,
  .page-news__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-news__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-news__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-news__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-news__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-news__promo-strip {
    margin-top: 16px;
  }
}

/* Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__hero-section {
    padding: 60px 15px;
    margin: 10px 15px 30px;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__description {
    font-size: 1em;
  }

  /* Buttons mobile adaptation */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images mobile adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__news-card .page-news__btn-secondary {
    margin-top: 15px;
  }

  /* CTA Section mobile */
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* FAQ mobile */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1em; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  /* Boilerplate for promo strip (mobile) */
  .page-news__promo-strip {
    padding: 30px 0;
  }
  .page-news__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-news__promo-strip-item {
    background: #2A1212;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-sizing: border-box;
  }
  .page-news__promo-strip-item img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-news__promo-strip-item-title {
    font-size: 1.1em;
    color: #F3C54D;
    margin-bottom: 5px;
  }
  .page-news__promo-strip-item-desc {
    font-size: 0.9em;
    color: #FFF1E8;
  }

  /* Boilerplate for hot games (mobile) */
  .page-news__hot-games {
    padding: 30px 0;
  }
  .page-news__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-news__hot-games-card {
    background: #2A1212;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-sizing: border-box;
  }
  .page-news__hot-games-card img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-news__hot-games-name,
  .page-news__hot-games-rtp,
  .page-news__hot-games-desc {
    display: none !important;
  }

  /* Boilerplate for brand intro (mobile) */
  .page-news__brand-intro-section {
    padding: 30px 15px;
    background: #140C0C;
    color: #FFF1E8;
  }
  .page-news__brand-intro-content {
    text-align: center;
  }
  .page-news__brand-intro-title {
    font-size: 1.8em;
    color: #F3C54D;
    margin-bottom: 15px;
  }
  .page-news__brand-intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Boilerplate for winner ticker (mobile) */
  .page-news__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
    box-sizing: border-box;
    font-size: 0.9em;
  }
  body, main {
    padding-bottom: 50px !important;
  }
}

/* Common game trial overlay/modal styles (not specific to media query) */
.page-news__game-trial-overlay{z-index:5;pointer-events:auto;}.page-news__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-news__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-news__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-news__reward-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.8);display:flex;justify-content:center;align-items:center;}.page-news__reward-modal[hidden]{display:none;}.page-news__reward-modal-content{background:#2A1212;padding:30px;border-radius:10px;text-align:center;position:relative;max-width:90%;}.page-news__reward-modal-close{position:absolute;top:10px;right:10px;font-size:24px;color:#F3C54D;cursor:pointer;z-index:10001;}.page-news--reward-open{overflow:hidden;}