.page-download {
  color: #ffffff; /* Text color for dark body background */
  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__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background-color: #26A9E0; /* Brand primary color */
  background-image: linear-gradient(135deg, #26A9E0 0%, #1a7bbd 100%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-download__hero-content {
  max-width: 600px;
  margin-bottom: 40px;
  z-index: 1;
  color: #ffffff;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

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

.page-download__hero-image-wrapper {
  position: absolute;
  right: -5%;
  bottom: 0;
  max-width: 500px;
  width: 100%;
  transform: translateY(20px);
  opacity: 0.8;
  z-index: 0;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  margin: 10px;
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-download__why-download-section,
.page-download__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-download__light-bg .page-download__section-title,
.page-download__light-bg .page-download__section-description {
  color: #ffffff;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-download__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for titles */
}

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

.page-download__download-guide-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

.page-download__guide-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-download__tab-button {
  padding: 12px 25px;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__tab-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-download__tab-button--active {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

.page-download__guide-content {
  display: none;
  padding: 30px 0;
}

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

.page-download__guide-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-download__guide-item:last-child {
  margin-bottom: 0;
}

.page-download__guide-item--reverse {
  flex-direction: row-reverse;
}

.page-download__guide-text {
  flex: 1;
  color: #f0f0f0;
}

.page-download__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-download__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__qr-code-section {
  text-align: center;
  margin-top: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 15px;
}

.page-download__qr-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-download__qr-code {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 30px;
  background-color: #ffffff; /* QR codes usually need a light background */
  padding: 10px;
  border-radius: 5px;
}

.page-download__btn-block {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto;
}

.page-download__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
  color: #ffffff;
}

.page-download__video-wrapper {
  max-width: 900px;
  margin: 40px auto;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-download__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-download__cta-buttons--center {
  text-align: center;
}

.page-download__app-features-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-download__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__feature-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
}

.page-download__feature-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

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

.page-download__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-download__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

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

.page-download__text-block p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-download__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__final-text {
  font-size: 1.1em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-download__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 2.8em;
  }
  .page-download__hero-image-wrapper {
    right: -10%;
    max-width: 400px;
  }
  .page-download__features-list {
    grid-template-columns: 1fr;
  }
  .page-download__content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-download__image-block {
    order: -1; /* Image appears before text on mobile */
  }
  .page-download__guide-item {
    flex-direction: column;
  }
  .page-download__guide-item--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-download__container {
    padding: 0 15px;
  }
  .page-download__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__hero-image-wrapper {
    display: none; /* Hide hero image on small screens to save space */
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__guide-title {
    font-size: 1.5em;
  }
  .page-download__qr-code {
    width: 200px;
    height: 200px;
  }
  .page-download__video-wrapper {
    margin: 20px auto;
  }
  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-download__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  /* Image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__video-section,
  .page-download__video-container,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper offset for video section */
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 1.8em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__guide-title {
    font-size: 1.3em;
  }
  .page-download__qr-title {
    font-size: 1.5em;
  }
  .page-download__feature-heading {
    font-size: 1.4em;
  }
}