/* style/resources.css */

/* Biến CSS */
:root {
    --page-resources-primary-color: #1A1A2E;
    --page-resources-secondary-color: #E94560;
    --page-resources-text-light: #F0F0F0;
    --page-resources-text-dark: #1A1A2E;
    --page-resources-bg-dark: #1A1A2E;
    --page-resources-bg-light: #2c2c4d; /* Lighter shade of primary for contrast */
    --page-resources-accent-color: #E94560;
    --page-resources-border-color: #3a3a5e;
}

/* Thiết lập chung cho trang Tài nguyên */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--page-resources-text-light);
    background-color: var(--page-resources-bg-dark);
    line-height: 1.6;
}

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

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

.page-resources__section-title {
    font-size: 2.8em;
    color: var(--page-resources-accent-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__section-description {
    font-size: 1.2em;
    color: var(--page-resources-text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__highlight {
    color: var(--page-resources-accent-color);
    font-weight: bold;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #3a3a5e 100%); /* Adjusted gradient for better contrast */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom right, rgba(26, 26, 46, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.page-resources__hero .page-resources__container {
    position: relative;
    z-index: 1;
}

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

.page-resources__hero-subtitle {
    font-size: 1.5em;
    color: var(--page-resources-text-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-resources__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-resources__btn--primary {
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-text-light);
    border: 2px solid var(--page-resources-accent-color);
}

.page-resources__btn--primary:hover {
    background-color: #c73850; /* Darker red */
    transform: translateY(-3px);
}

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

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

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

/* Intro Section */
.page-resources__intro {
    background-color: var(--page-resources-bg-light);
    text-align: left;
}

.page-resources__intro .page-resources__section-title {
    text-align: center;
    color: var(--page-resources-accent-color);
}

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

@media (min-width: 768px) {
    .page-resources__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-resources__content-grid:nth-child(even) {
        direction: rtl; /* Reverse order for alternating sections */
    }
    .page-resources__content-grid:nth-child(even) .page-resources__text-content {
        direction: ltr;
    }
    .page-resources__content-grid:nth-child(even) .page-resources__image-wrapper {
        direction: ltr;
    }
}

.page-resources__text-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--page-resources-text-light);
}

.page-resources__image-wrapper {
    text-align: center;
}

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

/* Trust Section */
.page-resources__trust {
    background-color: var(--page-resources-bg-dark);
}

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

.page-resources__feature-item {
    background-color: var(--page-resources-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-resources__feature-title {
    font-size: 1.6em;
    color: var(--page-resources-accent-color);
    margin-bottom: 15px;
}

.page-resources__feature-text {
    font-size: 1.05em;
    color: var(--page-resources-text-light);
}

/* Categories Section */
.page-resources__categories {
    background-color: var(--page-resources-bg-light);
}

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

.page-resources__category-item {
    background-color: var(--page-resources-primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: left;
}

.page-resources__category-item:hover {
    transform: translateY(-5px);
}

.page-resources__category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.page-resources__category-title {
    font-size: 1.5em;
    color: var(--page-resources-accent-color);
    margin-bottom: 10px;
}

.page-resources__category-text {
    font-size: 1em;
    color: var(--page-resources-text-light);
}

/* Articles List Section */
.page-resources__articles {
    background-color: var(--page-resources-bg-dark);
}

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

.page-resources__article-item {
    background-color: var(--page-resources-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: var(--page-resources-accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #f77f92; /* Lighter red on hover */
}

.page-resources__article-description {
    font-size: 1.05em;
    color: var(--page-resources-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Call to Action Section */
.page-resources__cta {
    background: linear-gradient(45deg, var(--page-resources-primary-color), #2c2c4d);
    padding: 80px 0;
}

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

.page-resources__cta .page-resources__section-description {
    color: var(--page-resources-text-light);
    margin-bottom: 50px;
}

.page-resources__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.3em;
    }
    .page-resources__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__content-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__content-grid:nth-child(even) {
        direction: ltr;
    }
    .page-resources__image-wrapper {
        order: -1; /* Image first on mobile for alternating sections */
    }
    .page-resources__features-grid,
    .page-resources__category-grid,
    .page-resources__article-list {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__btn {
        padding: 12px 20px;
        font-size: 1em;
        width: 90%;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__feature-title,
    .page-resources__category-title,
    .page-resources__article-title {
        font-size: 1.3em;
    }
}