/*
Theme Name: Agribution Theme
Theme URI: http://agribution.com
Description: Custom Agribution theme
Author: Adrian Trimble
Version: 1
*/


* {
	vertical-align: baseline;
	font-weight: inherit;
	font-family: inherit;
	font-style: inherit;
	font-size: 100%;
	border: 0 none;
	outline: 0;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
}

/*

"Grid" System

*/

.site-body {
	max-width: 1140px;
	margin: 0 auto;
	padding: 3em;
}


/* End Grid */

/* For using media queries in JS */
body:before {
	content: "mobile";
	display: none;
	/* Prevent from displaying. */
}

@media (min-width: 800px) {
	body:before {
		content: "desktop";
	}
}

/*

Wordpress Image Styles

*/

.aligncenter,
div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.wp-caption {
	background-color: #f3f3f3;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin: 10px;
	padding-top: 4px;
	text-align: center;
}

.wp-caption img {
	border: 0 none;
	margin: 0;
	padding: 0;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

img.alignright {
	margin: 0 0 1em 1em
}

img.alignleft {
	margin: 0 1em 1em 0
}

a img.alignright {
	float: right;
	margin: 0 0 1em 1em
}

a img.alignleft {
	float: left;
	margin: 0 1em 1em 0
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto
}

/* End wordpress image styles*/


/*

Basic styling

*/

body {
	font-size: 62.5%;
	-webkit-font-smoothing: antialiased;
	font-family: "usual", sans-serif;
	color: #7a7a7a;
	background-color: #fff;
}

strong,
b {
	font-weight: bold;
}

em,
i {
	font-style: italic;
}

p,
ul,
ol,
address {
	margin-bottom: 1.2em;
	font-size: 1.6em;
	line-height: 1.7;
}

ul,
ol {
	margin-left: 2.2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 0.9em;
	font-weight: bold;
	line-height: 1.2;
}

h1 {
	font-size: 4.6em;
}

h2 {
	font-size: 3.8em;
	font-weight: 600;
	color: black;
	margin-bottom: 0.5em;
}

h3 {
	font-size: 3.2em;
	color: #bd1f2d;
	font-weight: 300;
	margin-bottom: 0.2em;
}

h4 {
	font-size: 2.2em;
}

h5 {
	font-size: 2em;
	font-weight: 600;
	color: black;
	margin-bottom: 0.7em;
}

h6 {
	font-size: 1.6em;
}

a {
	color: #000;
	text-decoration: none;
	-webkit-transition: 0.1s ease;
	transition: 0.1s ease;
}

a:hover,
a:focus {
	color: #bc1f2c;
}

img {
	display: block;
}

small {
	font-size: 0.8em;
}

hr {
	border-top: 1px solid #d1d1d1;
	margin: 4em 4em 5em;
}

#site-header {
	background-color: white;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	position: relative;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

#site-logo {
	min-width: 230px;
	min-height: 50px;
	max-width: 300px;
	padding: 2em;
}

#site-logo img {
	width: 100%;
	height: auto;
}

#site-nav {
	height: 100%;
	flex-grow: 1;
	width: 100%;
}

#site-nav ul {
	list-style: none;
	margin: 0;
	font-size: 1.8em;
	width: 100%;
}

#site-nav>ul {
	display: none;
	text-align: center;
	padding-bottom: 1em;
}

#site-nav>ul>li {
	display: block;
	padding: 0 0.6em;
}

#site-nav>ul>li.menu-item-has-children>ul>li.menu-item-has-children>a {
	color: #bd1f2d;
	font-weight: bold;
}

#site-nav ul li.menu-item-has-children>a {
	position: relative;
}

#site-nav>ul>li.menu-item-has-children>a::after {
	content: "\f107";
	display: inline-block;
	font-family: FontAwesome;
	padding-left: 0.5em;
}

#site-nav ul.sub-menu {
	font-size: 1em;
	padding: 0 0 1em;
}

ul.sub-menu>li>a {
	font-weight: bold;
}

#site-nav ul li a {
	color: #545454;
	font-weight: 400;
}

/*#site-nav ul li.current-menu-item > a { color: #bc1f2c; }*/
#site-nav ul li a:hover,
#site-nav ul li a:focus {
	color: #bc1f2c;
	text-decoration: none;
}

body.menu-open {
	overflow: scroll;
}

