/* style/download-app.css */

/* Biến CSS */
:root {
    --page-download-app-primary-color: #0A246A;
    --page-download-app-secondary-color: #FFD700;
    --page-download-app-text-dark: #0A246A; /* Sử dụng màu chính làm màu chữ đậm */
    --page-download-app-text-light: #FFFFFF;
    --page-download-app-background-light: #F0F2F5;
    --page-download-app-background-dark: #0A246A;
    --page-download-app-border-color: #E0E0E0;
    --page-download-app-hover-primary: #071A4F;
    --page-download-app-hover-secondary: #E6C200;
}

.page-download-app {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-download-app-text-dark);
    background-color: var(--page-download-app-background-light);
}

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

.page-download-app__section {
    padding: 60px 0;
    text-align: center;
}

.page-download-app__section:nth-of-type(even) {
    background-color: #FFFFFF;
}

.page-download-app__section-title {
    font-size: 2.8em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-download-app__section-intro {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-download-app__highlight {
    color: var(--page-download-app-secondary-color);
}

/* Hero Section */
.page-download-app__hero {
    background: linear-gradient(135deg, var(--page-download-app-primary-color) 0%, #1A3E8A 100%);
    color: var(--page-download-app-text-light);
    padding: 80px 0;
    text-align: left;
}

.page-download-app__hero > .page-download-app__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-download-app__hero-content {
    flex: 1;
}

.page-download-app__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
}

.page-download-app__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-download-app__download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.page-download-app__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-download-app__btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.page-download-app__btn--primary {
    background-color: var(--page-download-app-secondary-color);
    color: var(--page-download-app-primary-color);
    border: 2px solid var(--page-download-app-secondary-color);
}

.page-download-app__btn--primary:hover {
    background-color: var(--page-download-app-hover-secondary);
    border-color: var(--page-download-app-hover-secondary);
    transform: translateY(-2px);
}

.page-download-app__btn--secondary {
    background-color: transparent;
    color: var(--page-download-app-secondary-color);
    border: 2px solid var(--page-download-app-secondary-color);
}

.page-download-app__btn--secondary:hover {
    background-color: var(--page-download-app-secondary-color);
    color: var(--page-download-app-primary-color);
    transform: translateY(-2px);
}

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

.page-download-app__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
}

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

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

/* Why Download Section */
.page-download-app__why-download {
    background-color: var(--page-download-app-background-light);
}

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

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

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

.page-download-app__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--page-download-app-secondary-color);
}

.page-download-app__feature-title {
    font-size: 1.5em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 15px;
}

.page-download-app__feature-item p {
    color: #666;
}

/* How To Download Section */
.page-download-app__how-to-download {
    background-color: #FFFFFF;
}

.page-download-app__download-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: left;
}

.page-download-app__platform-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.page-download-app__platform-title {
    font-size: 2.2em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
}

