/*
Theme Name: JobScout Child
Template: jobscout
Version: 1.0.0
*/

/* Header site title link (already provided) */
body.home .site-branding .site-title a {
    color: #007a2c !important; /* WCAG-compliant green */
    text-decoration: none !important;
}

/* Add underline on hover/focus */
body.home .site-branding .site-title a:hover,
body.home .site-branding .site-title a:focus {
    text-decoration: underline !important;
}

/* Footer: Rara Theme and WordPress links */
body.home .footer-credits a.author-link,
body.home .footer-credits a.wp-link {
    color: #007a2c !important; /* Same accessible green */
    text-decoration: none !important;
}

/* Footer links hover/focus */
body.home .footer-credits a.author-link:hover,
body.home .footer-credits a.author-link:focus,
body.home .footer-credits a.wp-link:hover,
body.home .footer-credits a.wp-link:focus {
    text-decoration: underline !important;
}


button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: #0a66c2 !important;
  border: 1px solid #0a66c2 !important;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background-color: #004182 !important;
  border-color: #004182 !important;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

a.button {
  background-color: #0a66c2 !important;
  border: 1px solid #0a66c2 !important;
  color: #fff !important;
  padding: 10px 20px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  font-weight: 600;
}

a.button:hover {
  background-color: #004182 !important;
  border-color: #004182 !important;
  color: #fff !important;
  text-decoration: none;
}

/* Start Fix for header in desktop only */
@media (min-width: 1024px) {
    #wp-custom-header {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        position: relative;
        left: 0;
        right: 0;
        max-width: 100vw;
        overflow: hidden;
    }

    #wp-custom-header img {
        width: 100%;
        height: auto;
        display: block;
    }
}
/* End Fix for header in desktop only */

/* 🔽 Responsive adjustment for mobile */
@media (max-width: 600px) {
  a.button {
    padding: 6px 12px;
    font-size: 14px;
  }
}

.entry-header {
    display: none !important;
}

.wpjmef-field-salary {
    display: none !important;
}

.job-description .entry-content .application_button,
.job-description .entry-content .job_application,
.job-description .entry-content input[type="button"][value*="Apply"] {
    display: none !important;
}

