/* style/download.css */

:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

.page-download {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page-download__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #555555;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-download__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

.page-download__hero-video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-download__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-download__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

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

.page-download__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-download__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-download__download-button {
  min-width: 200px;
}

.page-download__qr-codes {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.page-download__qr-item {
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.page-download__qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 5px;
}

.page-download__qr-label {
  font-weight: bold;
  font-size: 1.1em;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-download__benefit-card {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-download__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

.page-download__benefits-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* How-To-Download Section */
.page-download__how-to-download {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-download__how-to-download .page-download__section-title,
.page-download__how-to-download .page-download__section-description {
  color: var(--text-light);
}

.page-download__platform-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.page-download__platform-guide {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  box-sizing: border-box;
}

.page-download__guide-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
  text-align: center;
}

.page-download__guide-steps {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-download__guide-steps li {
  margin-bottom: 10px;
}

.page-download__guide-steps strong {
  color: var(--secondary-color);
}

.page-download__guide-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  min-width: 220px;
}

/* App Features Section */
.page-download__app-features {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-download__feature-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.page-download__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-download__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
  color: var(--text-light);
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-download__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-download__faq-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.page-download__cta-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-download__cta-content {
  text-align: center;
}

.page-download__cta-section .page-download__section-title {
  color: var(--primary-color);
}

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

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

.page-download__cta-button-link {
  min-width: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }

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

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

@media (max-width: 768px) {
  .page-download__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }

  .page-download__hero-content {
    padding: 20px 15px;
  }

  .page-download__hero-title {
    font-size: 2.5em;
  }

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

  .page-download__hero-buttons,
  .page-download__qr-codes {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-download__qr-item {
    width: 100%;
    max-width: 250px;
  }

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

  .page-download__section-description {
    font-size: 0.95em;
  }

  .page-download__benefits-section,
  .page-download__how-to-download,
  .page-download__app-features,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 40px 0;
  }

  .page-download__platform-guide {
    padding: 25px;
    max-width: 100%;
  }

  .page-download__guide-title {
    font-size: 1.6em;
  }

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

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

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

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

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__qr-codes,
  .page-download__hero-buttons,
  .page-download__cta-buttons,
  .page-download__platform-guides,
  .page-download__benefits-grid,
  .page-download__features-grid,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-download__qr-image {
    width: 150px;
    height: 150px;
  }
}