/* Resrouces Layout */
.mooven-resources {
    display: flex;
    gap: 40px; 
}

/* Sidebar Filter */
.mooven-resources .mooven-resources__sidebar {
    border-radius: 10px;
    box-shadow: 0px 3px 6px #00000029;
    padding: 25px;
    width: 329px;
    min-width: 329px;
    max-width: 329px;
    height: fit-content;
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section:first-child {
    border-bottom: 1px solid #1B3A66;
    padding-bottom: 23px;
}

.mooven-resources .mooven-resources__sidebar h3.mooven-resources-filter__heading {
    color: #1B3A66;
    font-size: 18px;
    line-height: 22px;
    font-family: 'Century Gothic Bold',Helvetica,Arial,Lucida,sans-serif;
    padding-bottom: 20px;
}

.select-container {
    position: relative;
}

.select-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 18px;
    width: 16.72px;
    height: 9.07px;
    pointer-events: none;
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/Path-60639.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(180deg);
    transition: all 0.2s ease-in-out;
}

.select-container:focus::after,
.select-container:hover::after {
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/Path-60814.svg);
}

.select-container:focus-within::after {
    transform: rotate(0deg);
}

.mooven-resources-select {
    width: 100%;
    height: 43px;
    border: 1px solid #1B3A66;
    border-radius: 5px;
    padding: 0 45px 0 18px;
    appearance: none;
    background: #fff;
    font-size: 16px;
    line-height: 20px;
    color: #1B3A66;
    cursor: pointer;
    font-family: 'Century Gothic Regular',Helvetica,Arial,Lucida,sans-serif;
    appearance: none;
    transition: all 0.2s ease-in-out;
}

.mooven-resources-select:hover,
.mooven-resources-select:focus {
    border-color: #ed1847;
    box-shadow: 0px 3px 6px #00000029;
}

