/**
 * Archive Page Styles
 * Styles for archive, index, and search result pages
 */

/* Breadcrumbs */
.archive-breadcrumbs {
	margin-bottom: 1rem;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	gap: 0.5rem;
	justify-content: center;
	font-family: "Google Sans Flex";
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	line-height: 130%; /* 15.6px */
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.breadcrumb-item {
	display: flex;
	align-items: center;
}
.breadcrumb-item .separator {
	margin: 0 0 0 5px;
}

.breadcrumb-item a {
	color: #fff7e4;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.post-header .breadcrumb-item a {
	    color: var(--SMOKED, #6D240B);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
	opacity: 0.7;
	text-decoration: underline;
}

.breadcrumb-item .breadcrumb-current span {
	color: var(--wp--preset--color--smoked, #6D240B);
}

.breadcrumb-separator {
	margin: 0 0 0 10px;
	color: #FFF7E4;
}

/* Archive Header */
.archive-header {
	margin-bottom: 30px;
	background: var(--CORNFLOWER, #5B66C6);
	text-align: center;
	padding: 50px 20px;
	color: #FFF7E4;
	margin-bottom: 0;
}

.archive-header h1 {
	letter-spacing: 0.52px;
	color: #FFF7E4;
	margin: 0;
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 800;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.08rem;
}

.archive-title-section {
	margin-bottom: 37px;
	margin-top: 92px;
}

.archive-title-section h2 {
	margin: 0;
	color: var(--CORNFLOWER, #5B66C6);
	text-align: center;
	
/* H1 */
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 900;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.25rem;
}

/* Archive Grid */
.archive-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1320px;
	margin: 0 auto 50px;
	padding: 0 40px;
}

/* Post Card */
.archive-post-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.3s ease;
	position: relative;
	border-radius: 25px;
	overflow: hidden;
}
.archive-post-card a {
	text-decoration:none;
}

.archive-post-card:focus {
	outline: 2px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 2px;
}

.archive-post-card:hover,
.archive-post-card:focus {
	background-color: var(--wp--preset--color--cornflower, #5B66C6);
}
.archive-post-card:hover .archive-post-categories-overlay {
	opacity:1;
}
.archive-post-categories-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: 10px;
	opacity:0;
}

/* Post Image Container */
.archive-post-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 20/17;
	overflow: hidden;
	border-radius: 25px;
}

.archive-post-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

/* .archive-post-card:hover .archive-post-image-wrapper img,
.archive-post-card:focus .archive-post-image-wrapper img {
	transform: scale(1.05);
} */

/* Trending Badge */
.archive-post-trending-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	border-radius: 50px;
	background: #FFFB8B;
	display: flex;
	padding: 5px 10px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--SMOKED, #6D240B);
	text-align: center;
/* H6 */
	font-family: "Google Sans Flex";
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	line-height: 130%; /* 15.6px */
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.archive-post-card:hover .archive-post-categories-overlay,
.archive-post-card:focus .archive-post-categories-overlay {
	opacity: 1;
}

.archive-post-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.archive-post-categories-list li {
	color: white;
	margin-bottom: 0;
	border-radius: 50px;
	background: #5b66c6;
	display: flex;
	padding: 5px 10px 4px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
	line-height: 130%;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	border: 1px solid white;
	 
  
  /* 2. Apply the backdrop-filter property */
	backdrop-filter: blur(10px);
  
  /* 3. Include the vendor prefix for maximum compatibility, especially with older Safari versions */
	-webkit-backdrop-filter: blur(10px);
}

.archive-post-categories-list li:last-child {
	margin-bottom: 0;
}

/* Post Title */
.archive-post-title {
	padding: 15px 9px 25px;
	text-align: center;
}

.archive-post-title h3 {
	color: var(--wp--preset--color--smoked, #6D240B);
	margin: 0;
	transition: color 0.3s ease;
	font-family: "Perfectly Nineties";
	font-size: 26px;
	font-style: normal;
	font-weight: 300;
	line-height: 120%; /* 31.2px */
	letter-spacing: 0.52px;
}

.archive-post-card:hover .archive-post-title h3,
.archive-post-card:focus .archive-post-title h3 {
	color: #fff;
}

/* Pagination */
.archive-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
    margin: 50px 0 100px;
	flex-wrap: wrap;
}

.archive-pagination .page-numbers {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0;
    box-sizing: border-box;
    color: var(--wp--preset--color--smoked, #6D240B);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 100px;
    border: 2px solid var(--SMOKED, #6D240B);
    font-family: "Google Sans Flex";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 130%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers:focus {
	background-color: #FFC856;
	text-decoration: none;
}

.archive-pagination .page-numbers.current {
	background-color: #FFC856;
	cursor: default;
}

.archive-pagination .page-numbers.dots {
	cursor: default;
}

.archive-pagination .page-numbers.dots:hover,
.archive-pagination .page-numbers.dots:focus {
	background-color: transparent;
	color: var(--wp--preset--color--smoked, #6D240B);
}

/* Previous button with SVG icon */
.archive-pagination .page-numbers.prev {
	width: 32px;
	height: 32px;
	min-width: 32px;
	padding: 0;
	border: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg clip-path='url(%23clip0_274_1423)'%3E%3Cpath d='M16 1.45499C7.96672 1.45499 1.4545 7.96721 1.4545 16.0004C1.4545 24.0337 7.96672 30.5459 16 30.5459C24.0332 30.5459 30.5454 24.0337 30.5454 16.0004C30.5454 7.96721 24.0332 1.45499 16 1.45499Z' fill='%23FFC856'/%3E%3Cpath d='M16 10.1823L10.1818 16.0004L16 21.8186' fill='%23FFC856'/%3E%3Cpath d='M16 10.1823L10.1818 16.0004M10.1818 16.0004L16 21.8186M10.1818 16.0004L21.8181 16.0004M1.4545 16.0004C1.4545 7.96721 7.96672 1.45499 16 1.45499C24.0332 1.45499 30.5454 7.96721 30.5454 16.0004C30.5454 24.0337 24.0332 30.5459 16 30.5459C7.96672 30.5459 1.4545 24.0337 1.4545 16.0004Z' stroke='%236D240B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_274_1423'%3E%3Crect width='32' height='32' fill='white' transform='translate(32 32) rotate(-180)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 32px 32px;
	text-indent: -9999px;
	overflow: hidden;
}

.archive-pagination .page-numbers.prev:hover,
.archive-pagination .page-numbers.prev:focus {
	opacity: 0.8;
	transform: scale(1.05);
}

/* Next button with SVG icon */
.archive-pagination .page-numbers.next {
	width: 32px;
	height: 32px;
	min-width: 32px;
	padding: 0;
	border: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cg clip-path='url(%23clip0_274_1436)'%3E%3Cpath d='M16 30.545C24.0333 30.545 30.5455 24.0328 30.5455 15.9996C30.5455 7.96632 24.0333 1.4541 16 1.4541C7.96681 1.4541 1.45459 7.96632 1.45459 15.9996C1.45459 24.0328 7.96681 30.545 16 30.545Z' fill='%23FFC856'/%3E%3Cpath d='M16 21.8177L21.8182 15.9996L16 10.1814' fill='%23FFC856'/%3E%3Cpath d='M16 21.8177L21.8182 15.9996M21.8182 15.9996L16 10.1814M21.8182 15.9996H10.1819M30.5455 15.9996C30.5455 24.0328 24.0333 30.545 16 30.545C7.96681 30.545 1.45459 24.0328 1.45459 15.9996C1.45459 7.96632 7.96681 1.4541 16 1.4541C24.0333 1.4541 30.5455 7.96632 30.5455 15.9996Z' stroke='%236D240B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_274_1436'%3E%3Crect width='32' height='32' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 32px 32px;
	text-indent: -9999px;
	overflow: hidden;
}

.archive-pagination .page-numbers.next:hover,
.archive-pagination .page-numbers.next:focus {
	opacity: 0.8;
	transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
	.archive-posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.archive-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 500px) {
	.archive-title-section h2 {
		font-size:42px;
		letter-spacing:-0.1rem;
	}
	.archive-title-section {
	    margin-bottom: 25px;
	    margin-top: 50px;
	}
	.archive-posts-grid {
		padding:0;
		max-width:95%;
	}
	.archive-pagination {
	margin: 50px auto 50px;
	}
	.archive-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 14px;
	}
	.archive-post-title h3 {
		font-size:18px;
		padding:0;
	}
	.archive-post-trending-badge {top:10px;left:10px;font-size: 10px;letter-spacing: 1px;}
	.archive-header h1 {
font-size:42px;}
	.archive-header {
padding:25px 0;}
	.breadcrumb-list {
margin-bottom:0px;}
	.archive-breadcrumbs {
    margin-bottom: 10px;
}
}

/* Accessibility: Screen Reader Text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

