/* General styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333);
  background-color: var(--page-bg, #F5F7FA);
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

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

.page-news__hero-section {
  position: relative;
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #E53935;
  padding-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 20px;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 800px;
  color: #ffffff;
}

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

.page-news__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin: 40px 0 15px;
}

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

.page-news__articles-section {
  padding: 40px 0;
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-news__article-card {
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-news__article-title a {
  color: var(--text-main, #333333);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__article-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.page-news__read-more-btn:hover {
  opacity: 0.9;
}

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

.page-news__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-news__view-all-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__cta-section {
  background: #E53935;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 50px;
  border-radius: 10px;
}

.page-news__cta-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__faq-section {
  padding: 60px 0;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #E0E0E0);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #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 10px 10px;
  color: #555555;
  font-size: 16px;
}
.page-news__faq-answer p {
  margin-bottom: 10px;
}
.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- Fixed CSS blocks for homepage trial layout (as required by prompt) --- */
@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;
  }
  .page-news__promo-strip {
    margin-top: 16px;
  }
}
/* --- End of fixed CSS blocks for homepage trial layout --- */

/* General image and button responsiveness for mobile */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__cta-button,
.page-news__read-more-btn,
.page-news__view-all-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .page-news__hero-image {
    max-height: 300px;
    margin-bottom: 15px;
  }

  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-news__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-news__section-title {
    font-size: 26px;
    margin: 30px 0 10px;
  }

  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

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

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

  .page-news__article-summary {
    font-size: 15px;
  }

  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 15px;
  }

  .page-news__view-all-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-news__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-news__cta-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__faq-list {
    padding: 0 10px;
  }

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

  /* Mobile image specific */
  .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__articles-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 button specific */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"],
  .page-news__read-more-btn,
  .page-news__view-all-button {
    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;
  }
  
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Homepage specific media queries for 768px (as required) */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x:hidden;
  }
  .page-news__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Specific overlay and modal styles for game trial (as required by prompt, even if not used) */
.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;}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
}
.page-news--reward-open {
  overflow: hidden;
}

/* Ensure no filter is used on images */
.page-news img {
  filter: none !important;
}