/* style/resources.css */

/* Biến CSS */
:root {
    --page-resources-primary-color: #FFD700; /* Gold */
    --page-resources-secondary-color: #000080; /* Dark Blue */
    --page-resources-text-light: #FFFFFF; /* White for dark backgrounds */
    --page-resources-text-dark: #333333; /* Dark grey for light backgrounds */
    --page-resources-accent-color: #0028ff; /* Complementary to gold, for emphasis */
    --page-resources-background-light: #F8F8F8;
    --page-resources-background-dark: #000050;
}

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

.page-resources .highlight {
    color: var(--page-resources-primary-color);
    font-weight: bold;
}

.page-resources__section-title {
    font-size: 2.8em;
    color: var(--page-resources-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--page-resources-primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources__section-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
    color: var(--page-resources-text-dark);
}

.page-resources__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color);
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-text-light);
    border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-background-dark);
    transform: translateY(-2px);
}

.page-resources__btn--tertiary {
    background-color: transparent;
    color: var(--page-resources-secondary-color);
    border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--tertiary:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-text-light);
    transform: translateY(-2px);
}

.page-resources__btn--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-secondary-color) 0%, #000050 100%);
    color: var(--page-resources-text-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__hero-content {
    max-width: 900px;
}

.page-resources__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-resources-text-light);
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

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

/* Introduction Section */
.page-resources__introduction {
    padding: 60px 20px;
    background-color: var(--page-resources-background-light);
}

/* Featured Articles Section */
.page-resources__featured-articles {
    padding: 80px 20px;
    background-color: var(--page-resources-background-light);
}

.page-resources__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__article-card {
    background-color: var(--page-resources-text-light);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-resources__article-title {
    font-size: 1.6em;
    color: var(--page-resources-secondary-color);
    margin: 20px 20px 10px;
    flex-grow: 1;
}

.page-resources__article-excerpt {
    font-size: 1em;
    color: var(--page-resources-text-dark);
    margin: 0 20px 20px;
}

.page-resources__article-card .page-resources__btn {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* App Download Section */
.page-resources__app-download {
    background: linear-gradient(90deg, var(--page-resources-primary-color) 0%, #e6c200 100%);
    color: var(--page-resources-secondary-color);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__app-content {
    max-width: 800px;
    text-align: center;
}

.page-resources__app-download .page-resources__section-title {
    color: var(--page-resources-secondary-color);
}

.page-resources__app-download .page-resources__section-title::after {
    background-color: var(--page-resources-secondary-color);
}

.page-resources__app-download .page-resources__section-text {
    color: var(--page-resources-secondary-color);
}

.page-resources__app-image-wrapper {
    width: 100%;
    max-width: 600px;
}

.page-resources__app-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* In-depth Analysis Section */
.page-resources__in-depth-analysis {
    padding: 80px 20px;
    background-color: var(--page-resources-background-light);
}

.page-resources__analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources__analysis-card {
    background-color: var(--page-resources-text-light);
    border-left: 5px solid var(--page-resources-primary-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__analysis-title {
    font-size: 1.4em;
    color: var(--page-resources-secondary-color);
    margin-bottom: 15px;
}

.page-resources__analysis-text {
    font-size: 0.95em;
    color: var(--page-resources-text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__analysis-card .page-resources__btn {
    align-self: flex-start;
    margin-top: auto; /* Push button to bottom */
}

/* Final CTA Section */
.page-resources__cta-final {
    background: linear-gradient(135deg, #000080 0%, #000050 100%);
    color: var(--page-resources-text-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__cta-final .page-resources__section-title {
    color: var(--page-resources-text-light);
}

.page-resources__cta-final .page-resources__section-title::after {
    background-color: var(--page-resources-primary-color);
}

.page-resources__cta-final .page-resources__section-text {
    color: rgba(255, 255, 255, 0.9);
}

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

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

/* Responsive Design */
@media (min-width: 768px) {
    .page-resources__hero {
        flex-direction: row;
        text-align: left;
        padding: 120px 40px;
        gap: 60px;
    }

    .page-resources__hero-content {
        flex: 1;
    }

    .page-resources__hero-image-wrapper {
        flex: 1;
        margin-top: 0;
    }

    .page-resources__hero-title {
        font-size: 4.5em;
    }

    .page-resources__hero-description {
        font-size: 1.4em;
    }

    .page-resources__section-title {
        font-size: 3.5em;
    }

    .page-resources__app-download {
        flex-direction: row;
        padding: 100px 40px;
        gap: 60px;
    }

    .page-resources__app-content {
        flex: 1;
        text-align: left;
    }

    .page-resources__app-image-wrapper {
        flex: 1;
    }

    .page-resources__cta-final {
        flex-direction: row;
        padding: 120px 40px;
        gap: 60px;
    }

    .page-resources__cta-content {
        flex: 1;
        text-align: left;
    }

    .page-resources__cta-image-wrapper {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

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

    .page-resources__section-text {
        font-size: 1em;
    }

    .page-resources__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__btn--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}