/****************************************/
/****************************************/
/** Causeis Starter Template 2 **/
/*
 * 
 *  Author: CAUSEIS PTY LTD - info@causeis.com.au
 * 
 *  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;
}

div[id*="tile"] > div:nth-child(1) ol,
div[id*="tile"] > div:nth-child(1) ul {
  margin-bottom: 1rem;
}

div[id*="greytile"] > div:nth-child(1),
div[id*="greytile"] > a > div:nth-child(1) {
  background: #f0f0f0;
}

div[id*="rimary"][id*="tile"] > div:nth-child(1),
div[id*="rimary"][id*="tile"] > a > div:nth-child(1) {
  background: #942f59;
}

.iMIS-WebPart
  div[id*="_Panel_"][id*="rimary"][id*="tile"]
  a:not(.btn):not(.Btn):not(.button):not(.button):not(.Button):not(
    .TextButton
  ):not(.PrimaryButton):not(.rtsLink):not(.carousel-control):not(.noeffect):not(
    .arrow
  ):not(.Arrow) {
  color: #fff !important;
}

.iMIS-WebPart
  div[id*="_Panel_"][id*="econdary"][id*="tile"]
  a:not(.btn):not(.Btn):not(.button):not(.button):not(.Button):not(
    .TextButton
  ):not(.PrimaryButton):not(.rtsLink):not(.carousel-control):not(.noeffect):not(
    .arrow
  ):not(.Arrow) {
  color: #fff !important;
}

div[id*="rimary"][id*="tile"] h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.04em;
}

div[id*="rimary"][id*="tile"] p {
  text-shadow: none;
  margin-bottom: 1rem;
  color: #fff;
}

div[id*="rimary"][id*="tile"] > div:nth-child(1) ol li,
div[id*="rimary"][id*="tile"] > div:nth-child(1) ul li {
  color: white;
}

div[id*="econdary"][id*="tile"] > div:nth-child(1),
div[id*="econdary"][id*="tile"] > a > div:nth-child(1) {
  background: #581933;
}

div[id*="econdary"][id*="tile"] h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.04em;
}

div[id*="econdary"][id*="tile"] p {
  text-shadow: none;
  margin-bottom: 1rem;
  color: #fff;
}

div[id*="econdary"][id*="tile"] > div:nth-child(1) ol li,
div[id*="econdary"][id*="tile"] > div:nth-child(1) ul li {
  color: white;
}

div[id*="greytile"] h4 {
  color: #000;
}

div[id*="greytile"] p {
  color: #000;
}

div[id*="greytile"] > div:nth-child(1) ol li,
div[id*="greytile"] > div:nth-child(1) ul li {
  color: black;
}

div[id*="rimary"][id*="tile"] a[class*="utton"] {
  margin-top: 2rem;
  color: #942f59;
  background: #fff;
  text-decoration: none;
  transition: 0.2s all ease-in-out;
}

div[id*="rimary"][id*="tile"] a[class*="utton"]:after {
  background-image: url(/images/AAPi/Icons/SVG/arrow-primary-right.svg);
}

div[id*="rimary"][id*="tile"] a[class*="utton"]:hover {
  background: #fff;
  color: #942f59;
}

div[id*="econdary"][id*="tile"] a[class*="utton"] {
  margin-top: 2rem;
  color: #942f59;
  background: #fff;
  text-decoration: none;
  transition: 0.2s all ease-in-out;
}

div[id*="econdary"][id*="tile"] a[class*="utton"]:after {
  background-image: url(/images/AAPi/Icons/SVG/arrow-primary-right.svg);
}

div[id*="econdary"][id*="tile"] a[class*="utton"]:hover {
  background: #fff;
  color: #942f59;
}

/**************** Standard call-to-action ****************/
.row.call-to-action-row {
  display: flex;
}

.row.call-to-action-row > div {
  margin: 0 !important;
}

.row.call-to-action-row div {
  display: flex;
  width: 100%;
}

.row.call-to-action-row .iMIS-WebPart > div > a {
  display: flex;
}

.row.call-to-action-row div[id*="Panel"] {
  flex-direction: column;
  border-bottom: 0.3rem solid #942f59;
  padding-bottom: 3rem;
  background: #f7f8f9;
  transition: 0.2s ease-in-out all;
}

.row.call-to-action-row.grey-row div[id*="Panel"] {
  background: #fff;
}

.row.call-to-action-row .iMIS-WebPart > div > a:hover div[id*="Panel"] {
  background: #942f59;
}

.row.call-to-action-row div[id*="Panel"] a.call-to-action-link {
  display: none !important;
}

.row.call-to-action-row div[id*="Panel"] > img {
  width: 100%;
  max-height: 24rem;
  min-height: 24rem;
  object-fit: cover;
  margin-bottom: 3rem;
}

.row.call-to-action-row div[id*="Panel"] > *:not(img) {
  padding-left: 3rem;
  padding-right: 3rem;
}

.row.call-to-action-row div[id*="Panel"] > div:last-child {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  margin-top: 1.5rem;
}

.row.call-to-action-row .iMIS-WebPart > div > a div[id*="Panel"] * {
  transition: 0.2s ease-in-out all;
}

.row.call-to-action-row .iMIS-WebPart > div > a:hover div[id*="Panel"] * {
  color: #fff;
}

.row.call-to-action-row div[id*="Panel"] > *:nth-last-child(2) {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .row.call-to-action-row div[id*="Panel"] > img {
    max-height: 21rem;
    min-height: 21rem;
  }
}
