:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #1a1f2d;
    --light-color: #f8f9fa;
    --body-bg: #141821;
    --text-color: #fff;
    --text-muted: rgba(255,255,255,.6);
    --border-color: rgba(255,255,255,.1);
    --hover-bg: rgba(255,255,255,.05);
}

.mb-2 {
    margin-bottom: 1rem;
}

.other-news p {
    color: #fff;
}

.news_column {
    max-width: 100%;
    background: linear-gradient(to bottom, var(--dark-color), rgba(26,31,45,0.95));
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    padding: 20px;
}

.title {
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: block;
    width: 100%;
}

.h5 {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.95rem;
    margin: 0.75rem 0;
    letter-spacing: 0.01em;
    font-weight: 500;
}

.h5_tags {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.h5_tags .fa {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.h5_tags strong {
    color: #fff;
    font-weight: 600;
    margin-right: 0.5rem;
}

.h5_tags a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background: rgba(13,110,253,0.15);
    border-radius: 9999px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(13,110,253,0.2);
}

.h5_tags a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(13,110,253,0.3);
}

.h5_tags em {
    font-style: normal;
    font-weight: 500;
}

.list-inline {
    margin: 1rem 0;
    text-align: right;
}

.list-inline li {
    margin: 0 0.5rem;
    display: inline-block;
}

