/* Articles Header */
.article-header { height: 120px; display: flex; align-items: center; background:#FCF6FF; }
.article-header>div { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 15px;}
.article-header .article-search-title { display: flex; align-items: center; }
.article-header .article-search-title h1 { font-size: 32px; padding: 0; gap:10px; margin: 0; display: flex; align-items: center; 
    text-transform: capitalize; font-weight:bold; }
.article-header .article-search-title h1::before{content: ""; flex-shrink: 0; height:25px; width:25px; background:url(../images/sun.svg) center no-repeat; }

.articles-main{display: flex; gap:20px;}

/*Article Sidebar*/
.article-sidebar { width: 300px; background: #FEFBFF; position: relative; display: flex; flex-direction: column; gap:20px; padding: 25px 0; position: relative;}
.article-sidebar::before{content: ""; height: 100%; width: 50vw; background: #FEFBFF; position: absolute;
    right: 100%; top: 0;}
.article-sidebar > div{}
.article-sidebar > span{color: var(--mainColour); font-size: 24px; line-height: 30px; pointer-events: none;
    position: relative; z-index: 10;}
.sidebar-categories{margin-bottom: 20px;}
.sidebar-categories ul{list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column;}
.sidebar-categories ul li{list-style: none; padding: 0; margin: 0; }
.sidebar-categories > ul > li{border-bottom: 1px solid #F5E5FE; padding: 10px 0; position: relative;}
.sidebar-categories ul li a{color: var(--mainColour); padding-left: 30px; font-weight: bold; font-size: 16px; line-height: 30px; transition: ease-in-out all .3s;}
.sidebar-categories ul li.has-sub-items span.toggle-sub{position: absolute; left: 0; top: 0; 
    height: 50px; width: 30px; cursor: pointer;}
.sidebar-categories ul li.has-sub-items span.toggle-sub::before{content: ""; height: 6px; width: 6px; border: solid var(--mainColour); border-width: 0 1px 1px 0; transform: rotate(45deg); position: absolute; left: 6px; top: 20px; transition: ease-in-out all .3s;}
.sidebar-categories ul li.has-sub-items.open span.toggle-sub::before{transform: rotate(225deg); 
    border-color: var(--secondaryColour)}
.sidebar-categories ul li.has-sub-items.open > a{color: var(--secondaryColour);}
.sidebar-categories ul li a:hover{color: var(--secondaryColour);}
.sidebar-categories ul li ul{padding-left: 30px; display: none; }
.sidebar-categories ul li ul li{}
.sidebar-categories ul li ul li a{color: #000; padding: 0; font-weight: normal; font-size: 15px;}
.sidebar-categories ul li ul li a:hover{text-decoration: underline;}
.sidebar-categories ul li a.active{ color: var(--secondaryColour);}
.sidebar-categories ul li ul li a.active{text-decoration: underline; color: var(--secondaryColour);}

.sidebar-extra{display: flex; flex-direction: column; gap:15px; position: relative; z-index: 10;}
.sidebar-extra > a{display: flex; align-items: center; gap:5px; color: var(--mainColour);}
.sidebar-extra > a::after{content: ""; height: 6px; width: 6px; border: solid var(--mainColour); 
    border-width: 1px 1px 0 0; transform: rotate(45deg);}

/*Article Search*/
.articles{padding-bottom: 30px;}
.article-search-results { display: flex; flex-direction: column; gap: 10px; }
.articles-left{flex-shrink: 0;}
.articles-right{display: flex; flex-direction: column; gap:15px; width: calc(100% - 300px); margin-top:25px; }

.articles .articles-right > h1{font-weight: bold; font-size: 32px; line-height: 38px; display: flex; flex-direction: column; 
    gap:10px;}
.articles .articles-right > h1::after{content: ""; height: 4px; width: 40px; border-radius:5px; 
    background:var(--secondaryColour); }

/* -- PAGER -- */
.search-pager { display: flex; align-items: center; width: 100%; height: 60px; justify-content: center; gap: 10px; position: relative; background: #FCF6FF; }
.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%; font-size: 16px; color: var(--mainColour); text-decoration: underline; }
.pager-link.hidden { display: none !important; }
.pager-current-page a { color: var(--textColour);  text-decoration: none;}
.pager-prev-button, .pager-next-button { background: var(--mainColour); text-decoration: underline; color: #fff; height: 100%; width: 60px; }
.pager-prev-button{margin-right: auto;}
.pager-next-button {margin-left: auto; }
.pager-next-button a, .pager-prev-button a { display: flex; align-items: center; justify-content: center; text-decoration: none; gap: 5px; }
.pager-next-button.disabled, .pager-prev-button.disabled { opacity:.3; }
.pager-next-button a:after, .pager-prev-button a:before { content: ''; width: 12px; height: 12px; background: url(../images/chevron-right-white.svg) no-repeat center; background-size: contain; }
.pager-prev-button a:before { transform: rotate(180deg); }

.pager-prev-button.disabled, .pager-next-button.disabled{pointer-events: none;}

/* Article Block */
.article { width:100%; background: #FEFBFF; border:1px solid var(--mainColour); 
    border-radius: 10px; overflow: hidden;}
.article .art-title{ text-decoration: none; font-size: 24px; line-height: 28px; 
    padding: 30px; position: relative; color: var(--mainColour); font-weight: bold; font-size: 22px; 
    display: flex; width: 100%; transition: ease-in-out all .3s; }
.article .art-title::after{content: ""; height:8px; width:8px; border:solid var(--mainColour); 
    transition: ease-in-out all .3s; border-width:2px 2px 0 0; transform:rotate(45deg); 
    position:absolute; right:20px; top:calc(50% - 4px); }
.article .art-title:hover{background: var(--mainColour); color: #fff;}
.article .art-title:hover::after{border-color: #fff;}

/* Article Details */

.article-info { display: flex; flex-direction: column; align-items: stretch; gap: 15px; width: 100%;}
.article-info::after{content: ""; height: 4px; width: 40px; background: var(--secondaryColour); 
    border-radius: 5px;}
.article-title { font-size: 38px; line-height: 44px; font-weight: bold;  color: var(--headingColour); margin-bottom: 0; padding: 0; }

.article-info .article-meta { color: var(--textColour); font-size: 15px; display: flex; align-items: center; 
    gap: 15px; }
.article-date{display: flex; align-items: center; flex-shrink: 0; gap:10px; color: var(--headingColour);}
.article-date::before{content: ""; height: 13px; width: 13px; 
    background: url(../images/calendar.svg) center no-repeat;}
.article-category { display: flex; gap: 5px; flex-wrap: wrap;  padding-right: 10px; }
.article-category a { text-decoration: underline; color: var(--secondaryColour); }

.article-video-wrap {position: relative; width: 100%;} 
.article-video-wrap.withVideo{ aspect-ratio:3/2; }
.article-video {position: absolute; top: 0; left: 0; width: 100%; height: 100%; } 
.article-video iframe {width: 100%; height: 100%; border: none; }

.article-images-container{display: flex; flex-direction: column; gap:10px;}
.article-images-container > div{width: 100%;}
.articles-main .small-images-gal-wrap{margin: 0;}

.article-image-gal-wrap{position: relative;}
.art-gal-nav{height: 60px; width: 40px; position: absolute; top: calc(50% - 30px); background: #fff; z-index: 10;}
.art-gal-nav::after{content: ""; height: 14px; width: 14px; border: solid var(--mainColour); border-width: 3px 3px 0 0; transform: rotate(45deg); position: absolute; top: calc(50% - 5px); right: 14px;}
.art-gal-prev{border-radius: 5px 0 0 5px; left: 0;}
.art-gal-next{border-radius: 0 5px 5px 0; right: 0;}
.art-gal-prev::after{right: initial; left: 14px; border-width: 0 0 3px 3px;}

/*Downloads*/
.article-downloads-wrap{display: flex; flex-direction: column; align-items: flex-start; gap:15px; margin: 10px 0 30px 0;}
.article-downloads-wrap > span{font-size: 24px; line-height: 30px; color: #000;}
.article-download-all{color: #fff; background: var(--secondaryColour); border-radius: 10px; padding: 15px; text-transform: uppercase; display: flex; align-items: center; gap:10px;}
.article-download-all:hover{color: #fff;}
.article-download-all::before{content: ""; height: 30px; width: 30px; background: url(../images/pdf-white.svg) center no-repeat; flex-shrink: 0;}
.article-downloads{display: flex; flex-direction: column; gap:10px; align-items: flex-start;}
.article-download {display: flex; gap:10px; align-items: center; color: #000; font-weight: bold; transition: ease-in-out all .3s;}
.article-download:hover{color: var(--secondaryColour); text-decoration: underline;}
.article-download::before{content: ""; height: 30px; width: 30px; background: url(../images/pdf-red.svg) center no-repeat; flex-shrink: 0;}

.article-description { margin-bottom: 20px; font-size: 16px; line-height: 26px; color: var(--textColour); min-height: 30px; }
.article-description * {}



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

@media (min-width:992px) {
    .article-sidebar > div{display: block !important;}
}

@media (min-width:1200px) and (max-width:1400px) {

}

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

    /*Details Page*/
    .article-left { width: calc(100% - 350px); }
    .article-right { width: 350px; }
    .article-title { font-size: 32px; }
    .article-footer-title{font-size: 36px;}

}

/*Mobile & Tablet*/
@media (max-width:991px) {

    /*Article Search*/
    .articles-main{flex-direction: column;}
    .article-sidebar::before{width: 100vw !important; max-width: 100vw !important; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;}
    .article-header{height: 80px; }
    .article-header .article-search-title h1{font-size: 28px;}
    .article-sidebar{padding-top: 20px; padding-bottom: 20px; width: 100%;}
    .article-sidebar > span{font-size: 20px; position: relative; pointer-events: initial;}
    .article-sidebar > span::after{content: ""; height: 8px; width: 8px; border: solid var(--mainColour); transition: ease-in-out all .3s; border-width: 0 2px 2px 0; transform: rotate(45deg); position: absolute; right: 10px; top: calc(50% - 4px); transition:ease-in-out all .3s;}
    .article-sidebar > span.open::after{transform: rotate(225deg);}
    .article-sidebar > div{display: none;}

    .articles-main{gap:0;}
    .articles-right{width: 100%;}
    .articles .articles-right > h1{font-size: 28px; line-height: 34px;}

    /*Article Block*/
    .article .art-title{padding: 30px 20px;}

    /*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-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) {   

    /*Details Page*/
    .as-image { width: 100px; height: 66px; }
    .as-title { height: initial; display: flex; }
}

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

    /*Article Details*/
    .article-title { font-size: 32px; line-height: 40px; }
    .article-description:is(p, li) { font-size: 14px; line-height: 28px; }


    .art-gal-nav{height: 20px; width: 14px; top: calc(50% - 10px)}
    .art-gal-nav::after {content: ""; height: 7px; width: 7px; border-width: 1px 1px 0 0; right: 5px; top: calc(50% - 3px);}
    .art-gal-prev::after{border-width: 0 0 1px 1px; left: 5px; right: initial;}
}
