.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__hero-intro-section {
  text-align: center;
  padding: 80px 0 60px 0;
  background: linear-gradient(135deg, #E0F2F7, #FFFFFF); /* Lighter gradient for intro */
}

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

.page-about__hero-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__hero-image-wrapper {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

.page-about__btn-primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__section-title {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

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

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

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

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

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

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

.page-about__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

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

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

.page-about__card--inverted {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark section */
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__card--inverted .page-about__card p {
  color: #f0f0f0;
}

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

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

.page-about__feature-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__feature-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Use contain for feature icons */
  margin-bottom: 20px;
}

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

.page-about__feature-item p {
  font-size: 16px;
  color: #555555;
}

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

.page-about__responsible-gaming-section img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__content-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__content-subtitle {
  font-size: 28px;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-about__content-block ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-about__content-block li {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #333;
}

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

.page-about__cta-content {
  max-width: 900px;
}

.page-about__cta-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-about__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-about__btn-large {
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 38px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__cta-title {
    font-size: 34px;
  }
  .page-about__content-grid,
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-intro-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 50px 0;
  }
  .page-about__hero-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .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 25px;
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .page-about__content-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card img {
    height: 200px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__feature-item img {
    
  }
  .page-about__feature-title {
    font-size: 18px;
  }
  .page-about__content-subtitle {
    font-size: 24px;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
    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__cta-title {
    font-size: 30px;
  }
  .page-about__cta-description {
    font-size: 16px;
  }
  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-intro-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color contrast fixes based on body background #FFFFFF */
.page-about {
  color: #333333; /* Dark text for light background */
}

.page-about__dark-bg {
  color: #ffffff; /* Dark background with light text */
  background: #26A9E0;
}

.page-about__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-about__medium-bg {
  color: #000000; /* Default dark text */
  background: #FFFFFF;
}

.page-about__content-area,
.page-about__text-block {
  color: #333333;
  background: #ffffff;
}

.page-about p,
.page-about li {
  color: #555555;
}

.page-about__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

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

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

/* Emergency fix for contrast */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}