/* style/index.css */

/* Biến CSS */
:root {
    --page-index-primary-color: #003366;
    --page-index-secondary-color: #FFCC00;
    --page-index-text-light: #FFFFFF;
    --page-index-text-dark: #003366; /* Đảm bảo đủ độ tương phản trên màu vàng */
    --page-index-background-light: #F8F8F8;
    --page-index-background-dark: #002244;
    --page-index-border-color: #E0E0E0;
}

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

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

.page-index-section-title {
    font-size: 2.5em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index-section-subtitle {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.page-index-btn-primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark); /* Màu chữ tối trên nền vàng */
    border: 2px solid var(--page-index-secondary-color);
}

.page-index-btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
}

.page-index-btn-secondary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
    border: 2px solid var(--page-index-primary-color);
}

.page-index-btn-secondary:hover {
    background-color: var(--page-index-background-dark);
    border-color: var(--page-index-background-dark);
    transform: translateY(-2px);
}

.page-index-btn-outline {
    background-color: transparent;
    color: var(--page-index-primary-color);
    border: 2px solid var(--page-index-primary-color);
}

.page-index-btn-outline:hover {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
    transform: translateY(-2px);
}

.page-index-btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-index-text-link {
    color: var(--page-index-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-index-text-link:hover {
    text-decoration: underline;
}

.page-index-responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-index-hero {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-background-dark) 100%);
    color: var(--page-index-text-light);
    padding: 80px 0;
    text-align: center;
}

.page-index-hero .page-index-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-index-hero-content {
    max-width: 800px;
}

.page-index-hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--page-index-text-light);
}

.page-index-hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-index-hero-actions .page-index-btn {
    margin: 0 10px;
}

.page-index-hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 700px;
}

.page-index-hero-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-index-about {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index-about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-index-about-text,
.page-index-about-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-index-about-text p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Features Section */
.page-index-features {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-text-light);
}

.page-index-features .page-index-section-title {
    color: var(--page-index-secondary-color);
}

.page-index-features .page-index-section-subtitle {
    color: #E0E0E0;
}

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

.page-index-feature-item {
    background-color: var(--page-index-primary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index-feature-title {
    font-size: 1.8em;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
}

.page-index-feature-item p {
    font-size: 1em;
    color: #CCCCCC;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-center-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-index-promotions {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index-promo-item {
    background-color: var(--page-index-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-index-promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-index-promo-item h3 {
    font-size: 1.5em;
    color: var(--page-index-primary-color);
    margin: 20px 15px 10px;
}

.page-index-promo-item p {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-index-promo-item .page-index-btn {
    margin: 0 15px 20px;
}

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

.page-index-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-index-cta-text,
.page-index-cta-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-index-cta-title {
    font-size: 2.8em;
    color: var(--page-index-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index-cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-index-cta-actions .page-index-btn {
    margin-right: 15px;
    margin-bottom: 15px; /* For mobile stacking */
}

.page-index-cta-links {
    margin-top: 20px;
}

.page-index-cta-links .page-index-text-link {
    color: var(--page-index-secondary-color);
    margin-right: 20px;
}

/* Security Section */
.page-index-security {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index-security-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on left, text on right */
}

.page-index-security-text,
.page-index-security-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-index-security-text p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Detail Pages Section */
.page-index-detail-pages {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-text-light);
}

.page-index-detail-pages .page-index-section-title {
    color: var(--page-index-secondary-color);
}

.page-index-detail-pages .page-index-section-subtitle {
    color: #E0E0E0;
}

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

.page-index-detail-item {
    background-color: var(--page-index-primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-index-detail-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-index-detail-title a {
    color: var(--page-index-secondary-color);
    text-decoration: none;
}

.page-index-detail-title a:hover {
    text-decoration: underline;
}

.page-index-detail-description {
    font-size: 0.95em;
    color: #CCCCCC;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-detail-item .page-index-btn {
    margin-top: auto;
}

/* Final CTA Section */
.page-index-final-cta {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark); /* Màu chữ tối trên nền vàng */
    padding: 60px 0;
    text-align: center;
}

.page-index-final-cta-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--page-index-primary-color);
}

.page-index-final-cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-final-cta-actions .page-index-btn {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero-title {
        font-size: 2.8em;
    }
    .page-index-section-title {
        font-size: 2em;
    }
    .page-index-cta-title,
    .page-index-final-cta-title {
        font-size: 2.2em;
    }
    .page-index-about-grid,
    .page-index-cta-wrapper,
    .page-index-security-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-index-about-text,
    .page-index-about-image,
    .page-index-cta-text,
    .page-index-cta-image,
    .page-index-security-text,
    .page-index-security-image {
        flex: 1 1 100%;
    }
    .page-index-hero-actions .page-index-btn,
    .page-index-cta-actions .page-index-btn,
    .page-index-final-cta-actions .page-index-btn {
        display: block;
        margin: 15px auto;
        max-width: 250px;
    }
    .page-index-cta-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-index-cta-links .page-index-text-link {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .page-index-hero,
    .page-index-about,
    .page-index-features,
    .page-index-promotions,
    .page-index-cta-download,
    .page-index-security,
    .page-index-detail-pages,
    .page-index-final-cta {
        padding: 60px 0;
    }
    .page-index-hero-title {
        font-size: 2.2em;
    }
    .page-index-hero-description {
        font-size: 1.1em;
    }
    .page-index-section-title {
        font-size: 1.8em;
    }
    .page-index-section-subtitle {
        font-size: 1em;
    }
    .page-index-cta-title,
    .page-index-final-cta-title {
        font-size: 2em;
    }
    .page-index-feature-grid,
    .page-index-promo-grid,
    .page-index-detail-grid {
        grid-template-columns: 1fr;
    }
    .page-index-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-index-hero-title {
        font-size: 1.8em;
    }
    .page-index-section-title {
        font-size: 1.5em;
    }
    .page-index-cta-title,
    .page-index-final-cta-title {
        font-size: 1.8em;
    }
    .page-index-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index-hero-actions .page-index-btn,
    .page-index-cta-actions .page-index-btn,
    .page-index-final-cta-actions .page-index-btn {
        max-width: 100%;
    }
}