/* style/about.css */

/* Biến màu */
:root {
  --primary-color: #4A00B7;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --dark-section-bg: #4A00B7;
  --light-section-bg: #ffffff;
  --gray-border: #e0e0e0;
  --padding-mobile-x: 15px;
}

/* Căn chỉnh chung cho trang */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

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

.page-about__text-center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  color: var(--text-light);
  background: var(--dark-section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

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

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

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

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

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

.page-about__btn-learn-more {
  margin-top: 30px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Section common styles */
.page-about__story-section,
.page-about__values-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-bottom-section {
  padding: 80px 0;
}

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

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

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

.page-about__dark-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layout for sections */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__grid-layout--reverse {
  grid-template-areas: "image content";
}

.page-about__grid-layout--reverse .page-about__content-block {
  grid-area: content;
}

.page-about__grid-layout--reverse .page-about__image-wrapper {
  grid-area: image;
}

.page-about__image-wrapper {
  text-align: center;
}

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-about__list-item::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

.page-about__value-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-about__card-text {
  font-size: 1em;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-about__faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-about__faq-title {
  margin: 0;
  color: var(--primary-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  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;
  background: var(--light-section-bg);
  color: var(--text-dark);
}

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

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: var(--padding-mobile-x);
    padding-right: var(--padding-mobile-x);
    min-height: 400px;
  }

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

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .page-about__story-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 50px 0;
  }

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

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__container {
    padding-left: var(--padding-mobile-x) !important;
    padding-right: var(--padding-mobile-x) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    grid-template-areas: unset;
  }

  .page-about__grid-layout--reverse .page-about__content-block,
  .page-about__grid-layout--reverse .page-about__image-wrapper {
    grid-area: unset;
  }

  .page-about__image,
  .page-about__value-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__value-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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