/* style/download.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-download {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    gap: 30px;
}

.page-download__hero-content {
    max-width: 800px;
    margin-bottom: 30px;
}

.page-download__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use custom color for main title for prominence */
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
    background-color: #C30808; /* Custom color for register/login type actions */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

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

.page-download__hero-image {
    max-width: 600px;
    width: 100%;
}

.page-download__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure no extra space below image */
}

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

.page-download__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFF00; /* Consistent heading color */
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Dark background sections */
.page-download__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Guide Section */
.page-download__guide-section {
    padding-bottom: 60px;
}

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

.page-download__guide-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
}

.page-download__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight card titles */
}

.page-download__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.page-download__guide-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-download__guide-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-download__guide-list strong {
    color: #FFFF00;
}

.page-download__note {
    font-style: italic;
    font-size: 0.95em;
    color: #cccccc;
}

.page-download__system-requirements {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    color: #ffffff;
}

.page-download__requirements-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.page-download__requirements-list li {
    margin-bottom: 8px;
    font-size: 1em;
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 60px 0;
    background-color: #222; /* Use body background for this section */
    color: #ffffff;
}

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

.page-download__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-download__benefit-icon {
    width: 100%;
    max-width: 250px; /* Adjust max-width for benefit icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

/* Features Section */
.page-download__features-section {
    padding-bottom: 60px;
}

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

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

.page-download__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #222; /* Use body background for this section */
    color: #ffffff;
}

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

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFF00; /* Highlight FAQ questions */
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* For <details> tag */
.page-download__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-download__faq-item summary {
    list-style: none;
}


.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '−' */
}

.page-download__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #cccccc;
}

/* Final CTA Section */
.page-download__cta-final {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-download__sub-cta {
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-download__link-text {
    color: #FFFF00; /* Custom color for register/login font */
    text-decoration: underline;
    font-weight: bold;
}

.page-download__link-text:hover {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-download__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        text-align: center;
    }

    .page-download__main-title {
        font-size: 2.2em;
    }

    .page-download__hero-description {
        font-size: 1em;
    }

    .page-download__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important; /* Full width buttons */
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__hero-image {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
    }

    .page-download__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__section-title {
        font-size: 1.8em;
    }

    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-download__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-download__guide-card,
    .page-download__benefit-card,
    .page-download__feature-card {
        padding: 20px;
    }

    .page-download__card-title {
        font-size: 1.5em;
    }

    .page-download__guide-image,
    .page-download__benefit-icon,
    .page-download__feature-icon,
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-download__faq-answer {
        padding: 0 20px 15px;
    }

    .page-download__cta-final {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
}