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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background: #0D0E12;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust based on desired hero image width */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

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

.page-news__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font-size */
    font-weight: 700;
    color: #FFF3E6;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-news__description {
    font-size: 18px;
    color: #FFF3E6;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    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; /* Card BG */
    color: #FFA53A; /* Auxiliary color */
    border: 1px solid #A84F0C; /* Border color */
}

.page-news__btn-secondary:hover {
    background: #2a2d34;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section Titles */
.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFF3E6;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__news-card {
    background: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__news-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for image consistency */
    overflow: hidden;
}

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

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

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

.page-news__news-title a {
    color: #FFA53A; /* Auxiliary color for link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-title a:hover {
    color: #FFB04D; /* Glow color on hover */
}

.page-news__news-meta {
    font-size: 14px;
    color: #A84F0C; /* Border color for meta info */
    margin-bottom: 15px;
}

.page-news__news-excerpt {
    font-size: 16px;
    color: #FFF3E6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #D96800; /* Deep Orange */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

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

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

/* About Us Section */
.page-news__about-us-section {
    background: #17191F; /* Card BG for dark section */
    color: #FFF3E6;
}

.page-news__about-us-section .page-news__section-title {
    color: #FFF3E6;
}

.page-news__about-us-section p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #FFF3E6;
}

.page-news__about-us-section .page-news__btn-primary {
    margin-top: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    background: #0D0E12; /* Background color */
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border color */
  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;
}
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: #2a2d34; /* Slightly lighter Card BG on hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main color */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  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; /* Background color */
  border-radius: 0 0 10px 10px;
}
details.page-news__faq-item .page-news__faq-answer p {
    color: #FFF3E6;
    font-size: 16px;
}

/* Responsive styles for images and containers (General) */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Explicitly ensure no filter */
}

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

/* --- REQUIRED HOMEPAGE-SPECIFIC MEDIA QUERIES (AS PER INSTRUCTION) --- */

/* A. @media (max-width: 1023px) - Homepage trial reset */
@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;
  }
}

/* B. @media (min-width: 1024px) - Homepage three-column layout */
@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) - Mobile specific styles */
@media (max-width: 768px) {
  .page-news__section-padding {
    padding: 20px 15px;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-news__news-image-wrapper {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news__news-title {
    font-size: 18px;
  }

  .page-news__news-excerpt {
    font-size: 15px;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 20px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-news__faq-item .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Universal image and container responsive styles for mobile */
  .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 promo-strip, hot-games, brand-intro, winner-ticker if they were present */
  .page-news__promo-strip-track { /* Example for 2 columns */
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
  }
  .page-news__hot-games-grid { 
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-news__winner-ticker { 
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
  }
  .page-news main { 
      padding-bottom: 60px; /* Example value if winner-ticker is fixed at bottom */
  }
}

/* REQUIRED for JS: is-hidden for overlay/modal */
.page-news__game-trial-overlay.is-hidden,
.page-news__reward-modal.is-hidden {
    display: none !important;
    pointer-events: none !important;
}

/* Specific styles for elements that are not directly used in news.html but are part of the required CSS snippet */
.page-news__game-trial-overlay {
    z-index: 5; /* As per instruction */
    pointer-events: auto;
}
.page-news__game-trial-start {
    z-index: 6; /* As per instruction */
    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;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}
.page-news__reward-modal[hidden] {
    display: none;
}
.page-news__reward-modal.page-news--reward-open {
    visibility: visible;
    opacity: 1;
}
.page-news__reward-modal-close {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #FFF3E6;
    background: transparent;
    border: none;
    line-height: 1;
}