/*-------------------------------------------------------------
- Global Accesibility
-------------------------------------------------------------*/
body a:focus-visible,
body button:focus-visible {
    border: 2px solid;
}
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #fff;
    color: #000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/*-------------------------------------------------------------
- Global
-------------------------------------------------------------*/

/*-------------------------------------------------------------
- CPT List
-------------------------------------------------------------*/
.cpt_cc_framework_wrapper {
    overflow: auto;
    margin-bottom: 40px;
}

.cpt_cc_framework_wrapper {
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cpt_cc_framework_wrapper:hover {
    box-shadow: 10px 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}


/* Image container with aspect ratio */
.cpt_cc_framework_image_link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 landscape aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.cpt_cc_framework_featured_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cpt_cc_framework_featured_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.cpt_cc_framework_wrapper:hover .cpt_cc_framework_featured_image img {
    transform: scale(1.05);
}

/*-------------------------------------------------------------
- Publications List
-------------------------------------------------------------*/
.publications_list_wrapper.cpt_cc_framework_wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.publications_list_wrapper .publications_list_featured_image {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
}

.publications_list_wrapper .cpt_cc_framework_image_link {
    padding-bottom: 100%; /* Square aspect ratio for publication thumbnails */
    border: 1px solid #e5e5e5;
}

.publications_list_wrapper .publications_list_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publications_list_wrapper h2.pub_title {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.publications_list_wrapper h2.pub_title a {
    color: #1a5490;
    text-decoration: none;
    transition: color 0.2s ease;
}

.publications_list_wrapper h2.pub_title a:hover {
    color: #0d3a6b;
    text-decoration: underline;
}

.publications_list_wrapper .pub_bibliography {
    font-size: 0.95rem;
    color: #1a5490;
    font-weight: 500;
    margin-bottom: 5px;
}

.publications_list_wrapper .pub_authors {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

/* Highlight ASO authors - add class "aso-author" in content or use CSS if structured */
.publications_list_wrapper .pub_authors a,
.publications_list_wrapper .pub_authors strong,
.publications_list_wrapper .pub_authors .aso-author {
    color: #1a5490;
    font-weight: 600;
    text-decoration: none;
}

.publications_list_wrapper .pub_links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.publications_list_wrapper .pub_links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #1a5490;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.publications_list_wrapper .pub_links a:hover {
    color: #0d3a6b;
    text-decoration: underline;
}

.publications_list_wrapper .pub_links a svg {
    flex-shrink: 0;
}

/*-------------------------------------------------------------
- Publications Filter Sidebar
-------------------------------------------------------------*/
.facet-publications-wrapper {
    background: #fff;
    padding: 20px 10px;
    box-sizing: border-box;
    width: 100%;
}

.facet-publications-wrapper .filter_scroll_wrapper {
    box-sizing: border-box;
    width: 100%;
}

.facet-publications-wrapper .publications_filter_group {
    margin-bottom: 25px;
}

.facet-publications-wrapper .publications_filter_group h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
}

.facet-publications-wrapper .facetwp-facet {
    margin: 0;
}

/* FacetWP Checkbox Styling */
.facet-publications-wrapper .facetwp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.facet-publications-wrapper .facetwp-checkbox .facetwp-display-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.facet-publications-wrapper .facetwp-checkbox:hover {
    color: #1a5490;
}

/* Custom checkbox appearance */
.facet-publications-wrapper .facetwp-checkbox:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #1a5490;
    border-radius: 3px;
    background: #fff;
    transition: all 0.2s ease;
}

/* Checked state */
.facet-publications-wrapper .facetwp-checkbox.checked:before {
    background: #1a5490;
    border-color: #1a5490;
}

/* Checkmark for checked state */
.facet-publications-wrapper .facetwp-checkbox.checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

/* Hide default FacetWP checkbox icon if present */
.facet-publications-wrapper .facetwp-checkbox svg,
.facet-publications-wrapper .facetwp-checkbox .facetwp-checkbox-icon {
    display: none;
}

.facet-publications-wrapper .facetwp-counter {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
}

.facet-publications-wrapper .reset-filter {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.facet-publications-wrapper .reset-filter a,
.facet-publications-wrapper .reset-filter button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.facet-publications-wrapper .reset-filter a:hover,
.facet-publications-wrapper .reset-filter button:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

/*-------------------------------------------------------------
- Publications Responsive
-------------------------------------------------------------*/
@media only screen and (max-width: 767px) {
    .publications_list_wrapper.cpt_cc_framework_wrapper {
        flex-direction: column;
    }
    
    .publications_list_wrapper .publications_list_featured_image {
        flex: 0 0 100px;
        width: 100px;
        min-width: 100px;
    }
    
    .publications_list_wrapper .pub_links {
        flex-direction: column;
        gap: 10px;
    }
}

/*-------------------------------------------------------------
- Mobile Facet
-------------------------------------------------------------*/
.filter_scroll_wrapper {
    padding: 0 15px;
    overflow-y: scroll; 
    height: 100%;
}
.responsive_facet_wrapper.mobile_facet_menu{
    display: block!important;
    position: fixed;
    z-index: 9999999;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
    background: #fff;
    left: 110%;
    top: 0px;
    width: 75%;
    height: 100% !important;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
}
.responsive_facet_wrapper.mobile_facet_menu.open{
    left:25%;
}
.responsive_facet_wrapper.mobile_facet_menu.closed{
    left:110%;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
}
.responsive_facet_wrapper.closed a.mobile_facet_side_button,
a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
    display: none;
}
a.mobile_facet_bottom_button{
    z-index: 9999999;
    background: #B2482c;
    display: inline-block;
    padding: 5px 20px;
    color: #fff;
}
a.mobile_facet_side_button {
    position: absolute;
    top: 260px;
    display: inline-block;
    padding: 10px;
    left: -45px;
    background: #B2482c;
    color: #fff;
    transform: rotate(270deg);
    transform-origin: left top 0;
    font-size: 20px;
}
a.mobile_facet_bottom_button:hover,
a.mobile_facet_side_button:hover{
    color:#fff;
}

/*-------------------------------------------------------------
- Media Query
-------------------------------------------------------------*/
@media only screen and (max-width: 767px) {
    a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
        display: inline-block;
    }
    .filter_trigger{
        display: none;
    }
}