/* style/download.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-dark: #000000;
    --background-light: #f8f9fa;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is #000000 (dark), so text must be light */
    background-color: var(--background-dark);
}

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

.page-download__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-download__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-download__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
}

.page-download__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    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, 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: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

.page-download__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-download__hero-image-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 80px 0;
}

.page-download__benefits-section .page-download__section-title,
.page-download__benefits-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-download__card-icon {
    width: 200px; /* Min size */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-download__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-download__card-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Guide Section */
.page-download__guide-section {
    padding: 80px 0;
}

.page-download__guide-section .page-download__section-title,
.page-download__guide-section .page-download__section-description {
    color: var(--text-light);
}

.page-download__guide-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.page-download__guide-item {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

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

.page-download__step-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--secondary-color);
    position: relative;
    padding-left: 30px;
}

.page-download__step-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    font-weight: bold;
}

.page-download__step-list li:nth-child(1)::before { content: '1'; }
.page-download__step-list li:nth-child(2)::before { content: '2'; }
.page-download__step-list li:nth-child(3)::before { content: '3'; }
.page-download__step-list li:nth-child(4)::before { content: '4'; }
.page-download__step-list li:nth-child(5)::before { content: '5'; }

.page-download__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__cta-single {
    text-align: center;
    margin-top: 50px;
}

/* Troubleshooting Section */
.page-download__troubleshooting-section {
    padding: 80px 0;
}

.page-download__troubleshooting-section .page-download__section-title,
.page-download__troubleshooting-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__troubleshooting-grid .page-download__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__troubleshooting-grid .page-download__card-title {
    color: var(--primary-color);
}

/* After Download Section */
.page-download__after-download-section {
    padding: 80px 0;
}

.page-download__after-download-section .page-download__section-title,
.page-download__after-download-section .page-download__section-description {
    color: var(--text-light);
}

.page-download__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-download__text-content {
    color: var(--secondary-color);
}

.page-download__text-content .page-download__step-list li {
    color: var(--secondary-color);
}

.page-download__cta-buttons--inline {
    justify-content: flex-start;
    margin-top: 30px;
    margin-bottom: 0;
}

.page-download__image-content {
    text-align: center;
}

.page-download__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-download__faq-section .page-download__section-title,
.page-download__faq-section .page-download__section-description {
    color: var(--text-dark);
}

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

.page-download__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: var(--background-light);
}

.page-download__faq-title {
    margin: 0;
    color: var(--text-dark);
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-download__faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Conclusion Section */
.page-download__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-download__conclusion-section .page-download__section-title,
.page-download__conclusion-section .page-download__section-description {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__guide-steps,
    .page-download__content-grid {
        grid-template-columns: 1fr;
    }
    .page-download__cta-buttons--inline {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .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: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__container,
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__troubleshooting-section,
    .page-download__after-download-section,
    .page-download__faq-section,
    .page-download__conclusion-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.95em;
    }
    .page-download__benefits-grid,
    .page-download__troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    .page-download__card {
        padding: 20px;
    }
    .page-download__card-icon {
        width: 150px;
        height: 100px;
    }
    .page-download__card-title {
        font-size: 1.3em;
    }
    .page-download__guide-item {
        padding: 20px;
    }
    .page-download__guide-subtitle {
        font-size: 1.5em;
    }
    .page-download__step-list li {
        font-size: 1em;
    }
    .page-download__hero-image,
    .page-download__guide-image,
    .page-download__content-image,
    .page-download img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__hero-image-wrapper,
    .page-download__guide-item,
    .page-download__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-download__cta-buttons--inline {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__card-title {
        font-size: 1.2em;
    }
    .page-download__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-download__faq-answer {
        padding: 10px 15px 15px;
    }
}