/* Du An Listing Styles */
.du-an-listing-wrapper {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

/* Sidebar */
.du-an-sidebar {
    flex: 0 0 150px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.du-an-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.du-an-tab {
    padding: 3px 20px;
    background: #58c3bd;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.du-an-tab:before {
    content: "";
    position: absolute;
    border-left: 0px solid transparent;
    border-right: 25px solid transparent;
    border-top: 45px solid #fff;
    left: 0;
    top: 0;
}

.du-an-tab::after {
    content: "";
    position: absolute;
    border-left: 25px solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 45px solid #fff;
    right: 0;
    top: 0;
}

.du-an-tab:hover {
    transform: translateX(5px);
}

.du-an-tab.active {
    background: #f69220;
}

/* Content Grid */
.du-an-content {
    flex: 1;
}

.du-an-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.du-an-item {
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.du-an-item.show {
    opacity: 1;
    transform: rotateX(0deg);
}

.du-an-item.hide {
    display: none;
}

.du-an-item-inner {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.du-an-item-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.du-an-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.du-an-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.du-an-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.du-an-item-inner:hover .du-an-image img {
    transform: scale(1.1);
}

.du-an-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.du-an-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.du-an-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.du-an-title a:hover {
    color: #667eea;
}

.du-an-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Animation delays for stagger effect */
.du-an-item:nth-child(1) { transition-delay: 0.1s; }
.du-an-item:nth-child(2) { transition-delay: 0.2s; }
.du-an-item:nth-child(3) { transition-delay: 0.3s; }
.du-an-item:nth-child(4) { transition-delay: 0.4s; }
.du-an-item:nth-child(5) { transition-delay: 0.5s; }
.du-an-item:nth-child(6) { transition-delay: 0.6s; }
.du-an-item:nth-child(7) { transition-delay: 0.7s; }
.du-an-item:nth-child(8) { transition-delay: 0.8s; }
.du-an-item:nth-child(9) { transition-delay: 0.9s; }

/* Responsive */
@media (max-width: 992px) {
    .du-an-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .du-an-listing-wrapper {
        flex-direction: column;
    }
    
    .du-an-sidebar {
        flex: 1;
        position: relative;
        top: 0;
    }
    
    .du-an-tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .du-an-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: 100px;
    }
    
    .du-an-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .du-an-item-inner {
        margin-bottom: 20px;
    }
}
