/* style/download.css */
.page-download {
    color: #333333; /* Dark text on default white body background for high contrast */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-download__hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF; /* Light text on dark hero background */
    position: relative;
    overflow: hidden;
}

.page-download__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
}

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

.page-download__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-download__button {
    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, transform 0.2s ease;
    cursor: pointer;
    min-width: 200px; /* Ensure buttons are large enough */
    text-align: center;
}

.page-download__button--download-android {
    background-color: #FCBC45; /* Login button color for download action */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-download__button--download-android:hover {
    background-color: #E0A030;
    transform: translateY(-2px);
}

.page-download__button--download-ios {
    background-color: #FFFFFF; /* Register button color for download action */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-download__button--download-ios:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.page-download__hero-image {
    width: 1000px; /* Display width */
    height: 563px; /* Display height */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain; /* Ensure image fits well */
}

.page-download__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
    font-weight: bold;
}

.page-download__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    color: #555555;
}

.page-download__why-app-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

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

.page-download__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-download__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.5;
}

.page-download__section-image {
    width: 800px; /* Display width */
    height: 600px; /* Display height */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__download-methods-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-download__method-card {
    background-color: #F8F8F8;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: center;
}

.page-download__method-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-download__method-image {
    width: 600px; /* Display width */
    height: 400px; /* Display height */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.page-download__method-steps {
    list-style-type: decimal;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding-left: 20px;
    color: #444444;
    line-height: 1.8;
    font-size: 1.05em;
}

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

.page-download__button--download-android, .page-download__button--download-ios {
    margin-top: 20px;
}

.page-download__pre-installation-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.page-download__notes-list {
    list-style-type: disc;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 25px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #444444;
}

.page-download__notes-list strong {
    color: #000000;
}

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

.page-download__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-download__faq-image {
    width: 800px; /* Display width */
    height: 600px; /* Display height */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 50px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__faq-items {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: #FCBC45; /* Highlight FAQ questions */
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate for - */
}

.page-download__faq-answer {
    padding: 20px 25px;
    background-color: #FFFFFF;
    color: #444444;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-download__hero-title {
        font-size: 2em;
    }

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

    .page-download__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-download__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto; /* Center buttons on mobile */
    }

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

    .page-download__section-intro {
        font-size: 0.95em;
    }

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

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

    .page-download__method-steps,
    .page-download__notes-list,
    .page-download__faq-answer {
        font-size: 0.95em;
    }

    .page-download__faq-question {
        font-size: 1.1em;
    }

    /* Ensure all content images are responsive and do not overflow */
    .page-download img {
        max-width: 100%;
        height: auto;
    }
}