/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

.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: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-about__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-about__list-item {
  margin-bottom: 10px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  color: #FFFFFF;
  background-color: #017439; /* Brand primary color */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-content {
  z-index: 10;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-about__cta-buttons--center {
  margin-top: 40px;
}

.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;
  white-space: nowrap;
  cursor: pointer;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #E0E0E0;
  color: #005C2B;
  border-color: #005C2B;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Darken image for text readability */
}

/* General Section Styling */
.page-about__vision-mission,
.page-about__history-values,
.page-about__why-choose,
.page-about__responsible-gaming,
.page-about__technology-innovation,
.page-about__partnership,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: #FFFFFF;
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: #017439;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__grid--reverse {
  grid-template-areas: "image text";
}

.page-about__grid--reverse .page-about__text-block { grid-area: text; }
.page-about__grid--reverse .page-about__image-wrapper { grid-area: image; }

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.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;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-about__card-description {
  font-size: 0.95em;
  color: #555555;
}

/* Partnership Section */
.page-about__content-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  color: #017439;
  font-size: 1.1em;
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-about__grid--reverse {
    grid-template-areas: unset;
  }
  .page-about__grid .page-about__image-wrapper:first-child {
    order: 2;
  }
  .page-about__grid .page-about__text-block:first-child {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__container {
    padding: 0 15px;
  }

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

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  /* Ensure content sections respect padding and max-width */
  .page-about__vision-mission,
  .page-about__history-values,
  .page-about__why-choose,
  .page-about__responsible-gaming,
  .page-about__technology-innovation,
  .page-about__partnership,
  .page-about__faq-section {
    padding: 40px 0;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 0.9em;
  }
}