/* ==========================================================================
   PSI ENCYCLOPEDIA CUSTOM STYLES
   ========================================================================== */

/* Astra override - spacing for single posts with featured images */
.ast-separate-container .site-content .ast-single-post-featured-section+article {
	margin-top: 30px;
}


/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
	--heading-colour: #6f7580;
	--search-box-colour: #6f7580;
	--typical-background: #3f3f3f;
	--footer-links: #ffffff;
	--width-adjustment: 97%;
	--heading-font: 'Lato', sans-serif;
	--link-colour: #285372;
	--border-colour: #ccc;
	--psi-red: #af3d4f;
	font-size: 100%;
}


/* ==========================================================================
   BASE STYLES
   ========================================================================== */
hr {
	background-color: var(--border-colour);
	height: 2px;
}

.site-branding {
	padding: 1em 0 0 0 !important;
}

body,
body li {
	font-size: 1rem;
	line-height: 1.4;
}

h2 {
	font-size: 2.2rem !important;
	color: #000000 !important;
}

h3 {
	font-size: 1.2rem !important;
}

a {
	color: var(--link-colour);
}

a.button,
.button {
	padding: 10px 20px;
	color: #fff;
	background: var(--link-colour);
}

a:hover,
a:focus {
	color: var(--link-colour);
}

blockquote {
	font-size: 1rem;
}



/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

/* Flexbox layout for articles with sidebar */
@media (min-width: 922px) {
    body.single-articles .site-content .ast-container {
        display: flex;
        gap: 20px;
    }
}

/* Hide sidebar on home page */
body.home #secondary {
	display: none;
}


/* ==========================================================================
   NAVIGATION & MENUS
   ========================================================================== */

/* Primary navigation hover states */
#ast-hf-menu-1 a.menu-link:hover,
#ast-hf-menu-1 a.menu-link:focus,
#ast-hf-menu-1 a.menu-link:active {
    color: var(--search-box-colour);
}

/* Secondary navigation hover states */
#ast-hf-menu-2 a.menu-link:hover,
#ast-hf-menu-2 a.menu-link:focus,
#ast-hf-menu-2 a.menu-link:active {
    background: var(--search-box-colour);
}


/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* Images on homepage*/
.psi-featured-article:nth-child(4) img,
.psi-featured-article:nth-child(5) img,
.psi-featured-article:nth-child(6) img,
.psi-featured-article:nth-child(7) img,
#psi-explore-the-psi-encyclopedia img,
#psi-key-topics img {
	width: 100%;
	height:157px;
	object-fit: cover; 
}

@media all and (min-width: 576px) and (max-width: 768px) {
	.psi-featured-article:nth-child(4) img,
	.psi-featured-article:nth-child(5) img,
	.psi-featured-article:nth-child(6) img,
	.psi-featured-article:nth-child(7) img,
	#psi-explore-the-psi-encyclopedia img,
	#psi-key-topics img {
		height:150px;
	}
}

/* Single Articles */
body.single-articles p {
	font-size: 1.13rem;
}

body.single-articles h3 span {
	font-size: 1.5rem;
}

body.single-articles .entry-header h1.entry-title,
body.single-articles .entry-content h2 {
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
	font-weight: 400;
}

body.single-articles article .post-thumb img.attachment-large {
	margin-top: 1rem;
	width: 280px;
}

body.single-articles .entry-header .post-thumb {
	float: left;
  padding-right: 20px;
}

@media all and (max-width: 576px) {
	body.single-articles .entry-header .post-thumb {
		float: none;
		padding-right: 0;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 1rem;
	}
}


body.single-articles .entry-content {
	p, li {
		font-size: 1.125rem;
	}	
	h2:first-of-type + p:first-letter {
		color: #6f7580;
		float: left;
		font-size: 93px;
		line-height: 60px;
		padding: 5px 5px 0 0;
	}
}

/* Featured - Home */
.psi-featured-article {
	background: #f5f5f5;
	border: 4px solid transparent;
	position: relative;
}

.psi-featured-article h3 a {
    color: var(--link-colour);
	font-weight: 400;
}

a:hover,
a:focus {
	color: var(--link-colour);
}

.psi-featured-article h3 a:hover, h3 a:hover
.psi-featured-article h3 a:focus, h3 a:focus {
    border-bottom: 2px solid var(--link-colour);
}

