/* style/mobile-app.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d;
  --border-color: #e0e0e0;
}

.page-mobile-app {
  color: var(--text-light); /* Default text color for page content on dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Ensure content is not hidden by fixed header */
.page-mobile-app__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(10, 36, 99, 0.8) 100%);
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-mobile-app__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-mobile-app__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-mobile-app__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-mobile-app__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__cta-button--primary {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
}

.page-mobile-app__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-mobile-app__cta-button--secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-mobile-app__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-mobile-app__main-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-mobile-app__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-dark); /* Default for light sections */
}

.page-mobile-app__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark); /* Default for light sections */
}

/* Dark Section Specifics */
.page-mobile-app__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-mobile-app__dark-section .page-mobile-app__section-title,
.page-mobile-app__dark-section .page-mobile-app__section-description,
.page-mobile-app__dark-section h3,
.page-mobile-app__dark-section p {
  color: var(--text-light);
}

.page-mobile-app__why-choose-app-section,
.page-mobile-app__app-features-section,
.page-mobile-app__faq-section,
.page-mobile-app__final-cta-section {
  padding: 80px 0;
}

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

.page-mobile-app__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-mobile-app__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-mobile-app__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-mobile-app__download-guide-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.page-mobile-app__step-item {
  text-align: center;
  background: var(--text-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-mobile-app__step-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-mobile-app__step-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-mobile-app__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-mobile-app__cta-download-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-mobile-app__cta-button--download-android,
.page-mobile-app__cta-button--download-ios {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-mobile-app__cta-button--download-android:hover,
.page-mobile-app__cta-button--download-ios:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-mobile-app__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-mobile-app__feature-list-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-mobile-app__feature-list-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-mobile-app__feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-mobile-app__app-promotions-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.page-mobile-app__promo-card {
  background: var(--text-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

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

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

.page-mobile-app__promo-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-mobile-app__promo-card .page-mobile-app__cta-button {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: none;
  box-shadow: none;
}

.page-mobile-app__promo-card .page-mobile-app__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__faq-list {
  margin-top: 40px;
}

.page-mobile-app__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--text-light);
  color: var(--text-dark);
}

.page-mobile-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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-mobile-app__faq-item.active .page-mobile-app__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-mobile-app__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-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-mobile-app__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-mobile-app__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-mobile-app__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-mobile-app__faq-item.active .page-mobile-app__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-mobile-app__news-section {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.page-mobile-app__news-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-mobile-app__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-mobile-app__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-mobile-app__news-content {
  padding: 25px;
}

.page-mobile-app__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-mobile-app__news-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-mobile-app__news-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-mobile-app__news-excerpt {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-mobile-app__read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-mobile-app__read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-mobile-app__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), rgba(10, 36, 99, 0.8));
  color: var(--text-light);
}

.page-mobile-app__final-cta-section .page-mobile-app__description {
  font-size: 20px;
}

.page-mobile-app__final-cta-section .page-mobile-app__cta-button {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: none;
}

.page-mobile-app__final-cta-section .page-mobile-app__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-mobile-app__main-title {
    font-size: 38px;
  }
  .page-mobile-app__section-title {
    font-size: 32px;
  }
  .page-mobile-app__feature-title,
  .page-mobile-app__step-title,
  .page-mobile-app__promo-title,
  .page-mobile-app__news-title {
    font-size: 22px;
  }
  .page-mobile-app__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* Ensure content is not hidden by fixed header on mobile */
  .page-mobile-app__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile shared header height */
    padding-bottom: 40px;
  }

  .page-mobile-app__container {
    padding: 0 15px;
  }

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

  .page-mobile-app__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-mobile-app__cta-group {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-mobile-app__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-mobile-app__section-title {
    font-size: 28px;
  }

  .page-mobile-app__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-mobile-app__why-choose-app-section,
  .page-mobile-app__download-guide-section,
  .page-mobile-app__app-features-section,
  .page-mobile-app__app-promotions-section,
  .page-mobile-app__faq-section,
  .page-mobile-app__news-section,
  .page-mobile-app__final-cta-section {
    padding: 40px 0;
  }

  .page-mobile-app__features-grid,
  .page-mobile-app__download-steps,
  .page-mobile-app__feature-list,
  .page-mobile-app__promo-cards-grid,
  .page-mobile-app__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-mobile-app__feature-icon,
  .page-mobile-app__feature-list-icon {
    width: 80px;
    height: 80px;
  }

  .page-mobile-app__step-image {
    width: 200px;
    height: 200px;
  }

  .page-mobile-app__cta-download-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-mobile-app__cta-button--download-android,
  .page-mobile-app__cta-button--download-ios {
    max-width: 300px;
    margin: 0 auto;
  }

  .page-mobile-app__promo-image {
    height: 180px;
  }

  .page-mobile-app__faq-question {
    padding: 15px;
  }
  
  .page-mobile-app__faq-question h3 {
    font-size: 16px;
  }
  
  .page-mobile-app__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-mobile-app__faq-item.active .page-mobile-app__faq-answer {
    padding: 15px !important;
  }

  .page-mobile-app__news-image {
    height: 180px;
  }

  .page-mobile-app__news-content {
    padding: 20px;
  }

  .page-mobile-app__news-title {
    font-size: 18px;
  }

  .page-mobile-app__news-excerpt {
    font-size: 15px;
  }

  .page-mobile-app__final-cta-section .page-mobile-app__description {
    font-size: 16px;
  }
  
  /* Mobile image responsiveness */
  .page-mobile-app img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-mobile-app__section,
  .page-mobile-app__card,
  .page-mobile-app__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}