.carousel-wrapper {
    position: relative;
}

.carousel-wrapper:not(:last-child) {
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: visible; /* Changed from hidden */
    --slides-per-view: 3; /* Default for desktop */
    --carousel-gap: 1.875rem; /* 30px */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: var(--carousel-gap);
}

.carousel-slide {
    flex: 0 0 calc((100% - (var(--slides-per-view) - 1) * var(--carousel-gap)) / var(--slides-per-view));
    /* Removed padding as gap is now used */
}

@media (max-width: 48rem) { /* 768px */
    .carousel-container {
        --slides-per-view: 1;
    }
}

.fixed-carousel-buttons {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 81.25rem; /* a bit wider than the main content */
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* so it doesn't interfere with other elements */
    z-index: 1002;
}

.carousel-button {
    pointer-events: all; /* make the buttons clickable */
    background-color: #e1c78f;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.carousel-button:hover {
    background-color: #e1c78f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.view-all-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 18.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.938rem;
    border: 0.063rem solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
}

.view-all-card:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.view-all-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9.375rem;
    height: 9.375rem;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8; /* Increased opacity */
    z-index: 1;
}

.view-all-news::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.view-all-campaigns::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.view-all-projects::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}

.view-all-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.view-all-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.view-all-content span {
    font-size: 2rem;
    line-height: 1;
}

.carousel-header {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    letter-spacing: 0.3rem;;
    padding-left: 0.938rem;
}