@media all and (max-width: 1024px) {
	#psi-featured-articles img {
		height: 150px;
		object-fit: cover;
	}

}

#psi-featured-articles > div:hover h3 a,
#psi-featured-articles > div:focus h3 a,
#psi-key-topics > div:hover h3 a,
#psi-key-topics > div:focus h3 a, 
#psi-recent-additions > div:hover h3 a,
#psi-recent-additions > div:focus h3 a,
.psi-explore-the-psi-encyclopedia-category div:hover h3 a,
.psi-explore-the-psi-encyclopedia-category div:hover h4 a,
.psi-explore-the-psi-encyclopedia-category div:focus h4 a,
#psi-category-page-articles div:hover h3 a {
	color: var(--link-colour);
	border-bottom: 2px solid var(--link-colour);
}

#psi-key-topics > div p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#psi-key-topics div p {
	margin: 0;
  margin-bottom: 3rem;
}

.psi-featured-article a.button,
#psi-key-topics a.button {
	position: absolute;
	bottom: 1rem;
}

/* Recent Additions - Home */
.psi-carousel-wrapper {
	display: block;
}

button.psi-carousel-button:hover {
	background: var(--search-box-colour);
	border: 1px solid var(--search-box-colour);
	color: #ffffff;
}

@media (min-width: 769px) {
    button.psi-carousel-button.left {
		position: absolute;
		left: -50px;
		top: 50%;
	}

	button.psi-carousel-button.right {
		position: absolute;
		right: -50px;
		top: 50%;
	}
}

body.home #primary .entry-content > p,
body.category #primary > p {
	width: 60%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	font-size: 1.125rem;
  margin-bottom: 0.75em;
	line-height: 1.5rem;
}

@media all and (max-width: 576px) { 
	body.home #primary .entry-content > p,
	body.category #primary > p {
		width: 100%;
	}
}

.site-primary-footer-wrap {
	padding-top: 25px;
}
.site-below-footer-wrap {
	padding-bottom: 10px;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
	min-height: auto;
}

.ast-primary-header-bar, .ast-below-header-bar, .site-primary-footer-wrap {
	font-family: var(--heading-font);
	font-weight: 500;
}

.ast-below-header-wrap  {
    background: var(--typical-background);
}

/* Search bar */
.site-header .wp-block-search__inside-wrapper {
	border-radius: 30px;
	padding: 4px;
	border: 2px solid var(--search-box-colour);
	outline-style: none !important;
	height: 46px;
}

.site-header .wp-block-search__input {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-size: 18px;
	padding-bottom: 5px !important;
}

.site-header .wp-block-search__input::placeholder {
	color: var(--search-box-colour);
}

.site-header .wp-block-search__button {
	position: relative;
	left: 4px;
	bottom: 4px;
	padding: 21px 0px 21px 10px !important;
	background-color: #a9b5c4 !important;
	border-radius: 0px 30px 30px 0px;
}

.site-header .wp-block-search__button .search-icon {
	font-size: 2.25rem;
	position: relative;
	bottom: 23px;
	right: 5px;
}

/* ---------------------- */

/* SPR Logo */
#block-10 {
	margin-top: 15px;
	margin-right: 12px;
}

.ast-below-header-bar {
	background: transparent;
}

/* Header menus */
#ast-hf-menu-1 li>a {
	color: var(--heading-colour);
	font-size: 105%;
}

#ast-hf-menu-1 li:first-child>a {
	padding-left: 12px;
}

#ast-hf-menu-2 li>a {
	font-size: 1rem;
	color: #ffffff;
	padding-left: 11px;
	padding-right: 11px;
}

.ast-above-header-bar, .main-header-bar, .ast-below-header-bar, .site-below-footer-wrap {
	border: none !important;
}

#primary {
	margin: 45px 0 !important;
	width: var(--width-adjustment);
}

@media all and (max-width: 576px) {
	body:not(.home, .category) #primary {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	#secondary {
		margin-bottom: 0;
	}
}

#primary>main>article {
	padding: 0;
}


/* PRIMARY BLOCK */
#primary .wp-block-heading {
	margin-top: 1em;
	clear: both;
}


/* FOOTER */
.ast-builder-footer-grid-columns {
	grid-column-gap: 10px;
}

.wp-block-image {
	margin-right: 2em;
	margin-left: 0;
}

