/* 
 * Job Board Bootstrap Overrides
 * Minimal custom styles for brand colors and specific customizations
 */

/* Job Board Specific: Left Border Accent on Cards */
/* .dashboard-item,
.job-item {
    border-left: 4px solid var(--jobboard-primary) !important;
} */

/* Container Max Width Override */
/* .jobboard-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
} */

/* Tab Active State */
.nav-link.active,
.tab-button.active {
    color: var(--jobboard-primary) !important;
    border-bottom-color: var(--jobboard-primary) !important;
}

/* Custom Checkbox (if not using Bootstrap 5 native) */
/* .form-check-input:checked {
    background-color: var(--jobboard-primary) !important;
    border-color: var(--jobboard-primary) !important;
} */

/* Badge Primary Override */
.badge.bg-primary {
    background-color: var(--jobboard-primary) !important;
}

/* Custom hover effects for job cards */
/* .job-item:hover,
.dashboard-item:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
} */

/* Ensure proper spacing for jobboard container */
/* .jobboard-container {
    padding: 1.5rem;
} */

/* RSS Feed Button Custom Styling */
.btn-outline-warning {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-warning:hover {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

/* Pagination Custom Colors */
.pagination .page-link {
    color: var(--jobboard-primary);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--jobboard-primary-hover);
}

.pagination .page-item.active .page-link {
    background-color: var(--jobboard-primary);
    border-color: var(--jobboard-primary);
}

/* Modal Cover Letter */
#cover-letter-modal.jobboard-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
}

#cover-letter-modal.jobboard-modal.show {
    display: flex;
}

#cover-letter-modal .modal-content {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

#cover-letter-modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    opacity: .5;
    background: none;
    border: none;
}

#cover-letter-modal .close:hover {
    opacity: .75;
}

.cover-letter-modal-content {
    white-space: pre-wrap;
    font-size: 1rem;
    color: #212529;
    line-height: 1.6;
}

/* Job Card Logo Styles (for shortcodes) */
.jobboard-job-card__logo {
    flex: 0 0 56px;
    height: 56px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jobboard-job-card__logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.jobboard-job-card__logo-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6c757d;
}


/* Company Card Styles (for shortcodes) */
.jobboard-company-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background-color: #fff;
}

.jobboard-company-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.jobboard-company-card__logo {
    flex: 0 0 64px;
    height: 64px;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jobboard-company-card__logo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}


/* Hide elements that should not be visible */
.is-hidden {
    display: none !important;
}

/* Ensure proper display for flex containers */
.d-flex {
    display: flex !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Gap utilities (in case Bootstrap 4 is used) */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Rounded utilities */
.rounded-pill {
    border-radius: 50rem !important;
}


/* Job Board Pagination */
.jobboard-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.jobboard-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.jobboard-pagination .page-numbers:hover {
    background-color: #f5f7fa;
    border-color: #cfd6e0;
    color: #111;
}

/* Current page */
.jobboard-pagination .page-numbers.current {
    background: rgba(var(--primary_rgb), 0.08)!important;
    border-color: rgba(var(--primary_rgb), 0.12)!important;
    color: rgba(var(--primary_rgb), 0.9)!important;
    cursor: default;
}

/* Next / Prev buttons */
.jobboard-pagination .page-numbers.next,
.jobboard-pagination .page-numbers.prev {
    font-weight: 600;
}

/* Disabled state (if exists) */
.jobboard-pagination .page-numbers.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dashboard-header .me-3 {
    width: 64px;
    min-width: 64px;
    height: auto;
    overflow: visible;
}

.dashboard-header img {
    max-width: 100%;
    height: auto;
}


/* Mobile friendly */
@media (max-width: 576px) {
    .jobboard-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}


/* Mobile Phones (portrait) */
@media (max-width: 575.98px) {
    /* Your mobile CSS here */
    .jobboard-job-card__body {
      display: block!important;
    }
    .jobboard-job-card__logo {
      margin-right:0px!important;
      margin-bottom: 10px;
    }
    .section {
    padding: 40px 0 !important;
}
.section-heading {
    font-size: 2rem;
}
.carousel-inner .d-flex {
  display: block !important; 
}
.carousel-inner .border-1 {
  margin-bottom: 0px!important;
}
.testimonial-avatar img {
  margin-bottom: 10px;
}
#faqs .btn-secondary {
  width: 100%;
}
.faqs-view-more {
  margin-top: 25px!important;
}
#testimonials .btn-secondary {
  width: 100%;
}
.testimonials-view-more {
  margin-top: 25px!important;
}
.social-icons-footer {
  text-align: center!important;
  margin-top:15px;
}
.copyright-footer {
  text-align: center!important;
}
.footer-social-link:last-child {
    margin-right: 0 !important;
}
.jobboard-home-filter__input {
  margin-bottom: 10px;
}
.job-card-header.card-body.d-flex {
        display: block !important;
  }
  .job-meta.my-2.d-flex {
        display: block !important;
    }
