/* style/download.css */

/* Base styles for page-download content */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Main content background is transparent, relies on body bg */
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Ensure hero section has a background if body is transparent */
  color: #ffffff;
  overflow: hidden; /* Ensure image does not overflow */
}

.page-download__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-download__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

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

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

.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__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

/* General Section Styles */
.page-download__section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Default dark background for sections */
  color: #ffffff;
}

.page-download__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

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

.page-download__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body */
  color: #ffffff;
}

/* Why Download Section */
.page-download__why-download {
  background-color: #0a0a0a;
}

.page-download__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: center;
}

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__feature-icon {
  width: 100%; /* Ensure images take full width of their container */
  max-width: 200px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded corners for images */
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* App Features Section */
.page-download__app-features {
  background-color: #1a1a1a;
}

.page-download__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.page-download__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__text {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-download__image-block {
  text-align: center;
}

.page-download__app-screenshot {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* How to Download Section */
.page-download__how-to-download {
  background-color: #0a0a0a;
}

.page-download__intro-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-download__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-download__download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-download__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-download__download-text {
  text-align: center;
}

/* Security and Fair Play Section */
.page-download__security-fair-play {
  background-color: #1a1a1a;
}

.page-download__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-download__faq {
  background-color: #0a0a0a;
}

.page-download__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-download__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-download__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-download__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-download__cta-final {
  background-color: #0a0a0a;
  text-align: center;
}

.page-download__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-download__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-download__content-grid:nth-child(even) .page-download__text-block {
    order: 2;
  }

  .page-download__content-grid:nth-child(even) .page-download__image-block {
    order: 1;
  }

  .page-download__download-cta {
    flex-direction: row;
    justify-content: center;
  }

  .page-download__download-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-download__main-title {
    font-size: 2em; /* Ensure not too large on mobile */
  }

  .page-download__hero-description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section {
    padding: 40px 15px;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-download__container,
  .page-download__section,
  .page-download__card,
  .page-download__cta-buttons,
  .page-download__download-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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-section {
    padding-top: 10px !important;
  }

  .page-download__sub-title {
    font-size: 1.4em;
  }

  .page-download__feature-title {
    font-size: 1.2em;
  }

  .page-download__download-cta {
    flex-direction: column;
  }
}