/* Reset và font chung */
body {
    font-family: 'Quicksand', sans-serif;
    background: radial-gradient(circle at top left, #FFFDE7, #E1F5FE);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container chính */
.container {
    margin-top: 80px;
    padding: 0 15px;
    max-width: 1200px;
}

/* Header trang */
.page-header {
    background: linear-gradient(to bottom, rgb(127 216 255 / 90%), rgb(255 255 255 / 90%)), 
                url('/image/header-central.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF7043;
    border-radius: 2px;
}

.page-header h1 {
    font-size: 3rem;
    color: #4E342E;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    margin: 0;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout chính */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* Tin nổi bật */
.featured-news {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.98), rgba(255,255,255,0.98));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.featured-news::before {
    content: "NỔI BẬT";
    position: absolute;
    top: 15px;
    left: -35px;
    transform: rotate(-45deg);
    background: #FF7043;
    color: white;
    font-weight: 700;
    padding: 3px 35px;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1;
}

.featured-date {
    color: #FF7043;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.featured-title {
    font-size: 2.2rem;
    color: #4E342E;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.featured-link {
    display: inline-block;
    background-color: #0288D1;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-link:hover {
    background-color: #0277BD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.featured-news:hover .news-image img {
    transform: scale(1.03);
}

/* Danh sách tin tức */
.content-container {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-container h2 {
    font-size: 1.8rem;
    color: #4E342E;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 52, 46, 0.1);
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-image {
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 20px;
}

.news-content {
    flex: 0 0 60%;
    max-width: 60%;
}

.news-date {
    color: #FF7043;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.news-tag {
    display: inline-block;
    background-color: #FFD700;
    color: #4E342E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.4rem;
    color: #4E342E;
    margin: 10px 0 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-link {
    display: inline-block;
    color: #0288D1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #01579B;
    transform: translateX(5px);
}

/* Sidebar */
.news-categories {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    
}
.news-categories a{
    text-decoration: none;
    color: #333;
}

.news-categories h3 {
    font-size: 1.3rem;
    color: #4E342E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 52, 46, 0.1);
}

.news-search {
    margin-bottom: 20px;
}

.news-search .form-control {
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.news-search .btn-primary {
    background-color: #0288D1;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 15px;
}

.news-search .btn-primary:hover {
    background-color: #0277BD;
}

/* Tin đọc nhiều */
.top-news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.top-news-img {
    flex: 0 0 70px;
    max-width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
}

.top-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-news-content h4 {
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.top-news-content h4 a {
    color: #4E342E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-news-content h4 a:hover {
    color: #0288D1;
}

.top-news-date {
    color: #888;
    font-size: 0.8rem;
}

/* Danh mục */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled li {
    margin-bottom: 8px;
}

.list-unstyled a {
    display: block;
    padding: 8px 10px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.list-unstyled a:hover, 
.list-unstyled a.active {
    background-color: rgba(2, 136, 209, 0.1);
    color: #0288D1;
}

/* Tags */
.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.news-tag-cloud {
    margin: -5px;
}

.news-tag-cloud a {
    display: inline-block;
    background-color: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tag-cloud a:hover {
    background-color: #0288D1;
    color: white;
}

/* Newsletter */
.input-group {
    display: flex;
}

.input-group input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.input-group button {
    background-color: #0288D1;
    border: none;
    color: white;
    padding: 0 15px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group button:hover {
    background-color: #0277BD;
}

/* Phân trang */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-item.active .page-link {
    background-color: #0288D1;
    border-color: #0288D1;
    color: white;
}

/* Footer */
footer {
    background-color: #4E342E;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

footer h5 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-4 {
        margin-top: 40px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image, .news-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .news-image {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 70px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .content-container, 
    .featured-news, 
    .news-categories {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-item {
        margin: 5px;
    }
}
