/* Extracted from careers.html */
/* Palette:
       #fee023 (yellow)
       #ffffff (white)
       #4CAF50 (green)
       #81D4FA (light blue)
       #01244a (dark blue)
    */

.job-section-wrapper {
  max-width: 1220px;
  margin: 0 auto;
}

.job-group-title {
  font-size: 1.6rem;
  margin: 30px 0 18px;
  font-weight: 700;
  color: #fee023;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.job-listing {
  border: 1px solid rgba(1, 36, 74, 0.18);
  background-color: #ffffff;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.job-listing h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #01244a;
  font-weight: 700;
}

.job-listing p {
  margin-bottom: 10px;
  color: #01244a;
}

.job-listing p strong {
  color: #4CAF50;
  font-weight: 700;
}

.job-listing h4 {
  font-size: 1.05rem;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #01244a;
  font-weight: 600;
}

.job-listing ul {
  padding-left: 18px;
  margin-bottom: 14px;
  color: #01244a;
}

.job-listing ul li {
  margin-bottom: 4px;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.apply-btn:hover {
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
  transform: translateY(-1px);
}

.apply-btn:hover:before {
  transform: scaleX(0) !important;
}

.apply-btn--disabled {
  pointer-events: none;
  background-color: rgba(1, 36, 74, 0.15);
  color: rgba(1, 36, 74, 0.7);
  box-shadow: none;
  cursor: not-allowed;
}

.apply-btn--disabled:hover {
  color: rgba(1, 36, 74, 0.7);
}

.apply-btn--disabled:before {
  display: none;
}

/* Accordion + Search Styling */
.accordion-item {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(1, 36, 74, 0.18);
  box-shadow: 0 10px 24px rgba(1, 36, 74, 0.12);
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
  outline: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 12px;
  transition: box-shadow 0.25s ease, border-left 0.25s ease;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-header-left i {
  color: #fee023;
  font-size: 1.2rem;
}

.accordion-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.accordion-header .toggle-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  color: #fee023;
}

.accordion-header.active .toggle-icon {
  transform: rotate(45deg);
}

/* Active header with strong yellow accent */
.accordion-header.active {
  border-left: 6px solid var(--yellow);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  background-color: #ffffff;
  padding: 0 20px;
}

.accordion-content.active {
  max-height: 5000px;
  padding-bottom: 20px;
}

.job-search-bar {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  margin: 18px 0 20px;
  border-radius: 8px;
  border: 1px solid #01244a;
  color: #01244a;
  background-color: #ffffff;
}

.job-search-bar::placeholder {
  color: #01244a;
  opacity: 0.7;
}

/* ========================================
   JOBS PANEL   — redesigned
   ======================================== */

/* Jobs Panel Styles */
.jobs-panel {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow:
    0 2px 4px rgba(46, 125, 50, 0.04),
    0 8px 24px rgba(46, 125, 50, 0.10),
    0 20px 48px rgba(46, 125, 50, 0.06);
  position: relative;
  border: 1px solid rgba(46, 125, 50, 0.08);
  min-height: 520px;
}

.jobs-panel__sidebar {
  display: flex;
  flex-direction: column;
  width: 260px;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.04) 0%, rgba(76, 175, 80, 0.08) 100%);
  padding: 20px 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.12);
  gap: 6px;
  overflow-y: auto;
  margin-left: 0;
  margin-right: 0;
  flex: 0 0 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
}

.jobs-panel__search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  font-size: 0.95rem;
  margin: 0 0 18px 0;
  border-radius: 12px;
  border: 2px solid rgba(76, 175, 80, 0.18);
  color: #01244a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234CAF50' opacity='0.5' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.jobs-panel__search:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}

.jobs-panel__search::placeholder {
  color: #01244a;
  opacity: .5;
  font-weight: 400;
}

.jobs-panel__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  color: #01244a;
  border: none;
  padding: 12px 16px;
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  width: 100%;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
  letter-spacing: 0.01em;
}

.jobs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.08);
  color: #01244a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.25s ease;
}

/* Category buttons (sidebar) */
.jobs-panel__btn:hover {
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
  border-color: rgba(76, 175, 80, 0.15);
}

.jobs-panel__btn.active {
  background: #2e7d32;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  border-color: #2e7d32;
}

.jobs-panel__btn.active .jobs-badge {
  background: rgba(254, 224, 35, 0.2);
  color: #fee023;
}

/* Yellow left indicator on active */
.jobs-panel__btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: #fee023;
}

/* Disable sweep overlay on category buttons — using solid state transitions instead */
.jobs-panel__btn:before {
  display: none !important;
}

.jobs-panel__btn.active:before {
  transform: scaleX(0);
}

/* ---- Job Listing column (middle) ---- */
.jobs-panel__listing {
  flex: 1 1 320px;
  min-width: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
  position: sticky;
  top: 100px;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 175, 80, 0.18) transparent;
}

