/*
Theme Name: LawFirm Core Builder
Theme URI: https://alananhannguyen.com
Author: Alana Nhàn Nguyễn
Author URI: https://alananhannguyen.com
Description: Custom theme công ty luật với kiến trúc module kéo thả tuỳ biến linh hoạt.
Version: 1.0.1
Text Domain: lawfirm
*/

/* 1. KHAI BÁO BẢNG MÀU THƯƠNG HIỆU ĐỒNG BỘ */
:root {
    --law-primary: #a65a2a;      /* Nâu cam đất đặc trưng của Alana Nhàn Nguyễn */
    --law-accent: #c5a059;       /* Vàng gold sang trọng */
    --law-secondary: #c5a059;    
    --law-dark: #0f172a;         /* Đen than cho tiêu đề chính */
    --law-text: #334155;         /* Xám đậm cho đoạn văn dễ đọc */
    --law-bg-light: #f8fafc;
    --law-border: #e2e8f0;
}

/* 2. THIẾT LẬP CƠ BẢN (RESET & TYPOGRAPHY) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--law-text);
    margin: 0;
    line-height: 1.7;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}
/* ========================================================
   TỐI ƯU GIAO DIỆN HỒ SƠ LUẬT SƯ TRÊN ĐIỆN THOẠI (DƯỚI 768PX)
   ======================================================== */
@media screen and (max-width: 768px) {
    /* Ép khối bọc 2 cột chuyển thành xếp dọc từ trên xuống dưới */
    .single-lawyer .lawyer-profile-card,
    .single-lawyer .row,
    .single-lawyer [style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    
    /* Ép cột con (ảnh, thông tin, hồ sơ) giãn rộng 100% màn hình */
    .single-lawyer .lawyer-avatar-col,
    .single-lawyer .lawyer-info-col,
    .single-lawyer .col,
    .single-lawyer [style*="flex:"],
    .single-lawyer [style*="width: 33%"],
    .single-lawyer [style*="width: 66%"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 25px !important;
    }

    /* Căn giữa cột avatar và tên luật sư cho cân đối trên mobile */
    .single-lawyer .lawyer-avatar-col,
    .single-lawyer .lawyer-avatar-col img {
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* Tối ưu lại tiêu đề tránh bị rớt chữ thừa */
    .single-lawyer h1, 
    .single-lawyer h2,
    .single-lawyer h3 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }
}