/* 1. TỔNG THỂ TRANG & BACKGROUND PINTEREST */
.single-post-layout {
    padding: 60px 0;
    background-image: url('https://i.pinimg.com/736x/58/b5/6d/58b56dcca21314d648c1af71cfd2d0aa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 2. CỘT NỘI DUNG CHÍNH */
.post-detail-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.98); 
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 3. BREADCRUMB VỚI HIỆU ỨNG HOVER */
.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}
.breadcrumb-nav a { 
    color: #666; 
    text-decoration: none; 
    transition: all 0.3s ease;
    position: relative;
}
/* Hiệu ứng gạch chân khi hover vào chữ Trang chủ */
.breadcrumb-nav a:hover { 
    color: #c2a172; 
}
.breadcrumb-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #c2a172;
    transition: width 0.3s ease;
}
.breadcrumb-nav a:hover::after {
    width: 100%;
}
.breadcrumb-nav i { font-size: 10px; margin: 0 8px; color: #ccc; }

/* 4. TRANG TRÍ PHẦN NGÀY ĐĂNG (META) */
.post-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
    padding: 10px 18px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 50px; /* Dạng viên thuốc */
    width: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.post-meta-detail span {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.3px;
}

.post-meta-detail i {
    color: #fff;
    margin-right: 10px;
    font-size: 11px;
    background: #c2a172; /* Vòng tròn đỏ cho icon */
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(192, 57, 43, 0.2);
}

/* 5. TIÊU ĐỀ & NỘI DUNG */
.post-main-title { font-size: 34px; line-height: 1.3; margin-bottom: 25px; color: #1a1a1a; font-weight: 700; }
.featured-image-wrap { margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.featured-image-wrap img { width: 100%; height: auto; display: block; }
.post-content-entry { font-size: 18px; line-height: 1.8; color: #333; }

/* 6. BÀI VIẾT LIÊN QUAN */
.related-posts-section { margin-top: 50px; border-top: 2px solid #eee; padding-top: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.related-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.related-thumb { width: 100%; height: 170px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.related-card:hover .related-thumb img { transform: scale(1.1); }
.related-info { padding: 15px; }
.related-info h4 { font-size: 14px; color: #333; margin: 0; line-height: 1.4; font-weight: 600; }
.related-card:hover h4 { color: #c2a172; }

/* 7. SIDEBAR */
.sidebar-column { flex: 0 0 320px; width: 320px; }
.sidebar-sticky { position: sticky; top: 20px; }
.banner-widget { border-radius: 15px; overflow: hidden; background: #000; position: relative; }
.banner-image-container img { width: 100%; height: 300px; object-fit: cover; opacity: 0.5; }
.banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; color: #fff; }
.contact-item a { display: inline-block; background: #c2a172; color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; margin-top: 15px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-content-wrapper { flex-direction: column; }
    .sidebar-column { width: 100%; }
    .related-grid { grid-template-columns: 1fr; }
}
/* Trang trí ngày đăng cho Tin liên quan */
.related-date {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: rgba(240, 240, 240, 0.8);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Thêm icon lịch nhỏ trước ngày đăng tin liên quan */
.related-date::before {
    content: '\f133'; /* Icon lịch từ Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #c2a172;
}

/* Hiệu ứng khi di chuột vào ô tin liên quan thì ngày đăng đổi màu */
.related-card:hover .related-date {
    background: #c2a172;
    color: #fff;
}

.related-card:hover .related-date::before {
    color: #fff;
}

/* Trang trí Sidebar Liên hệ */
.contact-sidebar-widget {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar-banner-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.contact-info-wrapper {
    padding: 25px;
}

.contact-info-wrapper h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c2a172;
    display: inline-block;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.contact-detail-item i {
    color: #c2a172;
    font-size: 16px;
    width: 20px;
    margin-top: 3px;
    text-align: center;
}

.contact-detail-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail-item a:hover {
    color: #c2a172;
}

/* Nút Liên hệ */
.btn-sidebar-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #c2a172;
    color: #fff !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-sidebar-contact:hover {
    background: #c2a172;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(194, 161, 114, 0.3);
}

/* --- 2. Bộ lọc (Filter Bar) - Hiệu ứng trong suốt Glassmorphism --- */
.tu-van-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    /* Sử dụng nền trắng cực mờ kết hợp với backdrop-filter */
    background: rgba(255, 255, 255, 0.15); 
    padding: 20px;
    border-radius: 50px; /* Bo tròn dài giống trang thư viện */
    backdrop-filter: blur(10px); /* Hiệu ứng làm mờ hậu cảnh */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Viền mảnh màu trắng trong suốt */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Đổ bóng nhẹ để nổi bật trên nền gỗ */
}

/* Tinh chỉnh các ô Input và Select bên trong để trông "sạch" hơn */
.tu-van-filter-bar input, 
.tu-van-filter-bar select {
    background: rgba(255, 255, 255, 0.9); /* Ô nhập liệu nên để nền sáng để dễ đọc chữ */
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tu-van-filter-bar input {
    flex: 2;
}

.tu-van-filter-bar select {
    flex: 1;
    cursor: pointer;
}

.tu-van-filter-bar input:focus, 
.tu-van-filter-bar select:focus {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); /* Hiệu ứng tỏa sáng màu Gold khi click vào */
}

