/* Base styles for the page-download */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark sections */
  background-color: var(--background-color, #0A0A0A); /* Default to dark background if var not set */
}

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

.page-download__dark-section {
  background-color: var(--background-color, #0A0A0A);
  color: #FFF6D6;
  padding: 60px 0;
}

.page-download__light-bg {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  background-color: var(--background-color, #0A0A0A);
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-download__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive scroll */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 15px;
}

.page-download__main-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Brand color for main title */
}

.page-download__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for gradient button */
  border: none;
}

.page-download__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-download__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-download__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-download__dark-section .page-download__section-title {
  color: #F2C14E; /* Brand color on dark background */
}

.page-download__light-bg .page-download__section-title {
  color: #333333; /* Dark text on light background */
}

.page-download__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 25px;
}

.page-download__text-block {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  color: #FFF6D6;
}

.page-download__light-bg .page-download__text-block {
  color: #333333; /* Dark text on light background */
}

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

/* Image Text Block */
.page-download__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
}

.page-download__image-text-block .page-download__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__image-text-block .page-download__text-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__feature-list li {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF6D6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-download__feature-list .page-download__list-icon {
  color: #FFD36B;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

/* Download Methods */
.page-download__download-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-download__download-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF6D6;
}

.page-download__card--light {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-download__card--light .page-download__card-title {
  color: #333333;
}

.page-download__card--light .page-download__card-description {
  color: #555555;
}

.page-download__card--light .page-download__instruction-list li {
  color: #333333;
}

.page-download__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-download__card-description {
  font-size: 0.95rem;
  margin-bottom: 25px;
  color: #FFF6D6;
}

.page-download__qr-code-wrapper {
  margin-bottom: 25px;
  border: 4px solid #F2C14E;
  border-radius: 8px;
  overflow: hidden;
  max-width: 200px; /* Smaller QR code size */
  width: 100%;
}

.page-download__qr-code {
  width: 100%;
  height: auto;
  display: block;
}

.page-download__instruction-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  width: 100%;
  max-width: 350px; /* Limit width for readability */
}

.page-download__instruction-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #FFF6D6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.page-download__instruction-list .page-download__list-step {
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
}

.page-download__note-text {
  font-size: 0.9rem;
  margin-top: 40px;
  color: #FFF6D6;
  text-align: center;
}

/* Features Grid */
.page-download__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-download__feature-card .page-download__card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #FFD36B; /* Accent color for feature titles */
}

.page-download__feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #FFF6D6;
}

/* FAQ Section */
details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG color */
  color: #FFF6D6;
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: rgba(242, 193, 78, 0.05); /* Slight hover effect */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-download__light-bg .page-download__faq-qtext {
  color: #333333;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}