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

.page-index-platform-features {
  color: #333333; /* Dark text for default white body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-index-platform-features__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.page-index-platform-features__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

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

.page-index-platform-features__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-index-platform-features__hero-button--primary {
  background-color: #007BFF; /* Primary color */
  color: #ffffff;
}

.page-index-platform-features__hero-button--primary:hover {
  background-color: #0056b3; /* Darker primary */
  transform: translateY(-2px);
}

.page-index-platform-features__hero-button--secondary {
  background-color: #FFC107; /* Secondary color */
  color: #333333;
}

.page-index-platform-features__hero-button--secondary:hover {
  background-color: #e0a800; /* Darker secondary */
  transform: translateY(-2px);
}

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

.page-index-platform-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__features-overview,
.page-index-platform-features__why-choose,
.page-index-platform-features__responsible-gaming,
.page-index-platform-features__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-index-platform-features__section-title {
  font-size: 2.8em;
  color: #007BFF;
  margin-bottom: 25px;
}

.page-index-platform-features__section-description {
  font-size: 1.1em;
  color: #666;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-index-platform-features__feature-card,
.page-index-platform-features__advantage-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-platform-features__feature-card:hover,
.page-index-platform-features__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index-platform-features__feature-icon {
  width: 100%; /* Ensures image fills card width */
  max-width: 400px; /* Constrain max width for images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image height */
  min-width: 200px; /* Minimum image width */
}

.page-index-platform-features__card-title,
.page-index-platform-features__advantage-title {
  font-size: 1.8em;
  color: #007BFF;
  margin-bottom: 15px;
}

.page-index-platform-features__card-text,
.page-index-platform-features__advantage-text {
  font-size: 1em;
  color: #777;
  margin-bottom: 20px;
}

.page-index-platform-features__card-link,
.page-index-platform-features__advantage-link {
  display: inline-block;
  color: #FFC107; /* Secondary color */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFC107;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-index-platform-features__card-link:hover,
.page-index-platform-features__advantage-link:hover {
  color: #e0a800; /* Darker secondary */
  border-color: #e0a800;
}

.page-index-platform-features__responsible-gaming {
  background-color: #e9ecef;
  padding: 60px 40px;
  border-radius: 10px;
  margin-top: 80px;
}

.page-index-platform-features__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #007BFF; /* Primary color */
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
  gap: 40px;
}

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

.page-index-platform-features__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFC107; /* Secondary color for emphasis */
}

.page-index-platform-features__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-index-platform-features__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FFC107; /* Secondary color */
  color: #333333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-platform-features__cta-button:hover {
  background-color: #e0a800; /* Darker secondary */
  transform: translateY(-3px);
}

.page-index-platform-features__cta-image-wrapper {
  width: 100%;
  max-width: 800px;
}

.page-index-platform-features__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum image height */
  min-width: 200px; /* Minimum image width */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-platform-features__hero-title {
    font-size: 3em;
  }
  .page-index-platform-features__section-title {
    font-size: 2.2em;
  }
  .page-index-platform-features__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features {
    padding-top: var(--header-offset, 120px);
  }
  .page-index-platform-features__hero-section {
    padding: 40px 15px;
  }
  .page-index-platform-features__hero-title {
    font-size: 2.5em;
  }
  .page-index-platform-features__hero-description {
    font-size: 1em;
  }
  .page-index-platform-features__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-platform-features__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-index-platform-features__features-overview,
  .page-index-platform-features__why-choose,
  .page-index-platform-features__responsible-gaming,
  .page-index-platform-features__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-index-platform-features__section-title {
    font-size: 1.8em;
  }
  .page-index-platform-features__section-description {
    font-size: 0.95em;
  }
  .page-index-platform-features__feature-card,
  .page-index-platform-features__advantage-item {
    padding: 20px;
  }
  .page-index-platform-features__feature-icon,
  .page-index-platform-features__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensures images are not too small */
    min-height: 200px; /* Ensures images are not too small */
  }
  .page-index-platform-features__cta-title {
    font-size: 2em;
  }
  .page-index-platform-features__cta-description {
    font-size: 1em;
  }
  .page-index-platform-features__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

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