/* style/index-platform-features.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A2E; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-index-platform-features {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  padding-bottom: 60px;
}

/* Fixed Nav Bar Spacing */
.page-index-platform-features__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust according to actual fixed header height */
  box-sizing: border-box;
}

.page-index-platform-features__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-index-platform-features__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-index-platform-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  box-sizing: border-box;
}

.page-index-platform-features__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-index-platform-features__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-platform-features__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-index-platform-features__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-index-platform-features__title-section {
  padding: 60px 20px;
  text-align: center;
  background: var(--background-dark);
  box-sizing: border-box;
}

.page-index-platform-features__title-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index-platform-features__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index-platform-features__title-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-index-platform-features__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index-platform-features__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-platform-features__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.page-index-platform-features__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  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: var(--primary-color);
  border-radius: 2px;
}

.page-index-platform-features__features-section {
  background: var(--secondary-color);
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.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: var(--card-background-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

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

.page-index-platform-features__feature-icon {
  width: 250px; /* Min size 200px, choose larger */
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color change */
}

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

.page-index-platform-features__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-index-platform-features__faq-section {
  background: var(--background-dark);
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-index-platform-features__faq-question:hover {
  background: #2a2a40;
  border-color: #3f3f5a;
}

.page-index-platform-features__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-index-platform-features__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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 {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.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;
  background: var(--card-background-dark);
  color: var(--text-light);
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color-dark);
  border-right: 1px solid var(--border-color-dark);
  border-bottom: 1px solid var(--border-color-dark);
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-index-platform-features__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-index-platform-features__brand-section {
  background: #121220; /* Slightly different dark background */
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.page-index-platform-features__brand-item {
  background: var(--card-background-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
  color: var(--text-light);
}

.page-index-platform-features__brand-image {
  width: 300px; /* Min size 200px */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no color change */
}

.page-index-platform-features__brand-item-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index-platform-features__brand-item-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-index-platform-features__blog-section {
  background: var(--background-dark);
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.page-index-platform-features__blog-item {
  background: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-platform-features__blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__blog-link {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  padding: 20px;
}

.page-index-platform-features__blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: none; /* Ensure no color change */
}

.page-index-platform-features__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-index-platform-features__blog-item-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index-platform-features__blog-item-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
  text-align: right;
}

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

@media (max-width: 768px) {
  /* Fixed Nav Bar Spacing for Mobile */
  .page-index-platform-features__video-section {
    padding-top: 10px !important; /* Mobile: Adjust according to actual mobile fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-index-platform-features__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-index-platform-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  .page-index-platform-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain to ensure video fits without cropping */
  }
  .page-index-platform-features__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-index-platform-features__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-platform-features {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-index-platform-features__title-section,
  .page-index-platform-features__features-section,
  .page-index-platform-features__faq-section,
  .page-index-platform-features__brand-section,
  .page-index-platform-features__blog-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-index-platform-features__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index-platform-features__main-title {
    font-size: 2em;
  }
  .page-index-platform-features__title-description {
    font-size: 1em;
  }
  .page-index-platform-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-index-platform-features__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-index-platform-features__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index-platform-features__features-grid,
  .page-index-platform-features__brand-content,
  .page-index-platform-features__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-platform-features__feature-card,
  .page-index-platform-features__brand-item,
  .page-index-platform-features__blog-item {
    padding: 20px;
  }
  .page-index-platform-features__feature-icon,
  .page-index-platform-features__brand-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
  }
  .page-index-platform-features__feature-title {
    font-size: 1.4em;
  }
  .page-index-platform-features__faq-question {
    padding: 15px 20px;
  }
  .page-index-platform-features__faq-question h3 {
    font-size: 1em;
  }
  .page-index-platform-features__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-index-platform-features__faq-answer {
    padding: 0 20px;
  }
  .page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index-platform-features__blog-thumbnail {
    height: 150px;
  }
  .page-index-platform-features__blog-item-title {
    font-size: 1.2em;
  }
}

/* Ensure all images are responsive */
.page-index-platform-features img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-index-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}