
/* SRX Job Board Widget Styles */
/* Reset and base styles */
.srx-job-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.srx-job-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: rgb(55, 54, 60);
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

/* Typography */
.srx-job-widget .heading {
  color: rgb(49, 27, 100);
  font-family: Atypdisplay, "Times New Roman", sans-serif;
  font-size: 24px;
  letter-spacing: -0.072px;
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 16px;
}

.srx-job-widget .body {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 36px;
}

/* Filter Panel */
.srx-job-widget .filters {
  background-color: #F2F0F7;
  /*border: 1px solid #e5e5e5;*/
  border: 0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.srx-job-widget .filters__group {
  display: flex;
  flex-direction: column;
}

.srx-job-widget .filters__label {
  color: rgb(49, 27, 100);
  font-family: Atypdisplay, "Times New Roman", sans-serif;
  font-size: 18px;
  letter-spacing: -0.054px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.srx-job-widget .filters__input,
.srx-job-widget .filters__select {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #ffffff;
  width: 100%;
  height: 48px;
  transition: border-color 0.2s ease-in-out;
}

.srx-job-widget .filters__input:focus,
.srx-job-widget .filters__select:focus {
  outline: none;
  border-color: rgb(49, 27, 100);
  box-shadow: 0 0 0 2px rgba(49, 27, 100, 0.1);
}

.srx-job-widget .filters__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Job Cards */
.srx-job-widget .job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /*max-width: 1200px;*/
  max-width: 100%;
  margin: 0 auto;
}

.srx-job-widget .job-card {
  background-color: #F2F0F7;
  border: none;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.srx-job-widget .job-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.srx-job-widget .job-card__header {
  display: block;
  margin-bottom: 0;
}

.srx-job-widget .job-card__info {
  flex: 1;
  min-width: 0;
}

.srx-job-widget .job-card__company {
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.srx-job-widget .job-card__title {
  color: #5b21b6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.srx-job-widget .job-card__details {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.srx-job-widget .job-card__location {
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.srx-job-widget .job-card__location::before {
  display: none;
}

.srx-job-widget .job-card__meta {
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.srx-job-widget .job-card__description {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 16px;
  letter-spacing: 0.1px;
  line-height: 24px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srx-job-widget .job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.srx-job-widget .job-card__actions {
  display: flex;
  gap: 0;
  align-items: center;
  flex-shrink: 0;
}

.srx-job-widget .tag {
  display: none; /* Hide tags to match screenshot */
}

.srx-job-widget .tag--remote {
  display: none;
}

/* Buttons */
.srx-job-widget .btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.srx-job-widget .btn-primary {
  background-color: #311B64;
  color: #ffffff;
  font-weight: 600;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  transition: all 0.2s ease;
  width: 120px;
}



.srx-job-widget .btn-arrow {
  background-color: #311B64;
  color: #ffffff;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.srx-job-widget .job-card__actions:hover .btn-primary, .srx-job-widget .job-card__actions:hover .btn-arrow {
  background-color: #4c1d95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.srx-job-widget .job-card__actions:hover .btn-arrow {
  transfor: rotate(-45deg);
}

.srx-job-widget .btn-arrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.srx-job-widget .btn-secondary {
  display: none; /* Hide secondary button to match screenshot */
}

/* Pagination */
.srx-job-widget .pagination {
  background: #f2f0f7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 24px 0;
}

.srx-job-widget .pagination__button {
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  color: rgb(55, 54, 60);
  border-radius: 8px;
  cursor: pointer;
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.srx-job-widget .pagination__button:hover:not(:disabled) {
  border-color: rgb(49, 27, 100);
  color: rgb(49, 27, 100);
}

.srx-job-widget .pagination__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.srx-job-widget .pagination__button--active {
  background-color: rgb(49, 27, 100);
  color: #ffffff;
  border-color: rgb(49, 27, 100);
}

.srx-job-widget .pagination__info {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 14px;
  margin: 0 16px;
}

/* Loading State */
.srx-job-widget .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.srx-job-widget .loading__spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgb(49, 27, 100);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.srx-job-widget .loading__text {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 16px;
  text-align: center;
  margin-top: 16px;
}

/* Error State */
.srx-job-widget .error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.srx-job-widget .error__title {
  color: #dc2626;
  font-family: Atypdisplay, "Times New Roman", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.srx-job-widget .error__message {
  color: #7f1d1d;
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 16px;
}

/* Empty State */
.srx-job-widget .empty {
  text-align: center;
  padding: 40px 24px;
}

.srx-job-widget .empty__title {
  color: rgb(49, 27, 100);
  font-family: Atypdisplay, "Times New Roman", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.srx-job-widget .empty__message {
  color: rgb(55, 54, 60);
  font-family: Aktivgrotesk, "Times New Roman", sans-serif;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .srx-job-widget .filters {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  
  .srx-job-widget .job-card {
    padding: 16px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  
  .srx-job-widget .job-card__info {
    flex: 1;
    min-width: 0;
  }
  
  .srx-job-widget .job-card__actions {
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
  }
  
  .srx-job-widget .job-card__title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  
  .srx-job-widget .job-card__location {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .srx-job-widget .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
    width: 100px;
  }
  
  .srx-job-widget .btn-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
  }
  
  .srx-job-widget .btn-arrow svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  .srx-job-widget .pagination {
    flex-wrap: wrap;
    gap: 4px;
    padding: 20px 16px;
  }
  
  .srx-job-widget .pagination__info {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .srx-job-widget .filters {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .srx-job-widget .filters__label {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .srx-job-widget .filters__input,
  .srx-job-widget .filters__select {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .srx-job-widget .job-list {
    gap: 8px;
  }
  
  .srx-job-widget .job-card {
    padding: 12px;
    gap: 8px;
  }
  
  .srx-job-widget .job-card__title {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 3px;
  }
  
  .srx-job-widget .job-card__location {
    font-size: 12px;
  }
  
  .srx-job-widget .btn-primary {
    padding: 6px 12px;
    font-size: 12px;
    width: 80px;
  }
  
  .srx-job-widget .btn-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
  }
  
  .srx-job-widget .btn-arrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  
  .srx-job-widget .pagination {
    margin-top: 20px;
    padding: 16px 12px;
  }
  
  .srx-job-widget .pagination__button {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .srx-job-widget .pagination__info {
    font-size: 12px;
    margin: 6px 0;
  }
}

/* Utility Classes */
.srx-job-widget .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.srx-job-widget .hidden {
  display: none !important;
}

.srx-job-widget .text-center {
  text-align: center;
}
