.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
}

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

.page-about__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:cockfighting,sports,casino,online betting,vietnam]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  padding: 120px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.page-about__hero-image {
    display: none; /* Hero image is used as background in CSS for better control */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFFFF; /* Ensures WCAG AA contrast */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__introduction .page-about__text-block,
.page-about__commitment .page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-about__our-story .page-about__story-content,
.page-about__commitment .page-about__commitment-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__our-story .page-about__story-text,
.page-about__commitment .page-about__commitment-text {
  flex: 1;
}

.page-about__our-story .page-about__story-image,
.page-about__commitment .page-about__commitment-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-about__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  color: #017439;
}

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f8f8f8;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides other styles */
  padding: 20px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

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

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

.page-about__cta-section .page-about__text-block {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__our-story .page-about__story-content,
  .page-about__commitment .page-about__commitment-content {
    flex-direction: column;
  }
  .page-about__our-story .page-about__story-image,
  .page-about__commitment .page-about__commitment-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-about__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 450px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__our-story .page-about__story-image,
  .page-about__commitment .page-about__commitment-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-icon {
    max-width: 150px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__our-story .page-about__story-content,
  .page-about__commitment .page-about__commitment-content {
    gap: 20px;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}