:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8; /* Slightly off-white for sections */
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --button-login: #EA7C07; /* Specific color for login if needed, here used for general CTA */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Default body background */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-download__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

/* Color contrast helpers */
.page-download__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-download__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-download__dark-bg .page-download__section-title {
    color: var(--text-light);
}

.page-download__dark-bg .page-download__section-intro {
    color: var(--text-light);
}

.page-download__text-white {
    color: var(--text-light) !important;
}

/* HERO Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%); /* Light blue gradient */
    overflow: hidden; /* For image positioning */
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image if positioned */
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 0;
}

.page-download__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-download__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-download__hero-description {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: var(--button-login); /* Using specific color for login-like CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__cta-button:hover {
    background: #d46b06; /* Darker version of #EA7C07 */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Sections padding */
.page-download__why-app-section,
.page-download__how-to-download-section,
.page-download__app-features-section,
.page-download__faq-section,
.page-download__news-section,
.page-download__final-cta-section {
    padding: 80px 0;
}

/* Why App Section */
.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download__feature-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px; /* Ensure cards have consistent height */
}

.page-download__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-card img {
    width: 100%;
    max-width: 200px; /* Max width for feature images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-download__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 16px;
    color: var(--text-dark);
    flex-grow: 1;
}

/* How to Download Section */
.page-download__download-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.page-download__guide-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-download__guide-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-download__guide-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__qr-code {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.page-download__guide-steps {
    list-style: decimal;
    text-align: left;
    color: var(--text-light);
    font-size: 17px;
    margin: 0 0 30px 20px;
    padding: 0;
    max-width: 500px; /* Constrain step width */
}

.page-download__guide-steps li {
    margin-bottom: 15px;
}

.page-download__guide-steps strong {
    color: var(--secondary-color);
}

.page-download__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-login);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary:hover {
    background: #d46b06; /* Darker version of #EA7C07 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__btn-block {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

/* App Features Section */
.page-download__features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download__feature-item {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
}

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

.page-download__feature-item img {
    width: 100%;
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-download__feature-item-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-download__feature-item-description {
    font-size: 16px;
    color: var(--text-dark);
    flex-grow: 1;
}

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

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* 🚨 Using !important */
    padding: 20px 15px !important; /* 🚨 Using !important */
    opacity: 1;
    background: var(--background-light);
    border-radius: 0 0 5px 5px;
}

.page-download__faq-answer p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-download__faq-question:hover {
    background: var(--background-light);
    border-color: #c7c7c7; /* Darker version of #e0e0e0 */
}

.page-download__faq-question:active {
    background: #eeeeee;
}

.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}