/* :root props */
:root {
	--fontDisplay: "Fraunces", serif;
	--bsBgLight: #F8F9FA;
	--primaryBlue: #304E9D;
	--lightGrey: #F1F2F3;
	--greyColor: #a7a7a7;
	--offBlack: #111;
}
/* Basic classes */
.flex-0 { flex: 0; }
.flex-1 { flex: 1; }

.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }

.h-30px { height: 30px; }
.h-40px { height: 40px; }
.h-50px { height: 50px; }
.h-75px { height: 75px; }
.h-100px { height: 100px; }
.h-200px { height: 200px; }
.h-300px { height: 300px; }

.w-30px { width: 30px; }
.w-40px { width: 40px; }
.w-50px { width: 50px; }
.w-75px { width: 75px; }
.w-100px { width: 100px; }
.w-200px { width: 200px; }
.w-300px { width: 300px; }

.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.-z-1 { z-index: -1; }
.-z-2 { z-index: -2; }

.bg-inherit { background: inherit; }
.bg-black, .hover\:bg-black:hover { background: var(--offBlack); }
.bg-blue { background: var(--primaryBlue); }
.bg-grey, .hover\:bg-grey:hover { background: var(--greyColor) !important; }
.bg-light-grey, .hover\:bg-light-grey:hover { background: var(--lightGrey) !important; }
.bg-none { background: none !important; }

.text-white, .hover\:text-white:hover { color: #FFF !important; }
.text-black { color: var(--offBlack); }
.text-blue { color: var(--primaryBlue); }
.text-grey { color: var(--greyColor); }

/* Hover text color classes */
@supports (color:color-mix(in lab, red, red)) {
	.hover\:text-grey:hover { color:color-mix(in oklab, var(--greyColor) 70%, transparent) }
	.hover\:text-black:hover { color: color-mix(in oklab, var(--offBlack) 70%, transparent) }
}

.col-gap-1 { column-gap: .25rem; }
.col-gap-2 { column-gap: .5rem; }
.col-gap-3 { column-gap: 1rem; }
.col-gap-4 { column-gap: 1.5rem; }
.col-gap-5 { column-gap: 3rem; }
.col-span-3 { grid-column: span 3/span 3; }
.col-span-6 { grid-column: span 6/span 6; }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.h-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}

/* Buttons */
.btn-default {
	align-items: center;
	border: 0;
	border-radius: 5px;
	color: var(--offBlack);
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	gap: .5rem;
	text-decoration: none;
	transition: background-color .3s ease-in-out, color .3s ease-in-out;
}
.btn-primary {
	background: var(--primaryBlue);
	color: #FFF;
}
.btn-primary:hover {
	background: hsl(from var(--primaryBlue) h s 25%);
}
/* Font classes */
.display {
	font-family: var(--fontDisplay);
	font-optical-sizing: auto;
	font-style: normal;
	font-variation-settings: "SOFT" 0, "WONK" 0;
}

.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }
.fs-30 { font-size: 30px; }

.fw-med { font-weight: 500; }
.fw-semi { font-weight: 600; }

/* Negative margin/padding utility classes */
.-mx-1 { margin-inline: -.25rem; }
.-mx-2 { margin-inline: -.5rem; }
.-mx-3 { margin-inline: -1rem; }
.-mx-4 { margin-inline: -1.5rem; }
.-mx-5 { margin-inline: -3rem; }
.-mx-6 { margin-inline: -5rem; }

.-my-1 { margin-block: -.25rem; }
.-my-2 { margin-block: -.5rem; }
.-my-3 { margin-block: -1rem; }
.-my-4 { margin-block: -1.5rem; }
.-my-5 { margin-block: -3rem; }
.-my-6 { margin-block: -5rem; }

.px-6 { padding-inline: 5rem; }
.py-6 { padding-block: 5rem; }

.container, .container-sm {
	max-width: 540px;
}

@media (min-width:768px) {
	.container, .container-md, .container-sm {
		max-width: 720px;
	}
}
@media (min-width:992px) {
	.container, .container-lg, .container-md, .container-sm {
		max-width: 960px;
	}
}
@media (min-width:1200px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl {
		max-width: 1140px;
	}
}
@media (min-width:1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
		max-width: 1320px;
	}
}

