/* style/download.css */

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

/* Base styles for the page-download scope */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text for light body background */
    background-color: var(--background-color); /* Assuming shared.css defines --page-bg to be light */
}

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

.page-download__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-download__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-download__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--text-light);
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-download__btn-primary {
    background-color: var(--button-register);
    color: var(--font-login-register);
    border: 2px solid var(--button-register);
}

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

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

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

/* Benefits Section */
.page-download__benefits-section {
    padding: 80px 0;
    background-color: var(--background-color); /* Light background */
    color: var(--text-dark);
}

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

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

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

.page-download__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

/* Guide Section */
.page-download__guide-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Medium light background */
    color: var(--text-dark);
}

.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.page-download__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__step-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.page-download__step-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.page-download__qr-code {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: var(--secondary-color);
    flex-shrink: 0;
}

.page-download__step-list {
    list-style-type: decimal;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 600px;
    margin: 0;
    padding-left: 20px;
    color: var(--text-dark);
}

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

.page-download__step-list strong {
    color: var(--primary-color);
}

.page-download__important-notes {
    margin-top: 60px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-download__notes-title {
    font-size: 1.8em;
    color: var(--button-register);
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-download__notes-list {
    list-style-type: disc;
    text-align: left;
    font-size: 1em;
    line-height: 1.7;
    margin: 0 auto;
    padding-left: 25px;
    max-width: 800px;
}

.page-download__notes-list li {
    margin-bottom: 8px;
}

/* Features Section */
.page-download__features-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

.page-download__features-section .page-download__section-title,
.page-download__features-section .page-download__section-intro {
    color: var(--text-light);
}

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

.page-download__feature-card.page-download__card.page-download__dark-bg {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__feature-card.page-download__card.page-download__dark-bg:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-download__feature-card .page-download__card-image {
    height: 180px;
}

.page-download__feature-card .page-download__card-title {
    color: var(--secondary-color);
}

.page-download__feature-card .page-download__card-text {
    color: var(--text-light);
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: var(--background-color); /* Light background */
    color: var(--text-dark);
}

.page-download__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-download__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: #f0f0f0;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(0deg); /* '-' sign */
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fcfcfc;
    color: var(--text-dark);
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-download__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-dark);
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    text-align: center;
    color: var(--text-light);
}

.page-download__cta-title {
    font-size: 2.8em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__cta-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__card-title {
        font-size: 1.3em;
    }
    .page-download__step-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__benefits-grid,
    .page-download__features-grid {
        grid-template-columns: 1fr;
    }
    .page-download__guide-steps {
        gap: 40px;
    }
    .page-download__step-content {
        flex-direction: column;
        align-items: center;
    }
    .page-download__step-list {
        max-width: 100%;
        padding-left: 0;
        text-align: center;
    }
    .page-download__step-list li {
        text-align: left;
    }
    .page-download__qr-code {
        width: 250px;
        height: 250px;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-intro {
        font-size: 0.95em;
    }
    .page-download__card-title {
        font-size: 1.2em;
    }
    .page-download__important-notes,
    .page-download__faq-item {
        margin: 0 15px 15px 15px; /* Add side padding for containers */
        box-sizing: border-box !important;
        max-width: calc(100% - 30px) !important; /* Ensure content fits */
        width: auto !important;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 10px 20px;
    }
    .page-download__cta-title {
        font-size: 2em;
    }
    .page-download__cta-description {
        font-size: 1em;
    }

    /* Image responsiveness for mobile */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__features-section,
    .page-download__faq-section,
    .page-download__cta-final-section,
    .page-download__step-item,
    .page-download__step-content,
    .page-download__important-notes,
    .page-download__faq-list,
    .page-download__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__hero-description {
        font-size: 0.9em;
    }
    .page-download__section-title {
        font-size: 1.6em;
    }
    .page-download__step-title {
        font-size: 1.5em;
    }
    .page-download__qr-code {
        width: 200px;
        height: 200px;
    }
    .page-download__notes-title {
        font-size: 1.4em;
    }
    .page-download__cta-title {
        font-size: 1.8em;
    }
}