.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  font-weight: bold;
}

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

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

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

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__sub-title:first-of-type {
  margin-top: 0;
}

.page-about__image-block img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  display: block;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-about__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #26A9E0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
}

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

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

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #26A9E0;
  border: 4px solid #ffffff;
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -12px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -12px;
}

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

.page-about__timeline-title {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a7bbd;
  color: #ffffff;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__feature-card .page-about__card-title {
  color: #ffffff;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensures button adapts to container */
  white-space: normal; /* Allows text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
  border-color: #1a7bbd;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f0f8ff;
  color: #333333;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

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

.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);
}

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

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

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

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

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__image-block {
    order: -1; /* Move image above text on smaller screens */
  }

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

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

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 20px;
  }

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

  .page-about__timeline-item::after {
    left: 10px;
  }
}

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

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

  .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__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__mission-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__responsible-gaming-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

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

  .page-about__content-grid {
    gap: 30px;
  }

  .page-about__values-grid,
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .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: 12px 20px;
  }

  /* Image and Video responsive rules */
  .page-about img,
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-block,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

  .page-about__timeline-item::after {
    left: 5px;
  }
}