/* style/download-center.css */

/* Variables for consistent styling */
:root {
    --page-download-center-primary-color: #0A2463; /* Deep Blue */
    --page-download-center-secondary-color: #FFD700; /* Gold */
    --page-download-center-text-light: #FFFFFF;
    --page-download-center-text-dark: #333333; /* Dark gray for general text */
    --page-download-center-text-accent: #FFD700; /* Gold for highlights */
    --page-download-center-background-light: #F8F8F8; /* Light gray background */
    --page-download-center-background-dark: #0A2463; /* Deep blue background */
    --page-download-center-border-color: #E0E0E0;
    --page-download-center-font-family: 'Arial', sans-serif; /* Or a suitable Vietnamese-friendly font */
}

.page-download-center {
    font-family: var(--page-download-center-font-family);
    line-height: 1.6;
    color: var(--page-download-center-text-dark);
    background-color: var(--page-download-center-background-light);
}

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

/* Hero Section */
.page-download-center__hero {
    background: linear-gradient(135deg, var(--page-download-center-background-dark) 0%, #1A3C8B 100%); /* Dark blue gradient */
    color: var(--page-download-center-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-download-center__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--page-download-center-text-light);
    font-weight: bold;
}

.page-download-center__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-download-center__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.page-download-center__hero-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-download-center__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.page-download-center__btn--primary {
    background-color: var(--page-download-center-secondary-color); /* Gold */
    color: var(--page-download-center-primary-color); /* Deep Blue */
    border: 2px solid var(--page-download-center-secondary-color);
}

.page-download-center__btn--primary:hover {
    background-color: #E6C200; /* Slightly darker gold */
    transform: translateY(-3px);
}

.page-download-center__btn--secondary {
    background-color: transparent;
    color: var(--page-download-center-secondary-color); /* Gold */
    border: 2px solid var(--page-download-center-secondary-color);
}

.page-download-center__btn--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.page-download-center__btn--download {
    background-color: var(--page-download-center-primary-color); /* Deep Blue */
    color: var(--page-download-center-text-light);
    border: 2px solid var(--page-download-center-primary-color);
}

.page-download-center__btn--download:hover {
    background-color: #071A47; /* Slightly darker blue */
    transform: translateY(-3px);
}

.page-download-center__btn--details {
    background-color: transparent;
    color: var(--page-download-center-primary-color); /* Deep Blue */
    border: 2px solid var(--page-download-center-primary-color);
}

.page-download-center__btn--details:hover {
    background-color: rgba(10, 36, 99, 0.1);
    transform: translateY(-3px);
}

.page-download-center__btn--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Section Styling */
.page-download-center__section {
    padding: 60px 0;
    text-align: center;
}

.page-download-center__section:nth-of-type(even) {
    background-color: var(--page-download-center-background-light);
}

.page-download-center__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-download-center-primary-color);
    font-weight: bold;
}

.page-download-center__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--page-download-center-text-dark);
}

