/* style/download.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Carbon Black */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #333; /* From shared.css body background */
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if sections don't specify */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-download__section {
  padding: 60px 0;
  text-align: center;
}

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

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

.page-download__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.page-download__section-description--light {
  color: var(--text-light);
}

/* HERO Section */
.page-download__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); /* Ensures content is below fixed header */
  background: var(--secondary-color); /* Dark background for hero */
  overflow: hidden; /* Ensure no overflow from hero elements */
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-download__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color); /* Gold color for main title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-light);
  line-height: 1.5;
}

.page-download__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-download__cta-button:hover {
  background: #FFC107; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Why Download Section */
.page-download__why-download {
  background-color: var(--bg-light); /* Light background for contrast */
  color: var(--text-dark);
}

.page-download__why-download .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__why-download .page-download__section-description {
  color: var(--text-dark);
}

.page-download__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-download__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-download__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Download Guide Section */
.page-download__download-guide {
  background-color: var(--secondary-color); /* Dark background */
  color: var(--text-light);
}

.page-download__platform-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-download__guide-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-download__guide-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-download__guide-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-steps {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: var(--text-light);
  flex-grow: 1;
}

.page-download__guide-steps li {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.page-download__guide-steps strong {
  color: var(--primary-color);
}

.page-download__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-download__btn-primary:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-block {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

/* Features Section */
.page-download__features {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__features .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__features .page-download__section-description {
  color: var(--text-dark);
}

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

.page-download__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-download__feature-card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__feature-card p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Security & Compatibility Section */
.page-download__security-compatibility {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-download__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__security-text {
  flex: 1;
}

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

.page-download__sub-title--light {
  color: var(--primary-color);
}

.page-download__text--light {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-download__security-image {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-download__faq {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-download__faq .page-download__section-title {
  color: var(--secondary-color);
}

.page-download__faq .page-download__section-description {
  color: var(--text-dark);
}

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

/* FAQ容器样式 */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark); /* Đảm bảo văn bản tối trên nền sáng */
}