.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

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

.page-about__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Slightly reduce opacity to make text readable */
}

.page-about__hero-title {
  font-size: 3.2em;
  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;
  max-width: 800px;
  color: #ffffff;
}

.page-about__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-about__btn-primary--center {
  display: block;
  margin: 30px auto 0;
  width: fit-content;
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  transform: translateY(-2px);
}

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #C30808;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__our-story-section, .page-about__why-choose-us-section, .page-about__our-values-section, .page-about__responsible-gaming-section, .page-about__faq-section, .page-about__cta-section {
  padding: 80px 0;
}

.page-about__our-story-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__our-story-section .page-about__section-title, .page-about__our-story-section .page-about__text-block h3 {
  color: #017439;
}

.page-about__our-story-section .page-about__section-description, .page-about__our-story-section .page-about__text-block p {
  color: #555555;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image--centered {
  margin: 60px auto 0;
}

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

.page-about__feature-card, .page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__feature-title, .page-about__value-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-about__feature-text, .page-about__value-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-about__responsible-gaming-section .page-about__btn-secondary {
  margin-top: 40px;
}

.page-about__faq-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #e0e0e0;
}

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-about__faq-answer p {
  margin: 0;
}

.page-about__cta-section {
  background-color: #017439;
  text-align: center;
}

/* --- Responsive Styles --- */

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

  .page-about__hero-section {
    padding: 80px 20px 40px;
    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__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__btn-primary--center {
    width: 100% !important;
  }

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

  .page-about__section-description {
    font-size: 0.9em;
    margin-bottom: 40px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__features-grid, .page-about__values-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card, .page-about__value-card {
    padding: 25px;
  }

  .page-about__feature-title, .page-about__value-title {
    font-size: 1.5em;
  }

  .page-about__our-story-section, .page-about__why-choose-us-section, .page-about__our-values-section, .page-about__responsible-gaming-section, .page-about__faq-section, .page-about__cta-section {
    padding: 60px 0;
  }

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

  .page-about__faq-item {
    margin-bottom: 10px;
  }

  .page-about__faq-question {
    padding: 12px 15px;
    font-size: 1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 12px 15px;
  }

  /* Ensure all containers with images/videos/buttons adapt */
  .page-about__hero-section,
  .page-about__our-story-section,
  .page-about__why-choose-us-section,
  .page-about__our-values-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Tablet (max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-about__features-grid, .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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