/* Base styles for page-news */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background: #FFFFFF; /* Default white body background */
}

.page-news__section {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
}

.page-news__intro-text {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: #a30606;
}

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

.page-news__btn-secondary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #e0ffe0, #ffffff);
}

.page-news__hero-content {
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-news__hero-image-container {
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

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

/* Latest News Section */
.page-news__latest-news {
  background: #f9f9f9;
  padding-top: 50px;
  padding-bottom: 50px;
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  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 6px 20px rgba(0, 0, 0, 0.12);
}

.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: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #333333;
}

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

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

.page-news__card-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  color: #a30606;
}

.page-news__view-all-container {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.page-news__cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #017439;
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
}

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

.page-news__cta-content .page-news__section-title {
  color: #ffffff;
  text-align: left;
}

.page-news__cta-content .page-news__intro-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-news__cta-image {
  width: 400px;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-news__faq-section {
  background: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Global image responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- HOMEPAGE SPECIFIC CSS (REQUIRED BY PROMPT FOR INNER PAGES TOO) --- */
@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;
  }
  /* Placeholder for promo strip, hot games, brand intro, winner ticker PC styles */
  /* These are not directly used on news.html but are required by the prompt to be present */
  .page-news__promo-strip { margin-top: 16px; }
  .page-news__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
  .page-news__promo-card { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
  .page-news__promo-card img {   flex-shrink: 0; }
  .page-news__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .page-news__hot-games-item { text-align: center; }
  .page-news__hot-games-item img { border-radius: 8px; }
  .page-news__hot-games-name, .page-news__hot-games-rtp, .page-news__hot-games-desc { display: block; }
  .page-news__brand-intro { display: flex; align-items: center; gap: 20px; padding: 20px; background: #f0f0f0; border-radius: 8px; }
  .page-news__brand-intro h2 { flex: 1; }
  .page-news__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.8); color: #fff; padding: 10px 0; z-index: 9999; text-align: center; }
}

/* General Mobile Adaptations */
@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__section {
    padding: 20px 15px;
  }
  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-news__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Hero Section Mobile */
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  /* News Grid Mobile */
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__news-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-description {
    font-size: 15px;
  }

  /* CTA Section Mobile */
  .page-news__cta-section {
    flex-direction: column;
    gap: 25px;
    padding: 40px 15px;
    margin: 30px auto;
  }
  .page-news__cta-content {
    text-align: center;
  }
  .page-news__cta-content .page-news__section-title {
    text-align: center;
  }
  .page-news__cta-content .page-news__intro-text {
    text-align: center;
  }
  .page-news__cta-image {
    width: 100%;
    max-width: 350px;
  }

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

  /* Mobile image and container overrides */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__news-card,
  .page-news__cta-section,
  .page-news__hero-image-container,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section .page-news__hero-content { padding-left: 0; padding-right: 0; }

  /* Placeholder for promo strip, hot games, brand intro, winner ticker mobile styles */
  /* These are not directly used on news.html but are required by the prompt to be present */
  .page-news__promo-strip-track { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; gap: 10px; }
  .page-news__promo-card { flex-direction: column; text-align: center; padding: 10px; }
  .page-news__promo-card img { margin-bottom: 5px; }
  .page-news__hot-games-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .page-news__hot-games-name, .page-news__hot-games-rtp, .page-news__hot-games-desc { display: none; }
  .page-news__brand-intro { flex-direction: column; text-align: center; }
  .page-news__winner-ticker { padding: 8px 0; font-size: 14px; }
}

/* Required homepage trial overlay/start button styles (even if not used on news page) */
.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; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6);}
.page-news__reward-modal[aria-hidden="true"] { display: none; }
.page-news__reward-modal-content { background: #fff; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; position: relative; }
.page-news__reward-modal-close { position: absolute; top: 10px; right: 10px; font-size: 24px; cursor: pointer; background: none; border: none; color: #333; }
.page-news__reward-modal h3 { font-size: 24px; color: #017439; margin-bottom: 15px; }
.page-news__reward-modal p { font-size: 16px; color: #555; margin-bottom: 25px; }