﻿html {
    scroll-behavior: smooth;
}

:root {
    --primary-red: #9f314c;
    --primary-red-dark: #c82333;
    --primary-red-light: #f5c6cb;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(220, 53, 69, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{ text-decoration:none}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
.main-with-fixed-header {
    margin-top: calc(40px + 2rem); /* Điều chỉnh 100px theo chiều cao header thực tế */
}
.admin {
    margin-top: calc(110px + 2rem); /* Chỉnh cho các file trong admin */
}
/* Header Styles */
.header-top {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    padding: 15px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

    .header-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
        opacity: 0.1;
    }

    .header-top .container {
        position: relative;
        z-index: 2;
    }

.header-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.navbar-brand img {
    height: 70px;
    border-radius: 8px;
    transition: var(--transition);
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }

/* Language Selector */
.language-selector {
    padding: 0;
    display: inline-block;
}

    /* Trạng thái bình thường: nhỏ gọn, vừa đủ cho 🌐 */
    .language-selector select {
        width: 40px; /* vừa cho icon 🌐 */
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        padding: 6px;
        background: rgba(255,255,255,0.9);
        color: var(--primary-red);
        font-weight: 500;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
        text-align: center;
        cursor: pointer;
    }

        /* Khi focus hoặc hover: mở rộng để thấy tên ngôn ngữ */
        .language-selector select:focus,
        .language-selector select:hover {
            width: 120px; /* đủ để hiện "Français" hoặc "Tiếng Việt" */
            text-align: left;
            padding-left: 12px;
        }

        .language-selector select:focus {
            outline: none;
            border-color: white;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
        }


/* Navigation Styles */
/* Áp dụng cho navbar trên mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 70vh; /* tối đa 70% chiều cao màn hình */
        overflow-y: auto;
    }

    /* Nếu dropdown trong menu quá dài, cho nó scroll riêng */
    .navbar-nav .dropdown-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}


.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(220, 53, 69, 0.1);
    padding: 0;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--primary-red) !important;
    font-weight: 700;
/*    padding: 20px 15px !important;
*/    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--primary-red);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::before {
        width: 80%;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-red-dark) !important;
        transform: translateY(-2px);
    }

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

    .dropdown-item:hover {
        background: var(--primary-red);
        color: white;
    }

/* Carousel Styles */
.hero-carousel {
    margin-top: 80px;
}

.carousel-item {
    position: relative;
    overflow: hidden;
}

    .carousel-item img {
        width: 100%;
        object-fit: cover;
        transition: transform 8s ease;
    }

    .carousel-item.active img {
        transform: scale(1.0);
    }

    .carousel-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(45deg, rgba(220, 53, 69, 0.6), rgba(220, 53, 69, 0.3));
        z-index: 1;
    }

.carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    left: 50%;
    right: auto;
    transform: translate(-50%, 50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    border: 2px solid white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Section Styles */
.section {
    padding: 20px 0;
    position: relative;
}

.section-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
        border-radius: 2px;
    }

.decorated-title {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    box-shadow: var(--box-shadow);
    margin: 30px 0;
}

    .decorated-title::before {
        content: "\f005";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 10px;
    }

/* Card Styles */
.custom-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

    .custom-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 30px rgba(220, 53, 69, 0.2);
    }

    .custom-card img {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        transition: var(--transition);
    }

    .custom-card:hover img {
        transform: scale(1.05);
    }

.card-body {
    padding: 25px !important ;
}

.time-post {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    }

/* Tabs Styles */
.custom-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

    .custom-tabs li {
        flex: 1;
        text-align: center;
    }

        .custom-tabs li span {
            display: block;
            padding: 15px 30px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            color: var(--text-color);
            position: relative;
        }

        .custom-tabs li.active span {
            background: var(--primary-red);
            color: white;
        }

        .custom-tabs li:not(.active) span:hover {
            background: var(--primary-red-light);
            color: var(--primary-red);
        }

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 1px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, var(--primary-red), var(--primary-red-dark));
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    padding: 20px 0 20px 40px;
    margin-bottom: 20px;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 25px;
        width: 20px;
        height: 20px;
        background: white;
        border: 4px solid var(--primary-red);
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
    }

    .timeline-item h4 {
        color: var(--primary-red);
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 1.2rem;
    }

    .timeline-item p {
        color: #6c757d;
        font-weight: 500;
        margin: 0;
    }

