/* Base Styles for page-about */
.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: 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-about__section-title--white {
  color: #FFFFFF;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__sub-title--white {
  color: #FFFFFF;
}

.page-about__text--white {
  color: #FFFFFF;
}

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

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

.page-about__dark-section {
  background-color: #26A9E0;
  padding: 60px 0;
}

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

.page-about__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover to fill space */
  display: block;
}

.page-about__hero-content {
  position: relative; /* Ensure content is below image in normal flow */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not on image */
  background: linear-gradient(to top, rgba(38, 169, 224, 0.9), rgba(38, 169, 224, 0.7));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFFFF;
  max-width: 100%;
  font-size: clamp(32px, 4vw, 48px); /* Responsive font size */
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.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: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

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

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

/* Intro Section */
.page-about__intro-section {
  padding: 60px 0;
  text-align: left;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 60px 0;
}

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

.page-about__grid-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
}

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

.page-about__value-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-about__value-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 4px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__value-title {
  font-size: 20px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Responsible Gaming & Future Outlook Sections */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-text p {
  margin-bottom: 15px;
}

.page-about__content-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
}

.page-about__faq-answer li {
  margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__sub-title {
    font-size: 22px;
  }
  .page-about__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-about__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    height: auto !important; /* Ensure aspect ratio is maintained */
    aspect-ratio: unset !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-about__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-about__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section and Container */
  .page-about__container {
    padding: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 20px;
  }

  /* Two-column grids */
  .page-about__grid-two-cols,
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__grid-item {
    padding: 15px;
  }
  .page-about__content-image {
    order: -1; /* Image first on mobile for content-grid */
  }

  /* Values Grid */
  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-card {
    padding: 20px;
  }
  .page-about__value-card img {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Generic Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box !important;
  }
  .page-about__content-image img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* General padding for sections */
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__future-outlook-section,
  .page-about__faq-section {
    padding: 40px 0;
  }
  .page-about__dark-section {
    padding: 40px 0;
  }
}