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

/* Base styles for the specific page */
.page-index-platform-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1);
}

.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: 36px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-platform-features__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-index-platform-features__section-intro {
  text-align: center;
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-highlight {
  color: #FFD700;
}

.page-index-platform-features strong {
  color: #FFD700;
}

/* Fixed Nav Bar Spacing */
.page-index-platform-features__hero-section-placeholder {
  padding-top: 120px; /* Desktop spacing */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

.page-index-platform-features__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-platform-features__description {
  font-size: 18px;
  color: #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-index-platform-features__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index-platform-features__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-index-platform-features__btn--primary {
  background-color: #FFD700;
  color: #000000; /* Ensure high contrast */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index-platform-features__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

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

.page-index-platform-features__btn--secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Ensure high contrast */
  transform: translateY(-3px);
}

/* Features Section */
.page-index-platform-features__features-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index-platform-features__feature-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-platform-features__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__feature-icon {
  margin-bottom: 20px;
  width: 100%;
  height: 150px; /* Ensure sufficient height for image */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-index-platform-features__feature-icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain; /* Use contain to fit within the icon area */
  display: block;
}

.page-index-platform-features__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-platform-features__feature-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
}

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

.page-index-platform-features__cta-bottom p {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Why Choose Section */
.page-index-platform-features__why-choose-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-index-platform-features__why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-index-platform-features__why-choose-text ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-index-platform-features__why-choose-text li {
  background: #2a2a2a;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  color: #e0e0e0;
  border-left: 5px solid #FFD700;
  transition: background-color 0.3s ease;
}

.page-index-platform-features__why-choose-text li:hover {
  background-color: #3a3a3a;
}

.page-index-platform-features__why-choose-text p {
  font-size: 17px;
  color: #cccccc;
}

.page-index-platform-features__why-choose-image {
  text-align: center;
}

.page-index-platform-features__why-choose-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

/* FAQ Section */
.page-index-platform-features__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index-platform-features__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-platform-features__faq-question:hover {
  background-color: #3a3a3a;
}

.page-index-platform-features__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index-platform-features__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-index-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: #202020;
  border-top: 1px solid #3a3a3a;
  border-radius: 0 0 8px 8px;
}

/* Blog Section */
.page-index-platform-features__blog-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-index-platform-features__blog-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-platform-features__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__blog-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-index-platform-features__blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-index-platform-features__blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-platform-features__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-index-platform-features__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 20px 15px 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index-platform-features__blog-date {
  font-size: 14px;
  color: #999999;
  display: block;
  margin: 0 20px 20px 20px;
}

.page-index-platform-features__view-all-btn {
  text-align: center;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-platform-features__main-title {
    font-size: 40px;
  }

  .page-index-platform-features__section-title {
    font-size: 30px;
  }

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

  .page-index-platform-features__why-choose-content {
    grid-template-columns: 1fr;
  }
  .page-index-platform-features__why-choose-image {
    order: -1; /* Image on top for mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section-placeholder {
    padding-top: 100px !important; /* Mobile spacing */
    padding-bottom: 40px;
  }

  .page-index-platform-features__main-title {
    font-size: 32px;
  }

  .page-index-platform-features__description,
  .page-index-platform-features__section-intro {
    font-size: 16px;
  }

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

  .page-index-platform-features__section-intro {
    margin-bottom: 40px;
  }

  .page-index-platform-features__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-platform-features__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index-platform-features__features-section,
  .page-index-platform-features__why-choose-section,
  .page-index-platform-features__faq-section,
  .page-index-platform-features__blog-section {
    padding: 60px 0;
  }

  .page-index-platform-features__features-grid,
  .page-index-platform-features__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index-platform-features__feature-card,
  .page-index-platform-features__blog-card {
    padding: 25px;
  }

  .page-index-platform-features__feature-title {
    font-size: 20px;
  }

  .page-index-platform-features__feature-description {
    font-size: 15px;
  }

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

  .page-index-platform-features__faq-question h3 {
    font-size: 16px;
  }

  .page-index-platform-features__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all images are responsive */
  .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,
  .page-index-platform-features__feature-card,
  .page-index-platform-features__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}