/* General Styles */
:root {
    --container-width: 100%;
    --events-dark: #02539B;
    --events-light: #E5EDF5;
    --meetings-dark: #906F14;
    --meetings-light: #fdfaf1;
    --sports-dark: #0D8713;
    --sports-light: #f3fff4;
    --closures-dark: #C53978;
    --closures-light: #FCF5F8;
    --backcountry-light: #EAEBE5;
    --backcountry-dark: #5f6b29;
    --hrcaa-light: #E5DFF1;
    --hrcaa-dark: #5C4099;
}

@media (min-width: 576px) {
    :root {
        --container-width: 540px;
    }
}

@media (min-width: 768px) {
    :root {
        --container-width: 720px;
    }
}

@media (min-width: 992px) {
    :root {
        --container-width: 960px;
    }
}

@media (min-width: 1200px) {
    :root {
        --container-width: 1140px;
    }
}

@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
    }
}

/* List View */
.DnnModule-EasyDNNnews .eds_template_List_Article_Events {
    margin-bottom: 5rem;
}

.card-article {
    background-color: white;
    box-shadow: 3px 5px 25px rgba(0, 0, 0, 0.1);
}

.card-article .edn-edit {
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
}

.card-article .card-body {
    padding-top: 0;
    z-index: 2;
}

.card-article .stretched-link::before {
    z-index: 3;
}

.card-article .card-img-top {
    position: relative;
    margin-bottom: -1.5rem;
    overflow: hidden;
}

.card-img-top::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: -2px;
    right: -2px;
    height: 100px;
    width: 104%;
    background-image: url('/DesktopModules/EasyDNNnews/Templates/_default/HRCA/News/event-wave.svg');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.card-img-top img:not(:last-child) {
    display: none;
}

.card-title {
    font-family: var(--bs-font-sans-serif);
    color: black;
    font-weight: 600;
}

/* Events */
.category-label a {
    text-decoration: none;
}

.category-label span {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 3px 0.625rem;
    border-radius: 5px;
    color: #555555;
    border: 1px solid #555555;
    background-color: rgba(85, 85, 85, 0.1);
}

.category-label span.Events {
    color: var(--events-dark);
    border: 1px solid var(--events-dark);
    background-color: var(--events-light);
}

.category-label span.Sports {
    background-color: var(--sports-light);
    border: 1px solid var(--sports-dark);
    color: var(--sports-dark);
}

.category-label span.Meetings {
    background-color: var(--meetings-light);
    border: 1px solid var(--meetings-dark);
    color: var(--meetings-dark);
}

.category-label span.Closures {
    background-color: var(--closures-light);
    border: 1px solid var(--closures-dark);
    color: var(--closures-dark);
}

.category-label span.Backcountry {
    background-color: var(--backcountry-light);
    border: 1px solid var(--backcountry-dark);
    color: var(--backcountry-dark);
}

.category-label span.HRCAA {
    background-color: var(--hrcaa-light);
    border: 1px solid var(--hrcaa-dark);
    color: var(--hrcaa-dark);
}

.category-label span.Event-Type {
    display: none;
}

.card:has(.Events) .date-icon {
    color: var(--events-dark);
}

.card:has(.Meetings) .date-icon {
    color: var(--meetings-dark);
}

.card:has(.Sports) .date-icon {
    color: var(--sports-dark);
}

.card:has(.Closures) .date-icon {
    color: var(--closures-dark);
}

.card:has(.Backcountry) .date-icon {
    color: var(--backcountry-dark);
}

.card:has(.HRCAA) .date-icon {
    color: var(--hrcaa-dark);
}

/* Calendar */
.eds_news_HRCA {
    .fc-toolbar {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        text-align: left;
    }

    .fc-left {
        order: 1;
    }

    .fc-center {
        order: 2;
        flex-grow: 1;
    }

    .fc-right {
        order: 3;
    }

    .fc-clear {
        display: none;
    }

    .fc-toolbar h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .fc-button {
        height: auto;
        padding: 0.5rem 0.75rem;
        font-weight: 600;
        text-transform: capitalize;
        text-decoration: none;
        
    }

    .fc-state-default {
        color: var(--bs-primary);
        border-color: var(--bs-primary);
        background: white;
    }

    .fc-state-active, 
    .fc-state-down {
        box-shadow: none;
        border-color: #8D8A8D;
        color: #676767;
        background-color: #E1E0E1;
    }

    .fc-state-disabled {
        color: #676767;
        border-color: #676767;
    }

    .fc .fc-button-group {
        display: flex;
        gap: 0.5rem;
    }

    .fc .fc-button-group>* {
        float: none;
        margin-left: 0;
        border-radius: 5px !important;
    }

    .fc-day-header {
        padding: 0.5rem 1rem;
        background-color: var(--bs-primary);
        color: white;
        text-align: left;
        font-size: 1rem;
        font-weight: 400;
    }

    .fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
        float: left;
        padding: 0.5rem 1rem;
        text-decoration: none;
    }

    .fc-unthemed td.fc-today.fc-day {
        background: none;
        outline: 1px solid #868788;
        outline-offset: -3px;
    }

    .fc-event,
    .fc-event:hover,
    .fc-event:focus,
    .fc-event:visited {
        color: #555555;
    }

    .fc-event {
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
        border: 1px solid #555555;
        background-color: rgba(85, 85, 85, 0.1);
    }

    .fc-event.Events {
        border: 1px solid var(--events-dark);
        background-color: var(--events-light);
        color: var(--events-dark);
    }

    .fc-event.Sports {
        border: 1px solid var(--sports-dark);
        background-color: var(--sports-light);
        color: var(--sports-dark);
    }

    .fc-event.Meetings {
        border: 1px solid var(--meetings-dark);
        background-color: var(--meetings-light);
        color: var(--meetings-dark);
    }

    .fc-event.Closures {
        border: 1px solid var(--closures-dark);
        background-color: var(--closures-light);
        color: var(--closures-dark);
    }

    .fc-event.Backcountry {
        border: 1px solid var(--backcountry-dark);
        background-color: var(--backcountry-light);
        color: var(--backcountry-dark);
    }

    .fc-event.HRCAA {
        border: 1px solid var(--hrcaa-dark);
        background-color: var(--hrcaa-light);
        color: var(--hrcaa-dark);
    }

    .fc-day-grid-event .fc-content {
        white-space: initial;
    }

    .fc-day-grid-event .fc-time {
        display: none;
    }
}

