/* FILE: style-lawyers.css */
:root {
    --primary-gold: #c2a172;
    --deep-navy: #0f172a;
    --white: #ffffff;
    --text-gray: #64748b;
}

.ls-page-container {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                      url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.ls-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.ls-header {
    text-align: center;
    margin-bottom: 60px;
}

.ls-header h1 {
    font-size: 3rem;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ls-sep {
    width: 60px;
    height: 4px;
    background: var(--primary-gold);
    margin: 20px auto;
}

/* Controls: Search & Filter */
.ls-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ls-search-box {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.ls-search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border-radius: 30px;
    border: 1px solid rgba(194, 161, 114, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    outline: none;
    transition: all 0.3s;
}

.ls-search-box input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
}

.ls-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.ls-filter-dropdown select {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--primary-gold);
    background: var(--deep-navy);
    color: var(--white);
    cursor: pointer;
    min-width: 220px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2a172' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

/* Grid Layout */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Khi có sidebar nên để 3 cột */
    gap: 25px;
}

.ls-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    height: 100%;
}

.ls-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ls-card-img {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #f1f1f1;
}

.ls-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.ls-card:hover .ls-card-img img {
    transform: scale(1.08);
}

.ls-card-body {
    padding: 20px;
    text-align: center;
}

.ls-role {
    color: var(--primary-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    display: block;
}

.ls-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--deep-navy);
    margin: 5px 0;
    color: var(--primary-gold) !important;
}

.ls-tax {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    font-style: italic;
}

.ls-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Sidebar rộng 300px */
    gap: 30px;
}

.ls-sidebar-sticky {
    position: sticky;
    top: 100px; /* Giữ banner không trôi mất khi cuộn trang */
}

.ls-banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(194, 161, 114, 0.3); /* Viền vàng kim nhẹ đồng bộ theme */
}

@media (max-width: 1024px) {
    .ls-main-layout {
        grid-template-columns: 1fr;
    }
    .ls-sidebar {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) { .ls-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .ls-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .ls-grid { grid-template-columns: 1fr; }
    .ls-controls { flex-direction: column; align-items: center; }
    .ls-search-box, .ls-filter-dropdown select { max-width: 100%; width: 100%; }
    .ls-header h1 { font-size: 2.2rem; }
}

/* style-lawyers.css - Nâng cấp phần địa chỉ trong thẻ Card */

.ls-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Khoảng cách giữa icon và chữ */
    color: var(--primary-gold); /* Sử dụng màu vàng kim chủ đạo */
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0;
}

.ls-location i {
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(194, 161, 114, 0.4)); /* Hiệu ứng phát sáng nhẹ cho icon */
}

/* Thêm icon vị trí giả lập bằng CSS nếu bạn chưa có FontAwesome */
.ls-location::before {
    
    font-size: 12px;
}

.ls-tax {
    font-size: 13px;
    color: #94a3b8; /* Màu xám sáng cho dễ đọc trên nền trắng */
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 10px;
    display: block;
}
/* --- HIỆU ỨNG SORT --- */
@keyframes lsSortFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ls-page-container {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    /* Ép font Times New Roman */
    font-family: 'Times New Roman', Times, serif !important;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                      url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Đảm bảo toàn bộ chữ bên trong dùng Times New Roman */
.ls-page-container * {
    font-family: 'Times New Roman', Times, serif !important;
}

.ls-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ls-header h1 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ls-sep {
    width: 60px;
    height: 3px;
    background: #c2a172;
    margin: 0 auto 40px;
}

.ls-controls {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.ls-filter-dropdown select, .ls-search-box input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
}

.ls-filter-dropdown select option { background: #0f172a; }

.ls-search-box { position: relative; }
.ls-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c2a172;
}

.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.ls-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* Hiệu ứng ban đầu khi load trang */
    animation: lsSortFade 0.6s ease forwards;
}

.ls-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.ls-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ls-card:hover .ls-image img { transform: scale(1.05); }

.ls-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.ls-card:hover .ls-overlay { opacity: 1; }

.ls-view-btn {
    padding: 10px 20px;
    background: #c2a172;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.ls-info { padding: 20px; text-align: center; }

.ls-name {
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: bold;
    margin-bottom: 8px;
}

.ls-line {
    width: 30px;
    height: 2px;
    background: #c2a172;
    margin: 0 auto 15px;
}

.ls-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ls-controls { grid-template-columns: 1fr; }
}

