/* ------------------------------------ */
/* --- General Page Styling (news.css) --- */
/* ------------------------------------ */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-news__hero-content {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(1, 116, 57, 0.8), rgba(0, 0, 0, 0.7));
  color: #ffffff;
}

.page-news__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFF00; /* Register/Login font color for prominence */
}

.page-news__subtitle {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #017439;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
  width: 100%;
  height: 220px;
  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.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
  line-height: 1.4;
}

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

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

.page-news__card-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-news__card-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__card-link:hover {
  background-color: #00562e;
}

.page-news__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 25px;
  text-align: justify;
}

.page-news__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-news__feature-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-news__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-news__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-news__update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__update-list li {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.page-news__list-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-news__list-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-news__cta-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #017439, #00562e);
  color: #ffffff;
  padding: 50px;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__cta-content {
  flex: 1;
  padding-right: 30px;
}

.page-news__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-news__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-news__cta-image {
  width: 40%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin-right: 15px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

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

.page-news__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ------------------------------------ */
/* --- FAQ Section Styling --- */
/* ------------------------------------ */
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;
}

/* ------------------------------------ */
/* --- Responsive Design (General) --- */
/* ------------------------------------ */

/* Mobile general image and container rules */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section,
.page-news__container,
.page-news__news-card,
.page-news__cta-register,
.page-news__faq-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------------ */
/* --- Homepage Trial Layout CSS (VERBATIM as per instructions) --- */
/* ------------------------------------ */
@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 (max-width: 768px) --- */
/* ------------------------------------ */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 0;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-news__subtitle {
    font-size: 1em;
  }
  .page-news__section {
    padding: 0 15px;
    margin-bottom: 30px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__grid-container {
    grid-template-columns: 1fr;
  }
  .page-news__news-card {
    margin-bottom: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-link {
    width: 100%;
    text-align: center;
  }
  .page-news__paragraph {
    font-size: 1em;
  }
  .page-news__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-news__feature-item {
    margin-bottom: 20px;
  }
  .page-news__cta-register {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }
  .page-news__cta-content {
    padding-right: 0;
    margin-bottom: 20px;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-image {
    width: 80%;
    max-width: 300px;
  }
  .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;
    margin-right: 0; /* Remove extra margin for stacking */
  }
  .page-news__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 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; }

  /* General mobile image and container overrides */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-register,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ------------------------------------ */
/* --- Fixed Header/Body Spacing (from instructions) --- */
/* ------------------------------------ */
/* If shared.css handles body padding-top, this page's first section gets minimal top padding */
/* .page-news__hero-section { padding-top: 10px; } */

/* ------------------------------------ */
/* --- Color Contrast & Brand Colors --- */
/* ------------------------------------ */
/* Body background is default (white/light), so text should be dark */
.page-news {
  color: #333333; /* Default dark text */
}

.page-news__dark-section {
  background: #017439;
  color: #ffffff; /* Forced white text on brand primary color */
}

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

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #ffffff;
}

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

.page-news__hero-content .page-news__cta-button {
  margin-right: 0; /* Only one button in hero, center it */
}