/* 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-block;
  background-color: #4CAF50;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
}

.apply-btn:hover {
  color: var(--dark-blue);
}

.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: #01244a;
  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 Styles */
.jobs-panel {
  display: flex;
  gap: 12px;
  /* tighter gap between sidebar and content */
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  /* Keep beside each other on wide screens */
  background: #ffffff;
  /* single card background behind sidebar + content */
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(1, 36, 74, 0.18);
  position: relative;
}

.jobs-panel__sidebar {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  background: transparent;
  /* inherit unified wrapper background */
  padding: 16px;
  border-radius: 12px;
  box-shadow: none;
  /* remove individual card shadow */
  gap: 10px;
  overflow-y: auto;
  /* Removed negative margin so white container fully wraps sidebar */
  margin-left: 0;
  margin-right: 0;
  flex: 0 0 300px;
  /* fixed width, prevent shrinking */
  flex-shrink: 0;
}

.jobs-panel__search {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  margin: 0 0 14px 0;
  border-radius: 8px;
  border: 1px solid #01244a;
  color: #01244a;
  background-color: #ffffff;
}

.jobs-panel__search::placeholder {
  color: #01244a;
  opacity: .8;
}

.jobs-panel__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #2983fd;
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  margin: 0 0 12px 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #ffffff;
  width: 100%;
  /* fixed uniform width */
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
}

.jobs-badge {
  display: inline-block;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}

/* Category buttons (sidebar):
       Hover sweep -> yellow (#fee023) background via overlay + dark blue text (#01244a)
       Active -> solid yellow base (#fee023) with dark blue text (#01244a) (overlay hidden) */
.jobs-panel__btn:hover {
  color: var(--white);
}

.jobs-panel__btn.active {
  background: var(--yellow);
  color: #01244a;
  box-shadow: 0 4px 10px rgba(1, 36, 74, 0.25);
}

/* Disable overlay on active so background is visible */
.jobs-panel__btn.active:before {
  transform: scaleX(0);
}

.jobs-panel__content {
  flex: 1 1 auto;
  min-width: 400px;
  /* Wider base width */
  max-width: 100%;
  background: transparent;
  /* unified wrapper background shows */
  padding: 12px;
  /* vertical padding */
  border-radius: 12px;
  box-shadow: none;
  /* remove individual card shadow */
  margin-top: 50px;
}

/* When two content panels present, ensure tighter widths */
.jobs-panel.has-split {
  gap: 16px;
}

/* Allow content panels to grow naturally while sidebar stays fixed */
.jobs-panel.has-split .jobs-panel__content {
  flex: 1 1 0;
  width: auto;
  min-width: 400px;
}

/* If viewport narrower than total min-width, allow internal wrapping */
@media (max-width: 1200px) {
  .jobs-panel.has-split .jobs-panel__content {
    min-width: 360px;
  }
}

@media (max-width: 1090px) {
  .jobs-panel.has-split .jobs-panel__content {
    min-width: 320px;
  }
}

.jobs-controls {
  display: flex;
  justify-content: flex-start;
  /* move controls to top-left */
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  top: -50px;
  /* moved slightly down to align with search input */
}

.jobs-control-btn {
  background: #01244a;
  /* dark blue base */
  color: #ffffff;
  border: 1px solid #01244a;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--yellow);
}

/* Expand/Collapse buttons: hover/active show yellow background with dark blue text */
.jobs-control-btn:hover,
.jobs-control-btn:active,
.jobs-control-btn:focus-visible {
  color: var(--dark-blue);
  box-shadow: 0 4px 10px rgba(1, 36, 74, 0.25);
}

#jobsPanelList .job-listing {
  margin-bottom: 24px;
}

.panel-empty {
  color: #01244a;
  font-style: italic;
}

/* Hide original accordion since replaced by panel */
.job-section-wrapper .accordion-item {
  display: none;
}

