/* style/download.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
    --background-color: #FFFFFF;
    --black: #000000;
}

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

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

.page-download__section-title {
    font-size: 32px;
    color: var(--black);
    text-align: center;
    margin-bottom: 40px;
    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: var(--primary-color);
    border-radius: 2px;
}

.page-download__intro-text {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* 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);
    background: linear-gradient(135deg, var(--primary-color) 0%, #a7d9f2 100%); /* Light blue gradient */
    color: var(--text-light);
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain hero image width */
}

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

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

.page-download__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-download__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-download__btn-primary:hover {
    background: darken(var(--button-login), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

.page-download__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

.page-download__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-item img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 5px;
}

.page-download__feature-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Download Steps Section */
.page-download__step-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.page-download__step-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-download__qr-codes img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-download__installation-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

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

/* System Requirements Section */
.page-download__requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__requirement-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.page-download__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-download__requirement-list {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.page-download__requirement-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-download__requirement-list li::before {
    content: '✓';
    color: var(--button-login); /* Use login color for checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Security Info Section */
.page-download__security-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-download__security-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

/* FAQ Section */
.page-download__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    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 15px;
    opacity: 0;
    color: #555555;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.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;
    pointer-events: none;
    color: var(--black);
}

.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: var(--button-login);
    transform: rotate(45deg); /* Changed from '-' to rotate for visual effect */
}

/* CTA Bottom Section */
.page-download__cta-bottom {
    text-align: center;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

/* General image styling */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-download__main-title {
        font-size: 32px;
    }

    .page-download__description {
        font-size: 16px;
    }

    .page-download__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-download__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__section {
        padding: 40px 15px;
    }

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

    .page-download__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-download__features-grid,
    .page-download__requirements-grid,
    .page-download__security-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__feature-item,
    .page-download__requirement-card,
    .page-download__security-item,
    .page-download__step-item {
        padding: 20px;
    }

    .page-download__feature-title,
    .page-download__card-title,
    .page-download__step-title {
        font-size: 20px;
    }

    .page-download__qr-codes {
        gap: 20px;
    }

    .page-download__qr-codes img {
        
    }

    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .page-download__faq-question {
        padding: 15px;
    }

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

    .page-download__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    /* Ensure all images and their containers are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-image,
    .page-download__qr-codes,
    .page-download__download-buttons,
    .page-download__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Already handled by section padding */
        /* padding-right: 15px; */
        overflow: hidden;
    }
}