/* Projects Highlight Background Effect */
.projects-highlight-section {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    padding: 80px 0 0;
    display: flex;
    flex-direction: column;
}

.projects-highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease-in-out, background-image 0.6s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.projects-highlight-section.has-background .projects-highlight-bg {
    opacity: 0.85;
}

.projects-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 0;
    pointer-events: none;
}

.projects-highlight-items {
    margin-top: auto;
    padding-bottom: 0;
}

.projects-highlight-tab {
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-highlight-tab:hover {
    text-decoration: none;
}

.projects-highlight-item {
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.projects-highlight-item:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: #ffffff;
}

.projects-highlight-item:hover .projects-highlight-subtitle,
.projects-highlight-item:hover .projects-highlight-title {
    color: #ffffff;
}

.projects-highlight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projects-highlight-item:hover::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .projects-highlight-section {
        min-height: 600px;
        padding: 60px 0 0;
    }
    
    .projects-highlight-section.has-background .projects-highlight-bg {
        opacity: 0.75;
    }
    
    .projects-highlight-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    }
    
    .projects-highlight-items {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .projects-highlight-section {
        min-height: auto;
        padding: 50px 0 30px;
    }
    
    .projects-highlight-section.has-background .projects-highlight-bg {
        opacity: 0.6;
    }
    
    .projects-highlight-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    }
    
    .projects-highlight-items {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .projects-highlight-section {
        padding: 40px 0 20px;
    }
    
    .projects-highlight-section.has-background .projects-highlight-bg {
        opacity: 0.5;
    }
    
    .projects-highlight-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    }
}
