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

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding if body already has header offset */
  background-color: #E53935;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover; /* Desktop default cover */
  display: block;
}

.page-about__hero-content {
  position: relative; /* Not absolute, to ensure "image above text" */
  padding: 40px 20px;
  color: #ffffff;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap the image bottom for visual flow */
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.8) 0%, rgba(255, 90, 79, 0.8) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1; /* Ensure content is above image when overlapping */
}

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

.page-about__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__story-section,
.page-about__values-section,
.page-about__responsible-gaming-section,
.page-about__team-section,
.page-about__faq-section,
.page-about__contact-cta-section {
  padding: 60px 0;
}

.page-about__story-section {
  background-color: #ffffff;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-about__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333333;
}

.page-about__image-right,
.page-about__image-left {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-about__values-section {
  background-color: #F5F7FA;
}

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

.page-about__value-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

.page-about__responsible-gaming-section {
  background-color: #ffffff;
}

.page-about__team-section {
  background-color: #F5F7FA;
}

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

.page-about__team-member-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__team-member-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__team-member-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #E53935;
}

.page-about__team-member-title {
  font-size: 1rem;
  color: #FF5A4F;
  margin-bottom: 15px;
}

.page-about__faq-section {
  background-color: #ffffff;
}

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

.page-about__faq-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #F8F8F8;
  color: #333333;
  list-style: none; /* For details tag */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  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: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

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

.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
}

.page-about__contact-cta-section .page-about__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__contact-cta-section .page-about__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__dark-section .page-about__btn-primary {
  background: #ffffff;
  color: #E53935;
}

.page-about__dark-section .page-about__btn-primary:hover {
  background: #f0f0f0;
  color: #E53935;
}

/* General image sizing for content area */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -50px;
  }

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-about__image-right,
  .page-about__image-left {
    max-width: 100%;
  }

  .page-about__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-about__values-section, .page-about__team-section, .page-about__faq-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .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 !important;
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Mobile default contain */
    max-height: none !important;
    aspect-ratio: unset !important;
  }

  .page-about__hero-content {
    margin-top: 0 !important; /* No overlap on mobile */
    padding: 30px 15px;
    border-radius: 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__main-title {
    font-size: 2rem !important;
  }

  .page-about__hero-description {
    font-size: 1rem !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !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__section-title {
    font-size: 2rem !important;
    margin-bottom: 30px;
  }

  .page-about__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__story-section,
  .page-about__values-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 30px 0;
  }

  .page-about__content-wrapper {
    gap: 20px;
  }

  .page-about__text-block p {
    font-size: 0.95rem;
  }

  .page-about__image-right,
  .page-about__image-left {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-about__value-icon,
  .page-about__team-member-avatar {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100px; /* Keep original specified size for display, but min 200px */
    height: 100px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-about__contact-cta-section {
    padding: 50px 0;
  }

  /* Universal image and container sizing for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__grid,
  .page-about__team-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}