.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Use primary color for hero background */
    color: #FFFFFF;
}

.page-download__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.page-download__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-download__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-download__btn-primary:hover {
    background-color: #D46F00;
    border-color: #D46F00;
}

.page-download__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-download__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-download__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

.page-download__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-download__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
}

/* General section styling */
.page-download__intro-section,
.page-download__download-guide-section,
.page-download__features-section,
.page-download__promotions-section,
.page-download__faq-section,
.page-download__cta-final-section {
    padding: 80px 0;
}

.page-download__dark-section {
    background-color: #26A9E0; /* Primary color as background */
    color: #FFFFFF;
}

.page-download__section-title {
    font-size: 2.5rem;
    color: #FFFFFF; /* Default for dark sections */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-download__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Accent color */
    border-radius: 2px;
}

.page-download__intro-section .page-download__section-title,
.page-download__features-section .page-download__section-title,
.page-download__faq-section .page-download__section-title {
    color: #FFFFFF;
}

.page-download__download-guide-section .page-download__section-title,
.page-download__promotions-section .page-download__section-title,
.page-download__cta-final-section .page-download__section-title {
    color: #333333; /* Dark text for light background sections */
}
.page-download__download-guide-section,
.page-download__promotions-section,
.page-download__cta-final-section {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light background sections */
}

.page-download__text-block {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-download__sub-title,
.page-download__card-title,
.page-download__card-sub-title,
.page-download__feature-title,
.page-download__faq-title {
    font-size: 1.8rem;
    color: #FFFFFF; /* Default for dark sections */
    margin-bottom: 20px;
    text-align: center;
}

.page-download__download-guide-section .page-download__sub-title,
.page-download__download-guide-section .page-download__card-title,
.page-download__download-guide-section .page-download__card-sub-title,
.page-download__promotions-section .page-download__card-title,
.page-download__cta-final-section .page-download__sub-title {
    color: #26A9E0; /* Primary color for titles in light sections */
}

.page-download__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.page-download__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
}

.page-download__list-item::before {
    content: '✓';
    color: #EA7C07;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
}

/* Platform Cards */
.page-download__platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-download__card {
    background-color: #F8F8F8; /* Light background for cards in light sections */
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block; /* Ensure it behaves as a block element */
    object-fit: contain; /* Prevent stretching */
}

.page-download__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
}

.page-download__card .page-download__list {
    text-align: left;
    max-width: none;
    margin-bottom: 20px;
}

.page-download__card .page-download__list-item {
    background-color: transparent;
    padding: 5px 0;
    margin-bottom: 5px;
    color: #333333;
}

.page-download__card .page-download__list-item::before {
    color: #26A9E0;
}

.page-download__btn-full-width {
    width: 100%;
    margin-top: auto; /* Push button to bottom of card */
}

.page-download__pc-access {
    background-color: #F8F8F8;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-download__pc-access .page-download__list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.page-download__pc-access .page-download__list-item {
    background-color: transparent;
    padding: 5px 0;
    margin-bottom: 5px;
    color: #333333;
}

.page-download__pc-access .page-download__list-item::before {
    color: #26A9E0;
}

/* Features Section */
.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-download__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: contain;
}

.page-download__feature-item .page-download__feature-title {
    color: #FFFFFF;
    font-size: 1.5rem;
}

.page-download__feature-description {
    font-size: 1rem;
    color: #F0F0F0;
    text-align: center;
}

/* Promotions Section */
.page-download__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-download__promotions-section .page-download__card {
    background-color: #F8F8F8;
    color: #333333;
}

.page-download__promotions-section .page-download__card-title {
    color: #26A9E0;
}

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

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
    margin: 0;
    font-size: 1.2rem;
    color: #FFFFFF;
    text-align: left;
}

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

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(45deg);
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #F0F0F0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-download__faq-text {
    margin: 0;
    font-size: 1rem;
}

/* Final CTA Section */
.page-download__cta-final-section {
    background-color: #F8F8F8;
    color: #333333;
    text-align: center;
}

.page-download__cta-final-section .page-download__section-title {
    color: #26A9E0;
}

.page-download__cta-final-section .page-download__text-block {
    color: #555555;
}

.page-download__cta-buttons--final {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3rem;
    }
    .page-download__section-title {
        font-size: 2.2rem;
    }
    .page-download__sub-title,
    .page-download__card-title,
    .page-download__feature-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-download__hero-title {
        font-size: 2.5rem;
    }

    .page-download__hero-description {
        font-size: 1.1rem;
    }

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

    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__btn-large {
        padding: 15px 25px;
        font-size: 1.1rem;
    }

    .page-download__intro-section,
    .page-download__download-guide-section,
    .page-download__features-section,
    .page-download__promotions-section,
    .page-download__faq-section,
    .page-download__cta-final-section {
        padding: 40px 0;
    }

    .page-download__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-download__sub-title,
    .page-download__card-title,
    .page-download__feature-title,
    .page-download__faq-title {
        font-size: 1.4rem;
    }

    .page-download__text-block {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-download__list-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-download__platform-cards,
    .page-download__features-grid,
    .page-download__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-download__card,
    .page-download__feature-item,
    .page-download__pc-access {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__card-image,
    .page-download__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-download__faq-question {
        padding: 15px 20px;
    }

    .page-download__faq-title {
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 2rem;
    }
    .page-download__section-title {
        font-size: 1.6rem;
    }
}