/* style/index-advantages.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-index-advantages {
  color: #ffffff; /* Light text for dark body background #1a1a1a */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Section spacing and general container */
.page-index-advantages__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Section titles */
.page-index-advantages__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-index-advantages__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-index-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is decorative */
  overflow: hidden;
  color: #ffffff;
}

.page-index-advantages__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-index-advantages__hero-content {
  position: relative; /* Ensure content is above image but not overlapping it via position absolute */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-index-advantages__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-advantages__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-advantages__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-index-advantages__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-advantages__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
}

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

.page-index-advantages__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-index-advantages__why-choose {
  background: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

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

.page-index-advantages__advantage-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-index-advantages__card-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index-advantages__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* How To Login Section */
.page-index-advantages__how-to-login {
  background: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

.page-index-advantages__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-advantages__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-advantages__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: #26A9E0;
  color: #ffffff;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-index-advantages__step-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-index-advantages__step-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-index-advantages__cta-center {
  margin-top: 40px;
}

/* Commitment Section */
.page-index-advantages__commitment {
  background: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

.page-index-advantages__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index-advantages__commitment-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-advantages__list-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index-advantages__list-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-index-advantages__faq-section {
  background: #1a1a1a; /* Dark background from body */
  color: #ffffff;
}

.page-index-advantages__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-index-advantages__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  background: #26A9E0; /* Brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-advantages__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-advantages__faq-question:hover {
  background: #1e87c0;
}

.page-index-advantages__faq-qtext {
  flex-grow: 1;
}

.page-index-advantages__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-index-advantages__faq-item[open] .page-index-advantages__faq-toggle {
  transform: rotate(45deg);
}

.page-index-advantages__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.05);
}

.page-index-advantages__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Join Us Section */
.page-index-advantages__join-us {
  background: #1a1a1a; /* Dark background from body */
  color: #ffffff;
  padding-bottom: 80px;
}

/* Background color specific classes */
.page-index-advantages__dark-bg {
  background-color: #1a1a1a; /* Match body background */
  color: #ffffff;
}

.page-index-advantages__light-bg {
  background-color: #1a1a1a; /* Match body background */
  color: #ffffff;
}

/* Ensure all text in sections is visible on dark background */
.page-index-advantages__section p,
.page-index-advantages__section li {
  color: #e0e0e0;
}

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

  .page-index-advantages__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-index-advantages__container {
    padding: 0 15px;
  }

  .page-index-advantages__section {
    padding: 40px 0;
  }

  .page-index-advantages__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index-advantages__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index-advantages__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

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

  .page-index-advantages__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index-advantages__advantages-grid,
  .page-index-advantages__steps-grid,
  .page-index-advantages__commitment-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-advantages__advantage-card,
  .page-index-advantages__step-item,
  .page-index-advantages__commitment-item {
    padding: 25px;
  }

  .page-index-advantages__card-title,
  .page-index-advantages__step-title,
  .page-index-advantages__list-title {
    font-size: 1.5em;
  }

  .page-index-advantages__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-index-advantages__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile responsive for images */
  .page-index-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for containers with images/videos */
  .page-index-advantages__section,
  .page-index-advantages__card,
  .page-index-advantages__container,
  .page-index-advantages__hero-section,
  .page-index-advantages__hero-image-wrapper,
  .page-index-advantages__advantages-grid,
  .page-index-advantages__steps-grid,
  .page-index-advantages__commitment-list,
  .page-index-advantages__faq-list,
  .page-index-advantages__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Buttons mobile specific adjustments */
  .page-index-advantages__cta-button,
  .page-index-advantages__btn-primary,
  .page-index-advantages__btn-secondary,
  .page-index-advantages a[class*="button"],
  .page-index-advantages 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-advantages__cta-buttons,
  .page-index-advantages__button-group,
  .page-index-advantages__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-index-advantages__hero-section {
    padding-top: 10px !important;
  }
}