/* style/download.css */

/* Base styles for the download page, ensuring light text on dark background */
.page-download {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Ensure all links have proper color for visibility */
.page-download a {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
}
.page-download a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
    display: block;
    margin-bottom: 30px;
}

.page-download__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

.page-download__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
}

/* General Section Styling */
.page-download__section {
    padding: 60px 0;
    text-align: center;
}

.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: #F2FFF6; /* Main text color */
    margin-bottom: 40px;
    font-weight: bold;
}

/* Card Styling */
.page-download__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download__card,
.page-download__feature-card,
.page-download__promo-card {
    background-color: #11271B; /* Custom card background color */
    color: #F2FFF6; /* Main text color for card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid #2E7A4E; /* Custom border color */
}

.page-download__card-title,
.page-download__feature-title,
.page-download__promo-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__card-text,
.page-download__feature-text,
.page-download__promo-text {
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
}

.page-download__section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Download Steps */
.page-download__download-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.page-download__download-platform {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    background-color: #11271B; /* Custom card background color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid #2E7A4E; /* Custom border color */
}

.page-download__platform-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__step-item {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-download__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #11A84E; /* Main brand color */
    color: #F2FFF6;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
    font-weight: bold;
}

.page-download__platform-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-download__video-section {
    padding: 40px 0;
    margin-top: 40px;
    background-color: #0A4B2C; /* Deep Green custom color */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E;
}

.page-download__video-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

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

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

.page-download__video-cta {
    margin-top: 30px;
    display: inline-block;
}

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

/* FAQ Section */
.page-download__faq {
    background-color: #0A4B2C; /* Deep Green custom color */
    border-top: 1px solid #1E3A2A; /* Divider color */
    border-bottom: 1px solid #1E3A2A; /* Divider color */
    padding: 60px 0;
}

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

.page-download__faq-item {
    background-color: #11271B; /* Card background color */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Main text color */
    cursor: pointer;
    background-color: #11271B; /* Same as item background */
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #57E38D; /* Glow color */
    margin-left: 15px;
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
}

/* Call to Action Button */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-download__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}

.page-download__btn-secondary {
    background: transparent;
    color: #57E38D; /* Glow color for secondary button text */
    border: 2px solid #57E38D; /* Glow color for border */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Light glow background on hover */
    color: #F2FFF6;
    border-color: #F2FFF6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__final-cta {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-image {
        max-height: 500px;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__card-title,
    .page-download__feature-title,
    .page-download__promo-title {
        font-size: 1.3em;
    }
    .page-download__platform-title {
        font-size: 1.6em;
    }
}

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

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper,
    .page-download__download-platform,
    .page-download__cta-buttons,
    .page-download__button-group,
    .page-download__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Hero section adjustments */
    .page-download__hero-section {
        padding-bottom: 40px;
    }
    .page-download__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-download__description {
        font-size: 1em;
    }

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

    /* Grid layout for cards */
    .page-download__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Download steps */
    .page-download__download-steps {
        flex-direction: column;
        gap: 30px;
    }
    .page-download__download-platform {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Video section */
    .page-download__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
    .page-download__video-title {
        font-size: 1.5em;
    }
    .page-download__video-wrapper {
        margin-bottom: 20px;
    }

    /* Buttons responsiveness */
    .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: 15px 20px; /* Adjust padding for smaller screens */
        font-size: 1em;
    }

    /* If multiple buttons are in a row, stack them */
    .page-download__hero-content .page-download__btn-primary {
        margin-left: auto;
        margin-right: auto;
        display: block; /* Ensure it takes full width */
    }
    .page-download__video-cta {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* FAQ section */
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }
}