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

.page-download__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #000000; /* Ensure hero section has a background */
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background effect */
    overflow: hidden;
}

.page-download__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-download__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-download__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-download__button {
    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;
    cursor: pointer;
    text-align: center;
    min-width: 220px; /* Ensure buttons are not too small */
}

.page-download__button--android,
.page-download__button--ios,
.page-download__button--android-alt,
.page-download__button--ios-alt,
.page-download__button--primary {
    background-color: #FCBC45; /* Login/Download button color */
    color: #000000; /* Dark text for light button */
    border: 2px solid #FCBC45;
}

.page-download__button--android:hover,
.page-download__button--ios:hover,
.page-download__button--android-alt:hover,
.page-download__button--ios-alt:hover,
.page-download__button--primary:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

.page-download__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #FCBC44; /* Highlight secondary titles */
}

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

.page-download__why-app-section,
.page-download__download-guide-section,
.page-download__notes-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__call-to-action-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__feature-card,
.page-download__note-item,
.page-download__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-download__feature-title,
.page-download__note-title,
.page-download__security-title,
.page-download__platform-title {
    font-size: 1.6em;
    color: #FCBC45;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-download__image-container {
    margin-top: 50px;
    text-align: center;
}

.page-download__image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
}

.page-download__platform-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-download__platform-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__steps-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid #FCBC45;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-download__steps-list li strong {
    color: #FCBC45;
}

.page-download__faq-list {
    margin-top: 40px;
}

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FCBC45;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.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);
}

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

.page-download__call-to-action-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__platform-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-download__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-download__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-download__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-download__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-download__why-app-section,
    .page-download__download-guide-section,
    .page-download__notes-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__call-to-action-section {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    .page-download__features-grid,
    .page-download__notes-grid,
    .page-download__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-card,
    .page-download__note-item,
    .page-download__security-item,
    .page-download__platform-card {
        padding: 20px;
    }
    .page-download__feature-title,
    .page-download__note-title,
    .page-download__security-title,
    .page-download__platform-title {
        font-size: 1.4em;
    }
    .page-download__steps-list li {
        padding: 10px;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 15px 20px;
    }
    .page-download__image-container img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
    /* Ensure content area images don't cause horizontal scroll */
    .page-download__why-app-section img,
    .page-download__download-guide-section img,
    .page-download__notes-section img,
    .page-download__security-section img,
    .page-download__faq-section img {
        max-width: 100%;
        height: auto;
        width: auto; /* Allow width to adjust based on max-width */
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
}