.page-download {
    color: #333333; /* Dark text for default light body background */
}

.page-download__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #1E90FF, #0f4a7f); /* Deep blue gradient background */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-download__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.page-download__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #f0f0f0;
}

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

.page-download__btn {
    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, transform 0.3s ease;
    white-space: nowrap;
}

.page-download__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #1E90FF; /* Deep blue text */
    border: 2px solid #FFD700;
}

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

.page-download__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-download__btn--secondary:hover {
    background-color: #FFD700;
    color: #1E90FF;
    transform: translateY(-3px);
}

.page-download__hero-image {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.page-download__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

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

.page-download__why-app-section,
.page-download__methods-section,
.page-download__pre-installation-section,
.page-download__faq-section {
    padding: 80px 0;
}

.page-download__why-app-section,
.page-download__pre-installation-section {
    background-color: #f8f8f8;
}

.page-download__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1E90FF; /* Deep blue for section titles */
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-download__feature-item,
.page-download__note-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-download__feature-item:hover,
.page-download__note-item:hover {
    transform: translateY(-5px);
}

.page-download__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-download__feature-title,
.page-download__note-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #FFD700; /* Gold for feature titles */
    margin-bottom: 15px;
}

.page-download__feature-text,
.page-download__note-text {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
}

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

.page-download__platform-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__platform-title {
    font-size: 2em;
    font-weight: 700;
    color: #1E90FF; /* Deep blue for platform titles */
    margin-bottom: 30px;
}

.page-download__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}

.page-download__steps-list li {
    font-size: 1.1em;
    color: #444444;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
}

.page-download__steps-list li:last-child {
    margin-bottom: 0;
}

.page-download__steps-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #FFD700; /* Gold step indicator */
    color: #1E90FF;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9em;
}

.page-download__steps-list li:nth-child(1)::before { content: '1'; }
.page-download__steps-list li:nth-child(2)::before { content: '2'; }
.page-download__steps-list li:nth-child(3)::before { content: '3'; }
.page-download__steps-list li:nth-child(4)::before { content: '4'; }

.page-download__btn--android {
    background-color: #4CAF50; /* Green for Android */
    color: #ffffff;
    border: 2px solid #4CAF50;
}

.page-download__btn--android:hover {
    background-color: #43a047;
}

.page-download__btn--ios {
    background-color: #007AFF; /* Blue for iOS */
    color: #ffffff;
    border: 2px solid #007AFF;
}

.page-download__btn--ios:hover {
    background-color: #006ee6;
}

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

.page-download__faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #1E90FF; /* Deep blue for FAQ questions */
    cursor: pointer;
    background-color: #f0f7ff; /* Lighter blue background for summary */
    border-bottom: 1px solid #e0e0e0;
}

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

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

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

.page-download__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

.page-download__faq-answer p {
    margin: 0;
}

.page-download__faq-link {
    color: #1E90FF;
    text-decoration: underline;
}

.page-download__faq-link:hover {
    color: #0f4a7f;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding-bottom: 40px;
    }
    .page-download__hero-title {
        font-size: 2.2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-download__why-app-section,
    .page-download__methods-section,
    .page-download__pre-installation-section,
    .page-download__faq-section {
        padding: 60px 0;
    }
    .page-download__section-title {
        font-size: 1.8em;
    }
    .page-download__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-download__features-grid,
    .page-download__notes-grid,
    .page-download__download-guide {
        grid-template-columns: 1fr;
    }
    .page-download__feature-item,
    .page-download__note-item,
    .page-download__platform-card {
        padding: 25px;
    }
    .page-download__feature-item img, .page-download__note-item img, .page-download__platform-card img, .page-download__faq-item img {
        max-width: 100%;
        height: auto; /* Ensure images scale down */
        min-width: 200px; /* Maintain minimum size for content images */
        min-height: 200px;
    }
    .page-download__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-download__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile specific image rule for content area */
    .page-download img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content area does not cause horizontal scroll */
    .page-download {
        overflow-x: hidden;
    }
}

@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.5em;
    }
    .page-download__feature-title,
    .page-download__note-title {
        font-size: 1.4em;
    }
    .page-download__platform-title {
        font-size: 1.8em;
    }
    .page-download__steps-list li {
        font-size: 0.95em;
    }
}