/*
    Theme Name: Nextgress Theme    
*/

#blog-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#blog-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Blog */
.blog_wrap {
    padding: 40px 10px 60px;
    margin: 0 auto;
    max-width: 1280px;
    background: rgba(240, 235, 232, 1);
}

.main-blog-ct {
    background-color: rgba(240, 235, 232, 1);
/*    padding-bottom: 30px;*/
    
    width: 100%;  
    /* float: left; */
    position: relative;
    z-index: 2;
}

.mgb-30 {
    margin-bottom: 30px;
}

.header-blog {
    position: relative;  
    font-weight: 400;
    color: #000;
    line-height: 140%;   
    /* border-bottom: 3px solid #38393c; */
    font-size: 24px;
    text-align: left;
    font-family: Yu Mincho;
}

.header-blog:after {
    border-bottom: 3px solid #38393c;
}

/* Blog Post Area */
.list-posts .post {
    flex: 1;
    /* display: flex; */
    display: block;
    align-items: center;
/*==========   SET MIN-HEIGHT IF BLOG POST THUMBNAIL IMAGE EXIST  =============*/
/*    min-height: 180px;*/
}

.list-posts {
    min-height: 100px;
    /* display: flex; */
    display: block;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-top: 1px solid rgba(214, 210, 204, 1);
    border-bottom: 1px solid rgba(214, 210, 204, 1);
}

.main-blog-ct .list-posts:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.list-posts .post a {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: #000;
    font-family: 'Yu Gothic Light';
}

/*
.list-posts .post a .img {
    width: 30%;
}

.list-posts .post a .img img {
    max-width: 100%;
    height: auto;
}
*/

/* Blog Post Thumbnail Photo */
.blog-photo {
    width: 25%;
    flex-shrink: 0;
/*    margin-right: 1%;*/
}

.blog-photo img {
    height: 250px;   
    width: 100%;
    object-fit: cover;
}

.list-posts .post a .info {
    width: 100%;
    padding-left: 15px;
/*    letter-spacing: 0;   */
}



.info {
    font-size: 16px;
    line-height: 160%;
}

.info div {
    line-height: 160%;
}

.info .info-title {
    font-weight: 700;
    font-size: 16px;
}

.info .date {
    font-size: 13px;
    font-weight: 400;
    padding: 5px 0;
    margin-right: 10px;
}

.info .date img {
    margin-right: 5px;
    height: 24px;
    position: relative;
    top: -2px;
}

.info-category {
    margin-left: 20px;
}

.info .excerpt {
    font-weight: normal;
}

/* Side Widget Area */
h2.widgettitle,
h3.widgettitle {    
    font-size: 24px;
    color: #000;
    padding: 5px;   
    text-align: left;   
    margin-top: 0;
    margin-bottom: 30px;
    font-family: Yu Mincho;
    font-weight: 400;
}

.sidebar {
    padding: 0 15px;
    margin-top: -20px;
    width: 100%;
    float: left;
    background: rgba(240, 235, 232, 1);
    margin-left: -20px;
}

.sidebar-wrap {
    padding: 17px 10px 30px 10px;
    background: rgba(240, 235, 232, 1);
    position: relative;
    z-index: 2;
    width: 100%;
}

.sidebar ul {
    list-style-type: none;
}
.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #efefef;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}
.sidebar ul li a {
    color: #000;
}

.sidebar ul li:first-child {
    padding-top: 0;
}

/* Category List Styling */
.category-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(214, 210, 204, 1);
    border-bottom: 1px solid rgba(214, 210, 204, 1);
}

.category-list li {
    padding: 0;
    border-bottom: none;
    margin: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Yu Gothic Light', sans-serif;
}

.category-list li:first-child a {
    padding-top: 12px;
}

