/* Main Container */
.unique-playbook-resource-grid .unique-playbook-container {
    border-radius: 15px;
    width: 100%;
    overflow: hidden;
    display: block;
}
.unique-playbook-resource-grid .unique-playbook-container div,
.unique-playbook-resource-grid .unique-playbook-container p ,
.unique-playbook-resource-grid .unique-playbook-container a ,
.unique-playbook-resource-grid .unique-playbook-container span {
    color:#14203D;
}


/* Header Section */
.unique-playbook-resource-grid .playbook-header {
    display: none; 
}

.unique-playbook-resource-grid .mobile-field-group:last-child {
    border-bottom: none;
}

.unique-playbook-resource-grid .header-title {
    flex: 0 0 18%;
    padding: 20px;
    display: flex;
    align-items: center;
    vertical-align: middle;
    font-weight: 700;
    font-size:24px;
    flex-wrap:wrap;
}
.unique-playbook-resource-grid .header-title > div {
    word-break: break-word;
}

.unique-playbook-resource-grid .header-column {
    flex: 1;
    padding: 20px;
    vertical-align: middle;
    font-weight: 700;
    font-size:24px;
}

/* Results Section */
.unique-playbook-resource-grid .playbook-results {
    display: flex;
    flex-direction: column;
}

.unique-playbook-resource-grid .playbook-item:not(:last-child) {
    display: flex;
    border-bottom: 1px solid #3C3C3C;
}

.unique-playbook-resource-grid .item-cell {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 20px;
    font-size:24px;
}

.unique-playbook-resource-grid .item-title {
    flex: 0 0 18%;
}

/* Link Styling */
.unique-playbook-resource-grid .item-cell a,
.unique-playbook-resource-grid .playbook-title-link {
    color: #14203D;
    font-weight: 600;
    text-decoration: underline;
}

.unique-playbook-resource-grid .playbook-title-no-link {
    color: #14203D;
    font-weight: 600;
}

/* TRL/CRI Styling */
.unique-playbook-resource-grid .trl-cri-container {
    display: flex;
    gap: 20px;
    flex-direction: column;
}
 .unique-playbook-resource-grid .playbook-header {
    display: flex;
    background-color: #ECF1F3;
}
.unique-playbook-resource-grid .mobile-field-group {
    display: none;
}

.unique-playbook-resource-grid .trl-cri-container .trl-cri-item.green-global-button {
    /* background-color:#45A59D;
    border-radius: 10px;
    padding: 20px 30px;
    color: #ffffff;
    font-weight: 700; 
    text-align: center;
    letter-spacing: 1.5px;
    width: fit-content;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1; */
    text-decoration: none;
    min-width:fit-content !important;
}

/* Location and Tags */
.unique-playbook-resource-grid .playbook-location {
    margin-top: 10px;
}

.unique-playbook-resource-grid .playbook-ecosystem-tags {
    margin-top: 10px;
}

/* Column Widths */
.unique-playbook-resource-grid .header-title,
.unique-playbook-resource-grid .item-title {
    width: 18%;
    flex: 0 0 18%;
}

.unique-playbook-resource-grid .column-ecosystem-category {
    width: 18%;
    flex: 0 0 18%;
}

.unique-playbook-resource-grid .column-description {
    width: 27%;
    flex: 0 0 27%;
}

.unique-playbook-resource-grid .selected-category-knowledge-hub .column-description {
    width: 60%;
    flex: 0 0 60%;
}

.unique-playbook-resource-grid .column-support-provided {
    width: 26%;
    flex: 0 0 26%;
}

.unique-playbook-resource-grid .column-funding-database-trl-selection,
.unique-playbook-resource-grid .column-eco-system-trl-selection {
    width: 11%;
    flex: 0 0 11%;
}

/* Filters Section */
.unique-playbook-resource-grid .new-array-filters-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 60px;
}
@media(max-width:1024px){
   .playbook-subcat-knowledge-hub .unique-playbook-resource-grid  .new-array-filters-wrapper {
        margin-bottom: 20px;
    }
}

.unique-playbook-resource-grid .unique-all-filters-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.unique-playbook-resource-grid .unique-resource-filter-item #unique_search {
    background: #fff;
    padding: 15px 20px;
    border-width: 0px;
    height: 100%;
    letter-spacing: 0.15em;
}

