/* style/download.css */

/* Global Variables (if needed, but mostly handled by shared.css) */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-light: #f0f2f5; /* For dark backgrounds */
  --text-color-dark: #333333; /* For light backgrounds */
  --white: #ffffff;
  --light-gray: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Page specific styles */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--text-color-light); /* Matches body background */
}

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

.page-download__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* 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); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a3f4c 100%); /* Dark gradient background */
  color: var(--white);
}

.page-download__hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.page-download__hero-content {
  flex: 1;
  text-align: left;
  max-width: 50%;
}

.page-download__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Gold color for title */
}

.page-download__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-color-light);
}

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start; /* Align buttons to the left */
}

.page-download__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-download__cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-android {
  background: #4CAF50; /* Android green */
  border-color: #4CAF50;
  color: var(--white);
}

.page-download__btn-android:hover {
  background: var(--primary-color);
  color: #4CAF50;
  border-color: #4CAF50;
}

.page-download__btn-ios {
  background: #007AFF; /* iOS blue */
  border-color: #007AFF;
  color: var(--white);
}

.page-download__btn-ios:hover {
  background: var(--primary-color);
  color: #007AFF;
  border-color: #007AFF;
}


.page-download__hero-image {
  flex: 1;
  max-width: 50%;
  text-align: right;
}

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

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

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

.page-download__feature-item {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

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

.page-download__feature-text {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* How to Download Section */
.page-download__how-to-download {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--white);
}

.page-download__how-to-download .page-download__section-title {
  color: var(--secondary-color); /* Gold title on dark background */
}

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

.page-download__download-steps {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.page-download__step-block {
  flex: 1;
  background: #2A303C; /* Slightly lighter dark background */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-download__step-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-download__step-item {
  margin-bottom: 30px;
  background: #3A404C; /* Another shade of dark */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-download__step-item:last-child {
  margin-bottom: 0;
}

.page-download__step-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 10px;
}

.page-download__step-detail {
  font-size: 16px;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-download__step-detail a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-download__step-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin-top: 15px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-download__qr-code-section {
  text-align: center;
  background: #2A303C;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.page-download__qr-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-download__qr-description {
  font-size: 18px;
  color: var(--text-color-light);
  margin-bottom: 30px;
}

.page-download__qr-image {
  width: 300px;
  height: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border: 5px solid var(--white);
  border-radius: 8px;
  object-fit: contain;
}

.page-download__btn-download-qr {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-download__btn-download-qr:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* App Features Section */
.page-download__app-features {
  padding: 80px 0;
  background-color: var(--text-color-light);
  color: var(--text-color-dark);
}

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

.page-download__feature-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  max-width: 100%;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-download__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  padding: 20px 25px 10px;
}

.page-download__card-text {
  font-size: 16px;
  color: #555;
  padding: 0 25px 25px;
  line-height: 1.6;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--white);
}

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

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

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

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

.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;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2A303C; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-color-light);
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #3A404C; /* Dark background for question */
  border: 1px solid #4A505C;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--white);
}

.page-download__faq-question:hover {
  background: #4A505C;
  border-color: var(--secondary-color);
}

.page-download__faq-question:active {
  background: #5A606C;
}

.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--white);
}

.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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;
  border: 1px solid var(--secondary-color);
  border-radius: 50%;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: var(--white);
  background: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}


/* Final CTA Section */
.page-download__final-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--text-color-light);
  color: var(--text-color-dark);
}

.page-download__btn-final {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-download__btn-final:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}