/* style/download.css */

/* Base styles for the download page */
.page-download {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

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

.page-download__section-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 font size rule applied to H2s as well for consistency */
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main */
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand colors gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is below content for visual stacking, but content is not *on* it */
    margin-bottom: 30px; /* Space between image and content */
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image to make text pop */
}

.page-download__hero-content-wrapper {
    position: relative;
    z-index: 2; /* Ensure content is above image wrapper if they were to overlap (which they shouldn't due to layout) */
    text-align: center;
    color: #FFF6D6;
    padding: 0 15px;
}

.page-download__hero-title {
    font-size: clamp(2.5em, 5vw, 4em); /* H1 font size rule */
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-download__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #FFF6D6; /* Text Main */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button custom color */
    color: #111111; /* Dark text for contrast on bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-download__btn-secondary {
    background: transparent;
    color: #FFF6D6; /* Text Main */
    border: 2px solid #F2C14E; /* Main color border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-download__btn-secondary:hover {
    background: #F2C14E; /* Main color on hover */
    color: #111111; /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-download__version-info {
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.7); /* Slightly muted Text Main */
    margin-top: 10px;
}

/* Why App Section */
.page-download__why-app-section,
.page-download__app-features-section,
.page-download__how-to-download-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-bottom-section {
    padding: 80px 0;
    position: relative;
}

.page-download__why-app-section {
    background-color: #111111; /* Card BG */
}

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

.page-download__feature-card {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(242, 193, 78, 0.2);
}

.page-download__feature-icon {
    width: 200px; /* Minimum 200px */
    height: 200px; /* Minimum 200px */
    object-fit: contain;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.5)); /* Glow effect */
}

.page-download__feature-title {
    font-size: 1.5em;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

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

/* App Features Section */
.page-download__app-features-section {
    background-color: #0A0A0A; /* Background */
}

.page-download__feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

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

.page-download__feature-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-download__feature-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.page-download__feature-details {
    flex-grow: 1;
}

.page-download__feature-item-title {
    font-size: 1.8em;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-download__feature-item-text {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}

.page-download__text-link {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-download__text-link:hover {
    color: #F2C14E; /* Main color on hover */
    text-decoration: underline;
}

/* How to Download Section */
.page-download__how-to-download-section {
    background-color: #111111; /* Card BG */
}

.page-download__download-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-download__download-platform {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-download__platform-title {
    font-size: 1.6em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 25px;
}

.page-download__qr-code {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 25px;
    border: 5px solid #F2C14E; /* Main color border for QR */
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__step-list li {
    background-color: rgba(242, 193, 78, 0.1); /* Light tint of main color */
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #F2C14E; /* Main color accent */
    border-radius: 6px;
    color: #FFF6D6; /* Text Main */
    font-size: 1em;
}

.page-download__step-list li strong {
    color: #FFD36B; /* Auxiliary color */
}

.page-download__btn-platform {
    margin-top: 20px;
    width: 80%;
    padding: 12px 25px;
}

.page-download__download-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: rgba(255, 246, 214, 0.8);
}

/* Security Section */
.page-download__security-section {
    background-color: #0A0A0A; /* Background */
}

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

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

.page-download__security-icon {
    width: 200px; /* Min 200px */
    height: 200px; /* Min 200px */
    object-fit: contain;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.5)); /* Glow effect with auxiliary color */
}

.page-download__security-title {
    font-size: 1.5em;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

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

/* FAQ Section */
.page-download__faq-section {
    background-color: #111111; /* Card BG */
}

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

.page-download__faq-item {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(242, 193, 78, 0.05); /* Very light tint of main color */
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-download__faq-question h3 {
    font-size: 1.2em;
    color: #F2C14E; /* Main color */
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-download__faq-toggle {
    font-size: 1.8em;
    color: #FFD36B; /* Auxiliary color */
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(0deg); /*  becomes "-" */
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px 25px; /* Padding for expanded state */
}

.page-download__faq-answer p {
    margin: 0;
    padding-top: 5px; /* Small top padding for text within answer */
}

/* CTA Bottom Section */
.page-download__cta-bottom-section {
    background-color: #0A0A0A; /* Background */
    text-align: center;
    padding-bottom: 80px;
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
    min-width: 300px;
}

.page-download__register-promo {
    margin-top: 30px;
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: clamp(2em, 4.5vw, 3.5em);
    }

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

    .page-download__feature-item {
        flex-direction: column;
        text-align: center;
    }

    .page-download__feature-item:nth-child(even) {
        flex-direction: column;
    }

    .page-download__feature-image {
        margin-bottom: 20px;
    }
}

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

    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
        padding-bottom: 40px;
    }

    .page-download__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-download__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-download__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

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

    .page-download__section-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-download__why-app-section,
    .page-download__app-features-section,
    .page-download__how-to-download-section,
    .page-download__security-section,
    .page-download__faq-section,
    .page-download__cta-bottom-section {
        padding: 50px 0;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__feature-item,
    .page-download__download-platform,
    .page-download__security-item,
    .page-download__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-download__feature-item {
        padding: 20px;
        gap: 20px;
    }

    .page-download__feature-image {
        width: 100%; /* Ensure full width on mobile */
        height: auto;
    }

    .page-download__qr-code {
        width: 180px;
        height: 180px;
    }
    
    .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: 15px 20px 20px 20px;
    }

    .page-download__btn-large {
        min-width: unset;
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1em;
    }
}