.unique-playbook-resource-grid .new-array-filters-wrapper #unique_search::placeholder {
    color: #DAE5E8;
}

/* Table Filter Navigation */
.unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs {
    padding: 15px 20px;
    border: 0px solid var(--playbook-teal);
    border-radius: 3px;
    color: var(--playbook-teal) !important;
    background: white !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    text-transform: uppercase;
    height: auto;
    outline: 0;
    margin-bottom: 0px;
    box-shadow: none;
}

.unique-playbook-resource-grid .new-array-filters-wrapper select.table-filter-navs {
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="%2312A085" d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');
    background-repeat: no-repeat !important;
    background-position: right 26px center !important;
    background-size: 18px 18px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 60px;
    outline: 0;
}

.unique-playbook-resource-grid .new-array-filters-wrapper select.table-filter-navs:hover {
    background: var(--playbook-teal);
    color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');
}

.unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs.active,
.unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs:hover:not(#unique_search) {
    background: var(--playbook-teal) !important;
    color: white !important;
    box-shadow: none;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .unique-filter-group {
    height: 100%;
}
.unique-playbook-resource-grid .desktop-table-cells {
    display: flex;
    width: 100%;
    background-color: #fff;
}
.unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs .arrow svg {
    width: 18px;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs:hover .arrow svg path {
    fill: #fff !important;
}

/* Custom Dropdowns */
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-options,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .custom-multiselect-options,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper.open .custom-select-options {
    display: block;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-option {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .custom-multiselect-options,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper.open .custom-select-options {
    background: var(--playbook-teal) !important;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .custom-multiselect-trigger,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper.open .custom-select-trigger {
    background: var(--playbook-teal) !important;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .custom-option:hover,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper.open .custom-option:hover {
    background: #0165fc;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .selected-text,
.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-wrapper.open .selected-text {
    color: #fff !important;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: white !important;
    cursor: pointer;
    gap: 20px;
}

.unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-wrapper.open .custom-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Sort Button */
.unique-playbook-resource-grid button#sort-title-btn {
    background:#45A59D;
    color: #fff;
    border: none;
    border-radius: 5px;
    /* display: block;
    white-space: nowrap; */
}

/* Pagination */
.unique-playbook-resource-grid .pagination-number.active {
    background-color:#45A59D !important;
    color: white !important;
    font-weight: 600;
}

.unique-playbook-resource-grid .pagination-number:hover {
    background-color:#45A59D !important;
    color: white !important;
    font-weight: 600;
}

/* Knowledge Hub Specific */
.unique-playbook-resource-grid .selected-category-knowledge-hub .playbook-header {
    background: #dae5e8;
}

.unique-playbook-resource-grid .selected-category-knowledge-hub .playbook-results {
    background: #ecf1f3;
}

.unique-playbook-resource-grid .selected-category-knowledge-hub .desktop-table-cells {
    background-color: #ecf1f3;
}
.unique-playbook-resource-grid .desktop-table-cells .playbook-location-desktop,
.unique-playbook-resource-grid .desktop-table-cells.playbook-location{
    margin-top: 10px;
}
/* Footer Fix */
.page-id-4067 footer {
    z-index: 0;
}

/* RESPONSIVE STYLES */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .unique-playbook-resource-grid .new-array-filters-wrapper {
        flex-wrap: wrap;
    }
    .unique-playbook-resource-grid .mobile-field-group {
        display: block;
    }

    .unique-playbook-resource-grid .unique-all-filters-group {
        flex-wrap: wrap;
        display: grid;
        width: fit-content;
    }

    .unique-playbook-resource-grid .unique-resource-filter-item #unique_search {
        height: fit-content;
    }

    .unique-playbook-resource-grid .new-array-filters-wrapper .unique-filter-group {
        height: fit-content;
    }

    .unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-trigger[data-target="array_field_filter_location"] {
        max-width: 400px;
    }

    .unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-trigger,
    .unique-playbook-resource-grid .new-array-filters-wrapper .custom-multiselect-trigger { 
        gap:20px;
        justify-content: center;
    }

}

/* Mobile (max-width: 768px) - RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    /* Hide desktop header on mobile */
    .unique-playbook-resource-grid .playbook-header {
        display: none;
    }
    .unique-playbook-resource-grid .playbook-results {
        gap:20px;
    }
    .unique-playbook-resource-grid .mobile-field-header {
        font-size: 16px;
        font-weight: 700;
        display: block;
        background: #ECF1F3;
        padding: 20px;
    }
    .unique-playbook-resource-grid .playbook-item .mobile-field-group:first-child .mobile-field-header {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .unique-playbook-resource-grid .mobile-field-content {
        padding: 20px;
        font-size:16px;
        background-color: #fff;
        min-height: 76px;
    }
    
    .unique-playbook-resource-grid .selected-category-knowledge-hub .mobile-field-content{
        background-color: #ecf1f3;
    }
    .unique-playbook-resource-grid .playbook-item > .mobile-field-group .mobile-field-header {
        background-color: #dae5e8;
    }
    /* Convert to card layout */
    .unique-playbook-resource-grid .playbook-item {
        flex-direction: column;
    }

    /* Make cells stack vertically */
    .unique-playbook-resource-grid .item-cell {
        display: flex;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        flex: 1 1 100%;
    }

    /* Title becomes card header */
    .unique-playbook-resource-grid .item-title {
        order: -1;
        background: #f8f9fa;
        border-bottom: 2px solid#45A59D;
        margin: -15px -15px 15px -15px;
        padding: 15px;
        border-radius: 8px 8px 0 0;
        width: 100%;
        flex: 1 1 100%;
    }


    /* Add labels before each cell (except title) */
    .unique-playbook-resource-grid .item-cell:not(.item-title):before {
        content: attr(data-label);
        flex: 0 0 120px;
        font-weight: 600;
        color: #333;
        margin-right: 10px;
        font-size: 14px;
    }
    .playbook-item > .mobile-field-group:nth-last-of-type(2) .mobile-field-content {
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 15px;
    }

    .unique-playbook-resource-grid .playbook-item:not(:last-child) {
        border-bottom:0px solid #3C3C3C;
    }

    /* Adjust TRL/CRI for mobile */
    .unique-playbook-resource-grid .trl-cri-container {
        flex-direction: row;
        justify-content:center;
        flex-wrap: wrap;
    }

    .unique-playbook-resource-grid .desktop-table-cells {
        display: none;
    }
    .unique-playbook-resource-grid .selected-category-knowledge-hub .playbook-results {
        background:transparent;
    }

    /* Filters adjustment */
    .unique-playbook-resource-grid .unique-all-filters-group {
        width: 100%;
    }

    .unique-playbook-resource-grid .unique-resource-filter-item,
    .unique-playbook-resource-grid .unique-resource-filter-item #unique_search {
        width: 100%;
    }

    .unique-playbook-resource-grid .new-array-filters-wrapper .custom-select-trigger[data-target="array_field_filter_location"] {
        max-width: 100%;
    }

    /* Remove last cell border */
    .unique-playbook-resource-grid .playbook-item .item-cell:last-child {
        border-bottom: none;
    }

    /* Adjust column widths for mobile */
    .unique-playbook-resource-grid .item-title,
    .unique-playbook-resource-grid .column-ecosystem-category,
    .unique-playbook-resource-grid .column-description,
    .unique-playbook-resource-grid .column-support-provided,
    .unique-playbook-resource-grid .column-funding-database-trl-selection,
    .unique-playbook-resource-grid .column-eco-system-trl-selection {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .unique-playbook-resource-grid .item-cell:not(.item-title):before {
        flex: 0 0 100px;
        font-size: 13px;
    }
    .unique-playbook-resource-grid .new-array-filters-wrapper .table-filter-navs {
        font-size:11px;
    }
}



.playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .column-description,
.playbook-subcat-market-readiness-resources .unique-playbook-resource-grid .column-description,
.playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .column-description,
.playbook-subcat-pilot-planning-guides .unique-playbook-resource-grid .column-description,
.playbook-subcat-technology-matchmaking .unique-playbook-resource-grid .column-description,
.playbook-subcat-regulatory-frameworks .unique-playbook-resource-grid .column-description{
    width: 70%;
    flex: 0 0 70%;
}

.playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title,
.playbook-subcat-market-readiness-resources .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title,
.playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title,
.playbook-subcat-pilot-planning-guides .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title,
.playbook-subcat-technology-matchmaking .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title,
.playbook-subcat-regulatory-frameworks .unique-playbook-resource-grid .playbook-subcat-pilot-and-testing-facilities .unique-playbook-resource-grid .header-title{
    width: 25%;
    flex: 0 0 25%;
}