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

:root {
  --niceph-primary: #F2C14E;
  --niceph-secondary: #FFD36B;
  --niceph-card-bg: #111111;
  --niceph-background: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
  --niceph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-index-platform-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--niceph-text-main); /* Default text color for the page */
  background-color: var(--niceph-background); /* Overall background */
}

/* Ensure the first section has padding-top to clear the fixed header */
.page-index-platform-features__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
  background: var(--niceph-background);
  position: relative;
  overflow: hidden;
}

.page-index-platform-features__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

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

.page-index-platform-features__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  max-width: 90%;
  width: 100%;
}

.page-index-platform-features__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: var(--niceph-secondary);
}

.page-index-platform-features__hero-description {
  font-size: clamp(1em, 1.5vw, 1.3em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-platform-features__btn-primary {
  background: var(--niceph-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index-platform-features__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-index-platform-features__btn-secondary {
  background: transparent;
  color: var(--niceph-secondary);
  border: 2px solid var(--niceph-secondary);
}

.page-index-platform-features__btn-secondary:hover {
  background: var(--niceph-secondary);
  color: var(--niceph-background);
}

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

.page-index-platform-features__section-title {
  font-size: 2.5em;
  color: var(--niceph-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index-platform-features__section-description {
  font-size: 1.1em;
  color: var(--niceph-text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-index-platform-features__feature-grid,
.page-index-platform-features__bonus-grid,
.page-index-platform-features__banking-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-platform-features__feature-card,
.page-index-platform-features__bonus-card,
.page-index-platform-features__info-card,
.page-index-platform-features__cta-card {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--niceph-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-platform-features__feature-card:hover,
.page-index-platform-features__bonus-card:hover,
.page-index-platform-features__info-card:hover,
.page-index-platform-features__cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index-platform-features__feature-icon,
.page-index-platform-features__bonus-image,
.page-index-platform-features__info-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.page-index-platform-features__feature-card-title,
.page-index-platform-features__bonus-card-title,
.page-index-platform-features__info-card-title,
.page-index-platform-features__cta-card-title {
  font-size: 1.5em;
  color: var(--niceph-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-platform-features__feature-card-text,
.page-index-platform-features__bonus-card-text,
.page-index-platform-features__info-card-text,
.page-index-platform-features__cta-card-text {
  font-size: 1em;
  color: var(--niceph-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-platform-features__text-link {
  color: var(--niceph-secondary);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  display: block;
  padding-top: 10px;
}

.page-index-platform-features__text-link:hover {
  text-decoration: underline;
}

.page-index-platform-features__dark-section {
  background-color: var(--niceph-background);
  color: var(--niceph-text-main);
}

.page-index-platform-features__dark-bg {
  background-color: var(--niceph-background);
  color: var(--niceph-text-main);
}

.page-index-platform-features__mobile-experience-section {
  padding: 60px 0;
}

.page-index-platform-features__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-index-platform-features__mobile-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index-platform-features__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index-platform-features__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 400px; /* Specific width for display */
  height: 300px; /* Specific height for display */
  object-fit: contain;
}

.page-index-platform-features__mobile-subtitle,
.page-index-platform-features__optimized-web-subtitle {
  font-size: 1.8em;
  color: var(--niceph-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-platform-features__mobile-text-content,
.page-index-platform-features__optimized-web-text-content {
  font-size: 1.1em;
  color: var(--niceph-text-main);
  margin-bottom: 25px;
}

.page-index-platform-features__optimized-web-content {
  margin-top: 50px;
  text-align: center;
}

.page-index-platform-features__bonuses-section {
  padding: 60px 0;
  background-color: var(--niceph-background);
}

.page-index-platform-features__banking-support-section {
  padding: 60px 0;
}

.page-index-platform-features__join-us-section {
  padding: 60px 0;
  background-color: var(--niceph-background);
}

.page-index-platform-features__cta-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-platform-features__registration-steps {
  list-style-type: decimal;
  text-align: left;
  margin: 20px auto;
  padding-left: 20px;
  color: var(--niceph-text-main);
}

.page-index-platform-features__registration-steps li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-index-platform-features__faq-section {
  padding: 60px 0;
}

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

.page-index-platform-features__faq-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--niceph-primary);
  cursor: pointer;
  background-color: var(--niceph-card-bg);
  transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
  background-color: #1a1a1a;
}

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

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

.page-index-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--niceph-text-main);
  text-align: left;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px 20px 20px;
}

.page-index-platform-features__faq-answer p {
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-platform-features__container {
    padding: 30px 15px;
  }

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

  .page-index-platform-features__hero-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-index-platform-features__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index-platform-features__mobile-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile override */
  }

  .page-index-platform-features__hero-content {
    padding: 15px;
  }

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

  .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,
  .page-index-platform-features__button-group,
  .page-index-platform-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

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

  .page-index-platform-features__feature-grid,
  .page-index-platform-features__bonus-grid,
  .page-index-platform-features__banking-support-grid,
  .page-index-platform-features__cta-group {
    grid-template-columns: 1fr;
  }

  .page-index-platform-features__mobile-image {
    width: 100% !important;
    height: auto !important;
  }

  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

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

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

/* No filter properties to change image colors */
.page-index-platform-features img {
  filter: none; /* Ensure no unintended filters */
}

/* Small icons exceptions - not used in this page content, but defined for rule adherence */
/* .page-index-platform-features__category-icon { width: 30px; height: 30px; } */
/* .page-index-platform-features__partner-logo { width: 167px; height: 127px; } */