/**
 * Tin tức trang chủ (recent-posts) – webvnn-agt / nghiatrung.vn
 */

#recent-posts.recent-posts {
    overflow: hidden;
    padding: 30px 0 !important;
}

#recent-posts .section-header {
    margin-bottom: 70px;
    position: relative;
}

#recent-posts .section-header h2,
#recent-posts .section-header .section-title {
    font-size: 30px;
    font-weight: 700;
    position: absolute;
    color: #073b60;
    padding-top: 15px;
    margin: 0;
}

#recent-posts .section-title {
    padding-left: 50px;
}

#recent-posts .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    transform: translateY(-40%);
    width: 40px;
    height: 40px;
    background-image: url(../images/agt-logo.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#recent-posts .section-header a {
    right: 0;
    position: absolute;
}

#recent-posts .btn-secondary {
    padding: 12px 25px !important;
    background-color: #063a61;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
}

#recent-posts .btn-secondary:hover {
    background-color: #07548e;
    color: #fff;
}

#recent-posts .btn-secondary:after {
    content: '➔';
    color: #fff !important;
    border-left: 1px solid #fff;
    padding-left: 30px;
    margin: 0px 0px 0px 30px;
}

@media (max-width: 992px) {
    #recent-posts .section-header h2,
    #recent-posts .section-header .section-title {
        font-size: 20px !important;
    }
}

@media (max-width: 640px) {
    #recent-posts .section-header a {
        display: none;
    }
}

@media (min-width: 1000px) {
    #recent-posts #col-post {
        padding-left: 1px;
    }
}

@media (min-width: 1280px) {
    #recent-posts .hide-on-lg {
        display: none !important;
    }
}

#recent-posts .post-box {
    transition: 0.3s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

#recent-posts .first-post-box .post-img {
    height: 700px;
    overflow: hidden;
}

#recent-posts .first-post-box .post-meta {
    position: absolute;
    width: 35%;
    right: 0;
    height: 100%;
    background-color: #063a5f;
    padding: 30px 20px;
    top: 0;
}

#recent-posts .first-post-box .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#recent-posts .other-post-box {
    height: 226px;
    margin-bottom: 11px;
}

#recent-posts .other-post-box .post-img {
    height: 100%;
    overflow: hidden;
}

#recent-posts .other-post-box .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#recent-posts .other-post-box .post-meta {
    position: absolute;
    padding: 10px 20px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(6, 58, 95);
    background: linear-gradient(0deg, rgba(6, 58, 95, 1) 0%, rgba(1, 57, 186, 0.15) 100%);
}

#recent-posts .other-post-box .post-title {
    position: absolute;
    bottom: 5%;
    line-height: 0.8;
    margin: 0;
}

#recent-posts .other-post-box .post-title a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    transition: 0.3s;
    text-transform: uppercase;
    text-decoration: none;
}

#recent-posts .post-box .post-img img {
    transition: 0.5s;
}

#recent-posts .post-box .meta {
    margin-top: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
}

#recent-posts .post-box .meta .post-date {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
}

#recent-posts .first-post-box .post-title {
    margin: 0;
}

#recent-posts .first-post-box .post-title a {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    margin: 15px 0 0 0;
    position: relative;
    transition: 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

#recent-posts .post-box h3 {
    color: #fff;
}

#recent-posts .post-box p {
    margin: 15px 0 0 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

#recent-posts .post-box:hover .post-img img {
    transform: scale(1.1);
}

@media (max-width: 575px) {
    #recent-posts .first-post-box .post-img {
        height: 400px;
    }

    #recent-posts .first-post-box .post-meta {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 20px;
        background: rgb(6, 58, 95);
        background: linear-gradient(0deg, rgba(6, 58, 95, 1) 0%, rgba(1, 57, 186, 0.15) 100%);
    }
}
