/* style/download.css */

/* Global styles for page-download scope */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Using custom property for main text color */
    background-color: var(--background); /* Using custom property for background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacking image above content */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    text-align: center;
    background-color: var(--background);
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-download__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-download__main-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 90%; /* Prevent title from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-download__description {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.page-download__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-download__btn-secondary:hover {
    background-color: rgba(var(--primary-color), 0.1);
    transform: translateY(-2px);
}

/* Video Section */
.page-download__video-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--background);
    text-align: center;
}

.page-download__section-title {
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.page-download__section-description {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-download__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Desktop max width for video */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-download__video-cta {
    margin-top: 20px;
}

/* Benefits Section */
.page-download__benefits-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: var(--background);
    text-align: center;
}

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

.page-download__benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-download__benefit-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
}

.page-download__card-title {
    color: var(--text-main);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-download__card-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Instructions Section */
.page-download__instructions-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: var(--background);
    text-align: center;
}

.page-download__instructions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-download__instruction-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

.page-download__instruction-list {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 25px;
    font-size: 0.95em;
}

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

.page-download__instruction-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-download__features-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: var(--background);
    text-align: center;
}

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

.page-download__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--border-color);
}

/* FAQ Section */
.page-download__faq-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: var(--background);
    text-align: center;
}

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

.page-download__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: var(--deep-green); /* Slightly different background for summary */
    border-radius: 10px;
}

.page-download__faq-item summary { /* For details tag */
    list-style: none;
}
.page-download__faq-item summary::-webkit-details-marker { /* For details tag */
    display: none;
}

.page-download__faq-qtext {
    color: var(--text-main);
}

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

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-download__faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Call to Action Bottom Section */
.page-download__cta-bottom-section {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: var(--background);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-download__hero-image-wrapper {
        max-width: 900px;
    }
    .page-download__video-wrapper {
        max-width: 800px;
    }
    .page-download__instructions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section,
    .page-download__video-section,
    .page-download__benefits-section,
    .page-download__instructions-section,
    .page-download__features-section,
    .page-download__faq-section,
    .page-download__cta-bottom-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-download__main-title {
        font-size: 2em;
    }

    .page-download__section-title {
        font-size: 1.8em;
    }

    .page-download__description,
    .page-download__section-description,
    .page-download__card-text,
    .page-download__instruction-list,
    .page-download__faq-answer p {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        flex-wrap: wrap !important;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__hero-image,
    .page-download__benefit-icon,
    .page-download__instruction-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}