/* ==========================================================================
   LOTIUS PROJECTS LOOP ITEM - HORIZONTAL SLIDE CARD
   ========================================================================== */

/* Equal Height alignment for Swiper slides */
.swiper-slide.e-loop-item {
    display: flex !important;
    height: auto !important;
}

.swiper-slide.e-loop-item>.lotius-project-slide-card {
    flex: 1 1 auto;
    height: 100%;
}

.lotius-project-slide-card {
    display: flex;
    background: transparent !important;
    border: none !important;
    overflow: hidden;
    width: 100%;
    min-height: 480px;
    text-decoration: none;
    position: relative;
}

/* Remove border gradient effect */
.lotius-project-slide-card::before {
    display: none !important;
}

.lotius-project-slide-card:hover {
    border: none !important;
    box-shadow: none !important;
}

/* --- Left Column: Content & Testimonial --- */
.project-slide-content {
    flex: 0 0 35%;
    width: 35%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Brand logo & Client name */
.project-slide-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-slide-logo {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.project-slide-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-slide-client-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Divider line */
.project-slide-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007aff, transparent);
    margin-bottom: 24px;
    border-radius: 2px;
}

/* Headline Title */
.project-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-slide-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-slide-title a:hover {
    color: #007aff;
}

/* CTA Action */
.project-slide-action {
    margin-bottom: 30px;
}

.project-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid #007aff;
    color: #007aff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-slide-cta:hover {
    background: #007aff;
    border-color: #007aff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.project-slide-cta .arrow-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.project-slide-cta:hover .arrow-icon {
    transform: translateX(4px);
}

/* Testimonial Box styling */
.project-slide-testimonial {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-top: auto;
    overflow: hidden;
}

.testimonial-inner {
    position: relative;
    z-index: 1;
}

.testimonial-watermark {
    position: absolute;
    bottom: -4.0rem;
    right: -2.0rem;
    width: 18.0rem;
    height: 18.0rem;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    transform: translateY(3.5rem) scale(0.9) rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lotius-project-slide-card:hover .testimonial-watermark {
    transform: translateY(-0.5rem) scale(1.15) rotate(-6deg);
    opacity: 0.22;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 122, 255, 0.2);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-meta {
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.testimonial-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.testimonial-role {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.testimonial-body {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
    margin: 0;
}

/* --- Right Column: Mockup Image --- */
.project-slide-visual {
    flex: 0 0 65%;
    width: 65%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.03) 0%, transparent 75%);
    padding: 30px;
}

.project-slide-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    border: none;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); */
}

.project-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lotius-project-slide-card:hover .project-slide-img {
    transform: scale(1.02);
}

/* --- Media Queries --- */

/* Responsive Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .lotius-project-slide-card {
        flex-direction: column;
        min-height: auto;
    }

    .project-slide-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px;
    }

    .project-slide-visual {
        flex: 0 0 auto;
        width: 100%;
        min-height: 300px;
        padding: 20px;
    }

    .project-slide-title {
        font-size: 2.2rem;
    }
}

/* Responsive Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
    .lotius-project-slide-card {
        border-radius: 12px;
    }

    .project-slide-content {
        padding: 20px;
    }

    .project-slide-brand {
        margin-bottom: 12px;
        gap: 10px;
    }

    .project-slide-logo {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .project-slide-client-name {
        font-size: 1.3rem;
    }

    .project-slide-divider {
        margin-bottom: 16px;
    }

    .project-slide-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .project-slide-action {
        margin-bottom: 20px;
    }

    .project-slide-cta {
        padding: 10px 20px;
        font-size: 1.2rem;
    }

    /* Testimonial adjustments */
    .project-slide-testimonial {
        padding: 15px;
    }

    .testimonial-avatar {
        width: 36px;
        height: 36px;
    }

    .testimonial-name {
        font-size: 1.3rem;
    }

    .testimonial-role {
        font-size: 1.1rem;
    }

    .testimonial-body {
        font-size: 1.3rem;
    }

    .project-slide-visual {
        min-height: 200px;
        padding: 12px;
    }
}

/* ==========================================================================
   SWIPER NAVIGATION & PAGINATION STYLES
   ========================================================================== */
.elementor-widget-loop-carousel .elementor-swiper-button {
    width: 4.4rem;
    height: 4.4rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #0f172a !important;
    cursor: pointer;
    z-index: 10;
}

.elementor-widget-loop-carousel .elementor-swiper-button svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.elementor-widget-loop-carousel .elementor-swiper-button:hover {
    /* background-color: #007aff; */
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
    /* border-color: #007aff; */
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
    transform: translateY(-50%) scale(1.08) !important;
}

/* Specific position adjustments for prev and next buttons */
.elementor-widget-loop-carousel .elementor-swiper-button-prev {
    left: -2.2rem !important;
}

.elementor-widget-loop-carousel .elementor-swiper-button-next {
    right: -2.2rem !important;
}

.elementor-widget-loop-carousel .elementor-swiper-button-prev:hover svg {
    transform: translateX(-1px);
}

.elementor-widget-loop-carousel .elementor-swiper-button-next:hover svg {
    transform: translateX(1px);
}

/* Swiper Pagination Bullets */
.elementor-widget-loop-carousel .swiper-pagination-bullets {
    bottom: -3.5rem !important;
}

.elementor-widget-loop-carousel .swiper-pagination-bullet {
    width: 0.8rem;
    height: 0.8rem;
    background-color: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.elementor-widget-loop-carousel .swiper-pagination-bullet-active {
    width: 2.4rem;
    border-radius: 99px;
    background-color: #007aff;
}

/* Responsive adjustments for Navigation Buttons on Mobile & Tablet */
@media screen and (max-width: 1024px) {
    .elementor-widget-loop-carousel .elementor-swiper-button {
        width: 3.8rem;
        height: 3.8rem;
    }

    .elementor-widget-loop-carousel .elementor-swiper-button-prev {
        left: 0.5rem !important;
    }

    .elementor-widget-loop-carousel .elementor-swiper-button-next {
        right: 0.5rem !important;
    }
}