.section-grid{
    display: grid;
    grid-template-columns: 1fr 343px;
    grid-template-rows: auto 1fr;
}

.section-grid.equal{
    display: block;
}

.section-grid .section-header{
    grid-column: 1 / 2;
    grid-row:  1 / 2;
}
.section-grid .section-articles{
    grid-column: 1 / 2;
    grid-row:  2 / 3;
    display: grid;
    --gap: 2rem;
    gap: var(--gap);
    /* --width: calc((100% - 2 * var(--gap) / 3));
    --halfWidth : calc(var(--width) / 2); */
    grid-template-columns: repeat(6, 1fr);
    padding-right: 1rem;
}
.section-grid .section-side{
    grid-column: 2 / 3;
    grid-row:  1 / 3;
    padding-inline: 1rem;
}

.section-grid .section-articles > div{
    grid-column: span 3;
}
.section-grid .section-articles.column-3 > div{
    grid-column: span 2;
}

.section-grid .section-articles > div:first-of-type{
    grid-column: 1 / 4;
}
.section-grid .section-articles > div:nth-of-type(2){
    grid-column: 4 / -1;
}

.section-grid .section-articles.has-hero-card > div:first-of-type{
    grid-column: 1 / -1;
}
.section-grid .section-articles.has-hero-card > div:nth-of-type(2){
    grid-column: 1 / 4;
}
.section-grid .section-articles.has-hero-card > div:nth-of-type(3){
    grid-column: 4 / -1;
}

.row-grid .section-articles{
    gap: 24px;
}

.section-grid.equal .section-articles{
    display: flex;
    flex-wrap: wrap;
    --gap: 24px;
}
.section-grid.equal .section-articles > div{
    width: calc((100% - var(--gap)) / 2);
}

@media screen and (max-width: 1080px) { 
    .section-grid .section-articles > div{
        grid-column: span 3;
    }
}
@media screen and (max-width: 920px) { 
    .section-grid .section-articles{
        grid-column: 1 / -1;
        margin-bottom: 2rem;
        padding-right: 0;
    }
    .section-grid .section-side{
        grid-column: 1 / -1;
        grid-row: unset;
        padding-inline: 0;
    }
    .section-grid .related-articles{
        flex-wrap: wrap;
        gap: 24px;
        flex-direction: row;
    }
    .section-grid .related-articles > div{
        width: calc((100% - 24px) / 2);
    }
    .section-grid .all-btn{
        margin-inline: auto;
    }
    .section-grid .section-header{
        grid-column: 1 / -1;
    }
    .row-grid .section-articles  > div{
        width: calc((100% - 24px) / 2);
    }    
}

@media screen and (max-width: 820px) { 
    .section-grid .section-articles{
        --gap: 1rem;
    }
}
@media screen and (max-width: 740px) { 
    .section-grid{
        grid-template-columns: 1fr 1fr;
    }
    .section-grid .section-articles > div{
        grid-column: span 3;
    }
}
@media screen and (max-width: 520px) { 
    .section-grid .section-articles{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .section-grid .related-articles{
        gap: 1rem;
        flex-direction: column;
    }
    .row-grid .section-articles{
        flex-wrap: wrap;
    }
    .row-grid .section-articles  > div,
    .section-grid .related-articles > div{
        width: 100%;
    }
    .section-grid.equal .section-articles > div{
        width: 100%;
    }
}

/* main */

.hero{
    margin-bottom: 8px;
    height: calc(100dvh - 325px);
    min-height: 536px;
}

main:has( > .breaking-wrapper) .hero{
        height: calc(100dvh - 365px);
}

.hero-slide{
    width: 100%;
    height: 100%;
    /* max-width: 1080px; */
}

.hero-slide .pill{
    background-color: var(--colorPrimary);
    color: #F8F9F9;
}

.hero-card,
.hero-card .card{
    height: 100%;
}

.hero .card--info{
    max-width: 900px;
}
.hero .card--title{
    padding-right: 4rem;
}

.hero-thumbnails .swiper-slide{
    height: 155px;
    overflow: hidden;
    /* background-color: red; */
}
.hero-thumbnails .swiper-slide{
    cursor: pointer;
}
.thumb{
    position: relative;
    width: inherit;
    height: inherit;
}
.thumb-text{
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    color: #fff;
    padding: 8px 16px 16px;
    background-color: var(--colorPrimary);
    opacity: 0;
    transition: all .3s;
    box-sizing: border-box;
    display: grid;
    place-content: center;
}
.hero-thumbnails .swiper-slide:hover .thumb-text{
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.32) 75.88%),
        linear-gradient(0deg, rgba(14, 190, 152, 0.42), rgba(14, 190, 152, 0.42));
    opacity: 1;
} 
.hero-thumbnails .swiper-slide-thumb-active:hover .thumb-text{
    background: var(--colorPrimary);
}
.swiper-slide-thumb-active .thumb-text{
    opacity: 1;
}
.thumn-text h4{
    font-size: 14px;
}
.thumb-text .progress{
    height: 5px;
    width: calc(100% - 2rem);
    margin-top: 8px;
    background-color: #a9e3d2;
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    left:1rem; bottom: 8px;
    opacity: 0;
}
.swiper-slide-thumb-active .thumb-text .progress{
    opacity: 1;
}