body.menu-open header {
	min-height: 100vh;
}

/* -- Mobile Menu Toggle -- */
.menu-toggle {
	cursor: pointer;
	height: 22px;
	width: 22px;
	position: absolute;
	z-index: 2;
	margin-bottom: 2em;
	top: 23px;
	right: 20px;
	/*top: calc(50% - 11px);
  right: 2em;*/
}

.menu-toggle span {
	background-color: #545454;
	height: 2px;
	left: 0;
	margin-top: -1px;
	position: absolute;
	top: 50%;
	width: 22px;
	/*	transition: transform 0.33s;*/
}

.menu-toggle span::before,
.menu-toggle span::after {
	background-color: #545454;
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	width: 100%;
}

.menu-toggle span::before {
	top: -8px;
	/*	transition: top 0.33s $easeInOutQuart 0.125s, opacity 0.33s $easeInOutQuart;*/
}

.menu-toggle span::after {
	bottom: -8px;
	/*	transition: bottom 0.33s $easeInOutQuart 0.125s, transform 0.33s $easeInOutQuart;*/
}

.slider {
	width: 100%;
}

.slider img {
	width: 100%;
	height: auto;
	position: relative;
	min-height: 250px;
	-o-object-fit: cover;
	object-fit: cover;
}

.slider-text {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	color: white;
	background-color: rgba(255, 0, 0, 0.2);
	mix-blend-mode: screen;
}

.slider-text h2 {
	color: white;
	font-size: 3.6em;
	text-transform: uppercase;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	text-shadow: 0px 0px 5px rgba(255, 0, 0, 0.5);
	text-align: center;
}


.button1 {
	color: #bc1f2c;
	border: 2px solid #bc1f2c;
	padding: 0.5em 0.6em;
	border-radius: 3px;
	display: inline-block;
}

.button1:hover,
.button1:focus {
	background-color: #bc1f2c;
	color: white;
}

.page-header {
	background-color: #bd1f2d;
	padding: 3em 1.6em;
}

.page-header h1 {
	font-size: 5em;
	text-align: center;
	line-height: 1;
	margin: 0;
	color: white;
	margin: 0;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
	padding: 0.5em 0.2em;
}

.page-header h2 {
	color: white;
	text-align: center;
}

.page-header.post-thumbnail {
	position: relative;
}

.page-header.post-thumbnail img {
	width: 100vw;
	margin: -3em -1.6em;
}

.page-header.post-thumbnail h1 {
	position: absolute;
	top: calc(50% - 1em);
	left: 0;
	right: 0;
	/* height: 100%; */
}

.content-header {
	color: #404040;
	font-size: 2.4em;
	font-weight: 600;
}

.fp-header {
	display: grid;
	grid-template-columns: auto 3em;
	grid-gap: 2em;
	padding: 3em 0;
}

.a-icon {
	width: 100%;
	display: none;
}

@media screen and (min-width: 600px) {
	.fp-header {
		grid-template-columns: auto 10em;
	}

	.content-header {
		font-size: 3.4em;
	}

	.a-icon {
		display: block;
	}

}

#main-content {
	padding: 4em 0 3em;
}

.home #main-content {
	text-align: center;
	font-size: 1.2em;
}

.latest-posts article.post {
	border-bottom: 1px solid #f1f1f1;
}

.latest-posts article.post:not(:last-child) {
	margin-bottom: 3em;
}

article.post.post-archives {
	border-bottom: 1px solid #f1f1f1;
	padding-bottom: 2em;
	margin-bottom: 4em;
}

.post-meta {
	font-size: 1.4em;
	color: #9f9f9f;
	font-style: italic;
}

.latest-posts article.post>h3 {
	font-size: 3em;
	font-weight: 200;
	margin-bottom: 0.3em;
}

.post-categories{
	margin-bottom: 0;
}


.latest-posts .moretag::after{
	content: "\f061";
	font-family: FontAwesome;
	position: absolute;
	right: -20px;
}

.post-categories a {
	font-size: 0.8em;
	text-transform: uppercase;
	color: #9f9f9f;
}

.post-categories a:hover,
.post-categories a:focus {
	color: #bc1f2c;
}

.moretag {
	display: inline-block;
	margin-top: 1em;
	padding-bottom: 0.2em;
	border-bottom: none;
	color: #bc1f2c;
	position: relative;
	font-weight: 550;
	transition: color 0.3s ease-in-out;
}

