.page-index-platform-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-main); /* Inherited from shared.css, typically a dark color */
}

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

.page-index-platform-features__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-platform-features__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-index-platform-features__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-index-platform-features__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  box-sizing: border-box;
}

.page-index-platform-features__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  background-size: cover;
}

.page-index-platform-features__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-index-platform-features__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-index-platform-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-index-platform-features__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-platform-features__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-index-platform-features__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-index-platform-features__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index-platform-features__btn-secondary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

/* Content sections layout */
.page-index-platform-features__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-index-platform-features__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-index-platform-features__text-block,
.page-index-platform-features__image-block {
  flex: 1;
}

.page-index-platform-features__text-block p {
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index-platform-features__security-section .page-index-platform-features__text-block p,
.page-index-platform-features__promotions-section .page-index-platform-features__text-block p,
.page-index-platform-features__responsible-gaming-section .page-index-platform-features__text-block p {
  color: #333333;
}

.page-index-platform-features__security-section .page-index-platform-features__section-title,
.page-index-platform-features__promotions-section .page-index-platform-features__section-title,
.page-index-platform-features__responsible-gaming-section .page-index-platform-features__section-title {
  color: #017439;
}

.page-index-platform-features__security-section,
.page-index-platform-features__promotions-section,
.page-index-platform-features__responsible-gaming-section {
  background-color: #ffffff;
  color: #333333;
}

.page-index-platform-features__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__game-list,
.page-index-platform-features__promo-list,
.page-index-platform-features__ui-ux-list,
.page-index-platform-features__support-list,
.page-index-platform-features__payment-list,
.page-index-platform-features__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-index-platform-features__game-item,
.page-index-platform-features__promo-item,
.page-index-platform-features__ui-ux-item,
.page-index-platform-features__support-item,
.page-index-platform-features__payment-item,
.page-index-platform-features__responsible-gaming-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: left;
}

.page-index-platform-features__security-section .page-index-platform-features__text-block h3,
.page-index-platform-features__promotions-section .page-index-platform-features__promo-title,
.page-index-platform-features__responsible-gaming-section .page-index-platform-features__responsible-gaming-title {
  color: #017439;
}

.page-index-platform-features__game-item h3,
.page-index-platform-features__promo-item h3,
.page-index-platform-features__ui-ux-item h3,
.page-index-platform-features__support-item h3,
.page-index-platform-features__payment-item h3,
.page-index-platform-features__responsible-gaming-item h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-index-platform-features__game-item p,
.page-index-platform-features__promo-item p,
.page-index-platform-features__ui-ux-item p,
.page-index-platform-features__support-item p,
.page-index-platform-features__payment-item p,
.page-index-platform-features__responsible-gaming-item p {
  color: #f0f0f0;
}

.page-index-platform-features__security-section .page-index-platform-features__image-block img,
.page-index-platform-features__promotions-section .page-index-platform-features__image-block img,
.page-index-platform-features__responsible-gaming-section .page-index-platform-features__image-block img {
  border: 1px solid #e0e0e0;
}

.page-index-platform-features__app-download-buttons {
  margin-top: 20px;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-index-platform-features__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.page-index-platform-features__faq-item summary {
  list-style: none;
}

.page-index-platform-features__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-platform-features__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index-platform-features__faq-qtext {
  flex-grow: 1;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-toggle {
  transform: rotate(45deg);
}

.page-index-platform-features__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-index-platform-features__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Bottom CTA */
.page-index-platform-features__cta-bottom-section {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-index-platform-features__cta-bottom-content {
  max-width: 800px;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__section-title {
  color: #017439;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__text-block {
  color: #333333;
  margin-bottom: 30px;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__btn-secondary {
  background-color: #017439;
  border-color: #017439;
  color: #ffffff;
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__btn-secondary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-index-platform-features__hero-title {
    font-size: 2.8em;
  }

  .page-index-platform-features__section-title {
    font-size: 2em;
  }

  .page-index-platform-features__content-wrapper {
    flex-direction: column;
  }

  .page-index-platform-features__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-index-platform-features__text-block,
  .page-index-platform-features__image-block {
    width: 100%;
  }

  .page-index-platform-features__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-platform-features__hero-section {
    height: 70vh;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index-platform-features__hero-title {
    font-size: 2em;
  }

  .page-index-platform-features__hero-description {
    font-size: 1em;
  }

  .page-index-platform-features__section {
    padding: 40px 0;
  }

  .page-index-platform-features__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-platform-features__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-index-platform-features video,
  .page-index-platform-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-platform-features__hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* All containers with images/videos/buttons */
  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container,
  .page-index-platform-features__content-wrapper,
  .page-index-platform-features__image-block,
  .page-index-platform-features__video-section,
  .page-index-platform-features__video-container,
  .page-index-platform-features__video-wrapper,
  .page-index-platform-features__cta-buttons,
  .page-index-platform-features__button-group,
  .page-index-platform-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary,
  .page-index-platform-features a[class*="button"],
  .page-index-platform-features 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-left: 15px;
    padding-right: 15px;
  }

  .page-index-platform-features__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-platform-features__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-index-platform-features__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-index-platform-features__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-platform-features__hero-title {
    font-size: 1.8em;
  }

  .page-index-platform-features__section-title {
    font-size: 1.5em;
  }
}