/* style/download.css */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Ensure all images meet minimum size requirements for content images, global for .page-download */
.page-download img {
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Absolutely no filter */
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-download__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)); /* Overlay for image */
    z-index: 1;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: none; /* Ensure no filter is applied */
}

.page-download__hero-section .page-download__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

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

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styles */
.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-download__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-download__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description,
.page-download__dark-section h3 {
    color: #ffffff;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-download__btn-primary {
    background-color: #C30808; /* Custom color for register/login/download */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-download__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

.page-download__btn-large {
    min-width: 250px;
}

.page-download__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-download__text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}
.page-download__text-link:hover {
    color: #005f2c;
}

/* Grid Layouts */
.page-download__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

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

/* Cards */
.page-download__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-download__dark-section .page-download__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__dark-section .page-download__card .page-download__card-title {
    color: #ffffff;
}

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

.page-download__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
}

.page-download__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-download__dark-section .page-download__card .page-download__card-title {
    color: #ffffff;
}

.page-download__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text block grow to align buttons */
}

/* Installation Guide */
.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.page-download__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__step-title {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-download__step p {
    max-width: 800px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-download__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no filter is applied */
}

/* Video Section */
.page-download__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-download__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Custom color for toggle icon */
}

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

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.02);
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-download__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__grid-two-cols {
        grid-template-columns: 1fr;
    }
    .page-download__method-cards,
    .page-download__benefit-grid,
    .page-download__troubleshooting-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-download__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }

    .page-download__hero-title {
        font-size: 2.2em;
    }

    .page-download__hero-description {
        font-size: 1em;
    }

    /* Mobile specific overrides for images, videos, buttons and containers */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-download__container,
    .page-download__section,
    .page-download__card,
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper,
    .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 horizontal scroll */
    }

    /* Specific for buttons to wrap and allow text to break */
    .page-download__cta-button,
    .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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .page-download__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-download__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-download__section-description {
        font-size: 1em;
    }

    .page-download__light-bg,
    .page-download__dark-section {
        padding: 40px 0;
    }

    .page-download__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-download__method-cards,
    .page-download__benefit-grid,
    .page-download__troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-download__card {
        padding: 20px;
    }

    .page-download__card-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-download__step-title {
        font-size: 1.5em;
    }

    .page-download__image-responsive {
        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__faq-question {
        padding: 15px 20px;
    }

    .page-download__faq-question h3 {
        font-size: 1.1em;
    }

    .page-download__faq-answer {
        padding: 0 20px;
    }

    .page-download__faq-item.active .page-download__faq-answer {
        padding: 10px 20px;
    }
}

/* Override for specific small images if any, but the prompt says NO small images */
/* This is a preventative measure if an image might accidentally be smaller */
.page-download img[width="32"], .page-download img[width="40"], .page-download img[width="48"],
.page-download img[width="60"], .page-download img[width="64"], .page-download img[width="80"],
.page-download img[width="100"], .page-download img[height="32"], .page-download img[height="40"],
.page-download img[height="48"], .page-download img[height="60"], .page-download img[height="64"],
.page-download img[height="80"], .page-download img[height="100"] {
    display: none !important; /* Hide any explicitly small images */
}

/* Ensure images in cards are large */
.page-download__card-image {
    min-width: 200px;
    min-height: 200px;
}