#site-main{
    padding: 40px 0 154px;
}
.container{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
#category-heading{
    grid-column: span 2;
    padding: 12px 20px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: start;
    align-items: center;
    column-gap: 70px;
    margin-bottom: 40px;
    overflow: hidden;
}
h1{
    margin: 0;
    font-family: "Inter-Regular", sans-serif;
    font-size: 34px;
    line-height: 1;
    color: white;
}
.sub-categories{
    display: flex;
    flex-flow: row nowrap;
    justify-content: start;
    align-items: center;
    column-gap: 30px;
    overflow-x: auto;
}
.sub-categories li a{
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 14px;
    line-height: 1.71;
    color: white;
    white-space: nowrap;
}
@media(max-width:1024px){
    #category-heading{
        column-gap: 40px;
    }
    h1{
        font-size: 28px;
    }
    .sub-categories{
        column-gap: 20px;
    }
}
@media(max-width:767px){
    #site-main{
        padding: 16px 0 80px;
    }
    h1{
        font-size: 24px;
    }
}

#category-header .container{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,275px);
    grid-template-rows: auto;
    align-items: start;
    column-gap: 60px;
}
@media (max-width:1200px) {
    #category-header .container{
        column-gap: 40px;
    }
}
@media (max-width:1024px) {
    #category-header .container{
        column-gap: 20px;
        grid-template-columns: minmax(0,1fr);
    }
    #category-heading{
        grid-column: span 1;
    }
}
@media(max-width:767px){
    #category-heading{
        margin: 0 -20px 24px;
        width: 100vw;
    }
}


/*
 *   Featured posts
 */
#category-featured{
    display: block;
    margin-bottom: 70px;
}

/* Slider posts*/
.featured-post{
    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: stretch;
    height: 100%;
}
.featured-post .post-thumbnail img{
    width: 100%;
    height: auto;
    aspect-ratio: 1.62;
    object-fit: cover;
}
.featured-post .entry-title{
    font-family: "Inter-Bold", sans-serif;
    font-size: 18px;
    line-height: 1.16;
    color: #333333;
    margin: 7px 0 36px;
}
.featured-post .entry-title a{
    color: inherit;
}
.featured-post .entry-meta{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid #D5D5D5;
    margin-top: auto;
}
.featured-post .entry-meta a{
    color: inherit;
}
.featured-post .entry-meta span {
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 12px;
    line-height: 2;
    color: #7E7E7E;
}
.featured-post .entry-meta span.post-comments-number{
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    display: flex;
    flex-flow: row nowrap;
    justify-content: end;
    align-items: center;
    column-gap: 5px;
}
/*First post */
.featured-post.first{
    display: grid;
    grid-template-columns: minmax(0,32%) minmax(0,1fr);
    grid-template-rows: auto;

    column-gap: 40px;
    row-gap: 0;
    align-items: stretch;
    margin-bottom: 80px;
}
.featured-post.first .post-thumbnail{
    grid-row: span 3;
    grid-column-start: 2;
    grid-column-end: 3
}
.featured-post.first .post-body{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: stretch;
}
.featured-post.first  .entry-title{
    font-family: "Inter-Bold", sans-serif;
    font-size: 24px;
    line-height: 1.16;
    color: #333333;
    margin: 0 0 20px;
}

.featured-post.first .entry-excerpt {
    font-size: 16px;
    line-height: 1.375;
    color: #333333;
    margin-bottom: 24px;
}
.featured-post.first .entry-excerpt p{
    margin: 0;
}

@media(max-width:1200px){
    .featured-post.first{
        column-gap: 20px;
        margin-bottom: 60px;
    }
    .featured-post.first  .entry-title{
        font-size: 20px;
    }
}
@media(max-width:1024px){
    #category-featured{
        display: block;
        margin-bottom: 20px;
    }
    .featured-post.first{
        margin-bottom: 40px;
    }
}
@media(max-width:767px){
    .featured-post.first{
        grid-template-columns: minmax(0,1fr);
        row-gap: 20px;
        margin-bottom: 35px;
    }
    .featured-post.first .post-thumbnail{
        grid-row: span 1;
        grid-column: span 1;
    }
    .featured-post.first .post-body{
        justify-content: start;
    }
    .featured-post.first  .entry-title{
        margin: 0 0 16px;
    }
    .featured-splide{
        width: calc(100vw - 20px);
        margin-right: -20px;
    }
}
.splide__pagination{
    position: relative;
    inset: unset;
    margin-top: 30px;
    padding: 0 20px 0 0;
    column-gap: 0;
}
.splide__pagination li{
    flex: 1;
}
.splide__pagination li button{
    width: 100%;
    height: 7px;
    border-radius: 0;
    margin: 0;
    background: #F2F2F2;
}
.splide__pagination li .splide__pagination__page.is-active{
    background: #7E7E7E !important;
    transform: none;
}


/*
 * News tabs
 */
