/* style/download.css */

/* Base Styles & Typography */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--dark-bg-1); /* Inherited from shared, will be dark */
}

.page-download__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-download__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.page-download__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-download__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: inherit;
}

.page-download__hero-description,
.page-download__text-block,
.page-download__list-item,
.page-download__card-description,
.page-download p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Buttons */
.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-download__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-download__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-download__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-download__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Fallback for image loading */
}

.page-download__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)); /* Dark overlay for text readability */
    z-index: 0;
}

.page-download__hero-section .page-download__container {
    z-index: 1;
    position: relative;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: none; /* No CSS filters applied to image */
}

/* Intro Section */
.page-download__intro-section {
    padding: 60px 0;
}

.page-download__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-download__feature-list .page-download__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-download__feature-list .page-download__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0; /* Color for the checkmark */
    font-size: 1.2em;
    line-height: 1;
}

/* Guide Section */
.page-download__guide-section {
    padding: 60px 0;
}

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

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

.page-download__qr-code {
    display: block;
    margin: 20px auto 0;
    max-width: 250px;
    height: auto;
    border: 5px solid #26A9E0;
    border-radius: 10px;
}

.page-download__step-list {
    list-style: decimal;
    padding-left: 20px;
    text-align: left;
    margin-top: 20px;
}

.page-download__step-list .page-download__list-item {
    margin-bottom: 10px;
}

/* Video Section */
.page-download__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-download__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    border-radius: 10px;
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
}

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

.page-download__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-download__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px;
}

.page-download__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

.page-download__faq-list {
    margin-top: 40px;
}

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(45deg);
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ffffff;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

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

.page-download__cta-bottom-section .page-download__dark-bg {
    padding: 40px 20px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__hero-section {
        padding-top: var(--header-offset, 100px);
    }
}

@media (max-width: 768px) {
    .page-download__main-title {
        font-size: 2.2em;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__subsection-title {
        font-size: 1.5em;
    }
    .page-download__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-download__container {
        padding: 0 15px;
    }
    .page-download__platform-guide,
    .page-download__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-download__video-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio for better mobile viewing if needed, or keep 16:9 */
    }
    .page-download__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-download__cta-bottom-section .page-download__dark-bg {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 1.8em;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__hero-description,
    .page-download__text-block,
    .page-download__list-item,
    .page-download__card-description,
    .page-download p {
        font-size: 1em;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-download__faq-answer {
        padding: 15px;
    }
}

/* Image color filter restriction (as per instructions) */
.page-download img {
    filter: none; /* Ensure no CSS filters are applied to images */
}

/* Ensure contrast for text on dark background from hero image */
.page-download__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-download__cta-bottom-section .page-download__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}