.mooven-resources-select:focus {
    outline: none;
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates button,
.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates a {
    width: 123px;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #1B3A66;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    font-size: 14px;
    line-height: 18px;
    font-family: 'Century Gothic Bold', Helvetica, Arial, Lucida, sans-serif;
    color: #1B3A66;
    float: right;
    margin-top: 0px;
    cursor: pointer;
    background-position: -185px center;
    background-repeat: no-repeat;
    background-size: 140%;
    transition: color 0.2s ease-in-out,
                background-position 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates button.mooven-resources-date-button,
.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates a.mooven-resources-date-button  {
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/mv-btn-background-blue.svg);
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates button:hover,
.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates a:hover  {
    color: white;
    background-position: 0px center;
    /* background-color: #1B3A66; */
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates button.mooven-resources-clear-button,
.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates a.mooven-resources-clear-button {
    color: #ed1847;
    border-color: #ed1847;
    margin-right: 6px;
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/btn_back_red.svg);
}

.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates button.mooven-resources-clear-button:hover,
.mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates a.mooven-resources-clear-button:hover {
    /* background-color: #ed1847; */
    color: white;
    background-position: 0px center;
}

.mooven-resources-filter__section.dates {
    border-bottom: 1px solid #1B3A66;
    padding-bottom: 23px;
    padding-top: 20px;
    min-height: 265px;
}

/* ==========================================
   Search
========================================== */

.mooven-resources-search {
    position: relative;
    /* overflow: hidden; */
    border-radius: 8px;
}

.mooven-resources-search__input {
    width: 100%;
    height: 43px;
    border: 1px solid #1B3A66 !important;
    border-radius: 8px 12px 12px 8px;
    padding: 0 0px 0 17px !important;
    font-size: 16px;
    line-height: 20px;
    color: #1B3A66 !important;
    background: #fff;
    font-family: 'Century Gothic Regular', Helvetica, Arial, Lucida, sans-serif;
    transition: all 0.2s ease-in-out;
}

.mooven-resources-search__input::placeholder {
    color: #1B3A66 !important;
}

.mooven-resources-search__input:focus,
.mooven-resources-search__input:hover  {
    outline: none;
    border-color: #ed1847 !important;
    box-shadow: 0px 3px 6px #00000029;
}

.mooven-resources-search__button {
    position: absolute;
    top: 0;
    right: 0px;
    left: auto;
    width: 43px;
    height: 43px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ed1847;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.mooven-resources-search__button img {
    width: 21.61px;
    height: 21.15px;
}

.mooven-resources-clear-search {
    display: none;
    margin-top: 6px;
    color: #1B3A66;
    font-family: 'Century Gothic Regular', Helvetica, Arial, Lucida, sans-serif;
    font-size: 13px;
    line-height: 16px;
    text-decoration: none;
    text-align: right;
    text-decoration: underline;
    float: right;
    transition: all 0.2s ease-in-out;
}

.mooven-resources-clear-search:hover {
    color: #ed1847;
    font-family: 'Century Gothic Bold', Helvetica, Arial, Lucida, sans-serif;
    text-decoration: underline;
}

/* ==========================================
   Date Range
========================================== */

.mooven-date-field {
    margin-bottom: 18px;
    position: relative;
}

.mooven-date-field:nth-child(3) {
    margin-bottom: 25px !important;
}

.mooven-date-field label {
    display: block;
    margin: 0px;
    font-size: 16px;
    line-height: 18px;
    color: #1B3A66;
    font-family: 'Century Gothic Regular', Helvetica, Arial, sans-serif;
    background-color: white;
    padding: 0 4px;
    position: absolute;
    left: 15px;
    top: -9px;
    transition: all 0.2s ease-in-out;
}

.mooven-date-field:hover label {
    color: #ed1847 !important;
}

.mooven-resources-date {
    width: 100%;
    height: 43px;
    border: 1px solid #1B3A66 !important;
    border-radius: 8px;
    padding: 0 17px !important;
    font-size: 16px;
    color: #1B3A66 !important;
    background: #fff;
    cursor: pointer;
    font-family: 'Century Gothic Regular', Helvetica, Arial, sans-serif;
    padding-top: 1px !important;
    transition: all 0.2s ease-in-out;
}

.mooven-resources-date:hover {
    border-color: #ed1847 !important;
    box-shadow: 0px 3px 6px #00000029;
}

.mooven-resources-date::placeholder {
    color: #1B3A66 !important;
}

.mooven-resources-date:focus {
    outline: none;
}

.mooven-date-field:after {
    content: '';
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/mv-date-icon-blue.svg);
    width: 31px;
    height: 20px;
    min-width: 18px;
    min-height: 20px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: 5px;
    pointer-events: none;
    opacity: 1;
    margin: auto;
    background-color: white;
    border-left: 1px solid #1B3A66;
    transition: all 0.2s ease-in-out;
}

.mooven-date-field:hover:after {
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/mv-date-icon-red.svg);
    border-color: #ed1847;
}

.mooven-resources-date-button {
    width: 100%;
    height: 50px;
    border: 1px solid #1B3A66;
    background: #1B3A66;
    color: #fff;
    border-radius: 8px;
    font-family: 'Century Gothic Bold', Helvetica, Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
}

.mooven-resources-date-button:hover {
    background: #0f2141;
}

.mooven-resources-clear-button {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    border: 1px solid #1B3A66;
    background: #fff;
    color: #1B3A66;
    border-radius: 8px;
    font-family: 'Century Gothic Bold', Helvetica, Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
}

.mooven-resources-clear-button:hover {
    background: #1B3A66;
    color: #fff;
}

.flatpickr-calendar .flatpickr-current-month select,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper  {
    font-family: 'Century Gothic Regular' !important;
    color: #1B3A66 !important;
}

.flatpickr-innerContainer .flatpickr-weekdaycontainer span.flatpickr-weekday {
    font-family: 'Century Gothic Bold' !important;
    color: #1B3A66 !important;
}

.flatpickr-days .dayContainer {
    font-family: 'Century Gothic Regular' !important;
    color: #1B3A66 !important;
}

.flatpickr-days .dayContainer span {
    font-family: 'Century Gothic Regular';
    color: #1B3A66;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-days .dayContainer span:hover {
    border-color: #ed1847 !important;
    background-color: #ed1847 !important;
    color: white !important;
}

.flatpickr-day.today {
    border-color: #ed1847 !important;
    background-color: #ed1847 !important;
    color: white !important;
    text-align: center !important;
}

/* ==========================================
   AJAX Loading
========================================== */

#mooven-resources-grid {
    position: relative;
    transition: opacity .25s ease;
}

#mooven-resources-grid.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    z-index: 20;
}

#mooven-resources-grid.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid #d9d9d9;
    border-top-color: #CD0034;
    border-radius: 50%;
    animation: mooven-spin .7s linear infinite;
    z-index: 21;
}

@keyframes mooven-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESROURCES GRID
========================================== */
#mooven-resources-grid {
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: row;
    gap: 17px;
    flex-wrap: wrap;
}

.mooven-resources__content {
    width: 100% !important;
}

.mooven-resources__content .mooven-resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 25px;
}

.mooven-resources__content .mooven-resources-header h2 {
    padding: 0 !important;
    font-family: "Century Gothic Regular", Helvetica, Arial, Lucida, sans-serif;
    font-size: 30px;
    line-height: 37px;
    color: #1B3A66;
}

.mooven-resources__content .mooven-resources-header h2 span {
    color: #ed1847;
    font-family: "Century Gothic Bold", Helvetica, Arial, Lucida, sans-serif;
}

