/* style/download.css */

/* Base styles for the page content */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Light body background, so dark text */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css defines body */
}

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

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

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

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-download__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-download__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

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

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-download__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.page-download__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-download__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-download__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-download__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
}

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

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

.page-download__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-download__benefit-icon {
    width: 100%; /* Occupy card width */
    height: auto;
    max-width: 250px; /* Max width for icon-like appearance, but still >= 200px actual size */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.page-download__how-to-download-section .page-download__section-title,
.page-download__how-to-download-section .page-download__section-intro {
    color: #FFFFFF;
}

.page-download__download-steps {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.page-download__download-platform {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

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

.page-download__step-list a {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-download__step-list a:hover {
    color: #f0f0f0;
}

.page-download__btn-platform {
    width: 80%;
    margin-bottom: 20px;
}

.page-download__qr-code-wrapper {
    text-align: center;
    margin-top: 20px;
}

.page-download__qr-code {
    border: 5px solid #FFFFFF;
    border-radius: 5px;
    width: 250px; /* Display size */
    height: 250px; /* Display size */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.page-download__qr-text {
    font-size: 1.1em;
    color: #FFFFFF;
}

/* Requirements Section */
.page-download__requirements-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-download__requirement-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__requirement-card .page-download__card-title {
    color: #26A9E0;
    font-size: 1.6em;
    text-align: left;
    margin-bottom: 20px;
}

.page-download__requirement-list {
    list-style: disc;
    padding-left: 20px;
    color: #555555;
    font-size: 1em;
}

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

/* Security Section */
.page-download__security-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-intro {
    color: #FFFFFF;
}

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

.page-download__security-text {
    flex: 1;
    min-width: 300px;
}

.page-download__security-subtitle {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__security-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
}

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

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

/* Features Section */
.page-download__features-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

.page-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-download__feature-card .page-download__card-title {
    color: #26A9E0;
    font-size: 1.5em;
    text-align: left;
    margin-bottom: 15px;
}

.page-download__feature-card .page-download__card-text {
    color: #555555;
    font-size: 1em;
    margin-bottom: 20px;
}

.page-download__card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-download__card-link:hover {
    color: #1a8cc2;
    border-color: #1a8cc2;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.page-download__faq-section .page-download__section-title {
    color: #FFFFFF;
}

.page-download__faq-list {
    max-width: 800px;
    margin: 40px auto 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 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.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); /* Change + to X or - */
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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; /* Ensure it expands */
    padding: 15px 25px;
}

.page-download__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 3em;
    }
    .page-download__description {
        font-size: 1.2em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-download__security-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        height: auto;
        min-height: 600px;
        padding-bottom: 40px;
    }
    .page-download__main-title {
        font-size: 2.2em;
    }
    .page-download__description {
        font-size: 1em;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-intro {
        font-size: 0.95em;
    }
    .page-download__cta-group {
        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;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Videos responsiveness */
    .page-download video,
    .page-download__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__hero-video-wrapper {
        position: static;
        height: auto;
        min-height: 200px; /* Ensure video is visible */
    }
    .page-download__hero-video {
        position: static;
        transform: none;
    }

    /* Ensure containers for images/videos/buttons don't overflow */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__cta-group,
    .page-download__download-platform,
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }
    .page-download__download-steps {
        flex-direction: column;
        gap: 20px;
    }
    .page-download__download-platform {
        max-width: 100%;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 0 20px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 10px 20px;
    }
    .page-download__card-title {
        font-size: 1.3em;
    }
    .page-download__qr-code {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__hero-section {
        min-height: 500px;
    }
}

/* Image color filter restriction (MUST BE STRICTLY FOLLOWED) */
.page-download img {
    filter: none !important; /* Ensure no filter changes image color */
}

/* Content area image CSS dimensions lower bound (MUST BE STRICTLY FOLLOWED) */
/* Any img within .page-download must not have display dimensions smaller than 200px */
.page-download img:not(.page-download__hero-video) { /* Exclude hero video as it's full width */
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for smaller images that still meet >=200px requirement */
.page-download__benefit-icon {
    max-width: 250px; /* Ensure it's not too large but still >= 200px */
    height: auto;
}
.page-download__qr-code {
    width: 200px;
    height: 200px;
}