.card,
.card .card-body,
.card .card-img-top,
.card .card-footer {
    transition: 0.35s ease-in-out;
}

.card {
    text-align: left;
    width: 100%;

    height: 100%;

    background-color: #f1eef9;

    border-radius: 3px;
    border: 0;

    transition: 0.5s ease-in-out;

    box-shadow: none;

    cursor: pointer;

    overflow-x: hidden;
}
.card:hover {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.card .card-img-top {
    height: 100%;

    border-radius: 3px 3px 0 0;

    object-fit: contain;
}

.card .card-body {
    padding: 1rem;
    max-height: 550px;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: transparent;

    letter-spacing: 0.25pt;
}

.card .card-body h5 {
    margin-top: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card .card-body .card-body-header sub {
    color: #ab3062;
    text-transform: uppercase;
    font-weight: 700;
}

.card .card-body,
.card .card-body a {
    color: #423a4e;
    font-size: 1rem;
}

.card .card-body .card-body-header {
    box-sizing: content-box;
}

.card .card-body .card-body-excerpt {
    font-weight: 400;

    width: 100%;
}

.card .card-footer {
    border-top: 0;
    background-color: transparent;
}

.card .card-footer .btn {
    text-shadow: none;
    color: #1B1B25;
    border-radius: 2px;
    text-transform: uppercase;
    background-color: transparent;
}

.card .card-img-top-container {
    flex: 1;
}

.card.no-bio .card-body {
    height: 105px;
    max-height: 105px;
}

.card.chapter-card {
    max-width: 400px;
}

.card.news-card {
    text-align: center;
    overflow: visible;

    border-radius: var(--medium-border-radius);

    padding: 2rem;
}

.card.news-card:hover {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
}

.card.news-card .card-img-top {
    margin-left: auto;
    margin-right: auto;

    border-radius: var(--base-border-radius);
}

.card.news-card .card-body {
    text-align: left;
    overflow: hidden;

    margin-top: 1rem;

    padding: 0;
}

.event-card.card {
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 300px;
    border: 1px solid var(--default-border-color);
    background-color: var(--miss-amazing-white);

    overflow-y: hidden;
}

.event-card.card .card-image-container,
.event-card.card .card-image-container img {
    width: 400px;
    height: 100%;
    max-height: 175px;
}

.event-card.card .card-body {
    min-height: 100px;
}

.event-card.card .card-title {
    font-weight: 700;
}

.event-card.card p.event-location,
.event-card.card p.event-location span {
    color: rgb(90, 99, 108);
    font-size: 8pt !important;
}

.event-card.card .event-date {
    position: absolute;

    top: 1rem;
    left: 1rem;

    padding: 0.35rem 0.7rem;

    border-radius: 5px;

    background-color: var(--miss-amazing-white);

    text-align: center;
}

.event-card.card .event-date span {
    width: 100%;
    float:left;
}

.event-card.card .event-date .event-day {
    font-size: 12pt;
    font-weight: 900;
}

.event-card.card .event-date .event-month {
    font-size: 8pt;
    font-weight: 400;
    text-transform: uppercase;
}

.representative {
    margin-bottom: 4rem;

}

.representative-card {
    max-width: 275px;
    max-height: 375px;

    color: var(--miss-amazing-purple);
}

.representative-card .team-member-header {
    padding-top: 1rem;

    font-weight: 700;

    text-align: center;
}

.representative-card .team-member-header sub {
    text-transform: uppercase;
    bottom: 5px;
    top: 5px;
    line-height: 20pt;
    letter-spacing: 0.15em;
    font-size: 9pt;
    font-weight: 700;
}

.representative-card .team-member-header h5 {
    line-height: 28pt;
    font-weight: 700;
    font-size: 16pt;
}

.representative-card .team-member-header sub,
.representative-card .team-member-header h5,
.representative-card .card-img-top-container .card-img-top-overlay {
    transition: 0.5s ease-in-out;
}

.representative-card .card-img-top,
.representative-card .card-img-top-container {
    max-height: 275px;
    max-width: 275px;
    width: 100%;
    height: 100%;
}

.representative-card .card-img-top-container {
    margin-left: auto;
    margin-right: auto;

    position: relative;

    border-radius: var(--medium-border-radius);

    overflow: hidden;

    aspect-ratio: 1;
}

.representative-card .card-img-top-container .card-img-top-overlay {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    opacity: 0;

    align-content: center;
    justify-items: center;

    text-align: center;

    background-color: rgba(0, 0, 0, 0.5);
}

.representative-card .card-img-top-container .card-img-top-overlay .btn {
    max-width: 80%;
    padding: 0.5rem 1rem;
}

.representative-card .card-img-top {
    z-index: 1;
}

.representative-card .card-img-top {
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member {
    height: 300px;
    width: 200px;
    text-align: center;
}

.team-member .card-img-top-container .card-img-top {
    max-height: 175px;
    max-width: 175px;
    width: 100%;
    height: 100%;
}

.team-member .card-img-top-container {
    margin-left: auto;
    margin-right: auto;

    height: 175px;
    width: 175px;
}

.team-member .card-img-top {
    object-fit: contain;

    border-radius: 50%;
}

.team-member.sponsor .card-img-top {
    border-radius: 0;
}

.team-member .team-member-header {
    margin-top: 2rem;
}

.team-member .team-member-header h6,
.team-member .team-member-header p {
    font-weight: 700;
    font-size: 12pt;
}

.team-member .team-member-header sub {
    margin: 0.35rem 0 0.35rem;
    font-size: 12pt;
    font-weight: 400;
}

.inverted .team-member .team-member-header {
    color: var(--miss-amazing-white);
}

.wp-block-column .team-member.control {
    margin-left: auto;
    margin-right: auto;
}

.sponsor {
    width: 200px;
    height: 200px;

    margin: 1rem;
}

.sponsor .sponsor-logo {
    object-fit: contain;

    width: 100%;
    height: 100%;
}

.representative-card:hover .card-img-top-container .card-img-top-overlay {
    opacity: 1;
}

.wp-block-column .card {
    max-height: 600px;
}

.wp-block-column .card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-column .card .card-img-top {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    max-height: 350px;
}

.post-content a:hover .card {
    text-shadow: none;
}

.news-item .card.news-card {
    max-width: 500px;

    display: block;

    overflow: hidden;
}

.news-item .card.news-card h5 {
    text-transform: none;
    font-size: 22pt;
}

.news-item .card.news-card p {
    margin-top: 0.75rem;
    font-size: 12pt;
}

.news-item .card.news-card .button-container {
    margin-top: 2rem;
}

.news-item .card.news-card .button-container .btn {
    color: var(--miss-amazing-white);
    font-size: 8pt !important;
    letter-spacing: 1px;
    font-weight: 400;
    box-shadow: none;
}

.news-item .card.news-card .card-img-top {
    max-height: 300px;
}

.info-card {
    color: var(--miss-amazing-purple);
    background-color: var(--miss-amazing-white);
    border: 1px solid var(--miss-amazing-light-grey);
    border-radius: var(--base-border-radius);

    text-align: center;
    padding: 3rem;
}

.info-card.top-image-cover {
    background-color: var(--miss-amazing-off-white);

}

.info-card.top-image-cover figure {
    margin: -3rem -3rem 2rem;

    width: calc(100% + 6rem);
    height: 300px;
}

.info-card.top-image-cover figure img {
    aspect-ratio: auto !important;
    height: 100% !important;
    border-radius: var(--base-border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.info-card h1,
.info-card h2,
.info-card h3,
.info-card h4,
.info-card h5,
.info-card h6 {
    font-weight: 700;
}

.info-card h1,
.info-card h2,
.info-card h3,
.info-card h4,
.info-card h5,
.info-card h6,
.info-card p {
    color: var(--miss-amazing-purple);
}

.info-card.full-width {
    width: 100%;

    text-align: left;
}

.info-card.inverted {
    background-color: var(--miss-amazing-purple);
}

.info-card.inverted h1,
.info-card.inverted h2,
.info-card.inverted h3,
.info-card.inverted h4,
.info-card.inverted h5,
.info-card.inverted h6,
.info-card.inverted p {
    color: var(--miss-amazing-off-white);
}

.chapter-in-action-card {

    position: relative;

    aspect-ratio: 1;

    border-radius: var(--base-border-radius);

    overflow: hidden;

    height: 100%;
    width: 100%;
}

.chapter-in-action-card-wrapper {
    height: var(--chapter-in-action-card-height);
    width: var(--chapter-in-action-card-width);

    flex-shrink: 0;
    padding: 1rem;
}

.chapter-in-action-card img,
.chapter-in-action-card .content-overlay {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: 0;
}

.chapter-in-action-card img {
    object-fit: cover;

    z-index: 1;

    width: 100% !important;
    height: 100% !important;
}

.chapter-in-action-card .content-overlay {
    z-index: 2;

    opacity: 0;

    transition: 0.35s ease-in-out;

    background-color: rgba(0, 0, 0, 0.5);

    text-align: left;

    padding: 2rem;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;
}

.chapter-in-action-card .content-overlay h3,
.chapter-in-action-card .content-overlay p {
    margin-bottom: 1rem;
    color: var(--miss-amazing-white) !important;
    cursor: default;
}

.chapter-in-action-card .content-overlay .btn {
    margin-top: 1rem;
}

.chapter-in-action-card:hover .content-overlay {
    opacity: 1;
}

@media screen and (max-width: 992px) {
    .row .card-container {
        margin-bottom: 1rem;
    }

    .info-card {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .event-card.card {
        max-width: 100%;
        max-height: 425px;
    }

    .event-card.card .card-image-container,
    .event-card.card .card-image-container img {
        max-height: 300px;
        width: 100%;
    }

    .news-item .card.news-card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 767px) {
    .representative-card .card-img-top-container .card-img-top-overlay .btn{
        padding: 1rem 2.4rem;
    }
}