/* style/download.css */

/* Root variables for custom colors */
:root {
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --main-bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color-custom: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the download page, ensuring text contrast with dark background */
.page-download {
  color: var(--text-main-color); /* Default text color for the page content */
  background-color: var(--main-bg-color); /* Overall page background */
}

/* Sections with light background for contrast */
.page-download__light-bg {
  background-color: #ffffff; /* Explicitly white for contrast */
  color: #333333; /* Dark text for light background */
}

/* Sections with dark background, using brand deep green */
.page-download__dark-section {
  background-color: var(--main-bg-color); /* Deep green background */
  color: var(--text-main-color); /* Light text */
}

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px; /* Base padding */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure image doesn't overflow */
  background-color: var(--main-bg-color);
  color: var(--text-main-color);
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
  display: block;
}

.page-download__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-download__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-download__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

.page-download__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  color: inherit; /* Inherit from section, either text-main-color or #333 */
}

.page-download__text-block {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: inherit; /* Inherit from section */
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-download__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-download__btn-secondary {
  background: #ffffff;
  color: var(--deep-green-color); /* Darker text for light background */
  border: 2px solid var(--border-color-custom);
}

.page-download__btn-secondary:hover {
  background: var(--deep-green-color);
  color: #ffffff;
  border-color: var(--deep-green-color);
}

.page-download__cta-buttons--center {
    margin-top: 50px;
}

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

/* Intro Section */
.page-download__intro-section {
  padding: 80px 0;
}

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px; /* Max width for video */
  margin: 0 auto 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #000; /* Fallback for video background */
}

.page-download__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* Ensure link is clickable over video */
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure no extra space */
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
}

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

.page-download__benefit-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color); /* Light text on dark card */
}

.page-download__card-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 200px; /* Adjust max-width for card images */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-download__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-download__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
}

.page-download__download-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
  justify-content: center;
}

.page-download__step-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #ffffff; /* Light background for steps */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333; /* Dark text on light background */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__step-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--deep-green-color);
}

.page-download__step-image {
  width: 100%;
  height: auto;
  max-width: 300px; /* Limit step image width */
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-download__step-list {
  text-align: left;
  margin: 0 0 30px 0;
  padding-left: 25px;
  list-style-type: decimal;
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
}

.page-download__step-list li {
  margin-bottom: 10px;
}

/* Features Section */
.page-download__features-section {
  padding: 80px 0;
}

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

.page-download__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color); /* Light text on dark card */
}