
.giok-image-accordion {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 10px;
    overflow: hidden;
}

.gia-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: flex 0.5s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}

.gia-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.7;
    transition: opacity 0.5s;
}

.gia-item:hover {
    flex: 3;
}

.gia-item:hover::before {
    opacity: 0.9;
}

.gia-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    width: 100%;
}

.gia-item:hover .gia-content {
    opacity: 1;
    transform: translateY(0);
}

.gia-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 24px;
    white-space: nowrap;
}

.gia-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gia-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    z-index: 1;
    transition: opacity 0.3s;
}

.gia-item:hover::after {
    opacity: 0;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .giok-image-accordion {
        flex-direction: column;
        height: 600px; /* Taller to accommodate stacked items */
    }
    
    .gia-item {
        flex: 1;
        width: 100%;
        border-radius: 15px;
    }
    
    .gia-item:hover {
        flex: 3;
    }
    
    .gia-content h3 {
        font-size: 20px;
    }
    
    .gia-content p {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .gia-item::after {
        font-size: 18px;
    }
}
