/* style/download.css */

/* Base styles for the download page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default page background */
}

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

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

.page-download__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-download__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__description--light {
    color: #ffffff;
}

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

.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;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-download__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* Light background buttons for dark sections */
.page-download__btn-primary--light {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-download__btn-primary--light:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #f0f8ff;
}

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

.page-download__btn-secondary--light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Hero Section */
.page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    text-align: center;
}

.page-download__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #26A9E0;
    line-height: 1.2;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

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

.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: #f0f8ff; /* Light blue background for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333;
}

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

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

.page-download__guide-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center;
}

.page-download__guide-block {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-download__guide-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
}

.page-download__guide-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    color: #333333;
    font-size: 1.05em;
}

.page-download__link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-download__link:hover {
    color: #1e87c0;
}

.page-download__qr-codes {
    text-align: center;
    margin-top: 50px;
}

.page-download__qr-image {
    max-width: 100%;
    height: auto;
    border: 5px solid #26A9E0;
    border-radius: 10px;
    display: block;
    margin: 0 auto 20px auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-download__qr-text {
    font-size: 1.2em;
    color: #555555;
    font-weight: bold;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
}

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

.page-download__feature-card {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333;
}

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

.page-download__features-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Security Section */
.page-download__security-section {
    padding: 60px 0;
}

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

.page-download__security-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333;
}

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

.page-download__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

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

.page-download__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #26A9E0;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    list-style: none; /* For details/summary */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-download__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-download__faq-answer {
    padding: 20px;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

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

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-download__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.5em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__benefit-title,
    .page-download__guide-subtitle,
    .page-download__feature-title,
    .page-download__security-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-download__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
    }

    /* All sections and containers for mobile overflow */
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__features-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-final-section,
    .page-download__benefits-grid,
    .page-download__guide-content,
    .page-download__features-grid,
    .page-download__security-content,
    .page-download__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-download__main-title {
        font-size: 2em;
    }

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

    .page-download__description {
        font-size: 1em;
    }

    /* Buttons responsiveness */
    .page-download__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        width: 100% !important;
        padding: 0 15px;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-download__guide-content {
        flex-direction: column;
    }
    .page-download__guide-block {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.6em;
    }
    .page-download__benefits-grid,
    .page-download__features-grid,
    .page-download__security-content {
        grid-template-columns: 1fr;
    }
}