/* style/about.css */

/* Biến màu */
:root {
  --primary-color: #0A1931;
  --secondary-color: #E0B75F;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000; /* Body background from shared.css */
  --bg-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if main is not full width */
}

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

.page-about__section-title {
  font-size: 2.8rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-subtitle {
  font-size: 1.2rem;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color context classes */
.page-about__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__section-subtitle,
.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg .page-about__faq-question span {
  color: var(--text-dark);
}

.page-about__light-bg .page-about__game-title a {
  color: var(--primary-color);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  position: relative;
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

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

.page-about__hero-title {
  font-size: 3.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
  line-height: 1.1;
}

.page-about__hero-description {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-about__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.page-about__light-bg .page-about__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-about__light-bg .page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
}

.page-about__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__intro-text-block p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-about__intro-image-wrapper {
  text-align: center;
}

.page-about__intro-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
}

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

.page-about__value-card {
  background-color: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--secondary-color));
}

.page-about__value-title {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-card p {
  font-size: 1rem;
  color: #e0e0e0;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
}

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

.page-about__history-item {
  background-color: var(--card-bg-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__history-year {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__history-item p {
  font-size: 1rem;
  color: var(--text-dark);
}

.page-about__history-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
}

.page-about__security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__security-item {
  margin-bottom: 25px;
}

.page-about__security-heading {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__security-item p {
  font-size: 1.1rem;
  color: #e0e0e0;
}

.page-about__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-about__games-section {
  padding: 80px 0;
}

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

.page-about__game-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.page-about__game-card:hover {
  transform: translateY(-10px);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  font-weight: bold;
}

.page-about__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: var(--secondary-color);
}

.page-about__game-card p {
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0 20px 20px;
}

.page-about__games-cta {
  margin-top: 40px;
}

/* Support Section */
.page-about__support-section {
  padding: 80px 0;
}

.page-about__support-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__support-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-about__support-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-about__faq-answer p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__cta-content {
  text-align: center;
}

.page-about__cta-content .page-about__section-title {
  color: var(--primary-color);
}

.page-about__cta-content .page-about__section-subtitle {
  color: var(--text-dark);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3rem;
  }

  .page-about__hero-description {
    font-size: 1.2rem;
  }

  .page-about__section-title {
    font-size: 2.2rem;
  }

  .page-about__section-subtitle {
    font-size: 1rem;
  }

  .page-about__intro-grid,
  .page-about__security-content,
  .page-about__support-content {
    grid-template-columns: 1fr;
  }

  .page-about__intro-image-wrapper,
  .page-about__security-image,
  .page-about__support-image {
    order: -1;
    margin-bottom: 30px;
  }
}

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

  .page-about__hero-section {
    min-height: 60vh;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

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

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

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

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

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

  .page-about__section-subtitle {
    font-size: 0.9rem;
  }

  /* General container/section padding for mobile */
  .page-about__container,
  .page-about__intro-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__security-section,
  .page-about__games-section,
  .page-about__support-section,
  .page-about__faq-section,
  .page-about__video-section,
  .page-about__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  /* Video responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .page-about__value-card,
  .page-about__history-item,
  .page-about__game-card,
  .page-about__faq-item {
    padding: 20px;
  }

  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__value-title {
    font-size: 1.5rem;
  }

  .page-about__history-year {
    font-size: 1.4rem;
  }

  .page-about__security-heading {
    font-size: 1.5rem;
  }

  .page-about__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}