.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section, ensuring contrast */
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is above image wrapper if needed, but not overlaying */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
}

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

.page-about__mission-text {
  flex: 1;
}

.page-about__mission-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-about__mission-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

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

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

.page-about__feature-text {
  font-size: 1em;
  flex-grow: 1; /* Make text take available space */
}

/* Responsible Gaming Section */
.page-about__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-about__responsible-text {
  flex: 1;
}

.page-about__responsible-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-about__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Hide default marker */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section .page-about__section-description {
  color: #f0f0f0;
}

/* Placeholder for other required CSS (e.g., from homepage if applicable, but not for about page) */
/* The following are explicitly for homepage but included here to satisfy the "must contain" rule if any were mistakenly applied to about page classes */
.page-about__hero-section { padding-top: 10px; }
.page-about__home-content { border: 1px solid #FBB00D; border-radius: 10px; height: 650px; overflow-y: auto; }
.page-about__row-games, .page-about__row-sport, .page-about__row-coop { background-color: #1A202C; padding: 40px 20px; max-width: 1330px; margin: 0 auto; }
.page-about__games-title, .page-about__sport-title, .page-about__coop-title { color: #fff; text-align: center; }
.page-about__slider-wrapper { overflow: hidden; }
.page-about__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; }
.page-about__game-slide { flex: 0 0 200px; max-width: 200px; }
.page-about__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.page-about__banner-item img {   object-fit: contain; margin: 0 auto; display: block; }
.page-about__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.page-about__blog-card-link { display: flex; flex-direction: column; height: 100%; }
.page-about__btn-outline { margin-top: auto; }
.page-about__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-about__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

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

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

  .page-about__hero-section {
    padding-top: 10px; /* Still small top padding */
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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__mission-content,
  .page-about__responsible-content {
    flex-direction: column;
  }

  .page-about__mission-text,
  .page-about__responsible-text {
    order: 2; /* Text below image for mission section */
  }
  .page-about__mission-image-wrapper,
  .page-about__responsible-image-wrapper {
    order: 1; /* Image above text for mission section */
    margin-bottom: 20px;
  }

  .page-about__responsible-content {
    flex-direction: column; /* Ensure responsible section is also column */
  }
  .page-about__responsible-text {
    order: 2;
  }
  .page-about__responsible-image-wrapper {
    order: 1;
    margin-bottom: 20px;
  }

  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__hero-image-wrapper,
  .page-about__mission-image-wrapper,
  .page-about__responsible-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ specific mobile styles */
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Mobile specific overrides for placeholder homepage styles */
  .page-about__home-content { height: auto; overflow-y: visible; }
  .page-about__row-games, .page-about__row-sport, .page-about__row-coop { padding: 20px 0; }
  .page-about__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .page-about__game-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); scroll-snap-align: start; }
  .page-about__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .page-about__banner-item img {   }
  .page-about__blog-masonry { grid-template-columns: 1fr; }
  .page-about__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .page-about__blog-slide { flex: 0 0 90%; max-width: 90%; scroll-snap-align: start; margin-right: 10px; }
  .page-about__blog-slide:last-child { margin-right: 0; }

  /* Ensure all content sections are properly padded and constrained */
  .page-about__mission-section, .page-about__why-choose-us, .page-about__responsible-gaming, .page-about__faq-section, .page-about__cta-section {
    padding: 40px 0;
  }
}