/*
Theme Name: YouthPlug Opportunities
Theme URI: https://opportunities.youthplug.co.za
Author: YouthPlug
Author URI: https://youthplug.co.za
Description: A modern, professional, mobile-first WordPress theme designed specifically for the YouthPlug Opportunities Core plugin. Focused on internships, learnerships, bursaries, graduate programmes and youth opportunities for young South Africans.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youthplug-opportunities
Tags: opportunities, jobs, education, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables – Brand System
   ========================================================================== */
:root {
	--yp-primary: #0b3d91;
	--yp-primary-dark: #082c6b;
	--yp-primary-light: #1a56c4;
	--yp-accent: #f59e0b;
	--yp-text: #1a1a2e;
	--yp-muted: #5c6b7a;
	--yp-border: #e2e8f0;
	--yp-background: #f7f9fc;
	--yp-white: #ffffff;
	--yp-success: #059669;
	--yp-warning: #d97706;
	--yp-danger: #dc2626;
	--yp-radius: 8px;
	--yp-radius-sm: 4px;
	--yp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--yp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--yp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--yp-max-width: 1200px;
	--yp-header-height: 64px;
	--yp-transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--yp-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--yp-text);
	background-color: var(--yp-background);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--yp-primary);
	text-decoration: none;
	transition: color var(--yp-transition);
}

a:hover,
a:focus {
	color: var(--yp-primary-dark);
}

a:focus-visible {
	outline: 2px solid var(--yp-primary);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75em;
	line-height: 1.25;
	font-weight: 700;
	color: var(--yp-text);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.yp-container {
	width: 100%;
	max-width: var(--yp-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.yp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.yp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.625rem 1.25rem;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	border-radius: var(--yp-radius-sm);
	border: 1px solid transparent;
	transition: background-color var(--yp-transition), color var(--yp-transition), border-color var(--yp-transition);
	text-decoration: none;
	white-space: nowrap;
}

.yp-btn:focus-visible {
	outline: 2px solid var(--yp-primary);
	outline-offset: 2px;
}

.yp-btn-primary {
	background-color: var(--yp-primary);
	color: var(--yp-white);
	border-color: var(--yp-primary);
}

.yp-btn-primary:hover,
.yp-btn-primary:focus {
	background-color: var(--yp-primary-dark);
	color: var(--yp-white);
	border-color: var(--yp-primary-dark);
}

.yp-btn-secondary {
	background-color: var(--yp-white);
	color: var(--yp-primary);
	border-color: var(--yp-border);
}

.yp-btn-secondary:hover,
.yp-btn-secondary:focus {
	background-color: var(--yp-background);
	color: var(--yp-primary-dark);
	border-color: var(--yp-primary);
}

.yp-btn-outline {
	background-color: transparent;
	color: var(--yp-primary);
	border-color: var(--yp-primary);
}

.yp-btn-outline:hover,
.yp-btn-outline:focus {
	background-color: var(--yp-primary);
	color: var(--yp-white);
}

.yp-btn-lg {
	padding: 0.875rem 1.75rem;
	font-size: 1.0625rem;
}

.yp-btn-sm {
	padding: 0.375rem 0.875rem;
	font-size: 0.8125rem;
}

.yp-btn-block {
	display: flex;
	width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background-color: var(--yp-white);
	border-bottom: 1px solid var(--yp-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--yp-header-height);
}

.site-header .yp-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.site-logo img {
	max-height: 40px;
	width: auto;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	color: var(--yp-primary);
	line-height: 1.2;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	display: none;
}

/* Navigation */
.main-navigation {
	display: none;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--yp-text);
	border-radius: var(--yp-radius-sm);
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--yp-primary);
	background-color: rgba(11, 61, 145, 0.06);
}

/* Mobile menu toggle */
.menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--yp-text);
	border-radius: var(--yp-radius-sm);
}

.menu-toggle:hover,
.menu-toggle:focus {
	background-color: var(--yp-background);
}

.menu-toggle .hamburger {
	display: block;
	width: 22px;
	height: 2px;
	background-color: currentColor;
	position: relative;
	transition: background-color var(--yp-transition);
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	transition: transform var(--yp-transition);
}

