/* style/download.css */
.page-download {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-download__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset) */
  margin-top: 0;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-download__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-download__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 1;
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-download__hero-title {
  font-size: 50px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 40px;
}

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

.page-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.page-download__btn i {
  margin-right: 10px;
}

.page-download__btn--primary {
  background-color: #FFD700;
  color: #0A2463;
}

.page-download__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.page-download__btn--secondary:hover {
  background-color: #071c4d;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(10, 36, 99, 0.3);
}

/* Why App Section */
.page-download__why-app-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-download__feature-icon {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-download__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__feature-description {
  font-size: 16px;
  color: #cccccc;
}

.page-download__main-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Installation Guide Section */
.page-download__installation-guide-section {
  padding: 80px 0;
  background-color: #0A2463; /* Main brand color background */
}

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

.page-download__guide-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #cccccc;
  position: relative;
  transition: color 0.3s ease;
}

.page-download__guide-tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.page-download__guide-tab.active {
  color: #FFD700;
}

.page-download__guide-tab.active::after {
  background-color: #FFD700;
}

.page-download__guide-tab:hover {
  color: #ffffff;
}

.page-download__guide-content-wrapper {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-download__guide-content {
  display: none;
}

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

.page-download__guide-subtitle {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-download__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-download__guide-step-number {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.page-download__guide-text p {
  font-size: 18px;
  color: #ffffff;
  margin: 0;
}

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

.page-download__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* App Features Section */
.page-download__app-features-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-download__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-download__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-download__feature-heading {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-download__feature-text {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-download__requirement-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__requirement-title {
  font-size: 26px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

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

.page-download__requirement-list li {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-download__requirement-list li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Security & Trust Section */
.page-download__security-trust-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-download__security-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-download__security-heading {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-download__security-text {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 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.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-download__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: #ffffff;
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.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-color: rgba(255, 255, 255, 0.05);
  color: #cccccc;
}

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

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

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

/* General Image styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 42px;
  }

  .page-download__hero-description {
    font-size: 20px;
  }

  .page-download__section-title {
    font-size: 32px;
  }

  .page-download__section-intro {
    font-size: 17px;
  }

  .page-download__btn {
    padding: 12px 25px;
    font-size: 18px;
  }

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

  .page-download__guide-tabs {
    gap: 20px;
  }

  .page-download__guide-tab {
    font-size: 20px;
  }

  .page-download__guide-content-wrapper {
    padding: 30px;
  }

  .page-download__guide-subtitle {
    font-size: 26px;
  }

  .page-download__guide-step-number {
    font-size: 32px;
  }

  .page-download__guide-text p,
  .page-download__feature-description,
  .page-download__feature-text,
  .page-download__requirement-list li,
  .page-download__security-text,
  .page-download__faq-answer p {
    font-size: 15px;
  }

  .page-download__feature-title,
  .page-download__feature-heading,
  .page-download__requirement-title,
  .page-download__security-heading {
    font-size: 22px;
  }

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

  .page-download__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  /* General content area padding for mobile */
  .page-download__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-download__hero-section {
    min-height: 450px;
    padding-top: 0 !important; /* Ensure no double padding from shared header */
  }

  .page-download__hero-content {
    padding: 15px;
  }

  .page-download__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Buttons specific mobile rules */
  .page-download__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

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

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

  /* Why App Section */
  .page-download__why-app-section {
    padding: 40px 0;
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-download__feature-card {
    padding: 25px;
  }

  .page-download__feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }

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

  /* Installation Guide Section */
  .page-download__installation-guide-section {
    padding: 40px 0;
  }

  .page-download__guide-tabs {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-download__guide-tab {
    font-size: 18px;
    padding: 8px 15px;
  }

  .page-download__guide-content-wrapper {
    padding: 20px;
  }

  .page-download__guide-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-download__guide-item {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }

  .page-download__guide-step-number {
    font-size: 28px;
    width: auto;
    text-align: left;
  }

  .page-download__guide-text p {
    font-size: 16px;
  }

  /* App Features Section */
  .page-download__app-features-section {
    padding: 40px 0;
  }

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

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

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

  .page-download__feature-text {
    font-size: 15px;
  }

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

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

  .page-download__requirement-card {
    padding: 25px;
  }

  .page-download__requirement-title {
    font-size: 22px;
  }

  .page-download__requirement-list li {
    font-size: 16px;
    padding-left: 20px;
  }

  /* Security & Trust Section */
  .page-download__security-trust-section {
    padding: 40px 0;
  }

  .page-download__security-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__security-item {
    padding: 25px;
  }

  .page-download__security-heading {
    font-size: 20px;
  }

  .page-download__security-text {
    font-size: 15px;
  }

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

  .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;
    margin-left: 15px;
  }

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

  .page-download__faq-answer p {
    font-size: 15px;
  }

  /* CTA Section */
  .page-download__cta-section {
    padding: 40px 0;
  }

  /* Universal image rules for mobile */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}