/* General styles for .page-download scope */
.page-download {
    background-color: #100224; /* Dark background as per WOW88 style */
    color: #FFFFFF; /* White text for contrast */
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding for first section */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, then row for desktop */
    align-items: center;
    text-align: center;
    padding: 20px 15px 40px;
    gap: 30px;
    min-height: clamp(420px, 50vw, 800px); /* Responsive height for hero */
    background-color: #017439; /* Using primary color for hero background */
    width: 100%; /* Ensure content takes full width */
    box-sizing: border-box;
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Max width for image on smaller screens */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-download__hero-content {
    max-width: 900px;
    width: 100%; /* Ensure content takes full width on mobile */
    text-align: center;
}

.page-download__hero-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for H1 */
}

.page-download__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
}

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

/* Buttons */
.page-download__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    color: #FFFF00; /* Register and Login font color */
}

.page-download__btn--primary {
    background-color: #C30808; /* Login/Register button color */
    border: 2px solid #C30808;
}

.page-download__btn--primary:hover {
    background-color: #e02a2a;
    transform: translateY(-2px);
}

.page-download__btn--secondary {
    background-color: transparent;
    border: 2px solid #C30808; /* Login/Register button color */
    color: #FFFF00; /* Register and Login font color */
}

.page-download__btn--secondary:hover {
    background-color: #C30808;
    transform: translateY(-2px);
}

.page-download__btn--small {
    padding: 8px 15px;
    font-size: 0.9rem;
    min-width: 120px;
    background-color: #C30808; /* Login/Register button color */
    border: 2px solid #C30808;
    color: #FFFF00; /* Register and Login font color */
}

.page-download__btn--small:hover {
    background-color: #e02a2a;
}

.page-download__btn--large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 200px;
    background-color: #C30808; /* Login/Register button color */
    border: 2px solid #C30808;
    color: #FFFF00; /* Register and Login font color */
}

.page-download__btn--large:hover {
    background-color: #e02a2a;
}

/* Section Titles */
.page-download__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #FFFFFF;
    padding: 0 15px;
}

.page-download__section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
    padding: 0 15px;
}

/* Download Guide Section */
.page-download__download-guide-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.page-download__step-item {
    background-color: #017439; /* Primary color for step background */
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFF00; /* Yellow for step numbers */
    flex-shrink: 0;
    line-height: 1;
}

.page-download__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-download__step-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: #E0E0E0;
}

.page-download__platform-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-download__platform-card {
    background-color: #017439; /* Primary color for card background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have some height */
}

.page-download__card-icon {
    max-width: 100%; /* Ensure image is not smaller than 200px and responsive */
    width: auto;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: contain;
}

.page-download__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-download__platform-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #E0E0E0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-download__qr-code-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto 0;
    border: 5px solid #FFFFFF;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: contain;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 20px;
    background-color: #100224;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.page-download__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.page-download__feature-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__feature-item img {
    max-width: 100%; /* Ensure image is not smaller than 200px and responsive */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: contain;
}

.page-download__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-download__feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #E0E0E0;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 20px;
    background-color: #017439; /* Primary color for FAQ background */
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

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

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

.page-download__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 25px;
    cursor: pointer;
    color: #FFFFFF;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-download__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-download__faq-question.is-active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-download__faq-answer {
    padding: 0 25px 18px;
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-download__faq-answer.is-active {
    max-height: 200px; /* Adjust as needed for content length */
    padding-top: 10px;
}

/* Call to Action Section */
.page-download__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #100224;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-download__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 60px 40px;
        gap: 50px;
    }

    .page-download__hero-image-wrapper {
        flex: 1;
        max-width: 50%;
    }

    .page-download__hero-content {
        flex: 1;
        text-align: left;
    }

    .page-download__hero-buttons {
        justify-content: flex-start;
    }

    .page-download__download-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-download__platform-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-download__feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .page-download__feature-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile specific rules for images and content overflow */
@media (max-width: 768px) {
    .page-download__hero-section {
        padding-top: 20px; /* Small padding at top, body handles header offset */
    }
    .page-download__hero-image {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .page-download__hero-content {
        width: 100%;
    }
    .page-download__hero-buttons .page-download__btn {
        width: 100%;
        max-width: 300px;
    }
    /* Ensure content area images are responsive */
    .page-download img {
        max-width: 100%;
        height: auto;
    }
    .page-download__qr-code-image {
        max-width: 250px; /* Fixed max-width for QR code on mobile if needed, but still auto height */
        height: auto;
    }
    /* Ensure content area images are at least 200px, but also responsive */
    .page-download__card-icon,
    .page-download__qr-code-image,
    .page-download__feature-item img {
        min-width: 200px;
        min-height: 200px;
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all content sections are full width and prevent overflow */
.page-download__hero-section,
.page-download__download-guide-section,
.page-download__features-section,
.page-download__faq-section,
.page-download__cta-section {
    width: 100%;
    box-sizing: border-box;
}

/* Specific image CSS rules to enforce min-width and responsiveness */
.page-download__card-icon,
.page-download__qr-code-image,
.page-download__feature-item img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Or cover, depending on desired crop behavior */
}

/* For the hero image, it's typically larger and takes more space */
.page-download__hero-image {
    min-width: 200px; /* Still apply the minimum */
    min-height: 200px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}