@media (min-width: 768px) {
	.md-hover\:bg-none:hover { background: none !important; }
	.md-hover\:bg-light:hover { background: var(--bsBgLight) !important; }

	.md\:mx-0		{ margin-inline: 0; }
	.md\:-mx-1		{ margin-inline: -.25rem; }
	.md\:-mx-2		{ margin-inline: -.5rem; }
	.md\:-mx-3		{ margin-inline: -1rem; }
	.md\:-mx-4		{ margin-inline: -1.5rem; }
	.md\:-mx-5		{ margin-inline: -3rem; }
	.md\:-mx-6		{ margin-inline: -5rem;}

	.md\:my-0		{ margin-block: 0; }
	.md\:-my-1		{ margin-block: -.25rem; }
	.md\:-my-2		{ margin-block: -.5rem; }
	.md\:-my-3		{ margin-block: -1rem; }
	.md\:-my-4		{ margin-block: -1.5rem; }
	.md\:-my-5		{ margin-block: -3rem; }
	.md\:-my-6		{ margin-block: -5rem; }
}

/* Flexbox utility classes */
@media (min-width: 768px) {
	.flex-md-0 { flex: 0; }
	.flex-md-1 { flex: 1; }

	.container-md-reset {
		margin: 0;
		max-width: 100%;
		padding: 0;
		width: auto;
	}
}

@media (min-width: 992px) {
	.posts {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.posts > article:nth-child(-n+3) {
		display: inline-grid;
	}
	.posts > article:nth-child(1) {
		grid-column: span 6 / span 6;
	}
	.posts > article:nth-child(2) {
		order: -1;
	}
	.posts > article:nth-child(2), .posts > article:nth-child(3) {
		grid-column: span 3 / span 3;
		padding-top: 4rem;
	}
	.posts > article:nth-child(2) h2, .posts > article:nth-child(3) h2 {
		font-size: 1.5rem;
		line-height: 1.2;
		margin-bottom: 1rem;
	}
	.posts > article:nth-child(2) .post-excerpt, .posts > article:nth-child(3) .post-excerpt {
		display: none;
	}
	.meta-author, .meta-date {
		font-size: 18px;
	}
	.posts > article:nth-child(2) .meta-author, .posts > article:nth-child(3) .meta-author,
	.posts > article:nth-child(2) .meta-date, .posts > article:nth-child(3) .meta-date {
		display: block;
		font-size: 16px;
	}
}

/* Default element classes */
h1 {
	font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fontDisplay);
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-variation-settings: "SOFT" 0, "WONK" 0;
}

strong {
	font-weight: 600;
}

/* BS classes */
.badge {
	font-weight: 500;
	text-decoration: none;
	z-index: 1;
}
.badge-sm {
	font-size: 12px;
	padding: .25rem .4rem;
}

.badge-md {
	font-size: 1em;
	padding: .5rem .75rem;
}
.badge-border {
	border: 1px solid;
}
.badge-text {
	background: inherit;
	color: inherit;
	padding: 0;
}

/* Navigation styles */
#nav-con:has(#navbarMenu)::after {
	background-color: rgba(0, 0, 0, 0.5);
	content: "";
	height: 100%;
	inset-inline: 0;
	opacity: 0;
	position: fixed;
	transition: all .5s ease-in-out;
	visibility: hidden;
	z-index: -1;
}

#nav-con:has(#navbarMenu.show)::after, #nav-con:has(#navbarMenu.collapsing)::after {
	opacity: 1;
	visibility: visible;
}

#navbarMenu {
	background: #FFF;
	border-top: 1px solid #e0e0e0;
	left: 0;
	margin-inline: -.75rem;
	position: absolute;
	right: 0;
	top: 100%;
	width: auto;
}

#navbarMenu > .container {
	align-items: center;
	display: grid;
	justify-content: stretch;
}

.nav-item {
	margin-block: .25rem;
	width: 100%;
}

.nav-feature {
	background: var(--lightGrey);
	border-radius: 10px;
	margin-block-end: 1rem;
	padding: 2rem;
}

.navbar-nav .nav-link {
	font-size: 18px;
	font-weight: 600;
	padding: .75rem;
}

.navbar-nav .nav-link span {
	align-items: center;
	display: flex;
	justify-content: space-between;
	position: relative;
}

.navbar-nav .nav-link i:before {
	color: var(--primaryBlue);
	font-size: 2rem;
	vertical-align: top;
}

.scale-in:before {
	background: var(--lightGrey);
	border-radius: 8px;
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transform: translateZ(0) scale(.8);
	transition: opacity .2s ease-in-out, transform .2s ease-in-out, visibility .2s ease-in-out;
	visibility: hidden;
	z-index: 0;
}

.scale-in:hover:before, .scale-in.active:before {
	opacity: 1;
	transform: translateZ(0) scale(1);
	visibility: visible;
}

#proadd {
	align-items: center;
	border: 0;
	border-radius: 5px;
	color: #FFF;
	display: flex;
	font-size: 15px;
	font-weight: 500;
	gap: 1rem;
	padding: .5rem 1rem;
}

