/* style/index.css */

/* Biến CSS cho màu sắc */
:root {
    --page-index-primary-color: #007bff;
    --page-index-secondary-color: #ffc107;
    --page-index-dark-text: #212529; /* Màu văn bản tối cho nền sáng */
    --page-index-light-text: #f8f9fa; /* Màu văn bản sáng cho nền tối */
    --page-index-background-light: #f8f9fa;
    --page-index-background-dark: #0056b3; /* Biến thể tối của primary */
    --page-index-button-hover-primary: #0056b3;
    --page-index-button-hover-secondary: #e0a800;
    --page-index-link-color: #007bff;
    --page-index-link-hover-color: #0056b3;
}

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

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

/* Hero Section */
.page-index-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-index-background-dark);
}

.page-index-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.page-index-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(255, 193, 7, 0.7));
    z-index: 2;
}

.page-index-hero-content {
    position: relative;
    z-index: 3;
    color: var(--page-index-light-text);
    max-width: 800px;
    padding: 20px;
}

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

.page-index-hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--page-index-light-text);
}

.page-index-highlight {
    color: var(--page-index-secondary-color);
}

.page-index-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-index-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

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

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

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

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

.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-light-text);
}

.page-index-btn-text {
    background-color: transparent;
    color: var(--page-index-primary-color);
    border: none;
    padding: 10px 0;
    font-size: 1em;
}

.page-index-btn-text:hover {
    color: var(--page-index-link-hover-color);
    text-decoration: underline;
    background-color: transparent;
    transform: none;
}

/* Section common styles */
.page-index-section-title {
    font-size: 2.5em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-section-description {
    font-size: 1.1em;
    text-align: center;
    color: var(--page-index-dark-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index-about-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--page-index-dark-text);
}

.page-index-img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-index-features {
    padding: 80px 0;
    background-color: #e9f5ff; /* Light blue background for contrast */
}

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

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

.page-index-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-index-feature-text {
    color: var(--page-index-dark-text);
    font-size: 1em;
}

/* CTA Banner */
.page-index-cta-banner {
    background: linear-gradient(45deg, var(--page-index-primary-color), #004c99); /* Darker blue gradient */
    padding: 60px 0;
    text-align: center;
    color: var(--page-index-light-text);
}

.page-index-banner-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--page-index-light-text);
}

.page-index-banner-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--page-index-light-text);
}

.page-index-banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Deep Content Section */
.page-index-deep-content {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index-deep-content h2 {
    margin-bottom: 40px;
}

.page-index-subtitle {
    font-size: 2em;
    color: var(--page-index-primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-deep-content h4 {
    font-size: 1.4em;
    color: var(--page-index-dark-text);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-index-deep-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--page-index-dark-text);
}

.page-index-deep-content ul, .page-index-deep-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
    color: var(--page-index-dark-text);
}

.page-index-deep-content ul li, .page-index-deep-content ol li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-index-content-image {
    margin: 30px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index-link-inline:hover {
    color: var(--page-index-link-hover-color);
}

.page-index-deep-content-cta {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Detail Pages Section */
.page-index-detail-pages {
    padding: 80px 0;
    background-color: #f0f8ff; /* Very light blue for subtle contrast */
}

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

.page-index-detail-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-detail-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-index-detail-title a:hover {
    color: var(--page-index-link-hover-color);
    text-decoration: underline;
}

.page-index-detail-description {
    font-size: 1em;
    color: var(--page-index-dark-text);
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index-hero-title {
        font-size: 2.8em;
    }
    .page-index-hero-subtitle {
        font-size: 1.3em;
    }
    .page-index-section-title {
        font-size: 2em;
    }
    .page-index-banner-title {
        font-size: 2.2em;
    }
    .page-index-banner-description {
        font-size: 1.1em;
    }
    .page-index-about-grid {
        grid-template-columns: 1fr;
    }
    .page-index-about-image {
        order: -1; /* Image first on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-index-hero {
        height: 500px;
    }
    .page-index-hero-title {
        font-size: 2.2em;
    }
    .page-index-hero-subtitle {
        font-size: 1.1em;
    }
    .page-index-hero-buttons, .page-index-banner-buttons, .page-index-deep-content-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-index-section-title {
        font-size: 1.8em;
    }
    .page-index-subtitle {
        font-size: 1.6em;
    }
    .page-index-features, .page-index-about, .page-index-deep-content, .page-index-detail-pages {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-index-hero {
        height: 400px;
    }
    .page-index-hero-title {
        font-size: 1.8em;
    }
    .page-index-hero-subtitle {
        font-size: 1em;
    }
    .page-index-btn {
        width: 95%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index-section-title {
        font-size: 1.5em;
    }
    .page-index-subtitle {
        font-size: 1.4em;
    }
    .page-index-banner-title {
        font-size: 1.8em;
    }
    .page-index-banner-description {
        font-size: 1em;
    }
}