.category-list li:last-child a {
    padding-bottom: 12px;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 10px;
    display: none;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-name {
    flex: 1;
    text-align: left;
    font-size: 20px;
    font-family: Yu Gothic Light;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
}

/* Latest Posts List Styling */
.latest-posts-list {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.latest-post-item {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(214, 210, 204, 1);
}

.latest-post-item:last-child {
    border-bottom: none;
}

.latest-post-link {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    text-decoration: none;
    color: #000;
    width: 100%;
}

.latest-post-thumbnail {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
    overflow: hidden;
}

.latest-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-post-title {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Yu Gothic Light', sans-serif;
    line-height: 1.5;
    color: rgba(51, 51, 51, 1);
    text-align: left;
}

/* Single Blog Page */
.single img {
    max-width: 100%;
    height: auto;
}
.single-date {
    margin: 15px 0;
    font-size: 16px;
    letter-spacing: 0;
}

.single-ct {
    font-size: 16px;
    padding-bottom: 30px;
    letter-spacing: 0;    
}

.single-ct p {
    line-height: 160%;
}

.single-ct strong {
    font-weight: bolder;
}

/* calendar widget */
#wp-calendar {
    width: 100%;
}

#wp-calendar caption {
    text-align: right;
    color: #333;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 15px;
}

#wp-calendar thead {
    font-size: 10px;
}

#wp-calendar thead th {
    padding-bottom: 10px;
    font-size: 15px;
    padding-left: 10px;
}

#wp-calendar tbody {
    color: #aaa;
}

#wp-calendar tbody td {
    background: #f5f5f5;
    border: 1px solid #fff;
    text-align: center;
    padding: 8px;
}

#wp-calendar tbody td:hover {
    background: #fff;
}

#wp-calendar tbody .pad {
    background: none;
}

/*
#wp-calendar tbody td a {
    background: #38393c;
    color: #fff;
}
*/

#wp-calendar tfoot #next {
    font-size: 10px;
    text-transform: uppercase;
    text-align: right;
}

#wp-calendar tfoot #prev {
    font-size: 10px;
    text-transform: uppercase;
    padding-top: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin: 40px -15px 0 -15px;
    background: rgba(240, 235, 232, 1);
    width: calc(100% + 30px);
    padding: 20px 15px 40px 15px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
    z-index: 2;
    font-family: Yu Gothic Light;
    border: 1px solid #000;
    border-radius: 10px;
    margin: 0 5px;
    font-weight: 400;
}

.pagination .current {
    background-color: #38393c;
    color: #fff; 
    font-family: Yu Gothic Light;
}

.clear {
    clear: both;
}

.single-content {
    text-align: left;
    padding: 0 15px 0 0;
    font-family: 'Yu Gothic Light';
    font-weight: 400;
    font-size: 16px;
    line-height: 36px;
}

.single-content h1 {
    color: rgba(51, 51, 51, 1);
    font-family: Yu Gothic;
    font-weight: 700;
    font-size: 24px;   
    border-top: 1px dashed rgba(223, 87, 46, 1); 
    border-bottom: 1px dashed rgba(223, 87, 46, 1);
    padding: 10px;
    margin-bottom: 20px;
}

.single-content h2 {
    color: rgba(51, 51, 51, 1);
    font-family: Yu Gothic;
    font-weight: 700;
    font-size: 20px;  
    border-bottom: 1px solid rgba(223, 87, 46, 1);
    padding: 7px 10px;
    background: rgba(255, 196, 178, 0.3);
    margin-bottom: 20px;
}

.single-content h3 {
    color: rgba(51, 51, 51, 1);
    font-family: Yu Gothic;
    font-weight: 700;
    font-size: 16px;
    border-left: 4px solid rgba(223, 87, 46, 1);
    padding: 0 5px;
    margin-bottom: 20px;
}

.post-back-button {
    text-align: center;
    margin: 40px auto;
}

.btn-back {
    background-color: rgba(223, 87, 46, 1);
    color: #fff;
    padding: 10px 20px;    
    text-decoration: none;
    font-family: Yu Gothic Light;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
}

