/**
 * =========================================================
 * AOGM BLOG LAYOUT
 * =========================================================
 */

.aogm-blog-layout {

	padding: 100px 0;
	
	background: #f7f7f7;

}

.aogm-blog-container {

	display: flex;
	align-items: flex-start;
	gap: 50px;

	max-width: 1140px;
	margin: 0 auto;
	
	/* Page gutter */
	padding: 0 15px;

}

.aogm-blog-content {

	flex: 1;
	min-width: 0;

}

.aogm-posts {

	display:flex;

	flex-wrap:wrap;

	margin:-15px;

}

/* Grid gutter */

.aogm-post-entry {
    
    display: flex;
    align-items: stretch;
    
    width: 100%;

	padding: 15px;

	box-sizing: border-box;
	
	align-items: stretch;

}

.aogm-posts.layout-1 .aogm-post-entry {

	width: 100%;

}

.aogm-posts.layout-2 .aogm-post-entry {

	width: 50%;

}

.aogm-posts.layout-3 .aogm-post-entry {

	width: 33.333333%;

}

.aogm-sidebar {

	flex: 0 0 280px;
	max-width: 280px;

	padding-top: 0px;
}

.aogm-posts.layout-3 .aogm-meta {

	display: flex;

	flex-direction: column;

	align-items: flex-start;

	gap: 10px;

}





/* =========================================================
   ARTICLE CARD
========================================================= */



.aogm-article-card {
    
    display: flex;

	flex-direction: column;

	width: 100%;

	position: relative;

	border-radius: 6px;

	overflow: hidden;

	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

	transition:
		transform .3s ease,
		box-shadow .3s ease;

}

.aogm-article-media {

	position: relative;

	aspect-ratio: 16 / 9 ;

	overflow: hidden;

}

.aogm-article-image {

	display: block;
	line-height: 0;
	overflow: hidden;

}

.aogm-article-thumbnail {

	width: 100%;
	height: 100%;

	object-fit: cover;

	display: block;

	transition: transform .4s ease;

}

.aogm-article-card:hover .aogm-article-thumbnail {

	transform: scale(1.05);

}

/* Card content padding */

.aogm-article-content {
    
    display: flex;

	flex-direction: column;

	flex: 1;

	padding: 10px;

}
.aogm-article-content > * {

	width: 100%;

}

/* =========================================================
   ARTICLE META
========================================================= */

.aogm-meta {

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 24px;

	margin-bottom: 12px;

}

.aogm-meta-speaker,
.aogm-meta-date {

	display: inline-flex;
	align-items: center;
	gap: 8px;

	max-width: 100%;
}



/* =========================================================
   SINGLE COLUMN
========================================================= */

.aogm-posts.layout-1 .aogm-meta {

	display: flex;
	align-items: center;
	justify-content: space-between;

}

/* =========================================================
   TWO COLUMN
========================================================= */

