/**
 * Job and therapist listing
 */

/* Container */
 .job-listing-boxes{
    display: grid;
    grid-template-columns: clamp(300px, calc(28.125rem + ((1vw - 19.2px) * 16.7411)), 450px) 1fr;
    gap: 35px;
    margin: 40px auto;
    max-width: 90%;
    padding: 0px;
    font-family: var(--font-stack);
    color: var(--text-color);
    max-width: 100%;
    margin: 0;
}

@media (max-width: 900px) {
     .job-listing-boxes{
        grid-template-columns: 1fr;
    }
}

.job-listing-boxes .internships-sidebar .filter-group-search .search-input {
    border: 1px solid var(--border-grey);
    padding: 18px 48px 18px 18px;
    border-radius: 16px 0px 0 16px;
    overflow: hidden;
    border-color: #F1F9FB;
    border-right-width: 0px;
    font-size: 16px;
    color: #3C4551 !important;
}

.job-listing-boxes .internships-sidebar .filter-group-search .search-input::placeholder {
    font-size: 16px;
    color: #3C4551 !important;
}

/* --- LISTINGS CONTENT AREA --- */
.job-internships-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Listings Grid */
.job-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.job-listing-boxes .internships-sidebar form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  width: 100%;
}
.job-listing-boxes .job-listing-card {
  border-radius: 8px 8px 8px 8px;
  overflow: hidden;
  background-color: #f1f9fb;
  box-shadow: unset;
  cursor: pointer;
}

.job-listing-boxes
  .internships-sidebar
  .filter-group-search
  .search-input {
  border: 1px solid;
  padding: 18px;
  border-radius: 16px 30px 30px 16px;
  overflow: hidden;
  border-color: #f1f9fb;
  border-right-width: 0px;
  font-size: 16px;
  color: #3c4551;
  width: 100%;
  padding-right: 65px;
}
.job-listing-boxes .filter-group-search .search-wrapper {
  position: relative;
  display: flex;
}
.job-listing-boxes .filter-group-search .search-wrapper .search-icon {
  width: 58px;
  height: 58px;
  border: unset;
  cursor: pointer;
  margin-left: 0;
  position: absolute;
  top: 0;
  transform: unset;
  flex: 58px 0 0;
  right: 0;
  transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
}
.job-listing-boxes .filter-group-search .search-wrapper .search-icon:hover {
  background-color: #6a207f;
}
.job-listing-boxes
  .job-listing-card
  .job-card-metadata-tags
  .job-meta-tag,
.job-listing-boxes
  .job-listing-card
  .job-card-metadata-tags
  .job-meta-tag:before {
  font-size: 14px;
  font-weight: 500;
  transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
      color: #04A5C7;
      padding: 0;
}
.job-listing-boxes
  .job-listing-card
  .job-card-title-section
  .job-employer-name {
  font-weight: 500;
}
.job-listing-boxes .job-listing-card .card-metadata-tags,
 .job-listing-boxes .job-listing-card .card-title-section,
  .job-listing-boxes .job-listing-card .card-address-section,
