.hero-image {
    background-image: url('pexels-jeremy-bishop-1260133-20285510.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 20px;
    margin: 0 5%;
}

.search-bar {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    color: #000;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 900px;
}

.search-bar input, .search-bar select, .search-bar button {
    border: none;
    background: none;
    outline: none;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    margin-right: 5px;
}

.search-bar button {
    background-color: black;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    align-items: center;
}

nav .middle-links {
    display: none;
}

nav a {
    margin: 0 1rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #000;
}

.trending-section {
    margin-top: 6rem;
}

.trending-header {
    text-align: left;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
}


.button-28 {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    border-radius: 15px;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-family: Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto; /* Changed from 100% to auto */
    max-width: 200px; /* Set a max-width to control the button size */
    will-change: transform;
  }
  
  .button-28:disabled {
    pointer-events: none;
  }
  
  .button-28:hover {
    color: #fff;
    background-color: #1A1A1A;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
  }
  
  .button-28:active {
    box-shadow: none;
    transform: translateY(0);
  }
  
.card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    margin: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 250px;
}

.card img {
    border-radius: 0.75rem;
    object-fit: cover;
    width: 100%;
    height: 12rem;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.card p {
    color: #4a5568;
    margin-bottom: 1rem;
    padding: 0 1rem;
    text-align: center;
}

.rating {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.rating span {
    margin-right: 0.25rem;
}

button:hover {
    background-color: #e2e8f0;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 46%;
        max-width: 46%;
    }
}

@media (max-width: 640px) {
    .card {
        flex: 0 0 96%;
        max-width: 96%;
    }
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
}

.carousel-controls button:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

@media (min-width: 768px) {
    nav .middle-links {
        display: flex;
    }
}