/*
*** BLOGS LIST ***
*/

.blog-tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 3rem 0;
}

.blog-tab > li {
  background-color: #fff;
  border: 2px #332d2d solid;
  color: #332d2d;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.9em;
  word-wrap: break-word;
  list-style: none;
}

.blog-tab > li:hover {
  cursor: pointer;
  background-color: #332d2d;
  color: #fff;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  transition: all ease 0.4s;
}

.blog-tab > li.active {
  background-color: #332d2d;
  color: #fff;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
}

.blog-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 6rem;
}

.blog-content.pillier {
  margin: 2rem auto;
}

.blog-content.more-articles{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}


.blog-primary {
  flex: 1;
  box-shadow: 2px 4px 6px #00000010;
  border-radius: 23px;
  position: relative;
}

.blog-primary:hover {
  cursor: pointer;
  box-shadow: 2px 4px 20px #00000060;
  transition: all ease 0.3s;
}

.blog-primary > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-primary img {
  border-radius: 23px;
  box-shadow: 2px 4px 6px #00000010;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

.article-primary-footer {
  flex: 1;
  padding: 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #0a0a0a38;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 23px 23px;
}

.article-primary-footer::after {
  position: absolute;
  content: attr(read-duration);
  bottom: 20px;
  right: 20px;
  font-size: 0.8em;
  font-weight: normal;
  color: white;
}

.blog-secondary {
  flex: 1;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: space-between;
}

.blog-secondary img, .blog-tertiary img {
  height: 100%;
  max-width: 33%;
  min-height: 75px;
  aspect-ratio: 3 /2;
  border-radius: 23px 0px 0px 23px;
}

.article-secondary-footer, .article-tertiary-footer {
  position: relative;
  border-radius: 0px 23px 23px 0px;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 0.2rem 1rem;
  width: 100%;
  overflow: hidden;
}

.article-secondary-footer::after, .article-tertiary-footer::after {
  position: absolute;
  content: attr(read-duration);
  bottom: 4px;
  right: 15px;
  font-size: 0.8em;
  font-weight: normal;
  color: #797979;
}

.secondary-article {
  display: flex;
  align-items: center;
  box-shadow: 2px 4px 6px #00000010;
  border-radius: 23px;
  height: 30%;
}

.secondary-article:hover {
  cursor: pointer;
  box-shadow: 2px 4px 20px #00000060;
  transition: all ease 0.3s;
}

.tertiary-article {
  display: flex;
  align-items: center;
  box-shadow: 2px 4px 6px #00000010;
  border-radius: 23px;
  height: 100%;
}

.tertiary-article:hover {
  cursor: pointer;
  box-shadow: 2px 4px 20px #00000060;
  transition: all ease 0.3s;
}



@media (max-width: 900px) {
  .blog-tab {
    width: 100%;
    margin: 2rem auto;
  }

  .blog-tab {
    padding: 0px !important;
    gap: 1rem;
  }
  .blog-tab > li {
    width: 45%;
    display: flex;
    align-items: center;
  }

  .blog-content {
    display: flex;
    flex-direction: column;
    padding: 0 5vw;
  }

  .blog-content.more-articles{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }


  .blog-primary {
    width: 100%;
  }

  .blog-secondary {
    width: 100%;
    gap: 1rem;
  }

  .blog-content {
    gap: 1rem;
  }
  .blog-content.pillier {
    margin: 1rem auto;
  }
}
@media (max-width: 550px) {
  .article-primary-footer {
    font-size: 1.15rem;
    padding: 1rem;
  }

   .article-secondary-footer, .article-tertiary-footer {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .article-primary-footer::after, .article-secondary-footer::after, .article-tertiary-footer::after {
    display: none;
  }
}
/* 
*** BLOG TEMPLATE ***
*/
.blogHead {
  display: flex;
  flex-direction: column;
  margin-top: 6rem;
}

.blogHead .blogNav {
  margin: 1rem;
}

.blogHead .blogNav .breadcrumbs {
  display: none;
}

.blogHead .blogTags {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8em;
}

.blogHead .blogTags span {
  font-size: 1.1em;
  font-weight: 500;
}

.blogHead .blogTags div {
  background-color: #000;
  padding: 0.8rem 1em;
  color: #fff;
}

.blogHead .blogSlider img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 2 /1 ;
}

.blogHead .blogInfos {
  display: flex;
  padding: 0.7rem 5vw;
  justify-content: flex-start;
  font-size: 0.8em;
  gap: 0.5rem;
}

.blogHead .blogInfos .blogDate {
  padding: 0.3rem 0.6rem;
  border: 2px #000 solid;
}

.blogHead .blogInfos .blogReadDuration {
  padding: 0.3rem 0.6rem;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.blogHead .blogInfos .blogCategory {
  padding: 0.3rem 0.6rem;
  border: 2px #000 solid;
  text-transform: capitalize;
}

.blogHeader h1 {
  text-align: left;
  padding: 5vw;
  font-size: 1.8em;
  position: relative;
}

.blogHeader h1:after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: #000;
}

.blogHeader .blogTextHead {
  padding: 5vw;
  font-size: 20px;
  width: 100%;
  text-align: center;
}

.blogHeader .blogTextHead .blogTextPrimary > * {
  max-width: 100%;
}

.blogSection {
  padding: 5vw;
  margin-bottom: 1rem;
}

.blogSection img, .blogHeader img {
  max-height: 800px;
  width: auto;
  margin: 0 auto 1rem auto;
}

.blogSection iframe {
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-block: 2rem;
}

.blogSection h2 {
  font-size: 1.3em;
}

.blogSection ul {
  list-style-type: disc !important;
}
.blogSection ul li {
  margin-bottom: 1rem;
}

@media screen AND (min-width: 1200px) {

  .blogHeader h1:after {
    width: 25%;
  }
}

@media screen AND (min-width: 900px) {
  .blogHead {
    width: 70vw;
    margin: 6rem auto auto auto;
  }

  .blogHead .blogInfos {
    padding: 0.5rem;
    font-size: 1em;
  }

  .blogHead .blogTags {
    font-size: 1em;
  }

  .blogHead .blogNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .blogHead .blogNav {
    color: #000;
  }

  .blogHead .blogNav a {
    color: #000;
    text-decoration: none;
  }

  .blogHead .blogNav .breadcrumbs {
    display: block;
  }

  .blogHead .blogSlider {
    display: block;
  }

  .blogHeader {
    width: 70vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    gap: 3rem;
  }

  .blogHeader h1 {
    padding: 0 0 2rem 0;
    margin: 0;
    width: 100%;
    text-align: center;
  }

   .blogHeader h1:after {
    width: 40%;
  }

  .blogHeader .blogTextHead {
    padding: 0;
  }

  .blogSection {
    width: 70vw;
    margin: auto auto 3rem auto;
    line-height: 25px;
    font-size: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .blogSection .blogSectionText {
    width: 100%;
    text-align: justify;
  }
  .blogSection .blogSectionImg, .blogHeader .blogSectionImg {
    text-align: center;
    width: 100%;
    margin: 2rem auto auto auto;
  }

  #otherArticles {
    margin-top: 10rem;
  }

  .article-primary-footer {
    padding: 2rem;
  }
}
