/* DEV MOVE PAGE UP -- REFACTOR TO EXACT HEADER SIZE LATER */
/* .page {
    margin-top: 200px;
} */

:root {
    /* === PRIMARY COLORS */
    --tempe-blue: #0e2d52;
    --white: #ffffff;
    --black: #000000;

    /* === SECONDARY COLORS */
    --sand-grey: #f0f0f0;
    --city-grey: #cccccc;

    /* === ACCENT COLORS */
    --diablo-red: #dd1a32;
}

h1,
.h1 {
    font-family: "Source Sans 3 Medium", sans-serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 72px;
    text-transform: uppercase;
}

h2,
.h2 {
    font-family: "Source Sans 3 Medium", sans-serif;
    font-size: 60px;
    font-weight: 500;
    line-height: 60px;
    text-transform: uppercase;
    color: var(--tempe-blue);
}

h3,
.h3 {
    font-family: "Source Sans 3 Medium", sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 48px;
    text-transform: uppercase;
    color: var(--tempe-blue);
}

h4,
.h4 {
    font-family: "Source Sans 3 Black", sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 44px;
    text-transform: uppercase;
}

h5,
.h5 {
    font-family: "Source Sans 3 Black", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 27px;
    text-transform: uppercase;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 27px;
}

picture.img-fluid {
    display: block;
    max-width: 100%;
    height: auto;
}

picture.img-fluid img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

a.btn,
.btn {
    font-family: "Source Sans 3 Black", sans-serif;
    font-size: 18px;
    line-height: 27px;
    text-transform: uppercase;
    border-radius: 28px;
    padding: 16px 32px;
    min-height: 57px;
    height: auto;
    border: none;
}

a.btn-primary,
.btn-primary {
    background-color: var(--diablo-red);
    color: white;
    border-color: var(--diablo-red);
}

a.btn-primary:hover {
    background-color: var(--tempe-blue);
    color: white;
}

a.btn-primary:active {
    background-color: var(--tempe-blue);
    color: white;
}

a.btn-primary.is-dark-bg:hover {
    background-color: var(--white);
    color: var(--tempe-blue);
}

a.btn-primary.is-dark-bg:active {
    background-color: var(--white);
    color: var(--tempe-blue);
}

a.btn-secondary {
    background-color: var(--tempe-blue);
    color: white;
}

a.btn-secondary.is-dark-bg {
    background-color: var(--white);
    color: var(--tempe-blue);
    border: none;
}

a.btn-secondary:hover {
    background-color: var(--diablo-red);
    color: white;
}

a.btn-secondary:active {
    background-color: var(--diablo-red);
    color: white;
}

a.btn-secondary.is-dark-bg:hover {
    background-color: var(--diablo-red);
    color: white;
}

a.btn-secondary.is-dark-bg:active {
    background-color: var(--diablo-red);
    color: white;
}

a {
    color: var(--tempe-blue);
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
}

a:hover {
    color: var(--diablo-red);
}

a:not(
        .btn,
        .btn-primary,
        .btn-secondary,
        .navbar-brand,
        .ab-item,
        .um-profile-edit-a,
        .social-link,
        .search-choice-close,
        .ui-state-default,
        .um-button,
        .ui-corner-all,
        .footer-branding__logo-link,
        .cookie-learn-more,
        .header__account,
        .header__account-mobile,
        :has(.gravatar, .file-item__icon)
    ):before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background: var(--diablo-red);
    height: 2px;
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

a:hover:before,
a:focus:before,
a:active:before {
    right: 0;
}

h2 span {
    font-family: "Source Sans 3 Black", sans-serif;
    font-weight: 900;
}

.section[data-bg="dark"] h2,
.section[data-bg="dark"] .h2 {
    color: white;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bg-primary {
    background: var(--tempe-blue);
    background-color: var(--tempe-blue) !important;
}

.bg-primary a.btn-primary:hover {
    background-color: var(--white);
    color: var(--tempe-blue);
}

/* Base: 128 top/bottom to satisfy “different colors get 128/128” */
.section {
    padding: 128px 140px;
}

/* TOP fix: when two adjacent rows share the same color,
   lower the top padding of the second row to 64 */
.section[data-bg="light"] + .section[data-bg="light"],
.section[data-bg="dark"] + .section[data-bg="dark"],
.section[data-bg="brand"] + .section[data-bg="brand"] {
    padding-top: 64px;
}

.logos-section[data-bg="light"] + hr + .logos-section[data-bg="light"],
.logos-section[data-bg="dark"] + hr + .logos-section[data-bg="dark"],
.logos-section[data-bg="brand"] + hr + .logos-section[data-bg="brand"] {
    padding-top: 64px;
}

/* BOTTOM fix: when a row is followed by the same color,
   lower the bottom padding of the first row to 64 (needs :has) */
.section[data-bg="light"]:has(+ .section[data-bg="light"]),
.section[data-bg="dark"]:has(+ .section[data-bg="dark"]),
.section[data-bg="brand"]:has(+ .section[data-bg="brand"]) {
    padding-bottom: 64px;
}

.logos-section[data-bg="light"]:has(+ hr + .logos-section[data-bg="light"]),
.logos-section[data-bg="dark"]:has(+ hr + .logos-section[data-bg="dark"]),
.logos-section[data-bg="brand"]:has(+ hr + .logos-section[data-bg="brand"]) {
    padding-bottom: 64px;
}

#scholarships-hero .internal-page-hero__background-image .internal-page-hero__bg-img,
#scholarships-hero .internal-page-hero__background-image .internal-page-hero__bg-img img {
    object-position: top;
}

