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

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

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

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #007BFF;
  text-align: center;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
}

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

.page-about__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-about__card h3 {
  color: #007BFF;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1; /* Allow content to grow */
}

.page-about__card a {
  margin-top: 15px;
  align-self: flex-start; /* Align button to start */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-about__btn-primary,
.page-about__cta-button {
  background-color: #007BFF;
  color: #ffffff;
  border: 2px solid #007BFF;
}

.page-about__btn-primary:hover,
.page-about__cta-button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

/* 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-color: #007BFF; /* Ensure a base color */
  color: #ffffff;
  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;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-about__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFC107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Intro Section */
.page-about__intro-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-about__feature-item .page-about__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.page-about__feature-item .page-about__bullet-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  color: #555555;
}

.page-about__feature-item .page-about__bullet-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFC107;
  font-weight: bold;
}

/* Gaming Section */
.page-about__gaming-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__game-item .page-about__game-title {
  color: #007BFF;
}

.page-about__image-container {
  margin: 40px auto;
  max-width: 1000px;
}

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

/* Safety Section */
.page-about__safety-section {
  background-color: #007BFF;
  color: #ffffff;
}

.page-about__safety-section .page-about__section-title {
  color: #FFC107;
}

.page-about__safety-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__safety-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__safety-section .page-about__card h3 {
  color: #FFC107;
}

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

.page-about__safety-section .page-about__card a {
  color: #FFC107;
  text-decoration: underline;
}

.page-about__safety-section .page-about__card a:hover {
  color: #ffe08a;
}

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

.page-about__image-container--small {
  max-width: 700px;
}

/* Promotions Section */
.page-about__promotions-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-about__promotion-item .page-about__promotion-title {
  color: #007BFF;
}

/* Support Section */
.page-about__support-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__channel-item .page-about__channel-title {
  color: #007BFF;
}

.page-about__channel-item a {
  color: #007BFF;
  text-decoration: underline;
}

.page-about__channel-item a:hover {
  color: #0056b3;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #007BFF;
  color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: #FFC107;
}

.page-about__responsible-gaming-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__responsible-gaming-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__responsible-gaming-section .page-about__card h3 {
  color: #FFC107;
}

.page-about__responsible-gaming-section .page-about__card p {
  color: #f0f0f0;
}

.page-about__responsible-gaming-section .page-about__card a {
  color: #FFC107;
  text-decoration: underline;
}

.page-about__responsible-gaming-section .page-about__card a:hover {
  color: #ffe08a;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

.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;
  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: 18px; /* Increased font size for better readability */
  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: #007BFF;
  transform: rotate(180deg);
}

.page-about__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

.page-about__faq-answer a {
  color: #007BFF;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #0056b3;
}

/* Global image styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
}

@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;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    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__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__container {
    padding: 15px;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__card h3 {
    font-size: 20px;
  }
  .page-about__feature-grid,
  .page-about__game-grid,
  .page-about__info-grid,
  .page-about__promotion-grid,
  .page-about__support-channels,
  .page-about__responsible-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .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-container,
  .page-about__image-container,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__hero-title {
    font-size: 28px;
  }
  .page-about__hero-description {
    font-size: 15px;
  }
  .page-about__text-block {
    font-size: 15px;
  }
  .page-about__card h3 {
    font-size: 18px;
  }
  .page-about__card p {
    font-size: 14px;
  }
  .page-about__faq-question h3 {
    font-size: 15px;
  }
}