.moretag:hover,
.moretag:focus {
	color: #960915;
}

.see-all-button{
	display: flex;
	justify-content: flex-end;
	margin-top: 1em;
	text-transform: uppercase;
}
.see-all-button a{
	color: #bc1f2c;
	font-weight: 550;
	font-size: 1.7em;
	text-decoration: none;
	transition: color 0.3s ease-in-out;
}

.see-all-button a:hover,
.see-all-button a:focus{
	color: #960915;
}

.latest-learning{
	padding: 3em 0;
}

.latest-learning .posts{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid #f1f1f1;
}

.latest-learning .posts article{
  flex: 1 1 30%;
  margin: 1em 0;
}

.latest-learning .posts article h3{
  font-size: 1.5em;
  font-weight: 600;
  min-height: 3em;
}

.latest-learning .posts article a{
  font-size: 1.2em;
  font-weight: 600;
}

.latest-learning .posts article a:hover,
.latest-learning .posts article a:focus{
  color: #bc1f2c;
}

.latest-learning .posts article img{
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top center;
}
.latest-learning .posts article .moretag{
	color: #fff;
	background-color: #bc1f2c;
	padding: 0.5em 0.6em;
	display: inline-block;
	border: 1px solid #bc1f2c;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.latest-learning .posts article .moretag:hover,
.latest-learning .posts article .moretag:focus{
	background-color: #fff;
	color: #bc1f2c;
}

.section-header {
	text-align: left;
	font-size: 2em;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 600;
	color: #404040;
	border-bottom: 1px solid #f1f1f1;
	padding-bottom: 0.4em;
}

.none-found {
	text-align: center;
	font-style: italic;
	color: #c1c1c1;
}

.cta {
	background-color: #bd1f2d;
	color: white;
	font-size: 1.4em;
}

.cta div {
	max-width: 1140px;
	padding: 3em 2em;
	margin: 0 auto;
	text-align: center;
}

.cta div p:last-child {
	margin: 1em 0 0 1em;
}

.cta a {
	color: white;
	border: 2px solid white;
	padding: 0.5em 0.6em;
	border-radius: 3px;
}

.cta a:hover,
.cta a:focus {
	color: #bd1f2d;
	background-color: white;
}

.pillars {
	list-style: none;
	margin: 0 0 2em;
}

.pillars li {
	padding: 1em 0;
	display: grid;
	grid-template-columns: 3em auto;
	grid-gap: 1em;
}

.pillars img {
	height: auto;
	width: 100%;
	margin: 0 auto;
}

.pillar-title {
	font-weight: 600;
	display: block;
	color: #bd1f2d;
	font-size: 1.8em;
	text-transform: uppercase;
}

.pillar-desc {
	display: block;
	font-size: 0.8em;
	line-height: 1.7;
}

.pillar-image {
	display: block;
	margin: 0 -3em;
}

.pillar-image img {
	width: 100%;
}

@media screen and (min-width: 700px) {
	.pillar-section {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		grid-gap: 3em 5em;
	}

	.pillar-section .section-header {
		grid-column: 1 / 3;
	}

	.pillars .pillar-desc {
		font-size: 1em;
	}

	.pillar-image {
		margin: 0 0 2em;
		padding: 3em 2em;
	}
}

.products-grid {
	list-style: none;
	margin: 0;
	padding: 2em 0 1em;
}

.products-grid li {
	margin-bottom: 2em;
}

.product-logo {
	margin-bottom: 1em;
}

.product-logo img {
	height: auto;
	max-width: 300px;
	width: 80%;
}

.products-grid p {
	font-size: 1em;
}

.products-grid .summary {
	font-style: italic;
}

@media screen and (min-width: 800px) {

	.products-grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-gap: 2em;
	}

	.products-grid li {
		display: grid;
		grid-template-rows: 6em auto 9em auto;
	}
}

.pre-footer {
	padding: 3em;
}

.pre-footer>div {
	margin-bottom: 3em;
}

#site-footer {
	background-color: #e3e3e3;
	text-align: center;
	padding: 2em;
	color: #6f6f6f;
}

#site-footer p,
#site-footer ul {
	font-size: 1.3em;
	margin-bottom: 0;
}

#site-footer a {
	color: #545454;
}

