/* CSS cho trang Giới thiệu nền tảng r888 bet */

/* Biến màu */
:root {
  --r888bet-primary-color: #113B7A;
  --r888bet-secondary-color: #1D5FD1;
  --r888bet-text-main: #F3F8FF;
  --r888bet-text-secondary: #AFC4E8;
  --r888bet-card-bg: #10233F;
  --r888bet-border-color: #244D84;
  --r888bet-glow-color: #4FA8FF;
  --r888bet-gold-color: #F2C14E;
  --r888bet-divider-color: #1B3357;
  --r888bet-deep-navy: #08162B;
  --r888bet-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

/* Global styles for this page content */
.page-index-about-r888bet {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--r888bet-text-main);
  background-color: var(--deep-navy); /* Body background from shared.css is var(--deep-navy) */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-index-about-r888bet__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--r888bet-gold-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.2;
}

.page-index-about-r888bet__main-title {
  font-weight: 700;
  color: var(--r888bet-gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-about-r888bet__subtitle {
  font-size: 18px;
  color: var(--r888bet-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-about-r888bet__text-block {
  font-size: 16px;
  color: var(--r888bet-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-index-about-r888bet__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index-about-r888bet__btn-primary,
.page-index-about-r888bet__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index-about-r888bet__btn-primary {
  background: var(--r888bet-button-gradient);
  color: #ffffff;
  border: none;
}

.page-index-about-r888bet__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-about-r888bet__btn-secondary {
  background: transparent;
  color: var(--r888bet-gold-color);
  border: 2px solid var(--r888bet-gold-color);
}

.page-index-about-r888bet__btn-secondary:hover {
  background: var(--r888bet-gold-color);
  color: var(--r888bet-primary-color);
}

/* Hero Section */
.page-index-about-r888bet__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-index-about-r888bet__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-index-about-r888bet__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-index-about-r888bet__hero-content {
  max-width: 900px;
  padding: 0 16px;
}

/* About Section (Dark Background) */
.page-index-about-r888bet__dark-section {
  background-color: var(--r888bet-card-bg);
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-index-about-r888bet__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.page-index-about-r888bet__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index-about-r888bet__feature-card {
  background: var(--r888bet-card-bg);
  border: 1px solid var(--r888bet-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--r888bet-text-secondary);
}

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

.page-index-about-r888bet__feature-card .page-index-about-r888bet__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--r888bet-gold-color);
  margin-bottom: 15px;
}

.page-index-about-r888bet__feature-card .page-index-about-r888bet__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-about-r888bet__feature-card .page-index-about-r888bet__card-title a:hover {
  text-decoration: underline;
}

.page-index-about-r888bet__feature-card .page-index-about-r888bet__card-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--r888bet-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-about-r888bet__feature-card .page-index-about-r888bet__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Security & Support Section */
.page-index-about-r888bet__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

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

.page-index-about-r888bet__info-card .page-index-about-r888bet__card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--r888bet-gold-color);
  margin-bottom: 15px;
}

.page-index-about-r888bet__info-card .page-index-about-r888bet__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--r888bet-text-secondary);
  margin-bottom: 20px;
}

.page-index-about-r888bet__info-card .page-index-about-r888bet__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Promotions Section */
.page-index-about-r888bet__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index-about-r888bet__promo-card {
  background: var(--r888bet-card-bg);
  border: 1px solid var(--r888bet-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--r888bet-text-secondary);
}

.page-index-about-r888bet__promo-card .page-index-about-r888bet__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--r888bet-gold-color);
  margin-bottom: 15px;
}

.page-index-about-r888bet__promo-card .page-index-about-r888bet__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-about-r888bet__promo-card .page-index-about-r888bet__card-title a:hover {
  text-decoration: underline;
}

.page-index-about-r888bet__promo-card .page-index-about-r888bet__card-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--r888bet-text-secondary);
}

/* FAQ Section */
.page-index-about-r888bet__faq-list {
  margin-top: 30px;
}

details.page-index-about-r888bet__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--r888bet-border-color);
  overflow: hidden;
  background: var(--r888bet-card-bg);
  color: var(--r888bet-text-main);
}
details.page-index-about-r888bet__faq-item summary.page-index-about-r888bet__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-index-about-r888bet__faq-item summary.page-index-about-r888bet__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index-about-r888bet__faq-item summary.page-index-about-r888bet__faq-question:hover {
  background: rgba(29, 95, 209, 0.1);
}
.page-index-about-r888bet__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--r888bet-text-main);
}
.page-index-about-r888bet__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--r888bet-gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index-about-r888bet__faq-item .page-index-about-r888bet__faq-answer {
  padding: 0 20px 20px;
  background: rgba(16, 35, 63, 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--r888bet-text-secondary);
  font-size: 16px;
}

/* Contact CTA Section */
.page-index-about-r888bet__contact-cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: var(--r888bet-primary-color);
  margin-bottom: 60px;
}

