.page-resources-b52-ios-download-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-resources-b52-ios-download-guide__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-b52-ios-download-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-b52-ios-download-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  min-height: 600px;
  overflow: hidden;
}

.page-resources-b52-ios-download-guide__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources-b52-ios-download-guide__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

.page-resources-b52-ios-download-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources-b52-ios-download-guide__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-b52-ios-download-guide__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-b52-ios-download-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-b52-ios-download-guide__btn-primary,
.page-resources-b52-ios-download-guide__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;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-b52-ios-download-guide__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-b52-ios-download-guide__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-resources-b52-ios-download-guide__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-b52-ios-download-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources-b52-ios-download-guide__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-resources-b52-ios-download-guide__btn-primary--small,
.page-resources-b52-ios-download-guide__btn-secondary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources-b52-ios-download-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-resources-b52-ios-download-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-resources-b52-ios-download-guide__intro-section,
.page-resources-b52-ios-download-guide__features-section,
.page-resources-b52-ios-download-guide__benefits-section,
.page-resources-b52-ios-download-guide__cta-bottom {
  padding: 80px 0;
}

.page-resources-b52-ios-download-guide__download-guide,
.page-resources-b52-ios-download-guide__account-guide,
.page-resources-b52-ios-download-guide__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-resources-b52-ios-download-guide__intro-content p {
  flex: 1;
  min-width: 300px;
}

.page-resources-b52-ios-download-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-resources-b52-ios-download-guide__image--left {
  flex: 0 0 auto;
  margin-right: 20px;
  max-width: 400px; /* Specific width for this image */
}

.page-resources-b52-ios-download-guide__image--center {
  margin: 40px auto;
}

.page-resources-b52-ios-download-guide__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-b52-ios-download-guide__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__step-icon {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-b52-ios-download-guide__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__troubleshooting {
  margin-top: 60px;
  text-align: center;
}

.page-resources-b52-ios-download-guide__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-b52-ios-download-guide__troubleshooting ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-resources-b52-ios-download-guide__troubleshooting li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #26A9E0;
  border-radius: 5px;
}

.page-resources-b52-ios-download-guide__features-grid,
.page-resources-b52-ios-download-guide__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-b52-ios-download-guide__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-resources-b52-ios-download-guide__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources-b52-ios-download-guide__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources-b52-ios-download-guide__account-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.page-resources-b52-ios-download-guide__account-step {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__account-step .page-resources-b52-ios-download-guide__sub-title {
  color: #26A9E0;
}

.page-resources-b52-ios-download-guide__faq-list {
  margin-top: 50px;
}

.page-resources-b52-ios-download-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-b52-ios-download-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-b52-ios-download-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-b52-ios-download-guide__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-resources-b52-ios-download-guide__faq-item.active .page-resources-b52-ios-download-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-b52-ios-download-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-b52-ios-download-guide__faq-item.active .page-resources-b52-ios-download-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-resources-b52-ios-download-guide__faq-answer p {
  margin-bottom: 15px;
}

.page-resources-b52-ios-download-guide__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources-b52-ios-download-guide__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources-b52-ios-download-guide__final-cta {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 30px;
  color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-b52-ios-download-guide__main-title {
    font-size: 2.8em;
  }

  .page-resources-b52-ios-download-guide__section-title {
    font-size: 2em;
  }

  .page-resources-b52-ios-download-guide__intro-content {
    flex-direction: column;
  }

  .page-resources-b52-ios-download-guide__image--left {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-resources-b52-ios-download-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-b52-ios-download-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-resources-b52-ios-download-guide__main-title {
    font-size: 2.2em;
  }

  .page-resources-b52-ios-download-guide__subtitle {
    font-size: 1.1em;
  }

  .page-resources-b52-ios-download-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-b52-ios-download-guide__intro-section,
  .page-resources-b52-ios-download-guide__features-section,
  .page-resources-b52-ios-download-guide__benefits-section,
  .page-resources-b52-ios-download-guide__cta-bottom,
  .page-resources-b52-ios-download-guide__download-guide,
  .page-resources-b52-ios-download-guide__account-guide,
  .page-resources-b52-ios-download-guide__faq-section {
    padding: 40px 0;
  }

  .page-resources-b52-ios-download-guide__container {
    padding: 0 15px;
  }

  /* Responsive Images */
  .page-resources-b52-ios-download-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-b52-ios-download-guide__intro-section,
  .page-resources-b52-ios-download-guide__features-section,
  .page-resources-b52-ios-download-guide__benefits-section,
  .page-resources-b52-ios-download-guide__cta-bottom,
  .page-resources-b52-ios-download-guide__download-guide,
  .page-resources-b52-ios-download-guide__account-guide,
  .page-resources-b52-ios-download-guide__faq-section,
  .page-resources-b52-ios-download-guide__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Responsive Videos */
  .page-resources-b52-ios-download-guide video,
  .page-resources-b52-ios-download-guide__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive Buttons */
  .page-resources-b52-ios-download-guide__cta-buttons,
  .page-resources-b52-ios-download-guide__account-step {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-b52-ios-download-guide__btn-primary,
  .page-resources-b52-ios-download-guide__btn-secondary {
    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-b52-ios-download-guide__btn-primary--small,
  .page-resources-b52-ios-download-guide__btn-secondary--small {
    width: auto !important; /* Allow small buttons to be smaller if not full width */
    max-width: fit-content !important;
    margin: 0 auto;
  }

  .page-resources-b52-ios-download-guide__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-b52-ios-download-guide__faq-answer {
    padding: 0 15px;
  }

  .page-resources-b52-ios-download-guide__faq-item.active .page-resources-b52-ios-download-guide__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-b52-ios-download-guide__main-title {
    font-size: 1.8em;
  }

  .page-resources-b52-ios-download-guide__subtitle {
    font-size: 1em;
  }

  .page-resources-b52-ios-download-guide__section-title {
    font-size: 1.5em;
  }

  .page-resources-b52-ios-download-guide__btn-primary,
  .page-resources-b52-ios-download-guide__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}