/* Feature Showcase */
.feature-showcase {
    position: relative;
    margin-left: calc(50% - 50vw);
    padding: 4rem 0;
    background: #000;
    overflow: hidden;
}

.feature-showcase__container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Swiper */
.feature-showcase__main {
    position: relative;
    overflow: visible !important;
    /* Allow next slide preview */
    padding: 0 0 4rem 0 !important;
    /* Bottom padding for navigation */
}

.feature-showcase__slide {
    position: relative;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-showcase__slide:hover {
    transform: translateY(-8px);
}

.feature-showcase__slide.is-hovered {
    z-index: 2;
}

.feature-showcase__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-header__titleimage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

/* When background color is applied */
.feature-header__titleimage.has-background {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Title with background - add horizontal padding */
.feature-header__titleimage.has-background .feature-showcase__title {
    padding: 1.5rem;
}

.feature-showcase__slide:hover .feature-showcase__card {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Title */
.feature-showcase__title {
    color: #fff;
    font-size: 2rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 2;
}

.feature-showcase__title em {
    background: linear-gradient(90deg,
            var(--Blue-500, #3b82f6) 20.67%,
            #ff557e 80.77%,
            #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* Image */
.feature-showcase__image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

/* Remove border from image when parent has background */
.feature-header__titleimage.has-background .feature-showcase__image {
    border: none;
    background: transparent;
    backdrop-filter: none;
}

.showcase__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(255, 85, 126, 0.05) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.feature-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.feature-showcase__slide:hover .feature-showcase__image img {
    transform: scale(1.05);
}

/* Video Styles */
.feature-showcase__video {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-showcase__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    /* Slightly smaller to account for border */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.feature-showcase__video video:hover {
    cursor: pointer;
}

.feature-showcase__slide:hover .feature-showcase__video video {
    transform: scale(1.05);
}

/* Mute indicator styles */
.mute-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Remove border from video when parent has background */
.feature-header__titleimage.has-background .feature-showcase__video {
    border: none;
    background: transparent;
    backdrop-filter: none;
}

/* Text Alignment Classes */
.feature-showcase__card.text-align-left .feature-showcase__title,
.feature-showcase__card.text-align-left .feature-showcase__content {
    text-align: left;
}

.feature-showcase__card.text-align-center .feature-showcase__title,
.feature-showcase__card.text-align-center .feature-showcase__content {
    text-align: center;
}

.feature-showcase__card.text-align-right .feature-showcase__title,
.feature-showcase__card.text-align-right .feature-showcase__content {
    text-align: right;
}

/* Content */
.feature-showcase__content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
    position: relative;
    z-index: 2;
}

.feature-showcase__content p {
    margin: 0 0 1rem 0;
}

.feature-showcase__content p:last-child {
    margin-bottom: 0;
}

.feature-showcase__content strong {
    color: #fff;
    font-weight: 600;
}

.feature-showcase__content em {
    font-style: italic;
    color: #ff557e;
}

.feature-showcase__content ul,
.feature-showcase__content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.feature-showcase__content li {
    margin-bottom: 0.5rem;
}

.feature-showcase__content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-showcase__content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Navigation controls */
.feature-showcase__nav-controls {
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    justify-content: end;
}

.feature-showcase__nav-next,
.feature-showcase__nav-prev {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-showcase__nav-next:hover,
.feature-showcase__nav-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Custom chevron arrows */
.feature-showcase__nav-next::before,
.feature-showcase__nav-prev::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-bottom: none;
    border-left: none;
    position: relative;
}

.feature-showcase__nav-next::before {
    transform: rotate(45deg);
    margin-left: -2px;
}

.feature-showcase__nav-prev::before {
    transform: rotate(-135deg);
    margin-right: -2px;
}

/* Pagination */

.feature-showcase__pagination {
    position: relative;
    display: flex;
    left: initial !important;
    justify-self: center;
    bottom: 15px !important;
    overflow: visible !important;
}

.feature-showcase__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.feature-showcase__pagination .swiper-pagination-bullet-active {
    background: #4967FD;
    transform: scale(1.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-showcase__container {
        padding: 0 1.5rem;
    }

    .feature-showcase__title {
        font-size: 1.75rem;
    }

    /* Responsive background styles */
    .feature-header__titleimage.has-background {
        padding: 1.25rem;
    }

    .feature-header__titleimage.has-background .feature-showcase__title {
        padding: 0 0.75rem;
    }

    /* Responsive video styles */
    .feature-showcase__video {
        border-radius: 14px;
    }

    .feature-showcase__video video {
        border-radius: 13px;
    }
}

@media (max-width: 1024px) {
    .feature-showcase {
        padding: 3rem 0;
    }

    .feature-showcase__container {
        padding: 0 1rem;
    }

    .feature-showcase__card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .feature-showcase__title {
        font-size: 1.5rem;
    }

    .feature-showcase__content {
        font-size: 0.95rem;
    }

    /* Responsive background styles */
    .feature-header__titleimage.has-background {
        padding: 1rem;
    }

    .feature-header__titleimage.has-background .feature-showcase__title {
        padding: 0 0.5rem;
    }

    /* Responsive video styles */
    .feature-showcase__video {
        border-radius: 12px;
    }

    .feature-showcase__video video {
        border-radius: 11px;
    }

    /* Responsive background styles */

    .feature-header__titleimage.has-background .feature-showcase__title {
        padding: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .feature-showcase__main {
        padding: 0 0 2rem 0 !important;
    }

    .feature-showcase {
        padding: 2rem 0;
    }

    .feature-showcase__container {
        padding: 0 0.75rem;
    }

    .feature-showcase__card {
        padding: 1.25rem;
        gap: 1rem;
        border-radius: 20px;
    }

    .feature-showcase__title {
        font-size: 1.25rem;
    }

    .feature-showcase__content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Responsive background styles */
    .feature-header__titleimage.has-background {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .feature-header__titleimage.has-background .feature-showcase__title {
        padding: 0 0.5rem;
    }

    /* Responsive video styles */
    .feature-showcase__video {
        border-radius: 10px;
    }

    .feature-showcase__video video {
        border-radius: 9px;
    }

    .feature-showcase__nav-next,
    .feature-showcase__nav-prev {
        width: 40px;
        height: 40px;
    }

    .feature-showcase__nav-next::before,
    .feature-showcase__nav-prev::before {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .feature-showcase__card {
        padding: 1rem;
        border-radius: 16px;
    }

    .feature-showcase__title {
        font-size: 1.125rem;
    }

    .feature-showcase__content {
        font-size: 0.875rem;
    }

    .feature-showcase__nav-controls {
        gap: 0.25rem;
    }

    .feature-showcase__nav-next,
    .feature-showcase__nav-prev {
        width: 36px;
        height: 36px;
    }

    /* Responsive background styles */
    .feature-header__titleimage.has-background {
        padding: 0.5rem;
        border-radius: 10px;
    }

    .feature-header__titleimage.has-background .feature-showcase__title {
        padding: 0 0.25rem;
    }

    /* Responsive video styles */
    .feature-showcase__video {
        border-radius: 8px;
    }

    .feature-showcase__video video {
        border-radius: 7px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    .feature-showcase__slide,
    .feature-showcase__card,
    .feature-showcase__image img,
    .feature-showcase__nav-next,
    .feature-showcase__nav-prev {
        transition: none;
    }

    .feature-showcase__slide:hover {
        transform: none;
    }

    .feature-showcase__slide:hover .feature-showcase__card {
        transform: none;
    }

    .feature-showcase__slide:hover .feature-showcase__image img {
        transform: none;
    }
}

/* Focus styles for accessibility */
.feature-showcase:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.feature-showcase__nav-next:focus-visible,
.feature-showcase__nav-prev:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}