.page-download-app__step-card {
    background-color: var(--page-download-app-background-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding-left: 70px; /* Space for step number */
    width: 100%;
    box-sizing: border-box;
}

.page-download-app__step-number {
    position: absolute;
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    background-color: var(--page-download-app-secondary-color);
    color: var(--page-download-app-primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-download-app__step-title {
    font-size: 1.4em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 5px;
}

.page-download-app__step-card p {
    color: #666;
    font-size: 1em;
}

.page-download-app__qr-code-wrapper {
    text-align: center;
    margin: 20px 0;
}

.page-download-app__qr-code {
    width: 180px;
    height: 180px;
    border: 5px solid var(--page-download-app-secondary-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-download-app__qr-code-wrapper p {
    margin-top: 10px;
    font-style: italic;
    color: #777;
}

.page-download-app__btn--android, .page-download-app__btn--ios {
    margin-top: 15px;
    align-self: center; /* Center buttons within step cards */
}

.page-download-app__platform-image {
    max-width: 300px;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* App Features Section */
.page-download-app__app-features {
    background-color: var(--page-download-app-background-light);
}

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

.page-download-app__feature-detail-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download-app__feature-detail-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: var(--page-download-app-primary-color);
}

.page-download-app__feature-detail-title {
    font-size: 1.3em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 10px;
}

.page-download-app__feature-overview-image {
    max-width: 80%;
    height: auto;
    margin-top: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-download-app__faq {
    background-color: #FFFFFF;
}

.page-download-app__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-download-app__faq-item {
    background-color: var(--page-download-app-background-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-download-app__faq-question {
    font-size: 1.2em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-download-app__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-download-app__faq-item.active .page-download-app__faq-question::after {
    transform: rotate(45deg);
}

.page-download-app__faq-answer {
    color: #555;
    font-size: 1em;
    padding-top: 10px;
    border-top: 1px solid var(--page-download-app-border-color);
    display: none;
}

.page-download-app__faq-item.active .page-download-app__faq-answer {
    display: block;
}

/* Related Pages Section */
.page-download-app__related-pages {
    background-color: var(--page-download-app-background-light);
}

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

.page-download-app__link-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download-app__link-card h3 {
    font-size: 1.4em;
    color: var(--page-download-app-primary-color);
    margin-bottom: 15px;
}

.page-download-app__link-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-download-app__link-card .page-download-app__btn {
    align-self: flex-start;
    background-color: var(--page-download-app-primary-color);
    color: var(--page-download-app-text-light);
    border: 2px solid var(--page-download-app-primary-color);
}

.page-download-app__link-card .page-download-app__btn:hover {
    background-color: var(--page-download-app-hover-primary);
    border-color: var(--page-download-app-hover-primary);
}

/* Final CTA Section */
.page-download-app__final-cta {
    background-color: var(--page-download-app-primary-color);
    color: var(--page-download-app-text-light);
    padding: 80px 0;
}

.page-download-app__final-cta .page-download-app__section-title {
    color: var(--page-download-app-text-light);
}

.page-download-app__final-cta .page-download-app__section-intro {
    color: rgba(255, 255, 255, 0.9);
}

.page-download-app__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-download-app__hero > .page-download-app__container {
        flex-direction: column;
        text-align: center;
    }

    .page-download-app__hero-content {
        order: 2;
    }

    .page-download-app__hero-image-wrapper {
        order: 1;
        margin-bottom: 40px;
    }

    .page-download-app__download-buttons {
        justify-content: center;
    }

    .page-download-app__section-title {
        font-size: 2.2em;
    }

    .page-download-app__hero-title {
        font-size: 2.8em;
    }

    .page-download-app__download-steps {
        grid-template-columns: 1fr;
    }

    .page-download-app__platform-section {
        align-items: center;
        text-align: center;
    }

    .page-download-app__step-card {
        padding-left: 25px;
        text-align: left;
    }

    .page-download-app__step-number {
        position: static;
        margin-bottom: 10px;
    }

    .page-download-app__link-card .page-download-app__btn {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .page-download-app__section {
        padding: 40px 0;
    }

    .page-download-app__hero-title {
        font-size: 2.2em;
    }

    .page-download-app__hero-description {
        font-size: 1em;
    }

    .page-download-app__btn--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-download-app__feature-grid, .page-download-app__features-list, .page-download-app__related-links-grid {
        grid-template-columns: 1fr;
    }

    .page-download-app__platform-title {
        font-size: 1.8em;
    }

    .page-download-app__step-title {
        font-size: 1.2em;
    }

    .page-download-app__faq-question {
        font-size: 1.1em;
    }

    .page-download-app__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-download-app__btn--large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-download-app__hero > .page-download-app__container {
        gap: 20px;
    }

    .page-download-app__hero-title {
        font-size: 1.8em;
    }

    .page-download-app__download-buttons {
        flex-direction: column;
    }

    .page-download-app__btn--large {
        width: 100%;
    }

    .page-download-app__section-title {
        font-size: 1.8em;
    }

    .page-download-app__feature-item {
        padding: 20px;
    }

    .page-download-app__step-card {
        padding: 20px 15px;
        padding-left: 55px; /* Adjust for smaller step number */
    }

    .page-download-app__step-number {
        width: 30px;
        height: 30px;
        font-size: 1em;
        left: 15px;
        top: 20px;
    }

    .page-download-app__qr-code {
        width: 150px;
        height: 150px;
    }

    .page-download-app__platform-image {
        max-width: 250px;
    }
}