/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background from custom palette */
}

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

.page-about__section-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: var(--card-bg, #11271B); /* Use card background for content block */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-about__content-grid .page-about__text-block {
  padding: 20px;
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-about__card {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-about__card p {
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
}

.page-about__card .page-about__btn-secondary {
  margin-top: 20px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-flex .page-about__text-block {
  flex: 1;
  padding: 20px;
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__content-flex .page-about__image-wrapper {
  flex: 1;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-about__content-grid-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid-team .page-about__text-block {
  padding: 20px;
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background-color: rgba(17, 168, 78, 0.1); /* Slight brand color tint */
}

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

.page-about__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: var(--text-secondary, #A7D9B8);
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green, #0A4B2C);
}

.page-about__cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-grid,
  .page-about__content-flex,
  .page-about__content-grid-team {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .page-about__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0 !important;
  }

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

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

  .page-about__main-title {
    font-size: 2rem;
  }

  .page-about__intro-text,
  .page-about__cta-text {
    font-size: 1rem;
  }

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

  .page-about__image-wrapper,
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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;
    margin-bottom: 10px; /* Stack buttons */
  }

  .page-about__hero-content .page-about__btn-primary {
    margin-bottom: 0;
  }

  .page-about__cta-section .page-about__btn-primary {
    margin-bottom: 0;
  }

  .page-about__features-grid {
    gap: 20px;
  }

  .page-about__card {
    min-height: auto;
  }

  .page-about__content-grid .page-about__text-block,
  .page-about__content-flex .page-about__text-block,
  .page-about__content-grid-team .page-about__text-block {
    padding: 15px;
  }
}

/* Specific color contrast adjustments if needed, based on body background */
/* Body background is #08160F (dark), so text should be light */
.page-about h1, .page-about h2, .page-about h3, .page-about__card-title {
  color: var(--text-main, #F2FFF6);
}
.page-about p, .page-about li, .page-about__intro-text, .page-about__cta-text {
  color: var(--text-secondary, #A7D9B8);
}
.page-about__card {
  background: var(--card-bg, #11271B);
}
.page-about__faq-item {
  background: var(--card-bg, #11271B);
  border-color: var(--border, #2E7A4E);
}
.page-about__faq-question {
  background-color: rgba(17, 168, 78, 0.1); /* Primary color with transparency */
  color: var(--text-main, #F2FFF6);
}
.page-about__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}
.page-about__faq-toggle {
  color: var(--glow, #57E38D);
}
.page-about__faq-answer {
  color: var(--text-secondary, #A7D9B8);
}
.page-about__cta-section {
  background-color: var(--deep-green, #0A4B2C);
}