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

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

.page-news__section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFA53A; /* Auxiliary color */
    line-height: 1.2;
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF3E6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 2;
    padding: 20px 16px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over image slightly */
    background: rgba(13, 14, 18, 0.7); /* Semi-transparent background for text readability */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 800;
    color: #FFA53A;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.page-news__description {
    font-size: 1.15rem;
    color: #FFF3E6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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,
.page-news__read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

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

.page-news__btn-secondary:hover {
    background: #2a2d34;
    color: #FFB04D;
    border-color: #FFB04D;
}

.page-news__read-more-btn {
    background: #A84F0C;
    color: #FFF3E6;
    padding: 8px 15px;
    font-size: 14px;
    border: none;
}

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

/* Articles Section */
.page-news__articles-section {
    padding: 60px 0;
    background: #0D0E12; /* Background */
}

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

.page-news__article-card {
    background: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 165, 58, 0.2);
}

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

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

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

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

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

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

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

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

/* About z888 Section */
.page-news__about-z888 {
    padding: 60px 0;
    background: #17191F; /* Card BG */
}

.page-news__about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    color: #FFF3E6;
}

.page-news__about-content p {
    margin: 0;
}

.page-news__about-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  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;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #D96800; /* Deep Orange */
  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 */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    padding: 60px 0;
    background: linear-gradient(180deg, #D96800 0%, #A84F0C 100%); /* Using Deep Orange and Border color for gradient */
    text-align: center;
}

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

.page-news__cta-bottom .page-news__section-description {
    color: #FFF3E6;
}

/* Fixed Game Trial CSS (Required to be included even if not on this 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;
  }
}
/* End Fixed Game Trial CSS */

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

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__read-more-btn,
  .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: 12px 15px; /* Adjust padding for mobile */
  }

  .page-news__articles-section,
  .page-news__about-z888,
  .page-news__faq-section,
  .page-news__cta-bottom {
    padding: 40px 0;
  }

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

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

  .page-news__article-meta {
    font-size: 13px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
  }

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

  .page-news__about-image {
    margin: 15px auto;
  }

  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; }

  /* Ensure all images are responsive and do not overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .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;
  }

  /* Specific rules for promo/hot-games/brand-intro/winner-ticker if they were present */
  .page-news__promo-strip-track { /* Placeholder for promo strip */
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden;
  }
  .page-news__hot-games-grid { /* Placeholder for hot games */
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for hot games */
    gap: 15px;
    overflow-x: hidden;
  }
  .page-news__brand-intro { /* Placeholder for brand intro */
    padding: 20px 15px;
  }
  .page-news__winner-ticker { /* Placeholder for winner ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    padding: 8px 15px;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding if winner ticker is fixed at bottom */
  }
}

/* Custom styles for z-index and display for game trial overlay/modal if they were used on this page */
.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; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); visibility: hidden; opacity: 0; transition: visibility 0s, opacity 0.3s;}
.page-news__reward-modal:not([hidden]){visibility: visible; opacity: 1;} /* For JS to toggle hidden attribute */
.page-news__reward-modal-content{background: #17191F; padding: 30px; border-radius: 10px; text-align: center; position: relative; max-width: 400px; width: 90%; color: #FFF3E6;}
.page-news__reward-modal-close{position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; color: #FFA53A; cursor: pointer;}
.page-news__reward-modal h3{color: #FFA53A; margin-bottom: 15px;}
.page-news__reward-modal p{margin-bottom: 20px;}
.page-news__reward-modal .page-news__btn-primary{width: auto; padding: 10px 20px;}