/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top */

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #0a0a0a (dark), nên dùng chữ trắng */
}

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for first section */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to mobile */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* General Section Styling */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-about__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__mission-vision,
.page-about__why-choose-us,
.page-about__responsible-gaming,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__mission-vision .page-about__section-title,
.page-about__mission-vision .page-about__section-description {
  color: #333333;
}

.page-about__mission-vision p {
  color: #555555;
}

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

.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__section-description {
  color: #333333;
}

.page-about__responsible-gaming p {
  color: #555555;
}

.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description {
  color: #333333;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Feature Grid */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__feature-card p {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__responsible-gaming .page-about__btn-primary {
  margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-about__faq-link {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-about__faq-link:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-about__cta-section .page-about__btn-primary {
  background-color: #26A9E0;
  border-color: #26A9E0;
}

.page-about__cta-section .page-about__btn-primary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

.page-about__cta-section .page-about__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__text-block,
  .page-about__image-block {
    width: 100%;
  }
  .page-about__responsible-gaming .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container,
  .page-about__hero-content,
  .page-about__cta-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-link,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__hero-section,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__main-title {
    font-size: 2.2rem;
  }
  .page-about__section-title {
    font-size: 1.8rem;
  }
  .page-about__sub-title {
    font-size: 1.3rem;
  }
  .page-about__card-title {
    font-size: 1.2rem;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* body đã xử lý header offset */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8rem;
  }
  .page-about__intro-text {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: 1.6rem;
  }
  .page-about__section-description {
    font-size: 0.95rem;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__faq-question {
    font-size: 1rem;
  }
  .page-about__faq-answer {
    font-size: 0.9rem;
  }
}