/* style/download.css */

/* Base Styles for .page-download content */
.page-download {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

.page-download h1,
.page-download h2,
.page-download h3,
.page-download h4 {
  color: #1F2D3D; /* Text Main */
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-download h1 {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  color: #2F6BFF; /* Primary color for main title */
}

.page-download h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.page-download h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-bottom: 15px;
}

.page-download p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-download__section {
  padding: 60px 20px;
  margin-bottom: 0; /* Sections shouldn't have margin-bottom */
  box-sizing: border-box;
}

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

/* Links */
.page-download a {
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-download a:hover {
  color: #6FA3FF; /* Auxiliary color */
  text-decoration: underline;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary,
.page-download a[class*="button"],
.page-download a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-download__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color for border */
}

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-download__btn-link {
  background: transparent;
  color: #2F6BFF;
  padding: 8px 0;
  font-size: 16px;
  font-weight: normal;
  border-radius: 0;
  border-bottom: 2px solid #2F6BFF;
}

.page-download__btn-link:hover {
  color: #6FA3FF;
  border-color: #6FA3FF;
}

/* Image styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* 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: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB; /* Background */
}

.page-download__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

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

.page-download__hero-image-wrapper 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.1);
}

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

.page-download__subtitle {
  font-size: 18px;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

/* Why Download Section */
.page-download__why-download {
  background-color: #F4F7FB; /* Background */
}

.page-download__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 17px;
}

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

.page-download__feature-card {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-download__feature-card img {
  margin: 0 auto 20px;
  
  width: auto; /* Allow image to scale down */
  border-radius: 8px;
}

.page-download__card-title {
  color: #2F6BFF; /* Primary color */
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* How to Download Section */
.page-download__how-to-download {
  background-color: #2F6BFF; /* Primary color for dark background */
  color: #ffffff; /* White text on dark background */
  padding-bottom: 80px;
}

.page-download__how-to-download .page-download__section-title,
.page-download__how-to-download .page-download__section-description,
.page-download__how-to-download h3,
.page-download__how-to-download p {
  color: #ffffff;
}

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

.page-download__step-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__step-icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  color: #2F6BFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-download__download-qr {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__download-qr img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 5px solid #ffffff;
    border-radius: 8px;
}

.page-download__download-qr p {
    font-size: 18px;
    font-weight: 500;
}

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

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

.page-download__feature-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.page-download__item-title {
  color: #2F6BFF; /* Primary color */
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Exclusive Promotions Section */
.page-download__exclusive-promotions {
  background-color: #6FA3FF; /* Auxiliary color for background */
  color: #ffffff; /* White text on auxiliary color background */
}

.page-download__exclusive-promotions .page-download__section-title,
.page-download__exclusive-promotions .page-download__section-description,
.page-download__exclusive-promotions h3,
.page-download__exclusive-promotions p {
  color: #ffffff;
}

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

.page-download__promo-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on light blue */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-download__promo-card img {
  margin: 0 auto 20px;
  
  width: auto;
  border-radius: 8px;
}

.page-download__promo-card .page-download__card-title {
  color: #ffffff;
}

.page-download__promo-card .page-download__btn-link {
  color: #ffffff;
  border-color: #ffffff;
}

.page-download__promo-card .page-download__btn-link:hover {
  color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-download__responsible-gaming {
  background-color: #F4F7FB; /* Background */
}

.page-download__responsible-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-download__responsible-text {
  flex: 1;
  min-width: 300px;
}

.page-download__responsible-text h3 {
  color: #2F6BFF;
}

.page-download__responsible-image {
  flex: 1;
  min-width: 300px;
}

.page-download__responsible-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #F4F7FB; /* Background */
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #f5f5f5;
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Final CTA Section */
.page-download__cta-final {
  background-color: #2F6BFF; /* Primary color for dark background */
  color: #ffffff; /* White text on dark background */\  padding-bottom: 80px;
}

.page-download__cta-final .page-download__section-title,
.page-download__cta-final .page-download__section-description {
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__features-grid,
  .page-download__steps-grid,
  .page-download__features-list,
  .page-download__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-download__hero-section {
    padding-top: 10px !important; /* body padding-top handled by shared.css */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__main-title {
    font-size: 32px;
  }

  .page-download__subtitle {
    font-size: 16px;
  }

  .page-download__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

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

  /* Buttons */
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for mobile */
    font-size: 16px;
  }

  .page-download__final-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Images */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__hero-image-wrapper,
  .page-download__responsible-image,
  .page-download__feature-item,
  .page-download__promo-card,
  .page-download__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-download__feature-item img {
     /* Adjust fixed height for mobile */
  }

  .page-download__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  details.page-download__faq-item summary.page-download__faq-question { padding: 15px; }
  .page-download__faq-qtext { font-size: 15px; }
  details.page-download__faq-item .page-download__faq-answer { padding: 0 15px 15px; }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 28px;
  }
  .page-download__section-title {
    font-size: 24px;
  }
  .page-download__card-title {
    font-size: 18px;
  }
  .page-download__step-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-download__download-qr img {
      
      
  }
}

/* Ensure contrast for specific elements if needed */
.page-download__dark-bg {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-download__light-bg {
  background: #ffffff; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

/* Specific contrast fix for potential issues */
.page-download__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-download__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}