body{/* Thiết lập chung của body (từ Đoạn 2) */
body {
    font-family: &#039;Segoe UI&#039;, Tahoma, Geneva, Verdana, sans-serif; /* Ghi đè font-family nếu .government-structure là phần tử con của body */
    background-color: #f4f7f6;
    padding: 20px;
    margin: 0;
}

/* Thiết lập cơ bản và Bố cục Flexbox (từ Đoạn 1) */
/* CẢNH BÁO: Selector .government-structure bị lặp lại trong Đoạn 1, tôi đã hợp nhất các thuộc tính. */
.government-structure {
    font-family: Arial, sans-serif; /* Thuộc tính từ quy tắc đầu tiên của .government-structure */
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f8f9fa; /* Nền nhẹ */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* Thuộc tính từ quy tắc thứ hai (Bố cục Flexbox) của .government-structure */
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around; 
    gap: 20px;
}

/* Tiêu đề chính (từ Đoạn 1) */
.main-title {
    color: #004d40; 
    font-size: 24px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 3px solid #004d40;
    text-transform: uppercase;
}

/* Các khối tổ chức (từ Đoạn 1) */
.organization-unit {
    flex: 1 1 45%; 
    min-width: 300px; 
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organization-unit:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Tiêu đề đơn vị (Đảng Ủy, HĐND...) (từ Đoạn 1) */
.unit-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #c82333; 
    text-decoration: none;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #c82333;
    text-transform: uppercase;
    transition: color 0.3s;
}

.unit-title:hover {
    color: #e04a57;
}

/* Danh sách các đơn vị cấp dưới (từ Đoạn 1) */
.sub-units {
    list-style: none; 
    padding: 0;
    margin: 0;
    text-align: left;
}

.sub-units li {
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.sub-units li:last-child {
    border-bottom: none;
}

.sub-units a {
    color: #343a40; 
    text-decoration: none;
    display: block; 
    padding: 3px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.sub-units a:before {
    content: &quot;•&quot;; 
    color: #007bff; 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.sub-units a:hover {
    color: #007bff; 
    padding-left: 5px; 
}

/* Điều chỉnh responsive cho màn hình nhỏ (từ Đoạn 1) */
@media (max-width: 768px) {
    .government-structure {
        flex-direction: column; 
        align-items: center;
    }
    .organization-unit {
        flex: 1 1 100%;
        max-width: 90%;
    }
}

/* Container sử dụng CSS Grid (từ Đoạn 2) */
.personnel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Định kiểu cho từng Card thông tin (từ Đoạn 2) */
.person-card {
    background-color: #ffffff;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Hiệu ứng tương tác (từ Đoạn 2) */
.person-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Phần hình ảnh (từ Đoạn 2) */
.photo {
    height: 220px; /* Giữ nguyên chiều cao cố định */
    overflow: hidden;
    background-color: #e9ecef; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo img {
    width: 100%;
    height: 100%;
    /* THAY ĐỔI DƯỚI ĐÂY: */
    object-fit: contain; /* Giữ tỷ lệ, thu nhỏ/phóng to để vừa vặn, không cắt */
}

/* Định kiểu cho các ô không có ảnh (từ Đoạn 2) */
.photo.no-photo span {
    color: #6c757d;
    font-style: italic;
}

/* Phần thông tin (từ Đoạn 2) */
.info {
    padding: 20px;
    line-height: 1.5;
    flex-grow: 1; 
}

.info p {
    margin: 8px 0; 
    font-size: 15px;
    color: #495057;
}

.info strong {
    color: #212529;
    font-weight: 600;
}

/* Tên người nổi bật (từ Đoạn 2) */
.info .name {
    font-size: 20px;
    font-weight: bold;
    color: #007bff; 
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 3px solid #007bff; 
    display: block;
};}