/*
Theme Name: Hello Elementor Child
Theme URI:  https://aheadmarketing.co.uk/
Description: Child theme of Hello Elementor — customisations go here.
Author: Ahead Marketing
Author URI: https://aheadmarketing.co.uk/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =Theme custom CSS
-------------------------------------------------------------- */

/* ==== ARCHIVE PAGE STYLING ==== */

/* === Full-width header / banner === */
.archive-header {
	width: 100vw;                            /* true full width */
	margin-left: calc(-50vw + 50%);          /* neutralise parent container */
	padding: 100px 20px;
	background-color: #030541;
	color: #ffffff;
	text-align: center;
	margin-bottom: 60px;
}

.archive-header-inner {
	max-width: 800px;
	margin: 0 auto;
}

.archive-title {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.archive-description {
	color: #d6d6d6;
	line-height: 1.6;
	max-width: 700px;
	margin: 0 auto;
}

/* === Grid layout === */
.archive-grid-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	align-items: stretch;
}

/* === Post card styling === */
.archive-card {
	background: #ffffff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.archive-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* === Featured image === */
.archive-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.no-thumb {
	background: #f0f0f0;
	height: 200px;
}

/* === Post content === */
.archive-card-content {
	flex-grow: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* Smaller, cleaner titles */
.archive-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 10px;
}

.archive-card-title a {
	text-decoration: none;
	color: #030541;
}

.archive-card-title a:hover {
	text-decoration: underline;
}

/* Uniform excerpts */
.archive-excerpt {
	color: #555;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-top: auto;
}

/* === Pagination === */
.archive-pagination {
	text-align: center;
	margin: 60px 0;
}

.archive-pagination .page-numbers {
	display: inline-block;
	margin: 0 6px;
	padding: 10px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: #030541;
	transition: background 0.2s ease, color 0.2s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
	background: #030541;
	color: #ffffff;
	border-color: #030541;
}

/* === Fallback text when no posts === */
.no-posts {
	text-align: center;
	font-size: 1.2rem;
	color: #666;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
	.archive-title {
		font-size: 1.8rem;
	}

	.archive-grid {
		gap: 30px;
	}

	.archive-card-title {
		font-size: 1rem;
	}
}

.archive-header .archive-title {
	color: #ffffff !important;
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.archive-card-title,
.archive-card-title a,
.archive-card h2.archive-card-title a {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: #030541 !important;
	text-decoration: none !important;
}

.archive-card-title a:hover {
	text-decoration: underline;
}

body.archive .archive-card {
	all: unset;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}