.wp-block-image  .wp-image-8 {
	margin-top: 0.75em;
	width: 130px !important;
	min-width: 120px;
}

#block-13 .wp-block-image {
	margin-right: 2rem;
}
.site-primary-footer-wrap {
	background-color: var(--typical-background) !important;
	padding-bottom: 0;
}

.site-primary-footer-wrap nav li>a {
	color: var(--footer-links);
}

.site-footer-section-1 #menu-footer {
	line-height: 1.9;
}

.site-footer-section-1>aside {
	display: flex !important;
}

.site-footer-section-1>aside img {
	margin-top: 1.4em;
}

.site-footer-section-3 {
	color: #ffffff;
	width: 550px;
}

.site-footer-section-3 a {
	color: var(--footer-links);
}

.site-below-footer-wrap {
	background-color: var(--typical-background) !important;
	padding-top: 0 !important;
}

.ast-footer-copyright {
	color: #ffffff;
}

#nav_menu-4 {
	white-space: nowrap;
}

#block-13 {
	margin-bottom: 0 !important;
}

/* SCROLL-TO-TOP ICON */
#ast-scroll-top {
	width: 4.2em;
	height: 4.2em;
	background-color: #40021b;
	border-radius: 2.1em;
}

#ast-scroll-top .ast-icon {
	font-size: 30px !important;
}

/* TABLE OF CONTENTS BLOCK */
@media (min-width: 922px) {
	#toc_container {
		display: none;
	}
}
@media (max-width: 921px) {
	/*hiding left sidebar blocks on smaller screen */
	#secondary #block-4, 
	#secondary #block-5 {
		display: none;
	}
}

#toc_container {
	margin-left: 0;
	font-family: var(--heading-font);
	font-size: 115%;
	padding: 0.75em 2.5em 0.75em 2.25em;
	width: 100%;
}

/* sidebar - left */

@media (min-width: 922px) {
    .ast-separate-container.ast-two-container.ast-left-sidebar #secondary  {
        padding-right: 0px;
    }
	div#secondary {
		align-self: flex-start;
		width: 20%;
		max-height: 100%;
    overflow: visible;
	}
	div.secondary:first-of-type {
		position: sticky;
		top: 20px;
	}
	.single-articles #primary {
		width: 60% !important;
	}
	/** only have scrolling on left sidebar **/
	.ast-separate-container.ast-two-container.ast-left-sidebar #secondary.left-sidebar {
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        overflow-y: auto;
        width: 20%;
        align-self: flex-start;
	} 
}

.ast-separate-container.ast-two-container #secondary .widget {
	padding: 12px 0;
}

#secondary .widgettitle {
	border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
	font-size: 1.5rem !important
}

ul.toc_widget_list.no_bullets li ul {
	padding-left: 1rem;
}

#toc_container.no_bullets li, 
#toc_container.no_bullets ul.toc_list li {
	list-style-type: auto;
	list-style: none;
	font-size: 1rem;
}

#toc_container a:hover {
	text-decoration: none;
}


/* HOME PAGE */
.home .wp-block-heading:first-of-type {
	margin-top: 0 !important;
	border-top:none;
}

.home .wp-block-heading {
	text-align: left;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	position: relative;
	letter-spacing: 1.5px;
	border-top: 2px solid var(--border-colour);
	padding-top: 2rem;
}

.home .wp-block-heading span {
	position: relative;
	display: inline-block;
}

/* FEATURED ARTICLES ON HOME PAGE */
#psi-featured-articles {
	display: grid;
	gap: 2.5rem; /* gap: 20px; */
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: auto;
	grid-template-areas:
		"large large item1"
		"large large item2"
		"item3 item4 item5";
}

.psi-featured-article img {
	width: 100%;
	max-height: 270px;
	object-fit: cover;
}

.psi-featured-article p a {
	color: inherit;
}

/* FOOTER */
footer a:hover, 
footer a:focus, 
footer a:focus,
footer a:visited {
	border-bottom: 2px solid #ffffff;
}

/* Second and third items: image to the left */
@media all and (min-width: 1025px) {
	.psi-featured-article-two-and-three {
		display: flex;
		align-items: stretch;
		gap: 10px;
	}

	.psi-featured-article-two-and-three img {
		min-width: 55%;
		height: auto;
		object-fit: cover;
	}

	.psi-featured-article-two-and-three h3 {
		margin-top: 0;
	}
}

