/* Css For CRUD Job Advertisement */

.job-list-card {
  border: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.job-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
  font-family: inherit;
}

.job-top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.job-list-header .dataTables_length {
  float: none !important;
  margin: 0 !important;
}

.job-list-header .dataTables_length label {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  white-space: nowrap;
}

.job-list-header .dataTables_length select {
  margin: 0 0.35rem;
}

.job-add-btn,
.form-save-btn,
.form-cancel-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
}

.job-add-btn,
.form-save-btn {
  border: 0;
  background: linear-gradient(135deg, #6d7bf5 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.form-cancel-btn {
  border: 1px solid #cfd8ea;
  background: #fff;
  color: #475569;
}

.action-dropdown-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #dfe4f1;
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-dropdown-toggle::after {
  display: none;
}

.action-menu {
  min-width: 92px;
  border: 1px solid #e5e9f3;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
  padding: 0.4rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.action-menu.show {
  display: flex;
}

.action-menu .dropdown-item,
.action-menu .dropdown-item-btn {
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.action-menu .dropdown-item-btn {
  border: 0;
  background: transparent;
  color: #dc3545;
}

.action-menu li {
  list-style: none;
}

.job-list-card .dataTables_wrapper {
  padding: 0.65rem 0.75rem 0.5rem;
  background: #fff;
}

.job-list-card .table {
  margin-bottom: 0;
}

.job-list-card .table thead th {
  background: #f2f4fb;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #eceff6;
}

.job-list-card .table td {
  border-color: #eef1f7;
  vertical-align: middle;
  color: #111827;
  font-size: 0.875rem;
}

.job-list-card .table td:first-child,
.job-list-card .table th:first-child {
  width: 60px;
  text-align: center;
}

.job-list-card .table td:last-child,
.job-list-card .table th:last-child {
  width: 70px;
  text-align: center;
}

.job-list-card .dataTables_wrapper .dataTables_length {
  float: left;
  margin-top: 0.9rem;
  margin-bottom: 0.7rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.job-list-card .dataTables_wrapper .dataTables_filter {
  margin: 0;
  float: none;
  position: relative;
}

.job-list-card .dataTables_wrapper .dataTables_info {
  padding-top: 0.6rem;
  color: #4b5563;
  border-top: 0 !important;
}

.job-list-card .dataTables_wrapper .dataTables_paginate {
  margin-top: 0;
  padding-top: 0.55rem;
  border-top: 0 !important;
}

.job-list-card table.dataTable.no-footer {
  border-bottom: 0 !important;
}

.job-list-card table.dataTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

#jobTopActions .dataTables_filter input {
  border: 1px solid #dbe2f0 !important;
  border-radius: 10px !important;
  min-width: 230px;
  height: 42px;
  margin: 0 !important;
  padding: 0.35rem 0.85rem 0.35rem 2.2rem !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center !important;
  font-size: 0.86rem !important;
  color: #111827;
}

#jobTopActions .dataTables_filter label {
  margin: 0;
  font-size: 0;
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #e3e7f1 !important;
  background: #fff !important;
  color: #4b5563 !important;
  border-radius: 8px !important;
  min-width: 34px;
  height: 34px;
  line-height: 32px;
  padding: 0 !important;
  margin: 0 3px;
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f8f9ff !important;
  border-color: #d5dbed !important;
  color: #111827 !important;
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next {
  font-size: 0 !important;
  position: relative;
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,
.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next:before {
  font-size: 0.95rem;
  line-height: 32px;
  color: #4b5563;
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before {
  content: "\2039";
}

.job-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.next:before {
  content: "\203A";
}

@media (max-width: 576px) {
  .job-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  #jobTopActions .dataTables_filter input {
    min-width: 190px;
  }
}

.dataTables_wrapper .dataTable thead th {
  position: relative;
  padding-right: 2rem;
}

.dataTables_wrapper .dataTable thead th.sorting,
.dataTables_wrapper .dataTable thead th.sorting_asc,
.dataTables_wrapper .dataTable thead th.sorting_desc {
  cursor: pointer;
}

.dataTables_wrapper .dataTable thead th.sorting:before,
.dataTables_wrapper .dataTable thead th.sorting_asc:before,
.dataTables_wrapper .dataTable thead th.sorting_desc:before,
.dataTables_wrapper .dataTable thead th.sorting:after,
.dataTables_wrapper .dataTable thead th.sorting_asc:after,
.dataTables_wrapper .dataTable thead th.sorting_desc:after {
  position: absolute;
  right: 0.5rem;
  font-family: FontAwesome;
  font-size: 0.7rem;
  color: #b0b6bc;
  display: block;
  line-height: 1;
  width: 1em;
  text-align: center;
}

.dataTables_wrapper .dataTable thead th.sorting:before {
  content: "\f0de";
  top: 0.45rem;
}

.dataTables_wrapper .dataTable thead th.sorting:after {
  content: "\f0dd";
  top: 1.3rem;
}

.dataTables_wrapper .dataTable thead th.sorting_asc:before {
  color: #343a40;
  content: "\f0de";
}

.dataTables_wrapper .dataTable thead th.sorting_asc:after {
  color: #b0b6bc;
  content: "\f0dd";
}

.dataTables_wrapper .dataTable thead th.sorting_desc:before {
  color: #b0b6bc;
  content: "\f0de";
}

.dataTables_wrapper .dataTable thead th.sorting_desc:after {
  color: #343a40;
  content: "\f0dd";
}


/* Css For Public Job Advertisement */

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #f4f6fb;
}

/* HERO */
.career-hero {
  min-height: auto;
  position: relative;
  padding: 24px 0 60px;
  background: transparent;
  display: flex;
  align-items: flex-start;
  color: #0f172a;
}

.career-hero-overlay {
  position: absolute;
  inset: 0;
  display: none;
}

.career-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.career-hero-copy {
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  padding: 28px 30px;
  background:linear-gradient(135deg, rgba(15, 35, 72, 0.92), rgba(29, 78, 216, 0.78)),
  url('{{ asset("assets/img/careerbg.jpg") }}') center/cover no-repeat;
  color: #fff;
}

.career-card-slider {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.career-hero-copy h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
}

.career-hero-copy p {
  font-size: 17px;
  line-height: 1.6;
  opacity: .92;
  margin: 0;
  max-width: 700px;
}

.btn-orange {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-orange:hover {
  background: #1d4ed8;
}

.career-card-slider {
  width: 100%;
  max-width: 980px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.slider-header h2 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.slider-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  max-width: 420px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe2f1;
  background: #fff;
  color: #2563eb;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.slider-arrow:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

.career-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.career-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  padding: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.career-card-image {
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  background: #e5e7eb;
}

.career-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.career-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.career-card-body h3,
.career-card-body p,
.career-card-body .career-card-top {
  width: 100%;
}

.career-card-top {
  margin-bottom: 14px;
}

.career-card-meta {
  margin: 0 0 14px;
  color: #64748b;
}

.career-card p {
  margin: 0;
  line-height: 1.75;
  color: #475569;
}

.career-card-button {
  width: 100%;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  color: #1d4ed8;
  box-shadow: none;
  transition: background .2s, transform .2s;
}

.career-card-button:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.career-card:hover {
  transform: translateY(-4px);
  border-color: #d2dcf0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.career-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.career-card-tag,
.career-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.career-card-tag {
  background: #eef2ff;
  color: #1e3a8a;
}

.career-card-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.career-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0f172a;
}

.career-card-meta {
  font-size: 13px;
  opacity: 1;
  margin: 0 0 14px;
}

.career-card p {
  margin: 0 0 18px;
  line-height: 1.65;
  color: #475569;
  flex-grow: 1;
}

.career-card-button {
  border: none;
  background: transparent;
  color: #1d4ed8;
  padding: 0;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-top: auto;
}

.career-card-button i {
  font-size: 12px;
}

.career-no-jobs {
  padding: 40px;
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.career-no-jobs p {
  margin: 0;
  line-height: 1.8;
  color: #64748b;
}

.career-detail {
  display: none;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.career-detail.active {
  display: block;
}

.detail-panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 28px;
  text-align: left;
}

.detail-close {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 14px;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  justify-self: start;
}

.career-card-slider.is-hidden {
  display: none;
}

.detail-header {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
}

.detail-header h3 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.detail-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #64748b;
  font-size: 14px;
}

.detail-meta-line span {
  display: inline-flex;
  align-items: center;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 18px auto 30px;
  max-width: 760px;
}

.detail-meta-grid span {
  display: block;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.detail-body {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.detail-main {
  color: #334155;
}

.detail-main h4 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #0f172a;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-main p,
.detail-main ul {
  margin: 0 0 20px;
  line-height: 1.8;
  color: #475569;
}

.detail-main ul {
  padding-left: 24px;
  margin-top: 10px;
  text-align: left;
}

.detail-main li {
  margin-bottom: 10px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  min-width: 280px;
}

.detail-sidebar-image {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #e2e8f0;
}

.detail-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-sidebar-info {
  display: grid;
  gap: 14px;
}

.detail-sidebar-row {
  display: grid;
  gap: 6px;
}

.detail-sidebar-row span {
  font-size: 13px;
  color: #64748b;
}

.detail-sidebar-row strong {
  font-size: 15px;
  color: #0f172a;
}

.detail-sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-panel {
    padding: 24px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .career-hero-content {
    grid-template-columns: 1fr;
  }

  .career-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-custom {
    padding: 0 20px;
  }

  .nav-center {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .career-hero {
    min-height: auto;
    padding: 30px 0 60px;
  }

  .career-hero-content {
    gap: 24px;
  }

  .career-hero-copy h1 {
    font-size: 34px;
  }

  .career-card-slider {
    padding: 20px;
  }

  .slider-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .career-cards {
    grid-template-columns: 1fr;
  }
}