
body {
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 18px;
  margin: 0;
  padding: 0;
  background-color: #f2f1f6;
  color: rgb(0, 0, 0);
  direction: rtl;
}

.site-header {
  background-color: #5f5e62;
  padding: 5px;
  border-top: solid 3px black;
  border-bottom: solid 3px rgb(0, 0, 0);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-img {
  height: 50px;
  margin-right: 30px;
}

.site-title h1 a {
  font-size: 25px;
  color: white;
  text-decoration: none;
}

.domaine-name a {
  color: rgb(0, 0, 0);
  font-style: italic;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 25px;
  padding: 5px;
  max-width: 500px;
  width: 100%;
}

.search-container input[type="text"] {
  border: none;
  border-radius: 25px;
  padding: 10px;
  flex: 1;
  font-size: 16px;
  outline: none;
}

.search-container button {
  background-color: rgb(254, 254, 254);
  border: none;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container button:hover {
  background-color: darkred;
}

.navbar {
  background-color: #3c3c3f;
  border-bottom: 2px solid rgb(0, 0, 0);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  gap: 50px;
}

.navbar li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.navbar li a:hover {
  color: rgb(0, 0, 0);
}


.section-title{
  text-align: center;
}

.categories-grid {
      
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      padding: 20px;
      
      max-width: 950px;
      margin: auto;
      
    }

    

    .category-card {
      border: solid 2px #5f5e62;
      
      
       aspect-ratio: 2 / 3;
      position: relative;
      height: 320px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .category-card .overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      text-align: center;
      padding: 10px;
    }

    .category-card h2 {
      margin: 0;
      font-size: 22px;
    }

     .info-row {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
      font-size: 14px;
      padding: 0 10px;
    }
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

    