/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #22c55e;
}
input:checked + .slider:before {
  transform: translateX(32px);
}
.job-thumb-td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle; /* KEY for table centering */
}

.job-thumb-td img.job-thumb-36 {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: inline-block;
}

.challenge-success-msg-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.challenge-success-msg {
    display: inline-block;
    padding: 14px 22px;
    background: #ecfdf5;
    border-left: 4px solid #22c55e;
    color: #065f46;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.cj-view,
.cj-delete {
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cj-view {
    color: #2563eb;
}

.cj-view:hover {
    color: #1d4ed8;
}

.cj-delete {
    color: #dc2626;
}

.cj-delete:hover {
    color: #b91c1c;
}

#cjModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
}

#cjModal > div {
    background: #ffffff;
    max-width: 600px;
    margin: 8% auto;
    padding: 20px 24px;
    border-radius: 6px;
    position: relative;
}

#cjModal h3 {
    margin-top: 0;
}

#cjModalText {
    line-height: 1.6;
}

#cjClose {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
}

.cj-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 16px;
}

/* Required */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.cj-delete.cj-spinner {
    color: #dc2626;
}


/* RESET */
* {
  box-sizing: border-box;
}

/* TIMELINE WRAPPER */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 10px;
  font-family: Helvetica, Arial, sans-serif;
}

/* CENTER LINE */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #2563eb; /* solid blue */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* ITEM CONTAINER */
.container {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

/* DOT */
.container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #ffffff;
  border: 4px solid #2563eb;
  top: 28px;
  border-radius: 50%;
  z-index: 2;
}

/* LEFT / RIGHT */
.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

/* ARROWS */
.left::before {
  content: "";
  position: absolute;
  top: 32px;
  right: 30px;
  border: 10px solid transparent;
  border-left-color: #ffffff;
}

.right::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 30px;
  border: 10px solid transparent;
  border-right-color: #ffffff;
}

/* CARD */
.content {
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  position: relative;
}

/* LEFT CARD COLOR */
.container.left .content {
  background-color: #eef5ff; /* light blue */
  border-left: 5px solid #2563eb;
}

/* RIGHT CARD COLOR */
.container.right .content {
  background-color: #ffffff; /* white */
  border-left: 5px solid #93c5fd;
}

/* DATE BADGE */
.cj-date-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
}

/* TITLES */
.content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1e3a8a;
}

.content h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* DESCRIPTION */
.content p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

/* ========================= */
/* STATUS – FORCE VISIBILITY */
/* ========================= */

.cj-status {
  display: block !important;          /* force new line */
  width: fit-content;
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  color: #ffffff !important;
  text-transform: uppercase;
}

/* STATUS COLORS */
.cj-status.completed {
  background-color: #16a34a; /* green */
}

.cj-status.pending {
  background-color: #d97706; /* amber */
}

.cj-status.inprogress {
  background-color: #2563eb; /* blue */
}

/* MOBILE */
@media screen and (max-width: 768px) {

  .timeline::after {
    left: 32px;
  }

  .container {
    width: 100%;
    padding-left: 75px;
    padding-right: 25px;
  }

  .left::after,
  .right::after {
    left: 20px;
  }

  .right {
    left: 0;
  }

  .container::before {
    left: 60px;
    border: 10px solid transparent;
    border-right-color: #ffffff;
  }
}

.journey_challenge_title {
  text-align: center;
  margin-bottom: 30px;
}

.journey_challenge_title h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1B2C57;
  padding: 8px;
}

.journey_challenge_title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #CBD5E1;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Hide MemberPress items */
.role-organisation .mepr-payments,
.role-organisation .mepr-subscriptions{
    display:none !important;
}

/* Hide custom menu links */
.role-organisation a[href*="post-a-job"],
.role-organisation a[href*="my-approved-challenges"],
.role-organisation a[href*="book-a-call"]{
    display:none !important;
}

.role-organisation a[href*="action=payments"],
.role-organisation a[href*="action=subscriptions"]{
    display:none !important;
}

/* Hide Payments and Subscriptions */
.role-adviser .mepr-payments,
.role-adviser .mepr-subscriptions,
.role-challenger .mepr-payments,
.role-challenger .mepr-subscriptions{
    display:none !important;
}

/* Hide My Applied Challenges */
.role-adviser a[href*="my-applied-challenges"],
.role-challenger a[href*="my-applied-challenges"]{
    display:none !important;
}

/* Hide bottom buttons if present */
.role-adviser a[href*="action=payments"],
.role-adviser a[href*="action=subscriptions"],
.role-challenger a[href*="action=payments"],
.role-challenger a[href*="action=subscriptions"]{
    display:none !important;
}