.btn-back:hover {
    background-color: rgba(223, 87, 46, 0.8);
    color: #fff;
    text-decoration: none;
    font-family: Yu Gothic Light;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    /* border-top: 1px solid rgba(214, 210, 204, 1); */
    padding-right: 20px;
    margin-bottom: 80px;
}

.nav-previous,
.nav-next {
    flex: 1;
    text-align: center;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    color: #000;
    text-decoration: none;
    font-family: 'Yu Gothic Light';
    font-size: 16px;
    display: inline-block;
}

.nav-previous .nav-disabled,
.nav-next .nav-disabled {
    color: #999;
    font-family: 'Yu Gothic Light';
    font-size: 16px;
    display: inline-block;
}

.nav-arrow {
    color: #ff6600;
    font-size: 20px;
    font-weight: bold;
    margin: 0 5px;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background-color: #ccc;
    margin: 0 20px;
}

.single-category  {
    margin-left: 10px;
}

span.single-category ul {
    display: inline-block;
}

span.single-category ul li a {
    text-decoration: none;
    font-family: Yu Gothic Light;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    font-size: 16px;
}

span.single-category ul li a:hover {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}

.single-date img {
    width: 20px;
    height: 20px;
    object-fit: contain;    
    position: relative;
    top: 7px;
}

.single-category img {
    width: 20px;
    height: 20px;
    object-fit: contain;    
    position: relative;
    top: 7px;
}


@media screen and (max-width:834px) {
    .blog_wrap {
        padding: 60px 40px;
    }
    
    .main-blog-ct {
        width: 100%;
    }
    
    /* Fix sidebar white space at 834px */
    .blog_wrap .row:last-child {
        margin-left: -40px;
        margin-right: -40px;
        width: calc(100% + 80px);
    }
    .blog_wrap .row:last-child .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .sidebar {
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .sidebar-wrap {
        padding: 20px 40px 30px 40px;
    }
}

@media screen and (max-width:768px) {
    
    h2.widgettitle {    
        font-size: 18px;
        font-weight: bold;   
    }
    
     .pagination { 
        float: left;        
        display: flex;
        justify-content: center;
        font-weight: bold;
        background: rgba(240, 235, 232, 1);
        width: calc(100% + 30px);
        padding: 20px 15px 40px 15px;
        margin: 40px -15px 0 -15px;
    }
    
    /* Fix sidebar white space at 768px - extend full width */
    .blog_wrap .row:last-child {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    .blog_wrap .row:last-child .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }
    .sidebar {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        background: rgba(240, 235, 232, 1);
    }
    .sidebar-wrap {
        padding: 20px 25px 30px 25px;
        background: rgba(240, 235, 232, 1);
        margin-left: -25px;
    }
}


@media screen and (max-width: 767px) {
    .blog_wrap {
        padding: 20px 10px;
    }
    .main-blog-ct {
        margin-bottom: 0;
        padding: 20px 10px 30px 10px;
        width: 100%;
        margin-right: 0;
    }
    .list-posts .post a .img {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    .list-posts .post a .info {
        width: 100%;
        padding-left: 0;
    }

    .sidebar-wrap {
        width: 100%;
        margin-left: 0;
    }
    
    .sidebar {
        padding: 0;
        width: 100%;
        margin-left: 0;
    }
    .pagination {
        width: calc(100% + 20px);
        margin: 40px -10px -30px -10px;
        padding: 20px 10px 40px 10px;
    }    
    .blog-photo {
        margin-right: 5%;
    }

    .list-posts {
        margin-right: 20px;
    }
    
    .latest-post-thumbnail {
        width: 130px;
        height: 70px;
    }
    
    .latest-post-title {
        font-size: 14px;
        text-align: left;
        padding-right: 15px;
        margin-right: 20px;
    }
}
/* End Blog */