/* style/download.css */
/* Base styles for the download page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default white body background */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-download__hero-section {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-download__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above image */
}

.page-download__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffc107; /* Accent color for title */
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__button {
    display: inline-flex;
    flex-direction: column; /* Stack icon and text for large icons */
    align-items: center;
    justify-content: center;
    padding: 20px 30px; /* Adjusted padding for larger content */
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 280px; /* Adjusted min-width for large icons */
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-download__button--primary {
    background-color: #ffc107; /* Accent color */
    color: #007bff; /* Primary color for text */
    border: 2px solid #ffc107;
}

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

.page-download__button--secondary {
    background-color: transparent;
    color: #ffc107; /* Accent color */
    border: 2px solid #ffc107;
}

.page-download__button--secondary:hover {
    background-color: rgba(255, 193, 7, 0.1);
    transform: translateY(-3px);
}

.page-download__button img {
    width: 200px; /* Must be >= 200px as per rule */
    height: 200px; /* Must be >= 200px as per rule */
    vertical-align: middle;
    margin-bottom: 10px; /* Space between icon and text */
    object-fit: contain; /* Ensure the icon fits within the space */
    /* No filters to change color */
}

.page-download__button span {
    display: block; /* Ensure text is on a new line */
}

.page-download__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind content */
}

.page-download__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the wrapper */
    opacity: 0.2; /* Subtle background effect */
    /* No filters to change color */
}

/* General Section Styling */
.page-download__section-title {
    font-size: 2.2em;
    color: #007bff; /* Primary brand color */
    text-align: center;
    margin-bottom: 50px;
    margin-top: 60px;
    font-weight: bold;
}

/* Content Area */
.page-download__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Why App Section */
.page-download__why-app-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background for contrast */
}

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

.page-download__why-app-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-download__why-app-item:hover {
    transform: translateY(-5px);
}

.page-download__why-app-icon {
    width: 100%; /* Ensure images are not tiny */
    max-width: 250px; /* Example max-width, adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    /* No filters to change color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-download__why-app-heading {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-download__why-app-text {
    font-size: 1em;
    color: #555555;
}

/* Download Methods Section */
.page-download__download-methods-section {
    padding: 60px 20px;
}

.page-download__download-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.page-download__tab-content {
    display: none; /* Hide by default */
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-download__tab-content.active {
    display: flex; /* Show active tab */
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.page-download__tab-heading {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}

.page-download__step-by-step {
    flex: 2;
    min-width: 300px;
}

.page-download__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.page-download__step-number {
    background-color: #ffc107;
    color: #007bff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-right: 15px;
}

.page-download__step-details {
    text-align: left;
}

.page-download__step-title {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 5px;
}

.page-download__step-text {
    color: #555555;
    margin-bottom: 10px;
}

.page-download__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    min-width: unset;
    flex-direction: row; /* Small button icons can be side-by-side */
}

.page-download__button--small img {
     /* Smaller icons for small buttons */
     /* Smaller icons for small buttons */
    margin-bottom: 0;
    margin-right: 8px;
}

.page-download__qr-code-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.page-download__qr-code {
    width: 250px; /* Must be >= 200px */
    height: 250px; /* Must be >= 200px */
    margin-bottom: 15px;
    border: 5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* No filters to change color */
}

.page-download__qr-text {
    font-size: 1em;
    color: #555555;
    font-weight: bold;
}

/* Pre-installation Notes Section */
.page-download__pre-installation-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

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

.page-download__note-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-download__note-icon {
    width: 100%; /* Ensure images are not tiny */
    max-width: 300px; /* Example max-width, adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    /* No filters to change color */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-download__note-heading {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-download__note-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 20px;
}

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

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

.page-download__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: #f0f8ff; /* Light hover background */
}

.page-download__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-download__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.8;
}

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

@media (max-width: 768px) {
    .page-download__hero-section {
        padding: 60px 20px;
    }
    .page-download__hero-title {
        font-size: 2em;
    }
    .page-download__hero-description {
        font-size: 0.95em;
    }
    .page-download__hero-actions {
        flex-direction: column;
    }
    .page-download__button {
        width: 100%;
        max-width: 320px; /* Allow buttons to scale but not too wide */
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__why-app-grid,
    .page-download__notes-grid {
        grid-template-columns: 1fr;
    }
    .page-download__tab-content.active {
        flex-direction: column;
        padding: 20px;
    }
    .page-download__step-by-step,
    .page-download__qr-code-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-download__qr-code {
        width: 250px; /* Must be >= 200px */
        height: 250px; /* Must be >= 200px */
    }
    /* Ensure content area images do not overflow */
    .page-download img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure mobile images are not smaller than 200px */
        min-height: 200px; /* Ensure mobile images are not smaller than 200px */
    }
    .page-download__button img {
        width: 200px; /* Must be >= 200px */
        height: 200px; /* Must be >= 200px */
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__hero-description {
        font-size: 0.9em;
    }
    .page-download__section-title {
        font-size: 1.6em;
    }
    .page-download__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-download__faq-toggle {
        right: 20px;
    }
    .page-download__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Ensure no img filter properties */
.page-download img {
    filter: none !important; /* Strictly no filters */
}