.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

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

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

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

.page-about__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 70vh;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  padding-left: 20px;
}

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

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

.page-about__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  color: #fff;
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

.page-about__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-about__mission-vision,
.page-about__history,
.page-about__responsible-gambling {
  padding: 80px 0;
}

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

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-about__text-block h3 {
  color: inherit;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-about__text-block ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__text-block li {
  margin-bottom: 8px;
  color: inherit;
}

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

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

.page-about__values {
  padding: 80px 0;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark sections */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__light-bg .page-about__card {
  background-color: #ffffff; /* White background for cards on light sections */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__values-title,
.page-about__feature-title,
.page-about__team-name,
.page-about__faq-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__why-choose-us {
  padding: 80px 0;
}

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

.page-about__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-about__team {
  padding: 80px 0;
}

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

.page-about__team-member {
  text-align: center;
}

.page-about__team-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid #017439;
}

.page-about__team-position {
  font-style: italic;
  color: #666666;
  margin-bottom: 10px;
}

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

.page-about__dark-section .page-about__team-position,
.page-about__dark-section .page-about__team-bio {
  color: #f0f0f0;
}

.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

.page-about__light-bg .page-about__faq-item {
  background-color: #f9f9f9;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__light-bg .page-about__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__light-bg .page-about__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-about__faq-item.active .page-about__faq-question {
  border-bottom: none;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-about__faq-answer p {
  margin-bottom: 15px;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-about__hero-content {
    padding-left: 0;
    max-width: 100%;
  }

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

  .page-about__hero-image-wrapper {
    padding-right: 0;
    margin-top: 40px;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 40px;
  }

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

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

  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__card {
    padding: 25px;
  }
}

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-about__video-section,
  .page-about__mission-vision,
  .page-about__history,
  .page-about__values,
  .page-about__why-choose-us,
  .page-about__responsible-gambling,
  .page-about__team,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-image,
  .page-about__content-image,
  .page-about__feature-icon,
  .page-about__team-photo {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__faq-question {
    padding: 15px;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all containers with images/videos/buttons are constrained */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__video-section,
  .page-about__mission-vision,
  .page-about__history,
  .page-about__values,
  .page-about__why-choose-us,
  .page-about__responsible-gambling,
  .page-about__team,
  .page-about__faq-section,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}