/* Copyright */
.page-index-about-r888bet__copyright-info {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: var(--r888bet-text-secondary);
  background-color: var(--r888bet-deep-navy);
}


/* --- Homepage Specific CSS (Mandatory Inclusion for all pages) --- */
/* This section is required even for inner pages per strict instructions */
@media (max-width: 1023px) {
  .page-index-about-r888bet__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-index-about-r888bet__hero-brand,
  .page-index-about-r888bet__hero-jackpot {
    display: none !important;
  }
  .page-index-about-r888bet__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-index-about-r888bet__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-index-about-r888bet__game-trial-topbar,
  .page-index-about-r888bet__game-trial-bottombar {
    display: none !important;
  }
  .page-index-about-r888bet__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-index-about-r888bet__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-index-about-r888bet__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-index-about-r888bet__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-index-about-r888bet__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-index-about-r888bet__hero-brand,
  .page-index-about-r888bet__hero-jackpot,
  .page-index-about-r888bet__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-index-about-r888bet__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-index-about-r888bet__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-index-about-r888bet__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-index-about-r888bet__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-index-about-r888bet__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other homepage modules if they were present */
  .page-index-about-r888bet__promo-strip {
    display: block; /* Example, assume it's flex on mobile */
  }
  .page-index-about-r888bet__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-index-about-r888bet__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-index-about-r888bet {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index-about-r888bet__container {
    padding: 0 15px;
  }

  .page-index-about-r888bet__section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-top: 25px;
  }

  .page-index-about-r888bet__main-title {
    font-size: 32px;
  }

  .page-index-about-r888bet__subtitle {
    font-size: 16px;
  }

  .page-index-about-r888bet__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

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

  .page-index-about-r888bet__hero-section {
    margin-bottom: 40px;
  }

  .page-index-about-r888bet__hero-image-container {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-index-about-r888bet__dark-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-index-about-r888bet__content-image {
    margin: 30px auto;
  }

  .page-index-about-r888bet__feature-grid,
  .page-index-about-r888bet__info-grid,
  .page-index-about-r888bet__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-about-r888bet__feature-card,
  .page-index-about-r888bet__info-card,
  .page-index-about-r888bet__promo-card {
    padding: 20px;
  }

  .page-index-about-r888bet__feature-card .page-index-about-r888bet__card-title,
  .page-index-about-r888bet__info-card .page-index-about-r888bet__card-title,
  .page-index-about-r888bet__promo-card .page-index-about-r888bet__card-title {
    font-size: 20px;
  }

  .page-index-about-r888bet__faq-qtext {
    font-size: 16px;
  }

  details.page-index-about-r888bet__faq-item summary.page-index-about-r888bet__faq-question {
    padding: 15px;
  }

  details.page-index-about-r888bet__faq-item .page-index-about-r888bet__faq-answer {
    padding: 0 15px 15px;
  }

  .page-index-about-r888bet__contact-cta-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  /* General image responsiveness */
  .page-index-about-r888bet img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-index-about-r888bet__section,
  .page-index-about-r888bet__card,
  .page-index-about-r888bet__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific media queries (mandatory for all pages) */
  .page-index-about-r888bet__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Example: 2 columns on mobile */
    overflow-x: hidden;
  }
  .page-index-about-r888bet__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Ensure no elements cause horizontal scroll */
  .page-index-about-r888bet__promo-strip,
  .page-index-about-r888bet__hot-games {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  .page-index-about-r888bet__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust for ticker height */
  }
  .page-index-about-r888bet__hero-brand,
  .page-index-about-r888bet__hero-jackpot {
    display: none; /* Explicitly hide for mobile if not already hidden by 1023px */
  }
}

/* Overlay for game trial, if applicable (mandatory inclusion) */
.page-index-about-r888bet__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-index-about-r888bet__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-index-about-r888bet__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

/* Reward Modal CSS (mandatory inclusion) */
.page-index-about-r888bet__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-index-about-r888bet__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-index-about-r888bet__reward-modal-content {
  background: var(--r888bet-card-bg);
  color: var(--r888bet-text-main);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.page-index-about-r888bet__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--r888bet-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-index-about-r888bet__reward-modal-close:hover {
  color: var(--r888bet-gold-color);
}

.page-index-about-r888bet__reward-modal h3 {
  font-size: 28px;
  color: var(--r888bet-gold-color);
  margin-bottom: 15px;
}

.page-index-about-r888bet__reward-modal p {
  font-size: 16px;
  color: var(--r888bet-text-secondary);
  margin-bottom: 25px;
}

.page-index-about-r888bet__reward-modal .page-index-about-r888bet__btn-primary {
  width: auto;
  padding: 10px 25px;
  font-size: 16px;
}

/* CSS to handle body overflow when modal is open */
body.page-index-about-r888bet--reward-open {
  overflow: hidden;
}