/* style/download.css */
/* Base styles for the download page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #FFFFFF); /* Page body background */
}

/* Color contrast adjustments for specific sections */
.page-download__dark-bg {
    background-color: #017439; /* Primary color as dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-download__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-download__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin */
}

.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for content */
    box-sizing: border-box;
}

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles */
}

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

.page-download__text-block {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__inline-link {
    color: #017439; /* Primary color for inline links */
    text-decoration: underline;
}

.page-download__dark-bg .page-download__inline-link {
    color: #FFFF00; /* Yellow for links on dark background */
}

/* 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, #005f2c); /* Darker green gradient */
    color: #ffffff;
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-download__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-download__btn-primary {
    background: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow text for primary button */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-download__btn-primary:hover {
    background: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.6);
}

.page-download__btn-secondary {
    background: #017439; /* Primary color for secondary button */
    color: #ffffff; /* White text for secondary button */
    border: 2px solid #017439;
    box-shadow: 0 4px 15px rgba(1, 116, 57, 0.4);
}

.page-download__btn-secondary:hover {
    background: #005f2c;
    border-color: #005f2c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 116, 57, 0.6);
}

/* General card styles */
.page-download__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

/* Intro Section */
.page-download__intro-section {
    background-color: #f9f9f9;
}

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

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

/* Guide Section */
.page-download__guide-section {
    background-color: #ffffff;
}

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

.page-download__android-guide,
.page-download__ios-guide {
    flex: 1;
    min-width: 450px;
    max-width: 550px;
    text-align: left;
}

.page-download__guide-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #017439;
    text-align: center;
}

.page-download__android-guide img,
.page-download__ios-guide img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-download__guide-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__guide-steps li {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.6;
}

.page-download__guide-steps li strong {
    color: #017439;
}

.page-download__download-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    display: block;
    margin-top: 20px;
}

.page-download__important-notes {
    margin-top: 50px;
    text-align: left;
}

.page-download__important-notes .page-download__guide-title {
    text-align: left;
}

.page-download__list {
    list-style: disc;
    padding-left: 25px;
    font-size: 17px;
}

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

.page-download__list li strong {
    color: #017439;
}

/* Features Section */
.page-download__features-section {
    background-color: #017439;
    color: #ffffff;
}