/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --login-button-color: #EA7C07;
}

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
}

.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: 20px;
  color: inherit; /* Inherit from section for contrast control */
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-about__btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  color: var(--light-text-color);
  overflow: hidden;
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-about__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__value-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--dark-text-color);
  transition: transform 0.3s ease;
}

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

.page-about__value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

/* Journey Section */
.page-about__journey-section {
  padding: 80px 0;
}

.page-about__journey-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-about__journey-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

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

.page-about__advantage-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--dark-text-color);
}

.page-about__cta-bottom {
  text-align: center;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__responsible-gaming-text {
  flex: 1;
  text-align: left;
}

.page-about__responsible-gaming-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.page-about__faq-item {
  background-color: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--dark-text-color);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--dark-text-color);
}

.page-about__faq-item:not([open]) .page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure content is visible */
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* General image styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__journey-flex,
  .page-about__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__journey-text,
  .page-about__responsible-gaming-text {
    text-align: center;
  }

  .page-about__journey-image-wrapper,
  .page-about__responsible-gaming-image-wrapper {
    margin-top: 30px;
  }
}

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

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

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__hero-section,
  .page-about__values-section,
  .page-about__journey-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 40px 0;
  }

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

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

  .page-about__hero-image-wrapper,
  .page-about__journey-image-wrapper,
  .page-about__responsible-gaming-image-wrapper,
  .page-about__value-card,
  .page-about__advantage-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile button adaptation */
  .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-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-about__hero-content .page-about__btn-primary {
    margin-left: auto;
    margin-right: auto;
  }

  /* FAQ specific mobile styles */
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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