/* Biến CSS */
:root {
    --primary: #ff4081;
    --secondary: #3f51b5;
    --accent: #00bcd4;
    --light: #f5f5f5;
    --dark: #212121;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --gray: #9e9e9e;
    --light-gray: #eeeeee;
    --white: #ffffff;
}

/* Thiết lập cơ bản */
body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

/* Header Styles */
.top-bar {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary);
}

.top-menu {
    display: flex;
    align-items: center;
}

.top-menu a, .top-menu .language-dropdown {
    color: var(--white);
    margin-right: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.top-menu a:hover {
    color: var(--light);
    transform: translateY(-2px);
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 2px;
    transition: all 0.3s;
}

.flag-icon:hover {
    transform: scale(1.2);
}

.user-actions i, .social-icons i {
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-actions i:hover, .social-icons i:hover {
    color: var(--light);
    transform: scale(1.2);
}

.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin-right: 15px;
}

.main-menu > li > a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    position: relative;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.main-menu > li > a:hover {
    color: var(--primary);
}


.main-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s;
}

.main-menu > li > a:hover::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border-radius: 5px;
    padding: 10px 0;
    z-index: 999;
}

.main-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li {
    position: relative;
    display: block;
}

.dropdown-menu a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Cải thiện hiển thị cho submenu */
/*.main-menu > li.has-submenu > a::after {*/
/*    content: '\f107';*/
/*    font-family: 'Font Awesome 5 Free';*/
/*    font-weight: 900;*/
/*    margin-left: 4px;*/
/*    font-size: 0.8rem;*/
/*    opacity: 0.7;*/
/*}*/

.dropdown-menu .has-submenu > a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    float: right;
    font-size: 0.75rem;
    opacity: 0.7;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1010;
    display: none;
}

.dropdown-menu li:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
}

/* Sub-submenu (level 3) */
.dropdown-subsubmenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1020;
    display: none;
}

.dropdown-submenu li:hover > .dropdown-subsubmenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
}

.breadcrumb-section {
    background: linear-gradient(90deg, var(--light-gray), var(--light));
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--gray);
}

/* Inline Search Box */
.inline-search-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.inline-search-box {
    position: absolute;
    right: 35px;
    top: -10px;
    width: 0;
    max-width: 300px;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1020;
}

.inline-search-box.active {
    width: 300px;
    padding: 8px 15px;
    opacity: 1;
}

.inline-search-input {
    width: 100%;
    padding: 5px 10px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
}

