.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background will be handled by sections */
}

/* Header offset for main content */
.page-download__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-download__dark-section {
    background-color: #017439; /* Brand main color for dark sections */
    color: #ffffff;
}

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

.page-download__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark sections, will be overridden for light sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for descriptions */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
    background-color: #0a0a0a; /* Dark background for hero */
    background-image: url('[GALLERY:bg_hero:1920x1080:789b_com,dark_abstract,gaming_background]');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-download__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-download__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for main title */
}

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

.page-download__download-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.page-download__qr-codes {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.page-download__qr-item {
    text-align: center;
    color: #ffffff;
}

.page-download__qr-item img {
    border: 5px solid #017439;
    border-radius: 10px;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.page-download__hero-image {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-download__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background-color: #C30808; /* Custom color for register/login/download */
    color: #FFFF00; /* Custom font color for register/login/download */
    border: 2px solid #C30808;
}

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

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

.page-download__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Features Section */
.page-download__features-section {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-download__features-section .page-download__section-title {
    color: #017439; /* Brand main color for titles on light background */
}

.page-download__features-section .page-download__section-description {
    color: #555555;
}

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

.page-download__feature-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Added border for better contrast on light background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-download__feature-card:hover {
    transform: translateY(-10px);
}

.page-download__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

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

/* Guide Section */
.page-download__guide-section {
    padding: 60px 0;
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}

.page-download__guide-section .page-download__section-title {
    color: #ffffff;
}

.page-download__guide-section .page-download__section-description {
    color: #f0f0f0;
}

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

.page-download__guide-platform {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
}

.page-download__guide-subtitle {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 20px;
    text-align: center;
}

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

.page-download__guide-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-download__guide-list li p {
    color: #ffffff;
    font-size: 1.05em;
    text-align: left;
}

.page-download__guide-list li strong {
    color: #FFFF00;
}

.page-download__guide-platform img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-download__faq-section .page-download__section-title {
    color: #017439;
}

.page-download__faq-section .page-download__section-description {
    color: #555555;
}

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

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-question h3 {
    margin: 0;
    color: #017439;
    font-size: 1.1em;
}

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

.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;
    background-color: #ffffff;
    color: #555555;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

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

/* CTA Section */
.page-download__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a; /* Dark background */
    background-image: url('[GALLERY:bg_cta:1920x1080:789b_com,abstract_pattern,dark_gaming_cta]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.page-download__cta-section .page-download__section-title {
    color: #FFFF00;
}

.page-download__cta-section .page-download__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.8em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__hero-section .page-download__container {
        flex-direction: column;
        text-align: center;
    }
    .page-download__hero-content {
        text-align: center;
    }
    .page-download__download-buttons,
    .page-download__qr-codes {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-download__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__section-description {
        font-size: 0.95em;
    }
    .page-download__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}
}