/* style/index-platform-features.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-index-platform-features {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-index-platform-features__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index-platform-features__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-platform-features__text-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-platform-features__text-link:hover {
  color: #F2C14E; /* Gold */
  text-decoration: underline;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for decorative spacing */
  overflow: hidden;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

.page-index-platform-features__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.page-index-platform-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-index-platform-features__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-index-platform-features__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-index-platform-features__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-platform-features__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-index-platform-features__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-index-platform-features__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-index-platform-features__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2FFF6; /* Text Main */
  border-color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

/* Features Overview Section */
.page-index-platform-features__features-overview {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-index-platform-features__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-platform-features__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-index-platform-features__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__feature-icon {
  width: 100%; /* Ensure images are large */
  max-width: 400px; /* Recommended size for content images */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px;
}

.page-index-platform-features__feature-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-platform-features__feature-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-index-platform-features__why-choose-us {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-index-platform-features__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-platform-features__advantage-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-index-platform-features__advantage-icon-wrapper {
  font-size: 3em;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-index-platform-features__advantage-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-platform-features__advantage-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Game Providers Section */
.page-index-platform-features__game-providers {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-index-platform-features__providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page-index-platform-features__provider-logo {
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.2); /* Allowed for stylistic logos, not content images */
  transition: filter 0.3s ease;
  min-width: 200px;
  min-height: 100px;
}

.page-index-platform-features__provider-logo:hover {
  filter: brightness(1) grayscale(0);
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

.page-index-platform-features__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-index-platform-features__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
  background-color: #0A4B2C;
  filter: brightness(1.2);
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-index-platform-features__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* Details tag specific styling for FAQ */
.page-index-platform-features__faq-item[open] > .page-index-platform-features__faq-question {
  background-color: #0A4B2C;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-platform-features__section-title {
    font-size: 2em;
  }
  .page-index-platform-features__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-index-platform-features__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-index-platform-features__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-index-platform-features__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index-platform-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-index-platform-features__features-overview,
  .page-index-platform-features__why-choose-us,
  .page-index-platform-features__game-providers,
  .page-index-platform-features__faq-section {
    padding: 40px 0;
  }
  .page-index-platform-features__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-index-platform-features__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-index-platform-features__feature-grid,
  .page-index-platform-features__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-platform-features__feature-card,
  .page-index-platform-features__advantage-item {
    padding: 20px;
  }
  .page-index-platform-features__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-index-platform-features__provider-logo {
    max-width: 150px;
    height: 75px;
    min-width: 150px !important;
    min-height: 75px !important;
  }

  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

/* Ensure video container has width: 100% on desktop, as per requirements */
.page-index-platform-features__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}