/* style/download.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-color-light: #FFFFFF;
    --background-color-dark: #000000; /* Assuming --dark-bg-1 is dark */
    --border-color: #e0e0e0;
    --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the download page, assuming a dark body background from shared.css */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg); /* Default text color for light sections */
    background-color: var(--background-color-light); /* Default background for main content sections */
}

.page-download__dark-section {
    background-color: var(--primary-color); /* Using brand primary color for dark sections */
    color: var(--text-color-dark-bg); /* White text for dark sections */
}

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

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

.page-download__section-description {
    font-size: 1.1em;
    color: inherit; /* Inherit color from parent section */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-download__hero-video-link {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Below content */
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    display: block; /* Ensure the link takes up space */
    cursor: pointer; /* Indicate it's clickable */
}

.page-download__hero-video {
    width: 100%; /* Fill the link wrapper */
    height: 100%; /* Fill the link wrapper */
    object-fit: cover; /* Ensure video covers area */
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-download__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-color-dark-bg); /* White text on dark overlay */
    max-width: 900px;
    padding: 20px;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-dark-bg);
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-color-dark-bg);
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-download__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    border: 2px solid var(--primary-color);
}

.page-download__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-download__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-download__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-download__btn-icon {
    width: 40px; /* Display size for button icons */
    height: 40px; /* Display size for button icons */
    margin-right: 10px;
    object-fit: contain;
    /* No filter allowed here */
}

.page-download__qr-codes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-download__qr-item {
    text-align: center;
    color: var(--text-color-dark-bg);
}

.page-download__qr-item img {
    width: 200px; /* Display size */
    height: 200px; /* Display size */
    border: 5px solid var(--text-color-dark-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    display: block; /* Ensure it behaves as a block element for centering */
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    /* No filter allowed here */
}

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