/* style/download.css */
/* Base Styles for .page-download */
.page-download {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Main text color for dark background */
  background-color: var(--background-color, #1a1a1a); /* Inherit from shared or default dark */
  line-height: 1.6;
  padding-bottom: 40px; /* General bottom padding for the page content */
}

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

/* Hero Section */
.page-download__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  padding-bottom: 40px;
  text-align: center;
  background-color: #B71C1C; /* Custom background color */
  position: relative;
  overflow: hidden;
}

.page-download__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__subtitle {
  font-size: 1.2em;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-download__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-download__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(122, 14, 14, 0.4);
}

.page-download__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 14, 14, 0.6);
}

.page-download__hero-image-wrapper {
  margin: 0 auto;
  max-width: 1000px; /* Max width for the image container */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.page-download__image-caption {
  font-size: 0.9em;
  color: #FFF5E1;
  margin-top: 10px;
}

/* General Section Styles */
.page-download__info-section,
.page-download__how-to-section,
.page-download__platforms-section,
.page-download__faq-section,
.page-download__cta-final-section {
  padding: 60px 0;
}

.page-download__dark-section {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1;
}

.page-download__light-bg {
  background-color: #FFF5E1; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-download__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 30px;
}

/* Adjust text color for light background section */
.page-download__light-bg .page-download__section-title {
  color: #C91F17; /* Red for title on light background */
}

.page-download__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF5E1;
}

.page-download__light-bg .page-download__description {
  color: #333333;
}

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

.page-download__feature-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFF5E1;
}

.page-download__feature-item:hover {
  transform: translateY(-5px);
}

.page-download__feature-icon {
  width: 100%;
  max-width: 250px; /* Max width for content images */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-download__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for feature titles */
  margin-bottom: 10px;
}

.page-download__feature-description {
  font-size: 1em;
  color: #FFF5E1;
}

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

.page-download__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #FFF5E1;
  text-align: left;
}

.page-download__step-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for step titles */
  margin-bottom: 15px;
}

.page-download__step-description {
  font-size: 1.05em;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-download__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-download__cta-buttons--bottom {
  margin-top: 60px;
}

/* Platforms Section */
.page-download__platform-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-download__platform-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 280px; /* Fixed width for platform items */
  color: #FFF5E1;
}

.page-download__platform-icon {
  width: 100%;
  max-width: 250px; /* Max width for platform icons, but they should be content images */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-download__platform-name {
  font-size: 1.5em;
  font-weight: bold;
  color: #F4D34D; /* Gold color */
  margin-bottom: 10px;
}

.page-download__platform-desc {
  font-size: 0.95em;
  color: #FFF5E1;
}

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

.page-download__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Gold border */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F4D34D; /* Gold color for question */
  cursor: pointer;
  background-color: #C91F17; /* Main brand color for question header */
  user-select: none;
  list-style: none; /* Remove default marker for summary */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-download__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

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

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg); /* Rotate + to X when open */
}

.page-download__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #FFF5E1;
  background-color: #D32F2F; /* Card BG for answer content */
}

.page-download__faq-answer p {
  margin-bottom: 10px;
}

.page-download__faq-answer .page-download__btn-contact {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9em;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

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

.page-download__cta-final-section .page-download__section-title {
  color: #F4D34D;
}

.page-download__cta-final-section .page-download__description {
  color: #FFF5E1;
  margin-bottom: 50px;
}

/* General image styling */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.5em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-download__download-steps {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-download__platform-item {
    width: 250px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-download__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-download__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
}