.menu-toggle .hamburger::before {
	top: -7px;
}

.menu-toggle .hamburger::after {
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
	display: none;
	position: fixed;
	top: var(--yp-header-height);
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--yp-white);
	z-index: 999;
	overflow-y: auto;
	padding: 1rem;
	border-top: 1px solid var(--yp-border);
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav a {
	display: block;
	padding: 0.875rem 1rem;
	font-weight: 500;
	font-size: 1.0625rem;
	color: var(--yp-text);
	border-bottom: 1px solid var(--yp-border);
	text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav .current-menu-item > a {
	color: var(--yp-primary);
	background-color: rgba(11, 61, 145, 0.04);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.yp-hero {
	background: linear-gradient(135deg, var(--yp-primary) 0%, var(--yp-primary-dark) 100%);
	color: var(--yp-white);
	padding: 2.5rem 0 2rem;
	text-align: center;
}

.yp-hero h1 {
	font-size: 1.75rem;
	color: var(--yp-white);
	margin-bottom: 0.5rem;
}

.yp-hero .yp-hero-subtitle {
	font-size: 1rem;
	opacity: 0.9;
	margin-bottom: 1.5rem;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.yp-hero-search {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	gap: 0.5rem;
}

.yp-hero-search input[type="search"] {
	flex: 1;
	padding: 0.875rem 1rem;
	border: none;
	border-radius: var(--yp-radius);
	font-size: 1rem;
	min-width: 0;
}

.yp-hero-search input[type="search"]:focus {
	outline: 2px solid var(--yp-accent);
	outline-offset: 2px;
}

.yp-hero-search .yp-btn {
	flex-shrink: 0;
	background-color: var(--yp-accent);
	border-color: var(--yp-accent);
	color: var(--yp-text);
	font-weight: 700;
}

.yp-hero-search .yp-btn:hover,
.yp-hero-search .yp-btn:focus {
	background-color: #e08e0a;
	border-color: #e08e0a;
	color: var(--yp-text);
}

/* ==========================================================================
   Filters
   ========================================================================== */
.yp-filters-section {
	background-color: var(--yp-white);
	border-bottom: 1px solid var(--yp-border);
	padding: 1rem 0;
}

.yp-filters-form {
	display: none;
}

.yp-filters-form.is-open {
	display: block;
}

.yp-filter-toggle {
	display: flex;
	width: 100%;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background-color: var(--yp-primary);
	color: var(--yp-white);
	border-radius: var(--yp-radius);
	font-weight: 600;
	font-size: 0.9375rem;
}

.yp-filter-toggle:hover,
.yp-filter-toggle:focus {
	background-color: var(--yp-primary-dark);
	color: var(--yp-white);
}

.yp-filters-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.875rem;
	margin-top: 1rem;
}

.yp-filter-group label {
	display: block;
	font-weight: 600;
	font-size: 0.8125rem;
	margin-bottom: 0.25rem;
	color: var(--yp-text);
}

.yp-filter-group select,
.yp-filter-group input[type="search"],
.yp-filter-group input[type="text"] {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	background-color: var(--yp-white);
	color: var(--yp-text);
	appearance: auto;
}

.yp-filter-group select:focus,
.yp-filter-group input:focus {
	outline: 2px solid var(--yp-primary);
	outline-offset: 1px;
	border-color: var(--yp-primary);
}

.yp-filter-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: flex-end;
}

.yp-filter-actions .yp-btn {
	flex: 1;
	min-width: 120px;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.site-main {
	padding: 1.5rem 0 3rem;
}

.yp-content-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.yp-main-content {
	flex: 1;
	min-width: 0;
}

.yp-sidebar {
	flex-shrink: 0;
}

/* Results count */
.yp-results-count {
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 1rem;
	color: var(--yp-muted);
}

.yp-section-title {
	font-size: 1.375rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--yp-primary);
	display: inline-block;
}

/* ==========================================================================
   Opportunity Cards
   ========================================================================== */
.yp-opportunities-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.yp-opportunity-card {
	background-color: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-shadow: var(--yp-shadow);
	transition: box-shadow var(--yp-transition);
	position: relative;
}

.yp-opportunity-card:hover {
	box-shadow: var(--yp-shadow-md);
}

.yp-card-header {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.yp-card-logo {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: var(--yp-radius-sm);
	overflow: hidden;
	background-color: var(--yp-background);
	border: 1px solid var(--yp-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yp-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.yp-card-logo-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--yp-primary);
	background-color: rgba(11, 61, 145, 0.08);
}

.yp-card-type {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 3px;
	background-color: rgba(11, 61, 145, 0.1);
	color: var(--yp-primary);
	margin-bottom: 0.35rem;
}

.yp-card-title {
	font-size: 1.0625rem;
	margin: 0 0 0.25rem;
	line-height: 1.3;
	word-break: break-word;
}

.yp-card-title a {
	color: var(--yp-text);
	text-decoration: none;
}

.yp-card-title a:hover,
.yp-card-title a:focus {
	color: var(--yp-primary);
}

.yp-card-org {
	font-size: 0.875rem;
	color: var(--yp-muted);
	margin: 0;
}

.yp-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-size: 0.8125rem;
	color: var(--yp-muted);
}

.yp-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.yp-card-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 3px;
}

