.resources-archive {
	width: 100%;
	margin: 0 auto;
	font-family: inherit;
}

.resources-archive__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	margin-bottom: 5rem;
}

.resources-search {
	display: flex;
	gap: 0.75rem;
    width: 100%;
	max-width: 480px;
    padding: 10px;
    border: 1px solid rgb(126 128 132 / 80%);
    border-radius: 12px;
    margin: 0 auto;
}

.resources-search input {
	width: 100%;
	border: 1px solid transparent;
	padding: 0px;
	font-size: 16px;
	line-height: 1.5;
	background: transparent;
    color: #152A4A;
	/* box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04); */
}
.resources-search input[type=search]:focus {
	border: 1px solid transparent;
}

.resources-search :focus-visible {
    outline: none;
}

.resources-search button,
.resources-load-more {
	border: 0;
	border-radius: 8px;
	padding: 10px 30px;
	background: #1EA1F2;
	color: #fff;
    font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resources-search button:hover,
.resources-load-more:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.resources-tabs {
	display: flex;
    justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 3rem;
    padding: 10px;
    background: rgb(30 110 239 / 5%);
    border-style: solid;
    border-width: 1px 0px;
    border-color: #E3E8F0;
}

button.resources-tab {	
	background: transparent;
	color: #4B5563;
	padding: 0.7rem 1rem;
	font-weight: 600;
	cursor: pointer;
    border: 1px solid transparent;
}

.resources-tab:hover {
	background: #1E6FEF;
	color: #fff;
	border-color: #1E6FEF;
}

.resources-tab.is-active {
	background: #1E6FEF;
	color: #fff;
	border-color: #1E6FEF;
}

.resources-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
    max-width: 1240px;
    margin: 0 auto 5rem;
}

.resources-card {
	background: #fff;
	border: 1px solid #E3E8F0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.resources-card__image {
	overflow: hidden;
	background: #f8fafc;
}

.resources-card__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.resources-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	flex: 1;
}

.resources-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.resources-badge,
.resources-reading-time {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: #eff6ff;
	color: #1d4ed8;
}

.resources-card h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
	color: #152A4A;
}

.resources-card p {
	margin: 0;
	color: #4B5563;
    font-size: 14px;
	line-height: 1.5;
}

.resources-card__footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.9rem;
}

.resources-card__footer span:first-child {
    color: #45556C;
    font-weight: 500;
    font-family: 'inter', sans-serif;
}

.resources-card__footer span:last-child {
    color: #90A1B9;
}

.resources-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #475569;
	font-size: 1.1rem;
	font-weight: 600;
}

.resources-loading {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
	color: #2563eb;
	font-weight: 600;
}

.resources-loading__spinner {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.resources-loading__spinner::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 3px solid rgba(37, 99, 235, 0.2);
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: resources-spin 0.8s linear infinite;
}

.resources-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 1.75rem;
}

@keyframes resources-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 1024px) {
	.resources-grid {
        padding: 0 20px;
	}
}

@media (max-width: 768px) {

    .resources-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));     
	}

	.resources-archive__toolbar {
		flex-direction: column;
		align-items: stretch;
        padding: 0 20px;
	}	
	
}

@media (max-width: 480px) {

    .resources-grid {
		grid-template-columns: 1fr;
	}

}