.page-about {
  color: #333333; /* Default dark text for light background */
  background: var(--dark-bg-1, #0d0d0d); /* Assuming shared body background is dark */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: #ffffff;
  background-color: #26A9E0; /* Primary brand color for hero */
  overflow: hidden;
  min-height: 500px;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.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.4); /* Darken image for text readability */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

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

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

.page-about__mission-vision-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.page-about__mission-vision-section .page-about__container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__mission-vision-section .page-about__text-block {
  flex: 1;
}

.page-about__mission-vision-section .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__mission-vision-section .page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-about__history-section {
  background-color: var(--dark-bg-1, #1a1a1a);
  padding: 80px 0;
  color: #ffffff;
}

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

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #26A9E0;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 12px;
  height: 12px;
  background: #26A9E0;
  border-radius: 50%;
  border: 2px solid #ffffff;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -6px;
  transform: translateX(50%);
}

.page-about__timeline-item:nth-child(even)::before {
  left: -6px;
  transform: translateX(-50%);
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-about__unique-selling-points {
  background-color: #f8f8f8;
  padding: 80px 0;
}

.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: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
}

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

.page-about__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-about__team-section {
  background-color: #ffffff;
  padding: 80px 0;
}

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

.page-about__team-member-card {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.page-about__team-member-image {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid #26A9E0;
}

.page-about__team-member-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 8px;
}

.page-about__team-member-role {
  font-size: 1em;
  color: #777777;
  margin-bottom: 15px;
}

.page-about__team-member-bio {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

.page-about__responsible-gaming-section {
  background-color: var(--dark-bg-1, #1a1a1a);
  padding: 80px 0;
  color: #ffffff;
}

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

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

.page-about__content-flex .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__content-flex .page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.page-about__content-flex .page-about__paragraph {
  color: #e0e0e0;
}

.page-about__content-flex .page-about__paragraph strong {
  color: #ffffff;
}

.page-about__future-outlook {
  background-color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-about__faq-section {
  background-color: #f8f8f8;
  padding: 80px 0;
}

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

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to become an X or minus */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
  transform: translateY(-2px);
}

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

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

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

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

/* General dark/light background classes for text contrast */
.page-about__dark-bg {
  background-color: var(--dark-bg-1, #0d0d0d);
  color: #ffffff;
}

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

.page-about__dark-section .page-about__paragraph {
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

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

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__mission-vision-section .page-about__container {
    flex-direction: column;
  }

  .page-about__content-flex {
    flex-direction: column;
  }

  .page-about__content-flex .page-about__text-block {
    text-align: center;
  }

  .page-about__content-flex .page-about__image-block {
    order: -1; /* Image above text on smaller screens */
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left !important;
  }

  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 9px;
    transform: translateX(0);
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__feature-icon {
    max-width: 150px;
  }

  .page-about__team-member-image {
    max-width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding: 40px 15px !important;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

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

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

  .page-about__paragraph {
    font-size: 0.95em;
    line-height: 1.6;
  }

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

  .page-about__feature-icon {
    max-width: 120px;
  }

  .page-about__team-member-image {
    max-width: 120px;
    height: 120px;
  }

  .page-about__timeline-item {
    padding-left: 50px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

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

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Responsive image and video rules */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__unique-selling-points,
  .page-about__team-section,
  .page-about__responsible-gaming-section,
  .page-about__future-outlook,
  .page-about__faq-section,
  .page-about__content-flex,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__timeline,
  .page-about__faq-list,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__cta-buttons {
    flex-direction: column;
  }

  .page-about__content-area p,
  .page-about__content-area li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Ensure content area images are not too small */
  .page-about__mission-vision-section .page-about__image,
  .page-about__responsible-gaming-section .page-about__image,
  .page-about__feature-icon,
  .page-about__team-member-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Use contain to avoid cropping if image is not square */
  }
  .page-about__feature-icon { max-width: 200px !important; }
  .page-about__team-member-image { max-width: 200px !important; }
}