/* style/index-core-advantages.css */
.page-index-core-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--secondary-color); /* Assuming --secondary-color is #1A1A1A */
}

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

/* Hero Section */
.page-index-core-advantages__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #1A1A1A;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-index-core-advantages__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index-core-advantages__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-index-core-advantages__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-core-advantages__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
  z-index: 0;
}

.page-index-core-advantages__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed for subtle effect, not color change */
}

/* Buttons */
.page-index-core-advantages__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-index-core-advantages__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-index-core-advantages__btn-primary:hover {
  background-color: #e0b000;
  border-color: #e0b000;
  color: #1A1A1A;
}

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

.page-index-core-advantages__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Intro Section */
.page-index-core-advantages__intro-section {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 20px;
}

.page-index-core-advantages__section-title {
  font-size: 2.5em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-index-core-advantages__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0 auto;
}

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

/* Advantages Section */
.page-index-core-advantages__advantages-section {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-index-core-advantages__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-index-core-advantages__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index-core-advantages__card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index-core-advantages__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-core-advantages__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  flex-grow: 1;
}

.page-index-core-advantages__card-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-index-core-advantages__card-list li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
}

.page-index-core-advantages__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #1A1A1A;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-advantages__card-button:hover {
  background-color: #e0b000;
}

/* Video Section */
.page-index-core-advantages__video-section {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-advantages__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-core-advantages__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-index-core-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-index-core-advantages__video-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-index-core-advantages__faq-section {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 20px;
}

.page-index-core-advantages__faq-list {
  margin-top: 40px;
}

.page-index-core-advantages__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.page-index-core-advantages__faq-question:hover {
  background-color: #e6e6e6;
}

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

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

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

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

.page-index-core-advantages__faq-answer p {
  margin-bottom: 0;
  font-size: 1.05em;
}

/* Conclusion Section */
.page-index-core-advantages__conclusion-section {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-advantages__conclusion-section .page-index-core-advantages__section-title {
  color: #FFD700;
}

.page-index-core-advantages__conclusion-section .page-index-core-advantages__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-index-core-advantages__link-in-text {
  color: #FFD700;
  text-decoration: underline;
}

.page-index-core-advantages__link-in-text:hover {
  color: #e0b000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-advantages__main-title {
    font-size: 3em;
  }
  .page-index-core-advantages__description {
    font-size: 1.2em;
  }
  .page-index-core-advantages__section-title {
    font-size: 2em;
  }
  .page-index-core-advantages__card-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-index-core-advantages {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index-core-advantages__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-core-advantages__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-index-core-advantages__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index-core-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-core-advantages__btn-primary,
  .page-index-core-advantages__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-core-advantages__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index-core-advantages__intro-section,
  .page-index-core-advantages__advantages-section,
  .page-index-core-advantages__video-section,
  .page-index-core-advantages__faq-section,
  .page-index-core-advantages__conclusion-section {
    padding: 40px 15px;
  }
  .page-index-core-advantages__container,
  .page-index-core-advantages__advantages-grid,
  .page-index-core-advantages__faq-list,
  .page-index-core-advantages__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-index-core-advantages__card {
    padding: 20px;
  }
  .page-index-core-advantages__card-title {
    font-size: 1.4em;
  }
  .page-index-core-advantages__card-image {
    height: 200px;
  }
  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-core-advantages video,
  .page-index-core-advantages__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-core-advantages__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-core-advantages__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-index-core-advantages__faq-answer {
    padding: 0 15px;
  }
  .page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
    padding: 15px;
  }
}