/* style/download.css */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white for content areas */
}

/* Fixed header offset */
.page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Gold to Burgundy gradient */
    color: #ffffff; /* White text for dark/gradient background */
    text-align: center;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-download__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff; /* White for main title on dark background */
}

.page-download__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-download__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 250px;
    color: #ffffff;
}

.page-download__button--ios {
    background-color: #000000; /* Black for iOS */
}

.page-download__button--android {
    background-color: #3DDC84; /* Android Green */
}

.page-download__button--apk {
    background-color: #8B0000; /* Burgundy Red */
}

.page-download__button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.page-download__button img {
    width: 200px; /* Enforcing minimum size as per strict rule */
    height: 200px; /* Enforcing minimum size as per strict rule */
    object-fit: contain; /* To prevent distortion */
}

.page-download__qr-code-area {
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
}

.page-download__qr-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-download__qr-image {
    width: 250px;
    height: 250px;
    border: 5px solid #FFD700;
    border-radius: 5px;
    display: block;
    margin: 0 auto 15px auto;
}

.page-download__warning-text {
    font-size: 0.95em;
    color: #f0f0f0;
    max-width: 600px;
    margin: 0 auto;
}

/* General content container */
.page-download__content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles */
.page-download__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Burgundy red for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* Why App Section */
.page-download__why-app-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-download__feature-item {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-download__feature-image {
    width: 100%; /* Ensure images are responsive within their containers */
    max-width: 400px; /* Example max width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforcing minimum size */
    min-height: 200px; /* Enforcing minimum size */
}

.page-download__feature-heading {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Download Methods Section */
.page-download__methods-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-download__method-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-download__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-download__method-heading {
    font-size: 1.8em;
    color: #FFD700; /* Gold for method headings */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-download__method-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Enforcing minimum size */
    min-height: 200px; /* Enforcing minimum size */
}

.page-download__method-list {
    text-align: left;
    margin: 0 0 30px 20px;
    padding: 0;
    color: #555555;
}

.page-download__method-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-download__method-list strong {
    color: #333333;
}

.page-download__button--primary {
    background-color: #8B0000; /* Burgundy red for primary action buttons */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-download__button--primary:hover {
    background-color: #a00000;
}

/* Pre-installation Notes Section */
.page-download__notes-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-download__note-item {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-left: 5px solid #FFD700; /* Gold accent */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-download__note-heading {
    font-size: 1.4em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-download__note-description {
    font-size: 0.95em;
    color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

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

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or to indicate open */
}

.page-download__faq-answer {
    padding: 15px 25px 25px;
    font-size: 0.95em;
    color: #555555;
    background-color: #ffffff;
}

/* Call to Action Section */
.page-download__cta-section {
    background: #8B0000; /* Solid burgundy red */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-download__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for CTA title */
}

.page-download__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-download__button--cta {
    background-color: #FFD700; /* Gold for CTA button */
    color: #8B0000; /* Burgundy text on gold button */
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-download__button--cta:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.5em;
    }

    .page-download__section-title {
        font-size: 2em;
    }

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

    .page-download__feature-grid,
    .page-download__method-cards,
    .page-download__notes-grid {
        grid-template-columns: 1fr;
    }

    .page-download__method-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 15px;
    }

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

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

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

    .page-download__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 15px 20px;
        font-size: 1em;
    }

    /* For all images within the main content area, ensure responsiveness */
    .page-download img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
        /* 
          🚨 IMPORTANT: The requirement for 'min-width: 200px; min-height: 200px;' on all images
          conflicts with 'max-width: 100%; height: auto;' and 'no horizontal overflow' on very small screens.
          Prioritizing 'max-width: 100%; height: auto;' and 'no horizontal overflow'.
          Images will scale down to fit the screen, potentially below 200px if the screen is very narrow.
          The HTML width/height attributes will reflect the intended layout slot size (>=200px).
        */
    }

    .page-download__qr-image {
        width: 100%;
        max-width: 250px; /* Constrain max size for QR code */
        height: auto;
        margin: 0 auto 15px auto;
    }

    .page-download__section-title {
        font-size: 1.8em;
    }

    .page-download__cta-title {
        font-size: 2em;
    }

    .page-download__button--cta {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.7em;
    }
    .page-download__button {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__cta-title {
        font-size: 1.8em;
    }
}