/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --button-login: #EA7C07;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-light);
}

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

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

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* Color Contrast Classes */
.page-about__dark-bg {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg h1,
.page-about__dark-bg h2,
.page-about__dark-bg h3,
.page-about__dark-bg p {
  color: var(--text-light);
}

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

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

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

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login); /* Using #EA7C07 for login-like CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #d66c06; /* Slightly darker orange on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
}

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

.page-about__card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

.page-about__card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-item img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-about__feature-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.page-about__timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 30px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 30px;
  text-align: left;
}

.page-about__timeline-year {
  position: absolute;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  z-index: 1;
  top: 10px;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
  right: -25px;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-year {
  left: -25px;
}

.page-about__timeline-content {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__timeline-content h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__timeline-content p {
  font-size: 15px;
  color: var(--text-dark);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
}

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

.page-about__responsible-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
}

.page-about__responsible-item img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-about__responsible-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-about__responsible-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo mức độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content h1 {
    font-size: 42px;
  }
  .page-about__hero-content p {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-image img {
    border-radius: 4px;
  }
  
  .page-about__hero-content h1 {
    font-size: 32px;
  }
  
  .page-about__hero-content p {
    font-size: 16px;
  }
  
  .page-about__cta-button {
    padding: 12px 30px;
    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-about__container {
    padding: 30px 15px;
  }

  .page-about__section-title {
    font-size: 28px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__grid,
  .page-about__features-grid,
  .page-about__responsible-features {
    grid-template-columns: 1fr;
  }

  .page-about__card img,
  .page-about__feature-item img,
  .page-about__responsible-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Timeline for mobile */
  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
    text-align: left !important;
  }

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 15px;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
    padding-left: 45px;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 0px;
    margin-left: 15px;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}