.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #0a0a0a is dark, so text should be light */
  background-color: #0a0a0a;
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
}

.page-about__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

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

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

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-about__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__highlight {
  color: #FFFFFF;
  font-weight: bold;
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast with body */
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__value-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-about__flex-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
}

.page-about__flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-about__content-column,
.page-about__image-column {
  flex: 1;
}

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

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

.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-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px; /* Adjust icon size */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__feature-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-text {
  color: #f0f0f0;
  font-size: 0.95em;
}

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

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__team-photo {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
}

.page-about__member-name {
  color: #26A9E0;
  font-size: 1.3em;
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-role {
  color: #f0f0f0;
  font-size: 0.9em;
}

/* Future Section */
.page-about__future-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  text-align: center;
}

.page-about__cta-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-about__cta-description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__cta-container .page-about__cta-buttons {
  gap: 15px;
}

.page-about__cta-container .page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  border-color: #EA7C07;
}

.page-about__cta-container .page-about__btn-primary:hover {
  background-color: #d66f06;
  border-color: #d66f06;
}

.page-about__cta-container .page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-about__cta-container .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  font-size: 1.1em;
  outline: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #FFFFFF;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 25px 25px 25px;
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__flex-reverse,
  .page-about__flex {
    flex-direction: column;
  }
  .page-about__content-column,
  .page-about__image-column {
    flex: none;
    width: 100%;
  }
  .page-about__image-column {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-about__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__hero-title {
    font-size: 1.8em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-column,
  .page-about__feature-icon,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important; /* Remove any padding that might cause overflow */
  }

  .page-about__feature-icon {
    max-width: 100px !important; /* Smaller but not tiny */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-about__team-photo {
    max-width: 150px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Section padding adjustments */
  .page-about__intro-section,
  .page-about__history-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__value-card,
  .page-about__feature-card,
  .page-about__team-member,
  .page-about__faq-item {
    padding: 20px;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }
}

/* Ensure content area images maintain minimum size if not scaled down by max-width: 100% */
.page-about__image-full {
  min-width: 200px;
  min-height: 150px;
}

.page-about__feature-icon {
  min-width: 100px; /* Smallest acceptable for feature icons, but not below 200 for main content */
  min-height: 100px;
}

.page-about__team-photo {
  min-width: 150px;
  min-height: 150px;
}

/* Dark background for sections for contrast */
.page-about__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body for internal sections */
  color: #ffffff;
}

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

.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__dark-section .page-about__highlight {
  color: #FFFFFF;
}