.page-about {
  color: #ffffff; /* Light text on 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__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Auxiliary color for titles */
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #0A2463; /* Main color for underline */
  border-radius: 2px;
}

.page-about__dark-section {
  background-color: #0A2463; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__dark-section .page-about__section-title {
  color: #FFD700;
}

.page-about__dark-section .page-about__section-title::after {
  background-color: #FFD700;
}

/* Hero Intro Section */
.page-about__hero-intro-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-about__hero-intro-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__hero-intro-content {
  flex: 1;
}

.page-about__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-intro-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__hero-intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

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

.page-about__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A2463; /* Main color for text */
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
}

.page-about__mission-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__mission-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__mission-text p {
  margin-bottom: 15px;
}

.page-about__mission-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__mission-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-about__why-choose-us-section .page-about__section-title::after {
  background-color: #0A2463;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__feature-card p {
  font-size: 16px;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__responsible-gaming-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-about__responsible-gaming-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__responsible-gaming-text p {
  margin-bottom: 15px;
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463; /* Main brand color for questions */
  border: 1px solid #1a3c7c;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #1a3c7c;
  border-color: #2a529c;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #1a3c7c; /* Darker background for answer */
  color: #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px 25px !important;
  opacity: 1;
}

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

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

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__contact-cta-container {
  max-width: 800px;
}

.page-about__contact-cta-section .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__contact-cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Image Styles (for content images) */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-intro-container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__hero-intro-content,
  .page-about__hero-intro-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-about__main-title {
    font-size: 36px;
  }

  .page-about__intro-description {
    font-size: 17px;
  }

  .page-about__cta-buttons {
    justify-content: center;
  }

  .page-about__mission-content,
  .page-about__responsible-gaming-content {
    flex-direction: column-reverse; /* Text above image on tablet */
  }

  .page-about__mission-text,
  .page-about__mission-image-wrapper,
  .page-about__responsible-gaming-text,
  .page-about__responsible-gaming-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-about__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__section-title {
    font-size: 30px;
  }

  .page-about__faq-list {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px !important;
  }

  .page-about__hero-intro-section,
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 40px 0 !important;
  }

  .page-about__section-title {
    font-size: 28px !important;
    margin-bottom: 30px !important;
  }

  .page-about__section-title::after {
    width: 60px !important;
    height: 3px !important;
  }

  .page-about__main-title {
    font-size: 32px !important;
    margin-bottom: 15px !important;
  }

  .page-about__intro-description {
    font-size: 16px !important;
    margin-bottom: 25px !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding to container */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 16px !important;
    padding: 12px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__mission-content,
  .page-about__responsible-gaming-content {
    gap: 20px !important;
  }

  .page-about__mission-text,
  .page-about__responsible-gaming-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-about__feature-card {
    padding: 25px !important;
  }

  .page-about__feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 15px !important;
  }

  .page-about__feature-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }

  .page-about__feature-card p {
    font-size: 14px !important;
  }

  .page-about__faq-question {
    padding: 15px 20px !important;
  }

  .page-about__faq-question h3 {
    font-size: 16px !important;
  }

  .page-about__faq-toggle {
    font-size: 24px !important;
    width: 28px !important;
    height: 28px !important;
    margin-left: 15px !important;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  .page-about__contact-cta-section p {
    font-size: 16px !important;
  }

  /* Mobile responsive image styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-intro-image,
  .page-about__mission-image,
  .page-about__responsible-gaming-image {
    width: 100% !important;
    height: auto !important;
  }
}