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

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light backgrounds */
  background-color: #ffffff; /* Default, will be overridden by shared.css body */
}

/* Color contrast adjustments based on section background */
.page-download__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-download__card-bg {
  background-color: var(--card-bg-color);
  color: var(--text-secondary-color);
}

.page-download__card {
  background-color: var(--card-bg-color);
  color: var(--text-secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__text-main {
  color: var(--text-main-color);
}

.page-download__text-secondary {
  color: var(--text-secondary-color);
}

.page-download__text-highlight {
  color: var(--gold-color);
}

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

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

.page-download__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-main-color);
}

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

.page-download__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-download__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
}

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

.page-download__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* General Section Styling */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-download__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-download__text-block {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-download__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-download__content-wrapper > div {
  flex: 1;
}

.page-download__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-download__image-full-width {
  max-width: 100%;
}

/* Guide Section */
.page-download__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-download__guide-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__guide-item ol {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 20px;
}

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

.page-download__image-guide {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Benefits Section */
.page-download__benefits-layout {
  flex-direction: row; /* Desktop layout */
  align-items: flex-start;
}

.page-download__benefits-list {
  list-style: none;
  padding: 0;
  flex: 1;
}

.page-download__benefits-item {
  background-color: var(--deep-green-color);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-download__image-benefits {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-download__feature-item {
  text-align: center;
}

.page-download__feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-download__faq-list {
  margin-top: 30px;
}

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #333333;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details summary */
}

.page-download__faq-question:hover {
  background-color: #e0e0e0;
}

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

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

.page-download__faq-answer {
  padding: 0 20px 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-download__cta-final-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.page-download__final-cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  z-index: 0;
}

.page-download__cta-final-section .page-download__container {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-download__content-wrapper {
    flex-direction: row;
  }
  .page-download__content-wrapper:nth-of-type(even) {
    flex-direction: row-reverse;
  }
  .page-download__image-content {
    max-width: 50%;
  }
  .page-download__benefits-layout {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-download__main-title {
    font-size: 2.2rem;
  }

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

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

  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__container,
  .page-download__section,
  .page-download__card,
  .page-download__guide-item,
  .page-download__feature-item,
  .page-download__faq-item,
  .page-download__benefits-item,
  .page-download__cta-final-section .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-download__image-content,
  .page-download__image-guide,
  .page-download__image-benefits,
  .page-download__hero-image,
  .page-download__final-cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important; /* Ensure minimum size */
  }

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

  .page-download__sub-title {
    font-size: 1.3rem;
  }

  .page-download__text-block {
    font-size: 1rem;
  }

  .page-download__content-wrapper {
    flex-direction: column;
  }

  .page-download__benefits-layout {
    flex-direction: column;
  }
  
  .page-download__faq-question {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .page-download__faq-answer {
    padding: 0 15px 12px;
  }
}

/* Ensure minimum image sizes for content areas */
.page-download__container img,
.page-download__content-wrapper img,
.page-download__guide-item img,
.page-download__feature-item img,
.page-download__benefits-layout img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-download img {
  filter: none;
}

.page-download__hero-image {
  filter: brightness(0.6); /* Allowed for background effect, not changing original image color */
}