/* style/download.css */
.page-download {
    color: #333333; /* Default text color for light backgrounds */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-download__hero-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
}

.page-download__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    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;
}

.page-download__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    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;
}

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

/* General Section Styling */
.page-download__section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
}

.page-download__light-bg {
    background-color: #f0f2f5;
    color: #333333;
    padding: 60px 20px;
}

.page-download__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 20px;
}

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

/* Feature Grid */
.page-download__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.page-download__dark-section .page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-download__dark-section .page-download__card-title {
    color: #ffffff;
}

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

.page-download__dark-section .page-download__card-text {
    color: #f0f0f0;
}

.page-download__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Download Steps Section */
.page-download__download-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-download__download-platform {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__platform-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-download__step-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    position: relative;
    padding-left: 30px;
}

.page-download__step-list li::before {
    content: attr(data-step-number);
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
    font-weight: bold;
}

.page-download__qr-code {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    border: 5px solid #ffffff;
    border-radius: 5px;
}

.page-download__btn-download {
    margin-top: 15px;
}

.page-download__important-notes {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__notes-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.page-download__notes-list {
    list-style: disc;
    padding-left: 25px;
    font-size: 1em;
}

.page-download__notes-list li {
    margin-bottom: 10px;
}

/* Card Image */
.page-download__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-download__faq-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 20px;
}

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

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

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

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

.page-download__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-download__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Conclusion Section */
.page-download__conclusion-section {
    background-color: #f0f2f5;
    color: #333333;
    padding: 60px 20px;
    text-align: center;
}

.page-download__conclusion-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

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

    .page-download__hero-description {
        font-size: 1em;
    }

    .page-download__section-title {
        font-size: 1.8em;
    }

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

    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download a[class*="button"],
    .page-download a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-download__cta-buttons,
    .page-download__button-group,
    .page-download__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-download__hero-section,
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__features-section,
    .page-download__faq-section,
    .page-download__conclusion-section {
        padding: 40px 15px;
    }

    .page-download__container {
        padding: 0 15px;
    }

    .page-download__feature-card,
    .page-download__download-platform,
    .page-download__important-notes {
        padding: 20px;
    }

    .page-download__qr-code {
        max-width: 150px;
    }

    .page-download img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__download-platform,
    .page-download__important-notes,
    .page-download__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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