/* style/download.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
}

.page-download {
    background-color: #0a0a0a; /* Body background from shared.css is dark */
    color: var(--text-on-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), #1a3a7f); /* Darker gradient for contrast */
    color: var(--text-on-dark);
}

.page-download__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-download__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-download__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-download__section {
    padding: 60px 20px;
    background-color: #0a0a0a; /* Ensure consistency with body background */
    color: var(--text-on-dark);
}

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

.page-download__heading {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-download__sub-heading {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.page-download__description {
    font-size: 17px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-on-dark);
}

.page-download__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-download__link-inline {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-download__link-inline:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-download__card {
    background: var(--card-bg-dark-mode); /* Dark mode card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-download__card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-download__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    max-width: 100%;
}

.page-download__card p {
    font-size: 16px;
    color: var(--text-on-dark);
    margin-bottom: 15px;
}

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

.page-download__list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-download__list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-download__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
    width: auto; /* Allow natural width */
    min-width: 180px;
}

.page-download__btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0A2463;
}

.page-download__btn-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FFC107);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-download__btn-secondary:hover {
    background: #1a3a7f;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-download__center-button {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-download__faq-list {
    margin-top: 30px;
}

.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg-dark-mode);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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 30px;
    opacity: 0;
    color: var(--text-on-dark);
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* Ensure it expands fully */
    padding: 20px 30px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for open answer */
    border-radius: 0 0 10px 10px;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--card-bg-dark-mode);
    border: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-dark);
}

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

.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color);
}

.page-download__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 40px;
    }
    .page-download__heading {
        font-size: 30px;
    }
    .page-download__sub-heading {
        font-size: 22px;
    }
    .page-download__card-title {
        font-size: 20px;
    }
    .page-download__card-image {
        height: 200px;
    }
    .page-download__card p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-download__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
    }
    .page-download__section {
        padding: 40px 15px;
    }
    .page-download__container {
        padding: 0;
    }
    .page-download__heading {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-download__sub-heading {
        font-size: 20px;
        text-align: center;
    }
    .page-download__card {
        padding: 20px;
    }
    .page-download__card-title {
        font-size: 18px;
    }
    .page-download__card-image {
        height: 180px;
    }
    .page-download__card p {
        font-size: 14px;
    }
    .page-download__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__list {
        padding-left: 20px;
        font-size: 14px;
    }
    .page-download__list li {
        font-size: 14px;
    }
    .page-download__cta-button {
        font-size: 16px;
        padding: 12px 25px;
        width: 100%;
        box-sizing: border-box;
        max-width: 300px; /* Limit button width on small screens */
        margin-left: auto;
        margin-right: auto;
    }
    .page-download__faq-question {
        padding: 15px 20px;
    }
    .page-download__faq-question h3 {
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}