/* Articles Header */
.article-header { height: 120px; display: flex; align-items: center; background:var(--mainColour); }
.article-header>div { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 15px;}
.article-header .article-search-title { display: flex; align-items: center; }
.article-header .article-search-title h1 { font-size: 32px; padding: 0; line-height: 1; margin: 0;
    text-transform: capitalize; color: #fff; font-weight:500; }

.category-wrap{padding: 20px 0;}
.category-wrap > div{padding: 0 15px; display: flex; align-items: center; gap:20px;}

.category-container{display: flex; align-items: center; gap:10px; flex-wrap: wrap;}
.category-container a{font-weight: 500; color: var(--mainColour); border: 1px solid var(--mainColour); background: #fff; transition: ease-in-out all .3s; 
    padding:15px 28px; border-radius: 27px; line-height: 20px; }
.category-container a.active, .category-container a:hover{background: var(--tertiaryColour); color:  #fff; border-color:var(--tertiaryColour);}

/*Article Search Form*/
.search-form-container {width: 416px; border: 1px solid #E1E1E1; border-radius: 5px; overflow: hidden;}
.article-search-form { display: flex; align-items: center; width: 100%; height: 50px; position: relative; background: #fff; overflow: hidden;}
.article-search-form input[type=text] { width: calc(100% - 50px); padding: 0 10px; height: 100%; border:0; outline: 0; background: #fff; }
.article-search-form input[type=text]::placeholder {color: inherit;}
.article-search-form input[type=submit] { width: 50px; flex-shrink: 0; height: 100%; background: url(../images/search.svg) no-repeat center; background-size: 21px;
    cursor: pointer; border: 0; outline: 0; padding: 0; position: relative; }

/*Article Search*/
.article-search-results { display: flex; flex-wrap: wrap; gap: 20px;}
.articles{padding-bottom: 30px;}

/* Article Block */
.article { width: calc((100% - 40px) / 3); background: #fff; border:1px solid #EFEFEF; height: auto;}
.article>div { display: flex; position: relative; flex-direction: column; height:100%; }
.article .art-image { width: 100%; aspect-ratio: 3/2; display: flex; align-items: flex-start; position: relative; overflow: hidden;}
.article .art-image>a { height: 100%; width: 100%; background-position: center; background-color: #ededed; background-size: cover; background-repeat: no-repeat; 
    transition: ease-in-out all .3s; }
.article .art-info { padding: 25px 15px; display: flex; flex-direction: column; justify-content: flex-start; gap: 15px; color: var(--headingColour); 
    position: relative; background: #fff; flex-grow:1; }
.article .art-meta{display: flex; align-items: center;}
.article .art-category{padding-right: 10px; margin-right: 10px; border-right: 1px solid #D8D8D8;}
.article .art-category a{color:#1E2926; text-decoration: underline; font-size: 14px; line-height: 18px;}
.article .art-date{font-size: 14px;}
.article .art-title { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%;}
.article .art-title a { text-decoration: none; font-size: 20px;  line-height: 30px; color: var(--headingColour); font-weight: 600; font-family: var(--secondaryFont);}
.article .art-footer { display: flex; flex-grow: 1; align-items: flex-end;}
.article .art-footer a {text-transform: capitalize; color: var(--headingColour); text-decoration: underline; text-decoration: none; font-weight: 600; font-family: var(--secondaryFont); font-size: 16px;}
.article>div:hover .art-image>a { transform: scale(1.05); }

/* Article Details */
.article-image:not(:empty) { text-align: center; position: relative; width: 100%;}
.article-image img{max-width: 100%; height: auto; width: auto; }
.AB-editing .article-image[data-editable=true] { width: 100%; min-height: 400px; }
.article-info { display: flex; flex-direction: column; align-items: stretch; gap: 30px; width: 100%; }
.article-title { font-size: 42px; line-height: 48px; font-weight: 600;  color: var(--headingColour); margin-bottom: 0; padding: 0; }
.article-description { margin-bottom: 20px; font-size: 16px; line-height: 26px; color: var(--textColour); min-height: 30px; }
.article-description * {}
.article-back, .article-back:hover { color: var(--mainColour); font-weight: bold; line-height: 28px; text-decoration: underline; margin-top:30px; 
    padding-top:30px; border-top:1px solid #EFEFEF;}
.article-details { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
.article-left { flex: 1; display: flex; flex-direction: column; gap: 20px; width: calc(100% - 470px)}
.article-right { width: 450px; position: relative; }
.article-info .article-meta { color: var(--textColour); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.article-category { display: flex; gap: 5px; flex-wrap: wrap; border-right: 1px solid var(--border); padding-right: 10px; }
.article-category a { text-decoration: underline; color: var(--headingColour); }

/*Article Sidebar*/
.article-sidebar { padding: 40px 20px; display: flex; flex-direction: column; gap: 30px; }
.article-sidebar-background { position: absolute; top: 0; left: 0; bottom: 0; z-index: -1; width: 10000px; background: var(--footerColour); }
.article-sidebar-header { font-size: 24px; color: var(--headingColour); font-weight: 500; font-family:var(--secondaryFont); }
.article-sidebar .as-article { margin-bottom: 15px; padding-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #E2E2E2; }
.as-image { aspect-ratio: 3/2; width: 100px; flex: 0 0 auto; background-size: cover; background-repeat: no-repeat; 
    background-position: center; cursor: pointer; }
.article-sidebar .as-content { display: flex; flex-direction: column; gap: 0px; flex: 1; }
.as-title { font-size: 14px; line-height: 22px; color: var(--headingColour); transition: ease-in-out all .3s; overflow: hidden; font-weight: 500; text-decoration: none; }
.as-footer { display: flex; align-items: center; }
.as-read { font-size: 14px; color: var(--headingColour); line-height: 22px; position: relative; text-decoration: underline; }

.all-articles-link a{border-radius: 25px; height: 50px;}

/*Article Footer*/
.article-footer_container { width: 100%; padding: 50px 0;}
.article-footer>div { position: relative; display: flex; flex-direction: column; gap: 40px; }
.article-footer-title{color: var(--mainColour); font-weight: bold; display: flex; align-items: center; justify-content: space-between; gap:10px; text-align: left;
    line-height: 40px; padding: 0; }
.article-footer-title span{ font-size: 32px; font-family: var(--secondaryFont);}
.article-footer-title a{height: 50px; border-radius: 25px; border:1px solid var(--mainColour); text-transform: none;}
.article-footer .associated-articles_container { display: flex; position: relative; flex-direction: column; width: 100%; }
.article-footer .associated-articles { width: 100%;}

.associated-arrow{height: 66px; width:66px; position: absolute; top: calc(50% - 33px); border-radius: 100%; 
    transition: ease-in-out all .3s; background: var(--mainColour); z-index: 1000;}
.associated-arrow::before{content:""; height:14px; width:14px; border:solid #fff; border-width: 0 0 3px 3px; transform:rotate(45deg); 
    position: absolute; right: 23px; top: 25px; transition: ease-in-out all .3s;}
.associated-arrow-left{left: -33px;}
.associated-arrow-right{right: -33px; transform: rotate(180deg);}
.associated-nav-disabled{opacity: .5;}

.associated-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; height: 40px; }
.associated-pagination .associated-bullet { height: 20px; width: 20px; border-radius: 100%; position: relative; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; transition: ease-in-out all .3s; background: #000; border: 1px solid #000;}
.associated-pagination .associated-bullet.active { background-color: #fff; }
.associated-pagination.swiper-pagination-lock { display: none; }

/* Article List Module*/
.article-list-module { position: relative; padding: 60px 0; }
.article-list-module>div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.article-list-module>div>div { width: 100%; }
.article-list-module .al_header { display: flex; justify-content: space-between; gap: 15px; }
.article-list-module .al_header > div{flex-direction: column; gap:15px; display: flex; justify-content: flex-start;}
.article-list-module .al_button{flex-shrink: 0;}
.article-list-module .al_button a{font-size: 14px; height: 48px; text-transform: capitalize; border-radius: 24px;}
.article-list-module .al_header span{font-size: 32px; display: flex; line-height: 38px; font-family: var(--secondaryFont); font-weight: 600; color:var(--mainColour);}
.article-list-module .al_header p{}
.article-slider-container{position: relative;}

/*Article List View*/
.article-list-module.list { padding: 30px 0; }
.article-list-module.list .swiper-wrapper { display: flex; flex-wrap: wrap; gap:20px; }
.article-list-module.list .article {width: calc((100% - 40px) / 3);}
.article-list-module.list .article>div {}
.article-list-module.list :is(.art_pagination, .art-arrow) { display: none; }

/*Article Carousel Pagination*/
.art-arrow{height: 66px; width:66px; position: absolute; top: calc(50% - 33px); border-radius: 100%; 
    transition: ease-in-out all .3s; background: var(--mainColour); z-index: 1000;}
.art-arrow::before{content:""; height:14px; width:14px; border:solid #fff; border-width: 0 0 3px 3px; transform:rotate(45deg); 
    position: absolute; right: 23px; top: 25px; transition: ease-in-out all .3s;}
.art-arrow-left{left: -33px;}
.art-arrow-right{right: -33px; transform: rotate(180deg);}
.art-nav-disabled{opacity: .5;}

.art-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; height: 40px; }
.art-pagination .art-bullet { height: 20px; width: 20px; border-radius: 100%; position: relative; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; transition: ease-in-out all .3s; background: #000; border: 1px solid #000;}
.art-pagination .art-bullet.active { background-color: #fff; }
.art-pagination.swiper-pagination-lock { display: none; }

/************Responsive states**************/
@media (min-width:1200px) and (max-width:1400px) {

}

/* Desktop */
@media (min-width:992px) and (max-width:1199px) {

    /*Search Page*/
    .search-form-container{width: 320px;}
    .article-search-results{gap:10px;}

    /*Article block*/
    .article{width: calc((100% - 20px) / 3);}
    .article .art-info{padding: 20px 10px;}

    /*Details Page*/
    .article-left { width: calc(100% - 370px); }
    .article-right { width: 350px; }
    .article-title { font-size: 32px; }
    .article-footer-title{font-size: 36px;}

    /*Article List Module*/
    .article-list-module .al_header h1{font-size: 38px; line-height: 44px;}
    .article-list-module.list .swiper-wrapper{gap:10px;}
    .article-list-module.list .article{width: calc((100% - 20px) / 3);}
}

/*Mobile & Tablet*/
@media (max-width:991px) {

    /*Article Details*/
    .article-details>.article-left { flex: initial; width: 100%; }
    .article-details>.article-right { width: 100%; padding: 0 10px; margin-top: 40px; display: flex; align-items: center; flex-direction: column; justify-content: center; }
    .article-details { flex-direction: column; align-items: stretch; justify-content: flex-start; }
    .article-sidebar-background { width: 100vw !important; max-width: 100vw !important; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
    .article-image img { max-width: 100%;}
    .article-title { font-size: 32px; }
    .article-footer-title{font-size: 36px;}

    .article-footer_container{padding: 40px 0;}

    /*Article Module*/
    .article-list-module .al_header > div{align-items: center; gap:10px; text-align: center; width: 100%;}
    .article-list-module .al_button a{width: 100%;}


}

/*Tablet*/
@media (min-width:768px) and (max-width:991px) {

    /*Search Page*/
    .article-header .article-search-title h1{font-size: 28px;}
    .search-form-container{width: 270px;}
    .article-search-results{gap:10px;}

    /*Article Block*/
    .article{width: calc((100% - 10px) / 2);}
    .art-footer a{font-size: 14px;}

    /*Details Page*/
    .as-image { width: 100px; height: 66px; }
    .as-title { height: initial; display: flex; }
    .article-sidebar>header { align-items: flex-start; }

    /*Article Sidebar*/
    .article-sidebar { width: 100%; padding: 30px 0; }

    /*Article List Module*/
    .article-list-module .al_header span{font-size: 32px; line-height: 36px;}
    .article-list-module.list .swiper-wrapper{gap:10px;}
    .article-list-module.list .article{width: calc((100% - 10px) / 2);}
}

/*Mobile*/
@media (max-width:767px) {

    /*Search Page*/
    .article-header{height: initial; padding: 30px 0;}
    .article-header > div{flex-direction: column; gap:10px; align-items: center; justify-content: center;}
    .article-header .article-search-title h1{font-size:20px; line-height:26px;}
    .category-container, .search-form-container{width: 100%;}
    .category-container a{ padding: 10px 20px; }
    .article-search-results{justify-content: center;}

    /*Article Block*/
    .article { width: 300px; }
    .article .art-info{padding: 20px 10px;}
    .art-short-description{font-size: 14px;}
    .article .art-footer a{font-size: 14px;}

    /*Article Details*/
    .article-title { font-size: 32px; line-height: 40px; }
    .article-description:is(p, li) { font-size: 14px; line-height: 28px; }

    /*Sidebar*/
    .article-sidebar { width: 100%; padding: 30px 0; }
    .article-sidebar>header>h2 { text-align: center; }
    .article-sidebar .as-article { flex-direction: column; }
    .as-title { height: initial; display: flex; }

    /*Related Articles*/
    .article-footer { }
    .article-footer-title{font-size: 28px;}
    .article-footer .associated-articles { width: 290px; }

    /*Article List*/
    .article-list-module.list .swiper-wrapper{flex-direction: column; align-items: center;}
    .article-list-module.list .article{width: 300px;}
    .article-list-module.carousel .article-slider-container .article-slider{width: 300px;}
    .article-list-module .al_header span{font-size: 26px; line-height: 32px;}
    .art-pagination{gap:10px;}
    .art-pagination .art-bullet{height: 14px; width: 14px;}
    
}