.psi-featured-article:nth-child(1) {
	grid-column: 1 / 5;
	grid-row: 1 / 3;
}

.psi-featured-article:nth-child(2) {
	grid-column: 5 / 9;
	grid-row: 1 / 2;
}

.psi-featured-article:nth-child(3) {
	grid-column: 5 / 9;
	grid-row: 2 / 3;
}

.psi-featured-article:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 9;
}

.psi-featured-article:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 3 / 9;
}

.psi-featured-article:nth-child(6) {
    grid-column: 5 / 7;
    grid-row: 3 / 9;
}

.psi-featured-article:nth-child(7) {
    grid-column: 7 / 9;
    grid-row: 3 / 9;
}

@media all and (max-width: 1024px) {
	#psi-featured-articles {
		grid-template-columns: 1fr 1fr !important;
		grid-template-areas:
			"large large"
			"item1 item2"
			"item3 item4"
			"item5 ." !important;
	}

	.psi-featured-article {
		grid-column: auto !important;
		grid-row: auto !important;
	}	

}

@media all and (min-width: 1025px) {
	.psi-featured-article:nth-child(1) h3 a {
		font-size: 1.5rem ;
	}
	
	.psi-featured-article:nth-child(1) p {
		font-size: 1.15rem;
		margin-bottom: 3rem;
	}
}

@media all and (max-width: 768px) {
	#psi-featured-articles {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"large"
			"item1"
			"item2"
			"item3"
			"item4"
			"item5" !important;
	}

	.psi-featured-article-two-and-three {
		flex-direction: column;
	}

	.psi-featured-article-two-and-three img {
		width: 100%;
		max-width: none;
	}
}


/* KEY TOPICS */
#psi-key-topics {
	display: grid;
	gap: 1.5rem; /* gap: 20px; */
	grid-template-rows: auto;
}

@media all and (min-width: 1025px) {
	#psi-key-topics {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	#psi-key-topics div img {
		height: 157px;
	}
}

@media all and (max-width: 1024px) {
	#psi-key-topics {
		grid-template-columns: 1fr 1fr;
	}
}

@media all and (max-width: 768px) {
	#psi-key-topics {
		grid-template-columns: 1fr !important;
	}
}

#psi-key-topics div {
	overflow: hidden;
}

#psi-key-topics div img {
	width: 100%;
	object-fit: cover;
}


/* RECENT ADDITIONS */
.psi-carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.psi-carousel-container {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex: 1;
	scroll-behavior: smooth;
	border-top: 1px solid #ccc;
	padding: 1rem 0;
}

.psi-carousel-track {
	display: flex;
	gap: 1rem;
}

#psi-recent-additions>div {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 235px;
	display: flex;
	flex-direction: column;
	border-radius: 6px;
	padding: 1rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
}

#psi-recent-additions {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	align-items: stretch;
}

#psi-recent-additions div img {
	width: 100%;
	height: 157px;
	object-fit: cover;
}

#psi-recent-additions div a.button {
	position: absolute;
	bottom: 1rem;
}

#psi-recent-additions div p {
	margin-bottom: 3rem;
}

/* Scrollbar styling */
.psi-carousel-container::-webkit-scrollbar {
	height: 10px;
}

.psi-carousel-container::-webkit-scrollbar-track {
	background: #eee;
	border-radius: 5px;
}

.psi-carousel-container::-webkit-scrollbar-thumb {
	background: #999;
	border-radius: 5px;
}

.psi-carousel-container::-webkit-scrollbar-thumb:hover {
	background: #666;
}

.psi-carousel-container {
	scrollbar-width: none;
	scrollbar-color: #999 #eee;
}

/* Arrow buttons */
.psi-carousel-button {
	background: #fff;
	border: 1px solid #ccc;
	color: #333;
	font-size: 2rem;
	padding: 0.3rem 0.6rem 0.6rem 0.6rem;
	cursor: pointer;
	border-radius: 50%;
	margin: 0 0.5rem;
	transition: background 0.2s;
	z-index: 1;
}

.psi-carousel-button:hover {
	background: #eee;
}


/* EXPLORE THE PSI ENCYCLOPEDIA */
.psi-explore-the-psi-encyclopedia-category {
	display: flex;
	gap: 1.5rem;
}

.psi-explore-the-psi-encyclopedia-category br,
#psi-recent-additions br {
	display: none;
}