.job-listing-boxes .job-listing-card .card-button-wrapper{
        padding: 0;
}
.job-listing-boxes .job-listing-card .card-button-wrapper{
    margin-top: auto;
}
.job-listing-boxes .internships-sidebar .filter-box {
  border-color: #f1f9fb;
}
.job-listing-boxes .filter-box-title {
  font-size: 22px;
  color: #01132d !important;
  line-height: 1.4em;
}
.job-listing-boxes .checkbox-label {
  position: relative;
  font-size: 16px;
  color: #3c4551 !important;
  margin-bottom: 10px !important;
  margin-left: 10px !important;
  padding-left: 35px !important;
}
.job-listing-boxes .checkbox-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.job-listing-boxes .checkbox-label input:checked ~ .checkmark {
  background-color: #04a5c7;
}
.job-listing-boxes .checkmark {
  height: 25px;
  width: 25px;
  position: absolute;
  top: 50%;
  left: 0;
  background-color: #eee;
  border-radius: 2px;
  transform: translateY(-50%);
}
.job-listing-boxes .checkbox-label:hover .checkmark {
  background-color: #ccc;
}
.job-listing-boxes .checkbox-label input:checked ~ .checkmark:after {
  display: block;
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
}
.job-listing-boxes
  .internships-sidebar
  .clear-filters-btn.disabled {
  cursor: no-drop !important;
  pointer-events: unset !important;
}
.job-listing-boxes span.job-meta-tag.job-category {
  font-size: 14px;
  font-weight: 500;
  color: #04a5c7;
}
.job-listing-boxes .job-meta-tag::before {
  color: #04a5c7;
}
.job-listing-boxes .job-listings-grid {
  gap: 20px;
}
.job-listing-boxes .job-date span.et-pb-icon {
  font-family: FontAwesome !important;
  font-weight: 900 !important;
}
.job-listing-boxes .job-city span.et-pb-icon,
.listing-boxe .job-city span.job-location {
  font-family: ETmodules !important;
  font-weight: 400 !important;
}
.job-listing-boxes
  .job-listing-card
  .job-card-metadata-tags
  .job-meta-tag:before {
  font-size: 0;
  display: none;
}
.job-listing-boxes
  .job-listing-card
  .job-card-metadata-tags
  .et-pb-icon {
  font-size: 12px;
  margin-right: 4px;
}
.job-listing-boxes
  .internships-sidebar
  .filter-group-search
  .search-input::placeholder {
  opacity: 0.5;
}

.job-listing-boxes
  .job-listing-card:hover
  .job-card-metadata-tags
  .job-meta-tag {
  color: #6a207f !important;
}

.job-listing-boxes .job-listing-card:hover .visit-website-btn {
  background-color: #6a207f !important;
}


.job-listing-boxes .no-results {
  padding: 50px !important;
      width: 100% !important;
    grid-column: -1 / 1;
}

.job-listing-boxes .job-listing-card .job-card-title-section .job-card-line{
    border-bottom: 1px solid var(--border-light);
}
.job-card-organization{
        font-size: 18px;
    color: #3C4551 !important;
    line-height: 23px;
    margin-top: 15px;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .job-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Listing Card */
.job-listing-card {   
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 0;
    background: #F1F9FB;
    padding: 30px;
    box-shadow: none;
}

.job-listing-card:hover {
    transform: none;
    box-shadow: none;
}
/* Metadata tags row */
.job-card-metadata-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    /*padding: 0 24px;*/
}

.job-meta-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.job-meta-tag::before {
    content: "★ ";
    color: var(--text-muted);
}


.job-employer-name {
    font-size: 22px;
    color: #01132D;
    margin: 0 0 8px 0;
}

.job-card-line {
    border: none;
    margin: 8px 0 0 0;
    width: 100%;
}

/* Load More Button Container */
.job-load-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 0 0;
}


.job-listing-boxes .internships-sidebar .filter-box {
    max-height: 200px;
    overflow-x: auto;
    position: relative;
    border: 1px solid #F1F9FB;
}

.job-listing-boxes .internships-sidebar .filter-box .filter-box-title {
    font-size: 22px;
    color: #01132D;
    font-weight: 500;
}

.job-listing-boxes .internships-sidebar .filter-select-group .filter-select {
    border-radius: 10px;
    border: 1px solid #F1F9FB;
    background-color: #F1F9FB;
    color: #01132D !important;
    line-height: 24px;
    font-weight: 500;
    font-size: 16px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
    background-size: 28px;
}

.job-listing-boxes .internships-sidebar .clear-filters-btn {
    border: 1px solid #F1F9FB;
    background-color: transparent;
    transition: all 300ms ease 0ms;
    margin-bottom: 20px;
}

.job-listing-boxes .internships-sidebar .clear-filters-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    margin-bottom: 20px;
}

.job-listing-boxes .internships-sidebar .clear-filters-btn:hover {
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 300ms ease 0ms;
}


/* Loader Spinner */
.job-internships-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

