/* style/resources-mobile-app-guide.css */

.page-resources-mobile-app-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

.page-resources-mobile-app-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark background sections */
.page-resources-mobile-app-guide__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-mobile-app-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-mobile-app-guide__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden;
}

.page-resources-mobile-app-guide__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-mobile-app-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-mobile-app-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-resources-mobile-app-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources-mobile-app-guide__section {
  padding: 60px 0;
}

.page-resources-mobile-app-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-resources-mobile-app-guide__dark-bg .page-resources-mobile-app-guide__section-title {
  color: #ffffff;
}

.page-resources-mobile-app-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-mobile-app-guide__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-mobile-app-guide__feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-mobile-app-guide__feature-icon {
  width: 200px; /* Minimum size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-mobile-app-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources-mobile-app-guide__feature-card p {
  color: #555555;
}

.page-resources-mobile-app-guide__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-mobile-app-guide__step-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-mobile-app-guide__step-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-resources-mobile-app-guide__step-list li {
  margin-bottom: 10px;
  color: #555555;
}

.page-resources-mobile-app-guide__note-block {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.page-resources-mobile-app-guide__note-block .page-resources-mobile-app-guide__card-title {
  color: #C30808; /* Use a distinct color for important notes */
}

.page-resources-mobile-app-guide__list {
  list-style: disc;
  padding-left: 20px;
  color: #555555;
}

.page-resources-mobile-app-guide__list li {
  margin-bottom: 10px;
}

.page-resources-mobile-app-guide__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-mobile-app-guide__content-card {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-resources-mobile-app-guide__content-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-mobile-app-guide__content-card p {
  color: #555555;
  margin-bottom: 20px;
}

.page-resources-mobile-app-guide__list-optimized {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources-mobile-app-guide__list-optimized li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-resources-mobile-app-guide__list-optimized li strong {
  color: #FFFF00;
  margin-right: 10px;
}

.page-resources-mobile-app-guide__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-mobile-app-guide__faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-resources-mobile-app-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-resources-mobile-app-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-mobile-app-guide__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #017439;
}

.page-resources-mobile-app-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-resources-mobile-app-guide__faq-item.active .page-resources-mobile-app-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-mobile-app-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-resources-mobile-app-guide__faq-item.active .page-resources-mobile-app-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

/* Buttons */
.page-resources-mobile-app-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources-mobile-app-guide__btn-primary {
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  border: none;
}

.page-resources-mobile-app-guide__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-mobile-app-guide__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-mobile-app-guide__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Image responsiveness */
.page-resources-mobile-app-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-mobile-app-guide__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-mobile-app-guide__hero-title {
    font-size: 2em;
  }

  .page-resources-mobile-app-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-mobile-app-guide__section {
    padding: 40px 0;
  }

  .page-resources-mobile-app-guide__section-title {
    font-size: 2em;
  }

  .page-resources-mobile-app-guide__features-grid,
  .page-resources-mobile-app-guide__download-steps,
  .page-resources-mobile-app-guide__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-mobile-app-guide__cta-button {
    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-resources-mobile-app-guide__btn-container,
  .page-resources-mobile-app-guide__cta-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;
  }

  /* Ensure content containers don't overflow */
  .page-resources-mobile-app-guide__container,
  .page-resources-mobile-app-guide__section,
  .page-resources-mobile-app-guide__feature-card,
  .page-resources-mobile-app-guide__step-card,
  .page-resources-mobile-app-guide__note-block,
  .page-resources-mobile-app-guide__content-card,
  .page-resources-mobile-app-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Images in content areas must be >= 200px. No smaller than 200px. */
  .page-resources-mobile-app-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-mobile-app-guide__feature-icon,
  .page-resources-mobile-app-guide__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ adjustments for mobile */
  .page-resources-mobile-app-guide__faq-question {
    padding: 15px 20px;
  }

  .page-resources-mobile-app-guide__faq-question h3 {
    font-size: 1em;
  }

  .page-resources-mobile-app-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-mobile-app-guide__faq-item.active .page-resources-mobile-app-guide__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-resources-mobile-app-guide__list-optimized li {
    padding: 15px;
  }
}

/* Ensure images in content areas are not smaller than 200px */
.page-resources-mobile-app-guide__feature-icon,
.page-resources-mobile-app-guide__content-image {
  min-width: 200px;
  min-height: 200px;
}