/* style/index-download-guide.css */

/* --- Base Styles --- */
.page-index-download-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure consistency with body background */
}

.page-index-download-guide__dark-bg {
  background-color: var(--primary-color, #26A9E0);
  color: #ffffff;
}

.page-index-download-guide__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

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

.page-index-download-guide__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-download-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-index-download-guide__section-intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-index-download-guide__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-index-download-guide__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* --- Hero Section --- */
.page-index-download-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden; /* Prevent image overflow */
}

.page-index-download-guide__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-index-download-guide__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index-download-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-index-download-guide__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff;
}

.page-index-download-guide__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-index-download-guide__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index-download-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-index-download-guide__btn-primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-download-guide__btn-primary:hover {
  background: #1e87b3; /* Slightly darker primary */
  border-color: #1e87b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-download-guide__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary brand color as text */
  border: 2px solid #26A9E0;
}

.page-index-download-guide__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b3;
  border-color: #1e87b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Features Grid --- */
.page-index-download-guide__features-grid,
.page-index-download-guide__game-showcase-grid,
.page-index-download-guide__promotions-grid,
.page-index-download-guide__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-download-guide__feature-card,
.page-index-download-guide__platform-card,
.page-index-download-guide__game-card,
.page-index-download-guide__promo-card,
.page-index-download-guide__info-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index-download-guide__feature-card:hover,
.page-index-download-guide__game-card:hover,
.page-index-download-guide__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-download-guide__feature-card img,
.page-index-download-guide__game-card img,
.page-index-download-guide__promo-card img,
.page-index-download-guide__platform-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index-download-guide__game-card .page-index-download-guide__card-title a {
  color: #26A9E0;
  text-decoration: none;
}