* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

 body {
  font-family: Arial, sans-serif;
  background-color: #141414;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  position: relative;
  color: white;
} 

.background-slider {
  position: absolute; /* /!!!!/ */
  inset: 0; /* /!!!!/ */
  background-image: url("../images/netflix-octobre-contenus-2022.jpg");
  background-size:cover;
  background-position: center;

}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.9) 100%
  );
}

.header {
  position: absolute;  /* /!!!!/ */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 170px;
  /* background: linear-gradient(149deg, #192247 0%, #210e17 96.86%); */
}

.logo {
  width: 250px;
}

.nav-buttons {
  display: flex;
  gap: 30px;
}

.about-btn, .signin-btn, .sup-btn, .home-btn, .get-btn {

  padding: 10px 30px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.about-btn {
  background-color: #e50914;
  color: white;
  text-decoration: none;
}

.about-btn:hover {
  background-color: #c11119;
}

.home-btn {
  background-color: #e50914;
  color: white;
  text-decoration: none;
}

.home-btn:hover {
 background-color: #c11119;
}

.sup-btn {
 
  background-color: #e50914;
  color: white;
  text-decoration: none;
}

.sup-btn:hover {
 background-color: #c11119;
}

.get-btn {
  background-color: #e50914;
  color: white;
  text-decoration: none;
}

.get-btn:hover {
  background-color: #c11119;
}

.hero {
  position: relative; /* /!!!!/ */
  min-height: 120vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 50px;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.price {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.price span {
  font-weight: 600;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 17px;
}

.email-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.email-form input:focus {
  outline: none;
  border-color: #e50914;
}

.email-form button {
  padding: 15px 20px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.email-form button:hover {
  background-color: #c11119;
}

@media (max-width: 768px) {
  .hero-content h1 {
      font-size: 2rem;
  }

  .email-form {
      flex-direction: column;
  }

  .email-form button {
      width: 100%;
      justify-content: center;
  }
}

/* ============================================================================================================================== */

.all{
  padding: 0 150px;
  background-color: black;
}

.Tcontainer{
  align-items: center;
}

.section {
  margin-bottom: 30px;
}

.section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 30px;
  margin-top: 80px;
}

/* Trending Wrapper */
.trending-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.movie {
    width: 180px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-scroll {
  display: flex; /* Horizontal layout */
  gap: 10px; /* Space between movies */
  /* padding: 10px; / Padding around the movies  */
}

.movie {
  flex: 0 0 auto; /* Ensure each movie item stays its own size */
  width: 150px; /* Adjust based on movie poster size */
}

.movie img {
  width: 100%; /* Make the image fill the width of its container */
}

/* Hover Effect */
.movie:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.movie:hover::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    opacity: 0.8;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
}
/* FAQ Container */
.faq-container {
    max-width: 100%;
    border-radius: 10px;
    padding-bottom: 100px;
}

.faq-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.Mcontainer{
  padding-top: 40px;
}

.alterMore {  
  text-align: center;
  font-size: 38px;
  margin-bottom: 30px;
}
.alterSlogn {  
  font-size: 40px !important;
  margin-bottom: 20px;
}

/* إعدادات البطاقات */
.card-container {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 20px;
    margin-bottom: 160px;
}

.card {
    border-radius: 20px;
    padding: 20px;
    width: 350px;
    height: 300px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(149deg, #192247 0%, #210e17 96.86%);
}

.card h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
}

.card p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #ddd;
}

.card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* تأثير hover */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

/* تأثير hover */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}
/* FAQ Item */
.faq-item {
    margin-bottom: 10px;
    /* padding: 15px; */
    transition: all 0.3s ease;
}

.question {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    height: 80px;
    cursor: pointer;
    background: linear-gradient(to right, black, rgba(255, 255, 255, 0.521));
    /* background: rgb(48, 47, 47); */
    color: #ffffff;
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s;
}

.question:hover {
    /* background: linear-gradient(to right, rgba(255, 255, 255, 0.521), black); */
    transform: scale(1.02);
    /* color: black; */
}

.question::after {
    content: "+";
    position: absolute;
    right: 25px;
    font-size: 40px;
    color: white;
}

.faq-item.active .question::after {
    content: "x";
    color: red;
}

.answer {
    display: none;
    padding: 10px;
    background: linear-gradient(to right, black, rgba(255, 255, 255, 0.453));
    color: white;
    border-radius: 5px;
    margin-top: 10px;
}

/* Active State */
.faq-item.active .answer {
  display: block;
}

/* Search Results Page Specific Styles */
.search-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.search-form {
  max-width: 700px;
  margin: 0 auto;
}

.search-results-section {
  background-color: #141414;
  padding: 20px 0;
}

.search-results-section h2 {
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.movie-grid .movie {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .movie-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
  }
}

.movie-details-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie-details-content {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.movie-details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 30px;
  color: white;
}

.movie-poster img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.movie-rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(229, 9, 20, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.movie-meta-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
}

.meta-item h3 {
  color: #888;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.movie-synopsis, .movie-cast {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.cast-member {
  background-color: #e50914;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  text-align: center;
  font-size: 0.9em;
}

.movie-actions {
  display: flex;
  gap: 15px;
}

.watch-now-btn, .add-to-list-btn {
  padding: 10px 30px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.watch-now-btn {
  background-color: #e50914;
  color: white;
}

.watch-now-btn:hover {
  background-color: #c11119;
}

.add-to-list-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.add-to-list-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .movie-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .movie-meta-info {
    grid-template-columns: 1fr 1fr;
  }

  .movie-actions {
    flex-direction: column;
  }

  .watch-now-btn, .add-to-list-btn {
    width: 100%;
  }
}