/* style/download.css */
.page-download {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
}

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

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

.page-download__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  overflow: hidden;
  background-color: #121212; /* Ensure a base background color */
}

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

.page-download__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-download__video-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
  font-weight: bold;
}

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-download__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #FFD700;
  color: #121212; /* Dark text for gold button */
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212; /* Dark text for gold button */
}

/* Why Download Section */
.page-download__why-download-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.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-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__feature-icon {
  width: 150px; /* Larger icons for content display */
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-download__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-download__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* How to Download Section */
.page-download__how-to-download-section {
  background-color: #8B0000; /* Dark red background for contrast */
  color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-title {
  color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-intro {
  color: #f0f0f0;
}

.page-download__platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__tab-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-download__tab-button--active {
  background-color: #FFD700;
  color: #121212;
}

.page-download__tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-download__tab-content--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-download__download-guide-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-download__download-guide-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-download__download-guide-text {
  flex: 1;
  min-width: 300px;
}

.page-download__download-guide-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-download__guide-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__guide-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-download__guide-list li strong {
  color: #FFD700;
}

.page-download__qr-code-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  background-color: #ffffff; /* White background for QR code */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__qr-caption {
  margin-top: 15px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-download__btn-download {
  margin-top: 20px;
}

/* Security Section */
.page-download__security-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-download__security-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__security-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-download__security-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__security-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

/* System Requirements Section */
.page-download__system-requirements-section {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-download__system-requirements-section .page-download__section-title {
  color: #FFD700;
}

.page-download__system-requirements-section .page-download__section-intro {
  color: #cccccc;
}

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

.page-download__requirement-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__requirement-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__requirement-list {
  list-style-type: disc;
  margin-left: 20px;
  text-align: left;
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-download__requirement-list li strong {
  color: #FFD700;
}

.page-download__requirement-image {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-top: 20px;
  border-radius: 8px;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-download__faq-list {
  margin-top: 40px;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-download__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  font-weight: bold;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  line-height: 1.6;
  font-size: 1em;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__hero-description {
    font-size: 1.2em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__hero-content {
    padding: 15px;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__download-guide-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__download-guide-item:nth-child(even) {
    flex-direction: column;
  }
  .page-download__download-guide-image {
    order: -1; /* Image above text on mobile */
    margin-bottom: 20px;
  }
  .page-download__qr-code-img {
    width: 250px;
    height: 250px;
  }

  .page-download__section-padding {
    padding: 40px 15px;
  }
  .page-download__container {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image and Video responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download video,
  .page-download__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__hero-video-wrapper,
  .page-download__download-guide-image,
  .page-download__security-card,
  .page-download__requirement-card,
  .page-download__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-download__platform-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .page-download__tab-button {
    width: 100%;
  }
  .page-download__faq-question {
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 10px 20px;
  }
  .page-download__faq-title {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__hero-description {
    font-size: 0.9em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__guide-title {
    font-size: 1.5em;
  }
  .page-download__feature-title,
  .page-download__security-title,
  .page-download__requirement-title {
    font-size: 1.3em;
  }
  .page-download__hero-cta-buttons {
    flex-direction: column;
  }
}