/* -------------------------------------------------------------------------- */
/*                            Base Styles for Support Page                    */
/* -------------------------------------------------------------------------- */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-support__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Primary color */
  margin-bottom: 25px;
  text-align: center;
}

.page-support__section-text {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__inline-link {
  color: #E53935;
  text-decoration: underline;
  font-weight: 600;
}

.page-support__inline-link:hover {
  color: #FF5A4F;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-support__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 500px;
}

.page-support__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  max-width: 800px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-support__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                Intro Section                               */
/* -------------------------------------------------------------------------- */
.page-support__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-support__faq-list {
  max-width: 900px;
  margin: 0 auto 40px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* 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: #f5f5f5;
}

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

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-support__faq-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/*                             Contact Channels Section                       */
/* -------------------------------------------------------------------------- */
.page-support__contact-channels-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-support__contact-channels-section .page-support__section-title,
.page-support__contact-channels-section .page-support__section-text {
  color: #ffffff;
}

.page-support__contact-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-support__contact-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__contact-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-support__contact-item p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935; /* Primary color */
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #E53935;
  cursor: pointer;
}

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
}

.page-support__contact-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                           Guide Sections (Account, Finance, Games, Policies) */
/* -------------------------------------------------------------------------- */
.page-support__light-bg {
  background-color: #F5F7FA;
}

.page-support__dark-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-text,
.page-support__dark-section .page-support__guide-title {
  color: #ffffff;
}

.page-support__account-management-section,
.page-support__finance-section,
.page-support__games-rules-section,
.page-support__policies-safety-section {
  padding: 60px 0;
}

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

.page-support__guide-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-support__dark-section .page-support__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-support__guide-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #E53935; /* Primary color */
  margin-bottom: 15px;
}

.page-support__dark-section .page-support__guide-item h3 {
  color: #ffffff;
}

.page-support__guide-item p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 15px;
  text-align: left;
}

.page-support__dark-section .page-support__guide-item p {
  color: #f0f0f0;
}

.page-support__account-image,
.page-support__policy-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/*                                Final CTA Section                           */
/* -------------------------------------------------------------------------- */
.page-support__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #F5F7FA;
}

/* -------------------------------------------------------------------------- */
/*                                  Responsive Styles                         */
/* -------------------------------------------------------------------------- */

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

.page-support__section,
.page-support__card,
.page-support__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General button responsiveness */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-buttons,
.page-support__button-group,
.page-support__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media queries for homepage specific elements (as per requirements, though this is a support page) */
@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__hero-section {
    padding-top: 5px; /* Adjust for mobile */
  }

  .page-support__hero-content {
    padding: 15px;
  }

  .page-support__main-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-support__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-support__section-text {
    font-size: 15px;
  }

  /* FAQ styling for mobile */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 16px;
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }
  .page-support__faq-answer p {
    font-size: 15px;
  }

  /* Contact list for mobile */
  .page-support__contact-list {
    flex-direction: column;
    gap: 20px;
  }

  .page-support__contact-item {
    min-width: unset;
    width: 100%;
    padding: 25px;
  }

  .page-support__contact-title {
    font-size: 20px;
  }

  .page-support__contact-item p {
    font-size: 15px;
  }

  /* Guide grid for mobile */
  .page-support__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__guide-item h3 {
    font-size: 20px;
  }

  .page-support__guide-item p {
    font-size: 15px;
  }

  /* General mobile image and container overrides */
  .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;
  }

  /* General mobile button overrides */
  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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;
  }

  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__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;
  }
}

/* Ensure the modal close button styling for homepage template (if present) */
.page-support__reward-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10001;
}

.page-support__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support__reward-modal[hidden] {
  display: none !important;
}

.page-support__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__reward-modal-content h3 {
  color: #E53935;
  font-size: 28px;
  margin-bottom: 15px;
}

.page-support__reward-modal-content p {
  color: #333333;
  font-size: 16px;
  margin-bottom: 25px;
}

.page-support__reward-modal-content .page-support__cta-button {
  width: auto;
  padding: 12px 25px;
}

.page-support__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}