/****************************************/
/****************************************/
/** AUSTRALIAN DENTAL ASSOCIATION (QLD BRANCH) RESPONSIVE STYLE SHEET **/
/*
 * 
 *  Author: CAUSEIS PTY LTD  
 * 
 *  Version: 1 - 
 *
 *  Document contains changes to Calls to Actions 
 *
 *
*/
/****************************************/
/****************************************/

/**************** TILE CTA START ****************/
.row.tile-row {
  display: flex;
}

.row.tile-row div {
  display: flex;
  width: 100%;
}

div.TILE > div > div > a :nth-child(1) {
  display: flex;
  flex-direction: column;
  margin: auto;
}

div.TILE > div > div > a :nth-child(1) > div > p:last-child {
  align-self: flex-start;
  flex-flow: column-reverse;
  height: 100%;
}

div.TILE > div > div > a :nth-child(1) > div > *:not(img) {
  display: flex;
  flex-flow: column;
  /* height: 100%; */
  padding: 0 3rem;
}

@media (max-width: 992.98px) {
  .row.tile-row {
    display: block;
  }

  .row.tile-row > div {
    display: block;
  }
}

div.TILE > div > div > a {
  overflow: auto;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
  border: 0.1rem solid #efefef;
  background: white;
}

div.TILE > div > div > a:hover {
  overflow: auto;
  border-radius: 0;
  box-shadow: 0.2rem 0.3rem 2rem 0 #0000003b;
  transition: all 0.2s ease-in-out;
  border: 0.1rem solid #efefef;
}

.row.tile-row > div > div > div > div > div > div:nth-child(2) {
  display: none;
}

.row.tile-row > div > div > div > div > div > a > div:nth-child(1) img {
  max-height: 6rem;
  /* object-fit: cover; */
  object-position: center center;
}
.row.tile-row > div > div {
  /* padding: 0.75rem; */
}
.TILE h4 {
  margin-top: 3.5rem;
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.TILE h4:nth-last-child(2) {
  margin-bottom: 0;
}

.TILE div[id*="_Panel_"] {
  flex-flow: column;
  width: auto;
  /* display: block; */
  margin: auto;
}

body#MainBody .TILE div[id*="_Panel_"] a.cta-link {
  display: none !important;
}

.row.tile-row a.noeffect {
  display: flex;
  width: 100%;
  padding: 4rem;
}

div.TILE > div > div > a :nth-child(1) a.cta-link {
  display: none;
}
.TILE img {
  /* max-height: 5rem; */
  /* max-width: 15rem; */
  /* width: 100%; */
  max-height: 9rem;
  max-width: 18rem;
  /* width: 100%; */
}

.row.tile-row div .ContentItemContainer > div:nth-child(2) {
  display: none;
}

.row.tile-row div .ContentItemContainer > div:nth-child(3) {
  display: none;
}

/**************** TILE CTA END****************/

/**************** Standard cta ****************/
.row.cta-row {
  display: flex;
}

.row.cta-row div {
  display: flex;
}

div.CTA > div > div > a > div:nth-child(1) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

div.CTA > div > div > a > div:nth-child(1) > p:last-child {
  align-self: flex-start;
  flex-flow: column-reverse;
  height: 100%;
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}

div.CTA > div > div > a > div:nth-child(1) > *:not(img) {
  display: flex;
  flex-flow: column;
  /* height: 100%; */
  padding: 0 3rem;
}

@media (max-width: 992.98px) {
  .row.cta-row {
    display: block;
  }
}

div.CTA > div > div > a > div:nth-child(1) {
  overflow: auto;
  transition: all 0.2s ease-in-out;
  border: 0.1rem solid #efefef;
}

div.CTA > div > div > a > div:nth-child(1):hover {
  overflow: auto;
  box-shadow: 0.2rem 0.3rem 2rem 0 #0000003b;
  transition: all 0.2s ease-in-out;
  border: 0.1rem solid #efefef;
}

.row.cta-row > div > div > div > div > div > div:nth-child(2) {
  display: none;
}

.row.cta-row > div > div > div > div > div > a > div:nth-child(1) img {
  max-height: 24rem;
  object-fit: cover;
  object-position: center center;
}

.CTA h4 {
  margin-top: 2.5rem;
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

div.CTA > div > div > a > div:nth-child(1) p.small-description {
  font-size: 1.5rem;
}

div.CTA > div > div > a > div:nth-child(1) .sub-section {
}

div.CTA > div > div > a > div:nth-child(1) .sub-section h5 {
  font-size: 1.5rem;
  color: #253746;
}

div.CTA > div > div > a > div:nth-child(1) .sub-section h5 img {
  max-height: 100% !important;
  /* object-fit: cover; */
  /* object-position: center center; */
  width: 2.1rem !important;
  margin-right: 3rem;
}

div.CTA > div > div > a > div:nth-child(1) .sub-section p.small-description {
  margin-left: 5.1rem;
}

.CTA a.arrow-button {
  /* position: absolute; */
  /* bottom: 0; */
  /* right: 0; */
}

.CTA .imgcontainer {
  position: relative;
  overflow: hidden;
  display: block;
}

.arrow-button:after {
  content: "";
  font-size: 2.3rem;
  background-image: url(/App_Themes/ADAQLD_Responsive/images/Arrow_White.svg) !important;
  background-position: center !important;
  background-size: 44% !important;
  background-repeat: no-repeat !important;
  display: block;
  margin: 0 0px 0px auto;
  background: #bd9b60;
  width: 5.8rem;
  height: 5.8rem;
  z-index: 0;
  /* position: absolute; */
  border: 0;
  /* top: auto; */
  /* right: 0; */
  /* bottom: 0px; */
}

.arrow-button {
  /* position: relative; */
  /* display: block; */
}

.arrow-button:before {
  /* content: ""; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000;
  opacity: 1;
  transition: all 0.2s ease-in-out;
}

.arrow-button:hover .arrow-button:hover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #bd9b60;
  opacity: 0.4;
  transition: all 0.2s ease-in-out;
  z-index: 0;
}

@media (min-width: 992.98px) {
  .CTA > div > div > div > img {
    object-fit: cover;
    max-height: 255px;
    height: 100% !important;
    opacity: 1;
    transition: all 0.5s;
    width: 100%;
    min-height: 255px;
  }
}
