/* Base styles for the news page */
.page-news {
  background: var(--background-color, #0D0E12); /* Default dark background */
  color: var(--text-main, #FFF3E6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for content, 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: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #FFF3E6);
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.3);
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 243, 230, 0.8);
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  max-width: 800px;
  padding: 0 16px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 0 0 15px var(--glow, #FFB04D);
}

.page-news__description {
  font-size: 20px;
  color: rgba(255, 243, 230, 0.9);
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--auxiliary-color, #FFA53A) 0%, var(--deep-orange, #D96800) 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
  background: var(--background-color, #0D0E12);
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__article-card {
  background: var(--card-bg, #17191F);
  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;
  border: 1px solid var(--border-color, #A84F0C);
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 165, 58, 0.2);
}

.page-news__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: var(--text-main, #FFF3E6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--primary-color, #FF8C1A);
}

.page-news__article-meta {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.6);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: rgba(255, 243, 230, 0.8);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background: var(--primary-color, #FF8C1A);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background: var(--deep-orange, #D96800);
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg, #17191F);
  color: var(--text-main, #FFF3E6);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color, #A84F0C);
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active) {
  background: var(--primary-color, #FF8C1A);
  color: #ffffff;
}

.page-news__pagination-link--active {
  background: var(--primary-color, #FF8C1A);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

/* CTA Banner */
.page-news__cta-banner {
  padding: 80px 0;
  background: var(--primary-color, #FF8C1A);
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1280px;
  box-sizing: border-box;
}

.page-news__cta-banner .page-news__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-news__cta-image {
  width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, var(--auxiliary-color, #FFA53A) 0%, var(--deep-orange, #D96800) 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0 80px;
  background: var(--background-color, #0D0E12);
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #A84F0C);
  overflow: hidden;
  background: var(--card-bg, #17191F);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF3E6);
  font-weight: 600;
  font-size: 18px;
}

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(var(--primary-color-rgb, 255, 140, 26), 0.1);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #FFF3E6);
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color, #FF8C1A);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--card-bg-rgb, 23, 25, 31), 0.8);
  border-radius: 0 0 10px 10px;
  color: rgba(255, 243, 230, 0.8);
}

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

/* --- GLOBAL CSS SNIPPETS (as required by prompt) --- */
/* Mobile image and button adaptations */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section,
.page-news__card,
.page-news__container,
.page-news__cta-buttons,
.page-news__button-group,
.page-news__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__cta-button,
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Homepage Trial Layout CSS (MUST BE INCLUDED AS-IS for 1023px and 1024px, even if not directly used by news page content) */
@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;
  }
  /* The prompt mentions .page-news__promo-strip and .page-news__hot-games for PC, but these are for homepage. */
  /* For a news page, I'll ensure general PC styles are good. */
  /* If these specific elements were present on the news page, their PC styles would go here. */
}

/* Mobile Adaptations for News Page (max-width: 768px) */
@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding-bottom: 20px;
  }

  .page-news__main-title {
    font-size: 32px;
  }

  .page-news__description {
    font-size: 16px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column for articles */
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__article-meta,
  .page-news__article-excerpt {
    font-size: 14px;
  }

  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-news__pagination {
    margin-top: 30px;
  }

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .page-news__cta-banner {
    padding: 40px 0;
    margin: 40px auto;
  }

  .page-news__cta-banner .page-news__container {
    flex-direction: column; /* Stack CTA content and image */
    gap: 20px;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

  .page-news__cta-text {
    font-size: 16px;
  }

  .page-news__cta-image {
    width: 80%;
    max-width: 300px;
    height: auto;
  }

  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-news__faq-qtext {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  /* Enforce image and container responsiveness for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-content,
  .page-news__cta-content,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and button containers */
  .page-news__cta-button,
  .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__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  
  /* Homepage specific elements (if present on news page) */
  /* The prompt mentions promo-strip and hot-games for 768px, but these are for homepage. */
  /* If present, their specific mobile styles would go here. */
  /* Example placeholders for required 768px blocks: */
  .page-news__promo-strip-track { /* Placeholder for promo strip if it were on news page */
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns */
    overflow-x: hidden !important;
  }
  .page-news__hot-games-grid { /* Placeholder for hot games if it were on news page */
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns */
  }
  /* Winner ticker (if present) */
  .page-news__winner-ticker { 
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    /* Adjust body/main padding-bottom if ticker is fixed */
  }
}

/* Common styles for game trial overlay and modal */
.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;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.page-news__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}
.page-news__reward-modal-content {
  background: var(--card-bg, #17191F);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-main, #FFF3E6);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.page-news__reward-modal-close:hover {
  color: var(--primary-color, #FF8C1A);
}
.page-news__reward-modal h3 {
  color: var(--primary-color, #FF8C1A);
  font-size: 28px;
  margin-bottom: 15px;
}
.page-news__reward-modal p {
  color: var(--text-main, #FFF3E6);
  font-size: 16px;
  margin-bottom: 25px;
}
.page-news--reward-open {
  overflow: hidden;
}