/**
* Reusable components styles for AC
*
* @requires Bootstrap 4
* @version 1.0.2
*/

/************* Colours  *************/

.bg-green { background-color: #006341 !important; }
.bg-light-green { background-color: #66a18d !important; }
.bg-light-green-2 { background-color: #338267 !important; }
.bg-grey { background-color: #909390 !important; }
.bg-light-grey { background-color: #e9e9e9 !important; }
.bg-dark-grey { background-color: #212721 !important; }
.bg-light-grey-2 { background-color: #f6f6f6 !important; }
.bg-dark-grey-2 { background-color: #525252 !important; }
.bg-white { background-color: white !important; }
.bg-black { background-color: black !important; }
.bg-red { background-color: #fb3535 !important; }
.bg-transparent { background-color: transparent !important; }

.tx-green { color: #006341 !important; }
.tx-light-green { color: #66a18d !important; }
.tx-grey { color: #909390 !important; }
.tx-dark-grey { color: #212721 !important; }
.tx-black { color: black !important; }
.tx-white { color: white !important; }
.tx-red { color: #B50303 !important; }


/************* Buttons *************/

.ac-btn {
    display: inline-block;
    background: white;
    border: 4px solid #e2e2e0;
    color: black;
    font-size: 1em;
    font-weight: bold;
    padding: 0.7em;
    padding-left: 1em;
    padding-right: 1em;
    text-shadow: none;
    text-decoration: none;
    line-height: 1.3em;
}
.ac-btn:hover, .ac-btn:focus {
    text-decoration: 1.5px underline currentcolor;
    text-underline-offset: 4.5px;
    text-decoration-skip-ink: none;
    color: black;
    background: white;
    outline: 0;
}

/*** Dark grey button ***/

.ac-btn.bg-dark-grey {
    color: white;
}

/*** Green button ***/

.ac-btn.bg-green,
.ac-btn.bg-light-green,
.ac-btn.bg-light-green-2 {
    color: white;
}

/*** Green button ***/

.ac-btn.bg-red {
    color: white;
}

/*** Transparent button ***/

.ac-btn.bg-transparent {
    color: white;
    border: 2px solid white;
}

/*** Simple grey button ***/

.ac-btn.bg-light-grey {
    color: #212721; /* Dark grey */
    border: 0;
}

/*** Arrow button ***/

.ac-btn.arrow {
    padding-top: 1px;
    padding-bottom: 10px;
    padding-left: 25px;
    padding-right: 10px;
}
.ac-btn.arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-left: 8px solid black;
    border-bottom: 5px solid transparent;
    margin-right: 15px;
    display: block;
    position: relative;
    top: 14px;
    left: -14px;
}

/*** Green arrow button ***/
/*** Dark grey arrow button ***/
/*** Transparent arrow button ***/
.ac-btn.arrow.bg-green::before,
.ac-btn.arrow.bg-light-green::before,
.ac-btn.arrow.bg-light-green-2::before,
.ac-btn.arrow.bg-dark-grey::before,
.ac-btn.arrow.bg-transparent::before {
    border-left-color: white;
}

/*** Light grey arrow button ***/

.ac-btn.arrow.bg-light-grey::before {
    border-left-color: #212721; /* Dark grey */
}

/*** Arrow button (after) ***/

/* .ac-btn.arrow-after {
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    padding-left: 25px;
    padding-right: 20px;
} */
/* .ac-btn.arrow-after::after { */
    /* content: ''; */
    /* width: 0; */
    /* height: 0; */
    /* border-top: 5px solid transparent; */
    /* border-left: 8px solid black; */
    /* border-bottom: 5px solid transparent; */
    /* margin-left: 15px; */
    /* margin-left: 40px; */
    /* display: inline-block; */
/*     position: relative; */
/*     top: 13px; */
/*     right: -10px; */
/* } */

.ac-btn.arrow-after {
    position: relative;
    padding-right: 60px;
}
.ac-btn.arrow-after::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 13px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-left: 8px solid black;
    border-bottom: 5px solid transparent;
    display: inline-block;
}


/*** Green arrow button (after) ***/
/*** Dark grey arrow button (after) ***/
/*** Transparent arrow button (after) ***/
.ac-btn.arrow-after.bg-green::after,
.ac-btn.arrow-after.bg-light-green::after,
.ac-btn.arrow-after.bg-light-green-2::after,
.ac-btn.arrow-after.bg-dark-grey::after,
.ac-btn.arrow-after.bg-transparent::after {
    border-left-color: white;
}

/*** Light grey arrow button (after) ***/

.ac-btn.arrow-after.bg-light-grey::after {
    border-left-color: #212721; /* Dark grey */
}

/*** Large button ***/

/* .ac-btn.lg {
    height: 65px;
    font-size: 1.3em;
    line-height: 30px;
} */

.ac-btn.lg {
    height: 52px;
    font-size: 1.3em;
    line-height: 1.3em;
    padding-left: 50px;
    padding-right: 50px;
}

.ac-btn.lg.no-border {
    line-height: 25px;
}

/*** Large arrow button ***/

.ac-btn.lg.arrow {
    /* padding-left: 35px;
    padding-right: 20px; */
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 12px;
}
.ac-btn.lg.arrow::before {
    /* top: 21px; */
    top: 15px;
    left: -19px;
    border-top-width: 6px;
    border-left-width: 9px;
    border-bottom-width: 6px;
}

.ac-btn.lg.arrow-after {
    padding-right: 60px;
}
.ac-btn.lg.arrow-after::after { 
    border-top-width: 7px;
    border-left-width: 10px;
    border-bottom-width: 7px;
}
.ac-btn.lg.arrow.no-border::before {
    top: 18px;
}
.ac-btn.lg.arrow-after.no-border::after { 
    top: 19px;
}

.ac-btn.no-border {
    border: 0 !important;
}

/************* Lists *************/

/**** Simple list ****/

.ac-list {
    color: #006341; /* Green */
}

.ac-list li {
    list-style: none;
    width: 100%;
    display: inline-flex !important;
    align-items: center;
    /* padding: 5px 0; */
}
.ac-list li::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-left: 4px solid #006341; /* Green */
    border-bottom: 3px solid transparent;
    margin-right: 10px;
    display: block;
}

.ac-list.cols {
    padding-inline-start: 0;
}
.ac-list li a {
    color: #006341; /* Green */
    text-decoration: none !important;
    text-shadow: 0 0 0 currentColor;
    will-change: text-shadow;
    padding-top: 10px;
    padding-bottom: 10px;
}
.ac-list li a:hover,
.ac-list li a:focus {
    text-decoration: 1px underline currentcolor !important;
    text-underline-offset: 4px !important;
/*     font-weight: bold; */
    text-shadow: .5px 0 0 currentColor, -.5px 0 0 currentColor !important;
    outline: none;
}
.ac-list li .new {
    /* background-color: #17a2b8; */
    background-color: #246058;
    color: white;
    font-weight: bold;
    padding: 0.2em;
    border-radius: 0.3em;
    padding-left: 0.4em;
    padding-right: 0.4em;
    margin-right: 0.5em;
}
#landing-news-card .ac-list li a:hover,
#landing-news-card .ac-list li a:focus {
text-shadow: none !important;
}
/**** Large list ****/

.ac-list.lg {
    padding: 0;
    margin: 0;
}

.ac-list.lg li {
    font-size: 1.15em;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9e9e9;
    line-height: 1.3em;
    text-align: left;
/*     text-align: justify; */
}

.ac-card-body .event a {
    display: flex;
    align-items: center;
    padding-top: 13px;
    padding-bottom: 13px;
}

.ac-card-body .event a:hover {
    background-color: transparent !important;
    text-decoration: underline solid #006341 !important;
}


.ac-list.lg li::before {
    content: none;
}


/************* Cards *************/

.ac-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    text-decoration: unset;
    color: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    text-decoration: none;
}
a.ac-card:hover,
a.ac-card:focus {
    outline: 4px solid #e2e2e0;
}
a.ac-card:hover span.ac-btn,
a.ac-card:focus span.ac-btn,
a.ac-card span.ac-btn:hover,
a.ac-card span.ac-btn:focus {
    text-decoration: 1px underline currentcolor !important;
    text-underline-offset: 4px !important;
    text-decoration-skip-ink: none;
}

.ac-card.hero > div {
    justify-content: end; 
    justify-content: flex-end; /* Legacy, Chrome */
}

.ac-card.hero.shadow > div {
    background: linear-gradient(180deg, rgba(255,255,255,0) 70%, rgba(80,80,80,1) 100%); 
}

.ac-card.hero p {
    flex-grow: unset;
}

.ac-card.hero h2,
.ac-card.hero p {
    text-shadow: 0 0 10px black;
}

.ac-card > div {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ac-card .ac-card-head {
    height: 90px; /* IE. Other browsers: unset */
    height: unset;
    line-height: unset;
    padding-top: 0;
    padding-bottom: 0;
    /* padding-top: unset; */
    /* padding-bottom: unset; */
    /* font-size: 1.4em; */
}

.ac-card .ac-card-head h2,
.ac-card .ac-card-head p {
    line-height: unset;
    padding: 0;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    color: #4b4b4b !important;
    /* margin-top: 20px;
    margin-bottom: 20px; */
}

.ac-card .ac-card-head.bg-green.tx-white p { 
	color: white !important; 
}

.ac-card .ac-card-img {
    height: 200px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.ac-card .ac-card-body {
    height: unset;
    flex-grow: 2;
}

.ac-card p,
.ac-card ul {
    margin: 0;
    flex-grow: 2;
}

.ac-card h2, .ac-card h3 {
    font-weight: normal;
    font-size: 1.3em;
    font-weight: 500;
    margin: 0;
    margin-bottom: 1em;
}

.ac-card .ac-btn {
    min-height: 44px;
    margin-top: 1em;
    font-weight: 500;
    width: 100%;
}

/* Bootstrap grid card height consistency */
.col .ac-card,
[class|="col"] .ac-card {
    height: 100%;
}

@media (max-width: 1023px) { 

    .ac-card > div {
        padding: 20px;
    }
    .ac-card h2, .ac-card h3 {
    font-size: 1.2em;
    }

}

/****** Larger screens ******/


@media (min-width: 768px) { 

    .ac-list.cols {
        column-count: 2;
    }

}


/****** Wide screens ******/

@media (min-width: 1024px) { 

    .ac-list.cols {
        column-count: 3;
    }

}