/* style/download.css */
/* body đã padding-top: var(--header-offset) từ shared.css; */
/* Trang này không được thêm padding-top với biến đó để tránh trùng lặp. */

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main - Light color for dark background */
  background-color: #08160F; /* Background color */
}

/* --- Hero Section --- */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-download__hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.page-download__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px; /* Constrain button group width */
  margin: 0 auto;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-download__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for contrast */
  border: 2px solid #57E38D; /* Glow color for border */
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.2);
}

.page-download__btn-secondary:hover {
  background-color: #57E38D; /* Glow color as background */
  color: #08160F; /* Background color for text */
  box-shadow: 0 6px 15px rgba(87, 227, 141, 0.4);
  transform: translateY(-2px);
}

.page-download__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.page-download__btn-centered {
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__text-link {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-download__text-link:hover {
  color: #2AD16F; /* Lighter green on hover */
  text-decoration: underline;
}

/* --- General Content Sections --- */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-download__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-download__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  text-align: justify;
}

.page-download__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

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

.page-download__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-download__feature-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* --- Download Guide Steps --- */
.page-download__guide-steps {
  display: grid;
  grid-template-columns: 1fr; /* Single column by default */
  gap: 30px;
}

.page-download__step-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-download__step-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__step-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-download__qr-codes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.page-download__qr-item {
  text-align: center;
}

.page-download__qr-image {
  width: 200px; /* Explicit width to match HTML attribute */
  height: 200px; /* Explicit height to match HTML attribute */
  border: 5px solid #F2FFF6; /* Light border for QR code */
  border-radius: 5px;
  display: block;
  margin: 0 auto 10px auto;
  object-fit: contain;
}

.page-download__qr-label {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
}

/* --- Game Categories --- */
.page-download__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-download__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-download__game-title {
  font-size: 1.3em;
  color: #F2C14E; /* Gold */
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-download__game-title a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
}

.page-download__game-title a:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow color on hover */
}

.page-download__game-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

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

.page-download__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-download__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-download__card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-download__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

/* --- Security Section --- */
.page-download__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__security-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-download__security-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__security-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* --- FAQ Section --- */
.page-download__faq-section {
  padding-bottom: 60px;
}

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

.page-download__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__faq-item summary {
  list-style: none; /* Hide default marker */
}
.page-download__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-download__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow color */
  transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-download__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* --- Conclusion Section --- */
.page-download__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* --- Video Section --- */
.page-download__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Limit video width */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}