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

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Gold to Dark Red Gradient */
    color: #ffffff;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px; /* Minimum height for the hero section */
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay */
    z-index: 1;
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White text for better contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    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;
    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 not too small */
    text-align: center;
}

.page-download__button--primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red */
    border: 2px solid #FFD700;
}

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

.page-download__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold */
    border: 2px solid #FFD700;
}

.page-download__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-download__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark Red */
    text-align: center;
    margin-bottom: 50px;
    padding-top: 60px;
}

.page-download__intro-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

/* Why App Section */
.page-download__why-app-section {
    background-color: #f8f8f8;
    padding: 80px 0;
}

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

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

.page-download__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-download__feature-icon {
    width: 250px; /* Minimum width for content images */
    height: 187px; /* Corresponding height for 4:3 aspect ratio example */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-download__feature-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-download__feature-text {
    font-size: 1em;
    color: #666666;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
}

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

.page-download__step-item {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-download__step-title {
    font-size: 1.8em;
    color: #8B0000; /* Dark Red */
    margin-bottom: 25px;
    text-align: center;
}

.page-download__step-item ol {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-download__step-item ol li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

.page-download__step-item ol li strong {
    color: #333333;
}

.page-download__button--install {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
    width: 100%;
    margin-top: 20px;
}

.page-download__button--install:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Pre-Installation Section */
.page-download__pre-install-section {
    background-color: #f8f8f8;
    padding: 80px 0;
}

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

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

.page-download__note-title {
    font-size: 1.6em;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-download__note-text {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
}

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

.page-download__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    background-color: #fff;
    color: #8B0000; /* Dark Red */
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: 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;
    min-height: 50px; /* Ensure button is not too small */
}

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

.page-download__faq-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-download__faq-question.active .page-download__faq-icon {
    transform: rotate(45deg);
}

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

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

.page-download__faq-answer.open {
    max-height: 500px; /* Adjust as needed for content */
    padding: 0 25px 20px;
}

/* Call to Action Section */
.page-download__cta-section {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-download__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold */
}

.page-download__cta-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 0;
        min-height: 450px;
    }
    .page-download__hero-title {
        font-size: 2.5em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__download-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-download__button {
        width: 80%;
        max-width: 300px;
    }
    .page-download__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-download__intro-text {
        margin-bottom: 30px;
    }
    .page-download__features-grid, .page-download__download-steps, .page-download__notes-grid {
        grid-template-columns: 1fr;
    }
    .page-download__feature-icon {
        width: 250px;
        height: 187px;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer p {
        padding: 15px 0;
    }
    .page-download__cta-title {
        font-size: 2em;
    }
    .page-download__cta-text {
        font-size: 1em;
    }

    /* Prevent content area images from overflowing on mobile */
    .page-download img {
        max-width: 100%;
        height: auto;
    }
    .page-download__feature-icon, .page-download__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 2em;
    }
    .page-download__button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__feature-icon {
        width: 200px; /* Ensure minimum size */
        height: 150px;
    }
    .page-download__cta-title {
        font-size: 1.8em;
    }
}