#proadd i:before {
	color: #FFF;
	rotate: -45deg;
}

/* Menu styles */
#menu[open] {
	padding-bottom: .75rem;
}

#menu[open] svg {
	rotate: 180deg;
}

/* Article styles */
#articleIntro {
	padding-block: 1rem;
}

article img {
	opacity: 0;
	animation: showImage linear forwards;
	animation-timeline: view();
	animation-range: 0px 600px;
}
@keyframes showImage {
	to {
		opacity: 1;
	}
}

.article-title {
	color: #333;
	font-size: 2rem;
	line-height: 1.2;
}

.article-meta {
	font-size: 0.9rem;
}

.category-link {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding: 0.25rem 0;
	text-decoration: none;
	transition: background .1s ease-in-out, color .1s ease-in-out;
}

.article-content {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #444;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #333;
}

.article-content p {
	margin-bottom: 1.5rem;
}

.article-content img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
}

.article-content figure:has(img:only-child) {
	margin-inline: -1.5rem;
}

.featured-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
}

.nav-post {
	margin-bottom: .25rem;
}

.nav-label {
	display: block;
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 0.5rem;
}

.nav-title {
	display: block;
	font-weight: 600;
	color: #333;
	text-decoration: none;
}

.nav-title:hover {
	color: #007bff;
	text-decoration: none;
}

.blog-sidebar {
	top: 5rem;
}

.sidebar-widget {
	background: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 2rem;
}

.sidebar-widget h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #333;
}

.share-buttons a {
	margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
	.article-title {
		font-size: 4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	article img {
		animation: none;
		opacity: 1;
	}
}

/* Lower categories */
.lower-categories .category-link span:first-child {
	padding-right: 1rem;
}
.lower-categories .category-link span:last-child {
	padding-left: 1rem;
}
.lower-categories .category-link::after {
	border-top: 1px solid #CCC;
	content: "";
	inset: 1rem;
	position: absolute;
	top: 50%;
}

/* Main footer styles */
body > footer {
	background: var(--offBlack);
	color: var(--greyColor);
	padding: 2rem 0;
	text-align: center;
}

body > footer h4 {
	color: #FFF;
}


body > footer a {
 	color: #a7a7a7;
	text-decoration: none;
	margin-bottom: 0.25rem;
}

body > footer a:hover {
	color: #fff;
}

body > footer .page-links ul {
	list-style: none;
	margin: 0;
	padding-inline-start: 0;
}

body > footer .page-links a {
	margin-right: 1rem;
	display: inline-block;
	font-size: 15px;
}

body > footer .socials {
	display: flex;
	align-items: center;
	gap: 5px;
}

body > footer .socials a {
	height: 30px;
	width: 30px;
	display: inline-flex;
	border: 1px solid #a7a7a7;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	font-size: 16px;
	margin-right: 0.25rem;
}

body > footer .socials a:hover {
	border-color: white;
}

/* wp-block-table */
.wp-block-table {
	width: 100%;
	background: #f8f9fa;
	border-collapse: collapse;
}

.wp-block-table tr:first-child td {
	font-weight: 600;
	padding: .5rem 1rem;
}

/* Responsive styles */
@media (min-width: 576px) {
	#navbarMenu > .container {
		gap: 2rem;
		grid-template-columns: 1fr;
		grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr);
	}
	.nav-feature {
		margin-block: .25rem;
	}
	.article-content img:only-child {
		margin: 0;
		max-width: 100%;
	}
}
@media (min-width: 768px) {
	/* Default styles */
	.w-md-auto {
		width: auto !important;
	}
	/* Custom styles */
	#nav-con:has(#navbarMenu)::after {
		content: none;
		display: none;
	}
	#menu[open] {
		padding-bottom: 0;
	}
	#menu[open] > summary {
		display: none !important;
	}
	#navbarMenu {
		border: 0;
		margin-inline: 0;
		padding-inline: 0;
		position: static;
	}
	.nav-block {
		display: inline-flex;
	}
	.nav-feature {
		background: none;
		margin-block-end: 0;
		padding: 0;
	}
	.nav-item {
		display: inline-flex;
		margin-left: 1rem;
		width: auto;
	}
	.navbar-nav .nav-link {
		font-size: 15px;
	}
	#proadd {
		gap: .5rem;
	}
	#articleIntro {
		padding-block: 5rem;
	}
	.category-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.category-list {
		grid-template-columns: repeat(4, 1fr);
	}
	.lower-categories .category-link span:first-child {
		padding-right: .75rem;
	}
	.lower-categories .category-link span:last-child {
		padding-left: .75rem;
	}
}