/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main Content Container */
.main-page {
  width: 80%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 2rem 0;
  justify-content: space-evenly;
}

/* Trending Section */
.trending-now-text {
  margin-top: 2rem;
}

.trending-now-text h2 {
  justify-content: flex-start;
  display: flex;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Movies List */
.movies-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.movies-list li {
  align-items: center;
  display: inline-block;
  justify-content: space-evenly;
  list-style: none;
  margin-right: 1rem;
}

.movies-list li img {
  width: 12rem;
  height: 18rem;
  object-fit: cover;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.7);
}

/* More Reasons Section */
.more-reasons-to-join {
  margin-top: 2rem;
}

.more-reasons-to-join h2 {
  margin: 4rem 0 1rem 0;
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Cards Section */
.cards-section {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  flex-direction: row;
  padding-bottom: 1rem;
  margin: 2rem 0;
}

.cards {
  position: relative;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  background-color: #141414;
  border-radius: 0.5rem;
  width: 15rem;
  height: 20rem;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.7);
}

.cards svg {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.cards h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.cards p {
  font-size: 0.9rem;
  color: gray;
}

.cards:hover {
  transform: scale(1.05);
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  border-radius: 0.5rem;
}

/* Questions Section */
.questions-section {
  margin: 4rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.questions-section h2 {
  text-align: left;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.questions-list {
  display: flex;
  margin-top: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.questions-list li {
  list-style: none;
  background-color: #141414;
  margin: 0.5rem 0;
  padding: 1rem;
  width: 60rem;
  text-align: left;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.3rem;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.7);
}

.questions-list li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 400;
  flex-grow: 1;
  text-align: left;
  border: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

.questions-list li button svg {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
}

.questions-list li:hover {
  background-color: #333333;
  transition: background-color 0.3s;
}

/* Media Queries */
@media (max-width: 900px) {
  .cards-section {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-page {
    width: 90%;
    padding: 1rem 0;
  }

  .movies-list li img {
    width: 10rem;
  }

  .cards-section {
    overflow-x: auto;
    scrollbar-color: gray black;
  }

  .cards {
    width: 12rem;
    height: 18rem;
    min-width: 12rem;
  }

  .questions-list li {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .questions-section h2 {
    font-size: 1.5rem;
  }

  .questions-list li {
    width: 100%;
  }

  .questions-list li button {
    font-size: 1rem;
  }

  .questions-list li button svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cards {
    width: 45%;
    height: 20rem;
    min-width: unset;
  }

  .cards:hover {
    border-radius: 1rem;
  }
}

@media (max-width: 440px) {
  .movies-list li img {
    width: 8rem;
    height: 12rem;
  }
}
