/* style/mobile-app.css */

/* Base styles for the page-mobile-app container */
.page-mobile-app {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assumed dark */
}

.page-mobile-app__main-container {
  padding-top: 120px; /* Desktop fixed header spacing */
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-mobile-app__section {
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for sections */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-mobile-app__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-mobile-app__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #CC0000, #990000); /* Red gradient */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.page-mobile-app__hero-content {
  flex: 1;
  min-width: 300px;
  padding: 20px 40px;
  box-sizing: border-box;
}

.page-mobile-app__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-mobile-app__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-mobile-app__hero-actions {
  display: flex;
  gap: 20px;
}

.page-mobile-app__hero-image-wrapper {
  flex: 1;
  min-width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-mobile-app__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-mobile-app__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-mobile-app__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #333333;
}

.page-mobile-app__btn--primary:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-mobile-app__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-mobile-app__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-mobile-app__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Why Download Section */
.page-mobile-app__why-download {
  text-align: center;
}

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

.page-mobile-app__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

.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;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-mobile-app__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Key Features Section */
.page-mobile-app__key-features {
  text-align: center;
}

.page-mobile-app__features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
}

.page-mobile-app__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__feature-icon-large {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #CC0000; /* Brand red */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-mobile-app__feature-icon-large img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.page-mobile-app__feature-details {
  text-align: left;
}

.page-mobile-app__feature-details-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-mobile-app__feature-details p,
.page-mobile-app__feature-details ul {
  font-size: 17px;
  color: #f0f0f0;
}

.page-mobile-app__feature-details ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-mobile-app__feature-details li {
  margin-bottom: 8px;
}

/* Download Guide Section */
.page-mobile-app__download-guide {
  text-align: center;
}

.page-mobile-app__download-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.page-mobile-app__download-platform {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  width: 45%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__download-platform-title {
  font-size: 28px;
  font-weight: bold;
  color: #CC0000;
  margin-bottom: 20px;
}

.page-mobile-app__download-qr {
  width: 250px;
  height: 250px;
  border: 5px solid #ffffff;
  border-radius: 5px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-mobile-app__download-platform p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-mobile-app__installation-steps {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-mobile-app__installation-title {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.page-mobile-app__installation-steps ol {
    list-style-type: decimal;
    margin-left: 25px;
    padding-left: 0;
    color: #f0f0f0;
    font-size: 17px;
}

.page-mobile-app__installation-steps li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-mobile-app__installation-steps li strong {
    color: #FFD700;
}

/* Exclusive Offers Section */
.page-mobile-app__exclusive-offers {
  text-align: center;
}

.page-mobile-app__offer-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

.page-mobile-app__offer-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  width: 45%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-mobile-app__offer-title {
  font-size: 28px;
  font-weight: bold;
  color: #CC0000;
  margin-bottom: 15px;
}

.page-mobile-app__offer-card p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-mobile-app__faq {
  text-align: center;
}

.page-mobile-app__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FAQ container style */
.page-mobile-app__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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;
  color: #f0f0f0;
  text-align: left;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-mobile-app__faq-item.active .page-mobile-app__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to hold any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-mobile-app__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-mobile-app__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.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; /* Prevent h3 from blocking click events */
  color: #ffffff;
  text-align: left;
}

/* Toggle icon */
.page-mobile-app__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-mobile-app__faq-item.active .page-mobile-app__faq-toggle {
  color: #CC0000;
  transform: rotate(45deg); /* Change to X when active */
}

/* Conclusion Section */
.page-mobile-app__conclusion {
  text-align: center;
}

.page-mobile-app__final-cta {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-mobile-app__hero-content {
    padding: 20px 30px;
  }
  .page-mobile-app__hero-title {
    font-size: 40px;
  }
  .page-mobile-app__hero-description {
    font-size: 18px;
  }
  .page-mobile-app__section-title {
    font-size: 30px;
  }
  .page-mobile-app__section-description {
    font-size: 16px;
  }
  .page-mobile-app__feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-mobile-app__feature-details {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Mobile fixed header spacing */
  .page-mobile-app__main-container {
    padding-top: 100px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Ensure all images are responsive and do not overflow */
  .page-mobile-app img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-mobile-app__section,
  .page-mobile-app__hero-section,
  .page-mobile-app__feature-card,
  .page-mobile-app__feature-item,
  .page-mobile-app__download-platform,
  .page-mobile-app__offer-card,
  .page-mobile-app__installation-steps,
  .page-mobile-app__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-mobile-app__hero-section {
    flex-direction: column;
    padding: 40px 0;
  }
  .page-mobile-app__hero-content {
    padding: 0 15px 30px 15px;
  }
  .page-mobile-app__hero-title {
    font-size: 32px;
    text-align: center;
  }
  .page-mobile-app__hero-description {
    font-size: 16px;
    text-align: center;
  }
  .page-mobile-app__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-mobile-app__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-mobile-app__feature-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-mobile-app__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-mobile-app__feature-title {
    font-size: 20px;
  }

  .page-mobile-app__features-list {
    padding: 0 15px;
  }
  .page-mobile-app__feature-item {
    padding: 20px;
    gap: 20px;
  }
  .page-mobile-app__feature-icon-large {
    width: 90px;
    height: 90px;
  }
  .page-mobile-app__feature-icon-large img {
      width: 60px;
      height: 60px;
  }
  .page-mobile-app__feature-details-title {
    font-size: 22px;
  }
  .page-mobile-app__feature-details p,
  .page-mobile-app__feature-details ul {
    font-size: 15px;
  }

  .page-mobile-app__download-steps {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  .page-mobile-app__download-platform {
    width: 100%;
    max-width: none;
  }
  .page-mobile-app__download-qr {
    width: 200px;
    height: 200px;
  }
  .page-mobile-app__installation-steps {
      padding: 25px;
  }
  .page-mobile-app__installation-title {
      font-size: 22px;
  }
  .page-mobile-app__installation-steps ol {
      font-size: 15px;
  }

  .page-mobile-app__offer-cards {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  .page-mobile-app__offer-card {
    width: 100%;
    max-width: none;
  }
  .page-mobile-app__offer-image {
    height: 200px;
  }
  .page-mobile-app__offer-title {
    font-size: 22px;
  }
  .page-mobile-app__offer-card p {
    font-size: 15px;
  }

  .page-mobile-app__faq-question {
    padding: 15px;
  }
  .page-mobile-app__faq-question h3 {
    font-size: 16px;
  }
  .page-mobile-app__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-mobile-app__faq-item.active .page-mobile-app__faq-answer {
    padding: 15px !important;
  }
  .page-mobile-app__faq-answer p {
    font-size: 15px;
  }

  .page-mobile-app__final-cta .page-mobile-app__btn {
    width: auto;
  }
}