/* style/download.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
}

.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body is default white, so dark text */
  background-color: var(--secondary-color); /* Explicitly white background */
}

.page-download a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-download a:hover {
  color: #1a7bb5;
}

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

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

.page-download__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-dark);
}

.page-download__subsection-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 25px;
  color: var(--primary-color);
  text-align: center;
}

/* 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: linear-gradient(135deg, var(--primary-color) 0%, #36baf5 100%);
  color: var(--text-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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-download__hero-content h1 {
  color: var(--text-light);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* No fixed font-size for H1, relying on responsive scaling */
}

.page-download__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Using login color for primary CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

/* Introduction Section */
.page-download__introduction-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-download__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-download__feature-item {
  display: flex;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-download__feature-icon {
  font-size: 36px;
  margin-right: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.page-download__feature-heading {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-download__feature-content p {
  font-size: 16px;
  margin: 0;
  color: var(--text-dark);
  text-align: left;
}

/* Guide Section */
.page-download__guide-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-download__platform-guide {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-light);
}

.page-download__step-number {
  background: var(--login-color);
  color: var(--text-light);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-download__step-item p {
  margin: 0;
  text-align: left;
}

.page-download__text-link {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-download__text-link:hover {
  color: #f0f0f0;
}

.page-download__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-download__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it's a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-download__btn-primary {
  background: var(--login-color);
  color: var(--text-light);
  border: none;
}

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

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

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a7bb5;
  border-color: #1a7bb5;
}

.page-download__note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 20px;
  text-align: center;
}

/* Security Section */
.page-download__security-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-download__security-content .page-download__image-wrapper {
  flex: 1;
  min-width: 300px;
  margin: 0;
}

.page-download__security-details {
  flex: 2;
  min-width: 300px;
}

.page-download__security-details .page-download__subsection-title {
  text-align: left;
  color: var(--primary-color);
}

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

.page-download__security-list li {
  background: var(--bg-light);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-download__security-list li strong {
  color: var(--primary-color);
}

/* Features Section */
.page-download__features-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-download__feature-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-download__game-list, .page-download__service-list {
  list-style: none;
  padding: 0;
}

.page-download__game-list li, .page-download__service-list li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.page-download__game-list li a, .page-download__service-list li a {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-download__game-list li a:hover, .page-download__service-list li a:hover {
  color: #f0f0f0;
}

.page-download__feature-image-desktop {
  display: block;
  grid-column: span 2;
  text-align: center;
}

.page-download__feature-image-desktop img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-download__faq-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}

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: var(--bg-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: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

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

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

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

.page-download__cta-container {
  text-align: center;
}

.page-download__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__section-title {
    font-size: 32px;
  }
  .page-download__subsection-title {
    font-size: 24px;
  }
  .page-download__hero-content h1 {
    font-size: clamp(28px, 5vw, 48px); /* Using clamp for H1 */
  }
  .page-download__hero-content p {
    font-size: 18px;
  }
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__feature-image-desktop {
    grid-column: span 1;
  }
}

@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 img {
    border-radius: 8px;
  }
  .page-download__hero-content h1 {
    font-size: clamp(24px, 7vw, 36px); /* Further clamp for H1 on mobile */
    margin-bottom: 15px;
  }
  .page-download__hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-download__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    width: 100%; /* Ensure full width for single buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-download__section {
    padding: 40px 0;
  }
  .page-download__section-title {
    font-size: 28px;
  }
  .page-download__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-download__subsection-title {
    font-size: 22px;
    text-align: center;
  }
  .page-download__container {
    padding: 0 15px; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-download__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-download__feature-item {
    padding: 20px;
  }
  .page-download__feature-icon {
    font-size: 30px;
    margin-right: 15px;
  }
  .page-download__feature-heading {
    font-size: 20px;
  }
  .page-download__step-item {
    font-size: 16px;
  }
  .page-download__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-download__security-details .page-download__subsection-title {
    text-align: center;
  }
  .page-download__security-list li {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-download__feature-card {
    padding: 25px;
  }
  .page-download__feature-card-title {
    font-size: 22px;
  }
  .page-download__game-list li, .page-download__service-list li {
    font-size: 16px;
  }
  .page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 16px;
  }
  .page-download__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }
  .page-download__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__cta-final-section {
    padding: 60px 0;
  }
  
  /* General image and container responsive rules */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__platform-guide,
  .page-download__security-content,
  .page-download__features-grid,
  .page-download__feature-card,
  .page-download__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-download__button-group {
    flex-wrap: wrap !important; /* Ensure buttons wrap if they are in a row */
  }
}

@media (max-width: 480px) {
  .page-download__hero-section {
    padding-bottom: 30px;
  }
  .page-download__hero-image img {
    border-radius: 4px;
  }
  .page-download__hero-content h1 {
    font-size: clamp(22px, 8vw, 30px);
  }
  .page-download__hero-content p {
    font-size: 15px;
  }
  .page-download__cta-button {
    font-size: 16px;
  }
  .page-download__section-title {
    font-size: 24px;
  }
  .page-download__section-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-download__subsection-title {
    font-size: 20px;
  }
  .page-download__feature-icon {
    font-size: 28px;
  }
  .page-download__feature-heading {
    font-size: 18px;
  }
  .page-download__step-item {
    font-size: 15px;
  }
  .page-download__security-list li {
    font-size: 15px;
  }
  .page-download__feature-card-title {
    font-size: 20px;
  }
  .page-download__game-list li, .page-download__service-list li {
    font-size: 15px;
  }
  .page-download__faq-qtext {
    font-size: 15px;
  }
}