/* style/download.css */

/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-download__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-download__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp as per H1 font size rule */
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-download__hero-content-wrapper {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFF6D6;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensuring contrast on gradient button */
  border: none;
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* Border color from custom palette */
}

.page-download__btn-secondary:hover {
  background-color: #F2C14E;
  color: #000000; /* Ensuring contrast on hover */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

/* General Card Styles */
.page-download__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-download__feature-card {
  text-align: center;
}

.page-download__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 400px; /* Recommended size for content images */
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
}

.page-download__feature-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-download__feature-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG for this section's background */
}

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

.page-download__download-platform {
  text-align: center;
  padding: 40px 30px;
}

.page-download__platform-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary Color */
  margin-bottom: 25px;
}

.page-download__platform-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Recommended size */
  margin: 0 auto 30px;
  border-radius: 8px;
  display: block;
}

.page-download__step-list {
  list-style-type: decimal;
  text-align: left;
  margin: 0 auto 30px;
  padding-left: 25px;
  max-width: 500px;
  color: #FFF6D6;
}

.page-download__step-list li {
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-download__step-list li strong {
  color: #F2C14E;
}

.page-download__download-button {
  margin-top: 20px;
}

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

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

.page-download__feature-item {
  text-align: center;
  padding: 30px;
}

.page-download__item-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-download__item-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* Supported Devices Section */
.page-download__supported-devices-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG for this section's background */
}

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

.page-download__device-card {
  text-align: center;
}

.page-download__device-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
}

.page-download__device-title {
  font-size: 1.6em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-download__requirements-list {
  list-style-type: disc;
  text-align: left;
  margin: 0 auto 20px;
  padding-left: 25px;
  max-width: 300px;
  color: #FFF6D6;
}

.page-download__requirements-list li {
  margin-bottom: 8px;
}

.page-download__note-text {
  text-align: center;
  font-style: italic;
  margin-top: 40px;
  color: #FFF6D6;
}

/* Security Section */
.page-download__security-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-download__security-item {
  text-align: center;
  padding: 20px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  color: #FFF6D6;
}

.page-download__security-icon {
  width: 48px; /* Allowed icon size (min 200x200 general, but icons can be small) */
  height: 48px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG for this section's background */
}

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

.page-download__faq-item {
  background-color: #0A0A0A; /* Background for item */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #F2C14E;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0; /* Initial collapsed state */
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-download__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-download__final-cta-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

  .page-download__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }

  .page-download__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 80%;
    max-width: 350px;
  }

  .page-download__feature-card,
  .page-download__download-platform,
  .page-download__feature-item,
  .page-download__device-card,
  .page-download__security-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }

  .page-download__hero-section,
  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__supported-devices-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 40px 0;
  }

  .page-download__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-download__main-title {
    font-size: clamp(2em, 6vw, 2.5em);
  }

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

  .page-download__section-title {
    font-size: clamp(1.6em, 5vw, 2em);
    margin-bottom: 15px;
  }

  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
  }

  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__hero-image-wrapper,
  .page-download__feature-icon,
  .page-download__platform-image,
  .page-download__device-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-download__faq-answer {
    padding: 0 15px;
  }

  .page-download__faq-item.active .page-download__faq-answer {
    padding: 10px 15px;
  }

  .page-download__security-icon {
    width: 40px;
    height: 40px;
  }

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

/* Ensure content section images are not too small as per rules */
.page-download__feature-icon,
.page-download__platform-image,
.page-download__device-image {
  min-width: 200px;
  min-height: 200px;
}

/* Exception for small icons in security section - these are not content images */
.page-download__security-icon {
  min-width: unset;
  min-height: unset;
}