/* style/index-core-features.css */
.page-index-core-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Ensure it respects shared background */
}

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

/* Hero Section */
.page-index-core-features__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.page-index-core-features__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-index-core-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-index-core-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-core-features__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

/* General Buttons */
.page-index-core-features__btn-primary,
.page-index-core-features__btn-secondary,
.page-index-core-features__btn-tertiary,
.page-index-core-features__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-index-core-features__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index-core-features__btn-primary:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

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

.page-index-core-features__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-index-core-features__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-core-features__btn-tertiary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

/* Section Titles */
.page-index-core-features__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #26A9E0;
}

.page-index-core-features__dark-bg .page-index-core-features__section-title {
  color: #ffffff;
}

/* Intro Section */
.page-index-core-features__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-index-core-features__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

.page-index-core-features__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #000000;
}

.page-index-core-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Features Section */
.page-index-core-features__features-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-index-core-features__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-features__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index-core-features__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index-core-features__feature-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

/* Benefits Section */
.page-index-core-features__benefits-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-index-core-features__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-index-core-features__benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index-core-features__benefit-icon {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-index-core-features__benefit-content {
  flex-grow: 1;
}

.page-index-core-features__benefit-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Getting Started Section */
.page-index-core-features__getting-started-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-index-core-features__step-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-features__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  background-color: #EA7C07;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-index-core-features__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

/* FAQ Section */
.page-index-core-features__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-index-core-features__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-core-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-index-core-features__faq-question:hover {
  background-color: #e0e0e0;
}

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

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

.page-index-core-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

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

.page-index-core-features__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-index-core-features__conclusion-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-index-core-features__conclusion-section .page-index-core-features__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-index-core-features__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }

  .page-index-core-features__hero-content {
    padding: 20px;
  }

  .page-index-core-features__hero-title {
    font-size: 2.2em;
  }

  .page-index-core-features__hero-description {
    font-size: 1em;
  }

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

  .page-index-core-features__btn-primary,
  .page-index-core-features__btn-secondary,
  .page-index-core-features__btn-tertiary,
  .page-index-core-features__cta-button,
  .page-index-core-features a[class*="button"],
  .page-index-core-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-core-features__hero-buttons {
    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-core-features__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-core-features__intro-section,
  .page-index-core-features__features-section,
  .page-index-core-features__benefits-section,
  .page-index-core-features__getting-started-section,
  .page-index-core-features__faq-section,
  .page-index-core-features__conclusion-section {
    padding: 50px 0;
  }

  .page-index-core-features__container {
    padding: 0 15px;
  }

  .page-index-core-features img,
  .page-index-core-features video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-core-features__feature-card,
  .page-index-core-features__step-card,
  .page-index-core-features__benefit-item,
  .page-index-core-features__video-section,
  .page-index-core-features__video-container,
  .page-index-core-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-core-features__benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-index-core-features__benefit-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .page-index-core-features__faq-question {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-index-core-features__faq-answer {
    padding: 0 15px;
  }

  .page-index-core-features__faq-item.active .page-index-core-features__faq-answer {
    padding: 15px 15px !important;
  }
}