/* style/download.css */
/* Base styles for the download page */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f9f9f9;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #0A2463, #E0B14B);
    color: #ffffff; /* Light text for dark background */
    overflow: hidden; /* Prevent content overflow */
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width in hero for better composition */
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-download__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.page-download__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #E0B14B;
    color: #0A2463;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 220px; /* Ensure buttons are large enough */
    border: 2px solid transparent;
}

.page-download__cta-button:hover {
    background: #f0c268;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #0A2463;
}

.page-download__cta-button--promo {
    background: #0A2463;
    color: #E0B14B;
    border-color: #E0B14B;
}

.page-download__cta-button--promo:hover {
    background: #1a3c7c;
    border-color: #f0c268;
}

.page-download__button-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-download__button-icon--android {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230A2463"><path d="M7 10v1.5c0 .825.675 1.5 1.5 1.5h7c.825 0 1.5-.675 1.5-1.5V10h-10zm11.5 0h-13c-1.375 0-2.5 1.125-2.5 2.5v7c0 1.375 1.125 2.5 2.5 2.5h13c1.375 0 2.5-1.125 2.5-2.5v-7c0-1.375-1.125-2.5-2.5-2.5zm-5.5 0v-2.5h-3v2.5h3zm-3-4.5v-2.5h3v2.5h-3zm-3-4.5v-2.5h3v2.5h-3z"/></svg>');
}

.page-download__cta-button--promo .page-download__button-icon--android {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E0B14B"><path d="M7 10v1.5c0 .825.675 1.5 1.5 1.5h7c.825 0 1.5-.675 1.5-1.5V10h-10zm11.5 0h-13c-1.375 0-2.5 1.125-2.5 2.5v7c0 1.375 1.125 2.5 2.5 2.5h13c1.375 0 2.5-1.125 2.5-2.5v-7c0-1.375-1.125-2.5-2.5-2.5zm-5.5 0v-2.5h-3v2.5h3zm-3-4.5v-2.5h3v2.5h-3zm-3-4.5v-2.5h3v2.5h-3z"/></svg>');
}


.page-download__button-icon--ios {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230A2463"><path d="M12 0c-3.132 0-5.674 2.542-5.674 5.674 0 2.376 1.488 4.416 3.553 5.161-1.076.62-1.85 1.762-1.85 3.093 0 2.062 1.672 3.734 3.734 3.734 2.062 0 3.734-1.672 3.734-3.734 0-1.331-.774-2.473-1.85-3.093 2.065-.745 3.553-2.785 3.553-5.161c0-3.132-2.542-5.674-5.674-5.674zm0 2c2.039 0 3.674 1.635 3.674 3.674s-1.635 3.674-3.674 3.674-3.674-1.635-3.674-3.674 1.635-3.674 3.674-3.674zM12 12.5c-2.062 0-3.734 1.672-3.734 3.734s1.672 3.734 3.734 3.734 3.734-1.672 3.734-3.734-1.672-3.734-3.734-3.734z"/></svg>');
}

.page-download__cta-button--promo .page-download__button-icon--ios {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E0B14B"><path d="M12 0c-3.132 0-5.674 2.542-5.674 5.674 0 2.376 1.488 4.416 3.553 5.161-1.076.62-1.85 1.762-1.85 3.093 0 2.062 1.672 3.734 3.734 3.734 2.062 0 3.734-1.672 3.734-3.734 0-1.331-.774-2.473-1.85-3.093 2.065-.745 3.553-2.785 3.553-5.161c0-3.132-2.542-5.674-5.674-5.674zm0 2c2.039 0 3.674 1.635 3.674 3.674s-1.635 3.674-3.674 3.674-3.674-1.635-3.674-3.674 1.635-3.674 3.674-3.674zM12 12.5c-2.062 0-3.734 1.672-3.734 3.734s1.672 3.734 3.734 3.734 3.734-1.672 3.734-3.734-1.672-3.734-3.734-3.734z"/></svg>');
}

.page-download__promo-text {
    font-size: 16px;
    margin-top: 20px;
    color: #f0f0f0;
}

/* General Section Styling */
.page-download__section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-download__section:nth-of-type(even) {
    background-color: #f0f4f7; /* Slightly different background for visual separation */
}

.page-download__section-title {
    font-size: 38px;
    margin-bottom: 20px;
    color: #0A2463;
    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: #E0B14B;
    border-radius: 2px;
}

.page-download__section-description {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-download__section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-download__feature-item {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-download__feature-title {
    font-size: 22px;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-download__feature-text {
    font-size: 16px;
    color: #666666;
}

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

.page-download__download-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    text-align: left;
}

.page-download__step-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__step-title {
    font-size: 26px;
    color: #0A2463;
    margin-bottom: 25px;
    text-align: center;
}

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

.page-download__step-item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444444;
}

.page-download__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #E0B14B;
    color: #0A2463;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.page-download__qr-code-wrapper {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.page-download__qr-code-image {
    max-width: 250px; /* Adjust max-width for QR codes */
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-download__cta-button--small {
    padding: 10px 20px;
    font-size: 16px;
    min-width: unset;
    width: auto;
}

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

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

.page-download__benefit-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__benefit-title {
    font-size: 22px;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-download__benefit-text {
    font-size: 16px;
    color: #666666;
}


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

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

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

.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 20px;
    opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1; /* Ensure question is above answer transition */
}

.page-download__faq-item.active .page-download__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #E0B14B;
}

.page-download__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-download__faq-question:active {
    background: #eeeeee;
}

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

.page-download__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #E0B14B;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #E0B14B;
    background-color: #fcfcfc;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: #0A2463;
    transform: rotate(45deg); /* Rotate for minus sign effect */
    border-color: #0A2463;
}

.page-download__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin: 0;
    text-align: left;
}

/* Bottom CTA Section */
.page-download__cta-bottom {
    background: linear-gradient(135deg, #0A2463, #1a3c7c);
    color: #ffffff;
    padding-bottom: 80px;
}

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

.page-download__cta-bottom .page-download__section-title::after {
    background-color: #E0B14B;
}

.page-download__cta-bottom .page-download__section-description {
    color: #f0f0f0;
}

.page-download__download-buttons--bottom {
    margin-top: 40px;
}

.page-download__cta-button--large {
    padding: 18px 40px;
    font-size: 20px;
    min-width: 280px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 40px;
    }
    .page-download__hero-description {
        font-size: 18px;
    }
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__download-steps {
        grid-template-columns: 1fr;
    }
    .page-download__step-block {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-download__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        min-width: unset;
    }
    .page-download__cta-button--large {
        padding: 15px 25px;
        font-size: 18px;
    }
    .page-download__section {
        padding: 40px 15px;
    }
    .page-download__section-title {
        font-size: 28px;
        padding-bottom: 10px;
    }
    .page-download__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-download__features-grid,
    .page-download__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-item,
    .page-download__benefit-card {
        padding: 25px;
    }
    .page-download__feature-title,
    .page-download__benefit-title {
        font-size: 20px;
    }
    .page-download__step-block {
        padding: 25px;
    }
    .page-download__step-title {
        font-size: 22px;
    }
    .page-download__step-item {
        font-size: 15px;
        padding-left: 30px;
    }
    .page-download__step-item::before {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    .page-download__qr-code-image {
        max-width: 200px;
    }
    .page-download__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-download__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-download__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
        border-width: 1px;
    }
    .page-download__faq-answer {
        padding: 0 15px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px !important;
    }

    /* Image responsive handling */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__download-buttons,
    .page-download__qr-code-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__hero-section .page-download__download-buttons {
        padding-left: 0;
        padding-right: 0;
    }
}