.thumb-text .progress::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left:0; top: 0;
    transform-origin: left;
    background-color: var(--colorPrimary);
    transform: scaleX(var(--time));
}

@media screen and (max-width: 800px) {
    .hero{
        height: auto;  
        padding-inline: 1.5rem;  
    }
    main:has( > .breaking-wrapper) .hero{
        height: auto;
}
    .hero-wrapper{
        flex-direction: column!important;
        gap: 24px;
    }
    .hero-thumbnails{display: none;}
    .hero .card--title{
        padding-right: 2rem;
    }

}

@media screen and (max-width: 520px) {
    .hero{
        padding-inline: 1rem;  
    }
    .hero .card--title{
        padding-right: 0;
    }
     .hero-wrapper{
        gap: 12px;
    }
}

/* huff files */

/* .section-hufFiles .related-articles .card--title{
    color: #fff;
}
.section-hufFiles .related-tags--header h4{
    color: #3c3d3d;
}
.section-hufFiles .related-articles .card--time{
    color: #979898;
} */
/* 
@media screen and (max-width: 800px) {
    .section-hufFiles .section-articles > div:first-of-type .card--time,
    .section-hufFiles .section-articles > div:first-of-type .card--info,
    .section-hufFiles .section-articles > div:first-of-type .card--title{
        color: #fff;
    }
} */

/* home bloggers */

.bloggers-wrapper{
    gap: 24px;
    /* padding-top: 50px; */
}
    .bloggers-wrapper > div{
        flex: 1;
    }

@media screen and (max-width: 940px) {
    .bloggers-wrapper{
        flex-wrap: wrap;
        --gap: 24px;
        gap: var(--gap);
    }
    .bloggers-wrapper > div{
        width: calc((100% - var(--gap)) / 2);
        flex: unset;
    }
}
@media screen and (max-width: 720px) {
    .bloggers-wrapper{
        --gap: 16px;
    }
}

@media screen and (max-width: 540px) {
    .bloggers-wrapper > div{
        width: 100%;
    }    
}

/* popular */

.popular-grid .articles-popular,
.popular-grid .popular-side{
    grid-row: 1 / -1;
}

@media screen and (max-width: 840px) {
    .section-popular .popular-grid{
        display: flex;
        flex-direction: column;
    }    
}

/* home vote */

.home-polls {
    margin: 2rem 0;
}

.home-polls .wrapper{
    padding-block: 0;
}

.home-polls-wrapper{
    background: linear-gradient(0deg, rgba(7, 24, 4, 0.42), rgba(7, 24, 4, 0.42)),
linear-gradient(180deg, rgba(0, 0, 0, 0) 39.14%, rgba(38, 38, 38, 0.2) 84.34%);
    color: #fff;
    position: relative;
    padding: 2rem;
    
}

.home-polls .section-header{
    padding-bottom: .5rem;
}
.home-polls .section-header .header-icon{
    filter: brightness(0) invert(1);
}

.home-polls .section-header span{
    font-size: 18px;
    line-height: 32px;
    margin-left: -36px;
    font-weight: 300;
    display: block;
}
.poll__container {
    gap: 16px;
}   
.question__container {
    text-align: center;
    text-wrap: pretty;
}
.answers__container {
    /* flex: 0 0 100%; */
    margin-top: 16px;
}

