/****************************************/
/****************************************/
/** Sample Site **/
/*
 * 
 *  Author: CAUSEIS PTY LTD
 * 
 *  Version: 1 -   
 *
 * 
 *  Document contains changes to call-to-action
 *
 *
*/
/****************************************/
/****************************************/

/***** colored + grey tile *****/
div[id*="tile"] > div:nth-child(1),
div[id*="tile"] > a > div:nth-child(1) {
  padding: 3rem 3rem;
  margin: 0;
  margin-bottom: 1rem;
  border-radius: 0rem;
}

div[id*="tile"] > div:nth-child(1) ol,
div[id*="tile"] > div:nth-child(1) ul {
  margin-bottom: 1rem;
}

/* primary tile */

div[id*="tile"][id*="rimary"] > div:nth-child(1),
div[id*="tile"][id*="rimary"] > a > div:nth-child(1) {
  background: var(--primary-color);
}

div[id*="tile"][id*="rimary"] > div:nth-child(1) * {
  color: #fff;
}

div[id*="tile"][id*="rimary"] h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.04em;
}

div[id*="tile"][id*="rimary"] p {
  text-shadow: none;
  margin-bottom: 1rem;
  color: #fff;
}

div[id*="tile"][id*="rimary"] a.Button {
  margin-top: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  background: #ffffff;
}

div[id*="tile"][id*="rimary"] > div:nth-child(1) a.Button:hover,
div[id*="tile"][id*="rimary"] > div:nth-child(1) a.button:hover {
  border-color: white;
  background: transparent;
  color: white;
  box-shadow: 0px 0px 0 2px #ffffff;
}

/* secondary tile */

div[id*="tile"][id*="econdary"] > div:nth-child(1),
div[id*="tile"][id*="econdary"] > a > div:nth-child(1) {
  background: var(--secondary-color);
}

div[id*="tile"][id*="econdary"] > div:nth-child(1) * {
  color: #fff;
}

div[id*="tile"][id*="econdary"] h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.04em;
}

div[id*="tile"][id*="econdary"] p {
  text-shadow: none;
  margin-bottom: 1rem;
  color: #fff;
}

div[id*="tile"][id*="econdary"] a.Button {
  margin-top: 2rem;
  color: var(--secondary-color);
  text-decoration: none;
  background: #ffffff;
}

div[id*="tile"][id*="econdary"] > div:nth-child(1) a.Button:hover,
div[id*="tile"][id*="econdary"] > div:nth-child(1) a.button:hover {
  border-color: white;
  background: transparent;
  color: white;
  box-shadow: 0px 0px 0 2px #ffffff;
}

/* grey tile */

div[id*="greytile"] > div:nth-child(1),
div[id*="greytile"] > a > div:nth-child(1) {
  background: #f8f8f8;
  box-shadow: 0.2rem 0.3rem 2rem 0 rgb(0 0 0 / 14%);
}

div[id*="greytile"] h4 {
  color: var(--dark-color);
}

div[id*="greytile"] p {
  color: var(--dark-color);
}

div[id*="greytile"] > div:nth-child(1) ol li,
div[id*="greytile"] > div:nth-child(1) ul li {
  color: black;
}

div[id*="greytile"] a.Button {
  color: #fff;
  text-decoration: none;
  background: var(--primary-color);
}

div[id*="greytile"] > div:nth-child(1) a.Button:hover,
div[id*="greytile"] > div:nth-child(1) a.button:hover {
  border-color: var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0px 0px 0 2px var(--primary-color);
}

/**************** Standard call-to-action ****************/
.row.call-to-action-row {
  display: flex;
}

.row.call-to-action-row div {
  display: flex;
  width: 100%;
}

.call-to-action > div > div > div {
  display: flex;
  box-shadow: 0.2rem 0.3rem 2rem 0 rgb(0 0 0 / 14%);
  overflow: hidden;
  border-radius: 0rem;
}

.call-to-action > div > div > div {
  flex-direction: column;
  background: #fff;
}

.call-to-action > div > div > div img {
  max-height: 24rem;
  min-height: 24rem;
  width: 100%;
  object-fit: cover;
}

.call-to-action > div > div > div > div:last-of-type {
  align-self: flex-start;
  flex-grow: 1;
  align-items: flex-start;
  padding: 0 4rem 4rem 4rem;
}

.call-to-action > div > div > div:last-of-type a {
  margin-top: auto;
}

.call-to-action > div > div > div h4 {
  font-weight: 600;
  /* font-size: 1.7rem; */
  color: var(--primary-color);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.call-to-action > div > div > div > div {
  flex-direction: column;
  padding: 4rem 4rem 0 4rem;
}

@media (max-width: 767px) {
  .row.call-to-action-row > div {
    display: block;
  }

  .col-primary > div > div > div.row .iMIS-WebPart > div {
    padding-top: 0 !important;
    padding-bottom: 0rem !important;
  }

  .row.call-to-action-row div {
    display: block;
  }

  .row.cta-row > div > div > div > div > div > div:nth-child(1) img {
    max-height: 21rem;
    min-height: 21rem;
  }
}
