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

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

.page-about__hero-section {
  position: relative;
  padding: 80px 0 60px; /* Adjusted padding for content hero */
  background: linear-gradient(135deg, #0A2463, #05122F); /* Darker gradient for hero */
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__hero-title {
  font-size: 3.2em;
  color: #F2B807; /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  color: #F2B807; /* Gold color for section titles */
}

.page-about__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 60px;
  color: #ffffff;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #F2B807; /* Gold color for sub-titles */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__text-block p strong {
  color: #F2B807;
}

.page-about__text-block p em {
  color: #F2B807;
}

.page-about__text-block p a {
  color: #F2B807;
  text-decoration: underline;
}

/* Section backgrounds and text colors for contrast */
.page-about__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a3c7a; /* A slightly lighter shade of the main dark blue for contrast */
  color: #ffffff;
}

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

.page-about__mission-vision-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-about__mission-vision-content .page-about__text-block {
  flex: 1;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-top: 40px;
}

.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(242, 184, 7, 0.3); /* Subtle gold border */
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 25px;
  border-radius: 8px;
}

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

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

.page-about__responsible-gaming {
  padding: 80px 0;
}

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

.page-about__responsible-gaming-content .page-about__text-block {
  flex: 1;
}

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

.page-about__image-half-width {
  width: 100%;
  height: auto;
  max-width: 600px; /* Limit max width for half-width image */
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-about__cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(90deg, #0A2463, #F2B807);
  border-top: 5px solid #F2B807;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.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: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background-color: #F2B807;
  color: #0A2463;
  border: 2px solid #F2B807;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #0A2463;
  border-color: #ffffff;
  transform: translateY(-2px);
}

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

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

/* FAQ container styles */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #0A2463;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ default state - answer hidden */
.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px !important;
  opacity: 1;
  background: #05122F;
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2463;
  border: 1px solid rgba(242, 184, 7, 0.3);
  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: #0d2a71;
  border-color: #F2B807;
}

.page-about__faq-question:active {
  background: #06153a;
}

/* Question title styles */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #F2B807; /* Gold color for FAQ questions */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

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

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

/* General image responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__mission-vision-content,
  .page-about__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__image-half-width {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .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__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section {
    padding: 50px 0;
  }
  .page-about__cta {
    padding: 70px 0;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* FAQ Mobile adjustments */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}