/* style/download-ios-app.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f1f3f5;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-download-ios-app {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from body */
}

/* --- General Section & Container Styles --- */
.page-download-ios-app__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.page-download-ios-app__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-download-ios-app__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-download-ios-app__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-download-ios-app__card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  color: var(--text-dark); /* Dark text on light card background */
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-download-ios-app__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download-ios-app__dark-card {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-download-ios-app__dark-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download-ios-app__dark-card .page-download-ios-app__step-title, 
.page-download-ios-app__dark-card .page-download-ios-app__step-number, 
.page-download-ios-app__dark-card p {
  color: var(--text-light);
}

/* --- Color Contrast Classes --- */
.page-download-ios-app__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download-ios-app__light-bg {
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-download-ios-app__light-bg .page-download-ios-app__section-title,
.page-download-ios-app__light-bg .page-download-ios-app__text-block {
  color: var(--text-dark);
}

/* --- Button Styles --- */
.page-download-ios-app__cta-button,
.page-download-ios-app__btn-primary,
.page-download-ios-app__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-download-ios-app__btn-primary,
.page-download-ios-app__cta-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download-ios-app__btn-primary:hover,
.page-download-ios-app__cta-button:hover {
  background: #e6b800; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-download-ios-app__btn-secondary {
  background: none;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  margin-left: 20px;
}

.page-download-ios-app__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- HERO Section --- */
.page-download-ios-app__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop padding for fixed header */
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download-ios-app__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download-ios-app__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-download-ios-app__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-download-ios-app__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-download-ios-app__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-download-ios-app__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* --- Why Download Section --- */
.page-download-ios-app__why-download .page-download-ios-app__section-title,
.page-download-ios-app__why-download .page-download-ios-app__text-block {
  color: var(--text-dark);
}

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

.page-download-ios-app__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-download-ios-app__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.page-download-ios-app__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-download-ios-app__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* --- How To Download Section --- */
.page-download-ios-app__how-to-download .page-download-ios-app__section-title,
.page-download-ios-app__how-to-download .page-download-ios-app__text-block {
  color: var(--text-light);
}

.page-download-ios-app__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download-ios-app__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
}

.page-download-ios-app__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download-ios-app__step-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 25px;
  margin-top: 20px;
  max-width: 100%;
  height: auto;
}

.page-download-ios-app__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-download-ios-app__step-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-light);
}

/* --- App Features Section --- */
.page-download-ios-app__features-app .page-download-ios-app__section-title,
.page-download-ios-app__features-app .page-download-ios-app__text-block {
  color: var(--text-dark);
}

.page-download-ios-app__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.page-download-ios-app__list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
}

.page-download-ios-app__list-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
}

.page-download-ios-app__list-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-download-ios-app__list-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* --- Promotions Section --- */
.page-download-ios-app__promotions .page-download-ios-app__section-title,
.page-download-ios-app__promotions .page-download-ios-app__text-block {
  color: var(--text-light);
}

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

.page-download-ios-app__promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

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

.page-download-ios-app__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-download-ios-app__promo-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-light);
}

/* --- Security Section --- */
.page-download-ios-app__security .page-download-ios-app__section-title,
.page-download-ios-app__security .page-download-ios-app__text-block {
  color: var(--text-dark);
}

.page-download-ios-app__security-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download-ios-app__security-item {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-download-ios-app__security-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-download-ios-app__security-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* --- FAQ Section --- */
.page-download-ios-app__faq-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download-ios-app__faq-section .page-download-ios-app__section-title,
.page-download-ios-app__faq-section .page-download-ios-app__text-block {
  color: var(--text-light);
}

.page-download-ios-app__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download-ios-app__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-download-ios-app__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-download-ios-app__faq-item.active .page-download-ios-app__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 0 0 5px 5px;
}

.page-download-ios-app__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-download-ios-app__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-download-ios-app__faq-question:active {
  background: #eeeeee;
}

.page-download-ios-app__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-download-ios-app__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-download-ios-app__faq-item.active .page-download-ios-app__faq-toggle {
  color: #333;
}

/* --- Final CTA Section --- */
.page-download-ios-app__final-cta .page-download-ios-app__section-title,
.page-download-ios-app__final-cta .page-download-ios-app__text-block {
  color: var(--text-dark);
}

.page-download-ios-app__final-cta .page-download-ios-app__cta-button {
  margin-top: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-download-ios-app__main-title {
    font-size: 40px;
  }

  .page-download-ios-app__section-title {
    font-size: 30px;
  }

  .page-download-ios-app__hero-description,
  .page-download-ios-app__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-download-ios-app__hero-section {
    padding-top: 160px !important; /* Mobile padding for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download-ios-app__main-title {
    font-size: 32px;
  }

  .page-download-ios-app__hero-description {
    font-size: 16px;
  }

  .page-download-ios-app__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-download-ios-app__section {
    padding: 40px 15px;
  }

  .page-download-ios-app__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-download-ios-app__text-block {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-download-ios-app__features-grid,
  .page-download-ios-app__steps-grid,
  .page-download-ios-app__promo-grid,
  .page-download-ios-app__security-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download-ios-app__feature-card,
  .page-download-ios-app__step-card,
  .page-download-ios-app__promo-card,
  .page-download-ios-app__security-item {
    padding: 25px;
  }

  .page-download-ios-app__step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: -15px;
  }

  .page-download-ios-app__step-image {
    width: 120px;
    height: 120px;
    margin-top: 15px;
  }

  .page-download-ios-app__step-title,
  .page-download-ios-app__feature-title,
  .page-download-ios-app__promo-title,
  .page-download-ios-app__security-title,
  .page-download-ios-app__list-title {
    font-size: 20px;
  }

  .page-download-ios-app__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-download-ios-app__list-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-download-ios-app__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-download-ios-app__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-download-ios-app__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-download-ios-app__faq-answer {
    padding: 0 15px;
  }
  
  .page-download-ios-app__faq-item.active .page-download-ios-app__faq-answer {
    padding: 15px !important;
  }

  .page-download-ios-app__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-download-ios-app__cta-button,
  .page-download-ios-app__btn-primary,
  .page-download-ios-app__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Mobile image responsiveness */
  .page-download-ios-app img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download-ios-app__section,
  .page-download-ios-app__card,
  .page-download-ios-app__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-download-ios-app__main-title {
    font-size: 28px;
  }

  .page-download-ios-app__section-title {
    font-size: 22px;
  }

  .page-download-ios-app__hero-description {
    font-size: 14px;
  }
}