/****************************************/
/****************************************/
/** Real Estate Institute of New South Wales (REINSW) **/
/*
 * 
 *  Author: CAUSEIS PTY LTD - info@causeis.com.au
 * 
 *  Version: 1 -  
 *
 *
 *  Document contains changes to Calls to Action
 *
 *
*/
/****************************************/
/****************************************/
@media (min-width: 768px) {
    .cta-row {
        display: flex;
    }

    .cta-row > div {
        display: flex;
    }

    .cta-row > div > div > div {
        display: flex;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}


.cta-row > div > div > div > div {
    width: 100%;
}

.CTA > div > div > div img {
    object-fit: cover;
    max-height: 179px;
    height: 100% !important;
    opacity: 1;
    min-height: 169px;
}

@media (max-width: 767px) {
    .CTA > div > div > div img {
        width: 100%;
        object-fit: cover;
        max-height: 230px;
        height: 100% !important;
        min-height: 226px;
    }

    .cta-row > div {
        margin: auto;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .CTA .iMIS-WebPart {
        margin: 0 !important;
    }
}

@media (min-width: 767px) {
    .cta-row {
        display: flex;
        margin: 30px auto !important;
    }
}

 .full.home-carousel + .cta-row {
       
margin: 80px auto !important;
    }
.cta-row {
    padding: 0;
}

@media (max-width: 768px) {
    .cta-row {
        padding: 0 15px;
    }
}

.cta-row > div > div {
    display: flex;
    width: 100%;
}

.cta-row > div > div > div > div > div {
    height: 100%;
    display: inline;
}

.cta-row .iMIS-WebPart > .ContentItemContainer {
    margin-bottom: 0;
}


.cta-row > div > div > div > div > div > div {
    /* flex-flow: wrap; */
    height: 100%;
    flex-direction: column;
    display: flex;
    flex-grow: 1;
}

.cta-row > div > div > div > div > div > div:nth-child(2) {
    display: none;
}

.cta-row > div > div > div > div > div > div:nth-child(3) {
    display: none;
}

.CTA p, .CTA h3 {
    padding: 0 25px;
    /* flex-grow: 1; */
}

.CTA p{
  margin-top: 10px;
  /* font-size: 15px; */
}
.CTA p:last-of-type {
    flex-grow: 1;
    margin-bottom: 25px;
}

.CTA h3 {
    margin-top: 25px;
    flex-grow: 0;
    font-size: 27px;
    color: #005b95;
    transition: ease-in-out 0.3s;
}

.CTA:hover > div > div > div.hover > h3 {
    color: #e8a552;
    transition: ease-in-out 0.3s;
}

.CTA {
    background: transparent;
    border: 1px solid #dddddd;
}

.CTA a.button {
    transition: ease-in-out 0.3s !important;
    color: #fff !important;
    text-decoration: none;
    background-color: #005B95;
    font-size: 17px;
    padding: 13px;
    border: 1px solid #0000;
    font-weight: 400;
    transform: scale(1);
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: none;
    transform: none;
    box-shadow: none;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
    margin: 0;
    text-align: center;
}

 
.CTA a.button:hover {
    background-color: #e8a552;
}







/******************* HOME PAGE CTA ********************/




.full.home-carousel + .row.cta-row .CTA.yellow {
   /* background-image: url(/images/REINSW_Images/calltoaction/yellow.jpg);*/
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
}

.full.home-carousel + .row.cta-row .CTA.blue {
  /*  background-image: url(/images/REINSW_Images/calltoaction/blue.jpg);*/
}

.full.home-carousel + .row.cta-row .CTA.red {
  /*  background-image: url(/images/REINSW_Images/calltoaction/red.jpg);*/
}

.full.home-carousel + .row.cta-row .CTA.lightblue {
  /*  background-image: url(/images/REINSW_Images/calltoaction/lightblue.jpg);*/
}

.full.home-carousel + .row.cta-row .CTA h4 {
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    padding: 15px 25px 0 25px;
text-shadow: 0px 0px 3px #6262629e;
}

.full.home-carousel + .row.cta-row .CTA p {
    color: white;
    text-align: center;
    line-height: 1.5;
}

.full.home-carousel + .row.cta-row .CTA a.button {
    font-size: 14px;
    padding: 6px 14px;
    background: white;
    font-weight: 600;
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.full.home-carousel + .row.cta-row .CTA a.button:hover {
    font-size: 14px;
    padding: 6px 14px;
    background: white;
    color: #fff !important;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.full.home-carousel + .row.cta-row .CTA.yellow a.button.white {
    color: #E8A552 !important;
}

.full.home-carousel + .row.cta-row .CTA.blue a.button.white {
    color: #005B95 !important; 
}

.full.home-carousel + .row.cta-row .CTA.red a.button.white {
    color: #C55058 !important;
}

.full.home-carousel + .row.cta-row .CTA.lightblue a.button.white {
    color: #8CA8BF !important;
}


 

.full.home-carousel + .row.cta-row .CTA p:nth-of-type(2) {
    padding-bottom: 15px;
    /* flex-grow: 1; */
    margin-bottom: 0;
    flex-flow: wrap;
    /* height: 100%; */
    flex-direction: column-reverse;
    display: flex;
    /* flex-grow: 1; */
}

.full.home-carousel + .row.cta-row .CTA p:nth-of-type(1) {
    padding: 10px 25px 0px 25px;
    flex-grow: 1;
    text-shadow: 0px 0px 3px #6262629e;
}

 


.full.home-carousel + .row.cta-row > div > div > div > div > div > div::before {
    content: ' ' !important;
    background-image: url(/App_Themes/REINSW/images/leftarrow.svg);
    background-repeat: no-repeat;
    padding: 0 17px;
    background-size: contain;
    height: 64px;
    transform: rotate(90deg);
    margin: 25px auto auto  auto;
}



.full.home-carousel + .row.cta-row > div > div > div > div > div > div::after {
   content: ' ' !important;
   background-image: url(/App_Themes/REINSW/images/rightarrow.svg);
   background-repeat: no-repeat;
   padding: 0 17px;
   background-size: contain;
   height: 64px;
   transform: rotate(90deg);
   margin:auto auto 25px  auto;
}

   
 
/***Vert ipad 2x2 ***/


@media (width: 768px) {

    .row.cta-row > div {
    
    flex-basis: calc(50%);
  
    margin-bottom: 15px;
}

.row.cta-row {
    flex-wrap: wrap;
    flex-direction: row;
}

}

