:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-btn-bg: #C30808;
  --register-login-btn-text: #FFFF00;
  --default-bg-color: #FFFFFF;
  --default-text-color: #333333;
}

.page-download-ios {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--default-text-color);
  background-color: var(--default-bg-color);
}

.page-download-ios__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-download-ios__center-content {
  text-align: center;
}

.page-download-ios__section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-download-ios__section:last-of-type {
  border-bottom: none;
}

.page-download-ios__dark-bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-download-ios__light-bg {
  background-color: var(--default-bg-color);
  color: var(--default-text-color);
}

.page-download-ios__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-download-ios__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-download-ios__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), #00A650); /* Gradient for hero */
}

.page-download-ios__hero-section .page-download-ios__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
}

.page-download-ios__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.page-download-ios__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-download-ios__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download-ios__hero-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-download-ios__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download-ios__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-download-ios__cta-button:hover {
  background: #00A650;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download-ios__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-download-ios__btn-primary:hover {
  background: #00A650;
  border-color: #00A650;
}

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

.page-download-ios__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
  color: var(--default-text-color);
}

.page-download-ios__feature-item:hover {
  transform: translateY(-5px);
}

.page-download-ios__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download-ios__feature-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-download-ios__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.page-download-ios__step-item {
  background: var(--secondary-color);
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--default-text-color);
}

.page-download-ios__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-download-ios__step-item p {
  font-size: 16px;
  line-height: 1.6;
}

.page-download-ios__guide-image {
  margin-top: 50px;
  text-align: center;
}

.page-download-ios__guide-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.page-download-ios__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-download-ios__feature-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: left;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-download-ios__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-download-ios__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download-ios__feature-card p {
  font-size: 16px;
  line-height: 1.7;
}

.page-download-ios__app-features-image {
  margin-top: 50px;
  text-align: center;
}

.page-download-ios__app-features-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

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

.page-download-ios__safety-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
  color: var(--default-text-color);
}

.page-download-ios__safety-item:hover {
  transform: translateY(-5px);
}

.page-download-ios__safety-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download-ios__safety-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-download-ios__safety-image {
  margin-top: 50px;
  text-align: center;
}

.page-download-ios__safety-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

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

.page-download-ios__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-download-ios__faq-item.active .page-download-ios__faq-answer {
  max-height: 2000px !important;
  padding: 20px 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--default-text-color);
}

.page-download-ios__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-download-ios__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-download-ios__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-download-ios__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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__faq-item.active .page-download-ios__faq-toggle {
  transform: rotate(45deg);
  color: var(--register-login-btn-bg);
}

.page-download-ios__final-cta {
  text-align: center;
  padding: 80px 0;
}

.page-download-ios__final-cta .page-download-ios__section-title,
.page-download-ios__final-cta .page-download-ios__section-description {
  color: var(--secondary-color);
}

@media (max-width: 1024px) {
  .page-download-ios__hero-title {
    font-size: 40px;
  }
  .page-download-ios__hero-description {
    font-size: 18px;
  }
  .page-download-ios__section-title {
    font-size: 30px;
  }
  .page-download-ios__section-description {
    font-size: 16px;
  }
  .page-download-ios__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-download-ios__feature-title,
  .page-download-ios__card-title,
  .page-download-ios__safety-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-download-ios {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-download-ios__container {
    padding: 0 15px;
  }

  .page-download-ios__section {
    padding: 40px 0;
  }
}