/* style/download.css */
.page-download {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --background-dark: #08160F;
  --card-background: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Ensure text is light on dark background */
  line-height: 1.6;
  background-color: var(--background-dark);
}

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

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--deep-green-color);
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-download__hero-content-wrapper {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  background-color: var(--card-background);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-download__btn-secondary {
  background: var(--card-background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-download__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-download__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: 700;
}

.page-download__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-download__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-download__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-download__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.page-download__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  top: 0;
}

.page-download__video-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
  text-align: center;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
  background-color: #000;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-download__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
}

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

.page-download__platform-card {
  background-color: var(--card-background);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__platform-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: 10px;
  object-fit: contain;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-download__platform-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-download__btn-full-width {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

.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: var(--card-background);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-download__feature-title {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

.page-download__promotions-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
}

.page-download__promotion-card {
  background-color: var(--card-background);
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-download__promotion-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
}

.page-download__promotion-content {
  padding: 30px;
}

.page-download__promotion-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-download__promotion-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  text-align: justify;
}

.page-download__faq-section {
  padding: 60px 0;
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Details element specific CSS */
.page-download__faq-item[open] > .page-download__faq-question {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.page-download__faq-item > summary {
  list-style: none;
}

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

.page-download__cta-final-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  text-align: center;
}

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

.page-download__cta-final-section .page-download__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-download__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side or more complex layout */
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .page-download__hero-image-wrapper {
    width: 60%;
    max-height: none;
  }

  .page-download__hero-content-wrapper {
    width: 40%;
    margin-top: 0;
    margin-left: -100px; /* Adjust overlap for desktop */
    padding: 50px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .page-download__main-title {
    text-align: left;
  }

  .page-download__hero-description {
    text-align: left;
  }

  .page-download__cta-buttons {
    justify-content: flex-start;
  }

  .page-download__promotion-card {
    flex-direction: row;
  }

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

  .page-download__promotion-image {
    width: 50%;
  }

  .page-download__promotion-content {
    width: 50%;
    padding: 40px;
  }

  .page-download__feature-card {
    align-items: flex-start;
    text-align: left;
  }

  .page-download__feature-image {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
  }
}

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

  .page-download__hero-content-wrapper {
    margin-top: -50px;
    padding: 25px 15px;
  }

  .page-download__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-download__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-download__subsection-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-download__text-block,
  .page-download__list-item,
  .page-download__feature-description,
  .page-download__promotion-description,
  .page-download__faq-answer p {
    font-size: 0.95rem;
  }

  .page-download__container,
  .page-download__platform-card,
  .page-download__feature-card,
  .page-download__promotion-card,
  .page-download__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-download__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-download__platform-image,
  .page-download__feature-image,
  .page-download__promotion-image,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-download__promotion-card {
    flex-direction: column;
  }

  .page-download__promotion-image {
    width: 100%;
  }

  .page-download__promotion-content {
    width: 100%;
    padding: 20px;
  }

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

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

  .page-download__cta-final-section .page-download__cta-buttons {
    flex-direction: column;
  }

  .page-download__video-section {
    padding-top: 10px !important; /* body handles header offset */
  }
}

/* Custom color variables for contrast analysis */
:root {
  --primary-color-rgb: 17, 168, 78;
  --background-dark-rgb: 8, 22, 15;
}

/* Ensure contrast for specific elements if needed */
.page-download a {
  color: var(--primary-color);
}
.page-download a:hover {
  color: var(--glow-color);
}