/* style/download.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* General Section Styling */
.page-download__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

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

/* Color Contrast Handling */
.page-download__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-download__dark-bg .page-download__section-title,
.page-download__dark-bg .page-download__section-description,
.page-download__dark-bg .page-download__card-title,
.page-download__dark-bg .page-download__card-text,
.page-download__dark-bg .page-download__security-subtitle,
.page-download__dark-bg .page-download__security-text,
.page-download__dark-bg .page-download__faq-qtext {
    color: var(--text-light);
}

.page-download__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__light-bg .page-download__section-title,
.page-download__light-bg .page-download__section-description,
.page-download__light-bg .page-download__card-title,
.page-download__light-bg .page-download__card-text,
.page-download__light-bg .page-download__faq-qtext {
    color: var(--text-dark);
}

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

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

.page-download__cta-button {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background-color: var(--register-color); /* Using register color for primary CTA */
    color: var(--register-login-font-color);
    border: 2px solid var(--register-color);
}

.page-download__btn-primary:hover {
    background-color: darken(var(--register-color), 10%);
    transform: translateY(-2px);
}

.page-download__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-download__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.page-download__hero-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-download__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    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;
    line-height: 1.2;
    color: var(--text-light);
}

.page-download__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.page-download__hero-image-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.page-download__benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__benefit-card:hover {
    transform: translateY(-10px);
}

.page-download__benefit-card .page-download__card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-download__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-download__card-text {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-download__step-card {
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__step-card .page-download__card-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.page-download__step-list li {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
    padding-left: 30px;
    position: relative;
}

.page-download__step-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

.page-download__step-title {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.page-download__step-card .page-download__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-download__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__feature-item .page-download__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

/* Security Section */
.page-download__security-section {
    padding: 80px 0;
}

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

.page-download__security-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
}

.page-download__security-icon {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-download__security-subtitle {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-download__security-text {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
}

.page-download__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-light);
}

.page-download__faq-item[open] .page-download__faq-question {
    border-bottom: 1px solid var(--border-light);
}

.page-download__faq-question::-webkit-details-marker {
    display: none;
}

.page-download__faq-question::marker {
    display: none;
}

.page-download__faq-qtext {
    flex-grow: 1;
    color: var(--text-dark);
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-download__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-download__cta-final-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__download-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 0;
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-download__benefits-grid,
    .page-download__features-grid,
    .page-download__security-grid {
        grid-template-columns: 1fr;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-download__benefit-card,
    .page-download__feature-item,
    .page-download__step-card,
    .page-download__security-item {
        padding: 25px 20px;
    }

    /* Mobile image adaptation */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-image-wrapper,
    .page-download__benefits-grid,
    .page-download__download-steps,
    .page-download__features-grid,
    .page-download__security-grid,
    .page-download__faq-list,
    .page-download__cta-final-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
    }

    /* FAQ Toggle */
    .page-download__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-download__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__step-card {
        padding: 20px;
    }
    .page-download__step-list li {
        font-size: 0.95em;
    }
}