/* Base styles for page-support */
.page-support {
  background-color: var(--body-bg);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-support__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--card-bg);
  padding-bottom: 40px;
}

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

.page-support__hero-content {
  max-width: 900px;
  padding: 0 16px;
}

.page-support__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--glow-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-support__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-support__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #fff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-support__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #fff;
  border-color: #fff;
}

.page-support__btn-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__btn-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-support__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--glow-color);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 1rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-support__overview-section,
.page-support__contact-channels,
.page-support__faq-section,
.page-support__guides-resources,
.page-support__commitment-section,
.page-support__cta-section {
  padding: 60px 0;
}

.page-support__overview-image,
.page-support__channels-image,
.page-support__faq-image,
.page-support__resources-image,
.page-support__commitment-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  object-fit: cover;
  max-width: 900px;
}

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

.page-support__channel-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-support__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-support__channel-card p {
  margin-bottom: 25px;
}

.page-support__faq-list {
  margin-top: 40px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}

details.page-support__faq-item summary.page-support__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-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}

details.page-support__faq-item summary.page-support__faq-question:hover {
  background: rgba(255, 165, 58, 0.1);
}

.page-support__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23, 25, 31, 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

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

.page-support__resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-support__resource-card .page-support__card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-support__resource-card .page-support__card-title a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

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

.page-support__commitment-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-support__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-support__cta-section {
  text-align: center;
  background-color: var(--card-bg);
  padding: 80px 0;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Ensure all images are responsive by default */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

@media (max-width: 768px) {
  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-section {
    padding-bottom: 30px;
  }

  .page-support__main-title {
    font-size: 2rem;
  }

  .page-support__hero-description {
    font-size: 0.95rem;
  }

  .page-support__hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__section-title {
    font-size: 2rem;
  }

  .page-support__section-description {
    font-size: 0.9rem;
  }

  .page-support__overview-section,
  .page-support__contact-channels,
  .page-support__faq-section,
  .page-support__guides-resources,
  .page-support__commitment-section,
  .page-support__cta-section {
    padding: 40px 0;
  }

  .page-support__channels-grid,
  .page-support__resources-grid,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }

  .page-support__faq-qtext {
    font-size: 1rem;
  }

  .page-support__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }

  .page-support__card-title {
    font-size: 1.3rem;
  }

  .page-support__item-title {
    font-size: 1.2rem;
  }

  /* General image and container responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* If buttons are in a flex container, ensure they wrap */
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Homepage specific CSS for promo strip - included as per strict instructions */
@media (max-width:768px){.page-support__promo-strip-track{grid-template-columns:repeat(4,1fr);overflow-x:hidden;}.page-support__hot-games-grid{grid-template-columns:repeat(2,1fr);}}
.page-support__game-trial-overlay{z-index:5;pointer-events:auto;}.page-support__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-support__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-support__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-support__reward-modal{position:fixed;inset:0;z-index:10000;}

.page-support__dark-bg {
  background: var(--card-bg);
  color: var(--text-main);
}
.page-support__light-bg {
  background: var(--card-bg);
  color: var(--text-main);
}
.page-support__medium-bg {
  background: var(--card-bg);
  color: var(--text-main);
}

/* Ensure contrast for text on card/section backgrounds */
.page-support__content-area,
.page-support__text-block {
  color: var(--text-main);
  background: var(--body-bg);
}

.page-support p,
.page-support li {
  color: var(--text-main);
}

.page-support__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-support__dark-section {
  background: var(--primary-color);
  color: #ffffff;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-support__reward-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-support__reward-modal-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  color: var(--text-main);
}

.page-support__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

.page-support__reward-modal-title {
  color: var(--glow-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.page-support__reward-modal-description {
  margin-bottom: 25px;
}

.page-support__reward-modal-btn {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
}

/* CSS for .page-support--reward-open */
body.page-support--reward-open {
  overflow: hidden;
}