/* style/download.css */
.page-download {
    color: #ffffff; /* Body background is #0a0a0a (dark), so use light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-download__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-download__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for title */
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
}

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

.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.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-download__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-download__btn-primary:hover {
    background-color: #1e87c0;
    transform: translateY(-2px);
}

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

.page-download__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    overflow: hidden;
}

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

.page-download__benefits-section,
.page-download__games-section,
.page-download__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text on light background */
}

.page-download__guide-section,
.page-download__security-section,
.page-download__cta-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text on dark background */
}

.page-download__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

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

.page-download__benefit-card {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-download__benefit-card:hover {
    transform: translateY(-5px);
}

.page-download__benefit-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-download__benefit-text {
    font-size: 1em;
    color: #555555;
}

.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.page-download__guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__guide-subtitle {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 25px;
}

.page-download__guide-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto 30px auto;
    counter-reset: step-counter;
}

.page-download__guide-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-download__guide-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #26A9E0;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

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

.page-download__guide-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

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

.page-download__game-card {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-download__game-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-download__game-text {
    font-size: 0.95em;
    color: #555555;
}

.page-download__games-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    border-radius: 10px;
    margin: 60px auto 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-download__security-list {
    list-style-type: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0 auto;
    color: #f0f0f0;
}

.page-download__security-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-download__security-list li strong {
    color: #26A9E0;
}

.page-download__security-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    border-radius: 10px;
    margin: 60px auto 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-download__faq-item {
    background-color: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
}

.page-download__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    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: #555555;
}

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

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

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

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__hero-section {
        padding-bottom: 60px;
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__download-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: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-download__benefits-section,
    .page-download__games-section,
    .page-download__faq-section,
    .page-download__guide-section,
    .page-download__security-section,
    .page-download__cta-section {
        padding: 60px 0;
    }
    .page-download__benefit-card,
    .page-download__game-card {
        padding: 20px;
    }
    .page-download__guide-subtitle {
        font-size: 1.6em;
    }
    .page-download__guide-list li {
        font-size: 1em;
    }
    .page-download__faq-question {
        padding: 15px 20px;
    }
    .page-download__faq-title {
        font-size: 1.1em;
    }
    .page-download__faq-answer {
        padding: 0 20px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure images are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers are responsive and prevent overflow */
    .page-download__container,
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__games-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-section,
    .page-download__download-buttons,
    .page-download__benefits-grid,
    .page-download__guide-steps,
    .page-download__guide-item,
    .page-download__games-grid,
    .page-download__game-card,
    .page-download__security-list,
    .page-download__faq-list,
    .page-download__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for container to allow internal padding */
    .page-download__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Reset padding for sections to avoid double padding if container also has it */
    .page-download__benefits-section,
    .page-download__games-section,
    .page-download__faq-section,
    .page-download__guide-section,
    .page-download__security-section,
    .page-download__cta-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    /* Padding for hero section top */
    .page-download__hero-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}