/* SBB Projects Carousel Styles */

.sbb-projects-carousel-section {
    padding: 80px 0 50px 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.sbb-projects-carousel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #BDD646;
    z-index: 1;
}

.sbb-projects-header {
    max-width: 1440px;
    margin: 0 auto 60px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbb-projects-title {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.sbb-projects-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sbb-projects-prev,
.sbb-projects-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #777654;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.sbb-projects-prev {
    background: #777654;
    color: #ffffff;
    border-color: #777654;
}

.sbb-projects-prev:hover {
    background: #65644a;
    border-color: #65644a;
    transform: scale(1.1);
    box-shadow: none;
}

.sbb-projects-next {
    background: #ffffff;
    color: #777654;
    border-color: #777654;
}

.sbb-projects-next:hover {
    background: #f5f5f5;
    transform: scale(1.1);
    box-shadow: none;
}

.sbb-projects-view-all {
    background: #777654;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.sbb-projects-view-all:hover {
    background: #65644a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 118, 84, 0.4);
    color: #ffffff;
}

.sbb-projects-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    overflow: hidden;
}

.sbb-projects-wrapper {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 40px 0;
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    will-change: scroll-position;
}

.sbb-projects-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sbb-project-card {
    min-width: 613.33px;
    max-width: 613.33px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-right: 20px;
    scroll-snap-align: start;
}

.sbb-project-card:last-child {
    margin-right: 0;
}

.sbb-project-card.active {
    box-shadow: none;
}

.sbb-project-image {
    width: 100%;
    height: 494.61px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: #f5f5f5;
}

.sbb-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sbb-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.sbb-project-placeholder svg {
    margin-bottom: 10px;
}

.sbb-project-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.sbb-project-card:hover .sbb-project-image img {
    transform: scale(1.05);
}

.sbb-project-number {
    position: absolute;
    bottom: -60px;
    left: 30px;
    font-size: 110px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
}

.sbb-project-content {
    padding: 30px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sbb-project-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.sbb-project-description {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.sbb-project-content > * {
    grid-column: 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .sbb-project-card {
        min-width: 490px;
        max-width: 490px;
    }
    
    .sbb-project-image {
        height: 395px;
    }
    
    .sbb-projects-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sbb-projects-carousel-section {
        padding: 60px 0;
    }
    
    .sbb-projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .sbb-projects-title {
        font-size: 28px;
    }
    
    .sbb-projects-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .sbb-projects-container {
        padding: 0 20px;
    }
    
    .sbb-project-card {
        min-width: 368px;
        max-width: 368px;
    }
    
    .sbb-project-image {
        height: 297px;
    }
    
    .sbb-project-number {
        font-size: 60px;
        font-weight: 300;
        bottom: -40px;
        left: 20px;
    }
    
    .sbb-project-content {
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sbb-project-content > * {
        grid-column: 2;
    }
    
    .sbb-project-title {
        font-size: 24px;
    }
    
    .sbb-project-description {
        font-size: 14px;
    }
    
    .sbb-projects-prev,
    .sbb-projects-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

