.page-download {
    color: #333333; /* Default text color for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for both desktop and mobile */
}

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

.page-download__hero-section {
    background-color: #FFD700; /* Gold background */
    color: #8B0000; /* Dark red text for contrast */
    padding: 0 0 60px; /* Adjust padding as image will take top space */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 0;
    margin-bottom: 40px; /* Space between image and text */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the wrapper area */
    object-position: center top; /* Focus on top part of image */
    min-height: 300px; /* Ensure minimum height */
    width: 1200px; /* HTML width attribute */
    height: 675px; /* HTML height attribute */
}

.page-download__hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding to container */
}

.page-download__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #8B0000; /* Dark red for emphasis */
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #5a0000; /* Slightly lighter dark red for readability */
}

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

.page-download__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    text-align: center;
}

.page-download__btn--primary {
    background-color: #8B0000; /* Dark red button */
    color: #FFD700; /* Gold text */
    border: 2px solid #8B0000;
}

.page-download__btn--primary:hover {
    background-color: #a00000;
    transform: translateY(-3px);
}

.page-download__btn--secondary {
    background-color: transparent;
    color: #8B0000; /* Dark red text */
    border: 2px solid #8B0000;
}

.page-download__btn--secondary:hover {
    background-color: #8B0000;
    color: #FFD700;
    transform: translateY(-3px);
}

.page-download__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 150px;
    margin-top: 20px;
}

.page-download__qr-code-section {
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: inline-block; /* To center the block */
}

.page-download__qr-image {
    max-width: 250px;
    height: auto;
    border: 2px solid #8B0000;
    border-radius: 5px;
    display: block; /* Ensure it takes up full width of its container */
    margin: 0 auto 15px; /* Center the image */
    width: 250px; /* Explicit width for HTML img attribute */
    height: 250px; /* Explicit height for HTML img attribute */
}

.page-download__qr-text {
    font-size: 1.1em;
    color: #333333;
    font-weight: bold;
}

.page-download__section-title {
    font-size: 2.2em;
    color: #8B0000; /* Dark red for main titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-download__why-app-section,
.page-download__how-to-download-section,
.page-download__pre-install-notes-section,
.page-download__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background for sections */
}

.page-download__why-app-section {
    background-color: #ffffff;
}

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

.page-download__feature-item,
.page-download__note-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-download__feature-item:hover,
.page-download__note-item:hover {
    transform: translateY(-5px);
}

.page-download__feature-icon {
    width: 400px; /* Display width from HTML attribute */
    height: 300px; /* Display height from HTML attribute */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title,
.page-download__method-title,
.page-download__note-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-download__feature-description,
.page-download__note-description {
    color: #555555;
    font-size: 1em;
}

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

.page-download__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-download__method-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-download__method-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555555;
}

.page-download__step-number {
    background-color: #FFD700; /* Gold step number */
    color: #8B0000; /* Dark red number */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

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

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

.page-download__faq-question {
    width: 100%;
    background-color: #FFD700; /* Gold for question background */
    color: #8B0000; /* Dark red for question text */
    padding: 18px 25px;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-download__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-download__faq-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for - */
}

.page-download__faq-question:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
}

.page-download__faq-answer {
    padding: 0 25px;
    background-color: #fefefe;
    color: #333333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-download__faq-answer.open {
    max-height: 200px; /* Adjust as needed, large enough to contain content */
    padding: 15px 25px;
}

.page-download__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-download__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 30px;
    }
    .page-download__hero-title {
        font-size: 2em;
    }

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

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

    .page-download__btn {
        min-width: unset;
        width: 100%;
    }

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

    .page-download__features-grid,
    .page-download__download-methods,
    .page-download__notes-grid {
        grid-template-columns: 1fr;
    }

    .page-download__feature-item,
    .page-download__method-card,
    .page-download__note-item {
        padding: 20px;
    }

    .page-download__feature-icon {
        width: 300px; /* Maintain min size for smaller screens */
        height: 225px;
    }

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

    .page-download__faq-answer.open {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-download__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-download__hero-section {
        padding: 0 0 40px;
    }
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__hero-description {
        font-size: 0.9em;
    }
    .page-download__download-buttons {
        gap: 10px;
    }
    .page-download__btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-download__qr-code-section {
        margin-top: 20px;
        padding: 15px;
    }
    .page-download__qr-image {
        max-width: 200px;
        width: 200px;
        height: 200px;
    }
    .page-download__qr-text {
        font-size: 1em;
    }
    .page-download__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__feature-item,
    .page-download__method-card,
    .page-download__note-item {
        padding: 15px;
    }
    .page-download__feature-title,
    .page-download__method-title,
    .page-download__note-title {
        font-size: 1.3em;
    }
    .page-download__faq-question {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    .page-download__faq-answer.open {
        padding: 8px 15px;
    }
}