/* style/download.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f9f9f9;
  --bg-color-white: #ffffff;
  --border-color: #e0e0e0;
  --accent-color-login: #EA7C07;
}

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

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

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description {
  color: var(--text-color-light);
}

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

.page-download__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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, header offset handled by body */
  background-color: var(--bg-color-light);
}

.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%;
}

.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 30px rgba(0, 0, 0, 0.1);
}

.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(--primary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-download__hero-description {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: var(--text-color-dark);
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__cta-button:hover {
  background: #1e8dc7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Download Section */
.page-download__why-download {
  background-color: var(--bg-color-white);
}

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

.page-download__feature-item {
  background: var(--bg-color-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* Guide Section */
.page-download__guide-section {
  padding: 80px 0;
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-download__guide-card {
  background: var(--bg-color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-color-dark);
}

.page-download__guide-heading {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.page-download__qr-code {
  margin-bottom: 30px;
  display: inline-block;
  padding: 10px;
  background: var(--bg-color-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-download__qr-code img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 300px; /* Specific width for QR codes */
  height: 300px;
}

.page-download__guide-list {
  list-style-type: decimal;
  padding-left: 25px;
  text-align: left;
  margin-bottom: 30px;
  font-size: 16px;
}

.page-download__guide-list li {
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.page-download__inline-link {
  color: var(--accent-color-login);
  text-decoration: underline;
}

.page-download__inline-link:hover {
  color: #c76706;
}

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

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

/* App Features Section */
.page-download__app-features {
  background-color: var(--bg-color-light);
}

.page-download__features-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-download__features-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-download__feature-item-large {
  margin-bottom: 30px;
}

.page-download__features-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-download__features-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* System Requirements Section */
.page-download__system-requirements {
  background-color: var(--bg-color-white);
}

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

.page-download__requirement-item {
  background: var(--bg-color-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

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

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
}

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

.page-download__promotion-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  color: var(--text-color-light);
}

.page-download__promotion-title {
  font-size: 24px;
  color: var(--text-color-light);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-download__promotion-item p {
  font-size: 16px;
  color: var(--text-color-light);
}

.page-download__promotions-image-container {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-download__promotions-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-download__faq-section {
  background-color: var(--bg-color-white);
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-color-white);
  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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-color-dark);
}

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: var(--bg-color-light);
}

.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

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

details.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
}

details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: var(--bg-color-light);
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Final CTA Section */
.page-download__cta-final {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 80px 0;
}

.page-download__cta-final .page-download__section-title,
.page-download__cta-final .page-download__section-description {
  color: var(--text-color-light);
}

.page-download__btn-primary {
  background: var(--accent-color-login);
  color: var(--text-color-light);
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  background: #c76706;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__section-description {
    font-size: 17px;
  }
  .page-download__hero-description {
    font-size: 18px;
  }
  .page-download__features-grid,
  .page-download__platform-guide,
  .page-download__requirements-grid,
  .page-download__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-download__features-content {
    flex-direction: column;
  }
  .page-download__features-text {
    order: 2;
  }
  .page-download__features-image {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px !important;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__main-title {
    font-size: clamp(24px, 8vw, 36px);
  }
  .page-download__hero-description {
    font-size: 16px;
  }
  .page-download__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section-title {
    font-size: 28px;
  }
  .page-download__section-description {
    font-size: 16px;
  }
  .page-download__feature-title,
  .page-download__guide-heading,
  .page-download__requirement-title,
  .page-download__promotion-title {
    font-size: 20px;
  }
  .page-download__feature-item,
  .page-download__guide-card,
  .page-download__requirement-item,
  .page-download__promotion-item {
    padding: 25px;
  }
  .page-download__guide-list {
    padding-left: 20px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  .page-download__faq-answer {
    padding: 0 15px 15px;
  }
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__cta-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-download__platform-guide {
    gap: 20px;
  }
  .page-download__qr-code img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-section {
    padding-top: 10px !important;
  }
  .page-download__main-title {
    font-size: clamp(22px, 10vw, 32px);
  }
  .page-download__section-title {
    font-size: 24px;
  }
  .page-download__section-description {
    font-size: 15px;
  }
  .page-download__feature-title,
  .page-download__guide-heading,
  .page-download__requirement-title,
  .page-download__promotion-title {
    font-size: 18px;
  }
  .page-download__faq-qtext {
    font-size: 15px;
  }
  .page-download__faq-toggle {
    font-size: 22px;
    width: 22px;
  }
  .page-download__qr-code img {
    width: 200px;
    height: 200px;
  }
}