.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for page-about, assuming dark body background */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #26A9E0; /* Fallback for hero section background */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

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

.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: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-about__section-description-bottom {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0 auto;
  line-height: 1.6;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p,
.page-about__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-about__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__text-link:hover {
  color: #1a7bb7;
}

/* Color contrast logic */
.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title,
.page-about__dark-bg .page-about__text-link {
  color: #ffffff;
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__text-link {
  color: #26A9E0;
}

/* Mission & Vision */
.page-about__mission-section .page-about__content-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  min-width: 200px;
  min-height: 200px;
}

/* 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__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

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

.page-about__value-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

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

.page-about__commitment-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-about__game-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

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

.page-about__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 15px 10px 10px 10px;
}

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

.page-about__game-title a:hover {
  text-decoration: underline;
}

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

/* Security Section */
.page-about__security-section .page-about__content-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

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

.page-about__security-item {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__security-item strong {
  color: #ffffff;
}

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

.page-about__responsible-item {
  background-color: #f0f7ff; /* Lighter background for light-bg section */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-about__responsible-item strong {
  color: #26A9E0;
}

.page-about__responsible-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* Support Section */
.page-about__support-section .page-about__content-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__support-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__support-item {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__support-item strong {
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-item details {
  width: 100%;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f7ff;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

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

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

/* Future Section */
.page-about__future-section {
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__security-section .page-about__content-grid {
    grid-template-areas: "text image";
  }

  .page-about__security-section .page-about__text-block {
    grid-area: text;
  }

  .page-about__security-section .page-about__image-block {
    grid-area: image;
  }

  .page-about__support-section .page-about__content-grid {
    grid-template-areas: "image text";
  }

  .page-about__support-section .page-about__text-block {
    grid-area: text;
  }

  .page-about__support-section .page-about__image-block {
    grid-area: image;
  }
}

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

  .page-about__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: 2rem; /* Adjusted for mobile */
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

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

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

  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-about__value-item,
  .page-about__commitment-item,
  .page-about__responsible-item {
    padding: 20px;
  }

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

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

  .page-about__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}