/* style/download.css */

/* Base styles for the page-download container */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for assumed light background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

/* Section general styles */
.page-download__section {
  padding: 60px 20px;
  text-align: center;
}

.page-download__section-title {
  font-size: 36px;
  color: #017439; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* Dark background sections */
.page-download__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description {
  color: #ffffff;
}

.page-download__dark-section a {
  color: #FFFF00; /* Light yellow for links on dark background */
  text-decoration: underline;
}

.page-download__dark-section a:hover {
  color: #fff;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #017439, #35b078); /* Gradient with primary color */
  color: #ffffff;
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-download__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-download__hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Added for mobile responsiveness */
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-download__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #FFFF00;
}

.page-download__btn-secondary:hover {
  background: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-download__why-choose-us {
  background-color: #f9f9f9;
}

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

.page-download__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensures max-width works correctly */
}

.page-download__feature-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* How to Download Section */
.page-download__how-to-download .page-download__section-description {
  color: #f0f0f0;
}

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

.page-download__step-block {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__step-block h3 {
  font-size: 28px;
  color: #FFFF00; /* Yellow for headings on dark */
  margin-bottom: 25px;
  font-weight: bold;
}

.page-download__step-block ol {
  list-style: none; /* Remove default list styling */
  padding: 0;
  margin: 0 0 25px 0;
}

.page-download__step-block ol li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.8;
}

.page-download__step-block ol li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: #FFFF00; /* Yellow counter */
  color: #017439; /* Primary color text on yellow */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
}

.page-download__step-block img {
  width: 100%;
  height: auto;
  min-height: 250px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 25px;
  display: block;
}

.page-download__note {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

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

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

.page-download__card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__card h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__card p {
  font-size: 16px;
  color: #555555;
}

/* Popular Games Section */
.page-download__popular-games .page-download__section-description {
  color: #f0f0f0;
}

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

.page-download__game-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-download__game-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-download__game-card img {
  width: 100%;
   /* Fixed height for game cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-download__game-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-download__game-card h3 a {
  color: #FFFF00; /* Yellow for game titles on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download__game-card h3 a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-download__game-card p {
  font-size: 15px;
  color: #f0f0f0;
}

.page-download__cta-center {
  margin-top: 40px;
}

/* Security & Support Section */
.page-download__security-support {
  background-color: #f0f0f0;
}

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

.page-download__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__security-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__security-item img {
  width: 100%;
  height: 200px; /* Fixed height for security items */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-download__security-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__security-item p {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-download__faq .page-download__section-description {
  color: #f0f0f0;
}

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

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