.inline-search-results {
    position: absolute;
    top: 42px;
    right: 0;
    width: 300px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1030;
    display: none;
    padding: 10px 0;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h5 {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.search-result-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

.manual-search-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    border: none;
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.manual-search-btn:hover {
    background-color: var(--secondary);
}

/* Login/Register Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-container {
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: all 0.4s;
}

.auth-modal.active .auth-container {
    transform: translateY(0);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.auth-links a:hover {
    color: var(--primary);
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.close-auth:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
}

.popular-posts .media {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.popular-posts .media:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.popular-posts h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.popular-posts a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.popular-posts a:hover {
    color: var(--primary);
}

.popular-posts .post-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--light-gray);
}

.categories-widget li:last-child {
    border-bottom: none;
}

.categories-widget a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
}

.categories-widget a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.categories-widget .count {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.newsletter-widget p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 15px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--secondary);
}

.ad-widget {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.ad-widget h5 {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.ad-widget img {
    max-width: 100%;
    border-radius: 5px;
}

/* Featured Posts */
.featured-post {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.featured-post-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.featured-post-content {
    padding: 20px;
    background-color: var(--white);
}

.featured-post-content h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

.featured-post-content a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.featured-post-content a:hover {
    color: var(--primary);
}

.post-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

.post-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.post-meta span {
    margin-right: 15px;
}

.featured-post-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.8;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateX(5px);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
}

.section-title .view-all {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.section-title .view-all:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Category Posts Layouts */
.post-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.row-cols-1 > *, .row-cols-md-2 > *, .row-cols-lg-3 > * {
    margin-bottom: 30px; /* Thêm margin bottom để tạo khoảng cách */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-card-content {
    padding: 20px;
}

.post-card-content h4 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.post-card-content a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.post-card-content a:hover {
    color: var(--primary);
}


.post-list-content a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.post-list-content a:hover {
    color: var(--primary);
}

.post-card-content p {
    flex-grow: 1;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn số dòng hiển thị */
    -webkit-box-orient: vertical;
}

/* Layout 2 */
.post-list {
    display: flex;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.post-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-list-img {
    flex: 0 0 35%;
    background-size: cover;
    background-position: center;
}

.post-list-content {
    flex: 0 0 65%;
    padding: 20px;
}

.post-list-content h4 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.post-list-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.8;
}

/* Horizontal Slide */
.horizontal-posts {
    margin-bottom: 50px;
}

.horizontal-post {
    margin: 0 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.horizontal-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.horizontal-post-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.horizontal-post-content {
    padding: 15px;
    background-color: var(--white);
}

.horizontal-post-content h5 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.horizontal-post-content a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.horizontal-post-content a:hover {
    color: var(--primary);
}

.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.slick-prev:hover, .slick-next:hover {
    background-color: var(--secondary);
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
}

.slick-prev:before {
    content: '\f104';
}

.slick-next:before {
    content: '\f105';
}

/* Blog Category Page */
.category-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 50px 0;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 10px;
}

.category-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.pagination {
    margin-top: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 5px;
}

.page-link {
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    color: var(--dark);
    font-weight: 600;
    background-color: var(--light-gray);
    border-radius: 5px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

/* Blog Detail Page */
.blog-detail-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.blog-detail-header h1 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.blog-detail-meta {
    color: var(--white);
    margin-bottom: 20px;
}

.blog-detail-meta span {
    margin-right: 20px;
}

.blog-detail-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.blog-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.blog-content h2, .blog-content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-content blockquote {
    padding: 20px;
    background-color: var(--light-gray);
    border-left: 5px solid var(--primary);
    margin: 20px 0;
    font-style: italic;
    color: var(--dark);
}

.blog-tags {
    margin-top: 30px;
}

.blog-tags span {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
}

.blog-tags a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    color: var(--dark);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-tags a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.author-box {
    display: flex;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 10px;
    font-weight: 700;
}

.author-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.author-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.comment-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.comment-title {
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comment-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.comment-text {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-reply {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.comment-reply:hover {
    background-color: var(--primary);
    color: var(--white);
}

.reply-comment {
    margin-left: 80px;
}

.load-more-comments {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--light-gray);
    color: var(--dark);
    text-align: center;
    border: none;
    border-radius: 5px;
    margin-top: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-comments:hover {
    background-color: var(--primary);
    color: var(--white);
}

.comment-form {
    margin-top: 30px;
}

.comment-form .form-control {
    margin-bottom: 20px;
}

.related-posts {
    margin-top: 50px;
}

.related-posts .post-card {
    margin-bottom: 0;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 100px 0 50px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.page-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Search Results Page */
.search-stats {
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    font-size: 0.95rem;
}

.search-stats span {
    font-weight: 700;
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

.no-results p {
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light-gray);
    padding: 70px 0 0;
    font-size: 0.95rem;
    margin-top: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 0.8rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .main-menu > li {
        margin-right: 15px;
    }

    .main-menu > li > a {
        padding: 10px;
    }
}

@media (max-width: 991px) {

    .main-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .main-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important; /* !important để ghi đè tất cả các style khác */
        font-size: 1.5rem;
        color: var(--dark);
        cursor: pointer;
        margin-left: auto;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
    }

    .featured-post-img {
        height: 220px;
    }

    .blog-detail-header {
        height: 350px;
    }

    .blog-detail-header h1 {
        font-size: 2rem;
    }

    .sidebar {
        margin-top: 50px;
    }

    .inline-search-box.active {
        width: 200px;
    }

    .inline-search-results {
        position: fixed;
        top: 110px;
        right: 20px;
        width: 280px;
    }
}

@media (max-width: 767px) {
    .top-menu {
        display: none;
    }

    .featured-post-img {
        height: 200px;
    }

    .post-list {
        flex-direction: column;
    }

    .post-list-img {
        height: 200px;
        flex: 0 0 100%;
    }

    .post-list-content {
        flex: 0 0 100%;
    }

    .blog-detail-header {
        height: 300px;
    }

    .blog-detail-header h1 {
        font-size: 1.8rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin: 0 auto 20px;
    }

    .comment-avatar {
        width: 50px;
        height: 50px;
    }

    .reply-comment {
        margin-left: 40px;
    }

    .inline-search-box.active {
        width: 150px;
    }

    .inline-search-results {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .logo {
        font-size: 1.5rem;
    }

    .featured-post-img {
        height: 180px;
    }

    .blog-detail-header {
        height: 250px;
    }

    .blog-detail-header h1 {
        font-size: 1.5rem;
    }

    .blog-detail-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .section-title .view-all {
        position: static;
        display: block;
        margin-top: 10px;
    }
}
/* Menu Active State */
.main-menu > li.active > a,
.main-menu > li > a.active {
    color: var(--primary);
}

.main-menu > li.active > a::after,
.main-menu > li > a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    border-radius: 2px;
}

.dropdown-menu li.active > a,
.dropdown-menu a.active {
    background-color: var(--light-gray);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-submenu li.active > a,
.dropdown-submenu a.active,
.dropdown-subsubmenu li.active > a,
.dropdown-subsubmenu a.active {
    background-color: var(--light-gray);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu Active State */
.mobile-menu-items li.active > a,
.mobile-menu-items a.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-items .submenu li.active > a {
    padding-left: 5px;
}
/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    overflow-y: auto;
    transition: all 0.4s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.close-menu {
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
}

.close-menu:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-menu-items {
    padding: 20px;
}

.mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    margin-bottom: 10px;
    position: relative;
}

.mobile-menu-items a {
    color: var(--dark);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s;
}

.mobile-menu-items a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mobile-menu-items .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 42px;
    width: 30px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-items .submenu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-items .submenu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}

.mobile-menu-items .submenu.active {
    display: block;
}

.mobile-menu-bottom {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.mobile-menu-bottom a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    color: var(--dark);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: all 0.3s;
}

.mobile-menu-bottom a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu-toggle {
    display: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}
/* Thêm vào file styles.css */
.language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-dropdown .current-lang {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.language-dropdown .current-lang i {
    margin-left: 5px;
    font-size: 10px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 10002;
    list-style: none;
    margin: 0;
}

.language-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li a {
    color: var(--dark) !important;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.lang-dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary) !important;
}
/* Thêm vào file styles.css */
.home-slider {
    margin-bottom: 30px;
}

.slider-item {
    position: relative;
}

.slider-img {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    border-radius: 0 0 10px 10px;
}

.slider-content h2 {
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.slider-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .slider-img {
        height: 350px;
    }

    .slider-content h2 {
        font-size: 1.5rem;
    }
}

/* Thêm vào file styles.css */
.related-posts-section {
    background-color: var(--light-gray);
    padding: 50px 0;
    margin: 50px 0;
}

.related-posts-slider {
    margin: 0 -15px;
}

.related-posts-slider .horizontal-post {
    margin: 15px;
}
.social-icons a{
    color: var(--white);
}
