body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 100px;
}

.navbar-nav .nav-link {
    color: #343a40;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.navbar-nav .nav-link.active {
    color: #f58220;
    /* Orange color */
}

.navbar-nav .nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f58220;
    /* Orange color */
    position: absolute;
    bottom: 0;
    left: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.language-selector a {
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
        /* Hide underline on smaller screens */
    }
}

.post-title {
    /* Color and other styles for post titles can be defined here */
    color: #212529;
}

.card-body {
    padding-top: 1rem;
    /* Add some space between image and text */
}

.card-img-top {
    width: 100%;
    height: 240px;
    /* You can adjust this height */
    object-fit: cover;
    border-radius: 0;
}


/* Footer Styles */
.footer {
    background-color: #212529;
    /* Dark background */
}
.footer p{
   font-size: 12px;
}
.footer-logo {
    max-height: 35px;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #495057;
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer .social-icon:hover {
    background-color: #f58220;
    /* Brand orange color on hover */
}

.footer .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer .footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer .btn-primary {
    background-color: #f58220;
    border-color: #f58220;
}

.footer .btn-primary:hover {
    background-color: #d96f1a;
    border-color: #d96f1a;
}

.footer .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 130, 32, 0.25);
    border-color: #f58220;
}

/* Scroll to Top Button Styles */
.scroll-top-btn {
    position: fixed;
    bottom: 70px;
    right: 12px;
    display: none;
    /* Initially hidden */
    width: 40px;
    height: 40px;
    background-color: #f58220;
    /* Brand orange color */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    line-height: 40px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #d96f1a;
    color: white;
}

/* Pagination Styles */
.pagination {
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(245, 130, 32, 0.25);
    /* Orange shadow on focus */
}

.pagination .page-link {
    border: 1px solid transparent;
    /* No border for normal items */
    color: #6c757d;
    /* Gray color for text */
    margin: 0 4px;
    /* Add some space between items */
    border-radius: 4px;
}

.pagination .page-item.active .page-link {
    background-color: transparent;
    /* No background for active item */
    border-color: #f58220;
    /* Brand orange border */
    color: #f58220;
    /* Brand orange text */
    font-weight: 600;
}

.pagination .page-link:hover {
    color: #f58220;
    /* Orange text on hover */
    background-color: #f8f9fa;
    /* Light gray background on hover */
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
}

.post-content {
    flex: 3;
    /* Chiếm 3/4 không gian */
}

.sidebar {
    flex: 2;
    position: sticky;
    /* Đây là thuộc tính quan trọng nhất */
    top: 20px;
    /* Vị trí sidebar sẽ dính lại, cách đỉnh viewport 20px */
    align-self: flex-start;
    /* Cần thiết để sticky hoạt động đúng trong flexbox */
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #6c757d;
}

/* Post Header */
.post-header h1 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #212529;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.share-buttons span {
    margin-right: 10px;
}

.share-buttons p {
    margin-left: 8px;
    /* Simple icons for example */
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    color: #333;
}

/* Post Body */
.post-body p {
    margin-bottom: 1.5em;
    font-size: 16px;
    color: #343a40;
}

.post-body h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body .featured-image {
    margin: 30px 0;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.post-tags span {
    font-weight: bold;
}

.post-tags p {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    margin-left: 10px;
    font-size: 14px;
}

.post-tags a:hover {
    background-color: #d3d9df;
    text-decoration: none;
}

/* Sidebar */
.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #f58220;
    padding-bottom: 10px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.related-post-item .thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
}

.related-post-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-item .info h3 {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.related-post-item .info h3 a {
    color: #212529;
}

.related-post-item .info .meta {
    font-size: 13px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 28px;
    }

    .post-body h2 {
        font-size: 22px;
    }
}

.card-top-vp:hover .post-title a {
    color: #f58220 !important;
}

.card-buttom-vp:hover .post-title a {
    color: #f58220 !important;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.breadcrumb-yoast {
    color: #343a40 !important;
}

