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

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

.page-download__section {
    padding: 60px 0;
    margin-bottom: 20px;
    text-align: center;
}

.page-download__section-title {
    font-size: 36px;
    color: #0A2B4C; /* Dark blue for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__text-block {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #0A2B4C, #FFD700); /* Brand colors for hero background */
    color: #ffffff; /* White text for dark background */
}

.page-download__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-download__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-download__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-download__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
}

.page-download__hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

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

.page-download__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-download__btn-primary {
    background: #FFD700; /* Gold background */
    color: #0A2B4C; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
    background: #0A2B4C; /* Dark blue background */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-download__btn-secondary:hover {
    background: #1a3c5d; /* Slightly darker blue on hover */
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Download Section */
.page-download__why-download-section {
    background-color: #f0f5f9; /* Light blue-grey background */
    color: #333333;
}

.page-download__why-download-section .page-download__section-title {
    color: #0A2B4C;
}

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

.page-download__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-download__feature-title {
    font-size: 24px;
    color: #0A2B4C;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download__feature-description {
    font-size: 16px;
    color: #555555;
}

/* Guide Sections (Android & iOS) */
.page-download__android-guide-section,
.page-download__app-features-section,
.page-download__cta-final-section {
    background-color: #0A2B4C; /* Dark blue background */
    color: #ffffff;
}

.page-download__android-guide-section .page-download__section-title,
.page-download__app-features-section .page-download__section-title,
.page-download__cta-final-section .page-download__section-title {
    color: #FFD700; /* Gold for titles on dark background */
}

.page-download__android-guide-section .page-download__text-block,
.page-download__app-features-section .page-download__text-block,
.page-download__cta-final-section .page-download__text-block {
    color: #f0f0f0;
}

.page-download__ios-guide-section {
    background-color: #ffffff;
    color: #333333;
}

.page-download__ios-guide-section .page-download__section-title {
    color: #0A2B4C;
}

.page-download__guide-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-download__guide-content--reverse {
    flex-direction: row-reverse;
}

.page-download__guide-steps {
    flex: 1;
}

.page-download__guide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-download__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.page-download__step-item {
    background: rgba(255, 255, 255, 0.1); /* Light background for steps on dark section */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-download__android-guide-section .page-download__step-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.page-download__android-guide-section .page-download__step-title {
    color: #FFD700;
}

.page-download__ios-guide-section .page-download__step-item {
    background: #fdfdfd;
    color: #333333;
    border: 1px solid #e0e0e0;
}
.page-download__ios-guide-section .page-download__step-title {
    color: #0A2B4C;
}


.page-download__step-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download__step-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.page-download__feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-download__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 6px;
    object-fit: cover;
}

.page-download__feature-card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download__feature-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* FAQ Section */
.page-download__faq-section {
    background-color: #f0f5f9;
    color: #333333;
}

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

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

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #0A2B4C; /* Dark blue for question text */
}

.page-download__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-download__faq-question:active {
    background: #eeeeee;
}

.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #0A2B4C;
}

.page-download__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: #FFD700; /* Gold for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    background-color: #0A2B4C;
    color: #ffffff;
}

.page-download__cta-final-section .page-download__section-title {
    color: #FFD700;
}

.page-download__cta-final-section .page-download__text-block {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px);
    }
    .page-download__main-title {
        font-size: 40px;
    }
    .page-download__hero-description {
        font-size: 18px;
    }
    .page-download__section-title {
        font-size: 30px;
    }
    .page-download__guide-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-download__guide-content--reverse {
        flex-direction: column; /* Keep consistent for tablet */
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-download__hero-section {
        padding: 30px 15px !important; /* Mobile specific padding */
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-download__main-title {
        font-size: 32px;
    }
    .page-download__hero-description {
        font-size: 16px;
    }
    .page-download__section {
        padding: 40px 0;
    }
    .page-download__section-title {
        font-size: 26px;
    }
    .page-download__text-block {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px; /* Add horizontal padding to text blocks */
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-download__cta-button,
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download a[class*="button"],
    .page-download a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__features-grid,
    .page-download__features-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-download__feature-item,
    .page-download__feature-card {
        padding: 20px;
    }
    .page-download__feature-title,
    .page-download__feature-card-title {
        font-size: 20px;
    }
    .page-download__guide-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .page-download__guide-content--reverse {
        flex-direction: column; /* Ensure it stays column for mobile */
    }
    .page-download__guide-image img {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    .page-download__step-item {
        padding: 15px;
    }
    .page-download__step-title {
        font-size: 18px;
    }
    .page-download__faq-list {
        padding: 0 15px;
    }
    .page-download__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-download__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-download__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-download__faq-answer {
        padding: 0 15px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}