﻿/* Custom Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 25px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
}

.carousel-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

/* Custom Carousel Controls */
.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #198754;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

    .custom-carousel-control:hover {
        background-color: #198754;
        transform: translateY(-50%) scale(1.1);
    }

        .custom-carousel-control:hover .arrow-icon {
            color: white;
        }

.arrow-icon {
    font-size: 1.5rem;
    color: #198754;
    font-weight: bold;
    line-height: 1;
    /* Remove any default spacing */
    margin: 0;
    padding: 0;
    /* Ensure proper positioning */
    position: relative;
    top: 0;
    left: 0;
    /* Force centering */
    -webkit-box-align  : center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    display: flex;
    /*align-items: center;
    justify-content: center;*/
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Card styling */
.donation-card {
    border-radius: 25px;
    transition: transform 0.3s ease;
    height: 100%;
}

    .donation-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }

    .carousel-container {
        padding: 0 40px;
    }
}
