/* Base styles for the weekly promotions page */
.page-promotions-weekly {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light background */
  background: #f8f8f8; /* Light background for the page */
}

.page-promotions-weekly__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions-weekly__section {
  padding: 40px 0;
}

.page-promotions-weekly__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions-weekly__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions-weekly__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 40px;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  text-align: center;
}

.page-promotions-weekly__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
}

.page-promotions-weekly__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions-weekly__hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions-weekly__hero-image-container {
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* CTA Buttons */
.page-promotions-weekly__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions-weekly__btn-primary,
.page-promotions-weekly__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-weekly__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions-weekly__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-promotions-weekly__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions-weekly__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-promotions-weekly__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Promo Strip */
.page-promotions-weekly__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-promotions-weekly__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

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

.page-promotions-weekly__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  max-width: 100%;
}

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

.page-promotions-weekly__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-promotions-weekly__promo-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions-weekly__btn-text {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 2px solid #017439;
  transition: color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-weekly__btn-text:hover {
  color: #005a2e;
  border-color: #005a2e;
}

/* Hot Games Section */
.page-promotions-weekly__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-promotions-weekly__dark-section .page-promotions-weekly__section-title,
.page-promotions-weekly__dark-section .page-promotions-weekly__section-description {
  color: #ffffff;
}

.page-promotions-weekly__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.page-promotions-weekly__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.page-promotions-weekly__game-card:hover {
  transform: translateY(-5px);
}

.page-promotions-weekly__game-card img {
  width: 100%;
   /* Fixed height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-promotions-weekly__hot-games-name {
  font-size: 18px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 5px;
}

.page-promotions-weekly__hot-games-rtp {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

/* Detailed Promotions Section */
.page-promotions-weekly__detailed-promos .page-promotions-weekly__section-title,
.page-promotions-weekly__detailed-promos .page-promotions-weekly__section-description {
  color: #017439;
}

.page-promotions-weekly__promo-detail-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions-weekly__promo-detail-card--reverse {
  flex-direction: row-reverse;
}

.page-promotions-weekly__promo-detail-card img {
  flex-shrink: 0;
  width: 45%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
}

.page-promotions-weekly__promo-detail-content {
  flex-grow: 1;
}

.page-promotions-weekly__promo-detail-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions-weekly__promo-detail-content p {
  font-size: 17px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Terms and Conditions */
.page-promotions-weekly__light-bg {
  background: #f0f0f0;
}

.page-promotions-weekly__terms-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 25px;
  font-size: 16px;
  color: #555555;
  line-height: 1.8;
}

.page-promotions-weekly__terms-list li {
  margin-bottom: 10px;
}

.page-promotions-weekly__terms-text a {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

.page-promotions-weekly__terms-text a:hover {
  color: #005a2e;
}

/* FAQ Section */
details.page-promotions-weekly__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

details.page-promotions-weekly__faq-item summary.page-promotions-weekly__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;
  max-width: 100%;
  box-sizing: border-box;
}

details.page-promotions-weekly__faq-item summary.page-promotions-weekly__faq-question::-webkit-details-marker {
  display: none;
}

details.page-promotions-weekly__faq-item summary.page-promotions-weekly__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions-weekly__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-promotions-weekly__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-promotions-weekly__faq-item .page-promotions-weekly__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-promotions-weekly__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-promotions-weekly__hero-brand,
  .page-promotions-weekly__hero-jackpot {
    display: none !important;
  }
  .page-promotions-weekly__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-promotions-weekly__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions-weekly__game-trial-topbar,
  .page-promotions-weekly__game-trial-bottombar {
    display: none !important;
  }
  .page-promotions-weekly__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-promotions-weekly__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-promotions-weekly__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-promotions-weekly__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .page-promotions-weekly__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
  }
  .page-promotions-weekly__hot-games-grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns on tablet */
  }
  .page-promotions-weekly__promo-detail-card {
    flex-direction: column; /* Stack on tablet */
  }
  .page-promotions-weekly__promo-detail-card img {
    width: 100%;
    max-width: 100%;
  }
  .page-promotions-weekly__promo-detail-card--reverse {
    flex-direction: column; /* Stack on tablet */
  }
}

