#packagesLinks {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

h2 {
    text-align: center;
}

.slide img {
    height: 15vw;
    width: 15vw;
    margin: 0 auto;
}

.carouselContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    margin: 0 auto;
}

.carouselViewer {
    width: 65vw;
    overflow: hidden; 
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 10px;
}

button {
    color: black;
    border: none;
    cursor: pointer;
    font-size: 6vw;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 250px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
}

.slide span {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.slide:hover {
    /* color: #007bff; */
    /* CHANGE: Removed translateX(5px) as it conflicts with the carousel slide.
       Using scale or shadow is safer for carousel items. */
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* .slide {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.slide a {
    border: 1px solid #007bff;
    border-radius: .5rem;
    width: 45%;
    padding: .5rem .75rem .5rem .75rem;
    color: white;
    text-decoration: none;
    align-self: center;
    font-size: .87rem;
    text-align: center;
    font-weight: bold;
    font-style: italic;
    background-color: #007bff;
}

.slide a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slide p {
    font-size: .85rem;
    font-weight: 100;
}

.slide:hover span {
    color: #007bff;
}

.slide:hover img {
    filter: brightness(1.05);
}

#packagesLinks .slide:hover {
    border-color: #007bff;
}

button:hover {
    color: #007bff;
    font-size: 7vw;
}

@media (max-width: 650px) {
    main {
        padding: 0;
    }

    h2 {
        font-size: 1rem;
    }

    .carouselContainer {
        width: 100%;
        margin-bottom: 1rem;
    }

    .carouselViewer {
        margin: 0;
    }

    .slide {
        padding: .5rem;
    }

    .slide p {
        font-size: .75rem;
    }

    .slide span {
        font-size: 1rem;
    }

    button {
        font-size: 7vw;
        margin: 0 0.35rem;
    }

    button:hover {
        color: black;
    }
}