body {
  background: #F1EFEC;
  font-family: 'Noto Sans Arabic UI', 'Noto Sans', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.header-links {
  color: #000;
  text-decoration: none;
  display: flex;
}

a {
  position: relative;
}

a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-radius: 4px;
  background-color: #000;
  bottom: 3px;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.posts {
  margin: 0 5em 4em 5em;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; 
}

.post {
  overflow: hidden;
}
.post img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
}

footer {
  position: fixed;
  bottom: 0;
  display: flex;
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) { 
  .posts {
    margin: 2em 2em; 
  }

  .post img {
    max-width: 99%; 
    height: auto; 
  }

  footer {
    padding: 5px 0;
  }
}
#post1{
  height: 20.9em;
}
@media (max-width: 480px) { 
  header {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-links {
    font-size: 14px; 
    gap: 1em; 
  }

  .posts {
    margin: 2em 0;
  }

  .post img {
    max-width: 100%;
  }

  #post1{
    height: 20em;
  }
}

@media (max-width: 320px) {
  #post1{
   height: 14.9em;
  }
}
