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

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

.page-about__dark-bg {
  background-color: #0d1117; /* Matches body background for consistency */
  color: #ffffff;
}

.page-about__hero-section {
  position: relative;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with accent color */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

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

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

.page-about__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.page-about__btn-secondary {
  background-color: #ffc107;
  color: #0d1117; /* Dark text for light background */
  border: 2px solid #ffc107;
}

.page-about__btn-secondary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107; /* Highlight with accent color */
  font-weight: bold;
}

.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__responsible-gambling-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #0d1117;
}

.page-about__our-story-section,
.page-about__our-team-section,
.page-about__future-vision-section {
  padding: 80px 0;
  background-color: #1a1f26; /* Slightly lighter dark background for contrast */
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

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

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

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

.page-about__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure min size for images */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Example max width */
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
  object-fit: cover;
}

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

.page-about__feature-item {
  background: rgba(0, 123, 255, 0.15); /* Slightly transparent primary color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #007bff;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-about__feature-description {
  color: #f0f0f0;
  font-size: 1em;
}

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

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

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

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

.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(0deg); /* No rotation for minus sign */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #0d1117;
}

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

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 100px 0 40px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__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;
    margin: 0 auto;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gambling-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__our-story-section,
  .page-about__our-team-section,
  .page-about__future-vision-section {
    padding: 50px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__text-block {
    font-size: 0.95em;
  }
  .page-about__feature-item {
    padding: 20px;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-about__image-wrapper,
  .page-about__content-flex,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-about__faq-answer {
    padding: 10px 15px;
  }
}