/* style/download.css */

/* Variables for consistency */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* For login/promotional buttons */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
}

.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light);
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Stacks content and image vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, main offset from body */
    background: linear-gradient(135deg, var(--primary-color) 0%, #46b8e6 100%); /* Gradient background for hero */
    color: var(--text-color-light);
}

.page-download__hero-container {
    display: flex;
    flex-direction: column; /* Content and image stack */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-download__hero-content {
    order: 2; /* Content below image on desktop */
    width: 100%;
    margin-top: 40px; /* Space between image and content */
}

.page-download__hero-image {
    order: 1; /* Image above content on desktop */
    width: 100%;
    max-width: 800px; /* Limit image width */
    margin-bottom: 20px; /* Space below image */
}

.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__main-title {
    font-size: 2.8em; /* Using em for relative sizing */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons do not overflow on mobile */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
    background: var(--accent-color); /* Login color for primary action */
    color: var(--text-color-light);
    border: 2px solid var(--accent-color);
}

.page-download__btn-primary:hover {
    background: #e06c00; /* Slightly darker accent */
    border-color: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
    background: #e0f0f5; /* Light blue hover */
    border-color: #1a8cc4;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-download__section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-download__dark-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-download__dark-bg { /* For the final CTA section container */
    background-color: var(--background-dark);
    color: var(--text-color-light);
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure full width within max-width */
    box-sizing: border-box;
}

.page-download__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: inherit; /* Inherit color from parent section */
}

.page-download__section-description {
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__feature-card,
.page-download__benefit-item,
.page-download__security-item {
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color-dark);
}

.page-download__dark-section .page-download__feature-card,
.page-download__dark-section .page-download__benefit-item,
.page-download__dark-section .page-download__security-item {
    background: rgba(255, 255, 255, 0.1); /* Lighter background for cards in dark section */
    color: var(--text-color-light);
    box-shadow: none;
}

.page-download__feature-card img,
.page-download__security-item img {
    width: 100%;
    max-width: 300px; /* Max width for images within cards */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title,
.page-download__benefit-title,
.page-download__security-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: inherit;
}

.page-download__feature-text,
.page-download__benefit-text,
.page-download__security-text {
    font-size: 1em;
    color: inherit;
}

/* Guide Section */
.page-download__guide-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-download__guide-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-color-dark);
}

.page-download__dark-section .page-download__guide-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    box-shadow: none;
}

.page-download__guide-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    color: inherit;
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__guide-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.5;
    color: inherit;
}

.page-download__guide-step-number {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-right: 15px;
}

.page-download__qr-codes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-download__qr-code {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    background: var(--background-light); /* Ensure QR codes have white background */
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}
.page-download__dark-section .page-download__qr-code {
    background: var(--background-light); /* Always white background for QR codes */
}

/* FAQ Section */
.page-download__faq-list {
    margin-top: 40px;
    text-align: left;
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--background-light);
}
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;
    color: var(--text-color-dark);
}
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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: inherit;
}
.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    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;
    color: var(--text-color-dark);
}
details.page-download__faq-item .page-download__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 100px 20px;
    background: var(--background-light);
}

.page-download__cta-final-section .page-download__section-title {
    color: var(--text-color-light);
}

.page-download__cta-final-section .page-download__section-description {
    color: var(--text-color-light);
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.5em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

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

    .page-download__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-download__hero-content {
        margin-top: 30px;
    }

    .page-download__hero-image {
        margin-bottom: 15px;
    }
}