/* Legal DXB Practice Carousel Styles */

.ldxb-carousel-wrapper,
.ldxb-practice-modal {
    --ldxb-primary: #003366;
    --ldxb-accent: #b8860b;
    --ldxb-white: #ffffff;
    --ldxb-bg: #f8f9fa;
    --ldxb-text: #444;
    --ldxb-muted: #777;
}

.ldxb-carousel-wrapper {
    position: relative;
    box-sizing: border-box;
}

.ldxb-carousel-wrapper *,
.ldxb-carousel-wrapper *::before,
.ldxb-carousel-wrapper *::after,
.ldxb-practice-modal *,
.ldxb-practice-modal *::before,
.ldxb-practice-modal *::after {
    box-sizing: border-box;
}

.ldxb-services-container {
    padding: 50px 60px;
    background-color: var(--ldxb-bg);
    position: relative;
    border-radius: 10px;
}

.ldxb-swiper {
    padding-bottom: 50px !important;
    overflow: hidden;
}

/* CARD */
.ldxb-service-card {
    background: var(--ldxb-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 15px 5px;
    cursor: pointer;
    position: relative;
}

.ldxb-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.ldxb-img-frame {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.ldxb-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ldxb-service-card:hover .ldxb-img-frame img {
    transform: scale(1.1);
}

.ldxb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.ldxb-icon-box {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: var(--ldxb-accent);
    border-radius: 50%;
    border: 3px solid var(--ldxb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ldxb-white);
    z-index: 5;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.ldxb-service-card:hover .ldxb-icon-box {
    background: var(--ldxb-primary);
    transform: rotate(360deg);
}

.ldxb-card-body {
    padding: 25px 20px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background: var(--ldxb-white);
    display: flex;
    flex-direction: column;
}

.ldxb-card-body h3 {
    color: var(--ldxb-primary);
    font-size: 1.1rem;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ldxb-card-body p {
    color: var(--ldxb-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 15px;
    flex-grow: 1;
}

.ldxb-read-more {
    color: var(--ldxb-accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.ldxb-service-card:hover .ldxb-read-more {
    gap: 12px;
}

.ldxb-read-more i {
    font-size: 0.8rem;
}

/* NAVIGATION ARROWS */
.ldxb-nav-wrapper .swiper-button-prev,
.ldxb-nav-wrapper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--ldxb-primary);
    color: var(--ldxb-white);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -25px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ldxb-nav-wrapper .swiper-button-prev {
    left: 10px;
}

.ldxb-nav-wrapper .swiper-button-next {
    right: 10px;
}

.ldxb-nav-wrapper .swiper-button-prev:hover,
.ldxb-nav-wrapper .swiper-button-next:hover {
    background: var(--ldxb-accent);
    transform: scale(1.1);
}

.ldxb-nav-wrapper .swiper-button-prev::after,
.ldxb-nav-wrapper .swiper-button-next::after {
    display: none;
}

.ldxb-nav-wrapper .swiper-button-prev i,
.ldxb-nav-wrapper .swiper-button-next i {
    font-size: 16px;
    color: var(--ldxb-white);
}

.ldxb-nav-wrapper .swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* PAGINATION DOTS */
.ldxb-pagination {
    bottom: 10px !important;
    text-align: center;
}

.ldxb-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--ldxb-primary);
    opacity: 0.3;
    transition: all 0.3s ease;
    margin: 0 5px !important;
}

.ldxb-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--ldxb-accent);
    width: 30px;
    border-radius: 6px;
}

/* ==================== MODAL ==================== */
.ldxb-practice-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 20px;
}

.ldxb-practice-modal.ldxb-open {
    display: flex;
}

.ldxb-modal-content {
    background: var(--ldxb-white);
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    animation: ldxbZoomIn 0.3s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
}

@keyframes ldxbZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.ldxb-modal-left {
    flex: 1;
    min-height: 450px;
    background: #eee;
}

.ldxb-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ldxb-modal-right {
    flex: 1.2;
    padding: 50px 40px;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

/* Close button */
.ldxb-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--ldxb-primary);
    color: var(--ldxb-white);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000001;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}

.ldxb-close-modal:hover {
    background: var(--ldxb-accent);
    transform: rotate(90deg);
}

.ldxb-modal-title {
    color: var(--ldxb-primary);
    margin: 0 0 20px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    padding-right: 50px;
}

.ldxb-modal-text {
    line-height: 1.8;
    color: var(--ldxb-text);
    font-size: 1.05rem;
    margin: 0 0 30px;
}

.ldxb-modal-cta {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

/* "Read Full Details" button - made extra bulletproof */
.ldxb-practice-modal .ldxb-modal-link,
a.ldxb-modal-link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: var(--ldxb-primary);
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    border: 2px solid var(--ldxb-primary);
    line-height: 1.2;
    font-size: 1rem;
}

.ldxb-practice-modal .ldxb-modal-link:hover,
a.ldxb-modal-link:hover {
    background: var(--ldxb-accent);
    border-color: var(--ldxb-accent);
    gap: 15px;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.ldxb-practice-modal .ldxb-modal-link i,
a.ldxb-modal-link i {
    font-size: 0.9rem;
}

.ldxb-no-posts {
    padding: 60px 20px;
    text-align: center;
    color: var(--ldxb-muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ldxb-services-container { padding: 40px 50px; }
}

@media (max-width: 768px) {
    .ldxb-services-container { padding: 30px 15px; }

    .ldxb-nav-wrapper .swiper-button-prev,
    .ldxb-nav-wrapper .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .ldxb-nav-wrapper .swiper-button-prev { left: 0; }
    .ldxb-nav-wrapper .swiper-button-next { right: 0; }

    .ldxb-nav-wrapper .swiper-button-prev i,
    .ldxb-nav-wrapper .swiper-button-next i {
        font-size: 14px;
    }
}

@media (max-width: 850px) {
    .ldxb-modal-content {
        flex-direction: column;
        max-height: 95vh;
    }

    .ldxb-modal-left {
        min-height: 220px;
        max-height: 220px;
        flex: none;
    }

    .ldxb-modal-right {
        padding: 30px 20px;
        flex: none;
    }

    .ldxb-modal-title {
        font-size: 1.5rem;
        padding-right: 40px;
    }

    .ldxb-close-modal {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ldxb-img-frame { height: 180px; }
    .ldxb-card-body h3 { font-size: 1rem; }
}