.tabs-nav{
    display: flex;
    flex-flow: row nowrap;
    justify-content: stretch;
    align-items: end;
    border-bottom: 1px solid #D5D5D5;
    margin-bottom: 30px;
}
.tab-btn{
    width: 50%;
    background: transparent;
    border-style: solid;
    border-width: 0 0 4px;
    border-color: white;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 12px;
    line-height: 2;
    text-align: center;
    text-transform: uppercase;
    padding: 0 20px;
}
.dark-mode .tab-btn{
    border-color: black;
}
.tab-btn:first-child.active{
    border-right: 1px solid #D5D5D5;
}
.tab-btn:last-child.active{
    border-left: 1px solid #D5D5D5;
}
.tab-btn.active{
    border-color: var(--main-color);
}
.tab-panel{
    display: none;
}
.tab-panel.active{
    display: block;
}
.tab-panel ul{
    list-style-type: none;
    width: 100%;
}
.tab-panel li{
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #D5D5D5;
}
.tab-panel li:not(:last-child){
    margin-bottom: 15px;
}
.tab-panel li a{
    display: grid;
    grid-template-columns: minmax(0,45px) minmax(0,1fr);
    grid-template-rows: auto;
    align-items: start;
    gap: 5px;
}
.tab-panel li a span{
    justify-items: center;
    font-family: "Inter-Bold", sans-serif;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    color: var(--main-color);
}
.tab-panel li a span span{
    display: block;
    font-size: 12px;
    line-height: 1.66;
    text-align: center;
}
.tab-panel li a h3{
    font-family: "Inter-Bold", sans-serif;
    font-size: 14px;
    line-height: 1.28;
    color: #333333;
    margin: 0;
}
@media(max-width:1024px){
    #news-tabs{
        order: 3;
        margin-bottom: 55px;
    }
    .tabs-nav{
        margin-bottom: 16px;
    }
    .tab-panel li{
        padding-bottom: 12px;
    }
    .tab-panel li:not(:last-child){
        margin-bottom: 12px;
    }
    .tab-panel li a{
        align-items: center;
    }
}
@media(max-width:767px){
    .tabs-nav{
        border-top: 1px solid #D5D5D5;
    }
    .tab-btn{
        padding: 12px 20px 8px;
    }
    .tab-btn:first-child.active{
        border-right: 1px solid #D5D5D5;
    }
    .tab-btn:last-child.active{
        border-left: 1px solid #D5D5D5;
    }
    .tab-btn.active{
        border-color: #536AA4;
    }
}
@media(max-width:576px){
    .tab-panel li a{
        align-items: start;
    }
}


/*
 * Baner
 */
#category-banner{
    grid-column: span 2;
    display: block;
    background: #F2F2F2;
    padding: 10px 0 30px;
    border-color: #D5D5D5;
    border-width: 1px 0;
    border-style: solid;
    width: 100vw;
    margin: 70px calc((100vw - 1280px) / -2 - 20px) 55px;
}
#category-banner .banner{
    position: relative;
    max-width: 965px;
    margin: 0 auto;
    padding: 0 20px;
}
#category-banner .banner:before{
    content: "Oglas";
    position: relative;
    display: block;
    text-align: right;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 12px;
    line-height: 2;
    color: #7E7E7E;
}
#category-banner a{
    width: 100%;
    margin: 0 auto;
    display: block;
}
#category-banner img{
    width: 100%;
}
@media (max-width: 1280px){
    #category-banner{
        margin: 70px -20px 55px;
    }
}
@media(max-width:1024px){
    #category-banner{
        padding: 0;
        background: transparent;
        border: none;
        margin: 0 -20px 40px;
        grid-column: span 1;
    }
    #category-banner .banner{
        padding: 0;
        max-width: 100%;
    }
    #category-banner .banner:before{
        margin-right: 20px;
    }
    #category-banner a{
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    #category-banner img{
        width: 100%;
    }
}

/*
 * News main
 */
#category-content {
    scroll-margin-top: 80px;
}
#category-content .container{
    max-width: 965px;
}
#category-content .post{
    display: grid;
    grid-template-columns: minmax(0,31%) minmax(0,1fr);
    grid-template-rows: auto;
    column-gap: 40px;
}
#category-content .post:not(:last-child){
    margin-bottom: 40px;
}
#category-content .post-thumbnail img{
    width: 100%;
    height: auto;
    aspect-ratio: 1.62;
    object-fit: cover;
}
#category-content .entry-body{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: stretch;
}
#category-content .entry-title{
    font-family: "Inter-Bold", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.22;
    color: #333333;
    margin: 0 0 12px
}
#category-content .entry-title a{
    color: inherit;
}
#category-content .entry-meta{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid #D5D5D5;
}
#category-content .entry-meta a{
    color: inherit;
}
#category-content .entry-meta span {
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 12px;
    line-height: 2;
    color: #7E7E7E;
}
#category-content .entry-meta span.post-comments-number{
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    display: flex;
    flex-flow: row nowrap;
    justify-content: end;
    align-items: center;
    column-gap: 5px;
}
#category-content .entry-excerpt {
    font-size: 16px;
    line-height: 1.375;
    color: #333333;
    margin-bottom: 24px;
}
#category-content .entry-excerpt p{
    margin: 0;
}
@media(max-width: 1024px){
    #category-content .post{
        column-gap: 20px;
    }
    #category-content .entry-excerpt p{
        margin: 0;
    }
}
@media(max-width: 767px){
    #category-content {
        scroll-margin-top: 40px;
    }
    #category-content .post{
        grid-template-columns: minmax(0,1fr);
        row-gap: 16px;
    }
    #category-content .entry-excerpt {
        font-size: 14px;
    }
    #category-content .post-thumbnail img{
        max-width: 167px;
    }
}


/* Paginacija */
.nav-links{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
    column-gap: 13px;
    margin-top: 80px;
}
.nav-previous a, .nav-next a,
.nav-previous span, .nav-next span{
    padding: 11px 14px;
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: white;
    min-width: 160px;

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
}

.nav-previous a, .nav-next a{
    background: #D7162F;
}
.nav-previous span, .nav-next span{
    background: #D5D5D5;
}

@media(max-width: 767px){
    .nav-links{
        margin-top: 56px;
    }
}

.no-results.not-found p{
    text-align: center;
}
