/* style/download.css */

/* Base styles for the page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared.css, explicitly set for clarity */
}

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

.page-download__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #00562c);
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-download__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

.page-download__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-download__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow font */
    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: #00562c;
    transform: translateY(-3px);
}

.page-download__hero-image-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Benefits Section */
.page-download__benefits-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-download__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-download__benefit-card:hover {
    transform: translateY(-5px);
}

.page-download__benefit-title {
    font-size: 1.8em;
    color: #017439; /* Brand primary color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Guide Section */
.page-download__guide-section {
    padding: 80px 0;
    background-color: #121212;
    color: #ffffff;
}

.page-download__guide-block {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.page-download__guide-subtitle {
    font-size: 2em;
    color: #017439; /* Brand primary color */
    margin-bottom: 25px;
    text-align: center;
}

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

.page-download__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #017439;
}

.page-download__step-number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for step numbers */
    margin-bottom: 10px;
}

.page-download__step-text {
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-download__video-wrapper {
    margin-top: 60px;
    text-align: center;
}

.page-download__responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-download__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-download__video-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.page-download__features-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-download__feature-card:hover {
    transform: translateY(-5px);
}

.page-download__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-download__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download__feature-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* Why Choose Us Section */
.page-download__why-choose-us {
    padding: 80px 0;
    background-color: #121212;
    color: #ffffff;
}

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

.page-download__reason-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-download__reason-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-download__reason-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for key reasons */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__reason-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439; /* Brand primary for question header */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: #00562c;
}

.page-download__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Reset h3 font size within question */
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(45deg);
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px !important;
}

.page-download__faq-answer p {
    margin: 0;
    color: inherit;
    font-size: 0.95em;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #00562c);
    color: #ffffff;
    text-align: center;
}

.page-download__cta-bottom-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-download__cta-bottom-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__hero-description {
        font-size: 1.2em;
    }
    .page-download__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 1em;
    }
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__features-section,
    .page-download__why-choose-us,
    .page-download__faq-section,
    .page-download__cta-bottom-section {
        padding: 50px 0;
    }

    .page-download__benefit-card,
    .page-download__feature-card,
    .page-download__reason-card {
        padding: 25px;
    }
    
    .page-download__guide-subtitle {
        font-size: 1.6em;
    }
    
    .page-download__responsive-video {
        padding-bottom: 75%; /* Adjust for mobile aspect ratio if needed, or keep 16:9 */
    }

    /* Mobile image responsiveness */
    .page-download img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/videos/buttons should be constrained */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__features-section,
    .page-download__why-choose-us,
    .page-download__faq-section,
    .page-download__cta-bottom-section,
    .page-download__guide-block,
    .page-download__video-wrapper,
    .page-download__responsive-video {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-download__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-download__faq-answer {
        padding: 15px !important;
    }

    .page-download__cta-bottom-title {
        font-size: 2.2em;
    }
    .page-download__cta-bottom-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.6em;
    }
    .page-download__guide-subtitle {
        font-size: 1.4em;
    }
    .page-download__benefit-title,
    .page-download__feature-title,
    .page-download__reason-title {
        font-size: 1.4em;
    }
    .page-download__cta-bottom-title {
        font-size: 1.8em;
    }
}