/* style/download.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-download {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-download__hero-section,
.page-download__app-features-section,
.page-download__exclusive-offers-section,
.page-download__final-cta-section {
  background: #000000; /* Dark background for these sections */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__faq-section {
  background: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

/* Titles and descriptions */
.page-download__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  font-weight: bold;
}

.page-download__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-download__feature-title,
.page-download__step-title,
.page-download__offer-title,
.page-download__feature-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-download__text-link:hover {
  color: #4dc2f7; /* Lighter shade on hover */
}

/* Buttons */
.page-download__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-download__btn-primary,
.page-download__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; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-download__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__btn-primary--large,
.page-download__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Hero section specific */
.page-download__hero-section .page-download__container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-download__hero-content {
  flex: 1;
}

.page-download__hero-image {
  flex: 0 0 40%; /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Card styling */
.page-download__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

.page-download__card img {
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Features grid */
.page-download__features-grid,
.page-download__download-steps-grid,
.page-download__offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* App features section */
.page-download__app-features-section .page-download__container {
  text-align: left;
}

.page-download__feature-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__feature-row--reverse {
  flex-direction: row-reverse;
}

.page-download__feature-text-block {
  flex: 1;
  min-width: 300px;
}

.page-download__feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-download__feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Video section */
.page-download__video-section {
  text-align: center;
  margin-top: 60px;
  background: #000000; /* Ensure video section has a dark background */
  padding: 40px 0;
  border-radius: 10px;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer; /* Indicate clickable video */
}

.page-download__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

.page-download__qr-code {
  margin-top: 20px;
  border: 5px solid #ffffff;
  border-radius: 5px;
}

/* FAQ section */
.page-download__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  margin-bottom: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1); /* Card background for FAQ items */
  padding: 0; /* Remove padding from card for FAQ items */
  border-radius: 10px;
  overflow: hidden; /* Hide overflow for smooth transition */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #26A9E0; /* Question background */
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #1e87b7;
}

.page-download__faq-question h3 {
  margin: 0;
  color: #ffffff; /* Ensure title in question is white */
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px; /* Initial padding is 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 30px; /* Expanded padding */
}

.page-download__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.8em;
  }
  .page-download__section-title {
    font-size: 2.2em;
  }
  .page-download__hero-section .page-download__container {
    flex-direction: column;
    text-align: center;
  }
  .page-download__hero-image {
    flex: none;
    width: 60%;
    margin-top: 30px;
  }
  .page-download__feature-row {
    flex-direction: column;
  }
  .page-download__feature-row--reverse {
    flex-direction: column;
  }
  .page-download__feature-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-download__container {
    padding: 0 15px;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__app-features-section,
.page-download__how-to-download-section,
  .page-download__exclusive-offers-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 50px 0;
  }

  .page-download__main-title {
    font-size: 2.2em;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }

  .page-download__intro-description,
  .page-download__section-description,
  .page-download__video-description {
    font-size: 1em;
  }

  .page-download__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    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;
  }

  /* Image responsive rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min-width */
    min-height: 200px !important; /* Enforce min-height */
  }

  /* Video responsive rules */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  /* General container adaptation for mobile */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__feature-row,
  .page-download__feature-image,
  .page-download__feature-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-download__hero-image {
    width: 80%; /* Adjust hero image width for smaller mobiles */
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-download__faq-answer {
    padding: 0 20px;
  }

  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__hero-section .page-download__container {
    gap: 20px;
  }
  .page-download__hero-image {
    width: 90%;
  }
  .page-download__cta-group {
    gap: 10px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}