:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --btn-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    --header-offset: 122px; /* Default value, will be overridden by shared.css if present */
}

.page-download {
    background-color: var(--bg-color);
    color: var(--text-main-color);
    font-family: 'Roboto', sans-serif; /* Assuming Roboto-like font for sans-serif */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
}

.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image block above text block */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-color);
    overflow: hidden; /* Ensure no overflow */
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper */
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-download__hero-content {
    position: relative; /* Ensure content is in normal flow, not absolute */
    z-index: 2;
    max-width: 800px;
}

.page-download__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size, not fixed */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Using secondary for highlight */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.page-download__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color);
    opacity: 0.8;
}

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

.page-download__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    color: var(--text-main-color); /* Ensure text is visible */
}

.page-download__btn--primary {
    background: var(--btn-gradient);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-download__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-download__btn--secondary:hover {
    background-color: rgba(255, 165, 58, 0.1);
    transform: translateY(-3px);
}

.page-download__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Instructions Section */
.page-download__instructions-section,
.page-download__features-section,
.page-download__faq-section,
.page-download__cta-bottom-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
}

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

.page-download__instruction-card,
.page-download__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-download__instruction-card:hover,
.page-download__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__instruction-image,
.page-download__feature-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-download__card-title,
.page-download__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-download__card-text,
.page-download__feature-text {
    font-size: 1rem;
    color: var(--text-main-color);
    opacity: 0.7;
}

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

.page-download__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: rgba(255, 140, 26, 0.1);
}

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

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

.page-download__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--text-main-color);
    opacity: 0.7;
}

.page-download__faq-answer.active {
    max-height: 200px; /* Adjust based on expected content length */
    padding-bottom: 20px;
}

.page-download__faq-answer p {
    margin: 0;
    padding-top: 10px; /* Space from question */
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 30px 15px;
    }

    .page-download__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
    }

    .page-download__description {
        font-size: 1rem;
    }

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

    .page-download__btn {
        width: 100%;
        max-width: 300px; /* Constrain button width */
        margin: 0 auto;
    }

    .page-download__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 30px;
    }

    .page-download__instruction-grid,
    .page-download__features-grid {
        grid-template-columns: 1fr;
    }

    .page-download__instruction-card,
    .page-download__feature-item {
        padding: 20px;
    }

    .page-download__card-title,
    .page-download__feature-title {
        font-size: 1.3rem;
    }

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

    /* Mobile images must be responsive and not cause overflow */
    .page-download__hero-image,
    .page-download__instruction-image,
    .page-download__feature-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-download__hero-section {
        padding: 20px 10px;
    }
    .page-download__container {
        padding: 10px;
    }
    .page-download__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
    .page-download__description {
        font-size: 0.9rem;
    }
    .page-download__section-title {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
    }
}

/* Ensure content area images are never smaller than 200px in CSS */
.page-download img {
    /* These properties are for content images, not header/footer shared icons */
    /* If a specific image needs to be smaller, it must be outside .page-download */
    /* This rule ensures no content image is rendered too small */
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
    width: auto; /* Allow auto width to respect min-width */
    height: auto; /* Allow auto height to respect min-height */
}
/* Override specific elements where width/height are explicitly set in HTML */
.page-download__hero-image {
    min-width: unset; /* Hero image is large, width 100% handles it */
    min-height: unset;
}
/* For smaller images within cards, ensure they still meet the 200px minimum */
.page-download__instruction-image,
.page-download__feature-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Fill card width, respecting max-width */
    max-width: 400px; /* As defined in card styling */
    height: auto;
}