#site-footer a:hover,
#site-footer a:focus {
	border-bottom: 1px solid #545454;
	text-decoration: none;
}

#site-footer ul {
	list-style: none;
	margin-left: 0;
}

.location-map {
	border: 1px solid #c1c1c1;
	margin-bottom: 2em;
}

#site-footer ul a {
	text-transform: none;
}

@media screen and (min-width: 800px) {
	#site-footer {
		display: grid;
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}

	#site-footer ul {
		text-align: right;
	}

	#site-footer ul li {
		display: inline-block;
		padding-left: 1em;
	}
}

.posts-nav {
	border-top: 1px solid #e9e9e9;
	padding: 1em 0 0 0;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
	font-size: 2em;
}

.products-page table,
.products-page thead,
.products-page tbody,
.products-page th,
.products-page td,
.products-page tr {
	display: block;
}

.products-page thead tr {
	position: absolute;
	top: -9999px;
	left: -9999px;
}

.products-page table {
	width: 100%;
	font-size: 1.8em;
	border-collapse: collapse;
	text-align: center;
}

.products-page table td.supplier-logo {
	font-weight: 600;
	padding: 0.8em;
	font-size: 1.2em;
}

.products-page table ul {
	font-size: 1em;
	list-style: none;
	margin: 0;
}

.products-page table ul li {
	padding: 0.4em 0;
	border-bottom: 1px solid #e9e9e9;
}

.products-page table ul li:last-child {
	border-bottom: none;
}

.products-page table tbody tr {
	border-bottom: 1px solid #e9e9e9;
}

.products-page tbody td:before {
	padding: 0.7em;
	display: block;
	background-color: #bd1f2d;
	font-size: 0.9em;
	font-weight: 600;
	border-radius: 4px;
	color: white;
	text-transform: uppercase;
}

.products-page tbody td:nth-of-type(2):before {
	content: "Swine";
}

.products-page tbody td:nth-of-type(3):before {
	content: "Dairy";
}

.products-page tbody td:nth-of-type(4):before {
	content: "Poultry";
}

.products-page tbody td.none:before {
	display: none;
}

/*

Products Page

*/

.products-page .category {
	margin-bottom: 4em;
}

