/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, adapted for dark body background */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__text-block a {
  color: var(--gold, #F2C14E); /* Link color */
  text-decoration: underline;
}

.page-about__text-block a:hover {
  text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background, #08160F);
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--text-main, #F2FFF6);
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-about__description {
  font-size: 1.15em;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6); /* White text on dark green gradient */
  border: 2px solid transparent;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E); /* Dark green text on transparent background */
  border: 2px solid var(--main-color, #11A84E);
}

.page-about__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: var(--text-main, #F2FFF6); /* White text on dark green background */
}

/* Vision & Mission Section */
.page-about__vision-mission {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Dark background for this section */
  color: var(--text-main, #F2FFF6);
}

.page-about__vision-mission .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

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

.page-about__card {
  background-color: var(--background, #08160F); /* Slightly darker card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary, #A7D9B8);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-about__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;
}

/* Core Values Section */
.page-about__values {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__values .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__value-item {
  background-color: var(--card-bg, #11271B);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-about__value-heading {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

.page-about__value-item p {
  color: var(--text-secondary, #A7D9B8);
}

.page-about__image-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-about__why-choose .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

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

.page-about__feature-item {
  background-color: var(--background, #08160F);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-about__feature-heading {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

.page-about__feature-item p {
  color: var(--text-secondary, #A7D9B8);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C); /* Specific deep green background */
  color: var(--text-main, #F2FFF6);
}

.page-about__responsible-gaming .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

/* CTA Section (Bottom) */
.page-about__cta {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  text-align: center;
}

.page-about__cta .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__cta-container {
  max-width: 800px;
}

/* FAQ Section */
.page-about__faq {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__faq .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--gold, #F2C14E);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  user-select: none;
}

.page-about__faq-question:hover {
  filter: brightness(1.2);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--card-bg, #11271B);
}

/* Details element specific styling */
.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-about__faq-item summary {
  list-style: none;
}

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


/* --- Responsive Design --- */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-about__description {
    font-size: 1.05em;
  }

  .page-about__hero-section,
  .page-about__vision-mission,
  .page-about__values,
  .page-about__why-choose,
  .page-about__responsible-gaming,
  .page-about__cta,
  .page-about__faq {
    padding: 60px 0;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 80%; /* Make buttons wider on tablet */
    max-width: 300px;
  }
}

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

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsive */
  .page-about__hero-image-wrapper,
  .page-about__grid,
  .page-about__value-list,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-about__cta-button,
  .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-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-direction: column !important;
    gap: 15px !important;
  }

  .page-about__card,
  .page-about__value-item,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__value-heading,
  .page-about__feature-heading {
    font-size: 1.3em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
  }
}

/* Color Contrast Fixes (if needed) - based on provided custom colors */
/* Assuming body background #08160F is dark, text should be light */
.page-about__dark-section {
  color: var(--text-main, #F2FFF6);
  background-color: var(--background, #08160F); /* Explicitly set dark background */
}

.page-about__light-bg {
  color: var(--text-main, #F2FFF6); /* Still light text on #11271B */
  background-color: var(--card-bg, #11271B); /* Explicitly set card background */
}

.page-about__responsible-gaming {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-about__card {
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--background, #08160F); /* Adjusting card background for contrast */
}

.page-about__feature-item {
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--background, #08160F); /* Adjusting feature item background for contrast */
}

/* Ensure all links inside text blocks have sufficient contrast */
.page-about p a, .page-about li a {
  color: var(--gold, #F2C14E); /* Using gold for links on dark background */
}