/* style/download.css */
.page-download {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-download__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-download__hero-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp if needed, otherwise flexible */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-download__hero-description {
  font-size: 1.3em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-download__btn {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

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

.page-download__benefit-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-download__benefit-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-download__benefit-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-download__download-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-download__platform-title {
  font-size: 2em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-download__platform-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #F2C14E; /* Gold */
  margin: 15px auto 0;
}

.page-download__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__step-item:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-download__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-download__step-text {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__step-text strong {
  color: #F2FFF6; /* Text Main */
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

/* Game Categories Section */
.page-download__game-categories-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-download__game-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__game-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-download__game-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-download__game-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* Promotions Section */
.page-download__promotions-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-download__promo-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__promo-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-download__promo-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

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

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

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none;
  user-select: none;
  background-color: #1E3A2A; /* Divider for summary bg */
}

.page-download__faq-question::-webkit-details-marker {
  display: none;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

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

/* Global Image and Video Responsive Styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download video,
.page-download__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .page-download__section-title {
    font-size: 2em;
  }

  .page-download__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-download__hero-section {
    padding-bottom: 40px;
  }

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

  .page-download__hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

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

  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__btn {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__why-download-section,
  .page-download__how-to-download-section,
  .page-download__game-categories-section,
  .page-download__promotions-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 40px 0;
  }

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

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

  .page-download__benefits-grid,
  .page-download__game-grid,
  .page-download__promotions-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__benefit-card,
  .page-download__game-card,
  .page-download__promo-card {
    padding: 20px;
  }

  .page-download__benefit-icon,
  .page-download__game-image {
    max-width: 150px;
    min-width: 150px;
    min-height: 150px;
  }

  .page-download__step-item {
    flex-direction: column !important;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .page-download__step-image {
    max-width: 250px;
    min-width: 200px;
    min-height: 200px;
  }

  .page-download__platform-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

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

  .page-download__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }

  /* Force responsive for all images and videos */
  .page-download img,
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-download__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page-download__hero-image-wrapper,
  .page-download__download-buttons,
  .page-download__benefits-grid,
  .page-download__benefit-card,
  .page-download__game-grid,
  .page-download__game-card,
  .page-download__promotions-list,
  .page-download__promo-card,
  .page-download__faq-list,
  .page-download__faq-item,
  .page-download__step-item,
  .page-download__platform-guide {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-download__hero-section { padding-top: 10px !important; }
}