/* style/download.css */

/* Base styles for the page-download scope */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-download__section-description {
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-download__dark-bg {
  background-color: #1a1a2e; /* Inherit from body or specific dark section */
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* 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 */
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-download__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #ffffff;
  margin-bottom: 40px;
}

.page-download__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
}

.page-download__why-download-section .page-download__section-description {
  color: #333333;
}

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

.page-download__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__feature-text {
  font-size: 16px;
  color: #555555;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
}

.page-download__platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.page-download__tab-button:hover {
  background-color: #26A9E0;
}

.page-download__tab-button--active {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__tab-content {
  display: none;
}

.page-download__tab-content--active {
  display: block;
}

.page-download__download-guide {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-download__guide-step {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-download__guide-step:nth-child(even) {
  flex-direction: row-reverse;
}

.page-download__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  display: block;
}

.page-download__guide-text {
  flex-grow: 1;
}

.page-download__guide-title {
  font-size: 28px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__guide-text p {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
}

.page-download__app-features-section .page-download__section-description {
  color: #333333;
}

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

.page-download__feature-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-download__feature-heading {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-download__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
}

.page-download__faq-section .page-download__section-description {
  color: #e0e0e0;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__faq-item[open] > .page-download__faq-question {
  background-color: #26A9E0;
  border-bottom: 1px solid #1e87c0;
}

.page-download__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with click */
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from interfering with click */
}

.page-download__faq-answer {
  padding: 15px 20px 20px;
  font-size: 16px;
  color: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Ensure summary marker is hidden for details tag */
.page-download__faq-item summary {
  list-style: none;
}
.page-download__faq-item summary::-webkit-details-marker {
  display: none;
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__cta-bottom-section .page-download__section-title {
  color: #26A9E0;
}

.page-download__cta-bottom-section .page-download__section-description {
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__guide-step {
    flex-direction: column;
    text-align: center;
  }
  .page-download__guide-step:nth-child(even) {
    flex-direction: column;
  }
  .page-download__guide-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-download__main-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .page-download__description {
    font-size: clamp(16px, 3vw, 20px);
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-download__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-download__section-description {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
  }

  .page-download__feature-card {
    padding: 20px;
  }

  .page-download__tab-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-download__guide-step {
    gap: 20px;
  }

  .page-download__guide-image {
    max-width: 250px;
    margin: 0 auto 20px;
  }

  .page-download__guide-title {
    font-size: 24px;
  }

  .page-download__guide-text p {
    font-size: 15px;
  }

  .page-download__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-download__faq-answer {
    padding: 10px 15px 15px;
    font-size: 15px;
  }

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

  /* Ensure all containers with images are responsive */
  .page-download__hero-image-wrapper,
  .page-download__feature-card,
  .page-download__guide-step,
  .page-download__download-guide {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-download__hero-image-wrapper {
    padding: 0 15px;
  }

}

@media (max-width: 480px) {
  .page-download__tab-button {
    width: 100%;
  }
}