/* 
  Enhanced CSS Reset
  Based on Josh Comeau's reset with additional improvements
*/

/* Use border-box by default */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Improve text rendering */
html {
  -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on orientation change */
  text-size-adjust: 100%;
  scroll-behavior: smooth; /* Enable smooth scrolling for anchors */
}

/* Create a reasonable body baseline */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  min-height: 100vh; /* Use full viewport height */
  color: #000;
  background-color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto; /* Maintain aspect ratio */
}

/* Form element typography */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove button styling */
button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Text wrapping */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* List styling */
ul, 
ol {
  list-style: none;
}

/* Link styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Make root elements isolate for React/Next */
#root,
#__next {
  isolation: isolate;
}

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styling */
fieldset {
  border: 0;
  min-width: 0;
}

/* Fix for hidden overflow causing scrollbars */
html, body {
  overflow-x: hidden;
}

/* Add better focus styles for accessibility */
:focus-visible {
  outline: 2px solid #4d90fe;
  outline-offset: 2px;
}

/* ######## CSS RESET END ######## */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #EFFAFA;
}

#container {
    width: 70%;
}


.selected-filter {
   display: flex;
   align-items: center;
   font-size: 16px;
   font-weight: bold;
   letter-spacing: -0.12px;
   color: #5CA5A5;
   background-color: rgba(92, 165, 165, .10); 
   border-radius: 4px;
   padding-inline: 10px;

}

header {
    width: 100%;
    height: 20vh;
    background-image: url(images/bg-header-desktop.svg);
    background-repeat: no-repeat;
    background-color: #5CA5A5;
    margin-bottom: 50px;
}

.logo {
    width: 80px;
    height: 80px;
}

.job-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 152px;
    padding: 24px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 40px;
    box-shadow: 0px 15px 20px -5px rgba(13, 113, 130, 0.15);
    
}

.job-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.job-info-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-info-row-top, .job-info-row-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company {
    font-size: 18px;
    font-weight: bold;
    color: #5CA5A5;
}

.new-bool {
    display: flex;
    align-items: center;
    text-transform: uppercase;
   font-size: 14px;
   font-weight: bold;
   letter-spacing: -0.11px;
   color: white;
   background-color: #5CA5A5; 
   border-radius: 50px;
   padding-inline: 10px;
}

.featured {
    display: flex;
    align-items: center;
    text-transform: uppercase;
   font-size: 14px;
   font-weight: bold;
   letter-spacing: -0.11px;
   color: white;
   background-color: #2B3939; 
   border-radius: 50px;
   padding-inline: 10px;
}

.position {
    text-transform: capitalize;
    font-size: 22px;
    font-weight: bold;
    color: #2B3939;
    transition: color 0.2s;
    cursor: pointer;
}

.position:hover {
    color: #5CA5A5;
}

.postedAt, .contract, .location {
    font-size: 18px;
    letter-spacing: -0.14px;
    font-weight: 500;
    color: #7C8F8F;
}

.circle-shape {
    height: 4px;
    width: 4px;
    background-color: #B7C4C4;
    border-radius: 50px;
}

.job-skills {
    display: flex;
    gap: 10px;
}

.skill {
    display: flex;
    align-items: center;
   font-size: 16px;
   font-weight: bold;
   letter-spacing: -0.12px;
   color: #5CA5A5;
   background-color: rgba(92, 165, 165, .10); 
   border-radius: 4px;
   padding-inline: 10px;
}

/* ------- */
/* Add these styles to your existing CSS file */

.filter-container {
  background-color: white;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-filters-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
}

.filter-tag {
  display: flex;
  align-items: center;
  background-color: #EFFAFA;
  border-radius: 4px;
  overflow: hidden;
}

.filter-tag span {
  padding: 8px 10px;
  color: #5CA5A5;
  font-weight: 700;
}

.remove-filter {
  background-color: #5CA5A5;
  color: white;
  border: none;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
  height: 100%;
  transition: background-color 0.2s;
}

.remove-filter:hover {
  background-color: #2B3939;
}

.clear-button {
  background: none;
  border: none;
  color: #5CA5A5;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  transition: color 0.2s;
}

.clear-button:hover {
  color: #2B3939;
  text-decoration: underline;
}

/* For highlighting active filters in the job listings */
.skill.active-filter {
  background-color: #5CA5A5;
  color: white;
}

/* Remove this rule as we're using JavaScript to control visibility
.filter-container:empty {
  display: none;
}
*/