.carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    perspective: 1300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 360px;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 360px;
    margin-left: -150px;
    margin-top: -180px;
    transform-origin: center center;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out; /* По-кратък и плавен преход */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity, z-index; /* Оптимизираме рендирането */
    backface-visibility: hidden;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1.03);
    pointer-events: auto;
    z-index: 10;
}
.carousel, .carousel-item, .carousel-item * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.carousel-item img {
    pointer-events: none;
    -webkit-user-drag: none;
}
/* --- КАРТИ --- */
.card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    will-change: transform, box-shadow;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 60%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-item.active .card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(1.03);
}

.carousel-item.active .card::before {
    opacity: 1;
}

.card-content p {
    font-size: 12px;
    line-height: 1.3;
    color: #333;
    margin: 0;
    padding: 0 10px 10px 10px;
    text-align: center;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card-content h3 {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #015231, #4b9f3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    font-size: 15px;
    text-align: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card-content {
    contain: layout paint;
}

/* Навигационни бутони */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 20;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Shine ефект */
.card .shine-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.carousel-item.active .shine-overlay {
    animation: shineMove 2s ease-in-out forwards;
    opacity: 1;
}

@keyframes shineMove {
    0% { left: -75%; opacity: 0; }
    25% { opacity: 1; }
    50% { left: 125%; opacity: 1; }
    100% { left: 125%; opacity: 0; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }


/* Sponsors Section Wrapper */
.sponsors-section-wrapper {
    width: 100%;
    background: transparent;
}

/* Sponsors Section Header */
.sponsors-header {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.sponsors-title {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.2;
}
