/* ════════════════════════════════════════════
   Style-4  –  Brand: #6d4df2 / #8c71ff
   ════════════════════════════════════════════ */
:root {
    --p4-primary: #6d4df2;
    --p4-primary-l: #8c71ff;
    --p4-dark: #0f0828;
}

/* Card base */
.shortcode-projects-style-4 .project4-card {
    transition: box-shadow .3s ease, transform .3s ease;
}

.shortcode-projects-style-4 .project4-card:hover {
    box-shadow: 0 16px 48px rgba(109, 77, 242, .15) !important;
    transform: translateY(-5px);
}

/* Client badge */
.shortcode-projects-style-4 .p4-badge-client {
    background: linear-gradient(135deg, rgba(109, 77, 242, .1), rgba(140, 113, 255, .1));
    color: var(--primary-color);
    border: 1px solid rgba(109, 77, 242, .2);
    border-radius: 50px;
    padding: 3px 14px;
    font-size: .72rem;
    font-weight: 600;
}

/* Navigation buttons */
.shortcode-projects-style-4 .p4-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e3f5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    color: #333;
    position: static !important;
    top: auto !important;
    margin-top: 0 !important;
}

.shortcode-projects-style-4 .p4-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.shortcode-projects-style-4 .p4-nav-btn i {
    color: inherit;
}

.shortcode-projects-style-4 .p4-nav-btn::after {
    display: none !important;
}

/* Overlay: hidden by default, shown on hover */
.shortcode-projects-style-4 .project4-overlay {
    opacity: 0;
}

.shortcode-projects-style-4 .project4-card:hover .project4-img {
    transform: scale(1.05);
}

.shortcode-projects-style-4 .project4-card:hover .project4-overlay {
    opacity: 1;
}

/* Overlay buttons (desktop) */
.shortcode-projects-style-4 .p4-btn-live,
.shortcode-projects-style-4 .p4-btn-details {
    min-width: 190px;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.shortcode-projects-style-4 .p4-btn-live:hover,
.shortcode-projects-style-4 .p4-btn-details:hover {
    transform: scale(1.04);
}

.shortcode-projects-style-4 .p4-btn-live {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-bg));
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 18px rgba(109, 77, 242, .5);
}

.shortcode-projects-style-4 .p4-btn-details {
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, .8);
}

.shortcode-projects-style-4 .p4-btn-details:hover {
    background: #fff;
    color: var(--primary-color) !important;
}

/* Mobile action bar: hidden on desktop */
.shortcode-projects-style-4 .project4-mobile-actions {
    display: none !important;
}

/* Mobile buttons */
.shortcode-projects-style-4 .p4-mobile-btn-live,
.shortcode-projects-style-4 .p4-mobile-btn-details {
    border-radius: 50px;
    padding: 10px 16px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}

.shortcode-projects-style-4 .p4-mobile-btn-live:active,
.shortcode-projects-style-4 .p4-mobile-btn-details:active {
    opacity: .8;
}

.shortcode-projects-style-4 .p4-mobile-btn-live {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 3px 14px rgba(109, 77, 242, .35);
}

.shortcode-projects-style-4 .p4-mobile-btn-details {
    background: #f0ecff;
    color: var(--primary-color) !important;
    border: 2px solid rgba(109, 77, 242, .2);
}

/* ── MOBILE: swap overlay for action bar ── */
@media (max-width: 991.98px) {

    /* Image is fully clean — no overlay, no blur */
    .shortcode-projects-style-4 .project4-overlay {
        display: none !important;
    }

    /* Round bottom edge of image to connect with action bar */
    .shortcode-projects-style-4 .project4-image-wrap {
        border-radius: .75rem .75rem .375rem .375rem !important;
        margin-bottom: 0 !important;
    }

    /* Show the action bar */
    .shortcode-projects-style-4 .project4-mobile-actions {
        display: flex !important;
    }
}

/* Pagination dots */
.shortcode-projects-style-4 .projects4-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 24px;
}

.shortcode-projects-style-4 .projects4-pagination .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: .25;
    width: 8px;
    height: 8px;
    transition: opacity .2s, width .2s;
}

.shortcode-projects-style-4 .projects4-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 26px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-bg));
}

/* Truncate */
.truncate-2-custom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}