/* HBM Projects Carousel - Lightweight Styles */

.hbm-projects-carousel {
    position: relative;
    width: 100%;
    padding-top: 60px; /* Space for arrows at top */
}

.hbm-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.hbm-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.hbm-carousel-slide {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.hbm-project-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hbm-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hbm-project-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hbm-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hbm-project-card:hover .hbm-project-overlay {
    opacity: 1;
}

.hbm-project-content {
    padding: 20px;
    background: #fff;
}

.hbm-project-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.hbm-project-subtitle {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Navigation Arrows - Top Right */
.hbm-carousel-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hbm-carousel-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    position: relative;
    font-size: 28px;
    font-weight: 300;
    font-family: Arial, sans-serif;
    color: #ECAA4A;
}

.hbm-carousel-arrow:hover {
    transform: scale(1.1);
}

.hbm-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Hide SVG */
.hbm-carousel-arrow svg {
    display: none !important;
}

/* Dots */
.hbm-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
}

.hbm-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hbm-carousel-dot:hover {
    background: #bbb;
}

.hbm-carousel-dot.active {
    background: #ECAA4A;
}

/* Touch/Drag support */
.hbm-carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

.hbm-projects-carousel.draggable .hbm-carousel-track {
    cursor: grab;
}

/* Editor Preview Mode */
.hbm-editor-preview .hbm-carousel-track {
    display: flex;
    overflow: hidden;
}

.hbm-editor-preview .hbm-carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
}

/* Responsive */
@media (max-width: 767px) {
    .hbm-projects-carousel {
        padding-top: 50px;
    }
    
    .hbm-project-content {
        padding: 15px;
    }
    
    .hbm-project-title {
        font-size: 16px;
    }
    
    .hbm-project-image {
        height: 220px;
    }
}
