/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/




/* ====== TYPOGRAPHY STYLES ====== */

/* Base font for body */
body {
  /*font-family: "Inter", "Helvetica Neue", Arial, sans-serif;*/
  font-size: 16px;
  line-height: 1.7;
  color: #222; /* Dark grey for better readability */
  margin: 0;
  padding: 0;
}

/* Paragraphs */
p {
  margin-bottom: 1.2em;
  font-size: 1rem; /* 16px base */
}

/* Headings default styles */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.2em 0 0.6em;
  color: #111; /* Darker for contrast */
}

/* Desktop Typography (≥ 992px) */
@media (min-width: 992px) {
  h1 { font-size: 2.45rem; }  /* ~44px */
  h2 { font-size: 2.25rem; }  /* ~36px */
  h3 { font-size: 1.75rem; }  /* ~28px */
  h4 { font-size: 1.5rem; }   /* ~24px */
  h5 { font-size: 1.25rem; }  /* ~20px */
  h6 { font-size: 1.125rem; } /* ~18px */
  p  { font-size: 1.125rem; } /* ~18px for better readability */
}

/* Tablet & Mobile Typography (≤ 991px) */
@media (max-width: 991px) {
  h1 { font-size: 2rem; }     /* ~32px */
  h2 { font-size: 1.75rem; }  /* ~28px */
  h3 { font-size: 1.5rem; }   /* ~24px */
  h4 { font-size: 1.25rem; }  /* ~20px */
  h5 { font-size: 1.125rem; } /* ~18px */
  h6 { font-size: 1rem; }     /* ~16px */
  p  { font-size: 1rem; }     /* ~16px */
}

/* Extra small devices (≤ 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }  /* ~28px */
  h2 { font-size: 1.5rem; }   /* ~24px */
  h3 { font-size: 1.25rem; }  /* ~20px */
  h4 { font-size: 1.125rem; } /* ~18px */
  h5 { font-size: 1rem; }     /* ~16px */
  h6 { font-size: 0.95rem; }  /* ~15px */
  p  { font-size: 0.95rem; }  /* ~15px */
}




.tags-section {
	margin: 25px 0;
}

.tag-text {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-right: 10px;
}

.tag-badge {
	display: inline-block;
	background: #000000;
	color: white;
	padding: 5px 12px;
	margin: 3px 5px 3px 0;
	border-radius: 15px;
	font-size: 12px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.tag-badge:hover {
	background: #121212;
	color: white;
	text-decoration: none;
}


.entry-title-post {
	line-height: 1.2;
	margin: 15px 0px 15px 0px;
	font-weight: 600;

}

@media (min-width:768px){
	.entry-title-post{margin: 12px 0px 12px 0px;}
}


.post-thumbnail {
	margin-bottom: 20px;
}

.post-thumbnail img {
	max-width: 100%;
	height: auto;
	display: block;
}

.entry-excerpt-post {
	font-size: 16px;
	font-weight: 600;
	color: #444;
	margin: 12px 0px 12px 0px;
	line-height: 1.5;
}

.entry-meta-post {
	margin-bottom: 16px;
	padding: 10px 0;
	color: #777;
	font-size: 13px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.reading-time {
	background: #f0f8ff;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	color: #0073aa;
	font-weight: 500;
}

.updated-date {
	color: #e67e22;
	font-weight: 500;
}


.nav.breadcrumb{
    font-size: 12px!important;
}

.post-navigation-enhanced {
	margin: 40px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

.nav-links-enhanced {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.nav-item {
	flex: 1;
	max-width: 48%;
}

.nav-item a {
	display: block;
	padding: 15px;
	background: white;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}


.nav-previous{
    text-align: left;
}

.nav-next{
    text-align: right;
}



.nav-item a:hover {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0,115,170,0.1);
	text-decoration: none;
}

.nav-subtitle {
	font-size: 12px;
	color: #666;
	font-weight: 600;
	margin-bottom: 5px;
	display: block;
}

.nav-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
}

.author-section {
	background: #fff;;
	padding: 25px;
	margin: 30px 0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.author-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #ccc;
	flex-shrink: 0;
}

.author-info > div:first-child {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #333;
	font-weight: 600;
}

.author-bio {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.related-posts {
	margin: 40px 0;
}

.related-posts > div:first-child {
	font-size: 20px;
	margin-bottom: 25px;
	color: #333;
	font-weight: 600;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
}

.related-item {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}

.related-item:hover {
	transform: translateY(-2px);
}

.related-thumb {
	width: 100%;
	height: 180px;
	background: #f0f0f0;
	position: relative;
	overflow: hidden;
}

.related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-content {
	padding: 20px;
}

.related-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.related-title a {
	color: #333;
	text-decoration: none;
}

.related-title a:hover {
	color: #0073aa;
	text-decoration: none;
}

.related-meta {
	font-size: 12px;
	color: #666;
	margin-bottom: 10px;
}

.related-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 768px) {
	.entry-meta-post {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.nav-links-enhanced {
		flex-direction: column;
	}
	
	.nav-item {
		max-width: 100%;
	}
	
	.author-section {
		flex-direction: column;
		text-align: center;
	}
	
	.related-grid {
		grid-template-columns: 1fr;
	}
	
	.tags-section {
		flex-direction: column;
		align-items: flex-start;
	}
}



/* content.php */


/* Featured post */
.featured-post {
  margin-bottom: 30px;
}
.featured-post img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.featured-content {
  padding: 15px 0;
}
.featured-content h2 {
  font-size: 28px;
  margin: 10px 0;
}
.featured-content p {
  color: #444;
  font-size: 16px;
}

/* Smaller posts list */
.latest-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.latest-item .thumb {
  flex: 0 0 150px;
}
.latest-item img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.latest-info {
  flex: 1;
}
.latest-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.latest-info p {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}
.latest-info .meta {
  font-size: 12px;
  color: #777;
}

