﻿.gECard {
    display: grid;
    border: 1px solid #D9D9D9;
    border-radius: 15px;
    background-color: #ffffff;
    position: relative;
    height: 100%;
    padding: 8%;
    transition: all 0.3s ease-in-out;
}

.gECard.borderRadius {
    border-radius: 15px 15px 0 0;
    border: none;
}

.gECard.noBorder {
    border: none;
}

.expandContainer {
    background-color: #ffffff;
    padding: 2% 8% 8%;
    border-radius: 0 0 15px 15px;
}

.row-expand {
    position: relative;
}

.rowGap {
    row-gap: 24px;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-expand {
    box-shadow: 0 0.9rem 1rem rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 0.9rem 1rem rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0.9rem 1rem rgba(0, 0, 0, 0.15);
}

.gECardContent {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

.gECardTitle {
    padding: 0 0 20px 0;
}

.gECardContentTop {
    align-self: flex-start;
}

.gECardContentCentre {
    align-content: flex-end;
}

.gECardContentBottom {
    align-self: flex-end;
}

.gECardContent div {
    width: 100%;
}

.gECardContent .textLeft {
     text-align: left;
}

.gECard h4:nth-child(1) {
    margin-bottom: 0;
}

.gECardContent h4, .gECardContent h3, .gECard h4, .gECard h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
    color: var(--GEH-Pink);
}

.gECardContent p {
    margin-bottom: 20px;
}

.gECardContent figure {
    margin: 0;
}

.imgContainer {
    border-radius: 15px;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 10px 0 30px 0;
}

.imgContainer img {
    position: absolute;
    height: 100%;
    width: auto;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.dateContainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
}

.dateContainer p {
    margin: 0;
    min-height: auto;
}

.gECardCTA {
    align-self: flex-end;
}

.gECardContent.center, .gECardContentTop.center {
    text-align: center;
}

.gECardCTA.center {
    justify-items: center;
}

.gEBtn-primary.center {
    margin: 0 auto;
}

.gECardCTA a {
    text-decoration: none;
}

.gECardCTA p {
    margin: 0;
}

/*Expand styles*/

.expand {
    cursor: pointer;
    transition: 0.4s;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--GEH-Dark-Green);
    text-align: left;
    padding: 0;
    margin: 0;
}

.expand:after {
    content: url('../../Images/Cards/chevron-right.svg');
    display: inline-block;
    width: 5px;
    height: auto;
    margin: 0 0 0 8px;
    transition: 0.4s;
}

.active,
.expand:hover {
    border: none;
    background: transparent;
    color: var(--egm-dark-blue);
    text-align: left;
    padding: 0;
}

.collapse p {
    transition: all 0.3s ease-in-out;
}

.collapse span {
    display: block;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.gECard hr, .expandContainer hr {
    margin: 0 0 10px 0;
    border-top: 1px solid #D9D9D9 !important;
    opacity: 1 !important;
}

.show-for-small {
    display: none;
    visibility: hidden;
}

.hide-for-small {
    display: block;
    visibility: visible;
}

/*Article styles*/

.articleCardHeight {
    height: 240px;
}

.articleContentPadding {
    padding: 0 0 15px 0;
}

.articleCardMarginTop {
    margin: 20px 0 0 0;
}

@media only screen and (max-width: 991px) {
    .show-for-small {
        display: block;
        visibility: visible;
    }

    .hide-for-small {
        display: none;
        visibility: hidden;
    }

    .gECard.borderRadius {
        border-radius: 15px;
    }

    .gECardContent {
        align-content: space-between;
    }

    .gECardContentCentre {
        align-self: flex-start;
    }

}

@media only screen and (max-width: 426px) {
    .gECardContent h1 {
        font-size: 11vw;
        line-height: 120%;
    }
}