#about-us-text-images.text_images.section {
    padding-bottom: 32px;
}

/* SEARCH RESULTS STYLING */

.meetings-archive form.search-form {
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--city-grey);
    border-radius: 4px;
}

.search-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--tempe-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-results__container {
    margin-top: 14rem;
    padding: 0 4rem;
}

.search-results__container .search-results__wrapper {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.search-results__container .search-results__title {
    font-family: "Source Sans 3 Black", sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--tempe-blue);
}

.search-results__container .meeting {
    padding: 20px;
    border: 1px solid lightslategray;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    width: 450px;
}

.search-results__container .meeting:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-results__container .meeting__title {
    font-family: "Source Sans 3 Bold", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    max-width: 75%;
    line-height: unset;
}

.search-results__container .meeting .meeting__date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--tempe-blue);
    color: white;
    border-radius: 18px;
    width: 83px;
    height: 83px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.meeting .meeting__date__day {
    font-family: "Source Sans 3 Bold", sans-serif;
    font-size: 39px;
    line-height: 1;
}

.meeting .meeting__date__month {
    font-family: "Source Sans 3 Medium", sans-serif;
    font-size: 19px;
    line-height: 1;
    text-transform: uppercase;
}

/* END SEARCH RESULTS STYLING */

/* ******************** */
/* *** MEC STYLING *** */
/* ******************** */

.mec-event-article .mec-event-sharing-wrap .mec-event-share .mec-event-share-icon {
    color: var(--diablo-red);
    background: var(--white);
}

.mec-event-article .mec-topsec .mec-event-image img {
    border-radius: 24px 0 0 0;
}

.mec-event-article .mec-topsec {
    border-radius: 24px 24px 0 0;
}

.mec-event-article .mec-event-footer {
    background: var(--tempe-blue);
    border-radius: 0 0 24px 24px;
}

.mec-event-list-standard .mec-event-article {
    border-radius: 24px;
    overflow: hidden;
}

a.mec-booking-button {
    font-family: "Source Sans 3 Medium", sans-serif;
    color: var(--tempe-blue);
}

.mec-event-description {
    font-family: "Source Sans 3", sans-serif;
}

span.mec-event-d {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

/* Move event page down since no hero */
.site-content > .mec-container {
    margin-top: 215px;
}

/* ******************** */
/* * END MEC STYLING * */
/* ******************** */

/* ******************** */
/* * START GRAVITY FORMS STYLING * */
/* ******************** */

.gform_wrapper form .gform-footer .gform_button.button[type="submit"],
.gform_wrapper form .gpnf-nested-entries-container .gpnf-add-entry {
    background-color: var(--tempe-blue) !important;
    font-family: "Source Sans 3 Black", sans-serif !important;
    font-size: 18px !important;
    line-height: 27px !important;
    text-transform: uppercase !important;
    border-radius: 28px !important;
    padding: 16px 32px !important;
    height: 57px !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
}

.gform_wrapper form .gform-footer .gform_button.button[type="submit"]:hover,
.gform_wrapper form .gpnf-nested-entries-container .gpnf-add-entry:hover {
    background-color: var(--diablo-red) !important;
    color: var(--white) !important;
}

.swipe__indicator {
    display: block;
    position: sticky;
    bottom: 10px;
    left: 0;
    margin-top: 10px;
}

.swipe__indicator .swipe__message {
    padding: 1rem;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    background: var(--tempe-blue);
    color: white;
    border-radius: 28px;
    border: none;
}

.icon.edit svg path {
    fill: transparent;
}

.icon.files svg path {
    fill: transparent;
}

.icon.user-pen svg path {
    fill: transparent;
}

.icon.gavel svg path:first-of-type {
    fill: transparent;
}

.icon.apple svg path {
    fill: transparent;
}

.icon.trending-up svg path {
    fill: transparent;
}

.icon.user-plus svg path {
    fill: transparent;
}

.icon.image svg path {
    fill: transparent;
}

@keyframes swipey {
    0% {
        rotate: 0deg;
    }

    25% {
        rotate: 20deg;
    }

    50% {
        rotate: 0deg;
    }

    75% {
        rotate: -20deg;
    }

    100% {
        rotate: 0deg;
    }
}

.swipe__indicator .icon {
    animation: swipey 5s infinite ease-in-out;
}

@media screen and (min-width: 777px) {
    .swipe__indicator {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 64px 20px;
    }
}

@media screen and (max-width: 885px) {
    a.btn,
    .btn {
        font-size: 16px;
        padding: 14px 28px;
        height: auto;
        min-height: unset;
    }
}

@media screen and (max-width: 576px) {
    .button-row.single-button {
        align-items: center;
    }

    h2,
    .h2 {
        font-size: 44px;
        line-height: 44px;
    }

    h3,
    .h3 {
        font-size: 38px;
    }
}