@media all and (max-width: 1024px) {
	.psi-explore-the-psi-encyclopedia-category {
		display: grid;
		grid-template-columns: 1fr 1fr !important;
	}
}

@media all and (max-width: 768px) {
	.psi-explore-the-psi-encyclopedia-category {
		display: grid;
		grid-template-columns: 1fr !important;
	}
}

.psi-explore-the-psi-encyclopedia-category div {
	flex: 1;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.psi-explore-the-psi-encyclopedia-category div:first-child {
	flex: 1;
	text-align: left;
	padding: 1rem;
	background-color: transparent;
}

.psi-explore-the-psi-encyclopedia-category div:first-child h3 a {
	font-size: 1.8rem;
	color: var(--link-colour);
}

.psi-explore-the-psi-encyclopedia-category div:first-child p {
	font-size: 1.125rem;
	padding: 0;
	line-height: 1.5rem;

}

/* Category pages */
#psi-category-page-articles {
	display: grid;
	gap: 20px;
	grid-template-rows: auto;
	margin-top: 2rem;
}

#psi-category-page-articles h3 {
	font-weight: 600;
}

#psi-category-page-articles h3, 
#psi-category-page-articles p {
	padding: 12px 12px 0;
} 

@media all and (min-width: 1200px) {
	#psi-category-page-articles {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr !important;
	}

}
@media all and (min-width: 992px) {
	#psi-category-page-articles {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
	#psi-category-page-articles div img {
		height: 150px;
	}
}	

@media all and (max-width: 991px) {
	#psi-category-page-articles {
		grid-template-columns: 1fr 1fr;
	}
	#psi-category-page-articles div img {
		height: 200px;
	}
}

@media all and (min-width: 769px) and (max-width: 991px) {
	.site-footer-section-3 {
		width: 450px;
	}
}

@media (max-width: 768px) {
	footer .ast-builder-grid-row-container.ast-builder-grid-row-mobile-full .ast-builder-grid-row {
        grid-template-columns: 1fr;
    }
    .site-primary-footer-wrap[data-section="section-primary-footer-builder"].ast-footer-row-mobile-stack .site-footer-section {
        margin-left: 1rem;
    }
	.site-footer-section-3 {
		width: 100%;
	}
}

@media all and (max-width: 576px) {
	#psi-category-page-articles {
		grid-template-columns: 1fr !important;
	}
}

#psi-category-page-articles div {
	overflow: hidden;
}

#psi-category-page-articles div img {
	width: 100%;
	object-fit: cover;
}

/* ------------------------------------- */


/* CONTRIBUTORS PAGE */
body.author #content>.ast-container {
	display: block !important;
	margin-top: 40px;
}

ul.psi-contributors {
	list-style-type: none;
}

ul.psi-contributors li {
	margin-top: 1.75em;
}

ul.psi-contributors h3 {
	margin-bottom: 0.4em;
}

/* ARTICLE INFORMATION BLOCK */
body.single-articles #secondary {
	margin-top: 14px;
	padding-left: 32px;
}

.psi-article-information h2 {
	background-color: #a9b5c4;
	color: #000 !important;
	padding: 0.25rem 0;
	text-align: center;
	text-transform: uppercase;
	font-weight: 300;
	margin-bottom: 15px;
	font-size: 1.2rem !important;
}

.psi-article-information p, 
.psi-article-information li, 
.psi-article-information figcaption {
	margin-bottom: 0;
	padding-bottom: 0;
	line-height: 1.5rem;
	font-size: 1rem;
}

.psi-article-information-img {
	margin: 22px 0;
}

.psi-article-information hr {
	margin: 1em 0 !important;
}

.psi-article-information-citation {
	word-wrap: break-all;
}

/* adding space under the citation label */
.psi-article-information-citation span {
	display: block;
	margin-top: 0.4rem; 
}

.psi-article-information-sidebar-images {
	text-align: center;
}

.psi-article-information-sidebar-images-item {
	margin-bottom: 30px;
}

.psi-article-information-sidebar-images-item img {
	width: 100%;
	height: auto;
}

.psi-article-information-sidebar-images-mobile {
	display: none;
}