/* Collapsible job items inside the panel */
.job-item {
  border: 1px solid rgba(1, 36, 74, 0.18);
  background: #ffffff;
  border-radius: 12px;
  /* smaller white corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
  /* vertical spacing between items */
  padding: 0px 0px;
  /* compact but readable */
  overflow: hidden;
}

.job-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #2983fd;
  color: #ffffff;
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 12px;
  border: 0;
  outline: 0;
  font-weight: 700;
  text-align: left;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  --hover-bg-color: var(--dark-blue);
}

.job-item__title {
  color: #ffffff;
  font-size: 1rem;
}

.job-item__icon {
  color: var(--white);
  transition: transform .25s ease, color .25s ease;
}

.job-item.open .job-item__icon {
  transform: rotate(180deg);
}

.job-item__body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.job-item__body-inner {
  padding: 16px 0;
}

.job-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.job-availability--open {
  background: rgba(76, 175, 80, 0.16);
  color: #1b5e20;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.job-availability--closed {
  background: rgba(244, 67, 54, 0.18);
  color: #b71c1c;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Job list headers (collapsible job-item__header)
       Hover/Open/Focus: dark blue background with white text */
.job-item__header:hover,
.job-item.open .job-item__header,
.job-item__header:focus-visible {
  color: var(--white);
  box-shadow: 0 4px 10px rgba(1, 36, 74, 0.25);
}

.job-item__header:hover .job-item__title,
.job-item.open .job-item__header .job-item__title,
.job-item__header:focus-visible .job-item__title {
  color: var(--white);
}

.job-item__header:hover .job-item__icon,
.job-item.open .job-item__header .job-item__icon,
.job-item__header:focus-visible .job-item__icon {
  color: var(--white);
}

/* Sweep Effect (Replicated from global .btn pattern: scaleX overlay) */
.jobs-panel__btn,
.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-panel__btn .label,
.jobs-panel__btn .jobs-badge,
.jobs-control-btn .label,
.apply-btn,
.job-item__title,
.job-item__icon {
  position: relative;
  z-index: 1;
}

.jobs-panel__btn:before,
.jobs-control-btn:before,
.job-item__header:before,
.apply-btn:before,
.job-group-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Overlay sits above element background but beneath text */
  z-index: 0;
  background-color: var(--sweep-color);
  /* default sweep color */
  transform: scaleX(0);
  transform-origin: right center;
  /* Slower sweep animation */
  transition: transform .4s cubic-bezier(0.37, 0.31, 0.31, 0.9);
}

/* Override sweep colors per type */
.jobs-panel__btn:before {
  background-color: var(--dark-blue);
}

.jobs-control-btn:before {
  background-color: var(--yellow);
}

.job-item__header:before {
  background-color: var(--dark-blue);
}

.apply-btn:before {
  background-color: var(--yellow);
}

/* Sweep triggers */
.jobs-panel__btn:hover:before,
.jobs-control-btn:hover:before,
.jobs-control-btn:active:before,
.jobs-control-btn:focus-visible:before,
.job-item__header:hover:before,
.job-item.open .job-item__header:before,
.job-item__header:focus-visible:before,
.apply-btn:hover:before,
.job-group-title:hover:before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Active category button shows solid yellow base (overlay hidden) */
.jobs-panel__btn.active:before {
  transform: scaleX(0);
}

/* Responsive: stack panels on small screens */
@media (max-width: 991px) {
  .jobs-panel {
    flex-wrap: wrap;
  }

  .jobs-panel__sidebar {
    width: 100%;
    margin-left: 0;
  }

  .jobs-panel__content {
    width: 100%;
  }
}

/* Careers section background & rounded corners */
section.careers {
  background: var(--light-blue);
  border-radius: 20px;
  padding: 40px 0;
  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;
}

/* === Saniklear "Industries We Serve" portfolio cards === */

.portfolio-layout1 .carousel-container {
  padding-bottom: 90px;
}

