 /* General Section Styling */
 .genres-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--white);
    color: var(--goldish-orange);
}

/* Genre Headings */
.genre {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 120px;
    align-items: center;
    justify-content: center;
    display: flex;
    color: var(--goldish-orange);
}

/* Carousel */
.carousel {
   
    width: 100%;
    max-width: 1000px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 0 10px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content and button are evenly spaced */
    height: auto; /* Keeps all cards the same height */
    padding: 1rem;
    background: #fff;
    color: #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    
}

.card-content {
    display: flex;
    flex-direction: column;
 
   flex-grow: 1;
  
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
.card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}
.card p {
    font-size: 1rem;
    color: #000000;
    flex-grow: 1; /* Ensures the paragraph takes up available space */
    margin-bottom: 15px;
}

.watch-btn {
    margin-top: auto; /* Pushes it to the bottom */
    align-self: center; /* Centers horizontally */
    padding: 10px 15px;
    background: var(--goldish-orange);
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
}
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 5;
    transition: background 0.3s ease;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 10px;
    }
    
    .card {
        min-height: 400px;
        transition: transform 0.3s ease;
        margin:  0 auto;
    }
}


/* back to top arrow */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  z-index: 1000;
  cursor: pointer;
}

#back-to-top img {
  width: 50px;      /* Adjust size as needed */
  height: 50px;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

#back-to-top:hover img {
  opacity: 1;
}
@media(max-width:768px){
    #back-to-top {
  position: fixed;
  bottom: 40px;
  right: 2px;
  display: none;
  z-index: 1000;
  cursor: pointer;
}
}