
.container {
  position: relative;
  background: var(--primary-bg1-color);
  padding: 0 5px;
}

.container.home {
  max-width: 1300px;
  margin: auto;
}

#home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 400px;
  padding: 0 0px;
  background: transparent;
}

#home::before {
  content: '';
  position: absolute;
  left: 15%; bottom: 100px;
  width: 200px; height: 100px;
  border-radius: 50%;
  background: #888;
  filter: blur(70px);
  z-index: 1;
}

.theme-dark #home::before {
  background: #5c616a;
}

#home::after {
  content: '';
  position: absolute;
  right: 0px; bottom: 50px;
  width: 400px; height: 80px;
  background: var(--primary-color);
  filter: blur(100px);
  z-index: 1;
}

.container > img {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 120%;
  transform: translateY(-50%);
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.container > img:first-child {
  opacity: 0.5;
}

.theme-dark .container > img:first-child {
  opacity: 0;
}

.theme-dark .container > img {
  opacity: 0.5;
}

#home h1 {
  font-size: 2em;
  font-weight: 900;
  text-transform: uppercase;
  width: 650px;
  color: var(--primary-text1-color);
  text-align: center;
  margin-bottom: 20px;
  z-index: 3;
}

#home h1 span {
  color: var(--primary-color);
}

#home p {
  font-size: 1em;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-text3-color);
  z-index: 3;
}

#home div.container-search {
  position: relative;
  z-index: 3;
}

#home .home-search {
  position: relative;
  padding: 8px 10px 8px 20px;
  background: var(--primary-text1-color);
  display: flex;
  align-items: center;
}

#home .home-search input[type="search"] {
  margin-left: 10px;
  margin-right: 10px;
  width: 400px;
  font-size: 0.95em;
  color: var(--primary-bg3-color);
  background: transparent;
  border: none;
}

#home .home-search svg {
  min-width: 18px;
  fill: var(--primary-text3-color);
}

#home .home-search input[type="submit"] {
  border: none;
  padding: 8px 20px;
  font-weight: 500;
  color: var(--bg-light-mode);
  background: var(--primary-color);
  cursor: pointer;
}

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  z-index: 2;
}

.padding-none {
  padding: 0 ;
}

.box h2 {
  display: flex;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
}

.box h2 svg {
  fill: var(--primary-color);
}

.box h2 span {
  margin-left: 10px;
  color: var(--primary-text1-color);
}

.box-articles1 .post-box-articles1 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
  margin-bottom: 30px;
}

.container-categories {
  background: #ffe4ce;
  background: var(--primary-bg2-color);
}

.container .categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 50px;
  text-align: center;
}

.container .categories li a {
  display: grid;
  grid-template-rows: repeat(2, 50px);
  font-weight: 500;
  text-wrap: nowrap;
  color: var(--primary-text2-color);
  margin-top: 25px;
  text-wrap: wrap;
}

.container .categories li a span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.container .categories li a span:first-child::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 60px; height: 2px;
  border-radius: 5px;
  background: var(--clr);
  transition: 0.2s;
}

.container .categories li a:hover span:first-child::before {
  filter: blur(1px);
  transform: scale(1.1);
  box-shadow: 0 0 5px var(--clr), 0 0 15px var(--clr), 0 0 10px var(--clr);
}

.container .categories li a span:first-child svg {
  width: 25px;
  transition: 0.2s;
  fill: var(--clr);
}

.container .categories li a:hover span:first-child svg {
  transform: translateY(-5px);
}

.container .categories li a span:last-child {
  padding-top: 3px;
  color: var(--clr);
  transition: 0.2s;
}

.container .categories li a:hover span:last-child {
  transform: translateY(5px);
}

.box-articles2 .post-box-articles2 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
  margin-bottom: 30px;
}

@media all and (max-width: 1180px) {
  .box-articles1 .post-box-articles1 {
    grid-gap: 3px;
  }
  .box-articles2 .post-box-articles2 {
    grid-gap: 3px;
  }
  .article .box-title p {
    font-size: 0.9em;
  }
}

@media all and (max-width: 1000px) {
  .box-articles1 .post-box-articles1 {
    grid-template-columns: repeat(3, 1fr);
  }
  .box-articles2 .post-box-articles2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .article {
    height: auto;
    margin-bottom: 10px;
  }
  .article .box-title p {
    font-size: 1em;
  }
  .container .categories {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0px;
  }
  .container .categories li a {
    font-weight: 500;
    font-size: 0.9em;
  }
}

@media all and (max-width: 800px) {
  .article .box-title p {
    font-size: 0.9em;
  }
  .container .categories {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0px;
  }
  .container .categories li a {
    grid-template-rows: repeat(2, 40px);
  }
  #home {
    min-height: 350px;
  }
  #home::before {
    left: -20px; bottom: 80px;
    border-radius: 50%;
  }
  #home::after {
    right: 0px; bottom: 10px;
    width: 200px; height: 80px;
  }
  #home h1 {
    font-size: 1.8em;
    width: 500px;
  }
  #home p {
    font-size: 0.8em;
  }
  #home .home-search input[type="search"] {
    width: 300px;
    font-size: 0.9em;
  }
  #home .home-search input[type="submit"] {
    padding: 7px 20px;
    font-size: 0.8em;
  } 
}

@media all and (max-width: 600px) {
  .container-categories .box h2 {
    margin-bottom: 0;
  }
  .container .categories li a span:first-child svg {
    width: 22px;
  }
}

@media all and (max-width: 550px) {
  .article .categorie-article {
    font-size: 0.66em;
  }
  #home {
    min-height: 350px;
  }
  #home::before {
    left: 0px; bottom: 50px;
    border-radius: 50%;
    background: var(--primary-color);
  }
  #home::after {
    display: none;
  }
  #home h1 {
    width: 350px;
    font-size: 1.5em;
  }
  #home p {
    font-size: 0.7em;
    font-weight: 500;
    max-width: 300px;
  }
  #home div.container-search {
    transform: scale(0.9);
  }
  #home .home-search input[type="search"] {
    width: 80%;
  }
}

@media all and (max-width: 500px) {
  .box-articles1 .post-box-articles1 {
    grid-template-columns: repeat(2, 1fr);
  }
  .box-articles2 .post-box-articles2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .article .box-title p {
    font-size: 0.86em;
  }
  .article .categorie-article {
    padding: 6px 9px 3px;
  }
  .article .box-title {
    padding: 0 7px 10px;
  }
  .container .categories li a {
    font-size: 0.75em;
  }
  .container .categories li a span:first-child svg {
    width: 20px;
  }
}

@media all and (max-width: 400px) {
  #home h1 {
    width: 300px;
  }
}

