/**
 * Hero Carousel Styles
 */

.carousel-wrapper {
    position: relative;
    width: 688px;
    display: flex;
    flex-direction: column;
}

#carousel,
.hero-carousel {
    position: relative;
    width: 688px;
    background: transparent;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0;
}

#carousel::-webkit-scrollbar,
.hero-carousel::-webkit-scrollbar {
    height: 0;
    display: none;
}

.carousel-slides {
    position: relative;
    width: max-content;
    display: flex;
    gap: 20px;
}

.carousel-slide {
    position: relative;
    flex: 0 0 400px;
    width: 400px;
    height: 350px;
    display: flex;
    align-items: flex-end;
    background: #000;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    overflow: hidden;
}



.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: right;
}

.carousel-content h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
	text-shadow: 2px 2px black;
}

.carousel-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
	width: 260px;
	text-shadow: 2px 2px black;
	text-align: left;
}

.carousel-content a {
    display: inline-block;
    padding: 10px 24px;
    /*background: var(--accent);*/
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.carousel-content a:hover {
    background: var(--accent-dark);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    position: static;
    display: flex;
    gap: 10px;
    z-index: 10;
    white-space: nowrap;
    margin-top: 15px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent);
    /*border-color: var(--accent);
    transform: scale(1.3);*/
}

.carousel-dot:hover {
    border-color: var(--accent);
    background: var(--accent);
}

@media (min-width: 1024px) {
    .carousel-wrapper {
        width: 688px;
    }
    
    #carousel,
    .hero-carousel {
        width: 688px;
		border-radius: 15px 0 0 15px;
    }
    
    .carousel-slide {
        flex: 0 0 400px;
        width: 400px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        width: 450px;
    }
    
    #carousel,
    .hero-carousel {
        width: 450px;
    }
    
    .carousel-slide {
        flex: 0 0 300px;
        width: 300px;
        height: 300px;
    }
    
    .carousel-content {
        padding: 30px 20px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
        display: none;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        width: 300px;
    }
    
    #carousel,
    .hero-carousel {
        width: 300px;
    }
    
    .carousel-slide {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
    
    .carousel-content {
        padding: 20px 15px;
    }
    
    .carousel-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .carousel-content a {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-dots {
        gap: 6px;
        margin-top: 10px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
