/* Homepage Game Trial CSS - Copied verbatim as per strict 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;
  }
}

/* Additional necessary CSS from prompt for homepage trial */
.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;
}
/* Reward modal close button for JS */
.page-news__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* Ensure the modal itself is hidden by default and only shown by JS */
.page-news__reward-modal[hidden] {
  display: none;
}
body.page-news--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}

/* --- News Page Specific CSS --- */
/* General styles for .page-news */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background: #F5F7FA; /* Custom background color */
  line-height: 1.6;
}

/* Ensure content area images are not too small */
.page-news img {
  min-width: 200px;
  min-height: 200px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 40px;
  background-color: #F5F7FA;
  text-align: center;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-news__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F, #E53935);
  border-radius: 2px;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-news__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-news__news-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  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.1);
}

.page-news__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}