.dimgray {
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.dimgray:hover {
    color: var(--primary-color);
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.article {
    margin-bottom: 2rem;
}

.article.left {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
    width: 350px !important;
}

.article img {
    border-radius: 1rem;
    transition: all 0.3s ease;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.article img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.article.center {
    margin: 2.5rem 0;
}

.article.center img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.article figcaption {
    margin-top: 1rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
}

.hometext {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bodytext {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
    padding: 0 1rem;
    font-weight: 400;
}

.bodytext p {
    margin-bottom: 1.5rem;
}

.bodytext h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.bodytext h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1.25rem;
    color: #fff;
}

.bodytext ul, .bodytext ol {
    margin: 0;
}

a {
    color: #67b6ff;
}

a:hover {
    color: #00ade3;
    font-weight: 600;
}

.bodytext img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.detail-related {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.detail-related li {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    margin: 0.75rem 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
}

.detail-related li h3 {
    font-size: 16px;
}

.detail-related li:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.detail-related h4 {
    display: inline;
    font-size: 1.1rem;
    font-weight: 500;
}

.detail-related a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.2s;
}

.detail-related a:hover {
    color: var(--primary-color);
}

.icon_new {
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-left: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(13,110,253,0.3);
}

.navigation-cont {
    background: rgba(26,31,45,.98);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navigation-head {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navigation {
    padding-left: 1.5rem;
    margin: 0;
}

.navigation a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.2s;
    font-size: 1rem;
    opacity: 0.9;
}

.navigation a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(4px);
}

.sub-navigation {
    padding-left: 1.5rem;
    margin: 0.25rem 0;
    border-left: 1px solid var(--border-color);
}

.bodytext {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 0 1rem;
}

.bodytext img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.list-group-item {
    background: transparent;
    border-color: var(--border-color);
    padding: 1rem 1.5rem;
    transition: all 0.2s;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.list-group-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.badge {
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.alert-info {
    background: rgba(13,110,253,.15);
    border: none;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-related {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-related li {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    margin: 0.5rem 0;
    background: var(--dark-color);
    border: 1px solid var(--border-color);
}

.detail-related li:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.detail-related h4 {
    display: inline;
    font-size: 1rem;
    font-weight: 500;
}

.detail-related a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.detail-related a:hover {
    color: var(--primary-color);
}

.icon_new {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.rating {
    gap: 0.5rem;
    margin: 1rem 0;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: transparent;
    position: relative;
}

.rating label::before {
    content: "\f005";
    font-family: "FontAwesome";
    font-size: 24px;
    color: #ccc;
    position: absolute;
    left: 0;
    transition: all 0.2s ease;
}

.rating label:hover::before,
.rating label:hover ~ label::before,
.rating input:checked ~ label::before {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.rating:hover input:checked ~ label::before {
    color: #ccc;
}

.rating:hover label:hover::before,
.rating:hover label:hover ~ label::before {
    color: #ffd700 !important;
}

.rating.disabled {
    pointer-events: none;
}

.rating.disabled label::before {
    color: #666;
}

.feedback {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.ratingInfo {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    color: var(--text-muted);
}

#stringrating {
    font-size: 0.95rem;
}

/* Hiệu ứng khi đánh giá thành công */
.rating-success .feedback {
    color: #28a745;
    font-weight: 500;
}

.content {
    margin-bottom: 100px;
}

@media (max-width: 767.98px) {
    .news_column {
        margin: 0;
        padding: 0;
    }

    .panel-body {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .article.left {
        float: none;
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .article.left img {
        height: 250px !important;
    }

    .article.center img {
        height: 250px;
    }

    .hometext {
        font-size: 1.1rem;
        padding: 0;
        line-height: 1.7;
    }

    .bodytext {
        font-size: 1.05rem;
        padding: 0;
        line-height: 1.8;
    }

    .bodytext h2 {
        font-size: 1.5rem;
    }

    .bodytext h3 {
        font-size: 1.3rem;
    }

    .navigation a {
        font-size: 0.95rem;
    }

    .rating {
        gap: 0.35rem;
    }

    .rating label {
        width: 25px;
        height: 25px;
    }

    .rating label::before {
        font-size: 20px;
    }

    .h5 {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .h5_tags {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin: 1rem 0;
    }

    .h5_tags a {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
        margin: 0.2rem;
    }
}


.news-viewcat {
    --bs-primary: #0d6efd;
    --bs-dark: #1a1f2d;
    --bs-body-bg: #141821;
}

.news-viewcat {
    background-color: var(--bs-body-bg);
    color: #fff;
}

.news-viewcat .transition-all {
    transition: all 0.3s ease-in-out;
}

.news-viewcat__title {
    font-size: 16px !important;
}

.news-viewcat .hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.news-viewcat .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.3)!important;
}

.news-viewcat .hover-scale {
    transform: scale(1);
}

.news-viewcat .hover-scale:hover {
    transform: scale(1.05);
}

.news-viewcat .hover-text-primary:hover {
    color: var(--bs-primary) !important;
}

.news-viewcat__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-viewcat__card {
    background: var(--bs-dark);
    border-radius: 0.5rem;
    overflow: hidden;
}

.news-viewcat__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: rgba(255,255,255,0.1);
}

.news-viewcat__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-viewcat .text-light-50 {
    color: rgba(255,255,255,.5) !important;
}

.news-viewcat__badge {
    font-weight: 500;
    padding: 0.5em 1em;
    font-size: 0.75em;
}

.news-viewcat .text-primary {
    color: var(--bs-primary) !important;
}

.news-viewcat .gap-3 {
    gap: 1rem !important;
}

.news-viewcat .gap-2 {
    gap: 0.5rem !important;
}

.news-viewcat .gap-4 {
    gap: 1.5rem !important;
}

.news-viewcat .fw-bold {
    font-weight: 600 !important;
}

.news-viewcat .list-group-item {
    transition: all 0.2s ease-in-out;
}

.news-viewcat .list-group-item:hover {
    background-color: rgba(255,255,255,.05) !important;
}

.news-viewcat .pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 50px auto 0 !important;
    margin-bottom: 50px !important;
}

.news-viewcat .pagination li {
    margin: 0;
}

.news-viewcat .pagination li a,
.news-viewcat .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 0.5rem;
    background: var(--bs-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255,255,255,0.1);
}

.news-viewcat .pagination li a:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
}

.news-viewcat .pagination li.active a {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.news-viewcat .pagination li.disabled a {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    pointer-events: none;
}

.news-viewcat .pagination li:first-child a,
.news-viewcat .pagination li:last-child a {
    padding: 0 16px;
    font-size: 1.2em;
}

@media (max-width: 767.98px) {
    .news-viewcat__thumb {
        margin-bottom: 1rem;
    }

    .news-viewcat .pagination {
        flex-wrap: wrap;
    }

    .news-viewcat .pagination li a {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.9em;
    }

    .news-viewcat .pagination li:first-child a,
    .news-viewcat .pagination li:last-child a {
        padding: 0 12px;
        font-size: 1.1em;
    }
}
