/* Content Carousel */

.content-carousel {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 0;
    box-sizing: border-box;
}

.cc-wrapper {
    position: relative;
    width: 100%;

    overflow: hidden;
    box-sizing: border-box;
}

.cc-slider {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 600px;
    position: relative;
	gap: 5vw;
}

/* Общий стиль для всех элементов карусели */
.cc-item {
	flex: 0 1 auto;
/*     position: absolute; */
/*     display: flex; */
/*     flex-direction: column; */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    top: 0;
}

/* Предыдущий элемент */
.cc-item-prev {
    width: 20vw;
    height: 300px;
    left: 0;
/*     transform: translateY(40%); */
    opacity: 0.5;
    visibility: visible;
    z-index: 1;
}

/* Активный элемент */
.cc-item-active {
    width: 40vw;
    height: 100%;
    left: 50%;
/*     transform: translateX(-50%); */
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Следующий элемент */
.cc-item-next {
    width: 20vw;
    height: 300px;
    right: 0;
/*     transform: translateY(40%); */
    opacity: 0.5;
    visibility: visible;
    z-index: 1;
}

.cc-item-next:hover, .cc-item-prev:hover {
	opacity: 1;
	transform: scale(1.1);
}

/* Стили для содержимого элемента */
.cc-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cc-item-image {
    flex: 0 0 auto;
    height: 100%;
	max-height: 30vw;
	width: auto;
    object-fit: cover;
    display: block;
}

.cc-item-body {
    flex: 1 1 auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cc-item-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.cc-item-text {
    flex: 1 1 auto;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.cc-item-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cc-item-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Навигационные кнопки */
.cc-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cc-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cc-nav-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: scale(1.1);
}

.cc-nav-btn:hover .cc-nav-icon {
    color: #ffffff;
}

.cc-nav-icon {
    font-size: 20px;
    font-weight: bold;
    color: #495057;
    transition: color 0.3s ease;
}


@media (max-width: 768px) {
    .content-carousel {
        padding: 30px 0;
    }
    
    .cc-wrapper {
        padding: 0 30px;
    }
    
    .cc-slider {
        height: 500px;
    }
    
    .cc-item-active {
        width: 90%;
        height: 100%;
        max-width: 400px;
    }
    
    .cc-item-prev,
    .cc-item-next {
        display: none;
    }
    
    .cc-item-content {
        flex-direction: column;
    }
    
    .cc-item-image {
        height: 150px;
    }
    
    .cc-item-body {
        padding: 20px;
    }
    
    .cc-item-title {
        font-size: 18px;
    }
    
    .cc-item-text {
        font-size: 14px;
    }
    
    .cc-nav {
        margin-top: 20px;
    }
    
    .cc-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .cc-nav-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-carousel {
        padding: 20px 0;
    }
    
    .cc-wrapper {
        padding: 0 20px;
    }
    
    .cc-slider {
        height: auto;
    }
    
    .cc-item-active {
        width: 95%;
        max-width: 350px;
    }
    
    .cc-item-image {
        height: 100%;
    	max-height: 300px;
    	width: auto;
    }
    
    .cc-item-body {
        padding: 15px;
    }
    
    .cc-item-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .cc-item-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .cc-item-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .cc-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .cc-nav-icon {
        font-size: 14px;
    }
}