/* style/about.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-about {
  color: #ffffff; /* Body背景色是深色 #0a0a0a，所以文字使用浅色 */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body已承担顶距，此处仅小顶距，底部留白 */
  background-color: #0a0a0a; /* 与body背景色一致或相 đồng */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 1200px;
  width: 100%; /* 确保在桌面端也占满可用宽度 */
  text-align: center;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên thiết bị di động */
  width: 100%;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không vượt quá chiều rộng của container */
  white-space: normal; /* Cho phép văn bản nút xuống dòng */
  word-wrap: break-word; /* Ngắt từ nếu cần */
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-about__section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

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

.page-about__mission-vision .page-about__content-wrapper {
  align-items: center;
}

.page-about__history {
  background-color: #1a1a1a;
}

.page-about__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

.page-about__timeline-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #26A9E0;
}

.page-about__timeline-year {
  font-size: 1.6rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #cccccc;
}

.page-about__history-image {
  margin-top: 40px;
}

.page-about__why-choose-us {
  background-color: #26A9E0; /* Sử dụng màu thương hiệu làm nền đậm */
}

.page-about__why-choose-us .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose-us .page-about__intro-text {
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-about__features-image {
  margin-top: 60px;
}

.page-about__responsible-gambling {
  background-color: #0a0a0a;
}

.page-about__responsible-gambling ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 15px;
  color: #cccccc;
}

.page-about__responsible-gambling li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-about__responsible-gambling a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__responsible-gambling a:hover {
  text-decoration: underline;
}

.page-about__faq {
  background-color: #1a1a1a;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  list-style: none; /* Hide default marker for details summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

.page-about__cta-final {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-about__cta-final .page-about__description {
  margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-about__text-block, 
  .page-about__image-block {
    width: 100%;
    max-width: 600px; /* Giới hạn chiều rộng trên tablet */
  }

  .page-about__hero-content {
    padding: 30px 20px 0;
  }

  .page-about__timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-about__description {
    font-size: 1rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-about__section {
    padding: 60px 0;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .page-about__intro-text {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

  .page-about__timeline-item {
    padding: 20px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* 强制移动端图片适配 */
  .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__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__features-grid,
  .page-about__timeline,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }

  /* 强制按钮适配 */
  .page-about a[class*="btn"],
  .page-about a[class*="button"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}