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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-download__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-download__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
}

.page-download__btn--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn--secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-download__btn--secondary:hover {
  background: #2E7A4E; /* Border */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn--tertiary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
  padding: 10px 20px;
  font-size: 16px;
}

.page-download__btn--tertiary:hover {
  background: #57E38D;
  color: #08160F;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding, then larger bottom */
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  animation: floatEffect 3s ease-in-out infinite;
}

@keyframes floatEffect {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-download__hero-title {
  font-size: clamp(32px, 5vw, 64px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

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

/* Features Section */
.page-download__features-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #08160F; /* Background */
}

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

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

.page-download__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-download__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px #57E38D); /* Glow */
}

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

.page-download__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* How-to Section */
.page-download__how-to-section {
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-download__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.page-download__tab-btn {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 12px 25px;
  border: 2px solid #2E7A4E; /* Border */
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-download__tab-btn:hover {
  background-color: #2E7A4E; /* Border */
  color: #F2FFF6;
}

.page-download__tab-btn--active {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  border-color: #57E38D; /* Glow */
  color: #F2FFF6;
}

.page-download__tab-content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-download__tab-content--active {
  display: block;
}

.page-download__qr-code-container {
  text-align: center;
  margin-bottom: 30px;
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #F2FFF6;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #57E38D; /* Glow */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-download__qr-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 15px;
}

.page-download__install-steps {
  list-style: none;
  padding: 0;
}

.page-download__step-item {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-download__step-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

.page-download__step-description a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-download__step-description a:hover {
  color: #2AD16F;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 15px;
  margin-top: 40px;
  border: 2px solid #2E7A4E;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 15px;
}

/* Games Section */
.page-download__games-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

.page-download__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.page-download__game-item {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease;
}

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

.page-download__game-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #1E3A2A; /* Divider */
}

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

.page-download__game-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-download__game-title a:hover {
  text-decoration: underline;
}

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

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

.page-download__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #2E7A4E; /* Border */
}

.page-download__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-download__security-text p {
  font-size: 17px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-download__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2357E38D"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-download__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-download__faq-item summary:hover {
  background-color: #2E7A4E; /* Border */
}

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

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

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-download__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-download__cta-bottom-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__cta-bottom-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: clamp(30px, 4.5vw, 56px);
  }

  .page-download__hero-description {
    font-size: 18px;
  }

  .page-download__security-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-download__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-download__hero-title {
    font-size: clamp(28px, 6vw, 40px);
  }

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

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-download__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
  }

  .page-download__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-download__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-download__features-section, 
  .page-download__how-to-section, 
  .page-download__games-section, 
  .page-download__security-section, 
  .page-download__faq-section, 
  .page-download__cta-bottom-section {
    padding: 50px 15px;
  }

  .page-download__features-grid {
    grid-template-columns: 1fr;
  }

  .page-download__feature-card {
    padding: 25px;
  }

  .page-download__tab-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-download__tab-content {
    padding: 30px;
  }

  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }

  .page-download__step-title {
    font-size: 20px;
  }

  .page-download__step-description {
    font-size: 15px;
  }

  .page-download__game-list {
    grid-template-columns: 1fr;
  }

  .page-download__game-item {
    padding: 15px;
  }

  .page-download__game-thumbnail {
    height: 150px;
  }

  .page-download__security-image {
    max-width: 100%;
  }

  .page-download__security-text p {
    font-size: 16px;
  }

  .page-download__security-list li {
    font-size: 15px;
  }

  .page-download__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    font-size: 15px;
    padding: 10px 20px 15px 20px;
  }

  .page-download__cta-bottom-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-download__cta-bottom-description {
    font-size: 16px;
  }

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

  .page-download__hero-image-wrapper,
  .page-download__features-section,
  .page-download__how-to-section,
  .page-download__games-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section,
  .page-download__tab-content,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-download__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }

  .page-download__video-section {
    padding-top: 10px !important;
  }

  .page-download__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .page-download__hero-description {
    font-size: 15px;
  }

  .page-download__btn {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-download__section-title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .page-download__tab-btn {
    font-size: 14px;
    padding: 8px 15px;
  }

  .page-download__tab-content {
    padding: 20px;
  }

  .page-download__step-title {
    font-size: 18px;
  }

  .page-download__step-description {
    font-size: 14px;
  }

  .page-download__game-title {
    font-size: 18px;
  }

  .page-download__game-text {
    font-size: 14px;
  }

  .page-download__security-text p {
    font-size: 15px;
  }

  .page-download__security-list li {
    font-size: 14px;
  }

  .page-download__faq-item summary {
    font-size: 15px;
    padding: 12px 18px;
  }

  .page-download__faq-answer {
    font-size: 14px;
    padding: 8px 18px 12px 18px;
  }
}