/*Article Search Page*/
.article_search{padding: 0 10px;}
.a_search_header { background: var(--mainColour); height: 100px; }
.a_search_header>div { height: 100%; flex-direction: column; justify-content: center; box-sizing: border-box; }
.a_search_header .a_search_container { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 10px;}
.a_search_header .a_search_container h1 { font-size: 32px; font-family: var(--secondaryFont); line-height: 36px; color:#fff; padding: 0; font-weight: 500;}
.a_search_title { display: flex; flex-direction: column; text-transform: capitalize; gap: 10px; }

/*Article Search Box*/
.article_searchbox { background: #F6F6F61A; display: flex; border-radius: 24px; align-items: center; height: 48px; width: 280px;}
.article_searchbox input { color: #D8D8D8; 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: #D8D8D8; }
.article_searchbox a { display: block; height: 100%; width: 55px; background: url(../images/icon-search-white.svg) center no-repeat;}

/*Article Categories Bar*/
.a_search_categories { padding: 35px 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: var(--mainColour); font-family: var(--secondaryFont); background: #E3E3E3; padding: 15px 28px; 
    line-height: 24px; text-transform: capitalize; border-radius: 27px; transition: ease-in-out all .3s;}
.a_search_categories>div>div a.active, .a_search_categories>div>div a:hover { background: var(--mainColour); color: #fff;}

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

/*Articles Pager */
.art_search_pager { margin:40px 0; display: flex; align-items: center; justify-content: center; background: #dcdcdc; padding: 0; 
    height: 60px; gap: 15px; line-height: 24px; font-size: 14px;}
a.art_pager_link { color: var(--mainColour); font-size: 21px; font-weight: 600;}
a.art_pager_current_page {font-weight: bold;}
.art_pager_next_button.hidden, .art_pager_prev_button.hidden { display: block;}
.art_pager_next_button.hidden::before, .art_pager_prev_button.hidden::before { border-color:#B7B7B7; }
a.art_pager_next_button { margin-left: auto; width: 60px; height: 100%; background: var(--mainColour); position: relative;}
a.art_pager_next_button::before{content: ""; height: 12px; width: 12px; border: solid #fff; border-width: 3px 3px 0 0; transform: rotate(45deg) translateY(-50%);
    position: absolute; right: 29px; top: 50%;}
a.art_pager_prev_button { margin-right: auto; width: 60px; height: 100%; background: var(--mainColour); position: relative;}
a.art_pager_prev_button::before{content: ""; height: 12px; width: 12px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg) translateY(-50%);
    position: absolute; right: 27px; top: 50%;}

/*Article Block*/
.a_list {width: calc((100% - 20px) / 2); display: flex !important; flex-direction: column;}
.a_list .a_list_image { height: 340px; width: 100%; position: relative; background-size: cover; background-position: center; 
    background-repeat: no-repeat; cursor: pointer;}
.a_list_details {display: flex; flex-direction: column; align-items: flex-start; gap:15px; padding: 20px; box-sizing: border-box; border: 1px solid #E5E5E5; background: #fff;}
.a_list_meta{display: flex; flex-wrap: wrap; gap:10px; font-size: 14px; line-height: 18px; font-family: var(--secondaryFont);}
.a_list_meta a{text-decoration: underline; }
.a_list_category:not(.hidden){display: flex; flex-wrap: wrap; align-items: flex-start; gap:10px;}
.a_list_date{color: #48525B; padding-left: 10px; border-left: 1px solid #C4C4C4; font-weight: bold;}
.a_list_details .a_list_title { height: 25px; line-height: 24px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; font-size: 18px; text-align: left; font-family: var(--secondaryFont); text-transform:uppercase; color: var(--mainColour); font-weight: bold; }
.a_list_content{height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.a_list_content *{padding: 0; font-size: 14px; line-height: 20px; color: #48525B;}
.a_list_link{padding: 0 30px;}

/*Article Details*/
.article_main{display: flex; gap: 20px; align-items: flex-start; margin-top: 10px; margin-bottom: 40px; 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: 30px; align-items: flex-start;}
.a_date {color: #1E2926; font-size: 14px; flex-shrink: 0; padding-left: 10px; margin-left: 10px; 
    border-left: 1px solid #D8D8D8;}
.a_categories:not(.hidden){display: flex; flex-wrap: wrap; gap: 10px; }
.a_categories a{color: #1E2926; font-size: 14px; text-decoration: underline;}

.a_title { color: #1E2926; font-weight: 700; font-family: var(--secondaryFont); padding: 0; margin-bottom: 30px; font-size: 36px; line-height: 38px;}

.a_details {padding-bottom:20px; margin-bottom: 30px; border-bottom: 1px solid #CECECE; }
.a_details img{max-width: 100%; height: auto !important;}
.art_back_link { font-size: 16px; color: var(--mainColour); text-transform: uppercase; font-weight: bold; text-decoration: underline; }

/*Newest articles*/
.newest_articles_wrap { width: calc(30% - 10px); box-sizing: border-box; background: #F9F9F9; padding: 30px 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: 22px; font-weight: bold; color: #1E2926; 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:10px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #E2E2E2; width: 100%;}
.na_list img{max-width: 100px; max-height: 100px; flex-shrink: 0;}
.na_list > div{flex-direction: column; display: flex; gap:10px;}
.na_list h6{font-size: 14px; font-weight: bold; padding: 0; line-height: 22px; color: #202020;}
.na_list span{color: var(--mainColour); font-size: 14px; text-decoration: underline;}
.all_arts{padding: 0 35px;}

/*Related articles*/
.associated_articles_wrap:not(.hidden){ margin-top: 50px; background: linear-gradient(116deg, rgba(239,239,239,1) 0%, rgba(226,223,223,1) 100%); padding: 50px 0; 
    position: relative;}
.associated_articles_wrap::before{content: ""; height: 263px; width: 263px; background: url(../images/watermark.svg) center no-repeat; 
    position: absolute; right: 50px; bottom:100px;}
.associated_articles_wrap > div{display: flex; flex-direction: column; gap:40px; padding: 0 10px;}
.associated_articles_heading{display: flex; align-items: center; justify-content: space-between;}
.associated_articles_heading h2{font-size: 34px; font-weight: bold; color:var(--mainColour); text-transform: uppercase; width: 100%; padding: 0;}
.associated_articles_container{position: relative;}
.aa_next, .aa_prev{height: 60px; width: 40px; background:var(--mainColour); position:absolute; top: 50%; transform: translateY(-50%); 
    transition: ease-in-out all .3s; z-index: 2;}
.aa_prev{left: -50px;}
.aa_prev::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid #fff; top: 50%; left: 11px; border-width: 0 0 3px 3px; position: absolute;}
.aa_next{right: -50px;}
.aa_next::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid #fff; top: 50%; left: 5px; 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; height: 30px; gap:10px; margin-top: 30px;}
.aa_pagination span{all: initial; background: #dbd8d8; opacity: 1; height: 12px; width: 12px; border-radius: 100%; 
    margin: 0 !important; padding: 0; transition: ease-in-out all .3s;}
.aa_pagination span.active{background: var(--mainColour); height: 20px; width: 20px;}


/*Article List module*/
.article_list_module { padding: 80px 0; position: relative; background: linear-gradient(116deg, rgba(239,239,239,1) 0%, rgba(226,223,223,1) 100%);}
.article_list_module::before{content: ""; right: 50px; bottom:100px; background: url(../images/watermark.svg);
    position: absolute;height: 263px; width:263px; z-index: 5;}
.article_list_module > div{display: flex; flex-direction: column; z-index: 10; position: relative; align-items: flex-start; flex-wrap: wrap; gap: 30px;}
.alm_heading{display: flex; justify-content: space-between; align-items: flex-start;
    gap:20px; width: 100%;}
.alm_heading > div{display: flex; flex-direction: column; gap:10px; width: 100%;}
.alm_heading > a{padding: 0 30px; flex-shrink: 0;}
.alm_heading h2{font-size: 34px; padding: 0; font-weight: bold; color:var(--mainColour); text-transform: capitalize;}
.alm_heading > p{}

.alm_gal_wrap{width: 100%; position: relative;}
.alm_next, .alm_prev{height: 60px; width: 40px; background:var(--mainColour); position:absolute; top: 50%; transform: translateY(-50%); 
    transition: ease-in-out all .3s; z-index: 2;}
.alm_prev{left: -50px;}
.alm_prev::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid #fff; top: 50%; left: 12px; border-width: 0 0 3px 3px; position: absolute;}
.alm_next{right: -50px;}
.alm_next::before{content: ""; height: 12px; width: 12px; transform: rotate(45deg) translateY(-50%); 
    border: solid #fff; top: 50%; left: 6px; border-width: 3px 3px 0 0; position: absolute;}
.alm_nav_disabled::before{opacity: .5;}
.alm_pagination{display: flex; align-items: center; justify-content: center; height: 30px; gap:10px; margin-top: 30px;}
.alm_pagination span{all: initial; background: #dadada; opacity: 1; height: 12px; width: 12px; border-radius: 100%; 
    margin: 0 !important; padding: 0;transition: ease-in-out all .3s;}
.alm_pagination span.active{background: var(--mainColour); height: 20px; width: 20px;}




/*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_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;}

    /*article list module*/
    .alm_heading h2{font-size: 31px;}
    .alm_heading p{font-size: 14px;}


}

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

    /*Search*/
    .a_search_categories{padding: 25px 0;}
    .a_search_header .a_search_container h1{font-size: 27px;}

    /*Article Block*/
    .a_list_details{padding: 20px 10px;}
    .a_list .a_list_image{height: 240px;}
    
}

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

    /*Search Page*/
    .a_search_header{height: initial; padding: 40px 0;}
    .a_search_header .a_search_container{flex-wrap: wrap; justify-content: center; gap: 20px;}
    .a_search_header .a_search_container h1{font-size: 20px; text-align: center;}
    .article_searchbox{width: 100%;}
    .a_search_categories{padding: 20px 0;}
    .a_search_categories>div>div>a{font-size:12px; 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_list_image{height: 200px;}
    .a_list_details{padding: 20px 10px;}
    .a_list_meta{font-size: 13px;}
    .a_list_details .a_list_title{height: initial; display: flex;}
    
    /*Details Page*/
    .a_categories a, .a_date{font-size: 14px;}
    .a_title{font-size: 28px; line-height: 34px;}
    .a_details{border: 0; margin: 0; padding: 0;}
    .newest_articles_wrap{display: flex; flex-direction: column;}
    .newest_articles{width: 100%;}
    .na_list{flex-direction: column;}
    .na_list > div{width: 100%;}

    /*Article Module*/
    .article_list_module{padding: 40px 0;}
    .article_list_module::before{content: none;}


}
