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

/* Base styles for the page */
.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); /* Inherit from shared or default to white */
}

/* Ensure proper spacing for fixed header */
.page-index-core-features__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* Section styling */
.page-index-core-features__intro-section,
.page-index-core-features__features-section,
.page-index-core-features__download-section,
.page-index-core-features__faq-section,
.page-index-core-features__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-features__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-core-features__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index-core-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index-core-features__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section background */
  font-weight: bold;
}

.page-index-core-features__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: inherit;
}

.page-index-core-features__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-features__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-index-core-features__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: inherit;
}

/* Hero Section */
.page-index-core-features__hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0;
}

.page-index-core-features__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  filter: brightness(0.7); /* Darken video for text readability */
}

.page-index-core-features__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 1;
}

.page-index-core-features__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

.page-index-core-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index-core-features__btn-primary,
.page-index-core-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #d16b06;
  border-color: #d16b06;
}

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

/* Image styling */
.page-index-core-features__image-wrapper {
  margin: 30px auto;
  max-width: 100%;
}

.page-index-core-features__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Features Grid */
.page-index-core-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-features__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-features__card-image {
  width: 100%; /* Ensure card images fill width */
  max-width: 100%;
  height: 200px; /* Fixed height for uniformity */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-core-features__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-index-core-features__card-description {
  font-size: 1em;
  color: #555555;
}

/* Download Section */
.page-index-core-features__download-section {
  background-color: #f8f8f8;
  text-align: left;
}

.page-index-core-features__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index-core-features__download-text {
  flex: 1;
  min-width: 300px;
}

.page-index-core-features__download-text .page-index-core-features__section-title {
  text-align: left;
  color: #26A9E0;
}

.page-index-core-features__download-text .page-index-core-features__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index-core-features__download-text .page-index-core-features__list {
  margin-left: 0;
  margin-right: 0;
}

.page-index-core-features__download-text .page-index-core-features__list-item {
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding-left: 0;
}

.page-index-core-features__download-button {
  margin-top: 30px;
}

/* FAQ Section */
.page-index-core-features__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index-core-features__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-features__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-core-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-index-core-features__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

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

/* Conclusion Section */
.page-index-core-features__cta-buttons--center {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index-core-features__hero-title {
    font-size: 3em;
  }
  .page-index-core-features__hero-description {
    font-size: 1.2em;
  }
  .page-index-core-features__section-title {
    font-size: 2em;
  }
  .page-index-core-features__download-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index-core-features {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index-core-features__hero-section {
    height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-core-features__hero-title {
    font-size: 2.2em;
  }
  .page-index-core-features__hero-description {
    font-size: 1em;
  }
  .page-index-core-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-core-features__btn-primary,
  .page-index-core-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index-core-features__intro-section,
  .page-index-core-features__features-section,
  .page-index-core-features__download-section,
  .page-index-core-features__faq-section,
  .page-index-core-features__conclusion-section {
    padding: 40px 15px;
  }
  .page-index-core-features__container {
    padding: 0 10px;
  }
  .page-index-core-features__section-title {
    font-size: 1.8em;
  }
  .page-index-core-features__sub-title {
    font-size: 1.4em;
  }
  .page-index-core-features__text-block {
    font-size: 1em;
  }
  .page-index-core-features__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-index-core-features__image,
  .page-index-core-features__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-core-features__image-wrapper,
  .page-index-core-features__feature-card,
  .page-index-core-features__download-content,
  .page-index-core-features__download-text,
  .page-index-core-features__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-index-core-features__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-core-features__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-index-core-features__faq-answer {
    padding: 0 20px;
  }
  .page-index-core-features__faq-item.active .page-index-core-features__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-core-features__hero-title {
    font-size: 1.8em;
  }
  .page-index-core-features__hero-description {
    font-size: 0.9em;
  }
  .page-index-core-features__section-title {
    font-size: 1.5em;
  }
  .page-index-core-features__sub-title {
    font-size: 1.2em;
  }
  .page-index-core-features__features-grid {
    grid-template-columns: 1fr;
  }
}