
.block {
    background-color: transparent;
}

/* ============================
Current Learning
============================= */
.cl .block_current_learning-tile__link_title {
    height: 4em!important;
    color: #000;
}

.cl .block_current_learning-tile__content_duedate {
    display: none;
}

.cl .block_current_learning-tile__content_component {
    display: none;
}

.cl .block_current_learning-tile {
    background: #ffffff;
    color:rgb(0, 0, 0);
}

.cl .block_current_learning-tile {
    position: relative;
    overflow: hidden; /* keeps the stripe neatly inside rounded corners if you have any */
}

.cl .block_current_learning-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px; /* border thickness */
    background: linear-gradient(
        to right,
        #8ac640 0%,
        #8ac640 20%,
        #6a3338 20%,
        #6a3338 40%,
        #90278c 40%,
        #90278c 60%,
        #502e8f 60%,
        #502e8f 80%,
        #27a8e1 80%,
        #27a8e1 100%
    );
}


/* ============================
  Searchbar
============================= */
.dashboard-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%; /* let it use full width of parent */
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
  flex-wrap: wrap; /* ensures wrapping on smaller screens */
}

.dashboard-search input[type="search"] {
  flex: 1 1 200px; /* allows flexible resizing */
  padding: 10px;
  border: 1px solid #03203f;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 0; /* prevents flex item overflow */
}

.dashboard-search button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #03203f; /* Totara blue */
  color: white;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap; /* keep text on one line */
}

.dashboard-search button:hover {
  background: #03203f;
}

/* Optional tweak for smaller screens */
@media (max-width: 480px) {
  .dashboard-search {
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-search button {
    width: 100%;
  }
}


/* ============================
 Welcome Message
============================= */
.block-totara-featured-links-layout .block-totara-featured-links-content.block-totara-featured-links-content-middle p {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    padding-left: 10px;
    }
.block-totara-featured-links-layout .block-totara-featured-links-content * {
    position: relative;
    color: #fff!important;
}

.block-totara-featured-links-layout .block-totara-featured-links-content::before {
background: transparent; 
}
