/*
Theme Name: OEC-Shop-News
Author: Sam Allen | OEC
Description: New Theme for Shop News
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-theme-name
*/

:root{
	--main-blue: #003c70;
	--light-blue: #1b9dd9;
	--footer:#F4F6FA;
}

*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}



@font-face {
    font-family: 'CustomInter';
    src: url('assets/fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}




body {
	font-family: 'CustomInter', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5{
	color: var(--main-blue);
	line-height: 1.2;
	margin-bottom: 1rem;
	font-weight: 700;
}

a{
	text-decoration: none;
}

a h1:hover, a h2:hover, a h3:hover{
	color: var(--light-blue);
}


p{
	color: black;
	margin-bottom: 1.25rem;
}



main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header{
	background: white;
	margin: 0 auto;
	max-width: 1200px;
	padding: 20px 0;
}

header .content{
	display: flex;
	justify-content: space-between;
}

header .content .main{
	display: flex;
    align-items: anchor-center;
	padding: 0 0 0 20px;
}

header .content .secondary{
	align-items: center;
    justify-content: end;
    display: flex;
	padding: 0 20px 0 0;
}


.main-logo {
    min-height: 30px;
	max-height: 80px;
    width: auto;
}

.fallback-logo{
	width: 200px;
	padding: 0 0 0 20px;
}





.cta{
	background: #2DC8D8;
	color: black;
	font-size: 16px;
	padding: 8px 20px;
	border-radius: 50px;
	border: 2px solid #2DC8D8;
}

.cta:hover{
	background: white;
	border: 2px solid var(--main-blue);
}


.arrow::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  vertical-align: middle;
  background-image: url('assets/img/arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
}




footer{
	background: var(--footer);
}

footer .content{
	width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;

}


footer .content{
	display: flex;
	justify-content: space-between;
}

footer .content .main{
	align-items: center;
    justify-content: start;
    display: flex;
}

footer .content .main img{
	max-height: 30px;
}

footer .content .secondary{
	align-items: center;
    justify-content: end;
    display: flex;
}

footer .content .secondary p{
	color: var(--main-blue);
}


	
.main-navigation {
    background: var(--main-blue);
    padding: 10px;
}

.nav-menu {
    list-style: none;
    padding: 0 0 0 20px;
    display: flex;
	width: 100%;
    max-width: 1200px;
    margin: 0 auto;
	
}

.nav-menu li {
    margin-right: 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
}

.nav-menu a:hover {
    text-decoration: underline;
}	



.hero-image{
	width: 100%;
	max-width: 640px;
}

.latest-post-summary{
	margin-bottom: 20px;
    border-bottom: 1px solid var(--main-blue);
    padding: 20px 0;
}

.latest-post-item {
		display: flex;
	margin-bottom: 20px;
    border-bottom: 1px solid var(--main-blue);
    padding: 20px 0;
	flex-wrap: wrap;
}


.category, .tag{
	display: inline-block;
	border: solid 2px #157DAC;
	border-radius: 10px;
	padding: 5px 15px;
	background: white;
	color: #157DAC;
	margin: 5px;
	font-size: 0.8rem;
	font-weight: 500;
}

.category:hover, .tag:hover{
	display: inline-block;
	border: solid 2px #157DAC;
	background: #157DAC;
	color: white;
}

.topics{
	margin: 20px 0;
}





.article{
	display: flex;
	margin-bottom: 20px;
    border-bottom: 1px solid var(--main-blue);
    padding: 20px 0;
	flex-wrap: wrap;
}

.article .thumbnail{
	flex: 1;
	margin-right: 20px;
}

.article .content{
	flex: 2;
}


.post-image{
	height: 500px;
    overflow: hidden;
    object-fit: cover;
}


.pagination{
	text-align: end;
	margin: 1.5rem 0;
	font-size: 1.2rem;
}

.page-numbers{
	padding: 0 5px;
}


.more-news{
	display: flex;
	justify-content: center;
	padding: 2rem 0;
}


header .content .mobile{
	display: none;
}


@media screen and (max-width: 650px){
	
	header .content{
		flex-direction: column;
		gap: 1rem;
	}
	
	
	header .content .main{
		display: none;		
	}
	
	header .content .mobile{
		display: flex;
		justify-content: center;
		padding: 0;
	}
	
	header .content .secondary{
		display: flex;
		justify-content: center;
		padding: 0;

	}
	
	header .content .mobile .mobile-logo{
		max-height: 80px;
	}
	
	header .content .mobile .fallback-mobile-logo{
		max-height: 50px;
	}

	
	.article .thumbnail{
		flex-basis: auto;	
	}
	
	.article {
		display: block;
	}
	

	
	footer .content{
		flex-wrap: wrap;
	    justify-content: center;
    	gap: 1rem;	
	}
}
