/* style/download.css */

:root {
  --primary-color: #017439;
  --secondary-color: #00562c; /* Slightly darker primary for hover/accent */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-register-login: #FFFF00;
}

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

/* --- HERO Section --- */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--background-dark);
  color: var(--text-color-light);
  overflow: hidden;
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within its max-width */
}

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-download__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--button-text-register-login); /* Use specific color for emphasis */
  margin-bottom: 20px;
  /* No fixed font-size, use clamp if absolutely necessary, but prefer relative sizing/line-height */
}

.page-download__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-register);
  color: var(--button-text-register-login);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--button-register);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__cta-button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styling --- */
.page-download__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark);
}

/* Dark background sections */
.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description,
.page-download__dark-section .page-download__guide-subtitle,
.page-download__dark-section .page-download__steps-list li,
.page-download__dark-section .page-download__support-channels li {
  color: var(--text-color-light);
}

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

.page-download__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

/* --- Why Download Section --- */
.page-download__why-download .page-download__section-title {
  color: var(--primary-color);
}

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

.page-download__feature-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-download__feature-card p {
  font-size: 1em;
  color: var(--text-color-dark);
}

/* --- Download Guide Section --- */
.page-download__download-guide .page-download__section-title {
  color: var(--text-color-light);
}

.page-download__platform-guide {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__platform-guide:last-of-type {
  margin-bottom: 0;
  border-bottom: none;
}

.page-download__guide-subtitle {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-download__platform-image {
  margin-bottom: 30px;
}

.page-download__platform-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-download__steps-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: var(--text-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__steps-list li strong {
  color: var(--button-text-register-login);
}

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

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

/* --- App Features Overview Section --- */
.page-download__app-features-overview .page-download__section-title {
  color: var(--primary-color);
}

.page-download__features-grid-alt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-download__feature-item {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

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

.page-download__feature-image-wrapper {
  grid-column: span 2; /* Span across two columns for larger image */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-download__feature-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Adjust grid for better layout of image */
@media (min-width: 992px) {
  .page-download__features-grid-alt {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .page-download__feature-image-wrapper {
    grid-column: 2 / span 2; /* Place image in middle and right */
    grid-row: 1 / span 2; /* Span two rows */
  }
  .page-download__feature-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .page-download__feature-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .page-download__feature-item:nth-child(3) { grid-column: 1; grid-row: 3; }
  .page-download__feature-item:nth-child(4) { grid-column: 1; grid-row: 4; }
}

/* --- Promotions Section --- */
.page-download__promotions-section .page-download__section-title {
  color: var(--text-color-light);
}

.page-download__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.page-download__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  color: var(--text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-download__promo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-download__promo-card .page-download__card-title {
  color: var(--button-text-register-login);
}

.page-download__promo-image-wrapper {
  grid-column: span 2; /* Span across two columns for larger image */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-download__promo-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .page-download__promo-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .page-download__promo-image-wrapper {
    grid-column: 1 / span 2; /* Place image in middle and right */
    grid-row: 1 / span 2; /* Span two rows */
  }
  .page-download__promo-card:nth-child(1) { grid-column: 3; grid-row: 1; }
  .page-download__promo-card:nth-child(2) { grid-column: 3; grid-row: 2; }
  .page-download__promo-card:nth-child(3) { grid-column: 3; grid-row: 3; }
  .page-download__promo-card:nth-child(4) { grid-column: 3; grid-row: 4; }
}

.page-download__button-group {
  margin-top: 50px;
}

/* --- FAQ Section --- */
.page-download__faq-section .page-download__section-title {
  color: var(--primary-color);
}

.page-download__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--background-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: var(--primary-color);
}

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: #f5f5f5;
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: var(--text-color-dark);
  text-align: left;
}

.page-download__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

.page-download__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-download__faq-answer a:hover {
  color: var(--secondary-color);
}

/* --- Customer Support Section --- */
.page-download__customer-support-contact .page-download__section-title {
  color: var(--text-color-light);
}

.page-download__support-channels {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-download__support-channels li {
  margin: 0;
}

.page-download__support-link {
  display: block;
  padding: 15px 30px;
  background: var(--button-register);
  color: var(--button-text-register-login);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--button-register);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__support-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__guide-subtitle {
    font-size: 1.8em;
  }
  .page-download__item-title,
  .page-download__card-title {
    font-size: 1.3em;
  }
  .page-download__hero-description,
  .page-download__section-description {
    font-size: 1em;
  }
  .page-download__hero-image img {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-image {
    margin-bottom: 20px;
  }
  .page-download__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__main-title {
    font-size: 2.2em; /* Adjust to be readable but not too large */
    line-height: 1.3;
  }
  .page-download__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-download__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__section {
    padding: 40px 15px;
  }
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-download__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-download__features-grid,
  .page-download__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__features-grid-alt {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-image-wrapper,
  .page-download__promo-image-wrapper {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }
  .page-download__feature-item, .page-download__promo-card {
    padding: 20px;
  }
  .page-download__card-title, .page-download__item-title {
    font-size: 1.2em;
  }

  .page-download__platform-guide {
    margin-bottom: 40px;
  }
  .page-download__guide-subtitle {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-download__platform-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__steps-list li {
    font-size: 0.95em;
    padding: 15px;
  }

  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-qtext {
    font-size: 1em;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 20px 20px;
  }

  .page-download__support-channels {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__support-link {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure all images are responsive */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure all containers are responsive */
  .page-download__section,
  .page-download__container,
  .page-download__feature-card,
  .page-download__promo-card,
  .page-download__platform-guide,
  .page-download__faq-list,
  .page-download__support-channels {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}