/* CSS chung cho trang Về Chúng Tôi */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
}

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

.page-about__section {
  padding: 40px 0;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-green) 0%, var(--gold) 50%, var(--deep-green) 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

.page-about__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 16px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-about__hero-content .page-about__description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Introduction Section */
.page-about__introduction-section p {
  max-width: 900px;
  margin: 15px auto;
  font-size: 17px;
  color: var(--text-secondary);
}

/* Mission & Vision Section */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__mission-vision-section .page-about__card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-secondary);
}

.page-about__mission-vision-section .page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
}

/* Values Section */
.page-about__values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-about__value-item {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__value-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__advantage-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.page-about__advantage-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
  text-align: center;
}

.page-about__advantage-item p {
  font-size: 16px;
  text-align: justify;
}

/* History Section */
.page-about__history-section p {
  max-width: 900px;
  margin: 15px auto;
  font-size: 17px;
  color: var(--text-secondary);
}

/* Team Section */
.page-about__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-about__team-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__team-text {
  flex: 2;
  min-width: 300px;
  color: var(--text-secondary);
}

.page-about__team-text p {
  margin-bottom: 15px;
  font-size: 17px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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: var(--deep-green);
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}

details.page-about__faq-item .page-about__faq-answer p {
  margin: 10px 0;
  font-size: 16px;
}

/* CTA Section */
.page-about__cta-section .page-about__container {
  background: var(--deep-green);
  padding: 50px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-about__cta-section .page-about__section-title {
  color: var(--gold);
  margin-bottom: 20px;
}

.page-about__cta-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

/* --- Global/Homepage CSS rules as per strict instructions (even if not directly used on this page) --- */
/* 🚨 Homepage trial layout CSS for <= 1023px (must be included as per prompt) */
@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;
  }
}

/* 🚨 Homepage trial layout CSS for >= 1024px (must be included as per prompt) */
@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;
  }
}

/* 🚨 Mobile responsiveness for general elements (max-width: 768px) */
@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__description,
  .page-about__introduction-section p,
  .page-about__history-section p,
  .page-about__team-text p,
  .page-about__cta-section p {
    font-size: 16px;
    margin: 10px auto;
  }
  .page-about__hero-content {
    padding: 20px 15px;
    margin-top: -50px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 90% !important;
  }
  .page-about__section {
    padding: 25px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }

  /* Mission & Vision */
  .page-about__mission-vision-grid {
    gap: 20px;
  }
  .page-about__mission-vision-section .page-about__card {
    padding: 20px;
  }
  .page-about__mission-vision-section .page-about__card-title {
    font-size: 20px;
  }

  /* Values */
  .page-about__values-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-about__value-item {
    padding: 15px;
  }
  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__value-title {
    font-size: 16px;
  }

  /* Why Choose Us */
  .page-about__advantages-grid {
    gap: 20px;
  }
  .page-about__advantage-item {
    padding: 20px;
  }
  .page-about__advantage-title {
    font-size: 18px;
  }

  /* Team Section */
  .page-about__team-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__team-image {
    min-width: unset;
    width: 100%;
  }
  .page-about__team-text {
    min-width: unset;
    width: 100%;
  }

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

  /* CTA Section */
  .page-about__cta-section .page-about__container {
    padding: 30px 20px;
  }

  /* 🚨 Mobile image adaptation (must be included) */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-content,
  .page-about__mission-vision-grid,
  .page-about__values-list,
  .page-about__advantages-grid,
  .page-about__team-content,
  .page-about__faq-list,
  .page-about__cta-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 🚨 Mobile button adaptation (must be included) */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about 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-about__cta-buttons,
  .page-about__button-group,
  .page-about__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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
  
  /* Homepage related rules (as per prompt, even if not directly on this page) */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x:hidden;
  }
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2,1fr);
  }
  /* Brand intro and winner ticker would be in shared or specific homepage CSS, not about.css */
}

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Reward Modal (globally required for JS) */
.page-about__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-about__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-about__reward-modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  box-sizing: border-box;
}

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

.page-about__reward-modal-close:hover {
  color: var(--gold);
}

.page-about__reward-modal h3 {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-about__reward-modal p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__reward-modal .page-about__cta-button {
  margin-top: 0;
  width: 80%;
  max-width: 300px;
}

.page-about__reward-modal.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* For body class toggling */
body.page-about--reward-open {
  overflow: hidden;
}