/* Sponsor Cards */
.sponsor-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 180px;
    display: flex;
    flex-direction: column;
}

    .sponsor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(220, 53, 69, 0.15);
    }

    .sponsor-card .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    .sponsor-card img {
        max-width: 80%;
        height: 60px;
        object-fit: contain;
        margin-bottom: 15px;
    }

/* Background Styles */
/*.bg-light-red {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}
*/
/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

    .footer p {
        margin: 0;
        font-size: 1.1rem;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .header-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .custom-tabs {
        flex-direction: column;
        border-radius: var(--border-radius);
    }

        .custom-tabs li span {
            padding: 12px 20px;
        }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .carousel-caption {
        width: 90%;
        padding: 20px;
    }

        .carousel-caption h2 {
            font-size: 2rem;
        }
}


/* Ẩn hoàn toàn banner Google Translate */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

/* Đảm bảo body không bị dịch chuyển */
body {
    top: 0px !important;
}

/* Ẩn các thành phần popup khác của Google Translate nếu cần */
.goog-te-balloon-frame {
    display: none !important;
}
/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
        animation: slideIn 0.5s ease;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

    .article-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    }

    .article-header .container {
        position: relative;
        z-index: 2;
    }

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.article-category {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Article Content */
.article-section {
    padding: 80px 0;
}

.article-content {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.article-featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.article-content h2 {
    color: var(--primary-red);
    font-weight: 700;
    margin: 30px 0 20px;
    font-size: 1.8rem;
}

.article-content h3 {
    color: var(--primary-red-dark);
    font-weight: 600;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-red-light), rgba(248, 249, 250, 0.8));
    border-left: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    position: relative;
}

    .highlight-box::before {
        content: '\f05a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 15px;
        right: 20px;
        color: var(--primary-red);
        font-size: 1.2rem;
    }

/* Share Section */
.share-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn-copy {
    background: var(--primary-red);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Navigation Buttons */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-btn {
    flex: 1;
    background: white;
    border: 2px solid var(--primary-red-light);
    border-radius: var(--border-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

    .nav-btn:hover {
        border-color: var(--primary-red);
        background: var(--primary-red);
        color: white;
        transform: translateY(-3px);
        box-shadow: var(--box-shadow);
    }

.nav-btn-prev {
    text-align: left;
}

.nav-btn-next {
    text-align: right;
    justify-content: flex-end;
}

.nav-btn-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
}

.nav-btn-title {
    font-weight: 600;
    margin: 0;
}

/* Related Articles */
.related-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.related-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.related-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

    .related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    }

    .related-card img {
        height: 200px;
        object-fit: cover;
    }

    .related-card .card-body {
        padding: 20px;
    }

    .related-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 10px;
    }

        .related-card .card-title a {
            color: var(--text-color);
            text-decoration: none;
            transition: var(--transition);
        }

            .related-card .card-title a:hover {
                color: var(--primary-red);
            }

.related-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 120px;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-red);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--primary-red-dark);
        transform: translateY(-3px);
    }

/* Footer */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .share-buttons {
        justify-content: center;
    }

    .article-meta {
        justify-content: center;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-red-light);
    color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin: 5px;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--primary-red);
        color: white;
        border-color: var(--primary-red);
    }

/* News Card Styles */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 30px rgba(220, 53, 69, 0.2);
    }

    .news-card .card-img-top {
        height: 250px;
        object-fit: cover;
        transition: var(--transition);
    }

    .news-card:hover .card-img-top {
        transform: scale(1.1);
    }

    .news-card .card-body {
        padding: 25px;
    }

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-category {
    background: var(--primary-red-light);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-color);
}

    .news-title a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
    }

        .news-title a:hover {
            color: var(--primary-red);
        }

