/* style/download.css */

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

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

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

/* Section specific styles */
.page-download__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Dark background sections */
.page-download__dark-section {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff; /* White text for dark background */
    padding: 80px 0;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__section-description,
.page-download__dark-section .page-download__feature-title,
.page-download__dark-section .page-download__feature-text,
.page-download__dark-section .page-download__step-title,
.page-download__dark-section .page-download__step-text,
.page-download__dark-section .page-download__list-title,
.page-download__dark-section .page-download__list-text,
.page-download__dark-section .page-download__security-title,
.page-download__dark-section .page-download__security-text,
.page-download__dark-section .page-download__video-caption,
.page-download__dark-section .page-download__faq-question h3,
.page-download__dark-section .page-download__faq-answer p {
    color: #ffffff; /* Ensure all text elements are white */
}

.page-download__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

/* Hero section */
.page-download__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    text-align: center;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dim image for text readability */
}

.page-download__hero-section .page-download__container {
    position: relative;
    z-index: 2;
    padding-top: 50px; /* Additional spacing below header offset */
    padding-bottom: 50px;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* CTA Buttons */
.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller 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, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-download__btn-primary {
    background-color: #C30808; /* Custom color for register/login/download */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for dark sections */
    border: 2px solid #ffffff; /* White border for dark sections */
}

.page-download__dark-section .page-download__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}
.page-download__light-bg .page-download__btn-secondary {
    color: #017439; /* Brand green for light sections */
    border-color: #017439;
}

.page-download__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}
.page-download__light-bg .page-download__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

.page-download__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.page-download__dark-section .page-download__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-download__feature-icon {
    width: 200px; /* Minimum display size */
    height: 150px;
    margin: 0 auto 20px auto;
    object-fit: cover;
    border-radius: 8px;
}


.page-download__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}
.page-download__dark-section .page-download__feature-title {
    color: #ffffff;
}

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

/* How to download section */
.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-download__step-item {
    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.05);
}
.page-download__light-bg .page-download__step-item {
    background-color: #f9f9f9;
}

.page-download__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}
.page-download__light-bg .page-download__step-title {
    color: #017439;
}

.page-download__step-text {
    font-size: 1em;
    color: #f0f0f0;
}
.page-download__light-bg .page-download__step-text {
    color: #666666;
}

.page-download__download-options {
    display: flex;
    flex-direction: column; /* Stack buttons vertically for better mobile experience */
    gap: 15px;
    margin-top: 25px;
}

.page-download__btn-android,
.page-download__btn-ios {
    background-color: #C30808; /* Custom color */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
    width: 100%; /* Full width on mobile */
}

/* Video Section */
.page-download__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-download__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #ffffff;
}

/* App Features List */
.page-download__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__list-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.page-download__dark-section .page-download__list-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-download__list-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}
.page-download__dark-section .page-download__list-title {
    color: #ffffff;
}

.page-download__list-text {
    font-size: 1em;
    color: #666666;
}
.page-download__dark-section .page-download__list-text {
    color: #f0f0f0;
}

/* Security Section */
.page-download__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-download__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.page-download__dark-section .page-download__security-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-download__security-icon {
    width: 200px; /* Min display size */
    height: 150px;
    margin: 0 auto 20px auto;
    object-fit: cover;
    border-radius: 8px;
}