.job-internships-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.job-listing-boxes .internships-sidebar.open form {
    display: block;
  }
.job-listing-boxes .internships-sidebar.open {
    z-index: 999;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100% !important;
   height: calc(100dvh - 80px);
    left: 0;
    top: 80px;
    bottom: 0;
    right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: scroll !important;
    background: #fff;
    display: block;
    padding: 0px 20px 20px;
}

@media (max-width: 991px) {
      .job-listing-boxes {
        gap: 10px;
    }
    .job-listing-boxes .internships-sidebar form{
        display: block;
    }
}
@media (max-width: 1024px) {
    .job-listing-boxes {
        grid-template-columns: 1fr;
    }    
    .job-listing-boxes {
        grid-template-columns: 100%;
    }
}

 .internships-sidebar .filter-box::-webkit-scrollbar-track {
    background: #f1f9fb;
    margin: 0;
    position: relative;
    border-radius: 10px;
    bottom: 10px;
    height: 10px;
    backdrop-filter: blur(8px);
}

 .internships-sidebar .filter-box::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: #05a5c7;
    padding-right: 10px;
    position: relative;
    bottom: 20px;
    right: 20px;
    border-radius: 20px;
}

 .internships-sidebar .filter-box::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #05a5c7;
    position: relative;
    bottom: 20px;
    right: 20px;
    height: 10px;
}

/**
 * Therapist listing
 */

/* Container */
.therapist-listing-boxes {
    display: grid;
    grid-template-columns: clamp(300px, calc(28.125rem + ((1vw - 19.2px) * 16.7411)), 450px) 1fr;
    gap: 35px;
    margin: 40px auto;
    max-width: 90%;
    padding: 0px;
    font-family: var(--font-stack);
    color: var(--text-color);
   max-width: 100%;   
    margin: 0;
}

@media (max-width: 900px) {
    .therapist-listing-boxes {
        grid-template-columns: 1fr;
    }
}

/* Search */
.therapist-listing-boxes .internships-sidebar .filter-group-search .search-input {
    border: 1px solid var(--border-grey);
    padding: 18px 48px 18px 18px;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    border-color: #F1F9FB;
    border-right-width: 0;
    font-size: 16px;
    color: #3C4551 !important;
}

.therapist-listing-boxes .internships-sidebar .filter-group-search .search-input::placeholder {
    font-size: 16px;
    color: #3C4551 !important;
    opacity: 0.5;
}

.therapist-listing-boxes .filter-group-search .search-wrapper {
    position: relative;
    display: flex;
}

.therapist-listing-boxes .filter-group-search .search-wrapper .search-icon {
    width: 58px;
    height: 58px;
    border: unset;
    cursor: pointer;
    margin-left: 0;
    position: absolute;
    top: 0;
    transform: unset;
    flex: 58px 0 0;
    right: 0;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
}

.therapist-listing-boxes .filter-group-search .search-wrapper .search-icon:hover {
    background-color: #6a207f;
}

.therapist-listing-boxes .internships-sidebar .filter-group-search .search-input {
    border: 1px solid;
    padding: 18px;
    border-radius: 16px 30px 30px 16px;
    overflow: hidden;
    border-color: #f1f9fb;
    border-right-width: 0;
    font-size: 16px;
    color: #3c4551;
    width: 100%;
    padding-right: 65px;
}

/* Listings Content */
.therapist-internships-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Listings Grid */
.therapist-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.therapist-listing-boxes .internships-sidebar form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    width: 100%;
}

/* Listing Card */
.therapist-listing-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #F1F9FB;
    padding: 30px;
    box-shadow: none;
    cursor: pointer;
}

.therapist-listing-card:hover {
    transform: none;
    box-shadow: none;
}

/* Therapist-specific card behavior */
.therapist-listing-boxes .therapist-listing-card {
    cursor: unset;
}

.therapist-listing-boxes .therapist-listing-card:hover .visit-website-btn {
    background-color: #04A5C7 !important;
}

/* Metadata Tags */
.therapist-card-metadata-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}