.news-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .read-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
        color: white;
    }

/* Featured News */
.featured-news {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    margin-bottom: 40px;
}

    .featured-news img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .featured-news::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
        z-index: 1;
    }

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    z-index: 2;
}

    .featured-content .news-category {
        background: var(--primary-red);
        color: white;
    }

    .featured-content .news-title {
        color: white;
        font-size: 2rem;
        margin: 15px 0;
    }

/* Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

    .custom-pagination .page-link {
        border: 2px solid var(--primary-red-light);
        color: var(--primary-red);
        padding: 12px 18px;
        margin: 0 5px;
        border-radius: 8px;
        font-weight: 600;
        transition: var(--transition);
    }

        .custom-pagination .page-link:hover,
        .custom-pagination .page-item.active .page-link {
            background: var(--primary-red);
            color: white;
            border-color: var(--primary-red);
        }

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
}

.recent-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

    .recent-post:last-child {
        border-bottom: none;
    }

    .recent-post:hover {
        background: var(--secondary-color);
        margin: 0 -15px;
        padding: 15px;
        border-radius: 8px;
    }

    .recent-post img {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

.recent-post-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

    .recent-post-content a:hover {
        color: var(--primary-red);
    }

.recent-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .filter-bar {
        text-align: center;
    }

    .featured-content {
        padding: 25px;
    }

        .featured-content .news-title {
            font-size: 1.5rem;
        }

    .news-meta {
        justify-content: center;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    max-width: 450px !important;
    margin-left: auto;
    margin-right: auto;
    /* Có thể sử dụng shorthand: margin: 0 auto; */
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #333;
    }

    .login-header p {
        font-size: 1rem;
        color: #6c757d;
    }

.form-floating label {
    color: #6c757d;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn-register:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

.text-center a {
    text-decoration: none;
}

    .text-center a:hover {
        text-decoration: none;
    }

/* ----- Áp dụng cho input text, textarea ----- */
input[readonly], textarea[readonly],
input:disabled, textarea:disabled {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #333 !important;
    cursor: default !important;
    padding-left: 0 !important;
}

/* ----- Áp dụng cho select (dropdownlist) ----- */
select[readonly], select:disabled {
    appearance: none !important; /* ẩn mũi tên */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #333 !important;
    pointer-events: none; /* không click được */
    cursor: default;
}

/* ----- Áp dụng cho checkbox, radio ----- */
input[type="checkbox"][readonly],
input[type="radio"][readonly],
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    pointer-events: none; /* không click được */
    opacity: 0.7; /* mờ nhẹ cho biết là readonly */
    cursor: default;
}

/* Countdown and CTA Section */
.countdown-cta-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 60px 0;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.1);
}

.countdown-timer-wrapper {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffe5e5;
}

.countdown-box {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .countdown-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .countdown-box:hover::before {
        left: 100%;
    }

    .countdown-box:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 35px rgba(220, 53, 69, 0.4);
    }

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.shadow12 {
    font-family: Roboto Bold;
    font-size: 26px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 0px rgba(150, 82, 52, 1), 2px -2px 0px rgba(150, 82, 52, 1), -2px 2px 0px rgba(150, 82, 52, 1), -2px -2px 0px rgba(150, 82, 52, 1), 2px 0px 0px rgba(150, 82, 52, 1), 0px 2px 0px rgba(150, 82, 52, 1), -2px 0px 0px rgba(150, 82, 52, 1), 0px -2px 0px rgba(150, 82, 52, 1);
}
.title_center {
    clear: both;
    position: relative;
    text-align: center;
    margin: 0;
    font-size: 26px;
    line-height: 30px;
    color: #2F2F2F;
    font-family: Roboto Bold;
    text-transform: uppercase;
}