/* STC Resources Page Styles */

.stc-resources-page {
	background: #fff;
	padding: 40px 0 80px;
}

.stc-resources-page .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Page Header */
.stc-resources__page-header {
	margin-bottom: 40px;
	text-align: center;
}

.stc-resources__page-title {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
	margin: 0 0 16px 0;
	font-family: 'Inter', sans-serif;
}

.stc-resources__page-description {
	font-size: 18px;
	line-height: 28px;
	color: #6B7280;
	margin: 0;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Search and Filter Controls */
.stc-resources__controls {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 24px;
}

@media (max-width: 768px) {
	.stc-resources__controls {
		flex-direction: column;
		align-items: stretch;
	}
}

.stc-resources__search {
	flex: 1;
}

.stc-resources__search-input {
	width: 100%;
	height: 48px;
	padding: 12px 16px 12px 56px;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 40px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #111827;
	outline: none;
	transition: border-color 0.2s ease;
}

.stc-resources__search-input:focus {
	border-color: #6B7840;
}

.stc-resources__search-input::placeholder {
	color: #9CA3AF;
}

.stc-resources__search-wrapper {
	position: relative;
}

.stc-resources__search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #9CA3AF;
}

.stc-resources__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* Sort Dropdown */
.stc-resources__sort {
	position: relative;
}

.stc-resources__sort-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 12px 16px;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 40px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #111827;
	cursor: pointer;
	transition: all 0.2s ease;
}

.stc-resources__sort-btn:hover {
	border-color: #D1D5DB;
}

.stc-resources__sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 8px 0;
	display: none;
	z-index: 100;
}

.stc-resources__sort-menu.active {
	display: block;
}

.stc-resources__sort-item {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
	transition: background 0.2s ease;
}

.stc-resources__sort-item:hover {
	background: #F3F4F6;
}

.stc-resources__sort-item.active {
	background: #6B7840;
	color: #fff;
}

/* Filter Panel */
.stc-resources__filter-panel {
	background: #6B7840;
	border: 1px solid #556030;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	display: block;
	position: relative;
	overflow: hidden;
}

.stc-resources__filter-panel::after {
	content: '';
	position: absolute;
	top: 0;
	right: -5rem;
	width: 30rem;
	height: 100%;
	background-image: url('assets/css/CC%26E-Textures-Olive_Green-07_RGB.svg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
	opacity: 0.5;
	mix-blend-mode: overlay;
}

.stc-resources__filter-group {
	margin-bottom: 24px;
}

.stc-resources__filter-group:last-child {
	margin-bottom: 0;
}

.stc-resources__filter-title {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 12px 0;
	font-family: 'Inter', sans-serif;
}

.stc-resources__filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stc-resources__filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #FFFFFF;
	border: 1px solid #6B7840;
	border-radius: 20px;
	font-size: 14px;
	color: #6B7840;
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
}

.stc-resources__filter-tag:hover {
	background: #E7ECD9;
	color: #4F5A2F;
	border-color: #6B7840;
}

.stc-resources__filter-tag.active {
	background: #2F3A1E;
	border: none;
	color: #FFFFFF;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	padding-left: 12px;
}

.stc-resources__filter-tag.active::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FFFFFF;
	margin-right: 8px;
	flex-shrink: 0;
}

.stc-resources__filter-tag-text {
	line-height: 1;
}

/* Filter Info Icon */
.stc-resources__filter-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	color: inherit;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.stc-resources__filter-info:hover {
	opacity: 1;
}

.stc-resources__filter-info svg {
	width: 16px;
	height: 16px;
}

/* Filter Tooltip */
.stc-resources__filter-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #1F2937;
	color: #ffffff;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	white-space: normal;
	max-width: 280px;
	width: max-content;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 200;
	pointer-events: none;
}

/* Tooltip Arrow */
.stc-resources__filter-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1F2937;
}

/* Show tooltip on hover - hover over entire tag or just the info icon */
.stc-resources__filter-tag:hover .stc-resources__filter-tooltip,
.stc-resources__filter-info:hover .stc-resources__filter-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Increase info icon opacity when hovering over the tag */
.stc-resources__filter-tag:hover .stc-resources__filter-info {
	opacity: 1;
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
	.stc-resources__filter-tooltip {
		max-width: 240px;
		font-size: 12px;
	}
}

/* Country Filter Select */
.stc-resources__filter-select-wrapper {
	position: relative;
	max-width: 300px;
}

.stc-resources__filter-select {
	width: 100%;
	height: 48px;
	padding: 12px 40px 12px 16px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #111827;
	cursor: pointer;
	outline: none;
	appearance: none;
	transition: border-color 0.2s ease;
}

.stc-resources__filter-select:focus {
	border-color: #6B7840;
}

.stc-resources__select-icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #6B7280;
}

/* Country Multi-Select Dropdown */
.stc-country-multiselect {
	position: relative;
	max-width: 400px;
}

.stc-country-multiselect__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.stc-country-multiselect__trigger:hover {
	border-color: #D7ED94;
}

.stc-country-multiselect__trigger.active {
	border-color: #6B7840;
}

.stc-country-multiselect__placeholder {
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #374151;
}

.stc-country-multiselect__trigger svg {
	width: 16px;
	height: 16px;
	color: #6B7280;
	transition: transform 0.2s ease;
}

