/* style/download-game.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-bg-1: #0d0d0d; /* Assuming a dark body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --border-light: #e0e0e0;
}

.page-download-game {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for page content on dark body background */
}

/* Fixed navigation bar padding */
.page-download-game__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-download-game__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections styles */
.page-download-game__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-download-game__light-bg {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-download-game__main-title,
.page-download-game__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-download-game__main-title {
  font-size: 44px;
  margin-bottom: 20px;
}

.page-download-game__description,
.page-download-game__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-download-game__description a,
.page-download-game__section-intro a,
.page-download-game__faq-answer a,
.page-download-game__blog-summary a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-download-game__description a:hover,
.page-download-game__section-intro a:hover,
.page-download-game__faq-answer a:hover,
.page-download-game__blog-summary a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.page-download-game__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-download-game__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.page-download-game__btn-primary {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
}

.page-download-game__btn-primary:hover {
  background: #e6a700;
  border-color: #e6a700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download-game__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-download-game__dark-section .page-download-game__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-download-game__light-bg .page-download-game__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-download-game__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Core Games Section */
.page-download-game__game-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download-game__feature-card {
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download-game__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-download-game__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-download-game__feature-description {
  font-size: 16px;
  color: var(--text-dark);
}

.page-download-game__feature-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-download-game__feature-description a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-download-game__promotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download-game__promotion-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark section */
  color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-download-game__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-download-game__promotion-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-download-game__promotion-description {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-download-game__promotion-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-download-game__promotion-description a:hover {
  text-decoration: underline;
}

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

.page-download-game__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-download-game__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-download-game__faq-item.active .page-download-game__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-download-game__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-download-game__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-download-game__faq-question:active {
  background: #eeeeee;
}

.page-download-game__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-download-game__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-download-game__faq-item.active .page-download-game__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Latest Blog Section */
.page-download-game__blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download-game__blog-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark section */
  color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-download-game__blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-download-game__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  flex-grow: 1;
}

.page-download-game__blog-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-download-game__blog-summary {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-download-game__blog-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-download-game__blog-link:hover {
  background: #e6a700;
}

.page-download-game__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download-game__main-title {
    font-size: 38px;
  }
  .page-download-game__section-title {
    font-size: 32px;
  }
  .page-download-game__description,
  .page-download-game__section-intro {
    font-size: 17px;
  }
  .page-download-game__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-download-game__cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-download-game__game-features-grid,
  .page-download-game__promotion-cards-grid,
  .page-download-game__blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-download-game__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download-game__dark-section,
  .page-download-game__light-bg {
    padding: 40px 0;
  }
  .page-download-game__container {
    padding: 0 15px;
  }
  .page-download-game__main-title {
    font-size: 30px;
  }
  .page-download-game__section-title {
    font-size: 26px;
  }
  .page-download-game__description,
  .page-download-game__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-download-game__cta-group {
    margin-top: 30px;
  }
  .page-download-game__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-download-game__feature-card,
  .page-download-game__promotion-card,
  .page-download-game__blog-card {
    padding: 20px;
  }
  .page-download-game__feature-title,
  .page-download-game__promotion-title {
    font-size: 20px;
  }
  .page-download-game__feature-description,
  .page-download-game__promotion-description,
  .page-download-game__blog-summary {
    font-size: 15px;
  }
  .page-download-game__blog-title {
    font-size: 18px;
  }

  /* FAQ Mobile Styles */
  .page-download-game__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-download-game__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-download-game__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-download-game__faq-answer {
    padding: 0 15px;
  }
  
  .page-download-game__faq-item.active .page-download-game__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are responsive and prevent overflow */
  .page-download-game img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download-game__section,
  .page-download-game__card,
  .page-download-game__container,
  .page-download-game__intro-section,
  .page-download-game__core-games-section,
  .page-download-game__promotions-section,
  .page-download-game__faq-section,
  .page-download-game__latest-blog-section,
  .page-download-game__feature-card,
  .page-download-game__promotion-card,
  .page-download-game__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}