.jobs-panel__listing::-webkit-scrollbar {
  width: 5px;
}

.jobs-panel__listing::-webkit-scrollbar-track {
  background: transparent;
}

.jobs-panel__listing::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.18);
  border-radius: 4px;
}

/* ---- Detail panel (right) — desktop only ---- */
.jobs-panel__detail {
  flex: 1 1 420px;
  min-width: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.03) 0%, rgba(76, 175, 80, 0.06) 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 175, 80, 0.10);
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 175, 80, 0.18) transparent;
}

.jobs-panel__detail::-webkit-scrollbar {
  width: 5px;
}

.jobs-panel__detail::-webkit-scrollbar-track {
  background: transparent;
}

.jobs-panel__detail::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.18);
  border-radius: 4px;
}

/* Placeholder shown when nothing is selected */
.jobs-panel__detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  min-height: 400px;
  color: rgba(46, 125, 50, 0.35);
}

.jobs-panel__detail-placeholder i {
  font-size: 3rem;
  margin-bottom: 18px;
  color: rgba(76, 175, 80, 0.20);
}

.jobs-panel__detail-placeholder h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(46, 125, 50, 0.45);
  margin-bottom: 8px;
}

.jobs-panel__detail-placeholder p {
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.5;
}

/* Detail content (filled by JS) */
.jobs-panel__detail-content {
  padding: 28px 28px 24px;
}

.detail__header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.12);
}

.detail__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 10px;
  line-height: 1.3;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail__type,
.detail__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
}

.detail__type i,
.detail__category i {
  font-size: 0.75rem;
  color: rgba(76, 175, 80, 0.55);
}

.detail__section {
  margin-bottom: 18px;
}

.detail__section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail__section-title i {
  color: #4CAF50;
  font-size: 0.85rem;
}

.detail__section p {
  color: rgba(1, 36, 74, 0.8);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.detail__section ul {
  padding-left: 18px;
  margin: 0;
  color: rgba(1, 36, 74, 0.8);
}

.detail__section ul li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 5px;
  position: relative;
}

.detail__actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid rgba(76, 175, 80, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Mobile detail modal ---- */
.job-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.job-detail-modal.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.job-detail-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 94, 32, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.job-detail-modal__dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  box-shadow: 0 -8px 40px rgba(46, 125, 50, 0.20);
  animation: slideUp .3s ease;
}

.job-detail-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(76, 175, 80, 0.08);
  color: #2e7d32;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.job-detail-modal__close:hover {
  background: #2e7d32;
  color: #ffffff;
}

.job-detail-modal__body {
  padding-top: 8px;
}

/* On desktop (>991px) hide mobile modal, show detail panel */
@media (min-width: 992px) {
  .job-detail-modal {
    display: none !important;
  }
}

/* On mobile (<992px) hide desktop detail panel */
@media (max-width: 991px) {
  .jobs-panel__detail {
    display: none !important;
  }
}

.jobs-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  top: 0;
}

.jobs-controls__count {
  margin-right: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(46, 125, 50, 0.55);
}

.jobs-control-btn {
  background: transparent;
  color: #2e7d32;
  border: 1.5px solid rgba(76, 175, 80, 0.22);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--yellow);
}

/* Expand/Collapse buttons */
.jobs-control-btn:hover,
.jobs-control-btn:active,
.jobs-control-btn:focus-visible {
  background: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.22);
}

#jobsPanelList .job-listing {
  margin-bottom: 24px;
}

.panel-empty {
  color: rgba(46, 125, 50, 0.5);
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}

/* Hide original accordion since replaced by panel */
.job-section-wrapper .accordion-item {
  display: none;
}

/* Collapsible job items inside the panel — now click-to-detail cards */
.job-item {
  border: 1px solid rgba(76, 175, 80, 0.12);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.05);
  margin-bottom: 8px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.job-item:hover {
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.22);
}

/* Selected state — job actively shown in detail panel */
.job-item.selected {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.20), 0 4px 16px rgba(76, 175, 80, 0.10);
}

.job-item.selected .job-item__header {
  background: linear-gradient(135deg, #2e7d32 0%, #388E3C 100%);
}

.job-item.selected .job-item__header::after {
  opacity: 1;
}

.job-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #2e7d32;
  color: #ffffff;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 14px;
  border: 0;
  outline: 0;
  font-weight: 600;
  text-align: left;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
  letter-spacing: 0.01em;
}

.job-item__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Inline status dot */
.job-item__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.job-item__status-dot--open {
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.job-item__status-dot--closed {
  background: #ef5350;
  box-shadow: 0 0 6px rgba(239, 83, 80, 0.4);
}

/* Subtle gradient accent at base of header */
.job-item__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fee023, #4CAF50);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-item:hover .job-item__header::after,
.job-item.selected .job-item__header::after {
  opacity: 1;
}

.job-item__title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-item__icon {
  color: #fee023;
  transition: transform .3s ease, color .25s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.job-item.selected .job-item__icon {
  color: #4CAF50;
}

.job-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.job-availability--open {
  background: rgba(76, 175, 80, 0.10);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.30);
}

.job-availability--open::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.job-availability--closed {
  background: rgba(244, 67, 54, 0.10);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.30);
}

