/* === Page background === */
body {
    background-color: #ffffff;
    color: #212529;
    margin: 0;
    padding: 0;
}


/* === Breadcrumb === */
nav.navbar {
    background-color: #e9ecef;
    position: relative;
    width: 100%;
}

/* Breadcrumb Items */
.breadcrumb {
    padding: 0.55rem 0.80rem;
    margin: 0;
}

.breadcrumb-item a {
    text-decoration: none !important;
}

.breadcrumb-item a:hover {
    color: var(--bs-vhpblue);
}

/* --- setting for dropdownmenu in casestudies pages --- */
.dropdown-menu.dropdown-scroll {
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  width: 100%;      
  min-width: 100%;   
  max-width: none;  
  padding: 5px 0;
}

/*--- Workflow state styling section ---*/
.workflow-header {
    top: 0px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #d0d4da;
    padding: 10px 10px;
}

.workflow-header h5 {
    margin: 0 0 10px 0;
    font-weight: bold;
    text-align: center;
}

.step-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: visible; 
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
    flex: 1;
    cursor: pointer;
}

.step-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cfd4db;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.3s;
}

.step-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
    max-width: 90px;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #d0d4da;
    border-radius: 2px;
    margin: 0 4px;
    align-self: center;
    transition: background 0.3s;
}

/* Coloring of the steps of the workflowheader */
.step-item[data-step="1"] .step-icon { background-color: var(--bs-vhppink_distinct); border-color: var(--bs-vhppink_distinct); }
.step-item[data-step="2"] .step-icon { background-color: var(--bs-vhpdarkpurple);  border-color: var(--bs-vhpdarkpurple);}
.step-item[data-step="3"] .step-icon { background-color: var(--bs-vhpdarkteal); border-color: var(--bs-vhpdarkteal); }
.step-item[data-step="4"] .step-icon { background-color: var(--bs-vhplightteal); border-color: var(--bs-vhplightteal); } /*== I added this bootstrap color, since the bs-version of the vhplight purple did not exist==*/
.step-item[data-step="5"] .step-icon { background-color: var(--bs-vhpblue) ; border-color: var(--bs-vhpblue); }

/* === Case study sections === */
.case-section {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.3s, border-left 0.3s;
}

.case-section.active {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
}

/* Non-active or non-completed steps are greyed out */
.step-item:not(.completed):not(.active) .step-icon {
  background: #ffffff ;
  border-color: #cfd4db ;
  color: #cfd4db;
}

/* Active & completed steps keep their step color */
.step-item.active .step-icon,
.step-item.completed .step-icon {
  color: #ffffff;
  opacity: 1;
  border-width: 2px;
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.08);
}

/* === Buttons in Case study sections === */
.case-btn {
    padding: 8px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s;
}

.case-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

.case-btn.active {
    color: #fff;
}

.scroll-down-arrow {
  position: fixed; 
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: grey;
  cursor: pointer;
  z-index: 1001;
  width: 0; 
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid grey;
}

.scroll-down-arrow:hover {
  border-top-color: black;
  transition: border-top-color 0.3s;
}

/* General settings for mobile screens ≤ 375px */
@media (max-width: 408px) {

nav.navbar {
    background-color: #e9ecef;
    position: sticky;
    float: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding-right: 8px;
    box-sizing: border-box;
}

.scroll-down-arrow {
  position: fixed; 
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  color: grey;
  cursor: pointer;
  z-index: 1001;
  width: 0; 
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid grey;
}

.scroll-down-arrow:hover {
  border-top-color: black;
  transition: border-top-color 0.3s;
}

.search-header {
    margin-bottom: 1rem;
}

/* Tools dropdown with scrollable long items */
.dropdown-menu.dropdown-scroll {
  max-height: 300px;      
  overflow-y: auto;
  min-width: 250px;       
  max-width: 200px;      
  white-space: normal;    
  word-break: break-word; 
  padding: 0.25rem 0;     
}

.workflow-header {
    margin-top: 0;  
    padding-top: 5px; 
    padding-bottom: 5px; 
  
}

}

/* Specific mobile step tracker adjustments for horizontal scroll */
@media (max-width: 576px) {
  .step-tracker {
    display: flex;
    gap: 12px;
    overflow-x: auto;       /* horizontal scroll */
    overflow-y: hidden;     /*this is here to prevent vertical scroll inside the grey progress bar */
    padding-bottom: 8px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
  }

  .step-tracker::-webkit-scrollbar {
    height: 6px; 
  }

  .step-tracker::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
  }

  .step-item {
    flex: 0 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 80px;
  }

  .step-line {
        flex: 0 0 30px;
        min-width: 30px;
        height: 2px;
        background: #d0d4da;
        align-self: center;
    }

  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    z-index: 1;
  }

  .step-text {
    font-size: 0.7rem;
    max-width: 70px;
    text-align: center;
    white-space: normal;
    margin-top: 2px;
  }

}

/* Completed steps: colored but calm */
.step-item.completed .step-icon {
  opacity: 0.85;
}


