/* style/download.css */

/* General page styling */
.page-download {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background */
    line-height: 1.6;
    background-color: #1a1a1a; /* Assuming body background is handled by shared, but setting here for consistency */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    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: #FFC107; /* Auxiliary color */
    border-radius: 2px;
}

.page-download__description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background-color: #007BFF; /* Primary color */
    color: #ffffff;
    border: 2px solid #007BFF;
}

.page-download__btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-download__btn-secondary {
    background-color: transparent;
    color: #FFC107; /* Auxiliary color */
    border: 2px solid #FFC107;
}

.page-download__btn-secondary:hover {
    background-color: #FFC107;
    color: #1a1a1a; /* Dark text for light background */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.page-download__btn-full-width {
    width: 100%;
    display: block;
    margin-top: 20px;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #007BFF, #0056b3); /* Primary color gradient */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
}

.page-download__hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    padding-left: 20px;
}

.page-download__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

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

.page-download__hero-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
    padding-right: 20px;
}

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

/* Why Download Section */
.page-download__why-download-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0;
}

.page-download__dark-section {
    background-color: #0d0d0d; /* Slightly darker than body for contrast */
    color: #ffffff;
}

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

.page-download__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card on dark bg */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
}

.page-download__feature-item img {
    width: 200px; /* Minimum size */
    height: 200px; /* Minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Enhance visibility on dark background, but not change color */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFC107; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 16px;
    color: #cccccc;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-download__download-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.page-download__guide-platform {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__guide-title {
    font-size: 28px;
    font-weight: bold;
    color: #007BFF; /* Primary color */
    margin-bottom: 30px;
    text-align: center;
}

.page-download__qr-code-box {
    margin-bottom: 30px;
    border: 5px solid #FFC107; /* Auxiliary color border */
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff; /* White background for QR code */
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.page-download__qr-code-box img {
    width: 300px;
    height: 300px;
    display: block;
    object-fit: contain;
}

.page-download__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
    counter-reset: step-counter;
}

.page-download__steps-list li {
    font-size: 17px;
    color: #cccccc;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.page-download__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #007BFF;
    color: #ffffff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.page-download__security-note {
    font-size: 17px;
    color: #FFC107; /* Auxiliary color */
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 5px solid #FFC107;
    border-radius: 8px;
}

/* App Features Section */
.page-download__app-features-section {
    padding: 80px 0;
    background-color: #007BFF; /* Primary color background */
    color: #ffffff;
}

.page-download__dark-bg {
    background-color: #007BFF;
    color: #ffffff;
}

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

.page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-download__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-download__feature-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFC107; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-download__feature-card p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Security Section */
.page-download__security-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-download__security-text {
    flex: 1;
}

.page-download__security-text p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #cccccc;
}

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

.page-download__security-list li {
    font-size: 17px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #e0e0e0;
}

.page-download__security-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC107; /* Auxiliary color */
}

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

.page-download__security-image {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

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

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background for FAQ */
    color: #ffffff;
}

.page-download__faq-list {
    margin-top: 50px;
}

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08); /* Light background for item on dark section */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

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

.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-download__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFC107; /* Auxiliary color */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: #007BFF; /* Primary color when active */
    transform: rotate(45deg); /* Example: Rotate for '-' sign */
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
    color: #cccccc;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #cccccc;
}

/* CTA Section */
.page-download__cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #007BFF, #FFC107); /* Gradient background */
    color: #ffffff;
    text-align: center;
}

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

.page-download__cta-section .page-download__description {
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 30px;
    }

    .page-download__hero-content {
        padding-left: 0;
        text-align: center;
        max-width: 100%;
    }

    .page-download__main-title {
        font-size: 40px;
    }

    .page-download__hero-description {
        font-size: 18px;
    }

    .page-download__download-buttons {
        justify-content: center;
    }

    .page-download__hero-image {
        padding-right: 0;
        max-width: 80%;
    }

    .page-download__download-guide {
        grid-template-columns: 1fr;
    }

    .page-download__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-download__security-image {
        max-width: 80%;
    }

    .page-download__features-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-download__feature-card img {
        
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-download__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .page-download__section-title::after {
        width: 60px;
        height: 3px;
    }

    .page-download__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* Buttons */
    .page-download__btn-primary,
    .page-download__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__download-buttons,
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-download__cta-section .page-download__cta-buttons {
        padding-left: 0;
        padding-right: 0;
    }


    /* Hero Section */
    .page-download__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

    .page-download__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-download__hero-image {
        max-width: 90%;
    }

    /* Why Download Section */
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__app-features-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-section {
        padding: 40px 0;
    }

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

    .page-download__feature-item {
        padding: 25px;
    }

    .page-download__feature-item img {
        width: 200px !important;
        height: 200px !important;
        margin-bottom: 15px;
    }

    .page-download__feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-download__feature-description {
        font-size: 15px;
    }

    /* How to Download Section */
    .page-download__download-guide {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .page-download__guide-platform {
        padding: 30px;
    }

    .page-download__guide-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-download__qr-code-box {
        margin-bottom: 20px;
        padding: 5px;
    }

    .page-download__qr-code-box img {
        width: 250px;
        height: 250px;
    }

    .page-download__steps-list li {
        font-size: 15px;
        margin-bottom: 10px;
        padding-left: 25px;
    }

    .page-download__steps-list li::before {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .page-download__security-note {
        font-size: 15px;
        margin-top: 30px;
        padding: 15px;
    }

    /* App Features Section */
    .page-download__app-features-section .page-download__section-title {
        font-size: 28px;
    }

    .page-download__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-download__feature-card {
        padding: 25px;
    }

    .page-download__feature-card img {
        
        margin-bottom: 15px;
    }

    .page-download__feature-card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-download__feature-card p {
        font-size: 15px;
    }

    /* Security Section */
    .page-download__security-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .page-download__security-text p,
    .page-download__security-list li {
        font-size: 15px;
    }

    .page-download__security-image {
        max-width: 90%;
    }

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

    .page-download__faq-list {
        margin-top: 30px;
    }

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

    .page-download__faq-question h3 {
        font-size: 16px;
    }

    .page-download__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 15px;
    }

    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px 20px !important;
    }

    .page-download__faq-answer p {
        font-size: 15px;
    }

    /* CTA Section */
    .page-download__cta-section {
        padding: 40px 0;
    }
    
    /* Global image responsive rules */
    .page-download img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Containers for images and other content */
    .page-download__hero-section,
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__app-features-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-section,
    .page-download__container,
    .page-download__feature-item,
    .page-download__guide-platform,
    .page-download__feature-card,
    .page-download__security-text,
    .page-download__security-image,
    .page-download__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}