.yp-card-badge-closing {
	background-color: #fef3c7;
	color: #92400e;
}

.yp-card-actions {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* ==========================================================================
   Sidebar – Latest Jobs
   ========================================================================== */
.yp-sidebar-widget {
	background-color: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--yp-shadow);
}

.yp-sidebar-widget h2,
.yp-sidebar-widget .widget-title {
	font-size: 1.0625rem;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--yp-primary);
}

.yp-job-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--yp-border);
}

.yp-job-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.yp-job-item:first-child {
	padding-top: 0;
}

.yp-job-title {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.yp-job-title a {
	color: var(--yp-text);
}

.yp-job-title a:hover,
.yp-job-title a:focus {
	color: var(--yp-primary);
}

.yp-job-meta {
	font-size: 0.8125rem;
	color: var(--yp-muted);
	margin: 0;
}

.yp-job-view {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
}

/* ==========================================================================
   Advertisement
   ========================================================================== */
.yp-ad-wrapper {
	margin: 1.5rem 0;
	text-align: center;
}

.yp-ad-label {
	display: block;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--yp-muted);
	margin-bottom: 0.5rem;
}

.yp-ad {
	overflow: hidden;
	max-width: 100%;
}

.yp-ad img,
.yp-ad iframe {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.yp-pagination {
	margin-top: 2rem;
	text-align: center;
}

.yp-pagination .nav-links,
.yp-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.yp-pagination a,
.yp-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--yp-text);
	background-color: var(--yp-white);
	text-decoration: none;
}

.yp-pagination a:hover,
.yp-pagination a:focus {
	border-color: var(--yp-primary);
	color: var(--yp-primary);
	background-color: rgba(11, 61, 145, 0.04);
}

.yp-pagination .current {
	background-color: var(--yp-primary);
	border-color: var(--yp-primary);
	color: var(--yp-white);
}

/* ==========================================================================
   Empty Results
   ========================================================================== */
.yp-empty-results {
	text-align: center;
	padding: 3rem 1.5rem;
	background-color: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
}

.yp-empty-results h2 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.yp-empty-results p {
	color: var(--yp-muted);
	margin-bottom: 1.25rem;
}

/* ==========================================================================
   Single Opportunity
   ========================================================================== */
.yp-single-opportunity {
	background-color: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.5rem;
	box-shadow: var(--yp-shadow);
}

.yp-breadcrumb {
	font-size: 0.8125rem;
	color: var(--yp-muted);
	margin-bottom: 1.25rem;
}

.yp-breadcrumb a {
	color: var(--yp-muted);
}

.yp-breadcrumb a:hover {
	color: var(--yp-primary);
}

.yp-single-type {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 3px;
	background-color: rgba(11, 61, 145, 0.1);
	color: var(--yp-primary);
	margin-bottom: 0.75rem;
}

.yp-single-title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	word-break: break-word;
}

