/* --- General Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #f8f9fa;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

h1, h2, h3 {
    color: #1a73e8;
    font-weight: 500;
}

/* --- Header --- */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-height: 60px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 25px;
}

header nav ul li a {
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

header nav ul li a:hover {
    color: #1a73e8;
}

header nav ul li a.active {
    color: #1a73e8;
    font-weight: 700;
}

header nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #1a73e8;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

header nav ul li a:hover:after,
header nav ul li a.active:after {
    width: 100%;
}

/* --- Main Content --- */
main {
    padding: 2rem 0;
}

/* Banner Section */
.banner {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
}

.banner-content h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

/* Featured Articles (Homepage) */
.featured-articles {
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #1a73e8;
}

.featured-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.featured-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.featured-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.featured-content p {
    color: #555;
    margin-bottom: 1rem;
}

.featured-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.featured-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.featured-content ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a73e8;
}

/* Latest News & Category List */
.latest-news, .category-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.news-item a {
    display: flex;
    padding: 0;
}

.news-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-right: 0;
    border-radius: 0;
}

.news-content {
    padding: 1.2rem;
    flex: 1;
}

.news-content h3, .news-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.news-content span {
    display: inline-block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    background: #f0f4f8;
    padding: 3px 8px;
    border-radius: 4px;
}

.news-content p {
    color: #555;
    margin-bottom: 0;
}

/* Styles cho trang category */
.category-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
}

.featured-category-article {
    margin-bottom: 3rem;
}

.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 100%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.news-meta {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    font-size: 0.85rem;
    color: #666;
}

.news-meta li {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.news-meta li i {
    margin-right: 0.3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0 1rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: #e74c3c;
    color: white;
}

/* Full Article Page */
.full-article {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.full-article h1 {
    font-size: 2.5em;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.full-article .meta-info {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.full-article .full-article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.article-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content img {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-content button {
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.article-content button:hover {
    background: #0d62d1;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* --- Footer --- */
footer {
    background: #1a2a3a;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #1a73e8;
}

.footer-section p {
    margin-bottom: 0.8rem;
}

.footer-section i {
    margin-right: 10px;
    color: #1a73e8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #1a73e8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    /* Header & Navigation */
    .menu-toggle {
        display: block;
    }
    
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 100;
    }
    
    header nav ul.show {
        display: block;
    }
    
    header nav ul li {
        display: block;
        margin: 0;
        text-align: center;
    }
    
    header nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
    }
    
    header nav ul li a:after {
        display: none;
    }
    
    /* Content Layout */
    .featured-list {
        grid-template-columns: 1fr;
    }
    
    .news-item a {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .banner-img {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}