.popular_news_section{
    padding: 100px 0 85px 0;
}


.popular_news_section .post_img_container{
    max-width: 240px;
    margin-right: 40px;
    border: 1px solid #dddddd;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease-in-out;
	flex: 4;
}

.popular_news_section .post_img_container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: 
        linear-gradient(90deg, #bfa888 0%, #bfa888 100%) top left,
        linear-gradient(180deg, #bfa888 0%, #bfa888 100%) top right,
        linear-gradient(270deg, #bfa888 0%, #bfa888 100%) bottom right,
        linear-gradient(0deg, #bfa888 0%, #bfa888 100%) bottom left;
    background-size: 
        0 1px,
        1px 0,
        0 1px,
        1px 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.popular_news_section .post_img_container::before {
    animation: border-animation-reverse 2s ease-in-out forwards;
}

.popular_news_section .post_img_container:hover::before {
    animation: border-animation 2s ease-in-out forwards;
}

@keyframes border-animation {
    0% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
    25% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}

@keyframes border-animation-reverse {
    0% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
    25% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    100% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
}

.popular_news_section .post_img_container img{
    object-fit: cover;
    width: 100%;
    height: 300px;
}

.popular_news_section .post_img_container a{
    width: 100%;
}

.post-categories{
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
}

.post_category a, .post_date, .post_header{
    font-family: 'Roboto',sans-serif;
    font-size: 15px;
    line-height: 1.73em;
    font-weight: 300;
    color: #bfa888;
    letter-spacing: 0;
    text-transform: none;
    &:hover{
        color: #998363;
    }
}

.popular_news_section h3{
    margin: 1px 0 13px;
}

.popular_news_section h3{
   font-family: "Cormorant Upright", serif;
   font-size: 33px;
   font-weight: 500;
   letter-spacing: 1.65px;
   line-height: 37.95px;
   color: #000;
   text-transform: uppercase;
}

.post_link a{
    margin-top: 10px;
    line-height: 2em;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-family: 'Inconsolata',monospace;
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

.py-30{
    padding: 35px 0;
}


.post_link a:hover i{
    transform: translateX(4px);
}

.post_link a i{
    display: inline-block;
    margin-left: 5px;
    position: relative;
    top: 1px;
    transform: translateX(0);
    transition: transform .3s cubic-bezier(.39,.58,.57,1);
}

.popular_news_section .row {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 25px;
}

.popular_news_section .gap-50{
    column-gap: 95px;
    row-gap: 50px;
}

.popular_post_card{
    width: calc(50% - 50px);
}

.popular_news_section .post_content{
	flex: 8;
}

@media(max-width: 1200px){
    .popular_post_card{
        width: 100%;
    }
}

@media(max-width: 578px){
    .popular_post_card{
        flex-direction: column;
    }

    .popular_post_card .post_img_container{
        margin: 0 0 20px 0;
        max-width: 100%;
        width: 100%;
    }
	
	.bg_text{
        font-size: 50px !important;
        display: none !important;
    }
}

@media(max-width: 768px){
    .bg_text{
        font-size: 85px !important;
    }
}