/* Whole slide/card */
.portfolio-layout1 .portfolio-item {
  position: relative;
  border-radius: 22px;
  overflow: visible;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  padding-bottom: 40px;
  /* extra space so nothing is clipped */
}

/* Image wrapper */
.portfolio-layout1 .portfolio__img {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

/* Make portfolio images taller so heads aren’t cut off */
.portfolio-layout1 .portfolio__img img {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.28s ease;
}

/* Overlay body: keep content but remove white card and shadow */
.portfolio-layout1 .portfolio__body {
  position: relative;
  margin: -24px 0 0;
  padding: 16px 24px;
  box-sizing: border-box;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  min-height: auto;
  display: flex;
  flex-direction: column;
  z-index: 2;
  color: #01244a;
}

/* Thin yellow–green accent bar at the top of the body */
.portfolio-layout1 .portfolio__body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fee023, #4CAF50);
}

/* Text styles */
.portfolio-layout1 .portfolio__title {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #01244a;
}

.portfolio-layout1 .portfolio__desc {
  font-size: 0.95rem;
  color: rgba(1, 36, 74, 0.85);
  margin-bottom: 10px;
}

/* Keep button aligned at bottom of the body */
.portfolio-layout1 .portfolio__body .btn__link,
.portfolio-layout1 .portfolio__body .btn {
  margin-top: auto;
}

/* Read More按钮样式 */
.portfolio-layout1 .portfolio__body .btn__primary.btn__link {
  transition: color 0.3s ease;
}

/* 按钮箭头效果 */
.portfolio-layout1 .portfolio__body .btn__primary.btn__link .icon-filled {
  background-color: #01244a;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* === Hover effects: Option 1 Enhanced - 简洁淡入效果 + 光泽扫过 === */

/* 覆盖 style.css 中的 translateY 效果，防止卡片向上移动 */
.portfolio-layout1 .portfolio-item:hover .portfolio__body,
.portfolio-layout1 .portfolio-item:hover .portfolio__img {
  transform: none !important;
  -webkit-transform: none !important;
}

/* 卡片整体轻微放大效果 */
.portfolio-layout1 .portfolio-item {
  transition: all 0.3s ease;
  transform-origin: center center;
  overflow: visible !important;
}

.portfolio-layout1 .portfolio-item:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* 图片容器 - 添加光泽扫过效果 */
.portfolio-layout1 .portfolio__img {
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.portfolio-layout1 .portfolio-item:hover .portfolio__img {
  opacity: 0.95;
}

.portfolio-layout1 .portfolio__img img {
  display: block;
  width: 100%;
}

/* 光泽扫过效果 */
.portfolio-layout1 .portfolio__img::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.portfolio-layout1 .portfolio-item:hover .portfolio__img::after {
  transform: translateX(100%);
}

/* 内容区域淡入 */
.portfolio-layout1 .portfolio__body {
  transition: all 0.3s ease !important;
}

.portfolio-layout1 .portfolio-item:hover .portfolio__body {
  opacity: 1;
}

/* 标题变绿色 */
.portfolio-layout1 .portfolio__title {
  transition: color 0.3s ease;
}

.portfolio-layout1 .portfolio-item:hover .portfolio__title {
  color: #4CAF50;
}

/* 描述文字保持不变 */
.portfolio-layout1 .portfolio__desc {
  transition: all 0.3s ease;
}

/* Read More按钮文字变绿色 */
.portfolio-layout1 .portfolio-item:hover .btn__primary.btn__link {
  color: #4CAF50;
}

.portfolio-layout1 .portfolio-item:hover .btn__primary.btn__link span {
  color: #4CAF50;
}

/* 按钮箭头变绿并向右移动 */
.portfolio-layout1 .portfolio-item:hover .btn__primary.btn__link .icon-filled {
  background-color: #4CAF50;
  transform: translateX(3px);
}

/* 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);
}