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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb0 100%); /* Brand color gradient */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-about__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* General Section Styling */
.page-about__section {
  padding: 60px 20px;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Light Background Section */
.page-about__light-bg {
  background: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__grid-title,
.page-about__light-bg .page-about__feature-title,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__paragraph {
  color: #333333;
}

/* Dark Background Section */
.page-about__dark-bg {
  background: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__grid-title,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__card-title,
.page-about__dark-bg .page-about__paragraph,
.page-about__dark-bg .page-about__values-heading {
  color: #ffffff;
}

/* Mission Vision Grid */
.page-about__mission-vision .page-about__container {
  flex-direction: column;
}

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

.page-about__grid-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-about__grid-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Core Values Section */
.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__values-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__values-heading {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #26A9E0;
}

/* Team Section */
.page-about__team-section .page-about__container {
  flex-direction: column;
  text-align: center;
}

.page-about__team-image-wrapper {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-about__team-image {
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Security and Responsible Gaming */
.page-about__security-responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Light text for dark card background */
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-text {
  font-size: 1.05em;
  line-height: 1.6;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__container {
  flex-direction: column;
}

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

.page-about__feature-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Dark text for light card background */
}

.page-about__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__feature-text {
  font-size: 1.05em;
  line-height: 1.6;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

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

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

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

.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; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 0;
}

/* Contact CTA */
.page-about__contact-cta {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
}

.page-about__contact-content .page-about__section-title,
.page-about__contact-content .page-about__paragraph {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    text-align: center;
  }
  .page-about__container {
    flex-direction: column;
    gap: 30px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__hero-content {
    text-align: center;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__paragraph {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__team-image-wrapper,
  .page-about__security-responsible-grid,
  .page-about__features-grid,
  .page-about__card,
  .page-about__feature-card,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__grid-item,
  .page-about__values-item {
    padding: 20px;
  }
  .page-about__grid-title,
  .page-about__values-heading,
  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-heading {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__grid-title,
  .page-about__values-heading,
  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.3em;
  }
}