/* style/download.css */
/* General styles for the download page, scoped with .page-download */

/* --- Base Styles --- */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    padding-top: 0; /* Handled by individual sections if shared doesn't do body padding */
}

/* Ensure the first content section has padding-top for fixed header */
.page-download__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #017439, #004d2b); /* Gradient with brand color */
    color: #ffffff;
}

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

.page-download__dark-bg {
    background: linear-gradient(135deg, #017439, #004d2b);
    color: #ffffff;
}

.page-download__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-download__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Always white for titles on dark sections */
    text-align: center;
    font-weight: bold;
}

.page-download__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-download__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Buttons --- */
.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap 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, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
    width: 100%; /* Ensure buttons take full width of container up to max-width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-download__btn-primary {
    background-color: #C30808; /* Register/Login color for primary action */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

.page-download__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-3px);
}

/* --- Images --- */
.page-download__hero-image,
.page-download__qr-image,
.page-download__features-image,
.page-download__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Why Download Section --- */
.page-download__why-download-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-download__feature-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for highlight */
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* --- How to Download Section --- */
.page-download__how-to-download-section {
    text-align: center;
}

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

.page-download__step-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque for steps */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-download__step-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-download__step-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* --- Key Features Section --- */
.page-download__key-features-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

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

.page-download__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-download__feature-heading {
    font-size: 1.3em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-download__feature-content {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* --- Security Section --- */
.page-download__security-section {
    text-align: center;
}

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

.page-download__security-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.05em;
    color: #f0f0f0;
    display: flex;
    align-items: center;
}

.page-download__security-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

/* --- System Requirements Section --- */
.page-download__system-requirements-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

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

.page-download__requirement-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-download__requirement-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-download__requirement-list {
    list-style: disc;
    padding-left: 20px;
    color: #f0f0f0;
    flex-grow: 1;
}

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

/* --- Video Section --- */
.page-download__video-section {
    text-align: center;
}

.page-download__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background-color: #000; /* Fallback for video background */
}

.page-download__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.page-download__video-link {
    display: block; /* Make the entire wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is above video */
}

/* --- FAQ Section --- */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

.page-download__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-download__faq-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-download__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    background-color: rgba(1, 116, 57, 0.8); /* Brand color for summary */
    transition: background-color 0.3s ease;
}

.page-download__faq-item summary:hover {
    background-color: rgba(1, 116, 57, 1);
}

.page-download__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-download__faq-qtext {
    flex-grow: 1;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
}

.page-download__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Call to Action Bottom Section --- */
.page-download__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

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

@media (max-width: 768px) {
    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-download__main-title {
        font-size: 2em;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__description,
    .page-download__text-block {
        font-size: 1em;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific padding for containers */
    .page-download__container {
        padding: 0 15px !important;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Video responsiveness */
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 20px auto !important;
    }
    .page-download__video-wrapper video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-download__video-link {
        width: 100% !important;
        height: 100% !important;
    }
}