.page-download {
    color: #ffffff; /* Body background is dark, so text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a2e; /* Ensure consistency with body background if not set by shared.css */
}

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

.page-download__container--center {
    text-align: center;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-download__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.page-download__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    cursor: pointer; /* Indicate clickability */
}

.page-download__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 8px;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for titles */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-download__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

.page-download__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-download__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-download__btn-full-width {
    width: 100%;
    text-align: center;
}

/* General Section Styling */
.page-download__section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-download__section:nth-of-type(even) {
    background-color: #0d0d1e; /* Slightly different dark shade for contrast */
}

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

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

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

.page-download__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    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-item:hover {
    transform: translateY(-10px);
}

.page-download__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #017439; /* Brand primary color for icon background */
    padding: 10px;
    box-sizing: border-box;
}

.page-download__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-download__feature-text {
    color: #e0e0e0;
}

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

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

.page-download__platform-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #017439; /* Brand primary color */
    text-align: center;
}

.page-download__qr-code {
    margin-bottom: 30px;
    text-align: center;
}

.page-download__qr-code img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    height: auto;
    border: 5px solid #ffffff;
    border-radius: 5px;
    display: block;
    margin: 0 auto 15px auto;
}

.page-download__qr-code p {
    font-size: 0.9em;
    color: #cccccc;
}

.page-download__download-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

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

.page-download__step-icon {
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 15px;
}

.page-download__step-text {
    flex-grow: 1;
    color: #e0e0e0;
}

.page-download__note-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1em;
    color: #cccccc;
}

/* App Features Section */
.page-download__features-grid--large {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-download__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-download__feature-card-title {
    font-size: 1.8em;
    color: #017439; /* Brand primary color */
    padding: 20px 25px 10px 25px;
}

.page-download__feature-card-text {
    color: #e0e0e0;
    padding: 0 25px 25px 25px;
    flex-grow: 1;
}

/* Security and Reliability Section */
.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-download__security-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-list {
    list-style: none;
    padding: 0;
    flex: 1;
    min-width: 300px;
}

.page-download__security-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.page-download__security-list li strong {
    color: #FFFF00; /* Custom font color for emphasis */
    margin-right: 8px;
}

.page-download__security-list li::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
    flex-shrink: 0;
}

.page-download__security-footer-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #cccccc;
}

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

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease;
}

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

.page-download__faq-item-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439; /* Brand primary color for FAQ questions */
}

.page-download__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for toggle */
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-download__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA Section */
.page-download__final-cta .page-download__section-title {
    color: #FFFF00; /* Custom font color for final CTA title */
}

.page-download__final-cta .page-download__cta-group {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__features-grid--large {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-download__container {
        padding: 0 15px;
    }

    .page-download__hero-section {
        padding: 80px 0;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-download__hero-title {
        font-size: 2.2em;
    }

    .page-download__hero-description {
        font-size: 1em;
    }

    .page-download__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-download__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 {
        grid-template-columns: 1fr;
    }

    .page-download__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-download__platform-guide {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-download__platform-card {
        padding: 30px;
    }

    .page-download__qr-code img {
        
        
    }

    .page-download__features-grid--large {
        grid-template-columns: 1fr;
    }

    .page-download__feature-image {
        height: 200px;
    }

    .page-download__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-download__security-image {
        max-width: 300px;
    }

    .page-download__security-list {
        min-width: unset;
        width: 100%;
    }

    .page-download__faq-item-title {
        font-size: 1.1em;
    }

    /* Mobile image/video responsiveness */
    .page-download img,
    .page-download video,
    .page-download__video {
        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,
    .page-download__cta-group,
    .page-download__button-group,
    .page-download__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-download__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@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-card-title {
        font-size: 1.5em;
    }
}

/* Contrast Fixes (as per instructions) */
.page-download__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-download__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}