/* style/download.css */

.page-download {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default light background */
}

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

.page-download__section {
    padding: 60px 0;
    text-align: center;
}

.page-download__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-download__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__description {
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-download__hero-section {
    background-color: #26A9E0;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px; /* Adjust max-width for content within hero */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    margin-bottom: 30px;
}

.page-download__hero-content {
    text-align: center;
    max-width: 900px;
}

/* CTA Buttons */
.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

.page-download__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1a7eb3;
    border-color: #1a7eb3;
}

/* Introduction Section */
.page-download__introduction p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Download Section */
.page-download__why-download {
    background-color: #f8f8f8;
}

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

.page-download__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-download__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__feature-item p {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Download Guide Section */
.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.page-download__guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__guide-step:nth-child(even) {
    flex-direction: column-reverse;
}

.page-download__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__guide-step p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}

.page-download__step-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* App Features Section */
.page-download__app-features {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-download__app-features .page-download__section-title {
    color: #FFFFFF;
}

.page-download__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-download__feature-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__list-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download__feature-list p {
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq {
    background-color: #f8f8f8;
}

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

.page-download__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-download__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg);
}

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

.page-download__faq-answer p {
    margin: 0;
}

/* Security Info Section */
.page-download__security-info p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Conclusion Section */
.page-download__conclusion {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-download__conclusion .page-download__section-title {
    color: #FFFFFF;
}

.page-download__conclusion p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* General Image Responsiveness */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    .page-download__section {
        padding: 40px 0;
    }

    .page-download__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-download__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-download__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Hero Section Mobile */
    .page-download__hero-section {
        padding-top: 10px !important; /* Small top padding, shared.css handles body padding */
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .page-download__hero-section .page-download__container {
        gap: 20px;
    }

    .page-download__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure image is not cropped */
        aspect-ratio: unset; /* Remove fixed aspect ratio if any */
        max-height: none; /* Remove max-height constraint */
        margin-bottom: 20px;
    }

    /* CTA Buttons Mobile */
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download a[class*="button"],
    .page-download a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Introduction Section Mobile */
    .page-download__introduction p {
        font-size: 1em;
    }

    /* Why Download Section Mobile */
    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Download Guide Section Mobile */
    .page-download__guide-steps {
        gap: 30px;
    }

    .page-download__guide-step:nth-child(even) {
        flex-direction: column;
    }

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

    .page-download__guide-step p {
        font-size: 1em;
    }

    .page-download__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* App Features Section Mobile */
    .page-download__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Security Info Section Mobile */
    .page-download__security-info p {
        font-size: 1em;
    }

    /* Conclusion Section Mobile */
    .page-download__conclusion p {
        font-size: 1em;
    }

    /* Universal image and container sizing for mobile */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-download__section,
    .page-download__card,
    .page-download__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}