/* Custom archive svg shape */

:root{
    --archive-shape-fill-color: #fff;
    --archive-image: url('');
}

/* Blog */

.blog-list-post{
  height: 100%;
}

.archive-post{
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.archive-post .button{
    margin-top: 30px;
}

.blog_text{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 30px;
  margin-bottom: 10px;
}

.blog_text .btn-wrapper{
  margin-top: auto;
}

.blog_text h2{
  margin-bottom: 15px;
  font-size: 24px;
}

.blog_text h2 a{
  color: var(--theme-black);
  text-decoration: none;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg,currentColor 0,currentColor 100%);
  background-position: 100% calc(100% - 3px);
  background-size: 0 2px;
  transition: background-size .5s cubic-bezier(.25,.46,.35,.94),color .2s ease-out;
}

.blog_text h2:hover a {
  background-size: 100% 2px;
  background-position: 0 calc(100% - 3px);
}

.tags-links{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
  align-items: center;
  font-weight: 500;
  color: var(--theme-accent);
}

.tags-links a{
  font-size: 12px;
  color: var(--theme-accent);
  border: 1px solid #EEE;
  padding: 5px 10px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tags-links a:hover{
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
  color: #fff;
  text-decoration: none;
}

.blog-padding{
    padding: 80px 0;
}

.archive-shape{
    direction: ltr;
    left: 0;
    line-height: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    bottom: -1px;
}

.archive-shape svg{
    display: block;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  width: calc(100% + 1.3px);
  height: 45px;
  overflow: hidden;
}

.archive-shape .elementor-shape-fill {
  fill: var(--archive-shape-fill-color);
  transform: rotateY(0deg);
  transform-origin: center;
}

/* Archive header */

.archive-header{
    position: relative;
    padding: 260px 0 30px 0;
    background-image: var(--archive-image);
    background-size: cover;
    background-position: center;
}

.archive-header .container{
    position: relative;
    z-index: 2;
}

.archive-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
  background-image: linear-gradient(180deg, #FFFFFF00 0%, #000 100%);
    z-index: 1;
}

.archive-title{
   font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--theme-primary);
    text-transform: uppercase;
}

.mb-40{
    margin-top: 40px;
}

@media (max-width: 767px){
    .archive-title{
        font-size: 32px;
    }
}

/* Pagination */

.site-pagination{
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

.site-pagination .page-numbers{
    display: inline-block;
    margin: 0 2px;
    border: 1px solid var(--theme-secondary);
    color: var(--theme-secondary);
    font-weight: 500;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;

    transition: all 0.3s ease;
}

.site-pagination .page-numbers.current,
.site-pagination .page-numbers:hover{
    background-color: var(--theme-secondary);
    color: #fff;
    text-decoration: none;
}


.site-pagination .page-numbers.prev,
.site-pagination .page-numbers.next{
    font-weight: 600;
}

@media (max-width: 575px){
    .blog-padding .col-md-4{
        margin-top: 20px;
    }
}

/* Single post */

.single-post__header{
    margin-top: 60px;
    width: 1200px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single-post__header-image{
    width: 100%;
    height: auto;
    overflow: hidden;
}

.single-post__header-image img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.single-post-content{
    margin-top: 60px;
    margin-bottom: 80px;
    width: 1200px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single-image{
    margin-bottom: 40px;
}

.post-meta{
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 14px;
}

.post-meta .posted-on{
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-primary);
}

.single-post__wrapper .entry-content img{
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 30px;
}

.single-post__wrapper .entry-content h1,
.single-post__wrapper .entry-content h2,
.single-post__wrapper .entry-content h3,
.single-post__wrapper .entry-content h4{
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--theme-black);
}

.single-post__wrapper .entry-content p{
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--theme-dark);
}

.single-post__wrapper .entry-content a{
    color: var(--theme-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post__wrapper .entry-content a:hover{
    color: var(--theme-accent);
    text-decoration: none;
}

.single-post__wrapper .entry-content blockquote{
    border-left: 4px solid var(--theme-secondary);
    padding-left: 20px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--theme-dark);
}

.single-post__wrapper .entry-content blockquote p{
    margin-bottom: 0;
}

.single-post__wrapper .entry-content ul,
.single-post__wrapper .entry-content ol{
    margin-bottom: 20px;
    padding-left: 40px;
    color: var(--theme-dark);
}

.single-post__wrapper .entry-content ul li,
.single-post__wrapper .entry-content ol li{
    margin-bottom: 10px;
    line-height: 1.6;
}

.single-post__wrapper .entry-content pre{
    background-color: #f5f5f5;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.single-post__wrapper .entry-content code{
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Posts navigation */

.post-nav-links{
    display: flex;
    justify-content: end;
    margin-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 30px;
    border-bottom: 1px solid #EEE;
}

.post-nav-links a{
    color: var(--theme-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--theme-text);
    font-size: 17px;
    transition: color 0.3s ease;
}

.post-nav-links a:hover{
    color: var(--theme-accent);
    text-decoration: none;
}

.post-nav-links > div > span{
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--theme-primary);
}

.post-nav-links .next,
.post-nav-links .prev{
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.post-nav-links .next{
    text-align: right;
}


@media (max-width: 1440px){
    .single-post-content,
    .single-post__header{
        width: 1024px;
    }
}

@media (max-width: 1200px){
    .single-post-content{
        width: 90%;
    }

    .archive-title{
        font-size: calc(1.325rem + 0.9vw);
    }

    .single-post-content,
    .single-post__header{
        width: 100%;
        padding-left: 50px;
        padding-right: 50px;
    }


}

@media (max-width: 768px){
    .blog-padding {
    padding: 30px 0;
    }

    .single-post-content,
    .single-post__header{
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575px){
    .post-nav-links{
        flex-direction: column;
        gap: 30px;
        margin-top: 55px;
        padding-bottom: 55px;
    }

    .post-nav-links .next{
        text-align: left;
    }

    .single-post-content{
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .post-nav-links .next, .post-nav-links .prev {
        max-width: 100%;
        flex: 0 0 100%;
        text-align: center;
    }

    .post-nav-links a{
        font-size: 15px;
    }

    .post-nav-links > div > span{
        font-size: 13px;
    }

    .post-meta{
        font-size: 13px;
    }
}


