/* style/download.css */

/* Base styles for the page-download */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
}

/* Shared container for content sections */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-download__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-download__dark-section {
  background-color: var(--background-color);
  color: var(--text-main);
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-main);
  line-height: 1.2;
}

.page-download__section-description {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* Card styling */
.page-download__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

.page-download__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-download__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Hero Section */
.page-download__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-download__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5);
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-download__main-title {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.page-download__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Why Download Section */
.page-download__why-download .page-download__section-title,
.page-download__why-download .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-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-download__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* How to Download Section */
.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__platform-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__platform-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  width: 800px; /* Placeholder width */
  height: 600px; /* Placeholder height */
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 20px;
  text-align: left;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-download__step-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-download__step-item strong {
  color: var(--text-main);
}

/* App Features Section */
.page-download__app-features .page-download__section-title,
.page-download__app-features .page-download__section-description {
  color: #333333;
}

.page-download__features-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  display: block;
  width: 1000px; /* Placeholder width */
  height: 750px; /* Placeholder height */
  margin-left: auto;
  margin-right: auto;
}

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

/* Exclusive Offers Section */
.page-download__offers-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  display: block;
  width: 1000px; /* Placeholder width */
  height: 750px; /* Placeholder height */
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__offer-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-download__offer-text {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-download__cta-wrapper {
  margin-top: 40px;
}

/* FAQ Section */
.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
  color: #333333;
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-download__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  list-style: none;
  user-select: none;
  outline: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-download__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-download__faq-question {
  flex-grow: 1;
}

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-download__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
  color: #555555;
}

.page-download__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  width: 800px; /* Placeholder width */
  height: 600px; /* Placeholder height */
  margin-left: auto;
  margin-right: auto;
}

/* Conclusion Section */
.page-download__conclusion .page-download__section-description {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-download__section {
    padding: 40px 0;
  }

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

  .page-download__section-title {
    font-size: 28px;
  }

  .page-download__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-download__main-title {
    font-size: 36px;
  }

  .page-download__hero-description {
    font-size: 18px;
  }

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

  .page-download__features-grid,
  .page-download__download-steps,
  .page-download__features-list,
  .page-download__offers-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__platform-guide {
    padding: 20px;
  }

  .page-download__guide-image,
  .page-download__features-image,
  .page-download__offers-image,
  .page-download__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure video also respects max-width: 100% */
  .page-download__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__hero-video-wrapper {
    position: relative;
    height: 250px;
  }

  .page-download__hero-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
  }

  .page-download__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  .page-download__hero-section {
    padding-top: 10px !important;
  }

  /* All content containers for mobile responsiveness */
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__cta-wrapper,
  .page-download__download-steps,
  .page-download__features-grid,
  .page-download__features-list,
  .page-download__offers-list,
  .page-download__faq-list {
    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__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}