/* General styles */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background: #B71C1C; /* Background */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD86A; /* Gold-like for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.page-download__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background: linear-gradient(to bottom, #7A0E0E, #B71C1C); /* Deep Red to Background */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.page-download__hero-section .page-download__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-download__hero-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.page-download__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
    font-weight: 900;
    color: #FFD86A; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-download__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

.page-download__download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
}

.page-download__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-download__btn-secondary {
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border */
}

.page-download__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #E53935; /* Auxiliary color */
}

.page-download__hero-image-wrapper {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #F2B544; /* Border */
    min-width: 200px;
    min-height: 200px;
}

/* Features Section */
.page-download__features-section {
    padding: 80px 0;
    background-color: #7A0E0E; /* Deep Red */
}

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

.page-download__feature-item {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
}

.page-download__feature-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

.page-download__feature-heading {
    font-size: 24px;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    margin-bottom: 15px;
}

.page-download__feature-item p {
    font-size: 16px;
    color: #FFF5E1; /* Text Main */
}

/* Installation Guide Section */
.page-download__installation-guide {
    padding: 80px 0;
    background-color: #B71C1C; /* Background */
}

.page-download__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.page-download__guide-card {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
}

.page-download__guide-heading {
    font-size: 28px;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    margin-bottom: 25px;
    text-align: center;
}

.page-download__guide-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px;
    border-radius: 8px;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
    border: 2px solid #F2B544; /* Border */
}

.page-download__step-list {
    list-style-type: decimal;
    padding-left: 25px;
    color: #FFF5E1; /* Text Main */
    font-size: 16px;
}

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

.page-download__step-list strong {
    color: #FFD86A; /* Gold */
}

.page-download__qr-code-section {
    background: #7A0E0E; /* Deep Red */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
}

.page-download__qr-code-heading {
    font-size: 28px;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    margin-bottom: 20px;
}

.page-download__qr-code-image {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border: 5px solid #F2B544; /* Border */
    border-radius: 5px;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

.page-download__qr-code-section p {
    font-size: 16px;
    color: #FFF5E1; /* Text Main */
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #7A0E0E; /* Deep Red */
}

details.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #F2B544; /* Border */
    overflow: hidden;
    background: #D32F2F; /* Card BG */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-download__faq-item summary.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
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: #E53935; /* Auxiliary color */
}
.page-download__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFD86A; /* Gold */
}
.page-download__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
    padding: 0 25px 20px;
    background: #B71C1C; /* Background */
    border-radius: 0 0 10px 10px;
    color: #FFF5E1; /* Text Main */
}

/* Final CTA Section */
.page-download__cta-final {
    padding: 80px 0;
    background: linear-gradient(to top, #7A0E0E, #B71C1C); /* Deep Red to Background */
    text-align: center;
}

.page-download__cta-final p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Responsive styles for 1024px and below */
@media (max-width: 1024px) {
    .page-download__hero-section .page-download__container {
        flex-direction: column;
        text-align: center;
    }
    .page-download__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-download__hero-image-wrapper {
        max-width: 70%;
    }
    .page-download__download-buttons {
        justify-content: center;
    }
    .page-download__guide-steps {
        grid-template-columns: 1fr;
    }
}

/* Responsive styles for 768px and below (Mobile) */
@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-download__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-download__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 40px;
    }
    .page-download__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__hero-image-wrapper {
        max-width: 90%;
        margin-top: 30px;
    }
    .page-download__hero-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }

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

    /* Features Section */
    .page-download__features-section {
        padding: 50px 0;
    }
    .page-download__feature-item {
        padding: 20px;
    }
    .page-download__feature-item img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-download__feature-heading {
        font-size: 20px;
    }
    .page-download__feature-item p {
        font-size: 15px;
    }

    /* Installation Guide Section */
    .page-download__installation-guide {
        padding: 50px 0;
    }
    .page-download__guide-steps {
        gap: 30px;
        margin-bottom: 40px;
    }
    .page-download__guide-card {
        padding: 20px;
    }
    .page-download__guide-heading {
        font-size: 24px;
    }
    .page-download__guide-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-download__step-list {
        font-size: 15px;
    }
    .page-download__qr-code-section {
        padding: 30px;
    }
    .page-download__qr-code-heading {
        font-size: 24px;
    }
    .page-download__qr-code-image {
        max-width: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
    }
    .page-download__qr-code-section p {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-download__faq-section {
        padding: 50px 0;
    }
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section */
    .page-download__cta-final {
        padding: 50px 0;
    }
    .page-download__cta-final p {
        font-size: 16px;
        margin-bottom: 25px;
    }
}