/* General styles for the download page */
.page-download {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* General padding for the bottom */
}

.page-download__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    display: flex;
    flex-direction: column; /* Image above content on mobile, content below image on desktop */
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 60px;
}

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

.page-download__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-download__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button adapts to container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
    color: #0A0A0A; /* Dark text on bright button for contrast */
    border: none;
}

.page-download__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-download__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
}

.page-download__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #0A0A0A; /* Dark text on bright button for contrast */
    transform: translateY(-2px);
}

.page-download__hero-image {
    width: 100%;
    max-width: 800px; /* Adjust as needed for visual balance */
    margin-top: 40px; /* Space between content and image */
}

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

.page-download__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    margin-top: 60px;
}

/* Why App Section */
.page-download__why-app-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

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

.page-download__feature-card {
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
}

.page-download__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-download__card-title {
    font-size: 1.5rem;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-download__card-text {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* How to Download Section */
.page-download__how-to-download-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

.page-download__download-steps {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.page-download__step-card {
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    border: 1px solid #3A2A12; /* Border */
}

.page-download__step-card ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main */
}

.page-download__step-card li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-download__step-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* App Features Section */
.page-download__app-features-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
    text-align: center;
}

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

.page-download__feature-item {
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    border: 1px solid #3A2A12; /* Border */
}

.page-download__item-title {
    font-size: 1.3rem;
    color: #FFD36B; /* Glow color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-download__feature-item p {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

.page-download__features-showcase-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Security Section */
.page-download__security-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
}

.page-download__security-image {
    flex-shrink: 0;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-download__security-text {
    flex-grow: 1;
    text-align: left;
}

.page-download__security-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #FFF6D6; /* Text Main */
}

/* FAQ Section */
.page-download__faq-section {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

.page-download__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-download__faq-item {
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD36B; /* Glow color */
    background-color: #111111; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker */
}

.page-download__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-download__faq-question:hover {
    background-color: #1A1A1A;
}

.page-download__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    color: #F2C14E; /* Main color */
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Change to X when open */
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.6;
}

/* Final CTA Section */
.page-download__cta-final-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

.page-download__cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #FFF6D6; /* Text Main */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-download__hero-section {
        flex-direction: column;
        text-align: center;
    }

    .page-download__hero-image {
        margin-top: 30px;
    }

    .page-download__download-steps {
        flex-direction: column;
    }

    .page-download__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-download__security-image {
        margin-bottom: 30px;
        max-width: 250px;
    }
}

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

    .page-download__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-download__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-download__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__hero-image {
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-download__hero-image img,
    .page-download__feature-card img,
    .page-download__step-card img,
    .page-download__features-showcase-image,
    .page-download__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow to shrink below 200px on mobile if needed for 100% width */
        min-height: unset; /* Allow to shrink below 200px on mobile if needed for 100% width */
        box-sizing: border-box !important;
    }

    .page-download__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-download__why-app-section,
    .page-download__how-to-download-section,
    .page-download__app-features-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-final-section {
        margin-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-download__feature-card,
    .page-download__step-card,
    .page-download__feature-item,
    .page-download__security-content,
    .page-download__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    /* Ensure no horizontal scroll for content areas */
    .page-download__features-grid,
    .page-download__download-steps,
    .page-download__features-list,
    .page-download__security-content,
    .page-download__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-download__features-grid {
        grid-template-columns: 1fr;
    }
    .page-download__features-list {
        grid-template-columns: 1fr;
    }
}