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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__heading {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-about__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-about__inline-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

.page-about__inline-link:hover {
  color: #1a7bb5;
}

/* Hero Section */
.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);
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  color: #FFFFFF;
}

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFFFFF;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 15px;
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  margin-top: 40px;
}

/* Story & Mission Section */
.page-about__story-mission .page-about__heading {
  color: #26A9E0;
}

/* Values & Commitment Section */
.page-about__values-commitment .page-about__heading {
  color: #FFFFFF;
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 16px;
  color: #555555;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__heading {
  color: #26A9E0;
}

.page-about__feature-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.page-about__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__feature-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate layout for visual interest */
}

.page-about__feature-title {
  font-size: 28px;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-about__feature-text {
  font-size: 17px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.7;
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 20px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Licensing & Regulation Section */
.page-about__licensing-regulation .page-about__heading {
  color: #FFFFFF;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__heading {
  color: #26A9E0;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px;
  max-width: 800px;
  text-align: left;
}

.page-about__list-item {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-about__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__image-center {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section .page-about__heading {
  color: #26A9E0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Changed from '-' to rotate '+' for consistency */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-radius: 0 0 5px 5px;
}

/* Contact CTA Section */
.page-about__contact-cta {
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  color: #FFFFFF;
  padding: 80px 0;
}

.page-about__contact-cta .page-about__heading,
.page-about__contact-cta .page-about__paragraph {
  color: #FFFFFF;
}

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

  .page-about__hero-description {
    font-size: 18px;
  }

  .page-about__heading {
    font-size: 32px;
  }

  .page-about__card-title {
    font-size: 22px;
  }

  .page-about__feature-title {
    font-size: 26px;
  }
}

@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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__cta-button--small, .page-about__cta-button--large {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__paragraph {
    font-size: 16px;
  }

  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__feature-list {
    gap: 40px;
  }

  .page-about__feature-item {
    padding: 30px;
  }

  .page-about__feature-item:nth-child(even) {
    flex-direction: column; /* Reset alternating layout for mobile */
  }

  .page-about__feature-title {
    font-size: 24px;
  }

  .page-about__feature-text {
    font-size: 16px;
  }

  .page-about__feature-image, .page-about__image-full-width, .page-about__image-center {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__list {
    margin: 20px auto 30px;
  }

  .page-about__list-item {
    font-size: 16px;
    padding-left: 25px;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

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

  .page-about__cta-button--large {
    padding: 15px 35px;
    font-size: 18px;
    margin-top: 30px;
  }
}