#publications-base {display: flex;flex-wrap: wrap;align-items: flex-start;color: var(--primary-color);width: 100%;}

/* ===============
* 
* FILTER
* 
* ================
*/
.filter { display: flex; align-items: center; flex-basis: 100%; position: relative; margin: 20px 0 30px; }
.filter p { margin: 0; }

.filter form { display: flex; align-items: center; width: 100%; max-width: 675px; }
.filter form select,
.filter form input { height: 40px; flex: 1; min-width: 0; margin: 0 10px; padding: 0 10px; border: 1px solid #707070; border-radius: 10px; font-family: 'Nunito', Arial, sans-serif !important; font-size: 16px; font-weight: 500; color: #4C008C; }
.filter form input::placeholder { color: #a282c0; }
.filter form select:first-of-type { margin-left: 15px; }
.filter form input:last-of-type { margin-right: 15px; }
.filter form button { flex: 0; border: 0; background: none; cursor: pointer; }

.filter .logout {display: flex;align-items: center;height: 40px;margin-left: 15px;padding: 0 20px 0 20px;background: #4B008C;text-align: left;color: white;border: none;border-radius: 10px;cursor: pointer;}
.filter .logout span {font-size: 12px;}

.filter .customise {display: flex;align-items: center;height: 40px;margin-left: auto;padding: 0 13px 0 10px;background: #4B008C;text-align: left;color: white;border: none;border-radius: 10px;cursor: pointer;}
.filter .customise span { margin-right: 10px; font-size: 12px; }

@media screen and (max-width: 1000px) {
    .filter {flex-wrap: wrap;width: 100%;}
    .filter p { flex-basis: 160px; }
    .filter form {flex-basis: calc(100% - 160px);max-width: none;}

    .filter .customise { margin-top: 15px; }

    .filter p { flex-basis: 100%; margin-bottom: 15px; }
    .filter form { flex-basis: 100%; flex-wrap: wrap; }
    .filter form select:first-of-type { margin-left: 0; }
}

@media screen and (max-width: 750px) {
    .filter p { flex-basis: 100%; margin-bottom: 15px; }
    .filter form { flex-basis: 100%; flex-wrap: wrap; }
    .filter form select:first-of-type { margin-left: 0; }
}

#publications-base.overview #content { display: flex; flex-wrap: wrap; justify-content: space-between; }
#publications-base .pagedrivers{ }
#publications-base .pagedrivers .pagedriver{ }
#publications-base .pagedrivers .pagedriver a.pagetitle{color: var(--text-color) !important;}
#publications-base .pagedrivers .pagedriver .authors{margin-top: 1rem;}
#publications-base .pagedrivers .pagedriver .authors a{ }

/* ===============
* 
* BOX STYLE
* 
* ================
*/
.box.knowledge {flex-basis: 100%;padding: 0 0 22px 0;overflow: hidden;position: relative;margin-bottom: 1rem;}
.box.knowledge .header {background: var(--secondary-color);padding: 15px;color: white;border-radius: 1rem;}
.box.knowledge .header h5 { margin: 0; text-transform: none; }

.box.knowledge.small .content {margin: 15px 7px 10px 15px;padding-right: 8px;overflow: hidden;scrollbar-color: #868686 #B1B1B1;overflow-y: auto;}
.box.knowledge.small .content::-webkit-scrollbar { width: 8px; }
.box.knowledge.small .content::-webkit-scrollbar-track { background: #B1B1B1; }
.box.knowledge.small .content::-webkit-scrollbar-thumb { background: #868686; }

.box.knowledge .link {display: flex;justify-content: flex-end;position: absolute;right: 0;bottom: 0;}
.box.knowledge .link a { display: inline-block; padding: 7px 20px; background: #4B008C; font-size: 15px; font-weight: bold; color: white; }

.box.knowledge .file { margin-bottom: 14px; max-width: 300px; }
.box.knowledge .file p { color: #575756; text-decoration: underline; }

#publications-base.overview #sidebar { padding-left: 30px; padding-right: 0; }

/* Pagination styling for each category box */
.pd-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-family: inherit;
}

.pd-pagination .pd-page-btn {
    background-color: #f1f1f1;
    color: #000;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.pd-pagination .pd-page-btn:hover:not(.is-disabled):not(.is-active) {
    background-color: #e3e3e3;
}

.pd-pagination .pd-page-btn.is-active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    cursor: default;
}

.pd-pagination .pd-page-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pd-pagination .pd-ellipsis {
    color: #999;
    padding: 0 4px;
    user-select: none;
}

/* Fade animation for page change */
#publications-base .pagedrivers {
    position: relative;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

#publications-base .pagedrivers.is-fading {
    opacity: 0;
}



/* ===============
* 
* OVERVIEW CONTENT
* 
* ================
*/
.box.knowledge .article h4 { font-size: 15px; text-transform: none; }
.box.knowledge .article .information { width: 100%; max-width: 300px; font-size: 13px; line-height: 1.4; color: #575756; margin-bottom: 14px; }
.box.knowledge .article .read-more { text-decoration: underline; color: #4B008C; }
.box.knowledge.small .article:not(:last-child) { border-bottom: 1px dashed #F050FB; margin-bottom: 15px; padding-bottom: 15px; }

/* ===============
* 
* SIDEBAR
* 
* ================
*/
#publications-base.overview .subtitle { display: inline-block; }
#publications-base.overview .subtitle h4 { margin: 0; padding: 0 10px 0 5px; }
#publications-base.overview .subtitle hr { margin-top: 5px; }

#publications-base.overview #sidebar .article+.article { margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(75, 0 ,140, 0.3); }

#publications-base.overview #sidebar .title { margin-bottom: 5px; font-size: 16px; font-weight: 800; }
#publications-base.overview #sidebar .excerpt { font-weight: bold; margin-bottom: 16px; }
#publications-base.overview #sidebar b { font-weight: bold; }
#publications-base.overview #sidebar .date { margin-bottom: 0; }
#publications-base.overview #sidebar .source { display: flex; margin-bottom: 16px; }
#publications-base.overview #sidebar .source p { margin-bottom: 0; }
#publications-base.overview #sidebar .source p:nth-child(1) { margin-right: 4px; }
#publications-base.overview #sidebar .read-more { display: inline-block; padding: 10px 15px; border-radius: 7px; background: white; font-size: 13px; font-weight: bold; }

#publications-base.overview #sidebar hr~hr { margin: 15px 0 4px; }
#publications-base.overview #sidebar hr+hr { margin: 0 0 15px; }

/* ===============
* 
* TOPIC VIEW
* 
* ================
*/
.box.knowledge.large .content { padding: 30px 0 0; flex-wrap: wrap;}
.box.knowledge.large .content .article { width: 50%; margin-bottom: 1px; padding: 0 30px; }
.box.knowledge.large .content .article.bottom { padding-bottom: 30px; }

.box.knowledge.large .article .read-more { margin-bottom: 0; }

.box.knowledge.large .content hr { margin: 20px 0; border-top: 1px dashed #F050FB; }
.box.knowledge.large .content .article.bottom hr { display: none; }

.box.knowledge.large .content .center-line { position: absolute; height: calc(100% - 60px); left: 50%; border-left: 1px dashed #F050FB; }

/* ===============
* 
* CUSTOMISE BOX
* 
* ================
*/
.customise-holder { position: relative; z-index: 999; transition: opacity 0.5s; }

.dark-overlay { position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.4); z-index: 0; }
.customise-popup { position: fixed; width: 90%; max-width: 900px; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 40px 50px 30px; background: #4B008C; color: white; text-align: center; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); z-index: 1; }

.customise-popup .customise-close { position: absolute; top: 25px; right: 25px; background: none; border: none; cursor: pointer; }

.customise-popup h3 { font-weight: 500; margin-bottom: 8px; }
.customise-popup h3 span { color: #F050FB; }

.customise-popup p { color: white; }

.customise-popup .fields { display: flex; max-width: 650px; justify-content: space-between; margin: 30px auto 20px; }
.customise-popup .fields > div { flex-basis: calc(50% - 25px); }

.customise-popup .fields input,
.customise-popup .fields select { width: 100%; height: 40px; margin-bottom: 17px; padding-left: 15px; border: 2px solid #707070; border-radius: 5px; font-family: 'Nunito', Arial, sans-serif !important; font-size: 15px; color: #4B008C; }
.customise-popup .fields input::placeholder { color: #4B008C; }

.customise-popup .customise-info { display: flex; max-width: 600px; margin: 0 auto; text-align: left; align-items: center; }
.customise-popup .customise-info svg { min-width: 48px; margin-right: 30px; }
.customise-popup .customise-info p { margin: 0; }
.customise-popup .customise-info b { font-weight: bold; color: #F050FB; }
.customise-popup .customise-info span.small { font-size: 10px; }

.customise-popup label { color: white; }

.customise-popup .checkboxes {display: flex;flex-wrap: wrap;margin: 20px 0 30px;text-align: left;max-height: 150px;overflow-y: scroll;}
.customise-popup .checkgroup {flex-basis: 25%;display: flex;align-items: flex-start;margin-bottom: 6px;}

.customise-popup input[type=checkbox],
.customise-popup input[type=radio] { position: absolute; left: -9999px; }
.customise-popup input[type=checkbox] + .overlay,
.customise-popup input[type=radio] + .overlay {display: inline-block;width: 11px;height: 11px;margin-right: 5px;margin-top: 0;background: white;transform: translateY(1px);cursor: pointer;}
.customise-popup input[type=checkbox]:checked + .overlay:before,
.customise-popup input[type=radio]:checked + .overlay:before { content: ''; display: block; width: 3px; height: 7px; border-right: 2px solid #F050FB; border-bottom: 2px solid #F050FB; transform: rotate(45deg) translateX(2px) translateY(-2px); }

.customise-popup .checkboxes label {font-size: 12px;line-height: 1.2;}
.customise-popup .expand { padding: 0 5px; border: none; background: none; cursor: pointer; }
.customise-popup .expand.expanded img { transform: rotate(180deg); }

.customise-popup .checkgroup > .checkgroup { height: 0; margin-left: 15px; overflow: hidden; transition: height 0.5s; } 

.customise-popup .updates { display: flex; margin-bottom: 30px; }
.customise-popup .updates > p { margin: 0; }
.customise-popup .updates-group { display: flex; padding-left: 20px; }
.customise-popup .updates-group > div { padding: 0 10px; }
.customise-popup .updates input[type=radio] { margin: 0; }
.customise-popup .updates input[type=radio] + .overlay { width: 14px; height: 14px; margin: 0 0 0 5px; }
.customise-popup .updates input[type=radio] + .overlay:before { width: 4px; height: 9px; transform: rotate(45deg) translateX(3px) translateY(-3px); }

.customise-popup .create-account { display: block; margin: 0 auto; padding: 10px 20px; background: #F050FB; border: none; border-radius: 7px; font-family: 'Nunito', Arial, sans-serif !important; font-size: 15px; font-weight: bold; color: white; cursor: pointer; }

/* ===============
* 
* TABLET
* 
* ================
*/
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .filter form select { flex-basis: calc(50% - 7.5px); margin-left: 0; margin-right: 7.5px; }
    .filter form select:nth-of-type(2) { margin-left: 7.5px; margin-right: 0; }
    .filter form input:last-of-type { max-width: calc(50% - 7.5px); margin: 15px 15px 0 0; }
    .filter form button { margin-top: 15px; }

    .filter .logout{ position: absolute;top: 89px;right: 135px;margin: 0; }
    .filter .customise { position: absolute;top: 89px;right: 0;margin: 0; }

    #publications-base.overview #sidebar { padding: 0; }

    .box.knowledge { flex-basis: 100%; }
    
    #publications-base .box.knowledge.large .content .article {width: 100%;border: none;padding-left: 15px;padding-right: 15px;}
    .box.knowledge.large .content{padding-top: 15px;padding-bottom: 15px;}
    .box.knowledge.large .content .article.bottom hr { display: block; }
    .box.knowledge.large .article:last-child hr { display: none; }

    .box.knowledge.large .content .center-line { display: none; }
    .box.knowledge { flex-basis: 100%; }
}

/* ===============
* 
* MOBILE
* 
* ================
*/
@media screen and (max-width: 39.9375em) {
    .filter form select { flex-basis: calc(50% - 7.5px); margin-left: 0; margin-right: 7.5px; }
    .filter form select:nth-of-type(2) { margin-left: 7.5px; margin-right: 0; }
    .filter form input:last-of-type { max-width: calc(50% - 7.5px); margin: 15px 15px 0 0; }
    .filter form button { margin-top: 15px; }

    .filter .customise { position: absolute; top: 89px; right: 0; margin: 0; }

    #publications-base.overview #sidebar { padding: 0; }

    .box.knowledge { flex-basis: 100%; }
    
    #publications-base .box.knowledge.large .content .article {width: 100%;border: none;padding-left: 15px;padding-right: 15px;}
    .box.knowledge.large .content{padding-top: 15px;padding-bottom: 15px;}
    .box.knowledge.large .content .article.bottom hr { display: block; }
    .box.knowledge.large .article:last-child hr { display: none; }

    .box.knowledge.large .content .center-line { display: none; }
}