.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-about__container--center {
  flex-direction: column;
  text-align: center;
}

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

.page-about__text-content--right {
  text-align: left;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-wrapper--left {
  order: -1; /* For alternating image/text layout */
}

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

.page-about__heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-about__paragraph {
  font-size: 1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__paragraph--center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__list-item {
  background-color: #11271B; /* Card B G */
  border-left: 5px solid #2AD16F; /* Main Color */
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
}

.page-about__list-item strong {
  color: #F2C14E; /* Gold */
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Main Color */
  border: 2px solid #2AD16F; /* Main Color */
}

.page-about__btn-secondary:hover {
  background-color: #2AD16F; /* Main Color */
  color: #ffffff;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #08160F; /* Background */
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card B G */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1rem;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F; /* Main Color */
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.8;
  max-height: 0; /* For JS based accordion */
  overflow: hidden; /* For JS based accordion */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS based accordion */
}

.page-about__faq-item[open] .page-about__faq-answer { /* For native details/summary */
  max-height: fit-content;
  padding: 0 20px 20px;
}
.page-about__faq-item.active .page-about__faq-answer { /* For JS based accordion */
  max-height: 2000px !important; /* Sufficiently large */
  padding: 0 20px 20px;
}

/* CTA Section at bottom */
.page-about__cta-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.page-about__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken background image for text readability */
}

.page-about__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__container {
    flex-direction: column;
  }
  .page-about__image-wrapper--left {
    order: 0; /* Reset order for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__section,
  .page-about__cta-section {
    padding: 40px 15px;
  }

  .page-about__hero-content,
  .page-about__cta-content {
    padding: 30px 20px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-about__heading {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-about__description,
  .page-about__paragraph,
  .page-about__list-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    font-size: 0.95rem;
  }

  .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;
  }
  
  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper,
  .page-about__hero-content,
  .page-about__cta-content,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__responsible-gaming-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-about {
  color: #F2FFF6; /* Default text color for dark body background */
}

.page-about__card,
.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Light text for dark card background */
}

.page-about__dark-section {
  background: #0A4B2C; /* Deep Green */
  color: #ffffff; /* White text for dark section */
}

/* Contrast for links within content */
.page-about a:not(.page-about__btn-primary):not(.page-about__btn-secondary) {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-about a:not(.page-about__btn-primary):not(.page-about__btn-secondary):hover {
  color: #2AD16F;
}