.aogm-posts.layout-2 .aogm-meta {

	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row;
	gap: 12px;

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {
    
	.aogm-posts.layout-2 .aogm-post-entry,
	.aogm-posts.layout-3 .aogm-post-entry {

		width: 100%;

	}    

	.aogm-posts .aogm-meta {

		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		gap: 12px;

	}

}

.aogm-meta-icon {

	width: 16px;
	height: 16px;

	flex-shrink: 0;

}

/* =========================================================
   ARTICLE TITLE
========================================================= */

.aogm-article-header {

	margin-bottom: 0px;

}


.aogm-article-title {
    
    min-height: 0px;

	margin: 0;

}

.aogm-posts.layout-1 .aogm-article-title {

	min-height: 0;
	
	margin: 0;

}
.aogm-posts.layout-2 .aogm-article-title {

	min-height: 72px;
	
	margin: 0;

}

.aogm-article-title a {

	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	overflow: hidden;
	text-overflow: ellipsis;

	color: inherit;

	text-decoration: none;

	transition: color .3s ease;

}


/* =========================================================
   ARTICLE EXCERPT
========================================================= */

.aogm-article-excerpt {
    
	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;

	overflow: hidden;
	text-overflow: ellipsis;

	margin-bottom: 0px;
    width: 100%;
}
.aogm-article-excerpt p {

	text-align: justify;

}

.aogm-article-excerpt p:last-child {

	margin-bottom: 0;

}

/* =========================================================
   READ MORE
========================================================= */


.aogm-read-more {

	display: inline-flex;
	align-items: center;
	gap: 8px;

	text-decoration: none;

	transition: .3s;

}

.aogm-read-more-icon {

	width: 18px;
	height: 18px;

	fill: currentColor;

	transition: transform .3s ease;

}

.aogm-read-more:hover .aogm-read-more-icon {

	transform: translateX(5px);

}

.aogm-article-footer {

	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-top: auto;

	padding-top: 22px;

}

.aogm-article-button {

	flex-shrink: 0;

}

.aogm-article-category a {

	text-decoration: none;

}
.aogm-category-separator {
    
    color: var(--aogm-primary-colour);

	display: inline-block;

	margin: 0 6px;

}

/* =========================================================
   SIDEBAR COMMON
========================================================= */

.aogm-sidebar > * {

	margin-bottom: 40px;

}

.aogm-sidebar > *:last-child {

	margin-bottom: 0;

}

.aogm-sidebar .wp-block-group:last-child {

	margin-bottom: 0;

}


/* =========================================================
   SIDEBAR TITLE
========================================================= */

.aogm-sidebar .widget-title {

	display: flex;
	align-items: center;

	margin: 0 0 25px;

}

.aogm-sidebar .widget-title::after {

	content: "";

	flex: 1;

	margin-left: 18px;

	height: 2px;

	background: var(--aogm-secondary-colour);

}

/* =========================================================
   SIDEBAR LIST
========================================================= */

.aogm-sidebar ul {

	margin: 0;
	padding: 0;

	list-style: none;

}

.aogm-sidebar li {

	margin-bottom: 16px;

}

.aogm-sidebar li:last-child {

	margin-bottom: 0;

}

/* =========================================================
   SEARCH WIDGET
========================================================= */

.aogm-sidebar .search-form,
.aogm-sidebar .aogm-search-form {

	position: relative;

	display: flex;
	align-items: center;

	width: 100%;

}

.aogm-sidebar .search-field,
.aogm-sidebar .aogm-search-field {

	width: 100%;
	height: 56px;

	padding: 0 70px 0 20px;

	border: 1px solid var(--aogm-border-colour);
	border-radius: 6px;

	background: var(--aogm-light-colour);

	outline: none;

	transition:
		border-color .3s ease,
		box-shadow .3s ease;

}

.aogm-sidebar .search-field:focus,
.aogm-sidebar .aogm-search-field:focus {

	border-color: var(--aogm-primary-colour);

}

.aogm-sidebar .search-submit,
.aogm-sidebar .aogm-search-submit {

	position: absolute;

	top: 50%;
	right: 8px;

	transform: translateY(-50%);

	display: flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	padding: 0;
	margin: 0;

	border: none;
	border-radius: 50%;

	background: var(--aogm-secondary-colour);

	color: var(--aogm-primary-colour);

	cursor: pointer;

	transition:
		background .3s ease,
		color .3s ease;

}

.aogm-sidebar .search-submit:hover,
.aogm-sidebar .aogm-search-submit:hover {

	background: var(--aogm-primary-colour);
	color: var(--aogm-light-colour);

}

.aogm-search-icon {

	width: 18px;
	height: 18px;

	flex-shrink: 0;

}



/* =========================================================
   CATEGORY WIDGET
========================================================= */


.aogm-category-list li {

	position: relative;

	display: flex;
	align-items: center;
	justify-content: space-between;

	margin: 0;
	padding: 3px 0;

	border-bottom: 1px solid var(--aogm-border-colour);

	transition:
		border-color .3s ease,
		padding-left .3s ease;

}

.aogm-category-list li:last-child {

	border-bottom: none;

}


/* =========================================================
   CATEGORY LINK
========================================================= */

.aogm-category-list a {

	display: flex;
	align-items: center;
	flex: 1;

	text-decoration: none;

	transition: color .3s ease;

}


/* =========================================================
   CATEGORY COUNT
========================================================= */

.aogm-category-count {

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 30px;
	height: 30px;

	padding: 0 10px;

	border-radius: 30px;
	
	position: relative;
	top: 6px;


    transition:
    	background-color .3s ease,
    	color .3s ease,
    	transform .3s ease;

}

.aogm-category-list li:hover .aogm-category-count {

	transform: scale(1.03);

}



/* =========================================================
   POSTS WIDGET
========================================================= */

.aogm-post-widget-item {
	display: flex;
	align-items: center;
	gap: 15px;
	
}

.aogm-post-widget-card {

	margin-bottom: 20px;

}

.aogm-post-widget-thumbnail {
	flex: 0 0 70px;
	width: 70px;
}

.aogm-post-widget-thumbnail-image {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
}

.aogm-post-widget-content {

	display: flex;
	flex-direction: column;

	flex: 1;
	min-width: 0;

}

.aogm-post-widget-title a {

	display: -webkit-box;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	overflow: hidden;
	text-overflow: ellipsis;

	color: inherit;

	text-decoration: none;

	transition: color .3s ease;
}

.aogm-post-widget-title a:hover,
.aogm-post-widget-title a:focus {
	text-decoration: none;
}

.aogm-post-widget-meta {

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;

	margin-top: 8px;

}

.aogm-post-widget-date,
.aogm-post-widget-speaker {

	display: inline-flex;
	align-items: center;
	gap: 6px;

}

/* =========================================================
   TAG CLOUD WIDGET
========================================================= */
.aogm-sidebar .tagcloud {

	display: flex;
	flex-wrap: wrap;
	gap: 8px;

}

.aogm-sidebar .tagcloud a {

	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 1px 14px;

	border-radius: 6px;

	box-sizing: border-box;

	text-decoration: none;
	

	transition:
		background-color .3s ease,
		color .3s ease;

}




/**
 * =========================================================
 * AOGM CONTENT PAGINATION
 * =========================================================
 */

.aogm-content-pagination {

	width: 100%;
	margin-top: 50px;

}

.aogm-content-pagination .navigation {

	display: flex;
	justify-content: center;

}

.aogm-content-pagination .nav-links {

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;

}

.aogm-content-pagination .page-numbers {

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 46px;
	height: 46px;

	padding: 0 16px;

	border-radius: 6px;

	box-sizing: border-box;

	text-decoration: none;

	transition:
		background-color .3s ease,
		color .3s ease;

}

.aogm-content-pagination .prev,
.aogm-content-pagination .next {

	padding: 0 20px;

}


.aogm-content-pagination .page-numbers {

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 46px;
	height: 46px;

	padding: 0 16px;

	border-radius: 6px;

	box-sizing: border-box;

	text-decoration: none;

	transition:
		background-color .3s ease,
		color .3s ease;

}

.aogm-content-pagination svg {

	display: block;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

	.aogm-blog-container {

		flex-direction: column;

	}

	.aogm-blog-content,
	.aogm-sidebar {

		width: 100%;
		flex: 1 1 100%;

	}

	.aogm-posts {

		margin: -10px;

	}
	
    .aogm-sidebar {

		flex: none;
		width: 100%;
		max-width: 500px;

		margin: 40px auto 0;

		padding: 0 15px;

		box-sizing: border-box;

	}


}