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

:root {
  --ok9-primary-color: #26A9E0;
  --ok9-secondary-color: #FFFFFF;
  --ok9-login-color: #EA7C07;
  --ok9-background-color: #FFFFFF;
  --ok9-black-color: #000000;
  --ok9-text-dark: #333333;
  --ok9-text-light: #ffffff;
}

/* Body background is dark from shared.css, so text color should be light */
.page-index-platform-features {
  color: var(--ok9-text-light); /* Default light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on shared.css for body background */
}

.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;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ok9-text-light);
}

.page-index-platform-features__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--ok9-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-platform-features__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--ok9-text-dark);
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
}

.page-index-platform-features__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-index-platform-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--ok9-text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-index-platform-features__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ok9-secondary-color);
  margin-bottom: 20px;
  /* clamp(min, preferred, max) */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-index-platform-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index-platform-features__btn-primary:hover {
  background: darken(var(--ok9-primary-color), 10%);
  border-color: darken(var(--ok9-primary-color), 10%);
}

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

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

/* Introduction Section */
.page-index-platform-features__introduction-section {
  padding: 80px 0;
  background-color: var(--ok9-secondary-color);
  color: var(--ok9-text-dark);
}

.page-index-platform-features__introduction-section .page-index-platform-features__section-title,
.page-index-platform-features__introduction-section .page-index-platform-features__section-subtitle {
  color: var(--ok9-text-dark);
}

.page-index-platform-features__introduction-section a {
  color: var(--ok9-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-index-platform-features__introduction-section a:hover {
  text-decoration: underline;
}

/* Features Section */
.page-index-platform-features__features-section {
  padding: 80px 0;
  background-color: var(--ok9-primary-color);
  color: var(--ok9-text-light);
}

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

.page-index-platform-features__feature-card {
  background-color: var(--ok9-secondary-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--ok9-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-platform-features__feature-icon {
  width: 100%; /* Ensure images take full width of card */
  max-width: 400px; /* Recommended size for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-index-platform-features__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--ok9-primary-color);
}

.page-index-platform-features__feature-description {
  font-size: 1em;
  line-height: 1.7;
}

.page-index-platform-features__feature-description a {
  color: var(--ok9-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-index-platform-features__feature-description a:hover {
  text-decoration: underline;
}

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

/* Promotions Section */
.page-index-platform-features__promotions-section {
  padding: 80px 0;
  background-color: var(--ok9-secondary-color);
  color: var(--ok9-text-dark);
}

.page-index-platform-features__promotions-section .page-index-platform-features__section-title,
.page-index-platform-features__promotions-section .page-index-platform-features__section-subtitle {
  color: var(--ok9-text-dark);
}

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

.page-index-platform-features__promo-card {
  background-color: var(--ok9-primary-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--ok9-text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-platform-features__promo-image {
  width: 100%;
  max-width: 400px; /* Recommended size for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-index-platform-features__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--ok9-secondary-color);
}

.page-index-platform-features__promo-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Registration Section */
.page-index-platform-features__registration-section {
  padding: 80px 0;
  background-color: var(--ok9-primary-color);
  color: var(--ok9-text-light);
}

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

.page-index-platform-features__process-step {
  background-color: var(--ok9-secondary-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--ok9-text-dark);
}

.page-index-platform-features__step-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ok9-primary-color);
}

.page-index-platform-features__step-description {
  font-size: 1em;
  line-height: 1.7;
}

.page-index-platform-features__step-description a {
  color: var(--ok9-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-index-platform-features__step-description a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-index-platform-features__why-choose-section {
  padding: 80px 0;
  background-color: var(--ok9-secondary-color);
  color: var(--ok9-text-dark);
}

.page-index-platform-features__why-choose-section .page-index-platform-features__section-title,
.page-index-platform-features__why-choose-section .page-index-platform-features__section-subtitle {
  color: var(--ok9-text-dark);
}

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

.page-index-platform-features__reason-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--ok9-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-platform-features__reason-icon {
  width: 100%;
  max-width: 300px; /* Recommended size for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-index-platform-features__reason-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ok9-primary-color);
}

.page-index-platform-features__reason-description {
  font-size: 1em;
  line-height: 1.7;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  padding: 80px 0;
  background-color: var(--ok9-primary-color);
  color: var(--ok9-text-light);
}

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

.page-index-platform-features__faq-item {
  background-color: var(--ok9-secondary-color);
  color: var(--ok9-text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-platform-features__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--ok9-primary-color);
}

.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;
  width: 100%;
}

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

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--ok9-primary-color);
}

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-toggle {
  content: "−";
}

.page-index-platform-features__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--ok9-text-dark);
}

.page-index-platform-features__faq-answer a {
  color: var(--ok9-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-index-platform-features__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-index-platform-features__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--ok9-primary-color);
  text-align: center;
  color: var(--ok9-text-light);
}

.page-index-platform-features__cta-bottom-section .page-index-platform-features__section-title,
.page-index-platform-features__cta-bottom-section .page-index-platform-features__section-subtitle {
  color: var(--ok9-text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-platform-features__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-index-platform-features__hero-description {
    font-size: 1.1em;
  }
  .page-index-platform-features__section-title {
    font-size: 2em;
  }
  .page-index-platform-features__section-subtitle {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-platform-features__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-index-platform-features__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .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__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__container {
    padding: 0 15px;
  }

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

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

  .page-index-platform-features p,
  .page-index-platform-features li {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-platform-features__features-grid,
  .page-index-platform-features__promotions-grid,
  .page-index-platform-features__process-grid,
  .page-index-platform-features__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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;
  }

  .page-index-platform-features__feature-icon,
  .page-index-platform-features__promo-image,
  .page-index-platform-features__reason-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}