.therapist-meta-tag.job-category {
    font-size: 16px;
    line-height: 1.6em;
    font-weight: 500;
    color: #04a5c7;
}
.therapist-meta-tag.job-category:before{
    display:none;
}

.therapist-meta-tag::before {
    content: "★ ";
    color: var(--text-muted);
}

.therapist-listing-boxes
.therapist-listing-card
.therapist-card-metadata-tags
.therapist-meta-tag,
.therapist-listing-boxes
.therapist-listing-card
.therapist-card-metadata-tags
.therapist-meta-tag::before {
    font-size: 14px;
    font-weight: 600;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
    color: #04A5C7;
    padding: 0;
}

.therapist-listing-boxes .therapist-meta-tag::before {
    color: #04a5c7;
}

.therapist-listing-boxes span.therapist-meta-tag.therapist-category {
    font-size: 16px;
    line-height: 1.6em;
}

.therapist-listing-boxes span.therapist-meta-tag.therapist-category::before {
    display: none;
}

.therapist-listing-boxes
.therapist-listing-card
.therapist-card-metadata-tags
.therapist-job-meta-tag::before {
    font-size: 0;
    display: none;
}

.therapist-listing-boxes
.therapist-listing-card
.therapist-card-metadata-tags
.et-pb-icon {
    font-size: 12px;
    margin-right: 4px;
}

/*.therapist-listing-boxes
.therapist-listing-card:hover
.therapist-card-metadata-tags
.therapist-job-meta-tag {
    color: #6a207f !important;
}*/

/* Card Title */
.therapist-employer-name {
    font-size: 22px;
    color: #01132D;
    margin: 0 0 8px 0;
}

.therapist-listing-boxes
.therapist-listing-card
.therapist-card-title-section
.therapist-employer-name {
    font-weight: 500;
}

.therapist-listing-boxes .therapist-listing-card
.therapist-card-title-section
.therapist-employer-name {
    margin-bottom: 0;
}

.therapist-listing-boxes .therapist-listing-card
.therapist-card-title-section
.card-category-section {
    margin-bottom: 15px;
}

