/* style/about.css */

.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
  color: #ffffff;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Adjust as needed */
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  overflow: hidden;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
  max-width: 800px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Titles and Descriptions */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: inherit;
}

/* Content Wrapper & Grids */
.page-about__content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-about__image-content {
  flex-shrink: 0;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__image-content--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 70%;
}

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

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

.page-about__content-grid--reverse {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

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

.page-about__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__link-text {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

.page-about__link-text:hover {
  color: #1e87b6;
}

/* Value Items */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__light-bg .page-about__value-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__value-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: inherit;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__cta-content {
  max-width: 900px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for dark section */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__light-bg .page-about__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* for dark theme */
}

.page-about__light-bg .page-about__faq-question {
  border-bottom: 1px solid #e0e0e0; /* for light theme */
}

.page-about__faq-item:last-child .page-about__faq-question {
  border-bottom: none;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15); /* for dark theme */
}

.page-about__light-bg .page-about__faq-question:hover {
  background-color: #eef;
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__image-content {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-content--center {
    max-width: 90%;
  }
  .page-about__image-full-width {
    width: 100% !important;
    height: auto !important;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-section {
    padding: 60px 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__faq-section {
    padding: 40px 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all containers handle overflow and sizing */
  .page-about__container,
  .page-about__hero-content,
  .page-about__hero-cta-buttons,
  .page-about__content-wrapper,
  .page-about__values-grid,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Removed from here to avoid double padding if container already has it */
    /* padding-right: 15px; */ /* Removed from here to avoid double padding if container already has it */
    overflow: hidden !important;
  }
  /* Adjust padding for the container itself to avoid double padding */
  .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-content,
  .page-about__introduction-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__security-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__cta-section .page-about__container,
  .page-about__faq-section .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__image-content,
  .page-about__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}