@media all and (max-width: 576px) {
	.psi-article-information-sidebar-images {
		display: none;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
		border-top: 1px solid #ccc;
	}

	.psi-article-information-sidebar-images-mobile {
		display: block;
		margin: 20px 0;
		text-align: center;
	}

	.psi-article-information-sidebar-images-mobile img {
		width: 100%;
		height: auto;
	}
}

body.category #primary h1.entry-title,
header.entry-header .entry-title {
	font-weight: 400;
	font-size: 2.75rem !important;
	color: #333;
}

#psi-articles-a-z {
	list-style-type: none;
}

.psi-articles-a-z-newGroup {
	margin-top: 20px;
}

/* Border radius and box shadow on article excerpts */
.psi-featured-article,
.psi-featured-article img,
#psi-key-topics div,
#psi-key-topics div img,
#psi-recent-additions div,
#psi-recent-additions div img,
.psi-explore-the-psi-encyclopedia-category div,
.psi-explore-the-psi-encyclopedia-category div img,
.psi-category-page-article,
.psi-category-page-article img {
	border-radius: 8px;
}

.psi-featured-article,
#psi-key-topics div,
#psi-recent-additions div,
.psi-explore-the-psi-encyclopedia-category div,
.psi-category-page-article {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding:0;
	border: 0;
}

#psi-featured-articles,
#psi-key-topics,
#psi-recent-additions,
.psi-explore-the-psi-encyclopedia-category,
.psi-category-page {
	margin-bottom: 50px;
}

.psi-featured-article h3,
#psi-key-topics div h3,
#psi-recent-additions div h3,
.psi-explore-the-psi-encyclopedia-category h4 {
	margin: 10px 0;
	font-size: 1.2rem !important;
	text-align: left !important;
	padding: 0 1rem;
}

.psi-featured-article p,
#psi-key-topics div p,
#psi-recent-additions div p,
.psi-explore-the-psi-encyclopedia-category p {
	padding: 0 1rem;
}

/* OFF-CANVAS MENU */
#ast-mobile-site-navigation .main-header-menu {
	margin: 1.5rem 0 1rem 0;
}

#ast-mobile-site-navigation .main-header-menu>li {
	border-bottom: 1px solid #eee;
	font-size: 1.1rem;
	font-weight: 600;
}


/* Sub-menu items */
#ast-mobile-site-navigation .main-header-menu .sub-menu li {
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	border-bottom: 1px dotted #ddd;
}

#ast-mobile-site-navigation .main-header-menu .sub-menu li a span.ast-icon.icon-arrow {
	display: none;
}

/* Buttons */

.btn-container {
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.btn-container a.btn.button {
	margin: 0.5rem;
	font-size: 1.5rem;
}

/* Search Page */
.search-results h1.page-title.ast-archive-title {
	font-weight: 600;
	font-size: 2rem !important;
	color: #000000;
	border-bottom: 4px solid var(--link-colour);
	text-decoration-color: var(--link-colour);
}

.search-results h1.page-title.ast-archive-title span {
	font-size: 2rem !important;
}

.search-results .ast-blog-layout-4-grid .ast-article-inner {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	position:relative;
}

.search-results .ast-blog-layout-4-grid .ast-grid-common-col {
	position: unset;
	padding-bottom: 3rem;
}

.search-results .ast-blog-layout-4-grid .post-content>.read-more {
	margin: 0.25rem;
}

.search-results .ast-blog-layout-4-grid h2 {
	font-size: 1.2rem !important;
	color: var(--link-colour);
}

.search-results .ast-blog-layout-4-grid h2 a {
	color: var(--link-colour);
}

.ast-read-more-container.read-more a {
	position: absolute;
	bottom: 1.25rem;
	color: #ffffff;
	border-color: var(--ast-global-color-0);
	background-color: var(--ast-global-color-0);
	padding: 6px 40px;
}

.search-results .ast-taxonomy-container a, 
.search-results .ast-blog-meta-container {
	font-size: 15px;
}

.search-results .ast-taxonomy-container a { 
	color:#3f3f3f;
}

.search .entry-header {
	margin-bottom: 0.5em;
}

.search-results .psi-search-result {
	max-width: 768px;
	margin-bottom: 1.5rem;
	.entry-title {
		line-height: 1rem;
	}
	p .excerpt_part {
		display: block;
	}
}

/* Links Library and Contributors page */
body.page-id-23 .ast-article-single,
body.page-id-2575 .ast-article-single {
	max-width: 768px;
	margin-bottom: 1.5rem;
}