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

/*Article Search Form*/
.search_form_container { width: 460px; flex-shrink: 0; }
.article-search-form { display: flex; align-items: center; width: 100%; height: 50px; border: 0; overflow: hidden; border: none; position: relative; border-radius: 25px; overflow: hidden; }
.article-search-form input[type=text] { width: calc(100% - 60px); padding: 0 20px; box-sizing: border-box; background: none; height: 100%; border: 0; outline: 0; color: #fff; font-size: 14px; background: #F6F6F61A; }
.article-search-form input[type=text]::placeholder { color: #fff; font-size: inherit; font-family: inherit; opacity: 1; }
.article-search-form input[type=submit] { width: 60px; flex-shrink: 0; height: 100%; background: url(../images/articles/icon-search.svg) no-repeat center; cursor: pointer; border: 0; outline: 0; padding: 0; position: relative; background-color: #F6F6F61A; }

/*Article Category*/
.category_wrap { padding: 20px 0; background: #fff; }
.category_wrap>div { display: flex; align-items: center; flex-wrap: wrap; }
.category_wrap .category_container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; height: 100%; }
.category_wrap a { padding: 0 28px; height: 50px; background: var(--mainColour); color: #fff; font-size: 14px; transition: ease-in-out all .3s; text-transform: capitalize; border-radius: 30px; text-decoration: none; opacity: .5; display: flex; align-items: center; }
.category_wrap a.active, .category_wrap a:hover { opacity: 1; }

/*Article Search*/
.article-search-results { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 20px;}

/*Search Pager*/
.search-pager { margin: 20px 0; font-family: var(--secondaryFont); height: 60px; display: flex; align-items: center; background:#f5f5f5; }
.search-pager>div { width: 100%; display: flex; height: 100%; flex-direction: row; justify-content: center; align-items: center; position: relative; margin: 0; overflow: hidden; }
.search-pager>div>a { width: 35px; height: 35px; color: #1E2926; font-size: 16px; position: relative; display: flex; align-items: center; justify-content: center;  text-decoration: underline;}
.search-pager>div>a.pager-prev { position: absolute; left: 0; top: 0; width: 60px; height: 100%; background: var(--mainColour);}
.search-pager>div>a.pager-prev::after { content: ""; height: 14px; width: 14px; position: absolute; left: 26px; top: calc(50% - 7px); border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg); transition: ease-in-out all .3s; }
.search-pager>div>a.pager-next { position: absolute; right: 0; top: 0; width: 60px; height: 100%; background: var(--mainColour);}
.search-pager>div>a.pager-next::after { content: ""; height: 14px; width: 14px; position: absolute; right: 26px; top: calc(50% - 7px); border: solid #fff; border-width: 3px 3px 0 0; transform: rotate(45deg); transition: ease-in-out all .3s; }
.search-pager>div>a.active { text-decoration:none; }

/* Article Block */
.article { width: calc((100% - 40px) / 3); font-family: var(--secondaryFont);}
.article>div { display: flex; position: relative; flex-direction: column; border: 1px solid var(--border); padding: 20px; background: #fff;}
.article .art-image { width: 100%; aspect-ratio: 3/2; display: flex; align-items: flex-start; position: relative; overflow: hidden; border-radius:8px; }
.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-category{ display: flex; gap: 10px; flex-wrap: wrap; }
.article .art-category a { text-decoration: none; font-size: 12px; font-weight: 600; color: #fff; background:var(--secondaryColour); border-radius:4px; padding:10px 25px;
    line-height:26px; }
.article .art-info { padding: 20px 0 0 0; display: flex; flex-direction: column; justify-content: center; gap: 15px; color: var(--mainColour); position: relative; 
    background: var(--background); }
.article .art-info .art-meta {font-size: 14px; display: flex; align-items: center; height: 25px; gap: 15px; }
.article .art-author{display: flex; gap:7px; align-items: center;}
.article .art-author::before{content: ""; height: 23px; width: 23px; background: url(../images/articles/author.svg) center no-repeat #687885; border-radius: 4px;}
.article .art-date{display: flex; gap:7px; align-items: center;}
.article .art-date::before{content: ""; height: 23px; width: 23px; background: url(../images/articles/date.svg) center no-repeat #687885; border-radius: 4px;}
.article .art-title { line-height: 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 50px; 
    overflow: hidden; }
.article .art-title a { text-decoration: none; font-size: 19px; font-weight:600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    color: var(--mainColour)}
.article .art-summary {  font-size: 16px; line-height: 25px; overflow: hidden; height: 120px; font-family: var(--mainFont); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;}
.article .art-footer { display: flex; align-items: center; }
.article .art-footer a { font-size: 16px; font-weight: 600; color: var(--mainColour); display: flex; align-items: center; }
.article>div:hover .art-image>a { transform: scale(1.05); }

/* Article Details */
.article-image:not(:empty) { text-align: center; position: relative;}
.article-image img{max-width: 100%; height: auto; width: auto; border-radius: 8px;}
.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: 36px; line-height: 42px; font-weight: 600; font-family: var(--secondaryFont); color: var(--mainColour); margin-bottom: 0; padding: 0; }
.article-description { margin-bottom: 20px; font-size: 16px; line-height: 26px; color: #404042; min-height: 30px; }
.article-description * { font-size: 16px; color: #343434; line-height: 30px; }
.article-back, .article-back:hover { color: #343434; font-weight: 400; line-height: 28px; text-decoration: underline; }
.article-details { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
.article-left { flex: auto; display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.article-right { width: 450px; flex: 0 0 auto; position: relative; }
.article-sidebar-background { position: absolute; top: 0; left: 0; bottom: 0; z-index: -1; width: 10000px; background: #F9F9F9; }
.article-category { display: flex; gap: 5px; flex-wrap: wrap; border-right: 1px solid var(--border); padding-right: 10px; }
.article-category a { text-decoration: underline; font-weight: bold; color: #1E2926 !important; }
.article-info .article-meta { color: #1E2926; font-size: 14px; display: flex; align-items: center; font-weight: bold; gap: 10px; }

/*Article Sidebar*/
.article-sidebar { padding: 40px 20px; display: flex; flex-direction: column; gap: 10px; }
.article-sidebar-header { font-size: 24px; color: var(--mainColour); font-weight: 500; }
.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; border-radius: 4px; 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: #202020; 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: #1D1F20; line-height: 22px; position: relative; text-decoration: underline; }
.all-articles-link>a { padding: 18px 30px;}

/*Article Footer*/
.article-footer_container { width: 100%; padding: 100px 0; background: url(../images/articles/article-bg.svg) right bottom no-repeat; }
.article-footer>div { position: relative; display: flex; flex-direction: column; gap: 30px; }
.article-footer-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--mainColour); font-size: 36px; }
.article-footer-title a { background: #fff; color: var(--secondaryColour); padding: 0px 28px; border-radius: 30px; height: 60px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; border: 1px solid var(--secondaryColour); margin: 20px 0; width: auto; }
.article-footer header span { font-size: 24px; font-weight: 500; color: #fff; }
.article-footer .associated-articles_container { display: flex; position: relative; flex-direction: column; width: 100%; }
.article-footer .associated-articles { width: 100%;}

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

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


/* Article List Module*/
.article-list-module { position: relative; padding: 100px 0; background: url(../images/articles/article-bg.svg) right bottom no-repeat #fff;}
.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; flex-direction: column; justify-content: center; align-items: flex-start; gap: 15px; }
.article-list-module .al_header h1{font-size: 41px; line-height: 46px; padding: 0;}
.article-list-module .al_header p{line-height: 25px;}
.article-slider-container{position: relative;}

/*Article List View*/
.article-list-module.list { padding: 30px 0; background: #fff; }
.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-pagination { display: flex; align-items: center; justify-content: flex-start; gap: 15px; height: 40px; }
.art-pagination .art-bullet { height: 14px; width: 14px; border-radius: 100%; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: ease-in-out all .3s; background: #fff; border: 1px solid var(--mainColour);}
.art-pagination .art-bullet.active { height: 20px; width: 20px; background-color: var(--mainColour); }
.art-pagination.swiper-pagination-lock { display: none; }

.art-arrow{height: 66px; width:66px; position: absolute; top: calc(50% - 33px); transition: ease-in-out all .3s;
    background:var(--secondaryColour); border-radius:50%;}
.art-arrow::before{content:""; height:14px; width:14px; border:solid #fff; border-width: 0 0 3px 3px; transform:rotate(45deg); 
    position: absolute; right: 24px; top: 26px;}
.art-arrow-left{left: -100px;}
.art-arrow-right{right: -100px; transform: rotate(180deg);}
.art-nav-disabled{opacity: .6;}

.arts_nav_prev { height: 60px; width: 40px; position: absolute; left: -40px; top: calc(50% - 30px); z-index: 20; }
.arts_nav_prev::after { content: ""; height: 22px; width: 22px; border: solid #000; border-width: 0 0 5px 5px; transform: rotate(45deg); position: absolute; right: 4px; top: 20px; transition: ease-in-out all .3s; }
.arts_nav_next { height: 60px; width: 40px; position: absolute; right: -40px; top: calc(50% - 30px); z-index: 20; }
.arts_nav_next::after { content: ""; height: 22px; width: 22px; border: solid #000; border-width: 5px 5px 0 0; transform: rotate(45deg); position: absolute; left: 4px; top: 20px; transition: ease-in-out all .3s; }
.arts_nav_disabled::after { border-color: #959494; }

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


    /*Article Details*/
    .article-left { width: calc(100% - 350px); }
    .article-right{width: 350px;}
}

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

    /*Search Page*/
    .search_form_container { width: 280px; }
    .article-search-results{gap:10px;}

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

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

    /*Article List Module*/
    .article-list-module.list .swiper-wrapper{gap:10px;}

}

/*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-footer_container{padding: 40px 0;}

}

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

    /*Search Page*/
    .search_form_container { width: 270px; }
    .article-search-results{gap:15px;}

    /*Article Block*/
    .article {width: calc(50% - 8px);}
    .article>div{padding: 15px;}
    .article .art-summary{font-size: 15px;}

    /*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 h1{font-size: 35px; line-height: 42px;}
    .article-list-module.list .article{width: calc((100% - 30px) / 2);}
    .article-list-module.list .swiper-wrapper{gap:15px;}

}

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

    /*Search Page*/
    .article-header{min-height: 160px;}
    .article-header>div { flex-direction: column; gap: 20px; align-items: flex-start;}
    .article-header .article-search_title h1 { font-size: 30px; }
    .search_form_container { width: 100%; }
    .article-search-results { flex-direction: column; align-items: center; justify-content: flex-start; }
    .category_wrap .category_container { gap: 8px; }
    .category_wrap a { font-size: 12px; padding: 0 15px;}

    /*Articles Pager*/
    .search-pager>div>a{width: 20px;}

    /*Article Block*/
    .article { width: 300px; }
    .article>div{padding: 20px 15px;}
    .article .art-info .art-meta {font-size: 12px;}
    .article .art-date, .article .art-author {gap:4px;}
    .article .art-category a{padding: 8px 15px;}
    .article .art-title a{font-size: 18px;}
    .article .art-summary{font-size: 15px;}

    /*Article Details*/
    .article-left, .article-right { width: 100%; flex: 0 0 auto; }
    .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 .associated-articles { width: 290px; }
    .article-footer-title{font-size: 30px; line-height: 36px;}

    /*Article List*/
    .article-list-module .al_header{align-items: center; gap:10px;}
    .article-list-module .al_header h1{font-size: 24px; line-height: 30px; text-align: center;}
    .article-list-module .al_header p{text-align: center;}
    .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;}
    .art-pagination{justify-content: center;}
}
