.carousel-item {
    position: absolute; /* Necesar pentru ca scriptul de rotație să le poată plasa corect */
    left: 0;
    top: 0;
    background: var(--card-bg);
    border: 2px solid rgba(0, 38, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    
    width: 90px;
    height: 90px;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s, border-radius 0.4s, background 0.4s, border 0.4s;
    -webkit-tap-highlight-color: transparent;
}

/* --- STAREA NEACTIVĂ (MINI-VIEW) --- */
.mini-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
}

.mini-view img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    pointer-events: none;
}

.mini-view span {
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    text-align: center;
    pointer-events: none;
    color: #003366; 
}

/* --- STAREA ACTIVĂ (EXPANDED-VIEW) --- */
.carousel-item.active {
    width: 420px;
    height: 240px;
    border-radius: 16px;
    border-color: var(--accent-line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.carousel-item.active .mini-view {
    opacity: 0;
    pointer-events: none;
}

.expanded-view {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    padding: 20px;
    box-sizing: border-box;
    gap: 15px;
    transition: opacity 0.4s 0.1s, visibility 0s 0.1s;
}

.carousel-item.active .expanded-view {
    opacity: 1;
    visibility: visible;
}

/* --- CONȚINUT STARE ACTIVĂ (STÂNGA/DREAPTA) --- */
.content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-left h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-left p {
    margin: 0;
    font-size: 13px;
    color: #555555;
    line-height: 1.4;
}

.round-btn {
    width: fit-content;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--accent-line);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 38, 255, 0.4);
    transition: transform 0.2s, background 0.2s;
    margin-top: 15px;
    align-self: flex-start;
    -webkit-tap-highlight-color: transparent;
}

.round-btn:hover {
    transform: scale(1.05);
}

.round-btn:active {
    background: var(--accent-line);
}

.content-right {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
}

.content-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #e0e0e0;
}

/* --- Responsive Design Card --- */
@media (max-width: 768px) {
    .carousel-item.active {
        width: 88vw; 
        height: auto;
        min-height: 420px;
    }

    .expanded-view {
        flex-direction: column; 
        padding: 15px;
        gap: 15px;
        overflow-y: auto; 
    }

    .content-left {
        flex: none; 
    }

    .content-right {
        flex: 1;
        min-height: 180px; 
    }
}