
/* Card Grid Section */
.swiper {
    padding: 2rem 0 4rem !important;
}

.card-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #fff;
    margin-bottom: 1rem;
}

.card-item:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 120%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.category {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.overlay h6 {
    font-size: 1.25rem;
    margin: 0.25rem 0;
    font-weight: 600;
}

.overlay p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.title {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    margin: 0;
    color: #333;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
}

.swiper-pagination-bullet {
    background: #333 !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .swiper {
        padding: 1rem 0 3rem !important;
    }
    
    .card-item {
        margin: 0 10px;
    }
}


