/* General styling for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-bottom: 40px;
}

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

.page-download__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #C91F17 0%, #7A0E0E 100%); /* Deep Red gradient */
  padding-bottom: 40px;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

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

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 */
  color: #FFD86A; /* Gold color for title */
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-download__hero-description {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 30px;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

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

.page-download__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-download__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Gold */
  border: 2px solid #FFD86A; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary:hover {
  background: #C91F17; /* Main color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-download__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #FFD86A;
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-download__section-intro {
  font-size: 1.05em;
  color: #FFF5E1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0.9;
}

/* Why Download Section */
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__app-features-section,
.page-download__promotions-section,
.page-download__faq-section,
.page-download__final-cta-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-download__why-download-section {
  background-color: #C91F17; /* Main color for contrast */
}

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

.page-download__feature-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
}

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

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

/* How to Download Section */
.page-download__how-to-download-section {
  background-color: #7A0E0E; /* Deep Red for contrast */
}

.page-download__download-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-download__step-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-download__step-title {
  font-size: 2em;
  color: #FFD86A;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-download__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.page-download__step-list li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #FFF5E1;
  font-size: 1.05em;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-left: 5px solid #F2B544; /* Border color */
}

.page-download__step-number {
  font-weight: bold;
  font-size: 1.3em;
  color: #FFD86A;
  flex-shrink: 0;
}

.page-download__important-note {
  background-color: #C91F17;
  color: #FFF5E1;
  border: 1px solid #F2B544;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-download__important-note a {
  color: #FFD86A;
  text-decoration: underline;
}
.page-download__important-note a:hover {
  color: #FFF5E1;
}

/* App Features Section */
.page-download__app-features-section {
  background-color: #B71C1C; /* Background */
}

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