@import url(https://fonts.googleapis.com/css?family=Open+Sans:800);


/* ===================== Slider ===================== */
.container-slider {
  height: 60vh;
  overflow: hidden;
  min-width: 100%;
}

figure {
  display: flex;
  position: relative;
  left: 0;
  width: 800%;
  height: 100%;
  animation: 30s slide infinite;
  margin: 0;
}

.slide {
  position: relative;
  height: 100%;
  width: 25%;
  float: left;
}

.slide img {
  width: 100%;
  height: 100%;
}


@keyframes slide {
  0% {
    left: 0;
  }

  4% {
    left: 0;
  }

  14% {
    left: -100%;
  }

  18% {
    left: -100%;
  }

  21% {
    left: -100%;
  }

  28% {
    left: -200%;
  }

  32% {
    left: -200%;
  }

  42% {
    left: -300%;
  }

  46% {
    left: -300%;
  }

  56% {
    left: -400%;
  }

  60% {
    left: -400%;
  }

  70% {
    left: -500%;
  }

  74% {
    left: -500%;
  }

  84% {
    left: -600%;
  }

  88% {
    left: -600%;
  }

  95% {
    left: -700%;
  }

  100% {
    left: 0;
  }


}

/* Page title*/
.page-title {
  width: 100%;
  height: 100%;
  position: relative;
  bottom: 100%;
}

.text {
  fill: none;
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-dasharray: 70 330;
  stroke-dashoffset: 0;
  -webkit-animation: stroke 6s infinite linear;
  animation: stroke 6s infinite linear;
}

.text:nth-child(5n + 1) {
  stroke: #F2385A;
  -webkit-animation-delay: -1.2s;
  animation-delay: -1.2s;
}

.text:nth-child(5n + 2) {
  stroke: #F5A503;
  -webkit-animation-delay: -2.4s;
  animation-delay: -2.4s;
}

.text:nth-child(5n + 3) {
  stroke: #E9F1DF;
  -webkit-animation-delay: -3.6s;
  animation-delay: -3.6s;
}

.text:nth-child(5n + 4) {
  stroke: #56D9CD;
  -webkit-animation-delay: -4.8s;
  animation-delay: -4.8s;
}

.text:nth-child(5n + 5) {
  stroke: #3AA1BF;
  -webkit-animation-delay: -6s;
  animation-delay: -6s;
}

@-webkit-keyframes stroke {
  100% {
    stroke-dashoffset: -400;
  }
}

@keyframes stroke {
  100% {
    stroke-dashoffset: -400;
  }
}

svg {
  width: 100%;
  height: 100%;
  background-size: .2em 100%;
  font: 180px Open Sans, Impact;
  text-transform: uppercase;
  margin: 0;
}

/* ===================== End Slider ===================== */


/* ===================== Description ===================== */

.description {
  display: flex;
  flex-direction: column;
  width: 65%;
  margin: auto;
  margin-top: 40px;
}

.description .title h1 {
  text-align: center;
  margin-bottom: 20px;
}

.description .content {
  text-align: justify;
}

/* ===================== End Description ===================== */


/* ===================== Category ===================== */

.category {
  display: flex;
  flex-direction: column;
  width: 65%;
  margin: auto;
  margin-top: 40px;
}

.category .title h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;

}

.category-element {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  justify-content: center;
}

.category-element .card {
  display: grid;
  grid-template-rows: 3fr 1fr;
}

.category-element .card .image {
  width: 100%;
  max-width: 300px;
  min-width: 200px;
  justify-self: center;
  height: 35vh;
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
  border-radius: 4% 4% 0% 0%;
}

.category-element .card .image img {
  width: 100%;
  height: 100%;
  filter: brightness(90%);
  border-radius: 4% 4% 0% 0%;
}

.category-element .card .image img:hover {
  filter: brightness(100%);
}

.category-element .card .info {
  border-radius: 4%;
  position: relative;
  bottom: 4%;
  background: rgb(255, 255, 255);
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
  max-width: 300px;
  min-width: 200px;
  width: 100%;
  justify-self: center;
  justify-content: center;
}

.category-element .card .info h2 {
  margin: 0px;
  display: flex;
  justify-content: center;
  height: 100%;
  align-items: center;
  font-size: 34px;
  font-weight: 900;
  color: rgb(89 92 90);
  ;
  text-align: center;

  --x-offset: -0.0625em;
  --y-offset: 0.0625em;
  --stroke: 0.025em;
  --background-color: white;
  --stroke-color: lightblue;

  text-shadow:

    var(--x-offset) var(--y-offset) 0px var(--background-color),

    calc(var(--x-offset) - var(--stroke)) calc(var(--y-offset) + var(--stroke)) 0px var(--stroke-color);

  overflow-y: hidden;
  max-height: 100px;
}




/* ===================== End Category ===================== */


/*===================== Post =====================*/

.posts {
  display: flex;
  flex-direction: column;
  width: 65%;
  margin: auto;
  margin-top: 40px;
}

.posts .title {
  text-align: center;
}

.posts .container {
  max-width: 1100px;
  margin: auto;
  min-width: 200px;
}

.posts .container .section {
  height: 100%;
}

.posts .container .card img {
  width: 100%;
  height: 100%;
}

/* displaying card as grid just like Bootstrap's grid  */
.posts .container .card {
  display: grid;
  height: 100%;
  /* repeat twice, 1fraction each  */
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
  background-color: #f1f1f1;
  margin-bottom: 2rem;
}

.posts .container .card h3 {
  margin-bottom: 1rem;
}

.posts .container .card>div {
  padding: 2rem;
}

/* change the order of the image: image->text then text->image */
.posts .container .card:nth-child(even) img {
  order: 2;
}

.posts .container .card:nth-child(even) a {
  order: 2;
}

/* .posts .container .card .btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  margin-top: 2rem;
  cursor changed to pointer when hovering over the button  
  cursor: pointer;
} */

/* .posts .container .card .btn:hover {
  opacity: 0.8;
} */

.posts .container .card .content {
  height: auto;
  max-height: 300px;
  overflow: auto;

}

.posts .container .card h3 {
  text-overflow: ellipsis;
  font-size: 1.3rem;
}
.posts .container .card h4{
  font-size: 1.2rem;
}
.posts .container .card p{
  font-size: 1rem;
}


.posts .container .card .content::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(107, 107, 107, 0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}

.posts .container .card .content::-webkit-scrollbar {
  width: 12px;
  background-color: #F5F5F5;
}

.posts .container .card .content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(107, 107, 107, 0.3);
  background-color: #a3a2a2;
}

/* make the page responsive: stack the image and text on small screens  */
@media (max-width: 700px) {
  .posts .container, .posts .container .card {
    display: block;
  }
}

.postsul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0px;
}



/*===================== End Post =====================*/