/* style/news.css */

/* Biến CSS */
:root {
    --page-news-primary-color: #007bff;
    --page-news-secondary-color: #ffc107;
    --page-news-dark-text: #333;
    --page-news-light-text: #fff;
    --page-news-background-light: #f8f9fa;
    --page-news-card-bg: #fff;
    --page-news-border-color: #eee;
}

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

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-news__hero {
    background: linear-gradient(135deg, var(--page-news-primary-color), #0056b3);
    color: var(--page-news-light-text);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: page-news-float 10s ease-in-out infinite alternate;
}

.page-news__hero::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: page-news-float 12s ease-in-out infinite reverse;
}

@keyframes page-news-float {
    0% { transform: translate(0, 0); opacity: 0.8; }
    100% { transform: translate(20px, 20px); opacity: 1; }
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
}

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

.page-news__btn--primary:hover {
    background-color: #e0a800; /* Darker shade of secondary color */
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn--secondary:hover {
    background-color: var(--page-news-light-text);
    color: var(--page-news-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-news__section {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.8em;
    color: var(--page-news-primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--page-news-secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
}

.page-news__article-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--page-news-primary-color);
}

.page-news__article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--page-news-secondary-color);
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--page-news-dark-text);
    margin-bottom: 20px;
}

.page-news__btn--link {
    color: var(--page-news-primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-news__btn--link:hover {
    color: var(--page-news-secondary-color);
    text-decoration: underline;
}

.page-news__article-list {
    display: grid;
    gap: 20px;
}

.page-news__list-item {
    background-color: var(--page-news-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-news__list-item-title {
    font-size: 1.6em;
    margin-bottom: 8px;
    font-weight: bold;
}

.page-news__list-item-title a {
    text-decoration: none;
    color: var(--page-news-primary-color);
    transition: color 0.3s ease;
}

.page-news__list-item-title a:hover {
    color: var(--page-news-secondary-color);
}

.page-news__list-item-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 12px;
}

.page-news__list-item-excerpt {
    font-size: 1em;
    color: var(--page-news-dark-text);
}

.page-news__cta-section {
    background-color: var(--page-news-primary-color);
    color: var(--page-news-light-text);
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
}

.page-news__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2.2em;
    }
    .page-news__article-title {
        font-size: 1.5em;
    }
    .page-news__list-item-title {
        font-size: 1.4em;
    }
    .page-news__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-news__hero {
        padding: 80px 0;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__list-item-title {
        font-size: 1.2em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__btn {
        padding: 10px 20px;
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .page-news__hero {
        padding: 60px 0;
    }
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section {
        padding: 30px 0;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 1.1em;
    }
    .page-news__list-item-title {
        font-size: 1.1em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 0.9em;
    }
    .page-news__btn {
        display: block;
        width: fit-content;
        margin: 10px auto;
    }
}

/* Floating CTA Button */
.page-news__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--page-news-secondary-color);
    color: var(--page-news-dark-text);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-news__floating-cta:hover {
    background-color: #e0a800; /* Darker shade */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__floating-cta svg {
    fill: var(--page-news-dark-text);
    width: 20px;
    height: 20px;
}