/*CSS Document*/

/*Article Details*/

.article_details{margin-bottom: 40px;}
.article_main{display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 0 10px;}
.art_details_left { width: calc(75% - 10px); }

.a_details_header { display: flex; align-items: center; padding: 0 10px; box-sizing: border-box; margin: 20px 0; width: 100%; }
.a_title { font-weight: 900; color: #202020; padding: 0; margin-bottom: 15px;}
.a_date { margin: 0; color: #8A6362; font-size: 16px; margin-bottom: 20px; font-weight: bold; }
.a_image { position: relative; margin-bottom: 20px; text-align: center; }
.a_image img { max-width: 100%; }
.a_details {margin: 0 0 80px 0; }
.art_back_link { font-size: 16px; color: #121212; text-decoration: underline; }

/*Newest articles*/
.newest_articles_wrap { width: calc(25% - 10px); box-sizing: border-box; background: #F3E8E8; border-radius: 12px 0 0 12px; padding: 20px; position: relative;}
.newest_articles_wrap::after{content: ""; height: 100%; width: calc((100vw - 1180px) / 2); position: absolute; left: 100%; top: 0; background: #F3E8E8;}
.newest_articles_wrap > h2{font-size: 24px; font-weight: 800; margin-bottom: 30px; padding: 0;}
.newest_articles{display: flex; flex-direction: column; gap:40px; align-items: flex-start;}
.na_list{display: flex; align-items: flex-start; gap:15px;}
.na_list img{max-width: 60px; max-height: 60px; flex-shrink: 0;}
.na_list > div{flex-direction: column; display: flex; gap:8px;}
.na_list h6{font-size: 14px; line-height: 22px; color: #202020;}
.na_list span{color: #121212; font-size: 14px; text-decoration: underline;}

/*Related articles*/
.associated_articles_wrap:not(.hidden){display: flex; flex-direction: column; gap:50px; margin-top: 100px; padding: 0 10px;}
.associated_articles_heading{display: flex; align-items: center; justify-content: space-between;}
.associated_articles_heading h2{font-size: 32px; font-weight: 900; color: #202020;}
.associated_articles_heading > a{font-size: 18px; color: #fff; font-weight: 500; line-height: 58px; border-radius: 16px; padding: 0 44px;
    background: #121212;}
.associated_articles_container{position: relative;}
.aa_next, .aa_prev{height: 48px; width: 48px; border-radius: 100%; background: rgba(0, 0, 0, .5); position:absolute; top: 50%; transform: translateY(-50%);
    transition: ease-in-out all .3s;}
.aa_next:hover, .aa_prev:hover{background: rgba(0, 0, 0, .7);}
.aa_prev{left: -50px;}
.aa_prev::before{content: ""; height: 8px; width: 8px; transform: rotate(45deg) translateY(-50%); border: solid #fff; top: 50%; left: 15px;
    border-width: 0 0 2px 2px; position: absolute;}
.aa_next{right: -50px;}
.aa_next::before{content: ""; height: 8px; width: 8px; transform: rotate(45deg) translateY(-50%); border: solid #fff; top: 50%; left: 15px;
    border-width: 2px 2px 0 0; position: absolute;}
.associated_articles_container > a.aa_nav_disabled{background: rgba(0, 0, 0, .3);}
.aa_pagination{display: flex; align-items: center; justify-content: center; height: 30px; gap:15px; margin-top: 30px;}
.aa_pagination span{all: initial; background: #CAE6E6; opacity: 1; height: 10px; width: 10px; border-radius: 100%; margin: 0; padding: 0;
    transition: ease-in-out all .3s;}
.aa_pagination span.active{background: #8BBABE; height: 15px; width: 15px;}

.associated_articles_container .a_list .a_box{margin: 0;}

/*Article Search Page*/
.a_search_categories { background: #EAF5F5; padding: 17px 0;}
.a_search_categories>div>div { margin: 0 10px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap;}
.a_search_categories>div>div a { font-size: 18px; font-weight: 500; color: #121212; background: #fff; padding: 10px 16px; 
    line-height: 24px; border-radius: 12px;}
.a_search_categories>div>div a.active { background: #8BBABE; color: #fff; }
.a_search_header { background: url(../images/article_banner.jpg) no-repeat center; background-size: cover; height: 140px; }
.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 h1 { font-size: 30px; color: #0A0A0A; padding: 0; font-weight: bold; text-transform: capitalize; }
.a_search_title { display: flex; flex-direction: column; text-transform: capitalize; gap: 10px; }
.a_search_title span { font-size: 32px; font-weight: 900; color: #202020 }

.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: 80px; gap: 15px; line-height: 24px; font-size: 14px; border: 1px solid #EBEBEB; }
a.art_pager_link { color: #000000; font-size: 18px; text-decoration: underline; }
a.art_pager_current_page { text-decoration: none; font-weight: bold;}
.art_pager_next_button.hidden, .art_pager_prev_button.hidden { display: block; visibility: hidden; }
a.art_pager_next_button, a.art_pager_prev_button {}
a.art_pager_next_button { margin-left: auto; }
a.art_pager_prev_button { margin-right: auto }

/*Article Search Box*/
.article_searchbox { background: #FAFAFA; border-radius: 16px; display: flex; align-items: center; height: 48px; width: 270px;}
.article_searchbox input { color: #000000; font-size: 14px; background: none; font-family: inherit; padding: 0 10px; box-sizing: border-box; border: 0; outline: none; line-height: 40px; height: 100%; width:calc(100% - 50px); }
.article_searchbox input::placeholder { color: #000000; }
.article_searchbox a { display: block; height: 100%; width: 50px; background: url(../images/search.svg) center center no-repeat; background-size: 20px;}

/*Article Block*/
.a_list {width: 33.33333333%;}
.a_list .a_box{margin: 0 10px 60px 10px;}
.a_list .a_list_image { height: 235px; width: 100%; position: relative; background-size: cover; background-position: center; 
    background-repeat: no-repeat; margin-bottom: 20px; }
.a_list .a_list_date{position: absolute; left: 20px; bottom: 30px; background: #FFFFFF; padding: 10px 15px; color: #8A6362; font-weight: bold;
    border-radius: 12px; font-size: 14px;}
.a_list .a_list_details { color: #202020; }
.a_list .a_list_details .a_list_title { height: 62px; overflow: hidden; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;  font-size: 22px; text-align: left; line-height:32px; text-transform:capitalize; color: #121212;}
.a_list .a_list_details .a_list_title a { }
.a_list .view_details { display: flex; align-items: center; justify-content: center; position: absolute; bottom: 10px; right: 10px; transition: 0.2s all ease-in-out; border: 0px solid #0000000F; border-radius: 4px; width: 0px; height: 40px; overflow: hidden; background: #fff; }

/*Article List module*/
.article_list_module { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: wrap; gap: 50px; width: 100%; 
    margin: 50px 0; background: #fff;}
.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;}
.alm_heading span{color: #8BBABE; font-size: 18px;}
.alm_heading h2{color: #202020; font-size: 32px; padding: 0; line-height: 36px;}
.alm_heading > a{font-size: 18px; color: #fff; font-weight: 500; line-height: 58px; border-radius: 16px; padding: 0 44px; background: #121212;}

.alm_gal_wrap{width: 100%; position: relative;}
.alm_next, .alm_prev{height: 48px; width: 48px; border-radius: 100%; background: rgba(0, 0, 0, .5); position:absolute; top: 50%; transform: translateY(-50%);
    transition: ease-in-out all .3s;}
.alm_next:hover, .alm_prev:hover{background: rgba(0, 0, 0, .7);}
.alm_prev{left: -50px;}
.alm_prev::before{content: ""; height: 8px; width: 8px; transform: rotate(45deg) translateY(-50%); border: solid #fff; top: 50%; left: 15px;
    border-width: 0 0 2px 2px; position: absolute;}
.alm_next{right: -50px;}
.alm_next::before{content: ""; height: 8px; width: 8px; transform: rotate(45deg) translateY(-50%); border: solid #fff; top: 50%; left: 15px;
    border-width: 2px 2px 0 0; position: absolute;}
.alm_nav_disabled{background: rgba(0, 0, 0, .3);}
.alm_pagination{display: flex; align-items: center; justify-content: center; height: 30px; gap:15px; margin-top: 30px;}
.alm_pagination span{all: initial; background: #CAE6E6; opacity: 1; height: 10px; width: 10px; border-radius: 100%; margin: 0; padding: 0;
    transition: ease-in-out all .3s;}
.alm_pagination span.active{background: #8BBABE; height: 15px; width: 15px;}

.article_list_module .a_list .a_box{margin: 0;}



/*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%; border-radius: 12px;}
    .associated_articles_heading h2{font-size: 28px; line-height: 34px;}
    .associated_articles_heading > a{font-size: 16px;}

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

    .alm_heading{flex-direction: column;}
    .alm_heading span{font-size: 16px;}
    .alm_heading h2{font-size: 28px;}
    .alm_heading > a{font-size: 16px; line-height: 50px; padding: 0 30px;}


}

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

    /*Search*/

    /*Article Block*/
    .a_list{width: 50%;}
    .a_list .a_box{margin-bottom: 30px;}
    
}

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

    /*Search Page*/
    .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*/
    .associated_articles_heading h2{font-size: 24px;}
    .associated_articles_heading > a{padding: 0 15px;}

    /*Article Featured Module*/
    .article_featured .a_featured_section { flex-direction: column; }
    .article_featured .a_image { margin-bottom: 20px; width: 100%; }
    .article_featured .a_details { padding: 0 5px; margin-bottom: 20px; width: 100%; }
    .article_featured .a_content { max-height: 125px; }

}
