.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, adjusted for dark body background */
  background-color: var(--background, #08160F); /* Page background, from custom colors */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small padding, body takes care of header offset */
  padding-bottom: 40px;
  background-color: var(--background, #08160F);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image wrapper */
    margin-bottom: 20px; /* Space between image and content */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative; /* Ensure content is above any potential background layering issues if not handled by flex-direction */
  z-index: 2; /* Ensure text is above image if any layering issue */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box; /* Include padding in element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  flex-grow: 1; /* Allow buttons to grow */
  max-width: 220px; /* Max width for individual buttons */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  transform: translateY(-2px);
}

.page-about__section {
  padding: 60px 0;
  background-color: var(--background, #08160F); /* Default background for sections */
  color: var(--text-main, #F2FFF6);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F2C14E); /* Using gold for section titles */
  line-height: 1.3;
}

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

.page-about__text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

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

.page-about__grid-item {
  background-color: var(--card-bg, #11271B); /* Custom card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main, #F2FFF6);
}

.page-about__image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-about__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #57E38D); /* Using glow for item titles */
}

/* Responsible Gaming specific styles */
.page-about__responsible-gaming .page-about__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about__faq {
  padding-bottom: 60px;
}

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

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker for question background */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-about__faq-question:hover {
  background-color: var(--border, #2E7A4E);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

.page-about__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* CTA Bottom */
.page-about__cta-bottom {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(90deg, #11A84E, #22C768); /* Brand color gradient */
  color: #fff; /* Ensure white text on brand color gradient */
}

.page-about__cta-bottom .page-about__section-title {
  color: #fff; /* White title on brand gradient */
}

.page-about__cta-bottom .page-about__text {
  color: #fff; /* White text on brand gradient */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-about__cta-bottom .page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #fff;
}

.page-about__cta-bottom .page-about__btn-secondary {
  background-color: #fff;
  color: #11A84E;
  border: 2px solid #fff;
}

.page-about__cta-bottom .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #11A84E;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }
  .page-about__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-about__subtitle {
    font-size: 1rem;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-about__grid {
    grid-template-columns: 1fr; /* Stack items on small screens */
    gap: 20px;
  }
  .page-about__grid-item {
    padding: 25px;
  }
  .page-about__item-title {
    font-size: 1.2rem;
  }
  .page-about__text {
    font-size: 0.95rem;
  }
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    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-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__grid-item,
  .page-about__faq-item,
  .page-about__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-content {
      padding: 0 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
  }
  .page-about__cta-bottom {
    padding: 60px 0;
  }
}