.page-news {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image-container {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 30px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFF6D6;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-news__btn-secondary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-news__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-news__featured-news {
  padding-bottom: 60px;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__news-card {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

.page-news__card-image {
  width: 100%;
  height: 225px;
  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.4rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__card-title a {
  color: #FFF6D6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #FFD36B;
}

.page-news__card-date {
  font-size: 0.9rem;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #F2C14E;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__view-all-button {
  text-align: center;
}

.page-news__content-section p {
  font-size: 1.05rem;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-news__content-section p a {
  color: #F2C14E;
  text-decoration: none;
}

.page-news__content-section p a:hover {
  text-decoration: underline;
}

.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-news__faq-section {
  padding-bottom: 60px;
}

.page-news__faq-list {
  margin-top: 30px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}

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(242, 193, 78, 0.1);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E;
  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: #0A0A0A;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

.page-news__conclusion {
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

.page-news__conclusion p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.page-news__text-link {
  color: #F2C14E;
  text-decoration: underline;
}

.page-news__text-link:hover {
  color: #FFD36B;
}

.page-news__footer-content {
  text-align: center;
  padding: 30px 16px;
  background-color: #0A0A0A;
  border-top: 1px solid #3A2A12;
  color: #FFF6D6;
  font-size: 0.9rem;
}

/* --- Fixed Template CSS for Homepage Layout (Required for all CSS output) --- */
@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;
  }
  /* PC specific styles for other homepage modules (not used in HTML for news, but required in CSS) */
  .page-news__promo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-news__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-news__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-news__hot-games-card-name {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 20px;
  }
  .page-news__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .page-news__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-news__section-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-news__news-card {
    flex-direction: column;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__card-date {
    font-size: 0.85rem;
  }
  .page-news__card-excerpt {
    font-size: 0.9rem;
  }

  .page-news__content-section p {
    font-size: 1rem;
    padding: 0 15px;
  }
  .page-news__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-news__content-section .page-news__container {
    padding: 0;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 1rem;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  .page-news__conclusion p {
    font-size: 1rem;
    padding: 0 15px;
  }

  /* Generic mobile image and container adapt (required) */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Homepage specific (required in CSS output even if not used in HTML) */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  .page-news__brand-intro {
    display: block; /* If it was hidden on desktop, ensure it's visible or correctly styled on mobile */
    padding: 0 15px;
  }
  .page-news__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Example for ticker height */
  }
}

/* Common styles for game trial overlay/modal (Required for all CSS output) */
.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 #3A2A12; /* Border color from custom palette */
  border-radius: 10px;
  overflow: hidden;
}
.page-news__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-news__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-news__reward-modal-content {
  background: #111111;
  color: #FFF6D6;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #F2C14E;
  cursor: pointer;
  transition: color 0.3s ease;
}
.page-news__reward-modal-close:hover {
  color: #FFD36B;
}
.page-news__reward-modal h3 {
  color: #F2C14E;
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.page-news__reward-modal p {
  margin-bottom: 25px;
}