/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 /*** CMW Y25 Resources CSS **/
 .cmw-Y25.cmw-resources-container #resources-container .cmw-resources-content-container, .cmw-Y25.cmw-resources-container .cmw-filter-sticky, .cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky form{
    width: min(83%, 1200px);
    margin-left: auto;
    margin-right: auto;
 }
 .cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resources-filter-wrap {
    --cmw-border-radius-val: var(--cmw-2xs);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cmw-m);
    margin-top: var(--cmw-xl);
    margin-bottom: var(--cmw-l);
}

.cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky{
    width: 100%;
    transition: all 0.3s ease-out;
}

body.admin-bar .y25-megamenu-wrapper.offcanvas ~ #content .cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky{
    top: calc( var(--menu-bar-offcanvas-height) + var(--wp-admin-bar-height) );    
}

.y25-megamenu-wrapper.incanvas ~ #content .cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky{
    top: var(--menu-bar-normal-height);    
}
.y25-megamenu-wrapper.offcanvas ~ #content .cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky{
    top: var(--menu-bar-offcanvas-height);    
}

body.admin-bar .y25-megamenu-wrapper.incanvas ~ #content .cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky{
    top: calc( var(--menu-bar-normal-height) + var(--wp-admin-bar-height) );    
}
.cmw-Y25.cmw-resources-container .cmw-filter-sticky.sticky {
    position: sticky;
    background: white;
    width: 100%;
    transition: all 0.3s ease-out;
    z-index: 998;

}


.cmw-filter-sticky.sticky  form{
    padding: 1rem;
}
.cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resource-single {
    display: flex;
    flex-direction: column;
    box-shadow: 0px 8px 36px 0px rgba(156, 149, 181, 0.30);
    border-radius: var( --cmw-border-radius-val);
}
.cmw-Y25.cmw-resources-container .cmw-resurce-card-meta {
    color: var(--cmw-Black);
    font-size: 0.72222rem;
    font-weight: 600;
    line-height: 120%;
}
.cmw-Y25.cmw-resources-container .cmw-resurce-card-meta a{
    color: var(--cmw-Black);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-inner a  {
    display: flex;
    flex-direction: column;
    flex: 1 0 0;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-inner a .cmw-content {
    color: var(--cmw-Black);
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-inner a {
    text-decoration: none;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-button.cmw-quaternary-btn span.wp-block-button__link{
    justify-content: flex-start;
    padding-left: 0;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1 0 0;
    justify-content: space-between;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card-header{
    display: flex;
    flex-direction: column;
    gap: var(--cmw-xs);
}
.cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resources-filter-wrap .cmw-resources-details {
    display: flex;
    flex-direction: column;
    padding: var(--cmw-s);
    flex: 1 0 0;
    gap: var(--cmw-xs);
    align-self: stretch;
    background: var(--cmw-White);
    justify-content: space-between;
    border-bottom-right-radius: var( --cmw-border-radius-val);
    border-bottom-left-radius: var( --cmw-border-radius-val);

}
.cmw-Y25.cmw-resource-vimeo-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--cmw-l);
    z-index: 1000;
    border-radius: 8px;
    width: min(74%, 1072px);
}
.cmw-Y25.cmw-resource-vimeo-modal .cmw-modal-header svg path {
    fill: white;
}
.cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resources-filter-wrap .cmw-Y25 img.cmw-resource-card-image {
    width: 100%;
    object-fit: cover;
    border-top-right-radius: var( --cmw-border-radius-val);
    border-top-left-radius: var( --cmw-border-radius-val);
}
.cmw-Y25.cmw-resources-container .cmw-box-paginate-display .cmw-box-paginate a,.cmw-Y25.cmw-resources-container .cmw-box-paginate-display .cmw-box-paginate span.page-numbers.current{
    color: var(--cmw-Black);
    font-size: 1rem;
    font-weight: 400;
}
.cmw-Y25.cmw-resources-container .cmw-box-paginate-display .cmw-box-paginate span.page-numbers.current{
    text-decoration: underline;
}
.cmw-Y25.cmw-resources-container input#resource_search::placeholder {
    color: var(--cmw-Dark-Gray);
}
.cmw-Y25.cmw-resources-container .cmw-resources-search-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-bottom: var(--cmw-s);
}
.cmw-Y25.cmw-resources-container .cmw-resources-filter-div-container .cmw-global-form {
    display: flex;
    align-items: center;
    gap: var(--cmw-2xs);
    flex-direction: row;
    width: 100%;
}
.cmw-Y25.cmw-resources-container .cmw-resources-filter-div-container {
    min-width: 60%;
}
.cmw-Y25.cmw-resources-container a.cmw-resource-card.cmw-trigger-iframe-load {
    flex: 1 0 0;
    display: flex;
}
.cmw-Y25.cmw-resources-container a.cmw-resource-card.cmw-trigger-iframe-load:hover {
    text-decoration: none;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card:hover > div {
    box-shadow: none;
}
.cmw-Y25.cmw-resources-container .cmw-resource-card:hover .cmw-resource-card-inner {
    box-shadow: 0 14px 25px rgba(0, 0, 0, .16);
}
.cmw-Y25.cmw-resources-container .cmw-resource-card > div{
    padding: 0;
}
.cmw-Y25.cmw-resources-container .cmw-resources-search-content .cmw-resources-filter-div-container {
    display: flex;
    align-items: center;
}
.cmw-Y25.cmw-resources-container #resource_spinner{
    margin-left: 10px;
}
.cmw-Y25.cmw-resources-container  .cmw-r-iframe-container{
    padding-top: 56.25% ;
    margin-right: 50px ;
    margin-top: 50px ;
}
.cmw-Y25.cmw-resources-container  select#sortbyselectResource {
    border: none;
    width: min-content;
}
.cmw-Y25.cmw-resources-container .select-wrapper, .cmw-Y25.cmw-resources-container .select-wrapper, .cmw-Y25.cmw-resources-container .select-wrapper .cmw-custom-loading-indicator-wrapper {
    width: 100%!important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.cmw-Y25.cmw-resources-container .select-wrapper option{
    color: var(--cmw-Dark-Gray);
}
.cmw-Y25.cmw-resources-container .select-wrapper .cmw-remove-selected-filter-solution,
.cmw-Y25.cmw-resources-container .select-wrapper .cmw-remove-selected-filter-market,
.cmw-Y25.cmw-resources-container .select-wrapper .cmw-remove-selected-filter-content{
    cursor: pointer;
    margin-left:10px;
    position: absolute;
    margin-top: -3px;
}
.cmw-Y25.cmw-resources-container label[for="sortbyselectResource"].sort-text,.cmw-Y25.cmw-resources-container select#sortbyselectResource {
    color: var(--cmw-Black);
    font-size: 0.88889rem;
    line-height: normal;
    vertical-align: bottom; 
}
.cmw-Y25.cmw-resources-container label[for="sortbyselectResource"].sort-text{
    font-weight: 700;
}
.cmw-Y25.cmw-resources-container select#sortbyselectResource{
    font-weight: 400;
    background-color: white;
}
.cmw-Y25.cmw-resources-container .cmw-resource-sort-clear {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.cmw-Y25.cmw-resources-container .no-results-message {
    width: max-content;
}
.cmw-Y25.cmw-resources-container a.cmw-filter-clear-link, .cmw-Y25.cmw-resources-container #toggle-filters-btn {
    color: var(--cmw-Primary-Blue);
    font-size: 0.88889rem;
    font-weight: 700;
    text-decoration-line: underline;
}
.cmw-Y25.cmw-resources-container .cmw-resources-details a:hover {
    text-decoration: none;
}
.cmw-Y25.cmw-resources-container .cmw-resources-sortby {
    gap: var(--cmw-4xs);
    display: flex;
    align-items: flex-end;
}
#resources-container {
    transition: opacity 0.3s ease;
  }
  #resources-container.htmx-swapping {
    opacity: 0;
  }
  #resources-container .cmw-content {
    font-size: 14px;
  }
  #resource-filters-form select {
    cursor: pointer;
  }
  button#toggle-filters-btn{
     display: none;
  }

