/* -------------------------------------------------------------------------- */
/*                            Global Page Styling                             */
/* -------------------------------------------------------------------------- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background: #ffffff; /* Default body background */
}

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

.page-about__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-about__card {
  background: #ffffff; /* White background for cards */
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 20px;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__hero-content {
  padding: 40px 20px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background: #a00606;
  border-color: #a00606;
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                             Introduction Section                           */
/* -------------------------------------------------------------------------- */
.page-about__introduction-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-about__introduction-section p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                           Mission & Vision Section                         */
/* -------------------------------------------------------------------------- */
.page-about__mission-vision-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-about__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
  background-color: #ffffff;
}

.page-about__dark-section .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about__dark-section .page-about__card-title {
  color: #ffffff;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* -------------------------------------------------------------------------- */
/*                             Core Values Section                            */
/* -------------------------------------------------------------------------- */
.page-about__values-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-about__value-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.page-about__value-heading {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__value-item p {
  font-size: 16px;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                           Why Choose Us Section                            */
/* -------------------------------------------------------------------------- */
.page-about__why-choose-us-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__feature-card .page-about__card-title {
  color: #ffffff;
}

.page-about__feature-card p {
  font-size: 16px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/*                              Team Section                                  */
/* -------------------------------------------------------------------------- */
.page-about__team-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-about__team-section p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                                 */
/* -------------------------------------------------------------------------- */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__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-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-about__faq-answer p {
  margin-top: 0;
  font-size: 16px;
  color: #555555;
}

/* -------------------------------------------------------------------------- */
/*                                 CTA Section                                */
/* -------------------------------------------------------------------------- */
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
}


/* -------------------------------------------------------------------------- */
/*                                 Responsive CSS                             */
/* -------------------------------------------------------------------------- */
/* Mandatory CSS for Home Page (included as per instructions) */
@media (max-width: 1023px) {
  .page-about__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-about__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__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-about__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__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-about__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-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-about__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-about__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other PC specific home page modules */
  .page-about__promo-strip {
    margin-top: 16px;
  }
  .page-about__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-about__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-about__hot-games-item-name,
  .page-about__hot-games-item-rtp,
  .page-about__hot-games-item-desc {
    display: block;
  }
  .page-about__hot-games-item-image-wrapper {
    text-align: center;
  }
  .page-about__hot-games-item-image {
    margin-bottom: 10px;
  }
}
/* End of Mandatory Home Page CSS */

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: 32px;
  }

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

  /* Hero Section */
  .page-about__hero-content {
    padding: 30px 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Images and their containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__hero-image-wrapper,
  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__grid-two-columns,
  .page-about__values-list,
  .page-about__grid-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__value-item,
  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__value-heading {
    font-size: 18px;
  }

  .page-about__faq-qtext {
    font-size: 15px;
  }
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-answer { padding: 0 15px 15px; }

  /* Placeholder for other mobile specific home page modules */
  /* 2. Ưu đãi __promo-strip: grid repeat(4,1fr) */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjust to 2 columns for smaller screens */
    overflow-x: hidden;
    gap: 15px;
  }
  .page-about__promo-strip-item {
    flex-direction: column !important;
    text-align: center;
  }
  .page-about__promo-strip-item-image {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* 3. Hot Games __hot-games: 2 cột */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .page-about__hot-games-item-name,
  .page-about__hot-games-item-rtp,
  .page-about__hot-games-item-desc {
    display: none !important;
  }
  .page-about__hot-games-item-image-wrapper {
    text-align: center;
  }
  .page-about__hot-games-item-title {
    font-size: 14px;
  }

  /* 4. Brand Intro __brand-intro (display for <=768px) */
  .page-about__brand-intro {
    display: block;
    padding: 30px 15px;
    text-align: center;
  }
  .page-about__brand-intro-content {
    margin-top: 20px;
  }

  /* 5. Winner Ticker __winner-ticker */
  .page-about__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
}

/* Default styles for game trial overlay (mandatory inclusion) */
.page-about__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-about__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-about__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-about__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-about__reward-modal {
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.page-about__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-about__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-about__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-about__reward-modal-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}
.page-about__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}
.page-about__reward-modal .page-about__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}
.page-about__reward-modal .page-about__btn-primary:hover {
  background: #a00606;
  border-color: #a00606;
}