.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default background */
}

/* Header offset for main content */
.page-download__hero-section,
.page-download__video-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content */
.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-download__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    background: linear-gradient(135deg, #017439, #005f2f); /* Green gradient */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for prominence */
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-download__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login font yellow */
    border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand green */
    border: 2px solid #ffffff;
}

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

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

/* Dark Sections */
.page-download__dark-section {
    background-color: #017439; /* Brand green */
    color: #ffffff;
    padding: 60px 0;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description {
    color: #ffffff;
}

/* Why Download Section */
.page-download__why-download-section {
    padding: 80px 0;
}

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

.page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
}

.page-download__feature-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slight brightness for icons, not color change */
    max-width: 100%; /* Ensure responsive */
    display: block; /* For proper centering */
    margin-left: auto;
    margin-right: auto;
}

.page-download__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for titles in dark sections */
}

.page-download__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* App Features Section */
.page-download__app-features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-download__content-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-download__content-text {
    flex: 1;
}

.page-download__content-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__content-text p {
    margin-bottom: 15px;
    color: #444444;
}

.page-download__content-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444444;
}

.page-download__content-text li {
    margin-bottom: 8px;
}

.page-download__content-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Download Guide Section */
.page-download__download-guide-section {
    padding: 80px 0;
}

.page-download__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-download__guide-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-download__guide-subtitle {
    font-size: 2em;
    color: #FFFF00;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.page-download__guide-list {
    list-style-type: decimal;
    margin-left: 25px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-download__guide-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-download__guide-list strong {
    color: #ffffff;
}

.page-download__btn-guide {
    width: fit-content;
    margin: 0 auto;
    display: block;
}

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

/* Security Section */
.page-download__security-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-download__security-text {
    flex: 1;
    min-width: 300px;
}

.page-download__security-text p {
    margin-bottom: 15px;
    color: #444444;
}

.page-download__security-image {
    flex: 1;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-download__link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    margin-bottom: 20px;
}

.page-download__link:hover {
    color: #005f2f;
}

/* Promotions Section */
.page-download__promotions-section {
    padding: 80px 0;
}

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

.page-download__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-download__promo-card:hover {
    transform: translateY(-5px);
}

.page-download__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00;
}

.page-download__promo-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-download__btn-promo {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-color: #C30808; /* Consistent button color */
    color: #FFFF00; /* Consistent button font color */
    border: 2px solid #C30808;
}

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

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

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

.page-download__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-download__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* Call to Action Section */
.page-download__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Video Section */
.page-download__video-section {
    padding-bottom: 80px;
    background-color: #f8f8f8;
}

.page-download__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 3em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__content-grid {
        flex-direction: column;
    }
    .page-download__content-image-wrapper {
        margin-top: 30px;
    }
    .page-download__security-content {
        flex-direction: column;
    }
    .page-download__security-image {
        margin-top: 30px;
    }
}