/* Homepage trial layout CSS - MUST BE INCLUDED AS PER INSTRUCTIONS */
@media (max-width: 1023px) {
  .page-terms-conditions__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-terms-conditions__hero-brand,
  .page-terms-conditions__hero-jackpot {
    display: none !important;
  }
  .page-terms-conditions__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-terms-conditions__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-terms-conditions__game-trial-topbar,
  .page-terms-conditions__game-trial-bottombar {
    display: none !important;
  }
  .page-terms-conditions__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-terms-conditions__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-terms-conditions__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-terms-conditions__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

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

/* General page layout */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa;
  padding-bottom: 40px;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 10px;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-terms-conditions__intro-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 28px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 22px;
  font-weight: 600;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-terms-conditions__list li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #333333;
}

.page-terms-conditions__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  margin-right: 15px;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-primary:hover {
  background: #1e8bc3;
  border-color: #1e8bc3;
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e8bc3;
  border-color: #1e8bc3;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

.page-terms-conditions__cta-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  color: #333333;
  border-bottom-color: #cccccc;
}

/* FAQ Styles for <details> */
details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__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;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  color: #555555;
}

/* Mobile responsiveness for 768px */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-section,
  .page-terms-conditions__cta-section,
  .page-terms-conditions__faq-section {
    padding: 25px 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 28px;
  }

  .page-terms-conditions__intro-text {
    font-size: 16px;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 15px;
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__container,
  .page-terms-conditions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-terms-conditions__image {
    margin-left: 0;
    margin-right: 0;
  }

  /* Buttons */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ Mobile */
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 15px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
}

/* Additional specific media queries for homepage-related elements, as per instruction to include all */
@media (max-width: 768px) {
  .page-terms-conditions__promo-strip {
    padding: 20px 0;
  }
  .page-terms-conditions__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-terms-conditions__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-terms-conditions__promo-card img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-terms-conditions__promo-card-title {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .page-terms-conditions__promo-card-desc {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .page-terms-conditions__promo-card-btn {
    width: 100% !important;
    padding: 8px 10px;
    font-size: 14px;
  }
  .page-terms-conditions__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-terms-conditions__hot-game-card {
    text-align: center;
  }
  .page-terms-conditions__hot-game-card img {
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__hot-games-name,
  .page-terms-conditions__hot-games-rtp,
  .page-terms-conditions__hot-games-desc {
    display: none;
  }
  .page-terms-conditions__brand-intro {
    display: block;
    padding: 20px 15px;
    text-align: center;
  }
  .page-terms-conditions__brand-intro-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .page-terms-conditions__brand-intro-text {
    font-size: 15px;
  }
  .page-terms-conditions__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
    font-size: 14px;
  }
  body {
    padding-bottom: 40px;
  }
  .page-content.page-terms-conditions {
    padding-bottom: 40px;
  }
}

/* Hidden utility class for JS */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Reward Modal related styles for homepage, must be included */
.page-terms-conditions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-terms-conditions__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-terms-conditions__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}
.page-terms-conditions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-terms-conditions__reward-modal-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}
.page-terms-conditions__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}
.page-terms-conditions__reward-modal-btn {
  background: #EA7C07;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.page-terms-conditions--reward-open {
  overflow: hidden;
}