/* style/download.css */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Dark body background #0a0a0a, so use light text */
  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;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-download__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:w88,download_app,mobile_interface,sports_betting,online_casino,blue_white,vietnam]') no-repeat center center/cover;
  padding-top: var(--header-offset, 120px); /* Fallback to 120px if not defined, ensure space for header */
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Ensure hero section is tall enough */
}

.page-download__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-download__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

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

.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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-download__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-download__hero-image-wrapper {
    display: none; /* Hide image in desktop hero as it's a background */
}

.page-download__hero-image {
    display: none;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-download__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__benefit-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
}

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

.page-download__download-platform {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-download__platform-title {
  font-size: 2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-download__qr-code {
  display: block;
  margin: 0 auto 30px auto;
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 5px solid #FFFFFF;
  border-radius: 10px;
}

.page-download__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-download__step-item {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-download__step-item strong {
  color: #FFFFFF;
}

.page-download__btn-full-width {
  width: 100%;
  text-align: center;
}

/* Games Showcase Section */
.page-download__games-showcase-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-download__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-download__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-download__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-download__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Light blue tint */
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-download__faq-answer p {
  margin-bottom: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1em;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-download__cta-section .page-download__section-description {
  color: #f0f0f0;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-download__cta-buttons .page-download__btn-primary,
.page-download__cta-buttons .page-download__btn-secondary {
  border-color: #FFFFFF;
}

.page-download__cta-buttons .page-download__btn-primary {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-download__cta-buttons .page-download__btn-primary:hover {
  background-color: #e0e0e0;
  color: #26A9E0;
  border-color: #e0e0e0;
}

.page-download__cta-buttons .page-download__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
}

.page-download__cta-buttons .page-download__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

/* Copyright Info */
.page-download__copyright-info {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #999999;
  background-color: #0d0d0d;
}

/* Responsive Styles */

/* General responsive for images and containers */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-download__section,
.page-download__card,
.page-download__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Desktop specific hero image wrapper - hidden by default, shown for mobile */
.page-download__hero-image-wrapper {
    display: none;
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }

  .page-download__hero-description {
    font-size: 1.2em;
  }

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

  .page-download__section-description {
    font-size: 1em;
  }

  .page-download__download-steps-wrapper {
    grid-template-columns: 1fr;
  }
}