/* Articles Header */
.article-header { display: flex; align-items: center; background:var(--mainColour); padding: 15px 0; margin-bottom: 30px;}
.article-header>div { position: relative; display: flex; flex-direction: column; gap:10px; padding: 0 15px;}
.article-header .article-search-title { display: flex; align-items: center; }
.article-header .article-search-title h1 { font-size: 2rem; padding: 0; margin: 0; font-weight: bold; color:#fff; display: flex; align-items: center; gap:10px;}
.article-header .article-search-title h1::before{content: ""; height: 29px; width: 29px; background: url(../images/sun-pink.svg) center no-repeat; flex-shrink: 0;}

.article-search-category{display: flex; align-items: center; gap:20px;}
.article-search-category > div{flex: 1;}

.category-container{height: 50px; width: 100%;}
.category-container select{border-radius: 5px; height: 50px; width: 100%;}

/*Article Search Form*/
.search-form-container {width: 100%;}
.article-search-form { display: flex; align-items: center; width: 100%; height: 50px; position: relative; background: #ffffff; border-radius: 5px; overflow: hidden;}
.article-search-form input[type=text] { width: calc(100% - 50px); padding: 0 10px; color: var(--textColour); height: 100%; border:0; outline: 0; background: none; font-size:0.875rem; }
.article-search-form input[type=text]::placeholder {color: var(--textColour);}
.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;}

/* -- PAGER -- */
.search-pager { display: flex; align-items: center; width: 100%; height: 60px; justify-content: center; gap: 10px; position: relative; 
    background:#fff; margin: 30px 0; border-radius: 5px; overflow: hidden;}
.pager-link { display: flex; align-items: center; justify-content: center; width: 20px; height: 40px; }
.pager-link a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--textColour); font-size: 1rem; text-decoration: underline;}
.pager-link.hidden { display: none !important; }
.pager-current-page a { text-decoration: none; }
.pager-prev-button, .pager-next-button { color: #fff; height: 100%; width: 60px; background: var(--mainColour);}
.pager-prev-button{margin-right: auto;}
.pager-next-button {margin-left: auto; }
.pager-next-button a, .pager-prev-button a { color: #fff; text-transform: uppercase; font-size: 18px; font-weight: bold; display: flex; align-items: center; justify-content: center; text-decoration: none; gap: 5px; color:#fff;}
.pager-prev-button.disabled, .pager-next-button.disabled{pointer-events: none;}
.pager-next-button.disabled, .pager-prev-button.disabled{opacity: .5;}
.pager-next-button a:after, .pager-prev-button a:before { content: ''; width: 12px; height: 12px; border: solid #fff; border-width: 2px 2px 0 0; 
    transform: rotate(45deg);}
.pager-prev-button a:before { transform: rotate(225deg); }

/* Article Block */
.article-block { width: calc((100% - 40px) / 3); background: #fff; height: auto !important;}
.article-block > a { display: flex; position: relative; flex-direction: column; height:100%; box-shadow: 0px 0px 6px #00000029; overflow: hidden; border-radius: 5px 5px 0 0; 
    color: var(--textColour); text-decoration: none;}
.article-block .art-image { width: 100%; aspect-ratio: 3/2; display: flex; align-items: flex-start; position: relative; overflow: hidden; background-position: center; background-color: #ededed; background-size: cover; background-repeat: no-repeat; }
.article-block .art-info { padding: 20px 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 15px; position: relative; 
    flex-grow:1;}
.article-block .art-title { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: flex-start; width: 100%; text-decoration: none; 
    font-size: 1.5rem; font-weight: bold; }
.article-block .art-link{color: #fff; background: var(--mainColour); padding: 15px; border-radius: 5px; font-size:1.125rem; margin-top:auto; font-weight: bold;}

/* 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-title { font-size: 2.375rem; color: var(--textColour); font-weight: bold; margin-bottom: 0; padding: 0; }
.article-info { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; position: relative; padding-bottom: 20px; }
.article-info::after{content: ""; border-radius: 5px; width: 40px; height: 4px; background: var(--secondaryColour); position: absolute; left: 0; bottom: 0;}
.article-info .article-meta { color: var(--textColour); font-size: 0.875rem; display: flex; align-items: center; gap: 15px;}
.article-description { margin-bottom: 20px; font-size: 16px; line-height: 26px; color: var(--textColour); min-height: 30px; }
.article-description * {}

.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-category { display: flex; gap: 10px; flex-wrap: wrap;}
.article-category a { text-decoration: underline; text-transform:capitalize; }
.article-date{font-weight: bold; display: flex; align-items: center; gap:5px;}
.article-date::before{content: ""; height: 13px; width: 13px; background: url(../images/calendar.svg) center no-repeat; flex-shrink: 0;}

.article-back{text-decoration: underline;}
.article-footer-links{display: flex; gap:10px; align-items: center;}

/*Article Sidebar*/
.article-sidebar { padding: 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; border:1px solid #DFDEDF; border-radius:10px;  }
.article-sidebar-header { font-size: 1.5rem; color: var(--headingsColour); }
.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: 0.938rem; color: var(--textColour); font-weight: bold; transition: ease-in-out all .3s; overflow: hidden; text-decoration: none; }
.as-footer { display: flex; align-items: center; }
.as-read { font-size: 0.938rem; color: var(--headingsColour); position: relative; text-decoration: underline; }

.all-articles-link{display: flex; align-items: center; justify-content: flex-end;}

/*Article Footer*/
.article-footer_container { width: 100%; padding: 50px 0;}
.article-footer>div { position: relative; display: flex; flex-direction: column; gap: 20px; }
.article-footer-title{ font-size: 2.375rem; display: flex; justify-content: center; align-items: center; gap:10px; text-align: center;
    flex-direction: column; gap:10px; font-weight: bold;}
.article-footer-title::after{content: ""; height: 4px; width: 40px; background: var(--secondaryColour); border-radius: 5px;}
.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(--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: 10px; top: 23px; transition: ease-in-out all .3s;}
.associated-arrow-left{left: -50px;}
.associated-arrow-right{right: -50px; transform: rotate(180deg);}
.associated-nav-disabled{opacity: .5;}

.associated-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; height: 20px; }
.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: #e1e1e1;}
.associated-pagination .associated-bullet.active { background-color: var(--mainColour); }
.associated-pagination.swiper-pagination-lock { display: none; }

/* Article List Module*/
.article-list-module { position: relative; padding: 40px 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;}
.article-list-module .al_header span{font-size: 38px; display: flex; line-height: 44px; }
.article-list-module .al_header p{}
.article-slider-container{position: relative;}
.article-slider-container .article-slider.swiper{padding-bottom: 5px;}
.article-list-module .article{height: auto;}

/*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: 60px; width:40px; position: absolute; top: calc(50% - 30px); 
    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: 10px; top: 23px; transition: ease-in-out all .3s;}
.art-arrow-left{left: -50px;}
.art-arrow-right{right: -50px; transform: rotate(180deg);}
.art-nav-disabled{opacity: .5;}

.art-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; height: 20px; }
.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 { background-color: var(--mainColour); }
.art-pagination.swiper-pagination-lock { display: none; }

/************Responsive states**************/


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

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

    /*Article block*/
    .article-block{width: calc((100% - 20px) / 3);}
    .article-block .art-info{padding: 20px 10px;}
    .article-block .art-title{font-size: 1.25rem;}
    .article-block .art-link{font-size: 1rem;}

    /*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.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 {display: flex; align-items: center; justify-content: center;}
 
}

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

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

    /*Article Block*/
    .article-block{width: calc((100% - 10px) / 2);}
    .article-block .art-title{font-size: 1.25rem;}
    .article-block .art-link{font-size: 1rem;}

    /*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-search-results{justify-content: center;}
    .article-search-category{flex-direction: column; gap:10px;}

    /*Article Block*/
    .article-block { width: 300px; }
    .article-block .art-info{padding: 20px 10px;}
    .article-block .art-title{font-size: 1.25rem;}
    .article-block .art-link{font-size: 1rem; padding: 10px 15px;}

    /*Article Details*/
    .article-title { font-size: 2rem; }
    .article-description:is(p, li) { font-size: 0.875rem; }

    .associated-arrow{height: 40px; width: 20px;}
    .associated-arrow-left{left: -10px;}
    .associated-arrow-right{right: -10px;}
    .associated-arrow::before{height: 10px; width: 10px; border-width: 0 0 2px 2px; right: 4px; top: 15px;}

    /*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: 2.125rem;}
    .article-footer .associated-articles { width: 290px; }

    /*Article List*/
    .article-list-module{padding: 30px 0;}
    .article-list-module.list .swiper-wrapper{flex-direction: column; align-items: center;}
    .article-list-module.list .article{width: 290px;}
    .article-list-module>div>div {width: 290px;}
    .article-list-module.carousel .article-slider-container .article-slider{width: 290px;}
    .article-list-module .al_header span{font-size: 2rem;}

    .art-arrow{height: 40px; width: 20px;}
    .art-arrow-left{left: -10px;}
    .art-arrow-right{right: -10px;}
    .art-arrow::before{height: 10px; width: 10px; border-width: 0 0 2px 2px; right: 4px; top: 15px;}
    
}
