/* 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 {
  color: #333333; /* Mặc định chữ đen trên nền trắng/sáng */
  background-color: var(--background-color, #ffffff); /* Đảm bảo nền khớp với body */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Đảm bảo khoảng cách nhỏ dưới header */
  background-color: #f8f8f8;
  color: #333333;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  font-size: clamp(2em, 4vw, 3.2em); /* Sử dụng clamp để kiểm soát kích thước H1 */
}

.page-about__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
}

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

.page-about__section {
  padding: 50px 20px;
  background-color: var(--background-color, #ffffff);
}

.page-about__section:nth-of-type(even) {
  background-color: #f5f5f5;
}

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

.page-about__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__container--reverse {
  flex-direction: row-reverse;
}

.page-about__text-content {
  flex: 1;
  min-width: 300px;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-about__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-about__introduction .page-about__section-title,
.page-about__offerings .page-about__section-title,
.page-about__responsible-gambling .page-about__section-title,
.page-about__vision .page-about__section-title {
  color: #000000; /* Tiêu đề đen trên nền sáng */
}

.page-about__paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__paragraph a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__paragraph a:hover {
  color: #1e87c0;
}

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

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

.page-about__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
  min-width: 200px;
}

.page-about__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section (if applicable, though not explicitly in content outline, including for completeness) */
.page-about__faq-section {
  padding: 50px 20px;
  background-color: #f5f5f5;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #26A9E0;
  font-size: 1.1em;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__container--flex {
    flex-direction: column;
  }
  .page-about__container--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã xử lý header offset */
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section {
    padding: 30px 15px;
  }
  .page-about__container,
  .page-about__grid {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__grid {
    gap: 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__card,
  .page-about__container,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__card-image {
    height: 200px; /* Điều chỉnh chiều cao thẻ cho di động */
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}