/*

Theme Name: Pro &ndash; Child Theme
Theme URI: http://theme.co/pro/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to Pro in this child theme.
Version: 1.0.0
Template: pro

*/
.custom-featured-image-section> img {
    margin: auto;
    display: block;
}

.custom-featured-image-section {
    background-color: #333;
}

.custom-title-section h1 {
    text-align: center;
    margin: 0;
    color: #fff;
}

.custom-title-section {
    padding-top: min(14%, 200px);
    padding-bottom: min(14%, 200px);
}

.custom-posts-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.custom-posts-wrap,
.custom-post-content-wrap {
    max-width: 860px;
}

.custom-posts-section::before,.custom-posts-section::after {
    display: none !important;
}

.custom-posts-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.custom-post-card {
    width: calc(50% - 12px);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.custom-featured-thumb {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 28%;
    padding-bottom: 28%;
    overflow: hidden;
}

.custom-featured-thumb > img,
.custom-related-post-inner > img {
    position: absolute;
    width: 100%;
    transition: 2s ease all;
}

.custom-featured-thumb:hover > img,
.custom-related-post-inner:hover > img {
    transform: scale(1.2);
}

.custom-post-card-content {
    padding: 20px;
}

.custom-post-title,
.custom-post-card-title,
.custom-related-posts-header {
    margin-top: 0;
}

.custom-post-date {
    position: absolute;
    padding: 4px 8px;
    background-color: rgb(40 40 40 / 80%);
    color: #fff;
    bottom: 10px;
    right: 10px;
}

.custom-sidebar {
    width: 300px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.custom-sidebar-section {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 260px;
}

.custom-sidebar-section li {
	margin-bottom: 10px;
}

.custom-sidebar-heading {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 1.1;
}

.custom-post-title {
    margin-bottom: 4px;
}

.custom-post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.custom-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    width: 100%;
    margin-top: 30px;
    border-top-color: #ccc;
    border-top-width: 1px;
    border-top-style: solid;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.custom-related-posts-wrap {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.custom-related-post {
    width: calc(33% - 15px);
    display: block;
}

.custom-related-post-inner {
    width: 100%;
    padding-top: 40%;
    padding-bottom: 40%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.custom-related-post-inner > img {
    z-index: -1;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-related-post-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 40%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-related-post-title {
    font-family: "Montserrat",sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: 24px;
    margin-bottom: 8px;
}

.custom-related-post-date {
    padding: 4px 8px;
    background-color: rgb(40 40 40 / 80%);
    width: fit-content;
}

.single-post .custom-post-content-wrap h1 {
    text-transform: capitalize;
}
.single-post .custom-post-content-wrap h2,
.single-post .custom-post-content-wrap h3,
.single-post .custom-post-content-wrap h4,
.single-post .custom-post-content-wrap h5,
.single-post .custom-post-content-wrap h6 {
    text-transform: unset;
}

.single-post .custom-post-content-wrap h1 {
    font-size: 240%;
}
.single-post .custom-post-content-wrap h2 {
    font-size: 180%;
}
.single-post .custom-post-content-wrap h3 {
    font-size: 140%;
}
.single-post .custom-post-content-wrap h4 {
    font-size: 130%;
}
.single-post .custom-post-content-wrap h5 {
    font-size: 120%;
}

.single-post .custom-post-content-wrap a {
    color: #278091;
}

@media(max-width:991px) {
    .custom-posts-section {
        flex-direction: column;
    }

    .custom-sidebar {
        width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
    }
}

@media(max-width:767px) {
    .custom-related-post {
        width: calc(50% - 15px);
    }
}

@media(max-width:499px) {
    .custom-post-card {
        width: 100%;
    }
    
    .custom-posts-wrap {
        gap: 30px;
    }
    
    .custom-related-post {
        width: 100%;
        max-width: 300px
    }
}