.answers__container .votes__container {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    position: relative;
    gap: 24px;
    padding-inline: 24px;
    height: fit-content;
    align-self: center;
}
.question__container p {
    font-size: 36px;
    line-height: 44px;
    text-align: left;
    font-weight: 600;
    line-height: 1.2;
}

.vote__wrapper {
    padding: 8px 12px;
    border: 1px solid white;
    /* flex: 0 0 32%; */
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 150%;
    /* aspect-ratio: 16/9; */
    gap: 10px;
    /* background-color: var(--colorPrimary); */
    cursor: pointer;
    background: linear-gradient(0deg, rgba(7, 24, 4, 0.42), rgba(7, 24, 4, 0.42)),
            linear-gradient(180deg, rgba(0, 0, 0, 0) 39.14%, rgba(38, 38, 38, 0.2) 84.34%);

}

@media screen and (max-width: 980px) {
    .question__container p {
        font-size: 22px;
    }
    .answers__container .votes__container {
        gap: 1rem;
    }
    .home-polls > .wrapper{
        padding-inline: 0;
        margin-block: 0;
    }
    .home-polls{
        margin-block: 0;
    }
}

@media screen and (max-width: 860px) {
    .poll__container{
        flex-direction: column;
        text-align: center;
        padding-block: 2rem; 
    }
    .answers__container .votes__container{
        padding-inline: 0;
    }
    .answers__container{
        width: 100%;
    }
}
@media screen and (max-width: 640px) {
    .vote__wrapper{
        padding: 1rem;
    }
}
@media screen and (max-width: 580px) {
    .answers__container .votes__container{
        flex-direction: column;
    }
}
@media screen and (max-width: 520px) {
    .home-polls{
        padding-block: 1rem;
    }
    .poll__container{
        padding-inline: 1rem;
    }
    .answers__container .votes__container{
        gap: .5rem;
    }
    .vote__wrapper{
        font-size: 16px;
    }
    .question__container p{
        font-size: 20px;
    }
}
@media screen and (max-width: 430px) {
    .vote__wrapper{
        padding: .5rem;
    }
    .poll__container{
        padding: 1rem .5rem;
        gap: 1rem;
    }
}
@media screen and (max-width: 365px) {
    .answers__container .votes__container{
        flex-direction: column;
    }
    .vote__wrapper{
        padding: 1rem;
        aspect-ratio: unset;
    }

}

/* category */

.section-category .section-grid:has( > .section-tags) .section-articles,
.section-category .section-grid:has( > .section-tags) .section-side{
    grid-row: 5 / 6;
}
.section-category  .section-articles,
.section-category .section-side{
    grid-row: 4 / 5;
}

.section-category .section-header{
    grid-column: 1 / -1;
}

.section-category .major-card{
    grid-row: 2 / 3;
    grid-column: 1 / -1;
    margin-bottom: 24px;
}
.section-category .section-grid:has( > .section-tags) .major-card{
    grid-row: 3 / 4;
}

.section-category .section-grid> aside.box{
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    margin-bottom: 24px; 
}
.section-category .section-grid:has( > .section-tags) > aside.box{
    grid-row: 4/ 5;
}

.section-tags{
    grid-column:  1 / -1;
    grid-row: 2 / 3;
    padding-right: 1rem;
    flex-wrap: wrap;
}

.section-tags ul{
    border-top: 1px solid var(--colorPrimary);
    border-bottom: 1px solid var(--colorPrimary);
    padding-block: 1rem;
    margin-bottom: 1rem;
}

.section-category .related-wrapper{
    padding-top: 0;
}

@media screen and (max-width: 920px) {
    .section-category .section-articles{
        grid-row: 4/5;
    }
    .section-category .section-side{
        display: none;
    }
}

/* page life */

body:has(> main.page-life){
    background-color: var(--colorLifeLight);
}

.page-life .section-category .section-header{
    color: var(--colorLife);
    border-color: var(--colorLife);
}

.page-life .section-tags ul{
    border-color: var(--colorLife);
}

.page-life .all-btn{
    background-color: var(--colorLife);
}

/* page author */

.signature-author-details {
    max-width: 600px;
    margin-inline: auto;
    line-height: 125%;
}