:root {
  --font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --text-primary: #333;
  --bg-light: #f8f9fa;
  --search-container: #e6e6e6;
  --primary-blue: #0066cc;
  --secondary-blue: #1d4ed8;
  --dark-navy: #1a237e;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  overflow-x: hidden;
}

.main-container {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
  width: 100%;
  gap: 20px; /* Optional spacing between sections */
  padding: 4rem 6rem;
}

.search-container {
  flex: 1;
  background-color: var(--search-container);
  padding: 15px;
  border-radius: 8px;
}

.dropdown-search-container {
  padding: 15px;
  border-radius: 8px;
}

.toggle-search-btn {
  display: none;
  margin-top: 60px;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .main-conten {
    z-index: 1;
  }

  .main-container {
    flex-direction: column;
    padding: 2rem;
    z-index: 1;
  }

  .toggle-search-btn {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
  }

  .search-container {
    display: none;
  }

  .search-container.active {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
  }

  .featured-job-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--primary-blue);
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
    transition: var(--transition);
    z-index: 1;
  }
}
.job-container {
  flex: 2;
  padding: 20px;
  border-radius: 8px;
}

.search-container-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.search-job-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

.search-job-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-job-form input[type="text"]:focus {
  border: 1px solid gray;
  outline: none;
}
.job-location-container {
  max-width: 400px;
  margin: 0 auto;
}

.job-location-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-align: left;
  color: #6c757d;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  border-color: #adb5bd;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  font-size: 12px;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.dropdown-menu {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: white;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  margin-top: 2px;
  padding: 0;
}

.item-list {
  padding: 0;
}

.item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid #f8f9fa;
}

.item:hover {
  background-color: #f8f9fa;
}

.item.main-header {
  font-weight: 600;
  color: var(--primary-blue);
  background-color: #ffff;
  cursor: default;
}

.item.main-header:hover {
  background-color: #f5f5f5;
}

.item.prefecture {
  color: #333;
  font-weight: 500;
  background-color: #fafafa;
}

.item.prefecture:hover {
  background-color: #f0f0f0;
}

.item.city {
  padding-left: 2rem;
  color: #495057;
}

.item.category {
  color: #333;
  font-weight: 500;
  background-color: #fafafa;
}

.item.category:hover {
  background-color: #f0f0f0;
}

.item.list {
  padding-left: 2rem;
  color: #495057;
}
.expand-icon {
  font-size: 11px;
  transition: transform 0.2s ease;
  color: #6c757d;
}

.expand-icon.expanded {
  transform: rotate(90deg);
}

.nested-locations {
  display: none;
}

.nested-locations.show {
  display: block;
}

.no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  font-size: 13px;
}

.selected-location {
  color: #495057 !important;
}

.job-posting-container {
  max-width: 400px;
  margin: 0 auto;
}

.job-position-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

/* fixing full width  */
.job-location-container,
.job-posting-container {
  width: 100%;
  max-width: 800px;
  padding: 0 0rem; /* Optional for side breathing room */
  margin: 0 auto;
}

.submit-btn {
  border: none;
  outline: none;
  margin-top: 2rem;
  padding: 20px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--secondary-blue);
}

.featured-job-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--primary-blue);
  padding: 20px;
  margin: 20px auto;
  max-width: 100%;
  position: relative;
  transition: var(--transition);
}

.featured-job-card:hover {
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.featured-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--secondary-blue);
  color: white;
  padding: 6px 12px;
  border-radius: 10px 0 10px 0;
  font-size: 12px;
  font-weight: 600;
}

.featured-job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
  margin-top: 20px;
}

.featured-company-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-company-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 18px;
}

.featured-company-details h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 2px;
}

.time-posted {
  color: #6c757d;
  font-size: 13px;
}
.featured-job-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
}

.action-btn {
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-size: 16px;
}

.action-btn:hover {
  background: #ffedf0; /* soft pink on hover */
  color: #e60012; /* Japanese red */
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn .fas,
.action-btn .far {
  pointer-events: none; /* make sure clicks register on button, not icon */
}

.action-btn.liked {
  color: #e60012; /* red for liked */
  background-color: #ffe5e8;
}
.featured-job-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.featured-job-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.featured-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 14px;
}

.featured-detail-icon {
  color: #6c757d;
  font-size: 14px;
  width: 16px;
}

.featured-job-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.featured-job-type-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
}

.featured-job-requirements {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.featured-requirement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.featured-requirement-item {
  display: flex;
  justify-content: space-between;
}

.featured-requirement-label {
  color: #6c757d;
  font-weight: 500;
}

.featured-requirement-value {
  color: #495057;
  font-weight: 600;
}

@media (max-width: 600px) {
  .featured-job-card {
    /* margin: 10px; */
    padding: 15px;
  }

  .featured-job-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .featured-job-actions {
    align-self: flex-end;
  }

  .featured-requirement-grid {
    grid-template-columns: 1fr;
  }

  .job-container {
    width: 100%;
    padding: 0;
  }
}
