/* ========================================
   Showcase Section - Base Styles
======================================== */

.showcase-section {
    background: var(--black);
    padding: 60px 0 0 0;
    overflow: hidden;
}

.showcase-section .container {
    background: transparent !important;
}

.showcase-section .swiper {
    padding-top: 30px;
    overflow: visible;
}

.showcase-swiper .swiper-slide {
    height: auto;
}

/* ========================================
   Header Wrapper
======================================== */

.showcase-section .header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* ========================================
   Header Content
======================================== */

.showcase-product .section-content {
    max-width: 760px;
}

.showcase-page .section-content {
    max-width: 860px;
    position: relative;
}

/* ========================================
   Typography
======================================== */

.showcase-section h2,
.showcase-section p {
    color: var(--white);
}

.showcase-section h2 {
    text-transform: capitalize;
}

.showcase-section a {
    text-decoration: none;
}

.showcase-section em {
    color: rgba(255, 255, 255, 0.50);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.50);
}


/* ========================================
   Swiper Container
======================================== */

.showcase-section .swiper {
    padding-top: 30px;
    overflow: visible;
}

.showcase-swiper .swiper-slide {
    height: auto;
}

/* ========================================
   Showcase Cards - Base
======================================== */

.showcase-section .showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 25px 25px 0 0;
    padding: 20px 20px 0 20px;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
}

/* ========================================
   Showcase Cards - Product Variant
======================================== */

/* Decorative background element */
.showcase-product .showcase-card::before {
    content: url('/wp-content/uploads/2025/11/image-41.png');
    position: absolute;
    bottom: 0;
    left: 5px;
    pointer-events: none;
    transform: scale(1);
    transform-origin: left bottom;
}

.showcase-product .showcase-card .card-image {
    position: relative;
    margin-top: auto;
    line-height: 0;
    right: -20px;
    overflow: hidden;
}

.showcase-product .showcase-card .card-image img {
    display: block;
    position: relative;
    width: 400px;
    height: auto;
    max-height: 208px;
    object-fit: cover;
    right: -65px;
    border-radius: 10px 0 0 0;
    object-position: top center;
}

/* ========================================
   Showcase Cards - Page Variant
======================================== */

.showcase-page .showcase-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: box-shadow 0.3s ease-in-out;
}

/* Dark gradient overlay for text readability */
.showcase-page .showcase-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.80) 100%);
    pointer-events: none;
    z-index: 1;
}

.showcase-page .showcase-card .card-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   Card Content
======================================== */