.yp-single-org {
	font-size: 1.0625rem;
	color: var(--yp-muted);
	margin-bottom: 1rem;
}

.yp-single-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	padding: 1rem;
	background-color: var(--yp-background);
	border-radius: var(--yp-radius);
	margin-bottom: 1.5rem;
}

.yp-meta-item {
	font-size: 0.875rem;
}

.yp-meta-label {
	font-weight: 600;
	color: var(--yp-text);
	display: block;
	margin-bottom: 0.1rem;
}

.yp-meta-value {
	color: var(--yp-muted);
}

.yp-status-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 3px;
	text-transform: uppercase;
}

.yp-status-active {
	background-color: #d1fae5;
	color: #065f46;
}

.yp-status-closing_soon {
	background-color: #fef3c7;
	color: #92400e;
}

.yp-status-expired {
	background-color: #fee2e2;
	color: #991b1b;
}

.yp-single-section {
	margin-bottom: 1.75rem;
}

.yp-single-section h2 {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--yp-border);
}

.yp-apply-box {
	background-color: var(--yp-background);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.25rem;
	margin-bottom: 1.75rem;
	text-align: center;
}

.yp-apply-box .yp-btn-lg {
	min-width: 200px;
}

.yp-source {
	font-size: 0.875rem;
	color: var(--yp-muted);
	margin-bottom: 1.5rem;
}

/* Social share */
.yp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.yp-share-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--yp-muted);
	margin-right: 0.25rem;
}

.yp-share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--yp-background);
	border: 1px solid var(--yp-border);
	color: var(--yp-muted);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color var(--yp-transition), color var(--yp-transition);
}

.yp-share-link:hover,
.yp-share-link:focus {
	background-color: var(--yp-primary);
	border-color: var(--yp-primary);
	color: var(--yp-white);
}

/* Expired notice */
.yp-expired-notice {
	text-align: center;
	padding: 2.5rem 1.5rem;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--yp-radius);
	margin-bottom: 2rem;
}

.yp-expired-notice h1 {
	font-size: 1.375rem;
	color: #991b1b;
	margin-bottom: 0.5rem;
}

.yp-expired-notice p {
	color: var(--yp-muted);
	margin-bottom: 1.25rem;
}

/* Related */
.yp-related {
	margin-top: 2.5rem;
}

.yp-related .yp-section-title {
	margin-bottom: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background-color: var(--yp-primary-dark);
	color: rgba(255, 255, 255, 0.85);
	padding: 2.5rem 0 1.5rem;
	margin-top: auto;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--yp-white);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-brand h2 {
	font-size: 1.125rem;
	color: var(--yp-white);
	margin-bottom: 0.5rem;
}

.footer-brand p {
	font-size: 0.875rem;
	opacity: 0.85;
	margin: 0;
	max-width: 280px;
}

.footer-nav h3 {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--yp-white);
	margin-bottom: 0.75rem;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin-bottom: 0.4rem;
}

.footer-nav a {
	font-size: 0.875rem;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.8125rem;
	opacity: 0.75;
}

/* ==========================================================================
   Page / Generic
   ========================================================================== */
.yp-page-content {
	background-color: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.5rem;
	box-shadow: var(--yp-shadow);
}

.yp-page-content h1 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

/* 404 */
.yp-404 {
	text-align: center;
	padding: 3rem 1rem;
}

.yp-404 h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Plugin notice (when core plugin inactive)
   ========================================================================== */
.yp-plugin-notice {
	background-color: #fef3c7;
	border: 1px solid #fcd34d;
	border-radius: var(--yp-radius);
	padding: 1.5rem;
	text-align: center;
	margin: 2rem 0;
}

.yp-plugin-notice h2 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Loading state
   ========================================================================== */
.yp-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity var(--yp-transition);
}

/* ==========================================================================
   Tablet (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {
	.yp-hero h1 {
		font-size: 2.25rem;
	}

	.yp-hero .yp-hero-subtitle {
		font-size: 1.125rem;
	}

	.yp-filters-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.yp-opportunities-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.yp-single-meta {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

/* ==========================================================================
   Desktop (min-width: 960px)
   ========================================================================== */
