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

.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, #FFFFFF);
  color: #333333;
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000; /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-about__hero-description {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-about__cta-button:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-about__section {
  padding: 60px 20px;
}

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

.page-about__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Primary color */
}

.page-about__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
  color: #333333;
}

.page-about__text-block a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-block a:hover {
  text-decoration: underline;
}

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

.page-about__image-container {
  margin: 40px 0;
  text-align: center;
}

.page-about__image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__dark-bg {
  background-color: #26A9E0; /* Primary color */
  color: #ffffff;
}

.page-about__dark-bg .page-about__heading,
.page-about__dark-bg .page-about__text-block,
.page-about__dark-bg .page-about__card-title,
.page-about__dark-bg .page-about__card-text,
.page-about__dark-bg .page-about__highlight {
  color: #ffffff;
}

.page-about__dark-bg .page-about__card {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  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-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0; /* Primary color */
}

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

.page-about__why-choose-section .page-about__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__feature-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0; /* Primary color accent */
  transition: background-color 0.3s ease;
}

.page-about__feature-item:hover {
  background-color: #f0f8ff; /* Light blue hover */
}

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

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-about__responsible-gaming-section .page-about__btn-secondary {
  margin-top: 30px;
  display: inline-block;
}

/* FAQ Section Styles */
.page-about__faq-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

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

.page-about__faq-question:hover {
  background: #f0f8ff;
  border-color: #c0d8f0;
}

.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; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color */
  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: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate to form 'X' or '−' */
  color: #000000;
}

.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 25px;
  opacity: 0;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

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

.page-about__cta-bottom-section .page-about__heading {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-about__cta-bottom-section .page-about__text-block {
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__heading {
    font-size: 30px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 22px;
  }
  .page-about__feature-title {
    font-size: 20px;
  }
}

@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;
  }
  .page-about__hero-description {
    font-size: 16px;
    max-width: 100%;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__heading {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-about__image-container {
    margin: 30px 0;
  }
  .page-about__image-container img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }
  .page-about__card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__feature-list {
    gap: 20px;
  }
  .page-about__feature-item {
    padding: 25px;
  }
  .page-about__feature-title {
    font-size: 18px;
  }
  .page-about__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__cta-bottom-section {
    padding: 60px 15px;
  }
  .page-about__cta-bottom-section .page-about__heading {
    font-size: 28px;
  }
  .page-about__cta-bottom-section .page-about__text-block {
    font-size: 16px;
  }
  .page-about__cta-bottom-section .page-about__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 28px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__heading {
    font-size: 24px;
  }
  .page-about__card-title {
    font-size: 18px;
  }
  .page-about__feature-title {
    font-size: 17px;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 22px;
  }
}