.job-availability--closed::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef5350;
}

/* Job list headers */
.job-item__header:hover,
.job-item.selected .job-item__header,
.job-item__header:focus-visible {
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
  background: #4CAF50;
}

.job-item__header:hover .job-item__title,
.job-item.selected .job-item__header .job-item__title,
.job-item__header:focus-visible .job-item__title {
  color: #ffffff;
}

.job-item__header:hover .job-item__icon,
.job-item.selected .job-item__header .job-item__icon,
.job-item__header:focus-visible .job-item__icon {
  color: #fee023;
}

/* Sweep Effect — kept for apply-btn and job-group-title only */
.jobs-control-btn,
.job-item__header,
.apply-btn,
.job-group-title {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Ensure titles/icons render above the sweep overlay */
.jobs-control-btn .label,
.apply-btn,
.job-item__title,
.job-item__icon {
  position: relative;
  z-index: 1;
}

.apply-btn:before,
.job-group-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(0.37, 0.31, 0.31, 0.9);
}

/* Sweep triggers */
.apply-btn:hover:before,
.job-group-title:hover:before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Responsive: stack panels on small screens */
@media (max-width: 991px) {
  .jobs-panel {
    flex-wrap: wrap;
    padding: 24px 20px;
    gap: 20px;
    min-height: auto;
  }

  .jobs-panel__sidebar {
    width: 100%;
    flex: 1 1 100%;
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .jobs-panel__search {
    flex: 1 1 100%;
  }

  .jobs-panel__btn {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 18px;
  }

  .jobs-panel__btn.active::after {
    display: none;
  }

  .jobs-panel__listing {
    width: 100%;
    flex: 1 1 100%;
    max-height: none;
    position: static;
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  .jobs-panel {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .job-item__header {
    padding: 14px 16px;
  }

  .job-item__title {
    font-size: 0.88rem;
  }

  .jobs-controls {
    justify-content: center;
  }
}

/* Careers section background & rounded corners */
section.careers {
  background: linear-gradient(180deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 24px;
  padding: 50px 0 60px;
  margin: 0 20px 30px;
}

/* Portfolio: clamp description and allow expand */
.portfolio-item .portfolio__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.portfolio-item.expanded .portfolio__desc {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* Careers portfolio: keep title visible, show description only on hover/focus */
.portfolio-carousel.portfolio-layout1 .portfolio-item .portfolio__title {
  visibility: visible;
  opacity: 1;
}

.portfolio-carousel.portfolio-layout1 .portfolio-item .portfolio__desc {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.portfolio-carousel.portfolio-layout1 .portfolio-item:hover .portfolio__desc,
.portfolio-carousel.portfolio-layout1 .portfolio-item:focus-within .portfolio__desc,
.portfolio-carousel.portfolio-layout1 .portfolio-item.expanded .portfolio__desc {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Bottom global Apply CTA sweep effect (yellow background reveal, dark blue text) */
.apply-cta-btn {
  background: var(--dark-blue);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color .25s ease, box-shadow .25s ease;
  border: 0;
}

.apply-cta-btn .label {
  position: relative;
  z-index: 1;
}

.apply-cta-btn:before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(0.37, 0.31, 0.31, 0.9);
  z-index: 0;
}

.apply-cta-btn:hover:before,
.apply-cta-btn:focus-visible:before {
  transform: scaleX(1);
  transform-origin: left center;
}

.apply-cta-btn:hover,
.apply-cta-btn:focus-visible {
  color: var(--dark-blue);
  box-shadow: 0 4px 10px rgba(1, 36, 74, 0.25);
}

/* Ensure Apply Now buttons' text sits above overlay */
.apply-btn .label {
  position: relative;
  z-index: 1;
}


/* =========================
       Careers Hero Video (click-to-play only)
    =========================== */
.page-title-layout1 {
  position: relative;
  overflow: hidden;
}

.page-title-layout1 .bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* allow clicks to go to buttons/content */
}

.page-title-layout1 .bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(1, 36, 74, 0.82), rgba(1, 36, 74, 0.42), rgba(1, 36, 74, 0.82)),
    radial-gradient(circle at 18% 20%, rgba(254, 224, 35, 0.2), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.18), transparent 60%);
  pointer-events: none;
}

.page-title-layout1 .bg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.page-title-layout1 .container,
.page-title-layout1 .row {
  position: relative;
  z-index: 2;
}

/* When playing, give it a subtle “alive” feel */
.page-title-layout1.is-playing .bg-video video {
  filter: saturate(1.05) contrast(1.02);
}