.mooven-resources__content article.mooven-resource-card {
    display: block;
    background-color: #1B3A66;
    color: white;
    width: 265px;
    height: 367px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.mooven-resources__content article.mooven-resource-card:after {
    content: '';
    display: block;

}

/* .mooven-resources__content article.mooven-resource-card:hover {
    background-color: #ed1847;
} */

.mooven-resources__content article.mooven-resource-card .mooven-resource-card__image {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    max-height: 167px;
    transition: all 0.25s ease-in-out;
    z-index: 2;
}

.mooven-resources__content article.mooven-resource-card:hover .mooven-resource-card__image {
    top: 16px;
}

.mooven-resources__content article.mooven-resource-card .mooven-resource-card__image img {
    width: 100%;
    height: 178px;
    object-fit: contain;
    object-position: center;
}

.mooven-resources__content article.mooven-resource-card .text h3 {
    color: white;
    font-family: "Century Gothic Bold", Helvetica, Arial, Lucida, sans-serif;
    font-size: 20px;
    line-height: 24px;
    padding: 0;
    position: absolute;
    top: auto;
    bottom: 60px;
    max-width: 235px;
    transition: all 0.25s 0.015s ease-in-out;
    z-index: 2;
}

.mooven-resources__content article.mooven-resource-card:hover .text h3 {
    bottom: 106px;
}

.mooven-resources__content article.mooven-resource-card .mooven-resource-card__meta {
    color: white;
    font-family: "Century Gothic Regular", Helvetica, Arial, Lucida, sans-serif;
    font-size: 13px;
    line-height: 15px;
    position: absolute;
    max-width: 235px;
    bottom: 35px;
    transition: all 0.25s 0.03s ease-in-out;
    z-index: 2;
}

.mooven-resources__content article.mooven-resource-card:hover .mooven-resource-card__meta {
    bottom: 80px
}

.mooven-resources__content article.mooven-resource-card .mooven-resource-card__meta strong {
    font-family: "Century Gothic Bold", Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400 !important;
}

.mooven-resources__content article.mooven-resource-card .mooven-resource-card__download {
    width: 100%;
    max-width: 132px;
    min-width: 132px;
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/mv-btn-background-blue.svg);
    background-repeat: no-repeat;
    background-position: -185px center;
    background-size: 140%;
    height: 45px;
    display: flex;
    border-radius: 5px;
    border: 1px solid white;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-family: "Century Gothic Bold", Helvetica, Arial, Lucida, sans-serif;
    gap: 9px;
    position: absolute;
    top: auto;
    bottom: -50px;
    left: auto;
    right: 16px;
    transition: bottom 0.25s 0.05s ease-in-out,
                background-position 0.3s ease-in-out,
                border-color 0.2s 0.05s ease-in-out;
    z-index: 2;
}

.mooven-resources__content article.mooven-resource-card:hover .mooven-resource-card__download {
    bottom: 16px;
}

.mooven-resources__content article.mooven-resource-card:hover .mooven-resource-card__download:hover {
    background-position: 0px center;
    border-color: #1B3A66;
}

