/****************************************/
/****************************************/
/** Australian Institute of Project Management **/
/*
 * 
 *  Author: CAUSEIS PTY LTD 
 * 
 *  Version: 1 -   
 *
 * 
 *  Document contains changes to CTA
 *
 *
*/
/****************************************/
/****************************************/ 
/***** tile call-to-actions *****/
div[id*="tile"] > div:nth-child(1), div[id*="tile"] > a > div:nth-child(1) {
    padding: 8rem 3rem;
    margin: 0;
    margin-bottom: 1rem;
    background: #080f40;
    transition: .3s ease-in-out all;
}

div[id*="tile"] > div:nth-child(1):hover, div[id*="tile"] > a > div:nth-child(1):hover {
    background: #E2CAFA;
}

div[id*="tile"] > div:nth-child(1) ol, div[id*="tile"] > div:nth-child(1) ul {
    margin-bottom: 1rem;
}

div[id*="tile"]:not([id*="greytile"]) h3 {
    margin-top: 0;
    margin-bottom: 1rem !important;
    color: #fff !important;
    transition: .3s ease-in-out all;
}

div[id*="tile"] > div:nth-child(1):hover h3, div[id*="tile"] > a > div:nth-child(1):hover h3 {
    color: #080f40 !important;
}

div[id*="tile"]:not([id*="greytile"]) h4 {
    margin-top: 0;
    margin-bottom: 1rem !important;
    color: #fff !important;
    transition: .3s ease-in-out all;
}

div[id*="tile"] > div:nth-child(1):hover h4, div[id*="tile"] > a > div:nth-child(1):hover h4 {
    color: #080f40 !important;
}

div[id*="tile"]:not([id*="greytile"]) p {
    text-shadow: none;
    margin-bottom: 1rem !important;
    color: #fff;
    transition: .3s ease-in-out all;
}

div[id*="tile"] > div:nth-child(1):hover p, div[id*="tile"] > a > div:nth-child(1):hover p {
    color: #080f40 !important;
}

div[id*="tile"]:not([id*="greytile"]) a:not([class*="utton"]) {
    color: #71F4FD !important;
}

div[id*="tile"]:not([id*="greytile"]) > div:nth-child(1) ol li, div[id*="tile"]:not([id*="greytile"]) > div:nth-child(1) ul li {
    color: white;
}

div[id*="tile"] > div:nth-child(1):hover a[class*="utton"], div[id*="tile"] > a > div:nth-child(1):hover a[class*="utton"] {
    color: #71F4FD;
    background: #080f40;
    border-color: #080f40;
}


div[id*="tile"] > div:nth-child(1):hover a[class*="utton"]:after, div[id*="tile"] > a > div:nth-child(1):hover a[class*="utton"]:after {
    filter: brightness(0) invert(1) !important;
}


    div[id*="tile"] > div:nth-child(1):hover a:not([class*="utton"]), div[id*="tile"] > a > div:nth-child(1):hover a:not([class*="utton"]) {
    color: #080f40 !important;
    transition: .3s ease-in-out;
    }

/* grey tile */

div[id*="greytile"] > div:nth-child(1), div[id*="greytile"] > a > div:nth-child(1) {
    background: #fcfcfc !important;
}

div[id*="greytile"] h3 {
    color: #080f40;
    margin-top: 0;
}

/**************** Standard call-to-action ****************/
.row.call-to-action-row {
    display: flex;
    flex-direction: row;
}

.row.call-to-action-row div:not([class*="col"]) {
    display: flex;
    width: 100%;
}

.row.call-to-action-row > div > div {
    /* height: 100%; */
    display: flex;
}

.call-to-action > div > div > div{
    display: flex;
    overflow: hidden;
    background: #fff;
}

.call-to-action > div > div > div:nth-child(2) {
    display: none !important;
}

.call-to-action > div> div > div {
    flex-direction: column;   
}

.call-to-action > div> div > div img {
    max-height: 27rem;
    min-height: 27rem;
    width: 100%;
    object-fit: cover;

}

.call-to-action > div> div > div:last-of-type a {
    margin-top: auto;

}

.call-to-action > div> div > div h3 {
    color: #080f40;
    letter-spacing: .04em;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.call-to-action > div> div > div p {
    font-size: 1.4rem;
}

.call-to-action > div> div > div > div {
    flex-direction: column;
    padding-top: 1.5rem;
}


.call-to-action > div> div > div > div {
    padding-top: 1.5rem;
    flex-grow: 1;
    align-items: flex-start;
    flex-direction: row;
}

.call-to-action > div> div > div > div a[class*="utton"] {
    margin-top: auto;
}

@media (max-width: 767px) {
    .row.call-to-action-row {
        flex-direction: column;
    }

    .col-primary > div > div > div.row .iMIS-WebPart > div {
        padding-top: 0 !important;
        padding-bottom: 0rem !important;
    }

    .row.call-to-action-row div {
        flex-direction: column;
    }

}

/* cta box styling */

div[id*="cta"] > div[id*="Panel"] {
    display: flex;
}

div[id*="cta"] > div[id*="Panel"] > .text {
    width: 66.66666666666666%;
    padding: 9.3rem 9rem 10rem 6.6rem;
    background: #080f40
}

div[id*="cta"] > div[id*="Panel"] > .text * {
    color: #fff;
}

div[id*="cta"] > div[id*="Panel"] > .links {
    width: 33.33333333333333333%;
    display: flex;
    flex-direction: column;
}

div[id*="cta"] > div[id*="Panel"] > .links > a {
    padding: 2.3rem 2.8rem 3.6rem;
    flex-grow: 1;
    transition: .3s ease-in-out all;
    text-decoration: none !important;
    font-size: 2.4rem;
    font-weight: 400;
    position: relative;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(1) {
    background: #00f8ff;
    color: #080f40 !important;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(2) {
    background: #223DE7;
    color: #fff !important;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:hover {
    background: #E2CAFA;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(2):hover {
    color: #080f40 !important;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(1):after {
        content: "";
    position: absolute;
    top: 3.7rem;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 4rem;
    width: 1rem;
    height: 1.6rem;
    background-image: url(/App_Themes/AIPM-Member-Responsive/images/SVG/arrow-navy-right.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
        
    }

    div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(1):hover:after {
        
        right: 3rem;
    }

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(2):before {
    content: "";
    position: absolute;
    top: 3.7rem;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 4rem;
    width: 1rem;
    height: 1.6rem;
    background-image: url(/App_Themes/AIPM-Member-Responsive/images/SVG/arrow-navy-right.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

div[id*="cta"] > div[id*="Panel"] > .links > a:nth-of-type(2):hover:before {
    right: 3rem;
    filter: none;
}

@media (max-width: 991px) {
    div[id*="cta"] > div[id*="Panel"] {
        flex-direction: column;
        margin: 0 -1.5rem;
    }

    div[id*="cta"] > div[id*="Panel"] > div {
        width: 100% !important;
    }

    div[id*="cta"] > div[id*="Panel"] > .text {
        padding: 6.8rem 2rem 4.4rem;
    }
    div[id*="cta"] > div[id*="Panel"] > .links > a {
        min-height: 16.6rem;
    }
}