.stc-country-multiselect__trigger.active svg {
	transform: rotate(180deg);
}

.stc-country-multiselect__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: none;
	flex-direction: column;
	max-height: 400px;
	z-index: 100;
}

.stc-country-multiselect__dropdown.active {
	display: flex;
}

.stc-country-multiselect__search {
	padding: 12px;
	border-bottom: 1px solid #E5E7EB;
}

.stc-country-multiselect__search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	outline: none;
	transition: border-color 0.2s ease;
}

.stc-country-multiselect__search-input:focus {
	border-color: #6B7840;
}

.stc-country-multiselect__options {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	max-height: 280px;
}

.stc-country-multiselect__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
	font-size: 14px;
	color: #374151;
}

.stc-country-multiselect__option:hover {
	background: #F3F4F6;
}

.stc-country-multiselect__option.hidden {
	display: none;
}

.stc-country-multiselect__checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #6B7840;
}

.stc-country-multiselect__actions {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #E5E7EB;
}

.stc-country-multiselect__clear,
.stc-country-multiselect__apply {
	flex: 1;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.stc-country-multiselect__clear {
	background: transparent;
	border: 1px solid #E5E7EB;
	color: #6B7280;
}

.stc-country-multiselect__clear:hover {
	background: #F3F4F6;
	border-color: #D1D5DB;
}

.stc-country-multiselect__apply {
	background: #6B7840;
	color: #fff;
}

.stc-country-multiselect__apply:hover {
	background: #556030;
}

/* Filter Actions */
.stc-resources__filter-actions {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 16px;
}

.stc-resources__clear-filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stc-resources__clear-filters:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #fff;
}

.stc-resources__clear-filters svg {
	width: 16px;
	height: 16px;
}

/* Active Filters Display */
.stc-resources__active-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding: 16px;
	background: #F5F7F0;
	border: 1px solid #D7ED94;
	border-radius: 12px;
}

.stc-resources__active-label {
	font-size: 14px;
	font-weight: 500;
	color: #556030;
}

.stc-resources__active-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stc-resources__active-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #6B7840;
	border-radius: 20px;
	font-size: 13px;
	color: #fff;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stc-resources__active-tag:hover {
	background: #556030;
}

.stc-resources__active-tag svg {
	width: 14px;
	height: 14px;
}

/* Header */
.stc-resources__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.stc-resources__description {
	font-size: 16px;
	line-height: 24px;
	color: #6B7280;
	margin: 0;
}

.stc-resources__count {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #D7ED94;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #556030;
}

/* Grid */
.stc-resources__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

@media (max-width: 1024px) {
	.stc-resources__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.stc-resources__grid {
		grid-template-columns: 1fr;
	}
}

/* Resource Card */
.stc-resource-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #E5E7EB;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.stc-resource-card:hover {
	box-shadow: 0 8px 24px rgba(107, 120, 64, 0.15);
	transform: translateY(-2px);
	border-color: #6B7840;
}

.stc-resource-card__image {
	position: relative;
	width: 100%;
	height: 180px;
	background: linear-gradient(135deg, #D7ED94 0%, #F5F7F0 100%);
	overflow: hidden;
}

.stc-resource-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stc-resource-card__type {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	font-family: 'Inter', sans-serif;
}

.stc-resource-card__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.stc-resource-card__category {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(107, 120, 64, 0.1);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	color: #6B7840;
	margin-bottom: 12px;
	align-self: flex-start;
}

.stc-resource-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	color: #111827;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.stc-resource-card__title a {
	color: inherit;
	text-decoration: none;
}

.stc-resource-card__title a:hover {
	color: #6B7840;
}

.stc-resource-card__excerpt {
	font-size: 14px;
	line-height: 20px;
	color: #6B7280;
	margin: 0 0 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.stc-resource-card__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.stc-resource-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #F3F4F6;
	border-radius: 20px;
	font-size: 12px;
	color: #6B7280;
}

.stc-resource-card__tag::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #6B7840;
	border-radius: 50%;
}

.stc-resource-card__meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid #E5E7EB;
	margin-bottom: 16px;
	margin-top: auto;
}

.stc-resource-card__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6B7280;
}

.stc-resource-card__meta-item svg {
	width: 14px;
	height: 14px;
	color: #9CA3AF;
}

.stc-resource-card__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	background: transparent;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stc-resource-card__button:hover {
	background: #6B7840;
	border-color: #6B7840;
	color: #fff;
}

.stc-resource-card__button svg {
	width: 16px;
	height: 16px;
}

/* Pagination */
.stc-resources__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.stc-resources__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stc-resources__page-btn:hover {
	background: #F3F4F6;
	border-color: #6B7840;
}

.stc-resources__page-btn.active {
	background: #6B7840;
	border-color: #6B7840;
	color: #fff;
}

.stc-resources__page-btn.disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* No Results */
.stc-resources__no-results {
	text-align: center;
	padding: 60px 20px;
	color: #6B7280;
}

.stc-resources__no-results svg {
	margin-bottom: 24px;
}

.stc-resources__no-results h3 {
	font-size: 24px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 8px 0;
}

.stc-resources__no-results p {
	font-size: 16px;
	margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.stc-resources__page-title {
		font-size: 36px;
	}

	.stc-resources__page-description {
		font-size: 16px;
	}

	.stc-resources__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.stc-country-multiselect {
		max-width: 100%;
	}
}