.products-page .product-list {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.products-page .product-card {
	padding-left: 15px;
	padding-right: 15px;
	flex: 0 0 100%;
	max-width: 100%;
	margin-bottom: 2em;
}

.products-page .product {
	border: 2px solid #9f9f9f;
	border-radius: 3px;
	padding: 2em;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.products-page .product .content {
	flex-grow: 1;
}

.products-page .product .logo {
	height: 35px;
	width: auto;
	max-width: 100%;
}

.products-page .product h3 {
	margin-bottom: 0;
}

.products-page .product .summary {
	color: black;
	font-style: italic;
}

.products-page .product .meta {
	display: flex;
	justify-content: space-between;
}

.products-page .product .species {
	list-style: none;
	margin: 0;
}

.species li {
	display: inline-block;
	margin-right: 0.5em;
	height: 32px;
	/*	background-color: red;*/
	background-size: auto 32px;
	text-indent: -999em;
	color: transparent;
}

.species li.calf {
	background-image: url(images/species-calf-red.png);
	width: 26.75px;
}

.species li.dairy-cow {
	background-image: url(images/species-dairy-cow-red.png);
	width: 45px;
}

.species li.fish {
	background-image: url(images/species-fish-red.png);
	width: 53.25px;
}

.species li.poultry {
	background-image: url(images/species-poultry-red.png);
	width: 27px;
}

.species li.swine {
	background-image: url(images/species-swine-red.png);
	width: 46.5px;
}

.species li.piglet {
	background-image: url(images/species-piglet-red.png);
	width: 36.5px;
}

.products-page .product .formats {
	font-weight: 700;
	margin: 0;
}

.single-products .meta .formats {
	color: black;
	font-weight: 700;
}

.single-products .species {
	margin-left: 0;
	margin-bottom: 2em;
}

.single-products .meta .logo {
	max-width: 300px;
	width: 100%;
}

.single-products table {
	border-bottom: 1px solid #c1c1c1;
	border-collapse: collapse;
	font-size: 1.6em;
	line-height: 1.6;
	margin-bottom: 0.75em;
	width: 100%;
}

.single-products table th {
	padding: 0.25em 0.5em 0.5em;
}

.single-products table td {
	padding: 0.25em 0.5em;
}

.single-products table th {
	border-bottom: 1px solid #c1c1c1;
	text-align: left;
	font-weight: bold;
}

.single-products table tr:nth-child(2n+1) {
	background-color: #f1f1f1;
}

.single-products table tr:first-of-type {
	background: none;
}

.feed-table-conditions {
	font-size: 1.6em;
	font-style: italic;
}

@media screen and (min-width: 800px) {
	.single-products .page-header {
		padding: 5em 1.6em;
	}

	.single-products .page-header h1 {
		padding: 0;
	}

	.single-products #main-content {
		max-width: none;
		min-height: 400px;
		display: flex;
		padding-top: 6em;
	}

	.single-products .meta {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
		padding-right: 45px;
		text-align: right;
	}

	.single-products .meta img {
		max-width: 100%;
		border-bottom: 1px solid #c1c1c1;
		padding-bottom: 2em;
		margin-bottom: 2em;
	}
}

/*

Gravity Forms

*/

body .gform_wrapper .gform_body .gform_fields .gfield input[type=text],
body .gform_wrapper .gform_body .gform_fields .gfield textarea,
input[type=number] {
	border: 1px solid #c1c1c1;
	padding: 0.4em 0.4em;
	border-radius: 2px;
	font-size: 1.2em;
}

body .gform_wrapper .gform_body .gform_fields .gfield .gfield_description,
body .gform_wrapper .ginput_complex label {
	font-size: 0.75em;
	margin-bottom: 0;
}

body .gform_wrapper .gform_footer input[type=submit] {
	margin-top: 1px;
	background: none;
	-webkit-transition: 0.1s ease;
	transition: 0.1s ease;
	font-size: 2em;
	color: #bd1f2d;
	border: 2px solid #bd1f2d;
	padding: 0.4em 0.5em;
	border-radius: 2px;
	width: 98%;
}

body .gform_wrapper .gform_footer input[type=submit]:hover,
body .gform_wrapper .gform_footer input[type=submit]:focus {
	cursor: pointer;
	background-color: #bd1f2d;
	color: white;
}

body .gform_wrapper .gform_footer input[type=submit]:active {
	margin-bottom: 1px;
	margin-top: 0px;
}

body .gform_wrapper .top_label .gfield_label {
	margin: 0.7em 0 0;
	font-weight: normal;
}

body .gform_wrapper .gform_heading {
	margin: 0 0 0.5em;
	font-size: 1.6em;
}

body .gform_wrapper .gform_body ul li.gfield {
	margin-top: 2px;
}



/*

Media Queries

*/

@media screen and (min-width: 800px) {
	#site-header {
		display: grid;
		grid-template-columns: 1fr auto;
		height: 96px;
		position: fixed;
		transition: all 0.25s ease;
		top: 0;
		width: 100vw;
		z-index: 1000;
	}

	.header-scrolled #site-header {
		border-bottom: 1px solid #f1f1f1;
		height: calc(96px - 2em);
	}

	.header-scrolled #site-logo {
		padding: 1em 2em;
	}

	#site-logo {
		flex-basis: 25%;
		max-width: 300px;
	}

	#site-nav {
		display: grid;
		width: auto;
	}

	#site-nav>ul {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		padding: 0;
		text-align: right;
		width: auto;
	}

	#site-nav>ul {
		padding-left: 3em;
		padding-right: 3em;
	}

	#site-nav>ul>li {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	#site-nav>ul>li.menu-item-has-children:hover>ul {
		display: grid;
	}

	#site-nav>ul>li.menu-item-has-children>ul {
		background-color: #f1f1f1;
		border-top: 1px solid #f1f1f1;
		display: none;
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-gap: 2em;
		left: 0;
		padding: 3em;
		position: absolute;
		text-align: left;
		top: 100%;
		width: 100vw;
		z-index: 9999;
	}

	.menu-toggle {
		display: none;
	}

	.page-header,
	#slider {
		margin-top: 96px;
	}

	.header-scrolled .page-header,
	.header-scrolled #slider {
		margin-top: calc(96px - 2em);
	}

	.page-header h1 {
		font-size: 8em;
	}

	.latest-posts .posts {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}


	.latest-posts .post:first-child {
		margin-left: 0;
	}

	a div {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		-ms-flex-pack: center;
		justify-content: center;
	}

	.cta div p:last-child {
		margin: 0 0 0 1em;
	}

	.pre-footer {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-box-pack: center;
		-webkit-justify-content: center;
		-ms-flex-pack: center;
		justify-content: center;
		padding: 3em 1.5em;
	}

	.pre-footer>div {
		-webkit-flex-basis: 33.3333%;
		-ms-flex-preferred-size: 33.3333%;
		flex-basis: 33.3333%;
		padding: 0 1.5em;
		max-width: 380px;
	}

	.products-page td,
	.products-page tr {
		display: block;
	}

	.slider-text h2 {
		font-size: 6em;
	}

	.products-page table {
		display: table;
		text-align: left;
	}

	.products-page table td {
		display: table-cell;
		padding: 0.7em;
	}

	.products-page table tr {
		display: table-row;
	}

	.products-page table td.supplier-logo {
		padding-top: 0;
	}

	.products-page table thead {
		display: table-header-group;
	}

	.products-page table thead td:first-child {
		border-radius: 4px 0px 0px 4px;
	}

	.products-page table thead td:last-child {
		border-radius: 0px 4px 4px 0px;
	}

	.products-page table thead tr {
		position: static;
		background-color: #bd1f2d;
		font-size: 0.9em;
		font-weight: 600;
		color: white;
		text-transform: uppercase;
	}

	.products-page tbody {
		display: table-row-group;
	}

	.products-page tbody td:before {
		display: none;
	}

	.products-page .product-card {
		flex: 0 0 50%;
		max-width: 50%;
	}

}

