.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Use yellow for titles on dark backgrounds */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  padding: 60px 0;
  color: #ffffff;
}

.page-about__mission-vision-section {
  padding: 80px 0;
}

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

.page-about__text-block {
  padding: 20px;
}

.page-about__subtitle {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for subtitles on dark green */
  margin-bottom: 15px;
}

.page-about__text-block p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure no extra space below image */
}

.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for feature titles */
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #f0f0f0;
}

.page-about__image-block--center {
  margin-top: 60px;
  text-align: center;
}

.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
}

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

.page-about__grid--reverse .page-about__image-block {
  order: 2;
}

.page-about__grid--reverse .page-about__text-block {
  order: 1;
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__responsibility-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-about__responsibility-list li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__responsibility-list li p {
  margin: 0;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #FFFF00; /* Yellow for FAQ questions */
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

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

.page-about__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__cta-container {
  position: relative;
  z-index: 1;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #FFFF00; /* Yellow for CTA title */
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-image {
  position: absolute;
  bottom: -50px;
  right: -100px;
  opacity: 0.2;
  width: 600px;
  height: auto;
  z-index: 0;
  transform: rotate(-15deg);
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
  }
  .page-about__grid--reverse .page-about__image-block {
    order: initial;
  }
  .page-about__grid--reverse .page-about__text-block {
    order: initial;
  }
  .page-about__image-block {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    height: auto;
    min-height: 400px;
    padding: 120px 20px 60px; /* Adjust padding-top for mobile header */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__subtitle {
    font-size: 1.5em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__image,
  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__container,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer,
  .page-about__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__cta-image {
    position: static;
    transform: none;
    opacity: 0.1;
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title,
  .page-about__cta-title {
    font-size: 1.5em;
  }
  .page-about__subtitle {
    font-size: 1.3em;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
}