.showcase-product .card-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.showcase-page .card-content {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    color: var(--white);
    text-align: left;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

/* ========================================
   Card Background Colors - Product Variant
======================================== */
.showcase-product .showcase-card[data-bg="purple"] {
    background: linear-gradient(49deg, rgba(148, 115, 249, 0.50) 0%, #393939 55.66%);
}

.showcase-product .showcase-card[data-bg="red"] {
    background: linear-gradient(49deg, rgba(249, 100, 106, 0.50) 0%, #393939 55.66%);
}

.showcase-product .showcase-card[data-bg="blue"] {
    background: linear-gradient(49deg, rgba(47, 163, 186, 0.50) 0%, #393939 55.66%);
}

.showcase-product .showcase-card[data-bg="pink"] {
    background: linear-gradient(49deg, oklch(59.122% 0.19289 318.667 / 0.5) 0%, #393939 55.66%);
}
/* Showcase Cards Border and animation */

svg.card-border {
    position: absolute;
    inset: -3px;
    pointer-events: none;
    height: 100%;
    width: calc(100% + 3px);
}

.card-border path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500; 
}

.showcase-card:hover .card-border path {
    animation: draw 0.9s ease-out forwards;
}
@media(max-width: 991px) {
    .showcase-card.swiper-slide-active .card-border path {
        animation: draw 0.9s ease-out forwards;
    }
}
@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================================
   Card Hover Effects - Product Variant
======================================== */
.showcase-product .showcase-card {
    transition: box-shadow 0.3s ease-in-out;
}
.showcase-product .showcase-card[data-bg="purple"]:hover {
    box-shadow: 
        0 0 10px rgba(148, 115, 249, 0.6),
        0 0 20px rgba(148, 115, 249, 0.4),
        0 0 40px rgba(148, 115, 249, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-product .showcase-card[data-bg="red"]:hover {
    box-shadow: 
        0 0 10px rgba(249, 100, 106, 0.6),
        0 0 20px rgba(249, 100, 106, 0.4),
        0 0 40px rgba(249, 100, 106, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-product .showcase-card[data-bg="blue"]:hover {
    box-shadow: 
        0 0 10px rgba(47, 163, 186, 0.6),
        0 0 20px rgba(47, 163, 186, 0.4),
        0 0 40px rgba(47, 163, 186, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-product .showcase-card[data-bg="pink"]:hover {
    box-shadow: 
        0 0 10px rgba(172, 78, 197, 0.6),
        0 0 20px rgba(172, 78, 197, 0.4),
        0 0 40px rgba(172, 78, 197, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

/* ========================================
   Card Hover Effects - Page Variant
======================================== */

.showcase-page .showcase-card[data-bg="purple"]:hover {
    box-shadow: 
        0 0 20px rgba(148, 115, 249, 0.6),
        0 0 40px rgba(148, 115, 249, 0.4),
        0 0 80px rgba(148, 115, 249, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-page .showcase-card[data-bg="red"]:hover {
    box-shadow: 
        0 0 20px rgba(249, 100, 106, 0.6),
        0 0 40px rgba(249, 100, 106, 0.4),
        0 0 80px rgba(249, 100, 106, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-page .showcase-card[data-bg="blue"]:hover {
    box-shadow: 
        0 0 20px rgba(47, 163, 186, 0.6),
        0 0 40px rgba(47, 163, 186, 0.4),
        0 0 80px rgba(47, 163, 186, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.showcase-page .showcase-card[data-bg="pink"]:hover {
    box-shadow: 
        0 0 20px rgba(172, 78, 197, 0.6),
        0 0 40px rgba(172, 78, 197, 0.4),
        0 0 80px rgba(172, 78, 197, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

/* ========================================
   Media Queries - Desktop (992px and up)
======================================== */

@media (min-width: 992px) {
    .showcase-product {
        margin-left: 15px;
        border-radius: 20px 0 0 20px;
    }
    .gradient-wrapper > .showcase-section:first-child {
    border-radius: 0 0 0 20px;
    }
    /* Decorative gradient element */
    .showcase-page .header-wrapper::after {
        content: url('http://stg-certero-staging.kinsta.cloud/wp-content/uploads/2025/11/Certero-Gradient.png');
        position: absolute;
        top: 0px;
        right: 0px;
        pointer-events: none;
    }
}

/* ========================================
   Media Queries - Mobile (below 991px)
======================================== */

@media (max-width: 991px) {
    .showcase-section .black-button {
        display: none;
    }

    .showcase-section {
        padding-right: 0;
    }

    .showcase-section .header-content {
        padding-right: var(--bs-gutter-x, 20px);
    }

    .showcase-product .showcase-card[data-bg="purple"].swiper-slide-active,
    .showcase-page .showcase-card[data-bg="purple"].swiper-slide-active {
        box-shadow: 
            0 0 10px rgba(148, 115, 249, 0.6),
            0 0 20px rgba(148, 115, 249, 0.4),
            0 0 40px rgba(148, 115, 249, 0.2);
        transition: box-shadow 0.3s ease-in-out;
    }

    .showcase-product .showcase-card[data-bg="red"].swiper-slide-active,
    .showcase-page .showcase-card[data-bg="red"].swiper-slide-active {
        box-shadow: 
            0 0 10px rgba(249, 100, 106, 0.6),
            0 0 20px rgba(249, 100, 106, 0.4),
            0 0 40px rgba(249, 100, 106, 0.2);
        transition: box-shadow 0.3s ease-in-out;
    }

    .showcase-product .showcase-card[data-bg="blue"].swiper-slide-active,
    .showcase-page .showcase-card[data-bg="blue"].swiper-slide-active {
        box-shadow: 
            0 0 10px rgba(47, 163, 186, 0.6),
            0 0 20px rgba(47, 163, 186, 0.4),
            0 0 40px rgba(47, 163, 186, 0.2);
        transition: box-shadow 0.3s ease-in-out;
    }

    .showcase-product .showcase-card[data-bg="pink"].swiper-slide-active,
    .showcase-page .showcase-card[data-bg="pink"].swiper-slide-active {
        box-shadow: 
            0 0 10px rgba(172, 78, 197, 0.6),
            0 0 20px rgba(172, 78, 197, 0.4),
            0 0 40px rgba(172, 78, 197, 0.2);
        transition: box-shadow 0.3s ease-in-out;
    }

}
