/* style/download.css */

/* Base styles for the page content */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* Light background for sections */
}

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

.page-download__container--center {
    text-align: center;
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-download__section-title--light {
  color: #ffffff; /* White title for dark backgrounds */
}

.page-download__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-download__section-description--light {
  color: #f0f0f0; /* Light description for dark backgrounds */
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px; /* Base bottom and side padding */
  padding-top: var(--header-offset, 120px); /* This IS the top padding, ensures content is below header */
  background: linear-gradient(135deg, #26A9E0 0%, #3a9fd0 100%); /* Brand color gradient */
  color: #ffffff;
}

.page-download__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__hero-content {
  max-width: 800px;
  text-align: center;
}

.page-download__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-download__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #e0f2f7;
}

.page-download__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__cta-button--android {
  background-color: #EA7C07; /* Login color for Android */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-download__cta-button--android:hover {
  background-color: #d66f06;
  border-color: #d66f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__cta-button--ios {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-download__cta-button--ios:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__hero-image {
  width: 100%;
  max-width: 800px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Why Download Section */
.page-download__why-download {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.page-download__feature-item img {
  width: 200px; /* Min size 200x200 */
  height: 200px; /* Min size 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__feature-text {
  font-size: 16px;
  color: #555555;
}

/* Features Section */
.page-download__features {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-download__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-download__content-subtitle {
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__content-subtitle--light {
  color: #ffffff;
}

.page-download__content-paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555555;
}

.page-download__content-paragraph--light {
  color: #e0f2f7;
}

.page-download__content-image {
  flex: 1;
  min-width: 400px;
}

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

/* How To Download Section */
.page-download__how-to-download {
  background-color: #f8f8f8;
  color: #333333;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-download__download-platform {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-download__download-subtitle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__qr-code {
  text-align: center;
  margin-bottom: 25px;
}

.page-download__qr-code img {
  width: 250px; /* Example size, ensuring min 200x200 */
  height: 250px; /* Example size, ensuring min 200x200 */
  object-fit: contain;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 5px;
  display: block;
  margin: 0 auto 15px;
}

.page-download__qr-text {
  font-size: 15px;
  color: #666;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  counter-reset: step-counter;
}

.page-download__step-item {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  padding-left: 25px;
  position: relative;
  color: #333333;
}

.page-download__step-item strong {
  color: #26A9E0;
}

.page-download__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.page-download__cta-button--full-width {
  width: 100%;
  display: block;
  text-align: center;
}

/* Supported Devices Section */
.page-download__supported-devices {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__device-compatibility {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-download__device-info {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  text-align: left;
}

.page-download__device-platform-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-download__device-list {
  list-style: none;
  padding: 0;
}

.page-download__device-list-item {
  margin-bottom: 10px;
  font-size: 16px;
  color: #e0f2f7;
  padding-left: 25px;
  position: relative;
}

.page-download__device-list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffff;
  font-weight: bold;
}

.page-download__note {
  margin-top: 40px;
  font-size: 16px;
  color: #e0f2f7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Security Info Section */
.page-download__security-info {
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-download__security-item img {
  width: 200px; /* Min size 200x200 */
  height: 200px; /* Min size 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__security-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-download__security-text {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

/* FAQ容器样式 */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.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: #e0f2f7; /* Light background for answer */
  border-radius: 0 0 5px 5px;
}