.page-download {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: var(--bg-color, #ffffff); /* Use shared background variable */
}

.page-download__hero-section {
    background-color: #000000; /* Main color as hero background */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

.page-download__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FCBC45; /* Gold accent for title */
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

.page-download__button {
    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;
    white-space: nowrap;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1.1em;
}

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

.page-download__button--download:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-download__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px;
}

.page-download__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Auxiliary color for section background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-download__why-app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-download__why-app-text {
    flex: 1;
    min-width: 300px;
}

.page-download__why-app-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-download__why-app-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.page-download__list-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #FCBC45; /* Gold accent */
}

.page-download__why-app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-download__why-app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-download__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 30px;
}

.page-download__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-download__download-methods {
    background-color: #f8f8f8; /* Slightly different background for visual separation */
}

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

.page-download__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.page-download__method-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-download__qr-code img {
    max-width: 200px; /* Specific size for QR code images */
    height: auto;
    border: 5px solid #000000;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

.page-download__button--secondary {
    background-color: #000000; /* Main color */
    color: #FCBC45; /* Gold accent for text */
    border: 2px solid #000000;
}

.page-download__button--secondary:hover {
    background-color: #333333;
    border-color: #333333;
}

.page-download__pre-install-notes {
    background-color: #ffffff;
}

.page-download__notes-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-download__notes-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-download__notes-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 30px;
}

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

.page-download__notes-list li::before {
    content: "•";
    color: #FCBC45;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.page-download__faq-section {
    background-color: #f8f8f8;
}

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

.page-download__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px 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: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

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

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

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

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

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

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

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

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

    .page-download__why-app-content {
        flex-direction: column;
    }

    .page-download__why-app-text,
    .page-download__why-app-image {
        min-width: unset;
        width: 100%;
    }

    .page-download__methods-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ensure content images are responsive and don't overflow */
    .page-download img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Still enforce minimum size */
        min-height: 200px;
    }
    .page-download__hero-image img,
    .page-download__why-app-image img,
    .page-download__method-image img,
    .page-download__qr-code img {
        max-width: 100%;
        height: auto;
    }
}