/* ==========================================================================
   Classifieds WordPress Theme - Main Stylesheet
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

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

a:hover {
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 2rem 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
    color: var(--white);
}

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

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item a {
    color: var(--white);
}

.top-bar-item a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1rem;
}

.header-main {
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.site-title a {
    color: var(--dark-color);
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.header-search-toggle {
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-overlay .search-form {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.search-close {
    padding: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    margin-top: auto;
}

.footer-main {
    padding: 3rem 0 1rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-area {
    display: contents;
}

.footer-widget {
    background: none;
    border: none;
    padding: 0;
}

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: var(--white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 4rem 0;
    margin: -2rem 0 2rem 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Page Headers
   ========================================================================== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    margin: 0;
    font-size: 2rem;
}

.archive-description,
.term-description {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.job-count {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Jobs Section
   ========================================================================== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.job-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.job-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card .company-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    flex-shrink: 0;
}

.job-card .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card .company-logo.placeholder {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
}

.job-content {
    flex: 1;
    padding: 1.5rem;
}

.job-content .company-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.job-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

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

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

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.job-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.job-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-action {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.job-action .btn {
    width: 100%;
}

/* Single Job Page */
.job-detail .job-header {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.job-header-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.job-header .company-logo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.job-detail .job-title {
    font-size: 2rem;
    margin: 0;
}

.job-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.job-main {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.job-description h2,
.job-additional-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.job-requirements {
    list-style: none;
    padding: 0;
}

.job-requirements li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.job-requirements li:last-child {
    border-bottom: none;
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-application-box,
.job-info-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.job-application-box h3,
.job-info-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-phone {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.share-job {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.share-job h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn.facebook {
    background-color: #1877f2;
    color: var(--white);
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: var(--white);
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: var(--white);
}

.job-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.job-info-list li:last-child {
    border-bottom: none;
}

.job-info-list a {
    color: var(--primary-color);
}

/* ==========================================================================
   Job Filters
   ========================================================================== */
.job-filters {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.job-filter-form {
    margin: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    position: relative;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--white);
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-group.search-group {
    display: flex;
}

.filter-group.search-group .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
}

.filter-stats {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.active-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.filter-tag .remove-filter {
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    opacity: 0.8;
}

.filter-tag .remove-filter:hover {
    opacity: 1;
}

/* ==========================================================================
   Archive Pages
   ========================================================================== */
.archive-header {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.archive-header .page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-header .archive-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.archive-header .job-count {
    color: var(--text-muted);
}

.taxonomy-header {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.taxonomy-header .page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.taxonomy-header .term-description {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.taxonomy-header .job-count {
    color: var(--text-muted);
}

/* ==========================================================================
   No Results
   ========================================================================== */
.no-results,
.no-jobs {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.no-results h2,
.no-jobs h2 {
    margin-bottom: 1rem;
}

.no-results p,
.no-jobs p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.content-message {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
}

.content-message h1 {
    margin-bottom: 1rem;
}

.content-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Search
   ========================================================================== */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header .page-title {
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--text-muted);
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

.search-form .search-submit {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.search-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.or-divider {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.the_posts_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget-area {
    margin: 0;
}

.widget {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.recent-jobs-list .job-location {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Job Search Widget */
.job-search-widget .form-group {
    margin-bottom: 1rem;
}

.job-search-widget select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--white);
}

/* ==========================================================================
   Blog/Posts Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--dark-color);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

/* Single Post */
.single-post {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: var(--text-muted);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Related Sections
   ========================================================================== */
.related-jobs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-jobs h2 {
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.category-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.category-item a {
    color: var(--dark-color);
    font-weight: 500;
}

.category-item .count {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.popular-categories .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-color);
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-tag .count {
    background-color: var(--light-color);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .body,
    .container {
        padding: 0 1.5rem;
    }

    .job-body {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .job-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .page-title,
    .archive-header .page-title {
        font-size: 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .social-links,
    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }
}
