/*Article Search Page*/
.a_search_header { background: #E8EAEF; height: 100px; }
.a_search_header>div { height: 100%; flex-direction: column; justify-content: center; padding: 0 10px; box-sizing: border-box; }
.a_search_header .a_search_container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.a_search_header .a_search_container :is(h1,span) { font-size: 28px; color: var(--textDarkColour); line-height: 36px; padding: 0; font-weight: bold;}
.a_search_title { display: flex; flex-direction: column; text-transform: capitalize; gap: 10px; }

/*Article Search Box*/
.article_searchbox { background: #fff; display: flex; border-radius: 24px; align-items: center; height: 48px; width: 280px;}
.article_searchbox input { color: var(--textColour); font-size: 14px; background: none; font-family: inherit; padding: 0 10px; box-sizing: border-box; 
    border: 0; outline: none; height: 100%; width:calc(100% - 55px); text-indent: 10px;}
.article_searchbox input::placeholder { color: inherit; }
.article_searchbox a { display: block; height: 100%; width: 55px; background: url(../images/search_articles.svg) center no-repeat;}

/*Article Categories Bar*/
.a_search_categories { padding: 30px 0;}
.a_search_categories>div>div { margin: 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.a_search_categories>div>div a { font-size: 14px; color: #fff; font-weight: bold; background: var(--tertiaryColour); padding: 15px 28px; opacity: .5;
    line-height: 24px; text-transform: uppercase; border-radius: 27px; transition: ease-in-out all .3s;}
.a_search_categories>div>div a.active, .a_search_categories>div>div a:hover { opacity: 1;}

.articles_container .articles_group { display: flex; align-items: flex-start; flex-wrap: wrap; margin: 20px 0; }

/*Articles Pager */
.art_search_pager { margin:20px 10px 40px 10px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 0 20px; 
    height: 95px; gap: 15px;}
a.art_pager_link { color: var(--textDarkColour); font-size: 18px; text-decoration: underline;}
a.art_pager_current_page { text-decoration: none; }
.art_pager_next_button.hidden, .art_pager_prev_button.hidden { display: block;}
a.art_pager_next_button { margin-left: auto; width: 48px; height: 48px; border-radius: 100%; background: var(--mainColour); position: relative;}
a.art_pager_next_button::before{content: ""; height: 8px; width: 8px; border: solid #fff; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-50%);
    position: absolute; right: 25px; top: 50%;}
a.art_pager_prev_button { margin-right: auto; width: 48px; height: 48px; border-radius: 100%; background: #F9F9F9; position: relative;}
a.art_pager_prev_button::before{content: ""; height: 8px; width: 8px; border: solid var(--textDarkColour); border-width: 0 0 2px 2px; transform: rotate(45deg) translateY(-50%); position: absolute; right: 22px; top: 50%;}

/*Article Block*/
.a_list {width: 33.33333333%;}
.a_list .a_box{margin: 0 10px 40px 10px;}
.a_list .a_list_image { height: 250px; width: 100%; position: relative; background-size: cover; 
    background-position: center; background-repeat: no-repeat; cursor: pointer;}
.a_list .a_list_details {display: flex; flex-direction: column; gap:21px; padding: 20px; box-sizing: border-box; background: #fff;}
.a_list .a_list_details .a_list_title { height: 24px; line-height: 24px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; font-size: 24px; text-align: left; text-transform:capitalize; color: var(--textDarkColour); font-weight: bold; }
.a_list_content{height: 75px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.a_list_content p{padding: 0; font-size: 14px; line-height: 26px; color: #1E2926;}
.a_list_link{color: var(--textColour); font-size: 16px; text-decoration: underline;}

.a_list_meta{height:20px; display:flex; gap: 20px;}
.a_list_category:not(.hidden) {display: flex; gap:10px;}
.a_list_category a{text-decoration: underline;}
.a_list_date{}

/*Article Details*/
.article_main{display: flex; gap: 20px; align-items: flex-start; margin-top: 10px; padding: 0 10px;}
.art_details_left { width: calc(70% - 10px); }

.a_image { position: relative; margin-bottom: 40px; text-align: center; }
.a_image img { max-width: 100%; }
.a_meta{display: flex; margin-bottom: 20px; gap:20px; align-items: flex-start;}
.a_date { font-size: 14px; flex-shrink: 0;}
.a_categories:not(.hidden){display: flex; flex-wrap: wrap; gap: 10px; }
.a_categories a{ font-size: 14px; text-decoration: underline;}

.a_title {  font-weight:bold; padding: 0; margin-bottom: 30px; font-size: 40px; line-height: 46px;}

.a_details {padding-bottom:40px; margin-bottom: 60px; border-bottom: 1px solid #CECECE; }
.art_back_link { font-size: 16px; text-decoration: underline; }

/*Newest articles*/
.newest_articles_wrap { width: calc(30% - 10px); box-sizing: border-box; background: #F9F9F9; padding: 40px 20px; position: relative;}
.newest_articles_wrap::after{content: ""; height: 100%; width: calc((100vw - 1180px) / 2); position: absolute; left: 100%; top: 0; background: #F9F9F9;}
.newest_articles_wrap > h4{font-size: 24px; font-weight: bold; margin-bottom: 25px; padding: 0;}
.newest_articles{display: flex; flex-direction: column; align-items: flex-start;}
.na_list{display: flex; align-items: flex-start; gap:15px; padding-bottom: 30px; margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1; width: 100%;}
.na_list img{max-width: 90px; max-height: 90px; flex-shrink: 0;}
.na_list > div{flex-direction: column; display: flex; gap:10px;}
.na_list h6{font-size: 20px; font-weight: 500; padding: 0; line-height: 22px; color: var(--textColour);}
.na_list span{color: #1E2926; font-size: 14px; text-decoration: underline;}

/*Related articles*/
.associated_articles_wrap:not(.hidden){ margin-top: 80px; background: url(../images/articles_bg.svg) right top no-repeat #fff; padding: 60px 0;}
.associated_articles_wrap > div{display: flex; flex-direction: column; align-items: center; gap:40px; padding: 0 10px;}
.associated_articles_heading{display: flex; align-items: center; justify-content: space-between;}
.associated_articles_heading h2{font-size: 32px; font-weight: bold; text-align: center; width: 100%; padding: 0;}
.associated_articles_container{position: relative; width: 100%;}
.aa_next, .aa_prev{height: 74px; width: 74px; background:#fff; position:absolute; top: 50%; transform: translateY(-50%); 
    transition: ease-in-out all .3s; z-index: 2; border-radius: 100%;}
.aa_prev{left: -90px;}
.aa_prev::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid var(--textDarkColour); top: 50%; left: 28px; border-width: 0 0 3px 3px; position: absolute;}
.aa_next{right: -90px;}
.aa_next::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid var(--textDarkColour); top: 50%; left: 22px; border-width: 3px 3px 0 0; position: absolute;}
.associated_articles_container > a.aa_nav_disabled::before{opacity: .5;}

.aa_pagination{display: flex; align-items: center; justify-content: center; transform: none !important; margin: 40px auto 0 auto; }
.aa_pagination span{background: #BFBFBF; opacity: 1; height: 15px; width: 15px; transform: none; flex-shrink: 0;}
.aa_pagination span.active{background: var(--secondaryColour); transform:scale(1) !important;}
.aa_pagination :is(span.active-next-next, span.active-prev-prev){transform:scale(.33) !important;}
.aa_pagination :is(span.active-next, span.active-prev){transform:scale(.5) !important;}

.associated_articles_container .a_list .a_box{margin: 0;}
.associated_articles_container .a_list_details{background: #E8EAEF;}


/*Article List module*/
.article_list_module { padding: 60px 0; background: url(../images/articles_bg.svg) right top no-repeat #fff;}
.article_list_module > div{display: flex; flex-direction: column; align-items: center; flex-wrap: wrap; gap: 40px; padding: 0 10px;}
.alm_heading{display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; 
    gap:20px; width: 100%;}
.alm_heading > div{display: flex; flex-direction: column; gap:10px; width: 100%;}
.alm_heading h2{font-size: 36px; font-weight: bold; text-align: center; width: 100%; padding: 0;}

.alm_gal_wrap{width: 100%; position: relative;}
.alm_next, .alm_prev{height: 74px; width: 74px; background:#fff; position:absolute; top: 50%; transform: translateY(-50%); 
    transition: ease-in-out all .3s; z-index: 2; border-radius: 100%;}
.alm_prev{left: -90px;}
.alm_prev::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid var(--textDarkColour); top: 50%; left: 28px; border-width: 0 0 3px 3px; position: absolute;}
.alm_next{right: -90px;}
.alm_next::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid var(--textDarkColour); top: 50%; left: 22px; border-width: 3px 3px 0 0; position: absolute;}
.alm_nav_disabled::before{opacity: .5;}

.alm_pagination{display: flex; align-items: center; justify-content: center; transform: none !important; margin: 40px auto 0 auto; }
.alm_pagination span{background: #BFBFBF; opacity: 1; height: 15px; width: 15px; transform: none; flex-shrink: 0;}
.alm_pagination span.active{background: var(--secondaryColour); transform:scale(1) !important;}
.alm_pagination :is(span.active-next-next, span.active-prev-prev){transform:scale(.33) !important;}
.alm_pagination :is(span.active-next, span.active-prev){transform:scale(.5) !important;}

.article_list_module .a_list .a_box{margin: 0;}
.article_list_module .a_list .a_list_details{background: #E8EAEF;}




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

    /*Details page*/
    .newest_articles_wrap::after{width: calc((100vw - 940px) / 2);}
    .art_details_left{width: calc(65% - 10px);}
    .newest_articles_wrap{width: calc(35% - 10px);}

    .aa_next, .aa_prev{display: none;}
    .alm_next, .alm_prev{display: none;}

}

/*Tablet + Mobile*/
@media (max-width:959px) {

    /*Article Block*/
    .a_list .a_list_details{background: #E8EAEF; padding: 20px 10px;}
    .a_list .a_list_details .a_list_title{font-size: 20px;}
    .a_list_content p{font-size: 13px;}
    .a_list_category a, .a_list .a_list_date{font-size: 13px;}
    .a_list_link{font-size: 14px;}


    .article_main{flex-wrap: wrap;}
    .art_details_left{width: 100%; margin-bottom: 30px;}
    .newest_articles_wrap{width: 100%;}
    .associated_articles_heading h2{font-size: 30px;}

    .newest_articles_wrap > h2{text-align: center;}

    .associated_articles_wrap:not(.hidden){margin-top: 40px;}

    .aa_next, .aa_prev{display: none;}
    .alm_next, .alm_prev{display: none;}

    /*article list module*/
    .alm_heading span{font-size: 16px;}
    .alm_heading h2{font-size: 24px;}


}

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

    /*Search*/

    /*Article Block*/
    .a_list{width: 50%;}
    .a_list .a_box{margin: 0 5px 40px 5px;}
    
}

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

    /*Search Page*/
    .a_search_header{height: initial; padding: 20px 0;}
    .a_search_header .a_search_container{flex-wrap: wrap; justify-content: center; gap: 20px;}
    .a_search_header .a_search_container h1{font-size: 24px; line-height: 30px; text-align: center;}
    .article_searchbox{width: 100%;}
    .a_search_categories{padding: 20px 0;}
    .a_search_categories>div>div{gap:6px;}
    .a_search_categories>div>div>a{font-size:13px; padding: 18px; line-height: 14px;}

    .articles_container { width: 100%; }
    a.art_pager_link{font-size: 16px;}

    /*Article block*/
    .a_list{width: 100%;}
    .a_list .a_box{margin-bottom: 20px;}

    /*Details Page*/
    .a_categories a, .a_date{font-size: 14px;}
    .a_title{font-size: 28px; line-height: 34px;}

    .newest_articles_wrap{display: flex; flex-direction: column; align-items: center;}
    .newest_articles{width: 100%;}


}