@media (min-width: 1024px) {
  .page-promotions-weekly__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-promotions-weekly__hero-brand,
  .page-promotions-weekly__hero-jackpot,
  .page-promotions-weekly__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-promotions-weekly__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-promotions-weekly__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-promotions-weekly__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-promotions-weekly__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-promotions-weekly__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }

  .page-promotions-weekly__promo-strip-track {
    grid-template-columns: repeat(4, 1fr); /* Four columns on desktop */
  }
  .page-promotions-weekly__promo-card {
    flex-direction: row; /* Horizontal layout for cards */
    align-items: flex-start;
    text-align: left;
  }
  .page-promotions-weekly__promo-card img {
    
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
  }
  .page-promotions-weekly__promo-content {
    padding: 15px;
  }
  .page-promotions-weekly__promo-title {
    font-size: 18px;
  }
  .page-promotions-weekly__promo-text {
    font-size: 14px;
  }
  .page-promotions-weekly__hot-games-grid {
    grid-template-columns: repeat(6, 1fr); /* Six columns on desktop */
  }
  .page-promotions-weekly__game-card {
    padding: 20px 10px;
  }
  .page-promotions-weekly__game-card img {
    
  }
  .page-promotions-weekly__hero-section {
    padding-bottom: 60px;
  }
  .page-promotions-weekly__hero-image-container {
    display: none; /* Hide hero image on desktop if game trial is present in template */
  }
}

@media (max-width: 768px) {
  .page-promotions-weekly__container {
    padding: 0 15px;
  }
  .page-promotions-weekly__section {
    padding: 30px 0;
  }
  .page-promotions-weekly__section-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .page-promotions-weekly__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions-weekly__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-promotions-weekly__hero-description {
    font-size: 1rem;
  }
  .page-promotions-weekly__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-promotions-weekly__btn-primary,
  .page-promotions-weekly__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* Promo Strip - Mobile */
  .page-promotions-weekly__promo-strip-track {
    grid-template-columns: 1fr; /* Single column on mobile */
    overflow-x: hidden;
  }
  .page-promotions-weekly__promo-card {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-weekly__promo-card img {
    width: 100% !important;
    
    max-width: 100% !important;
  }
  .page-promotions-weekly__promo-title {
    font-size: 20px;
  }
  .page-promotions-weekly__promo-text {
    font-size: 15px;
  }

  /* Hot Games - Mobile */
  .page-promotions-weekly__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
    overflow-x: hidden;
  }
  .page-promotions-weekly__game-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-weekly__game-card img {
    max-width: 100% !important;
    width: 100% !important;
    
  }
  .page-promotions-weekly__hot-games-name {
    font-size: 16px;
  }

  /* Detailed Promos - Mobile */
  .page-promotions-weekly__promo-detail-card {
    flex-direction: column; /* Always stack on mobile */
    padding: 20px;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions-weekly__promo-detail-card img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 200px !important;
    height: auto !important;
  }
  .page-promotions-weekly__promo-detail-content h3 {
    font-size: 22px;
  }
  .page-promotions-weekly__promo-detail-content p {
    font-size: 15px;
  }

  /* Terms and Conditions - Mobile */
  .page-promotions-weekly__terms-list {
    padding-left: 15px;
    font-size: 15px;
  }

  /* FAQ - Mobile */
  details.page-promotions-weekly__faq-item summary.page-promotions-weekly__faq-question {
    padding: 15px;
  }
  .page-promotions-weekly__faq-qtext {
    font-size: 15px;
  }
  .page-promotions-weekly__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-promotions-weekly__faq-item .page-promotions-weekly__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* General image and container rules for mobile */
  .page-promotions-weekly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-promotions-weekly__section,
  .page-promotions-weekly__card,
  .page-promotions-weekly__container,
  .page-promotions-weekly__cta-buttons,
  .page-promotions-weekly__button-group,
  .page-promotions-weekly__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions-weekly__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions-weekly__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Game Trial Overlay & Modal styles (as per homepage requirements) */
.page-promotions-weekly__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: auto;
}

.page-promotions-weekly__game-trial-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  display: none !important; /* Force hide */
  pointer-events: none !important;
}

.page-promotions-weekly__game-trial-start {
  background: #017439;
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-promotions-weekly__game-trial-start:hover {
  background: #005a2e;
}

.page-promotions-weekly__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.page-promotions-weekly__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Fixed aspect ratio */
  overflow: hidden;
}

.page-promotions-weekly__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.page-promotions-weekly__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-promotions-weekly__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-promotions-weekly__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #333;
}

.page-promotions-weekly__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.page-promotions-weekly__reward-modal-close:hover {
  color: #333;
}

.page-promotions-weekly__reward-modal-content h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
}

.page-promotions-weekly__reward-modal-content p {
  font-size: 16px;
  margin-bottom: 25px;
}

.page-promotions-weekly__reward-modal-content a {
  background: #C30808;
  color: #FFFF00;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-promotions-weekly__reward-modal-content a:hover {
  background: #a30606;
}