/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color); /* Default to brand primary color */
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-about__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-register {
  background-color: #C30808; /* Register button background */
  color: #FFFF00; /* Register button text */
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-login {
  background-color: #C30808; /* Login button background */
  color: #FFFF00; /* Login button text */
  border: 2px solid #C30808;
}

.page-about__btn-login:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary {
  background-color: var(--primary-color); /* #017439 */
  color: var(--secondary-color); /* #FFFFFF */
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background-color: var(--secondary-color); /* #FFFFFF */
  color: var(--primary-color); /* #017439 */
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Image Styles --- */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Hero Intro Section --- */
.page-about__hero-intro-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--secondary-color); /* Light background */
  color: #333333;
}

.page-about__hero-intro-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 20px;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__overview-image {
  margin-top: 50px;
  width: 100%; /* Ensure it takes full width of its container */
  max-width: 1000px; /* Max display width for this image */
  height: auto; /* Maintain aspect ratio */
}

/* --- Mission & Vision Section (Dark Background) --- */
.page-about__mission-vision-section {
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* White text */
  padding: 80px 0;
}

.page-about__mission-vision-section .page-about__section-title {
  color: var(--secondary-color); /* White title */
}

.page-about__mission-vision-section .page-about__sub-title {
  color: var(--secondary-color); /* White subtitle */
}

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

.page-about__content-block {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  padding: 30px;
  border-radius: 8px;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
  color: #333333;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__feature-image {
  width: 100%;
  max-width: 600px; /* Display width for feature images */
  height: 400px; /* Fixed height for consistent layout */
  object-fit: cover;
  margin: 0 auto 25px auto;
  border-radius: 4px;
}

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

/* --- Responsible Gaming Section (Dark Background) --- */
.page-about__responsible-gaming-section {
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* White text */
  padding: 80px 0;
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: var(--secondary-color); /* White title */
}

.page-about__responsible-gaming-section .page-about__section-description {
  color: var(--secondary-color); /* White description */
}

.page-about__responsible-gaming-section .page-about__sub-title {
  color: #FFFF00; /* Yellow subtitle for emphasis */
}

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

.page-about__responsibility-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.page-about__closing-statement {
  text-align: center;
  margin-top: 50px;
  font-size: 18px;
  font-weight: 500;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
  color: #333333;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ư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;
}

/* Question style */
.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;
}

/* Question title style */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.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; /* Prevent icon from blocking click event */
  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); /* Change to a cross or simply rotate */
}

/* --- Final CTA Section (Dark Background) --- */
.page-about__cta-final-section {
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* White text */
  padding: 80px 0;
  text-align: center;
}