/* Card Organization */
.therapist-card-organization {
    font-size: 18px;
    color: #3C4551 !important;
    line-height: 23px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Card Line */
.therapist-card-line {
    border: none;
    margin: 8px 0 0 0;
    width: 100%;
}

.therapist-listing-boxes
.therapist-listing-card
.therapist-card-title-section
.therapist-card-line {
    border-bottom: 1px solid var(--border-light);
}

/* Card Sections */
.therapist-listing-boxes .therapist-listing-card .therapist-card-metadata-tags,
.therapist-listing-boxes .therapist-listing-card .therapist-card-title-section,
.therapist-listing-boxes .therapist-listing-card .therapist-card-address-section,
.therapist-listing-boxes .therapist-listing-card .therapist-card-button-wrapper {
    padding: 0;
}

.therapist-listing-boxes .therapist-listing-card .therapist-card-button-wrapper {
    margin-top: auto;
}

/* Address */
.therapist-listing-boxes .therapist-listing-card .therapist-card-address-section {
    border-bottom: unset;
    padding-bottom: 0;
    font-size: 18px !important;
    color: #3C4551 !important;
    line-height: 1.6em !important;
}

.therapist-listing-boxes .therapist-listing-card .therapist-card-address-section a {
    color: inherit;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
}

.therapist-listing-boxes .therapist-listing-card .therapist-card-address-section a:hover {
    color: #04a5c7;
}

/* City / Date */
.therapist-listing-boxes .therapist-date span.et-pb-icon {
    font-family: FontAwesome !important;
    font-weight: 900 !important;
}

.therapist-listing-boxes .therapist-city span.et-pb-icon,
.therapist-listing-boxes .therapist-city span.therapist-location {
    font-family: ETmodules !important;
    font-weight: 400 !important;
}

/* Website Button */
.therapist-listing-boxes .therapist-listings-grid .visit-website-btn {
    padding-top: 5px !important;
    padding-right: 15px !important;
    padding-bottom: 5px !important;
    padding-left: 15px !important;
    font-size: 14px;
}

.therapist-listing-boxes .therapist-listings-grid .visit-website-btn span.et-pb-icon {
    font-family: 'FontAwesome' !important;
    font-weight: 900 !important;
    font-size: 12px;
}

.therapist-listing-boxes .therapist-listings-grid .visit-website-btn i {
    font-size: 12px;
}

/* No Results */
.therapist-listing-boxes .no-results {
    padding: 50px !important;
    width: 100% !important;
    grid-column: -1 / 1;
}

/* Sidebar */
.therapist-listing-boxes .internships-sidebar .filter-box {
    border-color: #f1f9fb;
    max-height: 200px;
    overflow-x: auto;
    position: relative;
    border: 1px solid #F1F9FB;
}

.therapist-listing-boxes .filter-box-title {
    font-size: 22px;
    color: #01132d !important;
    line-height: 1.4em;
}

.therapist-listing-boxes .internships-sidebar .filter-box .filter-box-title {
    font-size: 22px;
    color: #01132D;
    font-weight: 500;
}

/* Checkbox */
.therapist-listing-boxes .checkbox-label {
    position: relative;
    font-size: 16px;
    color: #3c4551 !important;
    margin-bottom: 10px !important;
    margin-left: 10px !important;
    padding-left: 35px !important;
}

.therapist-listing-boxes .checkbox-label input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.therapist-listing-boxes .checkbox-label input:checked ~ .checkmark {
    background-color: #04a5c7;
}

.therapist-listing-boxes .checkmark {
    height: 25px;
    width: 25px;
    position: absolute;
    top: 50%;
    left: 0;
    background-color: #eee;
    border-radius: 2px;
    transform: translateY(-50%);
}

.therapist-listing-boxes .checkbox-label:hover .checkmark {
    background-color: #ccc;
}

.therapist-listing-boxes .checkbox-label input:checked ~ .checkmark:after {
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
}

/* Filter Select */
.therapist-listing-boxes .internships-sidebar .filter-select-group .filter-select {
    border-radius: 10px;
    border: 1px solid #F1F9FB;
    background-color: #F1F9FB;
    color: #01132D !important;
    line-height: 24px;
    font-weight: 500;
    font-size: 16px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
    background-size: 28px;
}

/* Clear Filters */
.therapist-listing-boxes
.internships-sidebar
.clear-filters-btn {
    border: 1px solid #F1F9FB;
    background-color: transparent;
    transition: all 300ms ease 0ms;
    margin-bottom: 20px;
}

.therapist-listing-boxes
.internships-sidebar
.clear-filters-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    margin-bottom: 20px;
}

.therapist-listing-boxes
.internships-sidebar
.clear-filters-btn:hover {
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 300ms ease 0ms;
}

.therapist-listing-boxes
.internships-sidebar
.clear-filters-btn.disabled {
    cursor: no-drop !important;
    pointer-events: unset !important;
}

/* Load More */
.therapist-load-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 0 0;
}

/* Loader */
.therapist-internships-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

.therapist-internships-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Sidebar */

.therapist-listing-boxes .internships-sidebar.open form {
    display: block;
}

.therapist-listing-boxes .internships-sidebar.open {
    z-index: 999;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100% !important;
    height: calc(100dvh - 80px);
    left: 0;
    top: 80px;
    bottom: 0;
    right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: scroll !important;
    background: #fff;
    display: block;
    padding: 0 20px 20px;
}
.therapist-load-more-container .load-more-btn, .job-load-more-container .load-more-btn{
    cursor: pointer;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .therapist-listing-boxes {
        grid-template-columns: 1fr;
    }    

    .therapist-listing-boxes {
        grid-template-columns: 100%;
    }
}

@media (max-width: 991px) {
    .therapist-listing-boxes {
        gap: 10px;
    }
    .therapist-listing-boxes .internships-sidebar form{
        display: block;
    }
}

@media (max-width: 768px) {
    .therapist-listings-grid {
        grid-template-columns: 1fr;
    }
}
