/* style/download.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #121212;
  --bg-light: #f9f9f9;
  --border-light: #e0e0e0;
}

.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--bg-dark);
}

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

.page-download__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

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

/* Hero Section */
.page-download__hero-section {
  padding: 120px 0 80px;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:ae888,download_hero,mobile_app,gold_red_theme]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-download__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

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

.page-download__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-download__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-dark);
}

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-download__btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-on-dark);
}

.page-download__btn-secondary:hover {
  background-color: #7a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-download__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 60px;
  color: var(--text-on-dark);
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
}

.page-download__why-download-section .page-download__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-download__why-download-section .page-download__section-intro {
  color: var(--text-on-light);
}

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

.page-download__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-on-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Instructions Section */
.page-download__instructions-section {
  padding: 80px 0;
}

.page-download__instructions-section .page-download__section-intro {
  color: var(--text-on-dark);
}

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

.page-download__tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.page-download__tab-button--active {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border-color: var(--primary-color);
}

.page-download__tab-button--active:hover {
  background-color: var(--primary-color);
}

.page-download__tab-content {
  display: none;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-download__platform-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

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

.page-download__instruction-step {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-download__step-number {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-on-dark);
}

.page-download__instruction-step p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.page-download__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 20px auto;
  display: block;
  border: 5px solid var(--primary-color);
  border-radius: 8px;
}

/* System Requirements Section */
.page-download__system-requirements-section {
  padding: 80px 0;
}

.page-download__system-requirements-section .page-download__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-download__system-requirements-section .page-download__section-intro {
  color: var(--text-on-light);
}

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

.page-download__requirement-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-on-light);
}

.page-download__requirement-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download__requirement-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-download__requirement-item li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555555;
}

.page-download__requirement-item li strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
}

.page-download__faq-section .page-download__section-intro {
  color: var(--text-on-dark);
}

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-on-dark);
  pointer-events: none;
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X */
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 10px 10px;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__cta-bottom-section .page-download__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-download__cta-bottom-section .page-download__description {
  color: var(--text-on-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 42px;
  }
  .page-download__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-download__hero-section {
    padding: 80px 0 60px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-download__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-download__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-download__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-download__section-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-download__why-download-section, 
  .page-download__instructions-section, 
  .page-download__system-requirements-section, 
  .page-download__faq-section, 
  .page-download__cta-bottom-section {
    padding: 60px 0;
  }

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

  .page-download__feature-item, 
  .page-download__requirement-item {
    padding: 25px;
  }

  .page-download__feature-icon {
    max-width: 150px;
  }

  .page-download__feature-title {
    font-size: 20px;
  }

  .page-download__tab-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-download__tab-content {
    padding: 25px;
  }

  .page-download__platform-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-download__step-title {
    font-size: 18px;
  }

  .page-download__qr-code {
    max-width: 200px;
  }

  .page-download__faq-question {
    padding: 15px 20px;
  }

  .page-download__faq-question h3 {
    font-size: 16px;
  }

  .page-download__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-download__faq-answer {
    padding: 0 20px;
  }
  
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image and Container Responsive Adaptations */
  .page-download img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__container, 
  .page-download__hero-section, 
  .page-download__why-download-section, 
  .page-download__instructions-section, 
  .page-download__system-requirements-section, 
  .page-download__faq-section, 
  .page-download__cta-bottom-section,
  .page-download__tab-content,
  .page-download__feature-item,
  .page-download__instruction-step,
  .page-download__requirement-item,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure no horizontal scroll for elements */
  .page-download__platform-tabs {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 30px;
  }
  .page-download__section-title {
    font-size: 24px;
  }
  .page-download__cta-button {
    font-size: 15px !important;
    padding: 10px 15px !important;
  }
  .page-download__feature-title {
    font-size: 18px;
  }
  .page-download__platform-title {
    font-size: 22px;
  }
  .page-download__step-title {
    font-size: 16px;
  }
  .page-download__faq-question h3 {
    font-size: 15px;
  }
}