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

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff; /* White text on primary background */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Or 100% of container */
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-about__hero-content {
  width: 100%;
  max-width: 800px;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-about__description-center {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center; /* Center button text */
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
  border-color: #1e87b7;
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Primary color for section titles */
}

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

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-about__dark-section .page-about__sub-title {
  color: #ffffff;
}

/* Sections */
.page-about__mission-section,
.page-about__why-choose-us,
.page-about__games-overview,
.page-about__responsible-gaming,
.page-about__faq-section,
.page-about__cta-bottom {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__mission-section p,
.page-about__responsible-gaming p {
  color: #333333;
}

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


.page-about__grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

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

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

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-about__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-about__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px 20px 5px;
  color: #26A9E0;
}

.page-about__game-title a {
  text-decoration: none;
  color: #26A9E0;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #1e87b7;
  text-decoration: underline;
}

.page-about__game-card p {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 20px 20px;
}

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

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

.page-about__responsible-content .page-about__image-wrapper {
  flex: 1;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1e87b7;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  user-select: none;
}

.page-about__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  color: #333333;
  border-top: 1px solid #e0e0e0;
  font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__grid {
    flex-direction: column;
  }
  .page-about__grid--reverse {
    flex-direction: column;
  }
  .page-about__responsible-content {
    flex-direction: column;
  }
}

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-about__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.2rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-about__cta-buttons .page-about__btn-primary,
  .page-about__cta-buttons .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-height: 200px !important; /* Ensure minimum size */
  }
  
  /* All content containers for mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-us,
  .page-about__games-overview,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-bottom,
  .page-about__grid,
  .page-about__features-grid,
  .page-about__game-categories,
  .page-about__responsible-content,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__game-image {
    height: auto !important; /* Allow height to adjust for mobile */
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
}

/* Ensure minimum image size for content images */
.page-about__image,
.page-about__game-image {
  min-width: 200px;
  min-height: 200px;
}