/* style/news.css */
/* 
  Màu sắc chủ đạo: #017439 (xanh lá)
  Màu phụ: #FFFFFF (trắng)
  Màu nút Đăng ký/Đăng nhập: #C30808 (đỏ)
  Màu chữ nút Đăng ký/Đăng nhập: #FFFF00 (vàng)
  Màu nền body (từ shared.css): #0a0a0a (tối) -> Sử dụng chữ màu sáng (#ffffff)
*/

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted title color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General Section Styling */
.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFF00; /* Highlighted title color */
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-news__dark-bg {
    background-color: #0a0a0a; /* Ensure consistency with body background */
    color: #ffffff;
    padding: 60px 20px;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
}

.page-news__dark-text {
    color: #333333; /* For elements on light background */
}

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

/* Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-news__btn-primary {
    background-color: #C30808; /* Đăng ký/Đăng nhập color */
    color: #FFFF00; /* Đăng ký/Đăng nhập font color */
    border: 2px solid #FFFF00;
}

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

.page-news__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

/* Latest Articles Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #FFFF00; /* Highlighted link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #C30808;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #e0e0e0;
}