.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but explicitly setting for clarity */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-about__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__paragraph--center {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layout for sections with image and text */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.page-about__grid-layout--reverse {
  grid-template-columns: 1fr 1fr; /* Default for desktop */
}

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

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter on images */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-about__mission-vision-section .page-about__section-title {
  color: #ffffff;
  text-align: left;
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #017439; /* Brand primary color */
  padding: 80px 0;
}

.page-about__why-choose-section .page-about__section-title {
  color: #ffffff;
}

.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.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 0; /* No border-radius for icons to ensure original shape */
  filter: none; /* Ensure no filter on icons */
}

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

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: #ffffff;
  text-align: left;
}

/* Team Section */
.page-about__team-section {
  background-color: #017439; /* Brand primary color */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-about__team-section .page-about__section-title {
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #1a1a2e; /* Dark background */
  padding: 80px 0;
  color: #ffffff;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 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.1); /* Slightly lighter for question */
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.3em;
  color: #ffffff;
  margin: 0;
  font-weight: normal;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.03); /* Even lighter for answer background */
}

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

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__cta-section .page-about__section-title {
  color: #ffffff;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border-color: #C30808;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__grid-layout {
    gap: 40px;
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 20px 40px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr; /* Stack columns */
    padding: 30px 0;
    gap: 30px;
  }
  .page-about__grid-layout--reverse {
    grid-template-columns: 1fr; /* Stack columns */
  }
  .page-about__mission-vision-section .page-about__section-title,
  .page-about__responsible-gaming-section .page-about__section-title {
    text-align: center;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr; /* Stack features */
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Mobile button responsiveness */
  .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;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  .page-about__hero-cta-buttons {
    flex-direction: column; /* Stack buttons in hero */
    gap: 10px;
  }
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons */
    gap: 10px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
}