/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

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

.page-about__dark-bg {
  background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent brand green on dark body */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark body */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__paragraph,
.page-about__section-paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-image: url('[GALLERY:hero:1920x1080:e88_about_hero,online_betting,vietnam,professional,green_theme]'); /* Use placeholder for background image */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom color for Register/Login font */
  border: 2px solid #C30808;
}

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

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

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

.page-about__image-wrapper {
  display: none; /* Hero image as background */
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
}

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-about__container--vision-mission {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  text-align: left;
}

.page-about__content-block {
  flex: 1;
  min-width: 300px;
}

/* Values List */
.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Features Grid (Why Choose Us) */
.page-about__features-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); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Timeline */
.page-about__timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #017439;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #ffffff;
  border: 4px solid #017439;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -16px;
}

.page-about__timeline-year {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Responsible Gaming List */
.page-about__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__responsible-gaming-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__responsible-gaming-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__responsible-gaming-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: #ffffff;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.2); /* Slightly darker transparent brand green */
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.4);
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #017439;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
}

/* Hide default details marker */
.page-about__faq-item > summary {
  list-style: none;
}
.page-about__faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-answer {
  padding: 15px 20px;
  font-size: 1.1em;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Call to Action Wrapper */
.page-about__cta-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary--large,
.page-about__btn-secondary--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__subtitle {
    font-size: 1.6em;
  }
  .page-about__values-list,
  .page-about__features-grid,
  .page-about__responsible-gaming-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-about__container--vision-mission {
    flex-direction: column;
  }

  .page-about__timeline::before {
    left: 18px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }

  .page-about__timeline-item::after {
    left: 11px;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0%;
  }

  .page-about__timeline-item:nth-child(even)::after {
    left: 11px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Consistent with common fragment */
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}