/* style/about.css */

/* Base Styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is #000 from shared.css */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

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

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

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

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

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

/* Content Grid Layout */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Core Values Section */
.page-about__core-values-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Game System Section */
.page-about__game-system-section {
  padding: 60px 0;
}

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-about__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 1.4em;
  margin: 15px 0 10px;
  color: #017439; /* Brand color for game titles */
}

.page-about__game-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #005f2c;
}

.page-about__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-about__cta-center {
  text-align: center;
  margin-top: 20px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-title {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjust to match parent font size */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439; /* Brand color for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  content: "−"; /* Visually change to minus sign */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-about__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* General Sections */
.page-about__vision-mission-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__team-section,
.page-about__responsible-gambling-section {
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__values-grid,
  .page-about__game-grid {
    grid-template-columns: 1fr;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__game-card,
  .page-about__value-card,
  .page-about__faq-item,
  .page-about__hero-section,
  .page-about__hero-content,
  .page-about__hero-cta-group,
  .page-about__content-grid,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__game-grid,
  .page-about__values-grid,
  .page-about__faq-list,
  .page-about__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__game-card img {
    height: auto; /* Allow auto height for mobile to prevent stretching */
  }
}

/* Ensure content area images are not smaller than 200px */
.page-about__content-area img,
.page-about__text-block img,
.page-about__image-block img,
.page-about__game-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Fixes (if needed) */
.page-about__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-about p,
.page-about li,
.page-about__value-description,
.page-about__game-description,
.page-about__faq-answer p {
  color: #f0f0f0; /* Ensure light text on dark background */
}

/* Specific button colors for Login/Register type */
.page-about__cta-final-section .page-about__btn-primary { /* Register */
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-about__cta-final-section .page-about__btn-secondary { /* Login */
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-about__cta-final-section .page-about__btn-secondary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* The third button in the final CTA is 'Tải Ứng Dụng', which should also use the specific colors */
.page-about__cta-final-section .page-about__btn-tertiary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-about__cta-final-section .page-about__btn-tertiary:hover {
  background-color: #a00606;
  border-color: #a00606;
}