/* style/download.css */
/* General styling for the download page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from shared.css body, set here for consistency */
}

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

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-download__hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-download__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title, as per "Register and Login Font" rule */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.page-download__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.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-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-download__btn-primary {
    background-color: #C30808; /* Red for primary CTA (Register/Login color) */
    color: #FFFF00; /* Yellow font for primary CTA */
    border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary brand color for secondary CTA text */
    border: 2px solid #017439;
}

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

.page-download__hero-image-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: contain; /* Ensure image fits well */
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-download__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #FFFF00; /* Yellow for section titles */
}

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

.page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

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

.page-download__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Primary brand color for card titles */
    flex-grow: 0;
}

.page-download__card-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Guide Section */
.page-download__guide-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color for this section */
    color: #ffffff;
    text-align: center;
}

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

.page-download__guide-item {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for guide items */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-download__guide-subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for guide subtitles */
}

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

.page-download__qr-code {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 5px solid #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block; /* Ensures it takes full width of its container up to max-width */
    margin-left: auto;
    margin-right: auto;
}

.page-download__text-link {
    color: #FFFF00;
    text-decoration: underline;
}

.page-download__text-link:hover {
    color: #ffffff;
}

.page-download__step-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    flex-grow: 1;
}

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

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

.page-download__btn-download {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    margin-top: auto; /* Pushes button to the bottom of the card */
}

/* Video Section */
.page-download__video-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-download__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-download__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-download__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent; /* Invisible overlay for click */
    cursor: pointer;
}

.page-download__video-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

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

.page-download__faq-item {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-download__faq-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for FAQ questions */
    margin: 0;
    text-align: left;
}

.page-download__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
    line-height: 1; /* Adjust line-height to center the + / - */
    width: 30px; /* Fixed width to prevent jump */
    text-align: center;
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(0deg); /* No rotation, just change text to '-' */
    content: '−'; /* This won't work in CSS, JS handles it */
}

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

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