.page-about {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure main content background matches body */
}

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

.page-about__dark-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  min-height: 600px;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  position: absolute;
  top: 0;
  left: 0;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-about__card.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__card.page-about__light-bg .page-about__card-title {
  color: #0A2463;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #FFD700;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.page-about__timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  background: #0A2463;
  border: 2px solid #FFD700;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-title {
  font-size: 1.5em;
  color: #FFD700;
  width: 45%;
  text-align: right;
  padding-right: 20px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-title {
  text-align: left;
  padding-left: 20px;
  padding-right: 0;
}

.page-about__timeline-item p {
  width: 45%;
  padding-left: 20px;
  box-sizing: border-box;
  text-align: left;
}

.page-about__timeline-item:nth-child(even) p {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
}

.page-about__history-image {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__service-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-about__service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__service-card .page-about__card-title {
  color: #0A2463;
  font-size: 1.6em;
}

.page-about__service-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-about__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__responsible-gaming-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  text-align: left;
}

.page-about__sub-title {
  font-size: 2em;
  color: #0A2463;
  margin-bottom: 20px;
}

.page-about__responsible-gaming-text ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-about__responsible-gaming-text li {
  margin-bottom: 10px;
}

.page-about__advantage-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #0A2463;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #081f52;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  color: #333333;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-3-col, .page-about__grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__responsible-gaming-content {
    flex-direction: column;
    align-items: center;
  }
  .page-about__responsible-gaming-image, .page-about__responsible-gaming-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text-block {
    font-size: 0.95em;
  }
  .page-about__grid-3-col, .page-about__grid-2-col {
    grid-template-columns: 1fr;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
  }
  .page-about__timeline-item::after {
    left: 15px;
    top: 0;
  }
  .page-about__timeline-title,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-title {
    width: 100%;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 10px;
  }
  .page-about__timeline-item p,
  .page-about__timeline-item:nth-child(even) p {
    width: 100%;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__history-image,
  .page-about__service-image,
  .page-about__feature-icon,
  .page-about__responsible-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__services-section,
  .page-about__tech-security-section,
  .page-about__responsible-gaming-section,
  .page-about__why-choose-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-question, .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}