/* Why Choose Section */
.page-download-center__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-download-center__feature-item {
    background-color: var(--page-download-center-text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-download-center__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-download-center__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.page-download-center__feature-title {
    font-size: 1.5em;
    color: var(--page-download-center-primary-color);
    margin-bottom: 10px;
}

.page-download-center__feature-description {
    font-size: 1em;
    color: var(--page-download-center-text-dark);
}

/* Download Options Section */
.page-download-center__download-options {
    background-color: var(--page-download-center-background-light);
}

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

.page-download-center__download-card {
    background-color: var(--page-download-center-text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease; /* Added opacity and transform */
    opacity: 0;
    transform: translateY(20px);
}

.page-download-center__download-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-download-center__download-card:hover {
    transform: translateY(-10px) translateY(0); /* Adjust for is-visible transform */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-download-center__download-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.page-download-center__card-title {
    font-size: 1.8em;
    color: var(--page-download-center-primary-color);
    margin-bottom: 10px;
}

.page-download-center__card-description {
    font-size: 1em;
    color: var(--page-download-center-text-dark);
    flex-grow: 1; /* Allows description to take available space */
}

.page-download-center__qr-code {
    margin: 20px 0;
}

.page-download-center__qr-image {
    width: 150px;
    height: 150px;
    border: 5px solid var(--page-download-center-secondary-color);
    border-radius: 5px;
}

/* App Advantages Section */
.page-download-center__app-advantages {
    background-color: var(--page-download-center-background-dark);
    color: var(--page-download-center-text-light);
}

.page-download-center__app-advantages .page-download-center__section-title {
    color: var(--page-download-center-text-light);
}

.page-download-center__app-advantages .page-download-center__section-intro {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-download-center__advantage-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-download-center__advantage-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-download-center__advantage-title {
    font-size: 1.4em;
    color: var(--page-download-center-secondary-color);
    margin-bottom: 10px;
}

.page-download-center__advantage-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* Detail Pages Section */
.page-download-center__detail-pages {
    background-color: var(--page-download-center-background-light);
}

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

.page-download-center__detail-item {
    background-color: var(--page-download-center-text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download-center__detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-download-center__detail-title {
    font-size: 1.3em;
    color: var(--page-download-center-primary-color);
    margin-bottom: 5px;
}

.page-download-center__detail-title a {
    color: var(--page-download-center-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-download-center__detail-title a:hover {
    color: var(--page-download-center-secondary-color);
    text-decoration: underline;
}

.page-download-center__detail-description {
    font-size: 0.95em;
    color: var(--page-download-center-text-dark);
    flex-grow: 1;
}

.page-download-center__btn--view-details {
    margin-top: 15px;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: var(--page-download-center-secondary-color);
    color: var(--page-download-center-primary-color);
    border: none;
}

.page-download-center__btn--view-details:hover {
    background-color: #E6C200;
}

/* FAQ Section */
.page-download-center__faq {
    background-color: var(--page-download-center-background-dark);
    color: var(--page-download-center-text-light);
}

.page-download-center__faq .page-download-center__section-title {
    color: var(--page-download-center-text-light);
}

.page-download-center__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
}

.page-download-center__faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* Space for indicator */
    font-size: 1.2em;
    color: var(--page-download-center-secondary-color);
    margin-bottom: 10px;
}

.page-download-center__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: var(--page-download-center-secondary-color);
}

.page-download-center__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation for minus */
}

.page-download-center__faq-answer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.page-download-center__faq-answer a {
    color: var(--page-download-center-secondary-color);
    text-decoration: underline;
}

.page-download-center__faq-answer a:hover {
    color: #E6C200;
}

/* Final CTA Section */
.page-download-center__final-cta {
    background-color: var(--page-download-center-secondary-color); /* Gold background */
    color: var(--page-download-center-primary-color); /* Dark blue text */
    padding: 80px 0;
}

.page-download-center__final-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-download-center__final-cta .page-download-center__section-title {
    color: var(--page-download-center-primary-color);
    margin-bottom: 25px;
}

.page-download-center__final-cta .page-download-center__section-intro {
    color: var(--page-download-center-primary-color);
    margin-bottom: 40px;
}

.page-download-center__final-cta .page-download-center__btn--primary {
    background-color: var(--page-download-center-primary-color);
    color: var(--page-download-center-secondary-color);
    border: 2px solid var(--page-download-center-primary-color);
}

.page-download-center__final-cta .page-download-center__btn--primary:hover {
    background-color: #071A47; /* Slightly darker blue */
    color: #FFEA80; /* Slightly lighter gold */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-download-center__hero-title {
        font-size: 2.5em;
    }
    .page-download-center__section-title {
        font-size: 2em;
    }
    .page-download-center__features-grid,
    .page-download-center__download-options .page-download-center__container,
    .page-download-center__advantages-list,
    .page-download-center__detail-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-download-center__hero {
        padding: 60px 0;
    }
    .page-download-center__hero-title {
        font-size: 2em;
    }
    .page-download-center__hero-description {
        font-size: 1em;
    }
    .page-download-center__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-download-center__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-download-center__section {
        padding: 40px 0;
    }
    .page-download-center__section-title {
        font-size: 1.8em;
    }
    .page-download-center__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-download-center__features-grid,
    .page-download-center__download-options .page-download-center__container,
    .page-download-center__advantages-list,
    .page-download-center__detail-list {
        grid-template-columns: 1fr;
    }
    .page-download-center__download-card,
    .page-download-center__feature-item,
    .page-download-center__advantage-item,
    .page-download-center__detail-item,
    .page-download-center__faq-item {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .page-download-center__hero-title {
        font-size: 1.8em;
    }
    .page-download-center__btn--large {
        padding: 15px 30px;
        font-size: 1em;
    }
    .page-download-center__qr-image {
        width: 120px;
        height: 120px;
    }
}