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

.page-news__section-padding {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.page-news__section-title--light {
  color: #FFF3E6;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border */
}

.page-news__btn-secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFF3E6;
  padding-top: 10px; /* Small top padding */
}

.page-news__hero-content {
  position: relative;
  width: 100%;
}

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

.page-news__hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80%;
  background: rgba(13, 14, 18, 0.7); /* Background with transparency */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
}

.page-news__lead-paragraph {
  font-size: 18px;
  margin-bottom: 25px;
}

/* Latest News Section */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-news__news-card {
  background-color: #17191F; /* Card BG */
  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;
  border: 1px solid #A84F0C; /* Border */
}

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

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

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

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

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

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

.page-news__card-excerpt {
  font-size: 15px;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-news__card-date {
  font-size: 13px;
  color: rgba(255, 243, 230, 0.7);
  display: block;
  margin-bottom: 10px;
}

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

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

.page-news__read-more--light {
  color: #FFF3E6;
}

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

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

/* Featured Section */
.page-news__dark-section {
  background-color: #17191F; /* Card BG, used for dark sections */
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

.page-news__featured-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__featured-item {
  display: flex;
  background-color: #0D0E12;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

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

.page-news__featured-content {
  padding: 25px;
  width: 60%;
}

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

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

.page-news__featured-title a:hover {
  color: #FFA53A;
}

.page-news__featured-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-news__featured-date {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.7);
  display: block;
  margin-bottom: 10px;
}

/* Categories Section */
.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  background-color: #17191F;
  color: #FF8C1A;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #A84F0C;
  transition: all 0.3s ease;
}

.page-news__category-item:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  border-color: #FF8C1A;
}

/* About Section */
.page-news__content-wrapper p {
  margin-bottom: 15px;
  color: #FFF3E6;
  font-size: 16px;
}

.page-news__content-wrapper p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-news__cta-content {
  text-align: center;
  padding: 30px 20px;
}

.page-news__cta-description {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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: #FFF3E6;
}
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: #0D0E12;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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: #0D0E12;
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* --- General Image & Button Responsive Styles (for all pages) --- */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section, .page-news__card, .page-news__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Homepage Trial Specific CSS (MUST BE INCLUDED AS PER PROMPT, even if this is a news page) --- */
@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;
  }
}

/* --- Mobile specific styles for news page content --- */
@media (max-width: 768px) {
  .page-news__hero-text-overlay {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 20px;
    background: rgba(13, 14, 18, 0.9);
    border-radius: 0;
  }
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__lead-paragraph {
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-news__section-padding {
    padding: 30px 15px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__featured-item {
    flex-direction: column;
  }
  .page-news__featured-image {
    width: 100%;
    height: 220px;
  }
  .page-news__featured-content {
    width: 100%;
    padding: 20px;
  }
  .page-news__featured-title {
    font-size: 20px;
  }
  .page-news__category-list {
    gap: 10px;
  }
  .page-news__category-item {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-news__content-wrapper p {
    font-size: 15px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  /* FAQ 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 specific image and container rules */
  .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-section,
  .page-news__latest-section,
  .page-news__featured-section,
  .page-news__categories-section,
  .page-news__about-section,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile specific button rules */
  .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;
    flex-direction: column !important; /* Ensure vertical stack for multiple buttons */
  }
}

/* Homepage trial specific elements, not used on news page HTML but included in CSS as per prompt */
.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.7);display:flex;justify-content:center;align-items:center;}
.page-news__reward-modal-content{background:#17191F;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;background:none;border:none;font-size:24px;color:#FFF3E6;cursor:pointer;}
.page-news__reward-modal-title{color:#FFB04D;font-size:24px;margin-bottom:15px;}
.page-news__reward-modal-text{color:#FFF3E6;margin-bottom:20px;}
.page-news__reward-modal-btn{background:linear-gradient(180deg, #FFA53A 0%, #D96800 100%);color:#ffffff;padding:10px 20px;border-radius:5px;text-decoration:none;font-weight:bold;}
.page-news--reward-open{overflow:hidden;}