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

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

.page-download__section {
    padding: 60px 0;
    text-align: center;
}

.page-download__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 40px;
    text-align: center;
}

.page-download p {
    font-size: 17px;
    margin-bottom: 20px;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding if body padding-top is handled by shared.css */
}

.page-download__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 810px; /* Fixed height for hero image */
    overflow: hidden;
}

.page-download__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if necessary */
    display: block;
}

.page-download__hero-content {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    color: #ffffff;
    padding: 60px 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    position: absolute; /* Position relative to hero-section */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    box-sizing: border-box;
}

.page-download__main-title {
    font-size: clamp(32px, 4.5vw, 48px); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-download__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.5;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    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: 600;
    font-size: 18px;
    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;
    word-wrap: break-word;
}

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

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

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

.page-download__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb3;
    border-color: #f0f0f0;
}

/* Why Download Section */
.page-download__why-download {
    background-color: #ffffff;
}

.page-download__why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-download__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

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

.page-download__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-download__card p {
    font-size: 16px;
    flex-grow: 1; /* Make paragraph grow to fill space */
}

/* How to Download Section */
.page-download__how-to-download {
    background-color: #f0f7fa;
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-download__step {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-download__step-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.page-download__step ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 25px;
    color: #555555;
}

.page-download__step ol li {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-download__btn-small {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: auto; /* Push button to the bottom */
}

.page-download__note {
    margin-top: 40px;
    font-style: italic;
    color: #666666;
    font-size: 15px;
}

/* App Features Section */
.page-download__app-features {
    background-color: #ffffff;
}

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

.page-download__feature-item {
    text-align: center;
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-download__feature-icon {
    width: 100px; /* Fixed size for feature icons */
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-download__feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-download__feature-item p {
    font-size: 15px;
    color: #666666;
    flex-grow: 1;
}

/* Security and Trust Section */
.page-download__security-trust {
    background-color: #e6f5ff; /* Lighter shade of brand color */
    color: #333333;
}

.page-download__security-trust .page-download__section-title {
    color: #000000;
}

.page-download__security-trust p {
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-download__security-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.page-download__security-list li {
    font-size: 17px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #333333;
}

.page-download__list-icon {
    color: #26A9E0;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Supported Devices Section */
.page-download__supported-devices {
    background-color: #ffffff;
}

.page-download__device-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-download__device-type {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 45%;
    max-width: 450px;
    text-align: center;
}

.page-download__device-title {
    font-size: 26px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-download__device-type p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-download__device-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* FAQ Section */
.page-download__faq-section {
    background-color: #f0f7fa;
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    text-align: left;
}
details.page-download__faq-item summary.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
    display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
    background: #f5f5f5;
}
.page-download__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}
.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}
.page-download__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-download__cta-final {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

.page-download__cta-final .page-download__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-download__cta-final p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-download__cta-final .page-download__cta-buttons {
    justify-content: center;
}

.page-download__btn-large {
    padding: 18px 35px;
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__container {
        padding: 0 15px;
    }

    .page-download__section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .page-download p {
        font-size: 16px;
    }

    /* Hero Section Mobile */
    .page-download__hero-section {
        padding-top: 0;
    }
    .page-download__hero-image-wrapper {
        height: 600px; /* Adjust height for tablets */
    }
    .page-download__hero-content {
        padding: 40px 15px;
    }
    .page-download__main-title {
        font-size: clamp(28px, 4vw, 40px);
    }
    .page-download__description {
        font-size: 16px;
    }
    .page-download__cta-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .page-download__why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-download__download-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-download__step-title {
        font-size: 24px;
    }

    .page-download__features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-download__device-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .page-download__device-type {
        width: 80%;
        max-width: 500px;
    }

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

@media (max-width: 768px) {
    /* General mobile styles */
    .page-download__section {
        padding: 40px 0;
    }

    .page-download__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

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

    /* Hero Section Mobile */
    .page-download__hero-section {
        padding-top: 0;
    }
    .page-download__hero-image-wrapper {
        height: 400px !important;
    }
    .page-download__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    .page-download__hero-content {
        padding: 30px 15px;
        text-align: center;
        position: static;
        transform: none;
        background: #26A9E0;
        width: 100%;
        box-sizing: border-box;
    }
    .page-download__main-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 15px;
    }
    .page-download__description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Why Download Section Mobile */
    .page-download__why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__card {
        padding: 20px;
    }
    .page-download__card-image {
        height: 180px;
    }
    .page-download__card-title {
        font-size: 20px;
    }
    .page-download__card p {
        font-size: 14px;
    }

    /* How to Download Section Mobile */
    .page-download__download-steps {
        gap: 25px;
    }
    .page-download__step {
        padding: 25px;
    }
    .page-download__step-title {
        font-size: 22px;
    }
    .page-download__step ol li {
        font-size: 14px;
    }
    .page-download__btn-small {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
    }
    .page-download__note {
        margin-top: 30px;
        font-size: 13px;
    }

    /* App Features Section Mobile */
    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-item {
        padding: 20px;
    }
    .page-download__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    .page-download__feature-title {
        font-size: 18px;
    }
    .page-download__feature-item p {
        font-size: 13px;
    }

    /* Security and Trust Section Mobile */
    .page-download__security-trust p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .page-download__security-list li {
        font-size: 14px;
    }
    .page-download__list-icon {
        font-size: 18px;
    }

    /* Supported Devices Section Mobile */
    .page-download__device-info {
        gap: 20px;
    }
    .page-download__device-type {
        width: 95%;
        padding: 25px;
    }
    .page-download__device-title {
        font-size: 22px;
    }
    .page-download__device-type p {
        font-size: 14px;
    }

    /* FAQ Section Mobile */
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 15px;
    }
}