/* Custom CSS for Enhanced Lawyer Section */
.lawyer-section-enhanced {
    padding: 50px 0;
    background: transparent;
}

.lawyer-section-enhanced .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.lawyer-section-enhanced .section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.lawyer-section-enhanced .section-header p {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.lawyer-section-enhanced .lawyer-slider-container {
    position: relative;
    padding: 0 50px;
}

.lawyer-section-enhanced .lawyer-slider {
    transition: all 0.3s ease;
}

/* Static mode (when slider is not active for ≤ 3 cards) */
.lawyer-section-enhanced .lawyer-slider.is-static {
    gap: 20px; /* matches 10px side padding per owl-item => 20px total */
}

.lawyer-section-enhanced .lawyer-slider.is-static .lawyer-card {
    margin: 0; /* prevent extra spacing */
    flex: 0 1 350px; /* consistent width like carousel */
    max-width: 350px;
}

/* Owl Carousel Custom Styling */
.lawyer-section-enhanced .owl-carousel .owl-item {
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.lawyer-section-enhanced .owl-carousel .owl-item .lawyer-card {
    margin: 0 auto;
}

/* Remove any inline margin-left applied by Owl */
.lawyer-section-enhanced .owl-stage {
    margin-left: 0 !important;
}

.lawyer-section-enhanced .lawyer-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    max-width: 350px;
    width: 100%;
    position: relative;
}

.lawyer-section-enhanced .lawyer-card:hover {
    transform: none;
    box-shadow: none;
}


.lawyer-section-enhanced .lawyer-card-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.lawyer-section-enhanced .lawyer-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: none;
    border-radius: 20px;

}


.lawyer-section-enhanced .lawyer-card-content {
    position: absolute;
    bottom: 0;
    left: -2px;
    right: -2px;
    min-height: 140px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: none;
    -webkit-clip-path: none;
    clip-path: none;
    box-shadow: 0px -25px 30px -10px rgb(182 157 116 / 30%);
    border-radius: 20px 20px 0 0;



}

.lawyer-section-enhanced .lawyer-card-content::after {
    content: '\f077'; 
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: opacity 0.3s ease;
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
}

html[lang="ar"] .lawyer-section-enhanced .lawyer-card-content::after {
    right: auto;
    left: 10px;
}

.lawyer-section-enhanced .lawyer-card-content::before { display: none; }

.lawyer-section-enhanced .lawyer-card:hover .lawyer-card-content::after {
    opacity: 0;
}

.lawyer-section-enhanced .lawyer-card:hover .lawyer-card-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    transform: none;
    box-shadow: 0px 0px 20px 0px rgb(182 157 116 / 84%);
    border-radius: 20px 20px 0 0;
}

.lawyer-section-enhanced .lawyer-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-title {
    font-size: 14px;
    color: #b69d74;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lawyer-section-enhanced .lawyer-card:hover .lawyer-card-content .lawyer-title {
    font-size: 15px;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-description {
    font-size: 13px;
    color: #e8e8e8;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.lawyer-section-enhanced .lawyer-card:hover .lawyer-card-content .lawyer-description {
    -webkit-line-clamp: 3;
    margin-bottom: 15px;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact {
    padding-top: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.lawyer-section-enhanced .lawyer-card:hover .lawyer-card-content .lawyer-contact {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item:last-child {
    margin-bottom: 0;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item i {
    color: #b69d74;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

html[lang="ar"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact .lawyer-contact-item a[href^="mailto:"] {
    direction: ltr !important;
    unicode-bidi: embed !important;
    text-align: left !important;
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[lang="en"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact .lawyer-contact-item a[href^="mailto:"] {
    direction: ltr !important;
    unicode-bidi: embed;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item a:hover {
    color: #b69d74;
}

.lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item.dir-ltr {
    direction: ltr;
}

.lawyer-section-enhanced .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 2px solid #b69d74;
    color: #b69d74;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 20px;
}

.lawyer-section-enhanced .nav-arrow:hover {
    background: #b69d74;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.lawyer-section-enhanced .nav-arrow.prev {
    left: 0;
}

.lawyer-section-enhanced .nav-arrow.next {
    right: 0;
}

.lawyer-section-enhanced .nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lawyer-section-enhanced .nav-arrow.disabled:hover {
    background: #ffffff;
    color: #b69d74;
    transform: translateY(-50%) scale(1);
}

html[lang="ar"] .lawyer-section-enhanced .section-header {
    direction: rtl;
}

html[lang="ar"] .lawyer-section-enhanced .lawyer-card-content {
    text-align: right;
}

html[lang="ar"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item {
    flex-direction: row-reverse;
}

html[lang="en"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item {
    flex-direction: row;
}

html[lang="ar"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item i {
    margin-left: 0;
    margin-right: 10px;
}

html[lang="en"] .lawyer-section-enhanced .lawyer-card-content .lawyer-contact-item i {
    margin-left: 0;
    margin-right: 0;
}

html[lang="ar"] .lawyer-section-enhanced .nav-arrow.prev {
    right: 0;
    left: auto;
}

html[lang="ar"] .lawyer-section-enhanced .nav-arrow.next {
    left: 0;
    right: auto;
}

@media (max-width: 768px) {
    .lawyer-section-enhanced .lawyer-slider-container {
        padding: 0 20px;
    }

    .lawyer-section-enhanced .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lawyer-section-enhanced .owl-carousel .owl-item {
        padding: 0 6px;
    }

    .lawyer-section-enhanced .lawyer-slider.is-static {
        gap: 12px; /* matches 6px side padding per owl-item => 12px total */
    }

    .lawyer-section-enhanced .lawyer-slider.is-static .lawyer-card {
        flex: 0 1 320px;
        max-width: 320px;
    }
}

