/* style/download.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
  --bg-light: #FFFFFF;
  --bg-dark: #121212; /* From body background */
}

.page-download {
  font-family: 'Arial', sans-serif;
  color: var(--text-on-dark); /* Default text color for the page */
  background-color: var(--bg-dark); /* Matches body background */
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.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: var(--text-on-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-download__dark-section .page-download__section-title {
  color: var(--text-on-dark);
}

.page-download__light-bg .page-download__section-title {
  color: var(--text-on-light);
}

.page-download__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  font-size: 1.1em;
}

.page-download__dark-section .page-download__text-block {
  color: rgba(255, 255, 255, 0.8);
}

.page-download__light-bg .page-download__text-block {
  color: var(--text-on-light);
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-on-dark);
  padding: 0;
}

.page-download__hero-video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  cursor: pointer;
}

.page-download__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-download__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-download__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-download__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-download__btn-download {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-download:hover {
  background-color: #005a2e;
  transform: translateY(-3px);
}

.page-download__btn-download img {
  
  
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Section Styling */
.page-download__why-download-section,
.page-download__how-to-download-section,
.page-download__game-features-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 80px 0;
}

.page-download__light-bg {
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-download__dark-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

/* Benefits Grid */
.page-download__benefits-grid,
.page-download__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-download__light-bg .page-download__benefit-card,
.page-download__light-bg .page-download__feature-card {
  background-color: var(--bg-light);
  color: var(--text-on-light);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

.page-download__benefit-card img,
.page-download__feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  max-width: 100%;
  display: block;
}

.page-download__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download__light-bg .page-download__card-title {
  color: var(--primary-color);
}

.page-download__benefit-card p,
.page-download__feature-card p {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-download__light-bg .page-download__benefit-card p,
.page-download__light-bg .page-download__feature-card p {
  color: var(--text-on-light);
}

/* How to Download Section */
.page-download__platform-tabs {
  margin-top: 50px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-download__tab-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.page-download__tab-button {
  background: none;
  border: none;
  padding: 15px 30px;
  font-size: 1.3em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  position: relative;
  outline: none;
}

.page-download__tab-button--active {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.page-download__tab-button:hover {
  color: var(--secondary-color);
}

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

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

.page-download__tab-inner-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-download__tab-text-content h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-download__tab-text-content ol {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.page-download__tab-text-content ol li {
  margin-bottom: 10px;
}

.page-download__tab-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__tab-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-download__btn-download-small {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-download__btn-download-small:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* Security Section */
.page-download__security-content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

.page-download__security-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-download__security-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-download__security-text-content {
  flex: 1.5;
  min-width: 300px;
  text-align: left;
}

.page-download__security-text-content p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-download__security-text-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-download__security-text-content ul li {
  font-size: 1.1em;
  line-height: 2;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-download__security-text-content ul li strong {
  color: var(--secondary-color);
}

.page-download__security-text-content ul li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* FAQ Section */
.page-download__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  background-color: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #f5f5f5;
}

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

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fcfcfc;
  color: var(--text-on-light);
}

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

.page-download__faq-answer p {
  line-height: 1.7;
  font-size: 1em;
  color: var(--text-on-light);
}

/* CTA Section */
.page-download__cta-section {
  text-align: center;
  background-color: var(--primary-color);
  padding: 100px 0;
  border-radius: 0;
}

.page-download__cta-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-download__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-download__btn-large {
  padding: 20px 45px;
  font-size: 1.5em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 2.8em;
  }
  .page-download__description {
    font-size: 1.1em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__tab-inner-content {
    flex-direction: column;
    text-align: center;
  }
  .page-download__tab-text-content ol {
    text-align: left;
  }
  .page-download__security-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-download__security-text-content {
    text-align: center;
  }
  .page-download__security-text-content ul {
    padding-left: 0;
    text-align: left;
    margin: 0 auto;
    max-width: 400px;
  }
  .page-download__security-text-content ul li {
    padding-left: 0;
  }
  .page-download__security-text-content ul li::before {
    position: static;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .page-download {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-download__main-title {
    font-size: 2.2em;
  }
  .page-download__description {
    font-size: 1em;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__text-block {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-download__btn-download,
  .page-download__btn-primary,
  .page-download__btn-download-small,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-download__download-buttons,
  .page-download__button-group,
  .page-download__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-download__hero-section {
    height: auto;
    min-height: 600px;
    padding: 100px 0;
  }
  .page-download__hero-content {
    padding: 20px 15px;
  }
  .page-download__hero-video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    cursor: pointer;
  }
  .page-download__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
  }
  .page-download__benefits-grid,
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__benefit-card,
  .page-download__feature-card {
    padding: 20px;
  }
  .page-download__benefit-card img,
  .page-download__feature-card img,
  .page-download__tab-image-container img,
  .page-download__security-image-container img,
  .page-download__content-area img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__tab-header {
    flex-direction: column;
    border-bottom: none;
  }
  .page-download__tab-button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
  }
  .page-download__tab-button--active {
    border-bottom: 3px solid var(--secondary-color);
  }
  .page-download__security-text-content ul {
    max-width: 100%;
  }
  .page-download__faq-item {
    margin: 0 15px 15px 15px;
  }
  .page-download__faq-question,
  .page-download__faq-answer {
    padding: 15px 20px;
  }
  .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;
  }
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }
  .page-download__description {
    font-size: 0.9em;
  }
  .page-download__btn-download,
  .page-download__btn-primary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-download__btn-download img {
    
    
  }
  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__card-title {
    font-size: 1.4em;
  }
  .page-download__faq-question {
    font-size: 1.1em;
  }
  .page-download__btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
  }
}