.job-section.job-salary.salary-locked {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* Only blur the salary content, not the header */
.salary-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.salary-amount {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

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

/* Optional: Style the title to ensure readability */
.salary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Make the Unlock button look like a real CTA */
.unlock-button {
    background-color: #0073e6;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.job_application {
    text-align: center;
}

.job_application.application {
    margin: 20px 0;
    order: 2;
}

div.company {
    display: none !important;
}

.bookmark-notice:not(.login-bookmark) {
    display: none !important;
}

.application-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 1em;
  transition: all 0.3s ease;
}

.application-actions.fixed-to-bottom {
  position: fixed;
  bottom: 4rem;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 1000;
}

@media (max-width: 768px) {
  .application-actions.fixed-to-bottom {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    background: #fff;
    margin: 0 !important;
    text-align: center !important;
    transition: none !important;
    will-change: unset !important;
  }
}

.login-bookmark {
    font-size: 22px;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.login-bookmark:hover {
    color: #e74c3c !important;
}

.login-bookmark:hover .far {
    display: none;
}

.login-bookmark:hover .fas {
    display: inline;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;;
    margin-bottom: 1.5rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.company-meta {
    display: flex;
    flex-direction: column;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.company-name,
.job-meta {
    font-size: 0.95rem;
    color: #555;
}

.applied-alert {
    display: inline-block;
    background: #fff9e6;
    padding: 0.75rem 1rem;
    border-left: 4px solid orange;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
    max-width: 100%;
}

.job-section {
    margin-bottom: 2rem;
}

.job-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.similar-jobs {
    margin-top: 2rem;
}

.similar-jobs .job-card {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
}

.job-listing-meta.meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none !important;
    align-items: center;
}

.job-listing-meta.meta li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.job-listing-meta.meta li:not(:last-child)::after {
    content: "•";
    margin-left: 0.75rem;
    color: #666;
    font-size: 0.75rem;
    line-height: 1;
}

.job-listing-meta.meta li span,
.job-listing-meta.meta li a,
.job-listing-meta.meta li {
    font-size: 0.95rem !important;
    color: #555 !important;
    text-decoration: none;
    font-weight: normal;
    line-height: 1.4;
}

.job-listing-meta.meta li a:hover {
    color: #333 !important;
}

.job-listing-meta.meta::before {
    display: none !important;
}

.job-type {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #555 !important;
    text-decoration: none !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline !important;
    cursor: default !important;
}

.job-type:hover {
    background: none !important;
    color: #555 !important;
    text-decoration: none !important;
    transform: none !important;
}

.job-section.job-description .entry-content ul li {
    list-style: disc !important;
    list-style-position: outside !important;
    background: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    position: static !important;
    display: list-item !important;
}

.job-section.job-description .entry-content ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin-left: 0 !important;
    display: block !important;
}

.job-section.job-description .entry-content ul li::before {
    display: none !important;
    content: none !important;
}

.job-section.job-description .entry-content ul li::marker {
    content: "• " !important;
    color: #333 !important;
}

/* START OF MESSAGE RECRUITER SECTION */
.message-section {
    background-color: #f5f5f5;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    
}

.message-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.message-instruction {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.message-box {
    width: 100%;
}

.message-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.message-input {
    width: 100%;
    height: 60px;
    padding: 1rem 3.5rem 1rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    outline: none;
    border-color: #0073b1;
    box-shadow: 0 0 0 3px rgba(0, 115, 177, 0.1);
}

.message-input::placeholder {
    color: #999;
}

.send-message-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0a66c2 !important;
    border: 1px solid #0a66c2 !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.send-message-button:hover {
    background-color: #004182 !important;
    border-color: #004182 !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.recruiter-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.recruiter-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.recruiter-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #333;
}

.recruiter-text span {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .message-input-container {
    gap: 0.75rem;
  }

  .message-input-container textarea {
    height: 110px;
    min-height: 100px;
    }
    
   .message-section {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 5000px;
    margin: 1rem auto;
    width: 100%;
    }

    .send-message-button {
      position: absolute;
      right: 1rem;
      top: 75%;
      transform: translateY(-50%);
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
    }
    
    .job_application.application {
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 1000 !important;
      background: #fff !important;
      padding: 1rem !important;
      margin: 0 !important;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
      border-top: 1px solid #e1e5e9 !important;

       max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    }
        
    .job-single-card {
        padding-bottom: 100px !important;
    }
}

/* END OF MESSAGE RECRUITER SECTION */

.fa-paper-plane {
    margin-right: 8px;
    display: inline-block;
}

.share-job-button {
    font-size: 22px;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.share-job-button:hover {
    color: #3498db !important; 
}

.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Modal Background */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: fadeIn 0.2s ease-in-out;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Modal Inner */
.modal-body {
  text-align: center;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-features li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* CTA Button */
.unlock-modal-button {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 0.5rem;
}

.unlock-modal-button:hover {
  background: #005bb5;
}

.modal-guarantee {
  font-size: 0.8rem;
  color: #777;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  color: #111;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

.modal-close:hover {
  color: #000;
}

/* bookmark */
.wp-job-manager-bookmarks-form .bookmark-details {
  display: none !important;
}
 
@media (max-width: 640px) {
  .mwai-icon-container {
    margin-bottom: 80px;
  }
}

.back-button-container {
    display: none;
}

@media (max-width: 768px) {
  .back-button-container {
      display: block;
      margin-bottom: 1rem;
  }
}

.footer-b {
    background: #232323;
	color: #fff;
    padding: 2em 0;
    font-size: 1em;
    border-top: 1px solid #333;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
    gap: 2em;
}

.footer-links {
    flex: 1 1 200px;
    text-align: left;
}

.footer-link-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-group li {
    margin-bottom: 0.7em;
}

.footer-link-group li:last-child {
    margin-bottom: 0;
}

.footer-link-group a, .footer-link-group li {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-link-group a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

.footer-meta {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5em;
    font-size: 0.97em;
    color: #fff;
    text-align: right;
}

.copyright, .footer-credits {
    margin-bottom: 0.3em;
	color: #fff;
}

@media (max-width: 800px) {
    .footer-flex {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 0 1em;
    }
    .footer-meta {
        align-items: flex-start;
        text-align: left;
        margin-top: 1.5em;
    }
}

/* START OF SIMILAR JOBS SECTION */
.similar-job-rect {
    margin-bottom: 12px;
}

.similar-job-item {
    display: flex;
    flex-direction: row; /* Force row layout on all screens */
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 12px 14px;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

.similar-job-item:hover {
    border-color: #0a66c2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similar-job-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a66c2;
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
    line-height: 1.3;
}

.similar-job-title:hover {
    text-decoration: underline;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.company-info img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.company-name {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* Compact metadata layout */
.job-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;
}

.similar-job-location,
.date-posted,
.salary {
    white-space: nowrap;
}

.metadata-separator {
    color: #999;
    font-weight: 500;
}

.salary {
    font-weight: 500;
    color: #059862;
}

.similar-job-info {
    flex: 1;
    padding-right: 16px;
    min-width: 0; /* fixes overflow in flexbox */
}

.similar-job-apply {
    margin-top: 0;
    align-self: center;
    white-space: nowrap;
}

.apply-button {
    display: inline-block;
    background-color: #0a66c2;
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #0a66c2;
}

.apply-button:hover {
    background-color: #004182 !important;
    border-color: #004182 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3) !important;
}

/* Optional: responsive tweaks for large screens */
@media (min-width: 600px) {
    .similar-job-item {
        padding: 16px 20px;
    }

    .similar-job-title {
        font-size: 16px;
    }

    .company-info img {
        width: 32px;
        height: 32px;
    }

    .job-metadata {
        font-size: 12px;
    }

    .apply-button {
        font-size: 14px;
        padding: 6px 16px;
    }
}
/* END OF SIMILAR JOBS SECTION */

/* START OF MAIN JOB LISTING OVERRIDE TO MATCH SIMILAR JOBS */
/* Override the main jobscout theme's job listing structure to match similar jobs design */

/* Main container override - now using the template override approach */
.site-main .entry-content div.job_listings div.job_listings article,
.top-job-section .row div.job_listings article {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border: 1px solid #ddd !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
}

.site-main .entry-content div.job_listings div.job_listings article:hover,
.top-job-section .row div.job_listings article:hover {
    border-color: #0a66c2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Hide the original company logo figure */
.site-main .entry-content div.job_listings div.job_listings article .company-logo,
.top-job-section .row div.job_listings article .company-logo {
    display: none !important;
}

/* Override job title wrap to match similar jobs structure */
.site-main .entry-content div.job_listings div.job_listings article .job-title-wrap,
.top-job-section .row div.job_listings article .job-title-wrap {
    width: auto !important;
    padding-left: 0 !important;
    flex: 1 !important;
    padding-right: 16px !important;
    min-width: 0 !important;
}

/* Job title styling to match similar jobs */
.site-main .entry-content div.job_listings div.job_listings article .entry-title,
.top-job-section .row div.job_listings article .entry-title {
    margin: 0 0 4px 0 !important;
    padding-right: 0 !important;
    order: 1 !important;
}

.site-main .entry-content div.job_listings div.job_listings article .entry-title a,
.top-job-section .row div.job_listings article .entry-title a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0a66c2 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: block !important;
}

.site-main .entry-content div.job_listings div.job_listings article .entry-title a:hover,
.top-job-section .row div.job_listings article .entry-title a:hover {
    text-decoration: underline !important;
}

/* Company name styling to match similar jobs */
.site-main .entry-content div.job_listings div.job_listings article .company-name,
.top-job-section .row div.job_listings article .company-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.2 !important;
    margin: 0 0 6px 0 !important;
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Remove the @ symbol */
.site-main .entry-content div.job_listings div.job_listings article .company-name:before,
.top-job-section .row div.job_listings article .company-name:before {
    display: none !important;
}

/* Add company logo inline */
.site-main .entry-content div.job_listings div.job_listings article .company-name img,
.top-job-section .row div.job_listings article .company-name img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Entry meta styling to match similar jobs metadata */
.site-main .entry-content div.job_listings div.job_listings article .entry-meta,
.top-job-section .row div.job_listings article .entry-meta {
    border-top: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    color: #666 !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    order: 3 !important;
}

/* Salary styling */
.site-main .entry-content div.job_listings div.job_listings article .entry-meta .salary-amt,
.top-job-section .row div.job_listings article .entry-meta .salary-amt {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: #059862 !important;
    white-space: nowrap !important;
}

.site-main .entry-content div.job_listings div.job_listings article .entry-meta .salary-amt .currency,
.top-job-section .row div.job_listings article .entry-meta .salary-amt .currency {
    font-weight: 500 !important;
    color: #059862 !important;
    margin-right: 0 !important;
}

/* Location styling */
.site-main .entry-content div.job_listings div.job_listings article .entry-meta .company-address,
.top-job-section .row div.job_listings article .entry-meta .company-address {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.site-main .entry-content div.job_listings div.job_listings article .entry-meta .company-address svg,
.top-job-section .row div.job_listings article .entry-meta .company-address svg {
    display: none !important;
}

/* Job type styling */
.site-main .entry-content div.job_listings div.job_listings article .entry-meta .job-type,
.top-job-section .row div.job_listings article .entry-meta .job-type {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    color: #666 !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: inline !important;
}

/* Add separators between metadata items */
.site-main .entry-content div.job_listings div.job_listings article .entry-meta .salary-amt:after,
.site-main .entry-content div.job_listings div.job_listings article .entry-meta .company-address:after,
.top-job-section .row div.job_listings article .entry-meta .salary-amt:after,
.top-job-section .row div.job_listings article .entry-meta .company-address:after {
    content: "•" !important;
    margin-left: 6px !important;
    color: #999 !important;
    font-weight: 500 !important;
}

.site-main .entry-content div.job_listings div.job_listings article .entry-meta .job-type:after,
.top-job-section .row div.job_listings article .entry-meta .job-type:after {
    display: none !important;
}

/* Hide featured label if present */
.site-main .entry-content div.job_listings div.job_listings article .featured-label,
.top-job-section .row div.job_listings article .featured-label {
    display: none !important;
}

/* Responsive adjustments */
@media (min-width: 600px) {
    .site-main .entry-content div.job_listings div.job_listings article,
    .top-job-section .row div.job_listings article {
        padding: 16px 20px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .entry-title a,
    .top-job-section .row div.job_listings article .entry-title a {
        font-size: 16px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .company-name img,
    .top-job-section .row div.job_listings article .company-name img {
        width: 32px !important;
        height: 32px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .entry-meta,
    .top-job-section .row div.job_listings article .entry-meta {
        font-size: 12px !important;
    }
    
}

/* Mobile adjustments */
@media (max-width: 599px) {
    .site-main .entry-content div.job_listings div.job_listings article,
    .top-job-section .row div.job_listings article {
        padding: 12px 14px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .company-name img,
    .top-job-section .row div.job_listings article .company-name img {
        width: 24px !important;
        height: 24px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .entry-title a,
    .top-job-section .row div.job_listings article .entry-title a {
        font-size: 14px !important;
    }

    .site-main .entry-content div.job_listings div.job_listings article .entry-meta,
    .top-job-section .row div.job_listings article .entry-meta {
        font-size: 10px !important;
    }
}
/* END OF MAIN JOB LISTING OVERRIDE TO MATCH SIMILAR JOBS */

@media (min-width: 900px) {
/* Override parent theme's .site-content top margin */
    div#content.site-content {
        margin-top: -30px !important;
    }
}


/* Back Arrow Button Styles */
.back-arrow-container {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}
.back-arrow-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0073b1;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.back-arrow-link:hover {
  color: #005580;
  text-decoration: underline;
}
.back-arrow-icon {
  font-size: 1.2em;
  margin-right: 6px;
}
.back-arrow-text {
  font-size: 1em;
}

@media (max-width: 899px) {
  .container {
    margin-left: 4px !important;
    margin-right: 4px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .back-arrow-container {
    margin-bottom: 2px !important;
  }
  .back-arrow-helper-text {
    display: block;
    font-size: 0.92em;
    color: #888;
    margin-top: 0;
    margin-bottom: 8px;
    margin-left: 2px;
  }
  .job-single-card .job-header {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }
  .site-content {
    margin-top: -40px !important;
  }
}

/* Compact job single page layout */
.job-single-card,
.job-single-card .job-section,
.job-single-card .job-header,
.job-single-card .applied-alert,
.job-single-card .job_application,
.job-single-card .message-section {
  margin-bottom: 10px !important;
}
.job-single-card .job-title {
  margin-bottom: 12px !important;
}
.job-single-card .company-info {
  gap: 8px !important;
}
.job-single-card .company-name {
  margin-bottom: 0 !important;
}
.job-single-card .salary-header,
.job-single-card .message-header {
  margin-bottom: 6px !important;
}
.job-single-card .salary-title,
.job-single-card .message-header h2 {
  margin-bottom: 4px !important;
}
.job-single-card .message-instruction {
  margin-bottom: 4px !important;
}
.job-single-card .recruiter-info {
  gap: 8px !important;
}

/* Compact post content: reduce top/bottom padding and margin for every word/line */
.entry-content, .entry-content p, .entry-content li, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  margin-top: 0.3em !important;
  margin-bottom: 0.3em !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.entry-content ul, .entry-content ol {
  margin-top: 0.3em !important;
  margin-bottom: 0.3em !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 900px) {
  .job-single-card {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 32px 36px;
  }
  .job-single-card .entry-content,
  .job-single-card .job-title,
  .job-single-card .company-name,
  .job-single-card .job-section,
  .job-single-card .applied-alert,
  .job-single-card .job_application,
  .job-single-card .message-section {
    font-size: 0.97em;
  }
}

@media (min-width: 1200px) {
  .job-single-card {
    max-width: 1000px;
    padding: 36px 40px;
  }
}

@media (min-width: 1100px) {
  .job-single-linkedin-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 40px auto;
    align-items: flex-start;
  }
  .job-single-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 48px 56px 40px 56px;
    flex: 2 1 0%;
    min-width: 0;
    font-size: 1.08em;
  }
  .job-single-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 32px 32px 24px 32px;
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
  }
  .job-single-sidebar .company-logo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #f3f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .job-single-sidebar .company-name {
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 8px;
    text-align: center;
  }
  .job-single-sidebar .company-meta {
    color: #888;
    font-size: 0.98em;
    text-align: center;
    margin-bottom: 16px;
  }
}

@media (min-width: 1100px) {
  .job-single-card {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1099px) {
  .job-single-linkedin-layout {
    display: block;
    background: none;
    margin: 0;
    gap: 0;
  }
  .job-single-main, .job-single-sidebar {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 0;
    max-width: 100%;
  }
  .job-single-sidebar {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-content {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1100px) {
  .site-content {
    max-width: 1000px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.site-title {
  margin-top: 10px !important;
  padding-top: 2px !important;
  color: #222 !important; /* or #000 for pure black */
  background: transparent; /* or set a background if needed */
  text-decoration: none;
}

@media (min-width: 768px) {
  .job_application.application {
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

.mobile-back-arrow-container {
  display: none;
}

@media (max-width: 768px) {
  .job_application.application .mobile-back-arrow-container {
    display: block;
    margin-bottom: 10px;
    text-align: left;
  }
  .mobile-back-arrow-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #0073b1;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
  }
  .mobile-back-arrow-link:hover {
    color: #005580;
    text-decoration: underline;
  }
  .mobile-back-arrow-icon {
    font-size: 1.2em;
    margin-right: 6px;
  }
  .mobile-back-arrow-text {
    font-size: 1em;
  }
}

/* --- Custom Job Sitemap Styles --- */
.custom-job-sitemap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 1em;
}
.custom-job-sitemap h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3em;
}
.custom-job-sitemap-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 2em;
}
.custom-job-sitemap-columns ul {
  flex: 1 1 0;
  min-width: 180px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-job-sitemap-columns li {
  margin-bottom: 0.5em;
}
.custom-job-sitemap-columns a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.custom-job-sitemap-columns a:hover {
  color: #005177;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .custom-job-sitemap-columns {
    flex-direction: column;
    gap: 1em;
  }
  .custom-job-sitemap-columns ul {
    min-width: 0;
  }
}
/* --- End Custom Job Sitemap Styles --- */

/* ========================================
   Jobs by State and City Sections
   ======================================== */

.jobs-by-location-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.jobs-by-location-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.jobs-by-location-section .container {
  position: relative;
  z-index: 2;
}

.jobs-by-location-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
}

.jobs-by-location-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0a66c2, #3b82f6);
  border-radius: 2px;
}

.jobs-by-location-section .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.location-item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.location-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a66c2, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.location-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.location-item:hover::before {
  transform: scaleX(1);
}

.location-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.location-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.state-name,
.city-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.state-abbr,
.city-state {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.count-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a66c2;
  line-height: 1;
}

.count-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.location-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  color: #64748b;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.location-item:hover .location-arrow {
  background: #0a66c2;
  color: #ffffff;
  transform: translateX(4px);
}

.location-arrow svg {
  transition: transform 0.3s ease;
}

.location-item:hover .location-arrow svg {
  transform: translateX(2px);
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0a66c2, #3b82f6);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(10, 102, 194, 0.2);
}

.view-all-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(10, 102, 194, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.view-all-link svg {
  transition: transform 0.3s ease;
}

.view-all-link:hover svg {
  transform: translateX(4px);
}

/* City grid specific styles */
.city-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.city-item .location-content {
  gap: 0.75rem;
}

.city-item .city-name {
  font-size: 1.1rem;
}

.city-item .city-state {
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jobs-by-location-section {
    padding: 60px 0;
  }
  
  .jobs-by-location-section .section-title {
    font-size: 2rem;
  }
  
  .jobs-by-location-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .location-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .location-link {
    padding: 1.25rem;
  }
  
  .state-name,
  .city-name {
    font-size: 1.1rem;
  }
  
  .count-number {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .location-link {
    padding: 1rem;
  }
  
  .jobs-by-location-section .section-title {
    font-size: 1.75rem;
  }
  
  .view-all-link {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Animation for section entrance */
.jobs-by-location-section {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for location items */
.location-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.location-item:nth-child(1) { animation-delay: 0.1s; }
.location-item:nth-child(2) { animation-delay: 0.2s; }
.location-item:nth-child(3) { animation-delay: 0.3s; }
.location-item:nth-child(4) { animation-delay: 0.4s; }
.location-item:nth-child(5) { animation-delay: 0.5s; }
.location-item:nth-child(6) { animation-delay: 0.6s; }
.location-item:nth-child(7) { animation-delay: 0.7s; }
.location-item:nth-child(8) { animation-delay: 0.8s; }
.location-item:nth-child(9) { animation-delay: 0.9s; }
.location-item:nth-child(10) { animation-delay: 1.0s; }

/* Custom Job Sitemap Styles */
.custom-job-sitemap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: inherit;
}

.custom-job-sitemap h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

.custom-job-sitemap h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 1rem;
}

.sitemap-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.custom-job-sitemap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Specific styling for employers section - force 3 columns */
.employers-section .custom-job-sitemap-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Specific styling for popular searches section - force 3 columns */
.popular-searches-section .custom-job-sitemap-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Specific styling for categories section - force 3 columns */
.categories-section .custom-job-sitemap-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.custom-job-sitemap-columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-job-sitemap-columns li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.custom-job-sitemap-columns li:last-child {
    border-bottom: none;
}

.custom-job-sitemap-columns a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.custom-job-sitemap-columns a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Location Sitemap Grid */
.location-sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.state-list,
.city-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.state-list li,
.city-list li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.state-list a,
.city-list a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.state-list a:hover,
.city-list a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-job-sitemap-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Force single column for employers on mobile */
    .employers-section .custom-job-sitemap-columns {
        grid-template-columns: 1fr;
    }
    
    /* Force single column for popular searches on mobile */
    .popular-searches-section .custom-job-sitemap-columns {
        grid-template-columns: 1fr;
    }

    /* Force single column for categories on mobile */
    .categories-section .custom-job-sitemap-columns {
        grid-template-columns: 1fr;
    }
    
    .location-sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sitemap-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .custom-job-sitemap h2 {
        font-size: 1.5rem;
    }
    
    .custom-job-sitemap h3 {
        font-size: 1.2rem;
    }
}

/* SEO-friendly link styling */
.custom-job-sitemap a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .custom-job-sitemap {
        background: white;
        color: black;
    }
    
    .custom-job-sitemap a {
        color: black;
        text-decoration: underline;
    }
    
    .sitemap-section {
        background: white;
        border: 1px solid #ccc;
    }
}

/* Job Breadcrumbs */
.job-breadcrumbs {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.job-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.job-breadcrumbs li {
    display: flex;
    align-items: center;
    margin: 0;
}

.job-breadcrumbs a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.job-breadcrumbs a:hover {
    color: #005a87;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6c757d;
    font-weight: bold;
}

/* Related Jobs */
.related-jobs {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.related-jobs h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.related-jobs li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.related-jobs a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.related-jobs a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .job-breadcrumbs ol {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-breadcrumbs li {
        margin-bottom: 0.25rem;
    }
    
    .breadcrumb-separator {
        display: none;
    }
}

.footer-b .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
    min-height: 120px;
}

.footer-links {
    flex: 1 1 200px;
    align-self: flex-start;
}

.footer-meta {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    font-size: 0.95em;
    color: #fff;
    align-self: flex-end;
}

.footer-credits {
    margin-left: 0;
}

/* --- Compact Card Adjustments for Jobs by State and City Sections --- */
.jobs-by-location-section {
  padding: 40px 0;
}

.location-grid {
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.location-item {
  border-radius: 10px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.04);
}

.location-link {
  display: block;
  padding: 1rem 1rem 0.75rem 1rem;
}

.location-content {
  gap: 0.5rem;
}

.location-name {
  font-size: 1rem;
}

.job-count {
  font-size: 0.95rem;
}

.count-number {
  font-size: 1.1rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .jobs-by-location-section {
    padding: 24px 0;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .location-grid {
    gap: 0.5rem;
  }
  .location-link {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .location-link {
    padding: 0.5rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .section-subtitle {
    font-size: 0.85rem;
  }
}
/* --- End Compact Card Adjustments --- */

/* --- Arrow Alignment Fix for Compact Location Cards --- */
.location-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem 1rem;
}

.location-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 1rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .location-link {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
  }
  .location-arrow {
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .location-link {
    padding: 0.5rem;
  }
}
/* --- End Arrow Alignment Fix --- */

/* Ensure Select2 tags wrap and the input moves to the next line if needed */
.select2-container--default .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 44px;
    padding-bottom: 2px;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    flex: 1 1 120px;
    min-width: 120px;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 60px;
    box-sizing: border-box;
}

/* Styles for input with clear 'x' icon */
.input-with-clear {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-clear input[type="text"] {
    width: 100%;
    padding-right: 2em; /* space for the x */
}
.input-with-clear .clear-input {
    position: absolute;
    right: 0.7em;
    cursor: pointer;
    font-size: 1.3em;
    color: #888;
    user-select: none;
    z-index: 2;
    transition: color 0.2s;
}
.input-with-clear .clear-input:hover {
    color: #222;
}

