/* --- 1. Tổng thể & Nền kệ sách --- */
.tu-van-single-page-wrapper {
    background: #1a1a1a url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&q=80&w=2000') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    padding: 60px 0;
    opacity: 0; 
    transition: opacity 0.8s ease-in-out;
}

.tu-van-single-page-wrapper.loaded {
    opacity: 1;
}

/* --- 2. Khung nội dung Glassmorphism --- */
.tu-van-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9) !important; /* Nền trắng trong suốt */
    backdrop-filter: blur(15px) !important; /* Làm mờ kệ sách phía sau */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* --- 3. Tiêu đề & Meta --- */
.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 25px;
}

.category-badge {
    display: inline-block;
    background: #d4af37;
    color: #fff;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.post-header h1 {
    font-size: 2.6rem;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 800;
    margin: 10px 0;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

/* --- 4. Nội dung bài viết --- */
.post-thumbnail {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-thumbnail img { width: 100%; height: auto; display: block; }

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #222;
}

/* --- 5. Box Luật sư (Gold Glass) --- */
.lawyer-card-footer {
    margin-top: 50px;
    padding: 30px;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 5px solid #d4af37;
    border-radius: 15px;
}

.lawyer-info h3 { color: #856404; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.lawyer-info h4 { font-size: 1.8rem; color: #1a1a1a; margin-bottom: 15px; }

.btn-call {
    display: inline-block;
    background: #1a1a1a;
    color: #d4af37 !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-call:hover { background: #d4af37; color: #1a1a1a !important; transform: scale(1.05); }

/* --- 6. Loading Screen Spinner --- */
#page-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Nút Quay lại trang danh sách tư vấn */
.btn-back-list {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    margin-right: 10px; /* Tạo khoảng cách với nút gọi */
    border: 1px solid #d4af37;
    transition: 0.3s;
    text-align: center;
}

.btn-back-list:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Container chứa các nút để căn chỉnh */
.lawyer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Icon cho nút */
.btn-back-list i {
    margin-right: 8px;
    color: #d4af37;
}

/* --- 1. Nền trang & Loading --- */
.tu-van-single-page-wrapper {
    background: #1a1a1a url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&q=80&w=2000') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    padding: 60px 0;
    opacity: 0; /* Hiện ra mượt mà nhờ JS */
    transition: opacity 0.8s ease-in-out;
}

.tu-van-single-page-wrapper.loaded { opacity: 1; }

/* --- 2. Hiệu ứng Kính mờ (Glassmorphism) --- */
.tu-van-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.96) !important; /* Trắng trong suốt nhẹ */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.post-header h1 { font-size: 2.6rem; color: #1a1a1a; font-weight: 800; margin: 15px 0; line-height: 1.2; }
.category-badge { background: #d4af37; color: #fff; padding: 6px 15px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 11px; }

/* --- 3. Box Luật sư & Nút hành động --- */
.lawyer-card-footer {
    margin-top: 50px;
    padding: 35px;
    background: rgba(212, 175, 55, 0.08) !important;
    border-left: 6px solid #d4af37;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.lawyer-info h3 { color: #856404; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
.lawyer-info h4 { font-size: 1.8rem; color: #1a1a1a; margin-bottom: 5px; }
.lawyer-pos { color: #666; font-style: italic; margin-bottom: 25px; }

.lawyer-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Style nút Xem hồ sơ */
.btn-lawyer-profile {
    background: #ffffff;
    color: #1a1a1a !important;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1.5px solid #d4af37;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.btn-lawyer-profile:hover { background: #fdfaf0; transform: translateY(-3px); }

/* Style nút Gọi điện */
.btn-call {
    background: #1a1a1a;
    color: #d4af37 !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.btn-call:hover { background: #d4af37; color: #1a1a1a !important; transform: translateY(-3px); }

/* --- 4. Loading Spinner --- */
#page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a1a; display: flex; justify-content: center; align-items: center; z-index: 10000;
}
.loader-spinner {
    width: 50px; height: 50px; border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid #d4af37; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 4. Nội dung bài viết & Thụt lề danh sách --- */
.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #222;
}

/* Định dạng chung cho danh sách */
.post-content ul, 
.post-content ol {
    margin: 20px 0 20px 40px; /* Thụt lề trái 40px */
    padding-left: 0;
}

/* Khoảng cách giữa các dòng trong danh sách */
.post-content li {
    margin-bottom: 12px;
    position: relative;
}

/* Tùy chỉnh riêng cho dấu gạch đầu dòng (ul) để đẹp hơn */
.post-content ul li::marker {
    color: #d4af37; /* Màu vàng Gold cho dấu chấm/gạch */
    font-size: 1.2rem;
}

/* Nếu bạn muốn thụt lề cho cả đoạn văn đầu dòng (không phải danh sách) */
.post-content p {
    margin-bottom: 20px;
    /* text-indent: 20px; */ /* Mở comment nếu muốn mọi đoạn văn đều thụt đầu dòng */
}