/* ========================================================================
   RE-DESIGNED CAREERS PAGE STYLING (careers.css) - V2 (Optimized)
   Extends: bootstrap.css / common.css / config.css / style.css
   ======================================================================== */

/* ── Stats Strip ───────────────────────────────────────────────────── */
.cr-stats-number {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cr-stats-item {
  border-right: 1px solid var(--layoutBorderColor);
}

.cr-stats-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .cr-stats-item {
    border-right: none;
    border-bottom: 1px solid var(--layoutBorderColor);
  }
  
  .cr-stats-item:last-child {
    border-bottom: none;
  }
}

/* ── Dark Immersive Sticky Values Section ──────────────────────────── */
.cr-values-sticky-left {
  position: sticky;
  top: 120px;
}

.cr-value-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 0 60px 40px;
  position: relative;
  transition: all 0.3s ease;
}

.cr-value-item:last-child {
  padding-bottom: 0;
  border-left: 1px solid transparent;
}

/* Vertical line trail continuation for the last item */
.cr-value-item:last-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand orange animated border highlight on hover */
.cr-value-item::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondaryMastercolor);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.cr-value-item:last-child::after {
  bottom: auto;
  height: 40px;
  left: 0;
}

.cr-value-item:hover::after {
  transform: scaleY(1);
}

.cr-value-item-num {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-secondary);
  transition: color 0.3s ease;
}

.cr-value-item:hover .cr-value-item-num {
  color: var(--secondaryMastercolor);
}

.cr-value-item-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.cr-value-item:hover .cr-value-item-title {
  color: #ffffff;
}

.cr-value-item-desc {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 580px;
  transition: color 0.3s ease;
}

.cr-value-item:hover .cr-value-item-desc {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
  .cr-values-sticky-left {
    position: static;
    margin-bottom: 60px;
  }
}

/* ── Immersive Split Job Board ────────────────────────────────────── */
.cr-job-list-nav {
  border: 1px solid var(--layoutBorderColor);
}

.cr-job-nav-item {
  position: relative;
  padding: 28px 30px;
  border-bottom: 1px solid var(--layoutBorderColor);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cr-job-nav-item:last-child {
  border-bottom: none;
}

.cr-job-nav-num {
  color: var(--secondaryMastercolor);
  opacity: 0.6;
  font-family: var(--font-secondary);
  margin-top: 3px;
  transition: opacity 0.35s ease;
}

.cr-job-nav-title {
  color: var(--primaryTextColor);
  transition: color 0.35s ease;
}

.cr-job-nav-meta {
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
}

.cr-job-nav-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--layoutBorderColor);
}

.cr-job-nav-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--layoutBorderColor);
  color: var(--layoutBorderColor);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cr-job-nav-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Hover & Active States */
.cr-job-nav-item:hover {
  background: rgba(246, 99, 32, 0.015);
}

.cr-job-nav-item:hover .cr-job-nav-title {
  color: var(--black);
}

.cr-job-nav-item:hover .cr-job-nav-arrow {
  color: var(--black);
  border-color: var(--black);
  transform: translateX(4px);
}

.cr-job-nav-item.is-active {
  background: rgba(246, 99, 32, 0.035);
  border-left: 3px solid var(--secondaryMastercolor);
}

.cr-job-nav-item.is-active .cr-job-nav-title {
  color: var(--black);
  font-weight: 700;
}

.cr-job-nav-item.is-active .cr-job-nav-num {
  opacity: 1;
}

.cr-job-nav-item.is-active .cr-job-nav-arrow {
  background: var(--secondaryMastercolor);
  color: var(--white);
  border-color: var(--secondaryMastercolor);
  transform: rotate(-45deg);
}

/* Right: Immersive Details Pane (Sticky) */
.cr-job-details-pane {
  position: sticky;
  top: 100px;
}

.cr-job-details-card {
  border: 1px solid var(--layoutBorderColor);
  min-height: 500px;
}

.cr-job-panel {
  display: none;
  padding: 40px;
}

/* Fade slide up keyframe */
@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cr-job-panel.is-visible {
  display: block;
  animation: panelFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cr-panel-header {
  border-bottom: 1px solid var(--layoutBorderColor);
}

.cr-panel-title {
  font-size: 24px;
  color: var(--black);
}

.cr-panel-tag {
  letter-spacing: 0.02em;
}

.cr-panel-tag--loc {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
}

.cr-panel-tag--type {
  background: rgba(246, 99, 32, 0.08);
  color: var(--secondaryMastercolor);
}

.cr-panel-tag--exp {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primaryTextColor);
}

.cr-panel-section-title {
  color: var(--black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cr-panel-section-title i {
  color: var(--secondaryMastercolor);
  font-size: 14px;
}

.cr-panel-text {
  color: var(--primaryTextColor);
  line-height: 1.65;
}

.cr-panel-list-item {
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--primaryTextColor);
  line-height: 1.6;
}

.cr-panel-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondaryMastercolor);
}

.cr-panel-apply-card {
  background: rgba(248, 248, 248, 0.8);
  border: 1px solid var(--layoutBorderColor);
}

/* ── Mobile View Accordion Inline ────────────────── */
.cr-job-mobile-details {
  display: none;
  background: rgba(248, 248, 248, 0.6);
  border-top: 1px solid var(--layoutBorderColor);
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide on desktop, show on mobile query */
@media (max-width: 991px) {
  .cr-job-details-pane {
    display: none !important;
  }
  
  .cr-job-list-nav {
    border-radius: 12px;
    overflow: hidden;
  }
  
  .cr-job-nav-item {
    flex-wrap: wrap;
    padding: 24px;
  }
  
  .cr-job-nav-arrow {
    transform: rotate(90deg);
  }
  
  .cr-job-nav-item.is-active .cr-job-nav-arrow {
    transform: rotate(270deg);
    background: var(--secondaryMastercolor);
    color: var(--white);
    border-color: var(--secondaryMastercolor);
  }
}