@media (min-width: 960px) {
	.menu-toggle {
		display: none;
	}

	.main-navigation {
		display: block;
	}

	.mobile-nav {
		display: none !important;
	}

	.site-description {
		display: block;
		font-size: 0.75rem;
		color: var(--yp-muted);
		margin: 0;
	}

	.yp-hero {
		padding: 3.5rem 0 2.5rem;
	}

	.yp-hero h1 {
		font-size: 2.5rem;
	}

	/* Filters always visible on desktop */
	.yp-filter-toggle {
		display: none;
	}

	.yp-filters-form {
		display: block !important;
	}

	.yp-filters-grid {
		grid-template-columns: repeat(5, 1fr);
		align-items: end;
	}

	.yp-filter-actions {
		flex-direction: column;
		gap: 0.35rem;
	}

	.yp-filter-actions .yp-btn {
		width: 100%;
	}

	/* Two-column layout */
	.yp-content-layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.yp-main-content {
		flex: 1 1 70%;
		max-width: 70%;
	}

	.yp-sidebar {
		flex: 0 0 28%;
		max-width: 28%;
		position: sticky;
		top: calc(var(--yp-header-height) + 1.5rem);
	}

	.yp-opportunities-grid {
		grid-template-columns: 1fr;
	}

	.yp-single-meta {
		grid-template-columns: repeat(3, 1fr);
	}

	.yp-single-title {
		font-size: 1.875rem;
	}

	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

/* ==========================================================================
   Large desktop (min-width: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
	.yp-opportunities-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   Legal / About / Contact pages
   ========================================================================== */
.yp-legal-page {
	max-width: 800px;
	margin: 0 auto;
}

.yp-page-header {
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--yp-primary);
}

.yp-page-header h1 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.yp-page-lead {
	font-size: 1.0625rem;
	color: var(--yp-muted);
	margin: 0;
}

.yp-page-section {
	margin-bottom: 2rem;
}

.yp-page-section h2 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	color: var(--yp-primary-dark);
}

.yp-page-section h3 {
	font-size: 1.0625rem;
	margin-bottom: 0.35rem;
}

.yp-page-section p,
.yp-page-section li {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--yp-text);
}

.yp-page-section ul {
	margin-bottom: 1em;
}

.yp-page-section li {
	margin-bottom: 0.4rem;
}

.yp-page-cta {
	padding-top: 0.5rem;
}

.yp-page-cta .yp-btn {
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

.yp-about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1rem;
}

.yp-about-card {
	background-color: var(--yp-background);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 1.25rem;
}

.yp-about-card h3 {
	color: var(--yp-primary);
	margin-bottom: 0.35rem;
}

.yp-about-card p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--yp-muted);
}

.yp-contact-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.yp-contact-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1em;
}

.yp-contact-list li {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--yp-border);
}

.yp-contact-list li:last-child {
	border-bottom: none;
}

.yp-contact-form .yp-form-group {
	margin-bottom: 1.25rem;
}

.yp-contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}

.yp-contact-form .required {
	color: var(--yp-danger);
}

.yp-contact-form input[type="text"],
.yp-contact-form input[type="email"],
.yp-contact-form select,
.yp-contact-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	background-color: var(--yp-white);
	color: var(--yp-text);
}

.yp-contact-form input:focus,
.yp-contact-form select:focus,
.yp-contact-form textarea:focus {
	outline: 2px solid var(--yp-primary);
	outline-offset: 1px;
	border-color: var(--yp-primary);
}

.yp-form-notice {
	padding: 1rem 1.25rem;
	border-radius: var(--yp-radius);
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
}

.yp-form-success {
	background-color: #d1fae5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}

.yp-form-error {
	background-color: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

@media (min-width: 640px) {
	.yp-about-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.yp-page-header h1 {
		font-size: 2rem;
	}
}

@media (min-width: 960px) {
	.yp-about-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.yp-contact-layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.yp-contact-info {
		flex: 0 0 38%;
	}

	.yp-contact-form-wrap {
		flex: 1;
	}

	.yp-legal-page {
		max-width: 860px;
	}
}
