/* style/about.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* body đã có padding-top từ shared.css, không thêm lại tại đây */
.page-about {
  color: var(--color-text-main);
  background-color: var(--color-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body đã xử lý padding-top */
  background-color: var(--color-deep-green);
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive image size on large screens */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.page-about__subtitle {
  font-size: 1.2em;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: none;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.page-about__btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-background);
  transform: translateY(-2px);
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

/* Vision & Values Section */
.page-about__vision-values-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

.page-about__dark-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-about__grid-item {
  background-color: var(--color-deep-green);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid-item .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__item-title {
  font-size: 1.8em;
  color: var(--color-gold);
  margin-bottom: 15px;
  text-align: center;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list li {
  background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"%3e%3cpath d="M22 11.08V12a10 10 0 1 1-5.93-8.93"%3e%3c/path%3e%3cpolyline points="22 4 12 14.01 9 11.01"%3e%3c/polyline%3e%3c/svg%3e') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-about__feature-card {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-about__card-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-about__card-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

.page-about__responsible-gambling-section .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  max-width: 800px;
}

/* Achievements Section */
.page-about__achievements-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

/* Call to Action Section */
.page-about__call-to-action-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--color-background);
}

.page-about__call-to-action-section .page-about__image {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 30px auto;
  display: block;
  border-radius: 12px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

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

.page-about__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .page-about__hero-image-wrapper {
    max-height: 700px;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__subtitle {
    font-size: 1em;
  }

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

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

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__vision-values-section,
  .page-about__why-choose-section,
  .page-about__responsible-gambling-section,
  .page-about__achievements-section,
  .page-about__call-to-action-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-about__grid-item,
  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__item-title {
    font-size: 1.5em;
  }

  .page-about__card-title {
    font-size: 1.2em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  /* Responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images/videos/buttons are constrained */
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__vision-values-section,
  .page-about__why-choose-section,
  .page-about__responsible-gambling-section,
  .page-about__achievements-section,
  .page-about__call-to-action-section,
  .page-about__faq-section,
  .page-about__container,
  .page-about__grid-item,
  .page-about__feature-card,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}