/**
 * Showcase Carousel Widget Styles
 */

/* Main wrapper */
.showcase-carousel-wrapper {
    position: relative;
    margin-bottom: 40px;
}

/* Header and navigation */
.showcase-block-header {
    margin: 0 0 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1535px;
}

/* Layout - Row and columns */
.showcase-carousel-row {
    display: flex;
    gap: 24px;
}

.showcase-carousel-row .left-column {
    width: 43%;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.showcase-carousel-row .right-column {
    width: 57%;
}

/* Icon navigation */
.showcase-icon-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.showcase-icon-nav-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 24px;
}

.showcase-icon-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.showcase-icon-circle svg {
    width: 30px;
}

.showcase-icon-nav-item .showcase-icon-title {
    font-weight: 500;
    opacity: 0.4;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.showcase-icon-nav-item.active .showcase-icon-title {
    opacity: 1;
}

/* Circle animation effects */
.showcase-icon-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    z-index: 1;
    border: 2px dashed var(--primary-color);
    opacity: 0.4;
    pointer-events: none;
}

.showcase-icon-nav-item.active .showcase-icon-circle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    border: 2px dashed transparent;
    pointer-events: none;
    z-index: 2;
    border-color: var(--primary-color);
    box-sizing: border-box;
    clip-path: polygon(50% 50%, 50% 0%, 50% 0%, 50% 50%);
    animation: reveal-border 5s linear forwards;
}

/* Carousel items */
.showcase-carousel {
    position: relative;
}

.showcase-carousel-item {
    margin-right: 24px;
    opacity: 0.4;
}

.showcase-carousel-item.slick-slide.slick-current.slick-active {
    opacity: 1;
}

.showcase-item-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.showcase-item-image-link {
    position: absolute;
    width: 36px;
    height: 36px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px 16px;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-image: url("../../icons/chevron-arrow-right-white.svg");
    bottom: 16px;
    right: 16px;
}

.showcase-item-image-link:hover {
    background-color: var(--primary-color);
}

.showcase-carousel .showcase-carousel-item .showcase-item-image img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    display: block;
}

.showcase-carousel .showcase-carousel-item .showcase-item-content .showcase-item-title {
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.showcase-carousel .showcase-carousel-item .showcase-item-content .showcase-item-description {
    color: var(--primary-color);
}

/* Animation keyframes */
@keyframes reveal-border {
    0% {
        clip-path: polygon(50% 50%, 50% 0%, 50% 0%, 50% 50%);
    }

    12.5% {
        clip-path: polygon(50% 50%, 50% 0%, 75% 0%, 100% 25%, 50% 50%);
    }

    25% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%, 50% 50%);
    }

    37.5% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 75%, 75% 100%, 50% 50%);
    }

    50% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 50% 50%);
    }

    62.5% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 75%, 50% 50%);
    }

    75% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%, 50% 50%);
    }

    87.5% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 25%, 25% 0%, 50% 50%);
    }

    100% {
        clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%, 50% 50%);
    }
}

/* Media Queries for responsive design */
@media (max-width: 1024px) {
    .showcase-block-header {
        margin: 0 0 60px 0;
    }
    
    .showcase-carousel-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .showcase-carousel-row .left-column,
    .showcase-carousel-row .right-column {
        width: 100%;
    }
    
    .showcase-carousel-row .left-column {
        gap: 30px;
    }
    
    .showcase-carousel .showcase-carousel-item .showcase-item-image img {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .showcase-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin: 0 0 40px 0;
    }
    
    .showcase-carousel-row {
        gap: 30px;
    }
    
    .showcase-carousel-row .left-column {
        gap: 24px;
    }
    
    .showcase-icon-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .showcase-icon-nav-item {
        gap: 16px;
    }
    
    .showcase-icon-circle {
        width: 45px;
        height: 45px;
    }
    
    .showcase-icon-circle svg {
        width: 24px;
    }
    
    .showcase-carousel-item {
        margin-right: 16px;
    }
    
    .showcase-item-image {
        margin-bottom: 24px;
    }
    
    .showcase-carousel .showcase-carousel-item .showcase-item-image img {
        height: 280px;
    }
}

/* Video Container Styling */
.showcase-video-container {
    position: relative;
    width: 100%;
    min-height: 490px;
    height: 490px;
    margin-bottom: 40px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.showcase-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

@media (max-width: 1700px) {
    .showcase-video-container {
        min-height: 380px;
        height: 380px;
    }
}
/* Responsive adjustments - maintain minimum height */
@media (max-width: 768px) {
    .showcase-video-container {
        min-height: 500px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .showcase-video-container {
        min-height: 500px;
        height: 500px;
    }
}

/* Alternative: If you want to keep 490px on all screen sizes */
.showcase-video-container-fixed-490 {
    position: relative;
    width: 100%;
    height: 490px;
    margin-bottom: 40px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}