.careers-bg {
    --center-color: #b4bdc3;
    background: radial-gradient(circle, var(--center-color) 0%, #ffffff 90%);
    color: #0a3264;
}

.job-header {
    font-size: 2rem;
    font-weight: 300;
}
.job-header span.mo-text {
    color: #ff6000;
    font-weight: 600;
}
.tabs-custom .nav-link {
    border-radius: 0;
    font-weight: 500;
    color: #0a3264;
}
.tabs-custom .nav-link.active {
    background-color: #0a3264;
    color: #fff;
}

.tabs-custom.nav {
    margin-left: 0;
    margin-right: 0;
}
.carousel-item .card {
    margin: 0 auto;
}
.card {
    border: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.similar-carousel {
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.similar-carousel .card-title {
    font-size: 1.1rem;
}
.similar-carousel .card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6000, #0a3264);
    border-radius: 12px;
    color: white;
}
.similar-carousel .card::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.2), transparent 50%);
    background-repeat: no-repeat;
    background-size: cover;
    animation: floatWaves 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.similar-carousel .card > * {
    position: relative;
    z-index: 1;
}

@keyframes floatWaves {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(20deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}


.hot-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #e74c3c;
    font-size: 1.4rem;
}

.hierarchy-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}
.hierarchy-container svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.hierarchy-bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #0a3264;
    color: #0a3264;
    text-align: center;
    padding: 5px;
    transition: transform 0.2s;
    z-index: 1;
    cursor: grab;
}
.hierarchy-bubble.center {
    background: #0a3264; /*var(--center-color);*/
    color: #fff;
}
.hierarchy-bubble:active {
    cursor: grabbing;
}
.hierarchy-bubble:hover {
    transform: scale(1.05);
}
/* custom apply buttons */
.btn-apply,
.btn-linkedin,
.btn-trainee {
    background: transparent;
    color: #0a3264;
    border: 2px solid #0a3264;
    border-radius: 0;
}
.btn-apply:hover,
.btn-linkedin:hover,
.btn-trainee:hover {
    background: #0a3264;
    color: #fff;
}
/* tooltip styling */
.tooltip-holder {
    position: relative;
    display: inline-block;
}
.tooltip-holder .tooltip-span {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: normal;
    font-size: 0.75rem;
    z-index: 999;
    width: max-content;
    max-width: 500px;
    word-wrap: break-word;  /* Optional: ensures long words don’t overflow */
}
.tooltip-holder:hover .tooltip-span {
    display: block;
}
/* tab pane min height */
.tab-content .tab-pane {
    min-height: 70vh;
}
/* hierarchy centering */
#hierarchy-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.line-tooltip {
    display: none;
    position: fixed;
    background: rgba(0,0,0,0.8);
    color: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 1000;
}

.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #ccc;
    z-index: 5;
}
.progress-container .mandatory-bar,
.progress-container .optional-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
}
.progress-container .mandatory-bar {
    background: #0a3264;
    z-index: 1;
}
.progress-container .optional-bar {
    background: #28a745;
    opacity: 0.8;
    z-index: 2;
}

.progress-wrap {
  position: sticky;
  top: 64px; /* adjust to your navbar height */
  z-index: 999;
  background: transparent;
  padding: 8px 0 0 0;
}
.progress-container-pill {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 14px;
  background: #e9ecef;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.progress-bar-mandatory,
.progress-bar-optional {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  transition: width .25s ease;
}
.progress-bar-mandatory { background: linear-gradient(90deg, #28a745, #58d68d); }
.progress-bar-optional  { background: linear-gradient(90deg, #17a2b8, #5bc0de); opacity: .7; }

/* Button + small polish */
.form-group { margin-bottom: 14px; }
.btn-apply { background:#111; color:#fff; border-radius: 999px; padding:10px 18px; border: none; }
.btn-apply:hover { opacity:.92; }
h1 { margin-top: 18px; }

