/* --- General Styling for News Page --- */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* #08162B from shared */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-news__dark-section {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
  margin-bottom: 30px;
}

.page-news__light-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 0;
  margin-bottom: 30px;
}

.page-news__cta-button {
  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;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

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

.page-news__cta-button--secondary {
  background: #1B3357; /* Divider */
  color: #AFC4E8; /* Text Secondary */
  border: 1px solid #244D84; /* Border */
}

.page-news__cta-button--secondary:hover {
  background: #244D84;
  color: #F3F8FF;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 30px;
}

.page-news__hero-content-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-news__hero-text-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 90%;
}

.page-news__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 80%;
  line-height: 1.6;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles-section {
  background-color: #08162B; /* Deep Navy */
}

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

.page-news__article-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 20px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-meta {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

.page-news__view-all-wrapper {
  text-align: center;
}

/* --- Categories Section --- */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #10233F; /* Card BG */
  margin-bottom: 30px;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.page-news__category-card {
  background-color: #08162B; /* Deep Navy */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__category-card:hover {
  background-color: #1B3357; /* Divider */
  transform: translateY(-3px);
}

.page-news__category-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 20px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
}

/* --- About News Section --- */
.page-news__about-news-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 0;
  margin-bottom: 30px;
}

.page-news__content-area p {
  font-size: 16px;
  line-height: 1.8;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
}

.page-news__content-area h3 {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-news__content-area ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-news__content-area li {
  font-size: 16px;
  line-height: 1.8;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-news__content-area strong {
  color: #F2C14E; /* Gold */
}

/* --- FAQ Section --- */
.page-news__faq-section {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #08162B; /* Deep Navy */
}
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: #1B3357; /* Divider */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  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: #1B3357; /* Divider */
  border-radius: 0 0 5px 5px;
}
.page-news__faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #AFC4E8; /* Text Secondary */
}

/* --- Responsive Design --- */

/* Homepage specific CSS for wide screens - MUST BE INCLUDED AS PER INSTRUCTIONS */
@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 PC layout rules for homepage modules */
  .page-news__promo-strip { margin-top: 16px; }
  .page-news__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .page-news__promo-card { flex-direction: row; text-align: left; }
  .page-news__promo-card-image { width: 80px; height: 80px; margin-right: 15px; margin-bottom: 0; }
  .page-news__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .page-news__hot-games-item-name, .page-news__hot-games-item-rtp, .page-news__hot-games-item-desc { display: block; }
  .page-news__hot-games-item-image { height: 120px; }
  .page-news__hot-games-item-content { text-align: center; }
}

/* Homepage specific CSS for tablets/small desktops - MUST BE INCLUDED 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;
  }
}

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

  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-news__hero-text-container {
    padding: 15px;
  }

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

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

  .page-news__cta-button,
  .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;
    font-size: 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;
    display: flex;
    flex-direction: column;
  }

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

  .page-news__article-image {
    height: 180px; /* Adjust for smaller screens */
  }

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

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-news__category-icon {
    font-size: 40px;
  }

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

  .page-news__content-area p,
  .page-news__content-area li {
    font-size: 15px;
  }

  .page-news__content-area h3 {
    font-size: 20px;
  }

  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;
    width: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }
  .page-news__faq-answer p {
    font-size: 14px;
  }

  /* General image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__hero-content-wrapper,
  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__about-news-section,
  .page-news__faq-section,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Homepage specific 768px rules - MUST BE INCLUDED AS PER INSTRUCTIONS */
  .page-news__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-news__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__hot-games-item-name, .page-news__hot-games-item-rtp, .page-news__hot-games-item-desc {
    display: none;
  }
  .page-news__hot-games-item-image {
    width: 100%;
    height: auto;
  }
  .page-news__hot-games-item-content {
    text-align: center;
  }
  .page-news__brand-intro { display: block; }
  .page-news__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; }
  body, main { padding-bottom: 50px; /* Adjust for ticker */ }
}

/* --- General utility classes --- */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* --- Homepage specific trial related CSS - MUST BE INCLUDED AS PER INSTRUCTIONS --- */
.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; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center;}
.page-news__reward-modal:not([hidden]) { display: flex; }
.page-news__reward-modal[hidden] { display: none; }
.page-news__reward-modal-content { background: #10233F; padding: 30px; border-radius: 10px; text-align: center; position: relative; max-width: 400px; width: 90%; box-sizing: border-box; color: #F3F8FF; }
.page-news__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; color: #F2C14E; cursor: pointer; }
.page-news__reward-modal h3 { font-size: 24px; color: #F2C14E; margin-bottom: 15px; }
.page-news__reward-modal p { font-size: 16px; color: #AFC4E8; margin-bottom: 20px; }
.page-news__reward-modal a { display: inline-block; padding: 10px 20px; background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #ffffff; border-radius: 5px; text-decoration: none; font-weight: bold; }