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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #0A192F;
  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: #FFD700;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: #0A192F;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

.page-about__text-block {
  padding: 40px 0;
}

.page-about__text-center {
  text-align: center;
}

.page-about__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

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

.page-about__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list-item {
  background-color: #ffffff;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: #333333;
}

.page-about__list-item strong {
  color: #0A192F;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #0A192F;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold for main title on dark background */
}

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

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure text wraps within button */
}

.page-about__btn-primary {
  background: #FFD700;
  color: #0A192F;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-about__center-button {
  text-align: center;
  margin-top: 30px;
}

.page-about__margin-top-large {
  margin-top: 60px;
}

/* Intro Section */
.page-about__intro-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 60px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-about__advantages-section .page-about__section-title {
  color: #FFD700;
}

.page-about__advantages-section .page-about__section-title::after {
  background-color: #FFD700;
}

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

.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333; /* Default text color for light cards */
}

.page-about__card--dark {
  background: #1a2a47; /* Slightly lighter dark blue for cards on dark background */
  color: #f0f0f0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__card--dark .page-about__card-image {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: #0A192F;
}

.page-about__card--dark .page-about__card-title {
  color: #FFD700;
}

.page-about__card-description {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-about__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px 20px;
  background: #FFD700;
  color: #0A192F;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__card-link:hover {
  background: #e6c200;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-about__faq-section .page-about__section-title {
  color: #FFD700;
}

.page-about__faq-section .page-about__section-title::after {
  background-color: #FFD700;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a2a47;
  color: #FFD700;
  border: 1px solid #2b3e60;
  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: #2b3e60;
  border-color: #3c527e;
}

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

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: #ffffff;
}

.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;
  color: #333333;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* News Section */
.page-about__news-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-about__blog-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-about__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-grow: 1;
}

.page-about__blog-item-title {
  font-size: 20px;
  font-weight: 600;
  margin: 15px 20px 10px 20px;
  color: #0A192F;
}

.page-about__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.5;
  padding: 0 20px;
  color: #555555;
  flex-grow: 1;
}

.page-about__blog-item-date {
  font-size: 13px;
  color: #888888;
  padding: 0 20px 15px 20px;
  display: block;
  margin-top: 10px;
}

/* Final CTA Section */
.page-about__cta-final-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
  text-align: center;
}

.page-about__cta-final-section .page-about__section-title {
  color: #FFD700;
}

.page-about__cta-final-section .page-about__section-title::after {
  background-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__sub-title {
    font-size: 24px;
  }
  .page-about__paragraph, .page-about__list-item, .page-about__card-description, .page-about__faq-answer p, .page-about__blog-item-excerpt {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__faq-question h3 {
    font-size: 17px;
  }
  .page-about__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__main-title {
    font-size: 36px;
  }
  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 22px;
  }
  .page-about__intro-section, .page-about__advantages-section, .page-about__responsible-gaming-section, .page-about__faq-section, .page-about__news-section, .page-about__cta-final-section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-about__text-block {
    padding: 20px 0;
  }
  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .page-about__card-image {
    height: 200px;
  }
  .page-about__card-title {
    font-size: 18px;
    margin: 15px 15px 8px 15px;
  }
  .page-about__card-description {
    font-size: 15px;
    padding: 0 15px 15px 15px;
  }
  .page-about__card-link {
    margin: 0 15px 15px 15px;
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-about__faq-list {
    margin-top: 30px;
  }
  .page-about__faq-item {
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__faq-answer p {
    font-size: 15px;
  }
  .page-about__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__blog-image {
    height: 180px;
  }
  .page-about__blog-item-title {
    font-size: 18px;
    margin: 12px 15px 8px 15px;
  }
  .page-about__blog-item-excerpt {
    font-size: 14px;
    padding: 0 15px;
  }
  .page-about__blog-item-date {
    font-size: 12px;
    padding: 0 15px 12px 15px;
  }
  .page-about__margin-top-large {
    margin-top: 40px;
  }
}