* {
    scroll-margin-top: 100px;
}

.site-main {
    margin-top: 70px;
}

body,
html {
    max-width: 100% !important;
    overflow-x: hidden;
}

.site,
.page-content,
.elementor-container {
    max-width: 100% !important;
}

.category-tag>a {
    color: inherit;
}

:root {
    --primary: #0068ff;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-light: #64748b;
    --bg-page: #ffffff;
    --bg-subtle: #f8fafc;
    --border: #e2e8f0;
    --container-width: 760px;
    --transition: all 0.3s ease;
}

/* Chỉnh màu nền của header và footer ngoài trang chủ (blog, tag, category) */
body:not(.home) .elementor-element-0b0c07b,
.elementor-element-cb973f9 {
    background: #eaeaea !important;
}

/* ─── Floating Social Share ─── */
.share-sidebar {
    position: fixed;
    left: calc(50% - (1240px / 2) - 80px);
    top: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ─── Main Container ─── */
.main-wrapper {
    max-width: 1210px;
    margin: 120px auto;
    padding: 0 20px;
}

/* ─── Breadcrumb ─── */


/* ─── Article Content ─── */
.category-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-body p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.content-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: rgb(0, 104, 255) !important;
}

figure {
    margin: 35px 0;
    text-align: center;
}

figure img {
    width: 100%;
    border-radius: 12px;
}

figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.key-takeaways {
    background: var(--bg-subtle);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--primary);
}

/* ─── Tags ─── */
.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: var(--bg-subtle);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--border);
    color: var(--text-dark);
}

/* ─── Author Box ─── */
.author-box {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-subtle);
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ─── Post Navigation ─── */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.nav-link.next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-link:hover .nav-title {
    color: var(--primary);
}

/* ─── Related Posts Section ─── */
.related-section {
    position: relative;
    padding: 0;
    padding-bottom: 60px;
}

.related-section h3 {
    margin-bottom: 20px;
}

.related-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 -5px;
}

.slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 5px;
}

/* ─── Related Card ─── */
.related-card {
    flex: 0 0 calc(50% - 7.5px);
    min-width: 280px;
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 0 10px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ─── Related Card Image ─── */
.related-card img {
    width: 100% !important;
    /*     height: 160px !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important; */
}

.related-card-info {
    padding: 15px;
	height: 100px;
}

.related-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ─── FIX ARROW XUỐNG DƯỚI + CENTER ─── */

/* Container slick */
.slick-related {
    text-align: center;
}

/* ─── FIX ARROW XUỐNG DƯỚI + CENTER CHUẨN ─── */

.slick-related {
    position: relative;
}
/* Style chung */
.slick-related .slick-prev,
.slick-related .slick-next {
    position: absolute !important;
    top: 110%;
    width: 40px !important;
    height: 40px !important;
	border:none;
    z-index: 10;
	transform: none !important;
/* ẨN TEXT "Previous / Next" */
	font-size: 0 !important;
    color: transparent !important;
	
/* CENTER ICON TRONG BUTTON */
	display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
	/* FIX LỆCH TRÒN */
	box-sizing: border-box;
}

/* Căn giữa bằng trick 50% */
.slick-related .slick-prev {
    left: calc(50% - 50px) !important;
}

.slick-related .slick-next {
    left: calc(50% + 10px) !important;
}

/* Icon */
.slick-related .slick-prev:before,
.slick-related .slick-next:before {
    font-size: 30px !important;
    color: rgb(14, 165, 233) !important;
    opacity: 1 !important;
}

/* Hover */
.slick-related .slick-prev:hover:before,
.slick-related .slick-next:hover:before {
    color:#2563eb !important;
}

/* Ghi đè trạng thái focus và hover mặc định của button slick */
.slick-related .slick-prev:focus, 
.slick-related .slick-next:focus,
.slick-related .slick-prev:hover,
.slick-related .slick-next:hover {
    background-color: #fff !important; /* Hoặc màu trắng bạn đang dùng */
    color: #2563eb !important;         /* Màu icon xanh của bạn */
    outline: none !important;          /* Xóa đường viền xanh mặc định của trình duyệt nếu có */
}

/* Nếu bạn vẫn muốn khi hover nó đổi sang màu xanh primary như code cũ của bạn */

/* ─── Message Box ─── */
#message-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: none;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .share-sidebar {
        display: none;
    }

    .slick-prev,
    .slick-next {
        display: none !important;

    }
}

@media (max-width: 600px) {
    .breadcrumb .current {
        max-width: 150px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-link.next {
        text-align: left;
        align-items: flex-start;
    }

    .related-card {
        flex: 0 0 85%;
    }

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

#message-box {
    left: 20px;
    right: unset;
}

.blog-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    /*     object-fit: cover; */
}

.author-a {
    color: black;
}