﻿/* Basic body styling for a clean look */
/*body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f7f9;
}*/

.slider-container {
    width: 95%;
    max-width: 1600px;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
}

/* Updated .card class to use margin for spacing */
.card {
    /* Use calc() to subtract the margin from the width for a perfect fit */
    flex: 0 0 calc(20% - 20px);
    min-width: 0;
    box-sizing: border-box;
    /* This line creates a 20px space between each card */
    margin: 0 10px;
    background-color: #fff;
    border-radius: 36px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .card a img {
        width: 100%;
        height: auto;
        border-radius: 36px 36px 0 0;
        object-fit: cover;
    }

.card-content {
    padding: 10px;
    text-align: center;
}

    .card-content h3 {
        margin-top: 0;
        font-size: 1.2em;
        font-weight:bold;
        color: #333;
    }

    .card-content p {
        font-size: 1em;
        color: #666;
        line-height: 1.5;
    }

/* Updated navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    font-size: 2.5em;
    color: #444;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Changed from 0 to 0.5 so they are always visible */
    opacity: 0.5;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
    .nav-btn:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
/* This rule positions the left button */
.prev-btn {
    left: 10px;
}

/* This rule positions the right button */
.next-btn {
    right: 10px;
}
/* Show buttons on hover for larger screens */
/*.slider-container:hover .nav-btn {
    opacity: 1;
}*/

/* Make sure buttons are always visible on small screens */
@media (max-width: 576px) {
    .nav-btn {
        font-size: 2em;
        width: 40px;
        height: 40px;
    }
}

/* Responsive design for a better experience on all devices */
@media (max-width: 1400px) {
    .card {
        flex: 0 0 calc(25% - 20px);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .card {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
    }
}
