/* style/about.css */

/* General page styling */
.page-about {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is white, so use dark text */
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent image being too tall */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-about__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.page-about__btn-register,
.page-about__btn-login,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-about__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Vision and Mission Section */
.page-about__vision-mission {
  background-color: #FFFFFF;
  padding-top: 40px;
  padding-bottom: 40px;
}

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

.page-about__text-block {
  flex: 1;
  text-align: left;
}

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

.page-about__image-block--center {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size for images */
  min-height: 200px; /* Min size for images */
}

/* What We Offer Section */
.page-about__what-we-offer {
  background-color: #017439; /* Dark section background */
  color: #FFFFFF;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__what-we-offer .page-about__section-title {
  color: #FFFFFF; /* White title for dark background */
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.page-about__offer-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__offer-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__offer-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00; /* Yellow for titles on dark background */
  margin-bottom: 15px;
}

.page-about__offer-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-about__image-block--full-width {
  grid-column: 1 / -1;
  margin-top: 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #f8f8f8;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-about__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  background-color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #f8f8f8;
  padding-top: 80px;
  padding-bottom: 80px;
}

.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: 18px;
  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;
  font-size: 16px;
  color: #555555;
}
details.page-about__faq-item .page-about__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-about__final-cta {
  background-color: #017439; /* Primary brand color background */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

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

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

.page-about__final-cta .page-about__cta-buttons {
  gap: 15px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }

  .page-about__intro-text {
    font-size: 18px;
  }

  .page-about__section-title {
    font-size: 32px;
  }

  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__image-block {
    order: -1; /* Image first on smaller screens */
  }

  .page-about__content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__feature-list {
    grid-template-columns: 1fr;
  }
}

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__text-block {
    font-size: 16px;
    text-align: left;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
    margin-bottom: 20px;
  }
}