@media(max-width: 1100px){
    .cmw-Y25.cmw-resources-container  button#toggle-filters-btn::after {
        content: " ";
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: var(--dropdown-arrow-down-blue);
        background-repeat: no-repeat;
        background-size: 15px;
        border: 1px solid var(--cmw-Primary-Blue);
        background-position: center;
        padding: var(--cmw-3xs);
        border-radius: var(--cmw-4xs);
    }
    .cmw-Y25.cmw-resources-container button#toggle-filters-btn.active::after {
        background-image: var(--dropdown-arrow-up);
    }
    

    .cmw-Y25.cmw-resources-container  button#toggle-filters-btn{
        display: block;
    }
    .cmw-Y25.cmw-resources-container .cmw-resources-search-content {
        flex-direction: column-reverse;
    }
    .cmw-Y25.cmw-resources-container .cmw-resources-search-div {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
  
    .cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resources-filter-wrap{
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .cmw-Y25.cmw-resources-container .cmw-resources-filter-div-container {
            display: none; 
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            width: 0;
            min-width: 0;
        }
    
        .cmw-Y25.cmw-resources-container .cmw-resources-filter-div-container.active {
            display: block;
            opacity: 1;
            width: 100%;
            max-height: 500px;
            min-width: 60%;
            margin-top: var(--cmw-m);
        }
    
        .toggle-filters {
            display: block;
            width: max-content;
            border: none;
            background: transparent;
        }
        .cmw-r-iframe-container{
            padding-top: 100%;
        }
        
}
@media (max-width: 840px){
    .cmw-Y25.cmw-resources-container .cmw-Y25.cmw-resources-filter-wrap .cmw-Y25 img.cmw-resource-card-image {
        object-fit: contain;
    }
    .cmw-Y25.cmw-resources-container .no-results-message{
        width: 100%;
    }
 
    .cmw-Y25.cmw-resources-container .cmw-resources-filter-div-container .cmw-global-form {
        flex-direction: column;
    }
 
    
}
 /** End CMW Y25 Resources CSS **/
 