.mooven-resources__content article.mooven-resource-card .red-fade {
    display: block;
    background: transparent;
    width: 100%;
    min-width: 265px;
    height: 489px;
    position: absolute;
    bottom: -523px;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

.mooven-resources__content article.mooven-resource-card:hover .red-fade {
    bottom: 0px;
}

.mooven-resources__content article.mooven-resource-card .red-fade::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 25%;
    pointer-events: none;
    display: block;
    background: linear-gradient(to bottom, rgba(229, 209, 209, 0) 0%, #ED1847 100%) !important;
}

.mooven-resources__content article.mooven-resource-card .red-fade .inner-background {
    background-color: #ed1847;
    max-height: 368px;
    display: block;
    min-height: 368px;
    position: absolute;
    width: 100%;
    bottom: 0;
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/Mask-Group-520@2x.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* No Resources Available */
.mooven-resources-empty {
    color:#1B3A66;
}

.mooven-resources-empty h3 {
    font-family: "Century Gothic Bold", Helvetica, Arial, Lucida, sans-serif;
    font-size: 24px;
    line-height: 28px;
    color:#1B3A66;
}

.mooven-resources-empty p {
    font-family: "Century Gothic Regular", Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    line-height: 21px;
    color:#1B3A66;
    font-style: italic;
}

/* PAGINATION */
.mooven-resources-pagination .mooven-resources-pagination-inner {
    margin-top: 50px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mooven-resources-pagination .mooven-resources-pagination-inner:before {
    content: '';
    display: block;
    background-color: #1B3A66;
    min-height: 1px;
    width: 100%;
    margin-right: 32px;
}


.mooven-resources-pagination .mooven-resources-pagination-inner a {
    height: 45px;
    width: 45px;
    min-height: 45px;
    min-width: 45px;
    border: 1px solid #1B3A66;
    border-radius: 4px;
    text-align: center;
    color: #1B3A66;
    font-family: 'Century Gothic Bold', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/btn_back_red.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: -180px center;
    transition: all 0.3s ease-in-out;
}

.mooven-resources-pagination .mooven-resources-pagination-inner a:hover,
.mooven-resources-pagination .mooven-resources-pagination-inner a.current {
    color: #fff;
    border-color: #ed1847;
    background-position: 0px center;
}

/* RESPONSIVE CSS */
@media (min-width: 768px) {
    .mooven-resources__sidebar #mobile_toggle_title,
    .mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates .mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mooven-resources {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .mooven-resources .mooven-resources__sidebar .mooven-resources-filter {
        gap: 0 !important
    }

    .mooven-resources .mooven-resources__sidebar {
        padding: 0 !important;
        box-shadow: none;
        width: 100% !important;
        max-width: 100% !important;
    }

    .mooven-resources__sidebar #mobile_toggle_title {
        padding-bottom: 19px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mooven-resources__sidebar #mobile_toggle_title h2 {
        color: #1B3A66;
        font-family: 'Century Gothic Regular', Helvetica, Arial, Lucida, sans-serif;
        font-size: 25px;
        line-height: 30px;
        padding: 0 !important;
    }

    .mooven-resources__sidebar #mobile_toggle_title h2 span {
        font-family: 'Century Gothic Bold', Helvetica, Arial, Lucida, sans-serif;
    }

    .mooven-resources__sidebar #mobile_toggle_title .toggle-icon {
        display: block;
        min-width: 26.5px;
        min-height: 26.5px;
        width: 26.5px;
        height: 26.5px;
        position: relative;
    }

    .mooven-resources__sidebar #mobile_toggle_title .toggle-icon:before,
    .mooven-resources__sidebar #mobile_toggle_title .toggle-icon:after {
        width: 100%;
        height: 2px;
        background-color: #ed1847;
        display: block;
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto;
        transition: all 0.2s ease-in-out;
    }

    .mooven-resources__sidebar #mobile_toggle_title .toggle-icon:after {
        transform: rotate(90deg);
    }

    .mooven-resources__sidebar.open #mobile_toggle_title .toggle-icon:after {
        transform: rotate(0deg);
    }

    .mooven-resources__sidebar .mooven-resources-filter-top {
        height: 100%;
        transition: all 0.45s ease-in-out;
        max-height: 0px;
        overflow: hidden;
    }

    .mooven-resources__sidebar.open .mooven-resources-filter-top {
        max-height: 3000px;
    }

    .mooven-resources-filter__section.dates {
        border: none !important;
        padding: 20px 0 !important;
        min-height: 257px !important;
    }

    .mooven-resources .mooven-resources__sidebar .mooven-resources-filter__section.dates .desktop {
        display: none !important;
    }

    .mooven-resources-filter__section.search {
        padding: 20px 0 !important;
        border-top: 1px solid #1B3A66 !important;
        border-bottom: 1px solid #1B3A66 !important;
    }

    body .mooven-resources__content article.mooven-resource-card {
        background-image: url(https://staging2.fishgate.co.za/moov-new/wp-content/uploads/2026/08/Mask-Group-521@2x.jpg);
        background-repeat: no-repeat;
        background-position: -100px center;
        background-size: cover;
        background-color: #17335d !important;
    }

    body .mooven-resources__content article.mooven-resource-card .mooven-resource-card__image {
        top: 30px !important;
    }

    body .mooven-resources__content article.mooven-resource-card .mooven-resource-card__image img {
            height: 178px !important; 
    }

    body .mooven-resources__content article.mooven-resource-card .text h3 {
        bottom: 105px !important;
        width: 100% !important;
        max-width: 276px !important;
    }

    body .mooven-resources__content article.mooven-resource-card .mooven-resource-card__meta {
        bottom: 77px;
    }

    body .mooven-resources__content article.mooven-resource-card .mooven-resource-card__download {
    bottom: 18px !important;
    }

    body .mooven-resources__content article.mooven-resource-card:hover .red-fade {
        bottom: 0px !important;
    }

    .mooven-resources-pagination .mooven-resources-pagination-inner:before {
        margin-right: 15px !important;
    }
}

@media (max-width: 478px) {
    #mooven-resources-grid a.mooven-resource-card-link {
        width: 100% !important;
        display: block !important;
    }

    .mooven-resources__content article.mooven-resource-card {
        width: 100% !important;
    }
}