/* Base styles for the page-news scope */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__section-description {
  font-size: 18px;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E6B03F 100%);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #F2C14E;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for aesthetic */
  border-radius: 10px;
}

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  position: relative;
  z-index: 2;
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-news__main-title {
  font-size: 44px;
  font-weight: 800;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-news__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
  line-height: 1.7;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-news__article-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-news__article-title a {
  color: #FFD36B; /* Glow color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #F2C14E;
}

.page-news__article-date {
  font-size: 13px;
  color: #F2C14E;
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.page-news__btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* News Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
}

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

.page-news__category-card {
  background: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #3A2A12;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: 600;
  padding: 15px;
  color: #FFD36B; /* Glow color */
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B; /* Glow color */
  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(242, 193, 78, 0.1);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Background */
  border-top: 1px solid #3A2A12; /* Border */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
  font-size: 15px;
  line-height: 1.7;
}

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

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

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

.page-news__view-all-button-container,
.page-news__hero-content .page-news__btn-primary {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Media Queries */
@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;
  }

  /* Adjustments for non-homepage content on tablets */
  .page-news__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-news__category-image {
    height: 150px;
  }

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

@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;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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__view-all-button-container,
  .page-news__hero-content .page-news__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 0; /* body handles spacing */
    margin-bottom: 20px;
  }
  .page-news__hero-content {
    margin-top: -30px;
    padding: 20px;
  }
  .page-news__main-title {
    font-size: 32px;
  }
  .page-news__description {
    font-size: 16px;
  }

  /* Latest Articles Section */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }

  /* News Categories Section */
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__category-image {
    height: 120px;
  }
  .page-news__category-title {
    font-size: 16px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 15px;
  }
  .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;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }

  /* Placeholder for homepage specific elements to prevent issues on news page */
  .page-news__promo-strip-track { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; } /* Example, not strictly needed for news page */
  .page-news__hot-games-grid { grid-template-columns: repeat(2, 1fr); } /* Example, not strictly needed for news page */
  
  /* Homepage elements (not applicable to news.html, but included for completeness as requested) */
  .page-news__promo-strip { margin-top: 20px; }
  .page-news__promo-strip-track { display: grid; gap: 15px; }
  .page-news__promo-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px; background: #111111; border-radius: 8px; border: 1px solid #3A2A12; }
  .page-news__promo-card-image { width: 100px; height: 100px; object-fit: contain; margin-bottom: 10px; }
  .page-news__promo-card-title { font-size: 16px; color: #FFD36B; margin-bottom: 5px; }
  .page-news__promo-card-desc { font-size: 13px; color: #FFF6D6; margin-bottom: 10px; }
  .page-news__hot-games-grid { display: grid; gap: 15px; }
  .page-news__hot-game-card { background: #111111; border-radius: 8px; border: 1px solid #3A2A12; padding: 15px; text-align: center; }
  .page-news__hot-game-card-image { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; margin-bottom: 10px; }
  .page-news__hot-game-name { font-size: 16px; color: #FFD36B; margin-bottom: 5px; }
  .page-news__hot-game-rtp { font-size: 13px; color: #F2C14E; margin-bottom: 10px; }
  .page-news__hot-game-desc { display: none; } /* Hide on mobile */
  .page-news__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; background: #F2C14E; color: #111111; padding: 10px 15px; z-index: 100; font-size: 14px; text-align: center; box-sizing: border-box; }
  body { padding-bottom: 40px; } /* Adjust for fixed ticker */
  
  .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.7);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
  }
  .page-news__reward-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
  }
  .page-news__reward-modal-content {
    background: #111111;
    border-radius: 10px;
    border: 1px solid #3A2A12;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  .page-news__reward-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #FFF6D6;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  .page-news__reward-modal-close:hover { color: #F2C14E; }
  .page-news__reward-modal-title { font-size: 24px; color: #FFD36B; margin-bottom: 15px; }
  .page-news__reward-modal-text { font-size: 16px; color: #FFF6D6; margin-bottom: 25px; }
  .page-news__reward-modal-button { display: inline-block; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #111111; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; border: none; cursor: pointer; }
  .page-news__reward-modal-button:hover { background: linear-gradient(180deg, #FFE082 0%, #E6B03F 100%); }
  .page-news--reward-open { overflow: hidden; }
}

.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-radius:10px;overflow:hidden;}.page-news__reward-modal{position:fixed;inset:0;z-index:10000;}