.calendar.eds_news_HRCA {
    margin: 1.5rem 1.5rem 5rem;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 3px 5px 25px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.article_pager {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
    max-width: var(--container-width);
    padding-right: calc(var(--bs-gutter-x)* 0.5);
    padding-left: calc(var(--bs-gutter-x)* 0.5);
    margin-left: auto;
    margin-right: auto;
}

.article_pager .page,
.article_pager .prev,
.article_pager .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    min-height: 39px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bs-primary);
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.article_pager .page:visited,
.article_pager .prev:visited,
.article_pager .next:visited {
    color: var(--bs-primary);
}

.article_pager .page.active,
.article_pager .page.active:visited,
.article_pager .page.active:hover,
.article_pager .page.active:focus {
    background-color: var(--bs-primary);
    color: white;
}

.article_pager .first,
.article_pager .last {
    display: none;
}

.article_pager .prev,
.article_pager .next {
    position: relative;
    visibility: hidden;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    width: 39px;
}

.article_pager .prev::after,
.article_pager .next::after {
    border: 1px solid var(--bs-primary);
    border-radius: 5px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    visibility: visible;
    display: inline-block;
    background-position: center;
    background-size: 0.75rem auto;
    background-repeat: no-repeat;
}

.article_pager .next::after {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMyMCA1MTIiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6ICM5ODAwMmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyOC43LjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiAxLjIuMCBCdWlsZCAxNTQpICAtLT4KICA8Zz4KICAgIDxnIGlkPSJMYXllcl8xIj4KICAgICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzEwLjYsMjMzLjRjMTIuNSwxMi41LDEyLjUsMzIuOCwwLDQ1LjNsLTE5MiwxOTJjLTEyLjUsMTIuNS0zMi44LDEyLjUtNDUuMywwcy0xMi41LTMyLjgsMC00NS4zbDE2OS40LTE2OS40TDczLjQsODYuNmMtMTIuNS0xMi41LTEyLjUtMzIuOCwwLTQ1LjNzMzIuOC0xMi41LDQ1LjMsMGwxOTIsMTkyaC0uMVoiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg==);
}

.article_pager .prev::after {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMyMCA1MTIiPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6ICM5ODAwMmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyOC43LjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiAxLjIuMCBCdWlsZCAxNTQpICAtLT4KICA8Zz4KICAgIDxnIGlkPSJMYXllcl8xIj4KICAgICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS40LDIzMy40Yy0xMi41LDEyLjUtMTIuNSwzMi44LDAsNDUuM2wxOTIsMTkyYzEyLjUsMTIuNSwzMi44LDEyLjUsNDUuMywwLDEyLjUtMTIuNSwxMi41LTMyLjgsMC00NS4zbC0xNjkuNC0xNjkuNEwyNDYuNiw4Ni42YzEyLjUtMTIuNSwxMi41LTMyLjgsMC00NS4zcy0zMi44LTEyLjUtNDUuMywwTDkuMywyMzMuM2gwWiIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+);
}

/* Galleries */
/* .edn_article_gallery {
    max-width: var(--container-width);
    padding-right: calc(var(--bs-gutter-x)* 0.5);
    padding-left: calc(var(--bs-gutter-x)* 0.5);
    margin-left: auto;
    margin-right: auto;
}

.edn_article_gallery ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
} */


.related-articles {
    background-image: url('/DesktopModules/EasyDNNnews/Templates/_default/HRCA/News/related-bkg.jpg');
    background-size: 100% auto;
    background-position: center 45%;
    background-repeat: no-repeat;
}

/* Widget Background */
.ModEasyDNNnewsWidgetsC .eds_template_List_Article_Events {
    background-image: url('/DesktopModules/EasyDNNnews/Templates/_default/HRCA/News/related-bkg.jpg');
    background-size: 100% auto;
    background-position: center 45%;
    background-repeat: no-repeat;
}