:root {
    --border-color: #e5e7eb;
    --background: #f9fafb;
    --white: #ffffff;
    --error: #ef4444;
  }
  
  /* General Reset */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    margin: 0;
    padding: 0;
  }
  
  /* Headings */
  h1, h2, h5, h6 {
    color: var(--primary-color);
  }
  
  .jobHeading {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(99, 0, 179, 0.1);
    text-align: center;
  }
  
  /* Filters */
  .filter-section {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  /* Top Filter Section */
  .filter-section-top {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
  }

  .filter-section-top .d-flex {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .filter-section-top input,
  .filter-section-top select {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
  }

  .filter-section-top input:focus,
  .filter-section-top select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(99, 0, 179, 0.25);
    outline: none;
  }

  .filter-section-top label {
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
  }

  .filter-sectionh5 {
    color: var(--text-color);
    font-weight: 600;
  }
  
  .filter-section h6 {
    font-size: 0.95rem;
    color: var(--text-light);
  }
  
  .filter-section input,
  .filter-section select {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    width: 100%;
    transition: border-color 0.3s ease;
  }
  
  .filter-section input:focus,
  .filter-section select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(99, 0, 179, 0.25);
  }
  
  #applyFilters {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    color: white;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }
  
  #applyFilters:hover {
    background-color: var(--primary-hover);
  }
  
  #clearFilters {
    color: var(--error);
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
  }
  
  #clearFilters:hover {
    text-decoration: underline;
  }
  
  /* Job Cards */
  #jobList {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
  }
  
  #jobList .job-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 370px;
    box-sizing: border-box;
  }
  
  #jobList .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
  }
  
  /* Job Count */
  #jobCount {
    color: var(--text-color);
    margin: 1rem;
    font-size: 1.1rem;
  }
  
  /* Modal */
  #jobDetailsModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-content{
    width: 800px;
  }
  
  #jobDetailsModal .modal-content {
    color: var(--text-color);
  }
  
  #jobDetailsModal .close-btn {
    float: right;
    font-size: 28px;
    color: var(--error);
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -10px;
  }
  
  #jobDetailsModal .close-btn:hover {
    color: darkred;
  }
  
  #jobDetailsModal h2 {
    font-size: 1.8rem;
    margin: 10px 0 15px;
    color: var(--primary-color);
  }
  
  #jobDetailsModal img#modalLogo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #f3f4f6;
    padding: 5px;
  }
  
  #jobDetailsModal p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  #jobDetailsModal p strong {
    color: var(--primary-color);
  }
  
  /* Buttons */
  button {
    border-radius: 8px !important;
  }
  
  /* Responsive */
  @media (max-width: 1024px) {
    .jobHeading {
      font-size: 2rem;
    }

    .filter-section-top .d-flex {
      gap: 0.5rem;
    }

    .filter-section-top input,
    .filter-section-top select {
      padding: 0.4rem 0.6rem;
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 768px) {
    .jobHeading {
      font-size: 1.8rem;
    }
  
    .filter-section,
    .job-card {
      padding: 15px;
    }

    .filter-section-top {
      padding: 12px !important;
    }

    .filter-section-top .d-flex {
      gap: 0.5rem;
    }

    .filter-section-top input,
    .filter-section-top select {
      padding: 0.4rem 0.6rem;
      font-size: 0.8rem;
      min-width: 120px;
    }

    .filter-section-top label {
      font-size: 0.9rem;
    }
  
    #jobDetailsModal {
      padding: 20px;
    }
  
    #jobDetailsModal h2 {
      font-size: 1.5rem;
    }
  
    #jobDetailsModal p {
      font-size: 0.95rem;
    }
  
    .d-flex.justify-content-between.mt-3 {
      flex-direction: column;
      gap: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .jobHeading {
      font-size: 1.6rem;
    }

    .filter-section-top {
      padding: 10px !important;
    }

    .filter-section-top .d-flex {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }

    .filter-section-top input,
    .filter-section-top select,
    .filter-section-top button {
      width: 100%;
      padding: 0.5rem;
      font-size: 0.8rem;
    }

    .filter-section-top label {
      width: 100%;
      font-size: 0.85rem;
    }
  
    .filter-section input,
    .filter-section select {
      font-size: 0.9rem;
    }
  
    #applyFilters,
    #clearFilters {
      width: 100%;
    }
  
    #jobDetailsModal {
      padding: 15px;
    }
  
    #jobDetailsModal h2 {
      font-size: 1.3rem;
    }
  }
  