/* style/download.css */
/* 
  BEM Naming Convention: .page-download__element-name
  Colors: Primary #017439, Auxiliary #FFFFFF, Text #333333, Register/Login buttons #C30808, Register/Login font #FFFF00
  Body background is default white, so main text color is #333333.
*/

.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly setting for clarity, though shared.css might set body */
}

/* 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 not hidden by fixed header */
  background: linear-gradient(135deg, #017439, #05a04e); /* Gradient using primary color */
  color: #ffffff; /* Light text for dark background */
  overflow: hidden; /* Ensure no image overflow */
}

.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;
  position: relative;
  z-index: 1; /* Below content */
}

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

.page-download__hero-content {
  position: relative;
  z-index: 2; /* Above image */
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-download__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* General Section Styles */
.page-download__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
}

.page-download__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #017439; /* Primary color for titles on light background */
  font-weight: bold;
}

.page-download__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

/* Background Colors */
.page-download__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-download__dark-bg .page-download__section-title {
  color: #ffffff; /* White title on dark background */
}

/* CTA Button Styles */
.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-download__btn-primary {
  background: #C30808;
  color: #FFFF00;
}

.page-download__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  box-shadow: none;
}

.page-download__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}