.job-description {
  display: none;
}
.job-item .btn-primary {
  width: 100%;
  margin-top: 10px;
}
.job-item-detail .btn-primary {
  width: 100%;
  margin-top: 10px;
}
.job-item-detail .d-flex {
display: block !important;
}
.job-item-detail .gap-5 {
  gap: 0px !important;
}
.job-item-detail .ms-3 {
    margin-left: 0rem !important;
    text-align: end;
}
.job-item-detail .ms-3 .jobboard-save-heart-btn {
    margin-top: 1rem !important;
    font-size: larger!important;
}
.site-footer h4 {
    font-size: 1.5rem !important;
}
.jobboard-job-card__type, .ms-3 {
    margin-left: 0rem !important;
}
.g-5, .gx-5 {
    --bs-gutter-x: 0rem;
}
.website-details svg {display: none;}
.website-details, .small {overflow-wrap: anywhere;}
.dashboard-header, .d-flex {display: block!important;}
.dashboard-header, .btn-primary {margin:15px 0px;width: 100%;}
.dashboard-item, .item-actions {margin-top:15px;}
.item-actions, .btn-secondary {width:100%;margin-top:15px;}
.mb-0 fw-semibold text-truncate
.candidate-application, h6 {margin-top: 5px;}
h1.entry-title {
    font-size: 1.5rem;
}
.jobboard-flex {
    display: block !important;
}
.job-meta span {display: block;}
h5.resume-title {margin-top:10px;}
.repeatable-group .group-row {display: block;}
.repeatable-group .group-row input {margin-bottom:8px;}
.custom-header .d-flex {
    display: flex!important;
  }
      .jobboard-dropdown-menu .sub-menu {
        position: static;
        box-shadow: none;
        margin-left: 0;
    }
}



/* Large Mobile Phones */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Your large mobile CSS */
      .jobboard-job-card__body {
      display: block!important;
    }
    .jobboard-job-card__logo {
      margin-right:0px!important;
      margin-bottom: 10px;
    }
    .section {
    padding: 40px 0 !important;
}
.section-heading {
    font-size: 2rem;
}
.carousel-inner .d-flex {
  display: block !important; 
}
.carousel-inner .border-1 {
  margin-bottom: 0px!important;
}

.testimonial-avatar img {
  margin-bottom: 10px;
}
#faqs .btn-secondary {
  width: 100%;
}
.faqs-view-more {
  margin-top: 25px!important;
}
#testimonials .btn-secondary {
  width: 100%;
}
.testimonials-view-more {
  margin-top: 25px!important;
}
.social-icons-footer {
  text-align: center!important;
  margin-top:15px;
}
.copyright-footer {
  text-align: center!important;
}
.footer-social-link:last-child {
    margin-right: 0 !important;
}
.jobboard-home-filter__input {
  margin-bottom: 10px;
}
.job-card-header.card-body.d-flex {
        display: block !important;
  }
  .job-meta.my-2.d-flex {
        display: block !important;
    }
.job-description {
  display: none;
}
.job-item .btn-primary {
  width: 100%;
  margin-top: 10px;
}
.job-item-detail .d-flex {
display: block !important;
}
.job-item-detail .gap-5 {
  gap: 0px !important;
}
.job-item-detail .ms-3 {
    margin-left: 0rem !important;
    text-align: end;
}
.job-item-detail .ms-3 .jobboard-save-heart-btn {
    margin-top: 1rem !important;
    font-size: larger!important;
}
.site-footer h4 {
    font-size: 1.5rem !important;
}
.jobboard-job-card__type .ms-3 {
  margin-left: 0rem !important;
}
.g-5, .gx-5 {
    --bs-gutter-x: 0rem;
}

}

/* Small Laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Your laptop CSS */
    
}

