/* Articles Header */
.article-header { height: 100px; display: flex; align-items: center; background: var(--mainColour); }
.article-header>div { position: relative; display: flex; align-items: center;}
.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; font-weight: 500; text-transform: capitalize; color: #fff; }

.category-wrap{padding: 30px 0;}
.category-wrap > div{padding: 0 10px; display: flex; align-items: center; gap:20px;}
.category-wrap > div > div{width: calc(50% - 10px);}

/*Article Search Form*/
.search-form-container {}
.article-search-form { display: flex; align-items: center; width: 100%; height: 50px; position: relative; border: 1px solid var(--border); background: #fff;}
.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 {}
.article-search-form input[type=submit] { width: 50px; flex-shrink: 0; height: 100%; background: url(../images/search.svg) no-repeat center; cursor: pointer; border: 0; outline: 0; padding: 0; position: relative; }

/*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; font-weight:bold; }

/* Article Block */
.article { width: calc((100% - 40px) / 3); font-family: var(--secondaryFont);}
.article>div { display: flex; position: relative; flex-direction: column; background: #fff;}
.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: 20px; display: flex; flex-direction: column; justify-content: center; gap: 15px; color: var(--mainColour); position: relative; 
    background: var(--tertiaryColour); }
.article .art-title { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; height: 90px; 
    overflow: hidden;  text-align: center;}
.article .art-title a { text-decoration: none; font-size: 24px; font-weight:bold; line-height: 30px; display: -webkit-box; -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; color: var(--mainColour)}
.article .art-footer { display: flex; align-items: center; justify-content: center;}
.article .art-footer a { }
.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; }
.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 * {}
.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-info .article-meta { color: #1E2926; 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(--mainColour); }

/*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: #fff; }
.article-sidebar-header { font-size: 24px; color: var(--headingsColour); 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(--headingsColour); 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(--headingsColour); line-height: 22px; position: relative; text-decoration: underline; }

/*Article Footer*/
.article-footer_container { width: 100%; padding: 100px 0; background:#fff; }
.article-footer>div { position: relative; display: flex; flex-direction: column; gap: 40px; }
.article-footer-title{ font-size: 42px; color: var(--headingsColour); display: flex; align-items: center; font-weight: bold; gap:10px; 
    line-height: 48px; padding: 0; flex-direction: column; }
.article-footer-title::after{content:""; height: 3px; width: 30px; background: var(--secondaryColour);}
.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{height: 60px; width:40px; position: absolute; top: calc(50% - 30px); transition: ease-in-out all .3s;
    background:var(--tertiaryColour);}
.associated-arrow::before{content:""; height:14px; width:14px; border:solid var(--mainColour); border-width: 0 0 3px 3px; transform:rotate(45deg); 
    position: absolute; right: 11px; top: 23px;}
.associated-arrow-left{left: -70px;}
.associated-arrow-right{right: -70px; transform: rotate(180deg);}
.associated-nav-disabled{opacity: .6;}

.associated-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; }
.associated-pagination .associated-bullet { height: 16px; width: 16px; border-radius: 100%; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: ease-in-out all .3s; background: var(--mainColour);}
.associated-pagination .associated-bullet.active { background-color: var(--secondaryColour); }
.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; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 15px; }
.article-list-module .al_header h1{font-size: 42px; display: flex; align-items: center; font-weight: bold; gap:10px; line-height: 48px; padding: 0; flex-direction: column;}
.article-list-module .al_header h1::after{content:""; height: 3px; width: 30px; background: var(--secondaryColour); }
.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-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; }
.art-pagination .art-bullet { height: 16px; width: 16px; border-radius: 100%; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: ease-in-out all .3s; background: var(--mainColour);}
.art-pagination .art-bullet.active { background-color: var(--secondaryColour); }
.art-pagination.swiper-pagination-lock { display: none; }

.art-arrow{height: 60px; width:40px; position: absolute; top: calc(50% - 30px); transition: ease-in-out all .3s;
    background:var(--tertiaryColour);}
.art-arrow::before{content:""; height:14px; width:14px; border:solid var(--mainColour); border-width: 0 0 3px 3px; transform:rotate(45deg); 
    position: absolute; right: 11px; top: 23px;}
.art-arrow-left{left: -50px;}
.art-arrow-right{right: -50px; transform: rotate(180deg);}
.art-nav-disabled{opacity: .6;}

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

}

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

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

    /*Article block*/
    .article{width: calc((100% - 20px) / 3);}
    .article .art-title a {font-size: 22px;}

    /*Details Page*/
    .article-left { width: calc(100% - 350px); }
    .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;}

}

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

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

    /*Article Block*/
    .article{width: calc((100% - 20px) / 3);}
    .article .art-info{padding: 15px 10px;}
    .article .art-title {height: 72px;}
    .article .art-title a{font-size: 18px; line-height: 24px;}
    .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 h1{font-size: 32px; line-height: 36px;}
    .article-list-module.list .swiper-wrapper{gap:10px;}
    .article-list-module.list .article{width: calc((100% - 20px) / 3);}

}

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

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

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

    /*Article Block*/
    .article { width: 300px; }
    .article .art-info{padding: 15px 10px;}
    .article .art-title {height: 72px;}
    .article .art-title a{font-size: 18px; line-height: 24px;}
    .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 .al_header{align-items: center; gap:10px;}
    .article-list-module .al_header h1{font-size: 28px; line-height: 32px;}
    .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;}
    
}
