/******************/
/*****ARTICLE******/
/******************/

.article .template {
    margin: 70px auto;
}

.article .related {
    margin: 90px auto;
}

.article .related .container {
    max-width: 1180px;
    padding: 0 20px;
}

.article .listing.listing-card .items.row {
    margin: 0;
}

.article .content .banner .h1, .content .banner h1,
.article .related h2 {
    font-size: 60px;
    font-family: var(--secondary-font-family);
}

.article .article-info .mid-content {
    margin: 30px auto 70px auto ;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.article .mid-content .date-blog {
    font-family: var(--secondary-font-family);
    color: var(--gray);
    font-weight: bold;
}

.article .mid-content .tag-blog a {
    font-family: var(--secondary-font-family);
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    font-size: 15px;
}

.article .mid-content .tag-blog a:hover {
    color: var(--dark-grey);
}

@media(max-width: 768px) {

    .content.article {
        margin-top: 176px;
    }

    .article .article-info .mid-content {
        margin: 30px auto 35px auto ;
    }

    .article .template {
        margin: 35px auto;
    }

    .article .content .banner .h1, .content .banner h1,
    .article .related h2 {
    font-size: 35px;
    font-family: var(--secondary-font-family);
}

    body .content .related h2:first-child {
        font-size: 35px;
        margin: -5px auto 35px auto;
    }
}

/**********************/
/*****ARTICLE NAV******/
/**********************/

.content.article .banner ul li a{
    color: var(--breadcrumbs);
    font-size: 16px;
}

.content .article-nav {
	border-top: none;
    margin-top: 20px;
    padding-block: 25px;
	background-color: var(--transparent);
}

.content .article-nav .container {
    max-width: 980px;
    padding: 0;
}

.content .article-nav .row {
    margin: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.content .article-nav .row > div {
    padding: 0px;
}
.content .article-nav .row > div:nth-child(2) {
    text-align: center;
    order: 1;
}
.content .article-nav .row > div:last-child {
	text-align: right;
}
.content .article-nav .row > div a {
	font-size:16px;
    font-family: var(--secondary-font-family);
	color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
}

.content .article-nav .row > div.disabled a {
	opacity: .25;
	pointer-events: none;
}

.content .article-nav .row > div.prev a,
.content .article-nav .row > div.next a {
	padding-left: 0px;
	position: relative;
}
.container .article-nav .row > div.prev a::before,
.container .article-nav .row > div.next a::after {
	content: '';
	display: inline-block;
	-webkit-mask-image: url(/assets/img/homepage/up-right-arrow.svg);
	mask-image: url(/assets/img/homepage/up-right-arrow.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: var(--primary);
	width: 11px;
	height: 11px;
	position: relative;
	transition: var(--transition);
	top: 0;
    bottom: 0;
    margin: auto;
}

.content .article-nav .row > div.prev a {
	padding-left: 0px;
}
.content .article-nav .row > div.prev a::before {
    transform: rotate(-90deg) ;
    margin-right: 11px;
}

.content .article-nav .row > div.next a {
	padding-right: 0;
	padding-left: 0;
}
.content .article-nav .row > div.next a::after {
	right: 0;
    margin-left: 11px;
    transform: rotate(0deg);
}

.content .article-nav {
  position: relative;
}
.content .article-nav::before {
  content: '';
  position: absolute;
  top: 100%; 
  left: 0;
  right: 0;
  width: 100%; 
  height: 1px; 
  background-color: var(--article-separator); 
  transform: translateY(-50%); 
}


@media(min-width: 992px) {	
    .content .article-nav .row > div.prev a,
    .content .article-nav .row > div.next a {
		padding-left: 0px;
	}
	.content .article-nav .row > div.next a {
		padding-right: 0px;
	}
}

@media(min-width: 768px) {
	.content .article-nav {
		margin-top: 130px;
		padding: 0px 0 68px 0;
	}

	.article .lower span.date {
		padding-left: 25px;
	}
	.content .article-nav .row > div:nth-child(2) {
        order: initial;
    }

	.content .article-nav .row>div.prev a:hover::before {
		transform: rotate(-90deg) translate(5px, -5px);
	}
	.content .article-nav .row>div.next a:hover::after {
		transform: rotate(0deg) translate(5px, -5px);
	}
}

@media(max-width: 768px) {
    .content .article-nav .row {
        gap: 20px;
        padding-bottom: 35px;
    }
}


/************ RELATED ARTICLE ****************/

body .content .related h2:first-child {
    margin: -5px auto 70px auto;
}

.related .listing.listing-card .items.row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: nowrap;
}

.related.blog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.content.blog .related {
    flex-direction: column;
    max-width: unset;
    margin-top: 100px;
}

.content.blog .related .listing {
    max-width: unset;
}

.content.blog .related .listing .items {
    display: flex;
    flex-direction: row;
    --gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
}

.content.blog .related .listing .items .card {
    max-width: 640px;
    padding: 0;
}

.content.blog .related .listing .items .card > a:last-of-type{
    display: inline-block;
    overflow: hidden;
    margin-top: 10px;
}

.content.blog .related .listing .items .card a img {
    transition: var(--transition);
}

.related .article-tags {
    display: flex;
    gap: 20px;
    margin-block: 18px;
}
.related .article-tags span {
    font-family: var(--secondary-font-family);
    font-weight: bold;
    color: var(--gray);
}
.related .article-tags a {
    font-family: var(--secondary-font-family);
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
}

.related .description {
    font-family: var(--secondary-font-family);
    font-size: 35.5px;
    font-weight: bold;
    line-height: 1.07;
    letter-spacing: -0.36px;
    text-transform: uppercase;
    text-align: left;
    color: #212121;
}

.related .template:last-of-type {
    margin-bottom: unset; 
}

.related .template * + .listing {
    margin-top: 0;
}

@media(max-width: 768px) {

    body .content .related h2:first-child {
        margin: -5px auto 35px auto;
    }

    .related .listing.listing-card {
        margin-top: 0;
    }

    .related .listing.listing-card .items.row {
        display: flex;
        flex-direction: column;

    }

    .related .description {
        font-size: 24px;
    }

    .related.blog-container {
        margin-bottom: 50px;
    }
}
