/* style/download.css */

/* Base styles 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: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

/* Fixed header spacing */
/* Assuming shared.css does NOT set body padding-top, so applying it here. */
.page-download__hero-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: 40px 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-download__hero-section {
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden; /* For image positioning */
}

.page-download__dark-bg {
    background-color: #0a0a0a; /* Use the actual body background color for dark sections */
    color: #ffffff;
}

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-download__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

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

/* Hero section specific */
.page-download__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    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;
    cursor: pointer;
    border: none;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* For long button text */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
}

.page-download__btn-primary,
.page-download__btn-secondary { /* Both primary and secondary will use the same style for now to ensure contrast */
    background-color: #C30808; /* Custom color for Register/Login buttons */
    color: #FFFF00; /* Custom font color */
}

.page-download__btn-primary:hover,
.page-download__btn-secondary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-download__hero-image-wrapper {
    position: relative;
    max-width: 800px; /* Constrain image width */
    margin: 0 auto;
    padding-top: 20px;
}

.page-download__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    filter: none !important; /* Ensure image maintains original color */
}

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

.page-download__card {
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for light background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-download__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    filter: none !important;
}

.page-download__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
}

.page-download__feature-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* How to Download Section */
.page-download__how-to-download-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    padding-bottom: 60px;
}

.page-download__how-to-download-section .page-download__section-title {
    color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-description {
    color: #f0f0f0;
}

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

.page-download__guide-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-download__guide-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #017439; /* Brand color */
    width: 100%;
}

.page-download__qr-code {
    width: 250px;
    height: 250px;
    display: block;
    margin: 0 auto 25px auto;
    border: 5px solid #ffffff;
    border-radius: 5px;
    object-fit: contain;
    filter: none !important;
}

.page-download__guide-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    flex-grow: 1; /* Allow list to take up available space */
}

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

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

/* App Features Section */
.page-download__app-features-section {
    padding-bottom: 60px;
}

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

.page-download__feature-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-download__feature-sub-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
}

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

.page-download__faq-section .page-download__section-title {
    color: #ffffff;
}

.page-download__faq-section .page-download__section-description {
    color: #f0f0f0;
}

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

.page-download__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    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: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

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

.page-download__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
    line-height: 1;
}

.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: #f0f0f0;
}

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