/* Learning Centre Page Styles */
.page-intro{
	text-align: center;
	font-size: 1.2em;
}
.learning-centre-page .filter-section {
    margin-bottom: 3em;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 2em;
}

.learning-centre-page .species-filter {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
}

.species-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
	@media (max-width: 500px) {
		gap: 0.5em;
	}
}

.species-list li a {
    color: #9f9f9f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
	font-size: 0.8em;
}

.species-list li a:hover {
    color: #bc1f2c;
}

.species-list li.active a {
    color: #bc1f2c;
}

.species-list li.active a:hover {
    color: #960915;
}

.subspecies-select {
    margin-left: 2em;
    padding: 0.5em;
    border: 1px solid #c1c1c1;
    border-radius: 3px;
}

.topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
	@media (max-width: 500px) {
		gap: 0.5em;
	}
}

.topics-list li a {
    display: inline-block;
    padding: 0.5em 1em;
    background: #f1f1f1;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
	font-size: 0.8em;
}

.topics-list li a:hover {
    background: #f8e5e7;
    color: #bc1f2c;
}

.topics-list li.active a {
    background: #bc1f2c;
    color: white;
}

.topics-list li.active a:hover {
    background: #960915;
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.article-card {
    border-radius: 3px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5em 0;
}

.article-content h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.article-content img{
	width: 100%;
	height: auto;
	aspect-ratio: 3.2/1;
	object-fit: cover;
	object-position: center;
}

.read-more {
	color: #fff;
	background-color: #bc1f2c;
	padding: 0.5em 0.6em;
	display: inline-block;
	border: 1px solid #bc1f2c;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
	font-size: 1.2em;
    font-weight: 600;
}

.read-more:hover {
    background-color: #fff;
    color: #bc1f2c;
}

.pagination {
    margin-top: 3em;
    text-align: center;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .species-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-terms {
    margin-bottom: 0.5em;
}

.term-badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.species-badge {
    background-color: #f8e5e7;
    color: #bc1f2c;
}

.topic-badge {
    background-color: #f1f1f1;
    color: #666;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2em;
    background: #f8f8f8;
    border-radius: 3px;
}

.species-badge + .species-badge {
    margin-left: 0.5em;
}

.single-learning-article{
	.species-filter{
		.subspecies-select{
			display: none;
		}
	}
	.topics-filter{
		padding: 2em 0em;
	}
	.filter-section{
		border-bottom: 1px solid #f1f1f1;
		margin-bottom: 3em;
		padding-bottom: 2em;
	}
	.logo{
		width: 220px;
		height: auto;
		margin-bottom: 2em;
	}
}

.single-learning_center #site-header {
    display: none;
}