/* style/download.css */

/* --- Base Styles --- */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  /* Body background is #0a0a0a (dark), so main text color should be light */
  color: #ffffff;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-download__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark background */
}

.page-download__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly lighter for descriptions */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Button Styles --- */
.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

/* Custom colors for Register/Login */
.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-download__btn-large {
    font-size: 1.2em;
    padding: 18px 35px;
}

/* --- Hero Section --- */
.page-download__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Using brand color for hero background */
  color: #ffffff; /* Ensure light text on brand color background */
}

.page-download__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(1, 116, 57, 0.8), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.page-download__hero-section .page-download__container {
    position: relative;
    z-index: 2;
}

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

.page-download__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-download__hero-image-wrapper {
    margin-top: 50px;
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the image */
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Why Download Section --- */
.page-download__why-download-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-download__why-download-section .page-download__section-title {
  color: #017439; /* Brand primary color for title */
}

.page-download__why-download-section .page-download__section-description {
  color: #555555;
}

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

.page-download__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-icon {
  width: 100%; /* Occupy card width */
  height: auto;
  max-width: 400px; /* Limit max width for smaller cards */
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}