/* style/download.css */

/* General styles for the download page */
.page-download {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

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

.page-download__section-title {
    color: #F2C14E; /* Custom Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(1.8rem, 3vw, 2.5rem); /* Responsive font size for H2 */
    font-weight: bold;
    line-height: 1.2;
}

.page-download__text-block {
    margin-bottom: 20px;
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
    max-width: 800px;
    margin-top: 20px;
}

.page-download__main-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 30px;
}

.page-download__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    box-sizing: border-box;
}

.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.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
    color: #F2FFF6; /* Custom Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-download__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-download__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Brighter green for secondary text */
    border: 2px solid #2AD16F; /* Custom Deep Green for border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary:hover {
    background: #2AD16F;
    color: #F2FFF6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-center {
    display: block;
    margin: 30px auto 0;
    max-width: 300px;
}

/* Introduction Section */
.page-download__introduction-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
    text-align: center;
}

/* Features Section */
.page-download__features-section {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

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

.page-download__feature-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Custom Border */
}

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

.page-download__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title {
    color: #F2C14E; /* Custom Gold */
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-download__feature-description {
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Guide Section */
.page-download__guide-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
}

.page-download__guide-block {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #2E7A4E; /* Custom Border */
}

.page-download__guide-title {
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #2E7A4E;
    padding-bottom: 15px;
}

.page-download__guide-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.page-download__qr-code-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.page-download__qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border: 5px solid #F2FFF6;
    border-radius: 8px;
}

.page-download__qr-label {
    color: #A7D9B8; /* Custom Text Secondary */
    font-size: 1.1rem;
    font-weight: bold;
}

.page-download__guide-steps {
    flex: 2;
    min-width: 300px;
    list-style: none;
    padding-left: 0;
}

.page-download__guide-steps li {
    background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #57E38D; /* Custom Glow */
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.05rem;
}

.page-download__guide-steps li strong {
    color: #F2C14E; /* Custom Gold */
}

/* Installation Tips Section */
.page-download__installation-tips-section {
    padding: 60px 0;
    background-color: #08160F; /* Custom Background */
}

.page-download__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-download__tips-list li {
    background-color: #11271B; /* Custom Card BG */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2AD16F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #A7D9B8; /* Custom Text Secondary */
}

.page-download__tips-list li strong {
    color: #F2FFF6; /* Custom Text Main */
}

/* Video Section */
.page-download__video-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
    text-align: center;
}

.page-download__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 100%; /* Important for desktop as well */
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate it's clickable */
}

.page-download__video-description {
    color: #A7D9B8; /* Custom Text Secondary */
    margin-top: 20px;
    font-size: 1.1rem;
}

/* System Requirements Section */
.page-download__system-requirements-section {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
}

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

.page-download__requirement-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #2E7A4E; /* Custom Border */
}

.page-download__requirement-title {
    color: #F2C14E; /* Custom Gold */
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.page-download__requirement-list {
    list-style: none;
    padding: 0;
}

.page-download__requirement-list li {
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-download__requirement-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #2AD16F; /* Brighter green for checkmark */
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
}

.page-download__faq-list {
    margin-top: 40px;
}

.page-download__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #11271B; /* Custom Card BG */
    color: #F2FFF6; /* Custom Text Main */
    font-size: 1.15rem;
    font-weight: bold;
    border-bottom: 1px solid #2E7A4E;
    list-style: none; /* Remove default summary marker */
}

.page-download__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

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

.page-download__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Custom Glow */
}

.page-download__faq-item[open] .page-download__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-download__faq-answer {
    padding: 20px 25px;
    background-color: #0F2019; /* Slightly lighter than Card BG for contrast */
    color: #A7D9B8; /* Custom Text Secondary */
    font-size: 1rem;
    border-top: 1px solid #2E7A4E;
}

.page-download__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    background-color: #08160F; /* Custom Background */
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-download__hero-section {
        padding: 40px 15px;
    }
    .page-download__hero-content {
        max-width: 700px;
    }
    .page-download__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-download__section-title {
        font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    }
    .page-download__guide-content {
        flex-direction: column;
    }
    .page-download__qr-code-wrapper,
    .page-download__guide-steps {
        width: 100%;
        min-width: unset;
    }
    .page-download__qr-code {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__container {
        padding: 0 15px !important; /* Force padding for mobile containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Video responsiveness */
    .page-download video,
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Button responsiveness */
    .page-download__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download a[class*="button"],
    .page-download a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
    .page-download__btn-center {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section padding */
    .page-download__hero-section,
    .page-download__introduction-section,
    .page-download__features-section,
    .page-download__guide-section,
    .page-download__installation-tips-section,
    .page-download__system-requirements-section,
    .page-download__faq-section,
    .page-download__cta-final-section {
        padding: 40px 0 !important;
    }

    .page-download__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-download__hero-description {
        font-size: 1rem;
    }
    .page-download__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        margin-bottom: 30px;
    }
    .page-download__guide-title {
        font-size: 1.5rem;
    }
    .page-download__feature-card,
    .page-download__guide-block,
    .page-download__requirement-card,
    .page-download__faq-item {
        padding: 25px !important;
    }
    .page-download__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .page-download__tips-list li {
        padding: 15px;
    }
}