/*body:not(.et-tb) #main-content .resource-library-block .container { padding: 0; }*/
.new-resource-library.video-banner.et_pb_section_0 {
    height: 460px;
    min-height: 460px;
}
.et_pb_section_0.new-resource-library.video-banner::after {
  display:none;
}
.resource-library-block {
    padding: 40px 0 60px 0;
}
.resource-library-block .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.resource-library-wrap .search-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 63px;
    gap: 0;
}

.resource-library-wrap .search-container {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 4px;
    -webkit-box-shadow: 0 2px 20px 2px rgba(0,0,0,0.4);
    box-shadow: 0 2px 20px 2px rgba(0,0,0,0.4);
    overflow: hidden;
    max-width: 559px;
    width: 100%;
    justify-content: space-between;
}

.resource-library-wrap .search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.resource-library-block .resource-library-wrap input[type="text"]:not(#recaptcha_response_field) {
    width: calc(100% - 135px);
    padding: 17px 0 17px 66px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 20px;
    line-height: 28px;
    color: #989898;
    outline: none;
    background-color: #fff;
    background-image: url(../images/search-icon.svg);
    background-repeat: no-repeat;
    background-position: 8% center;
}
.resource-library-block .resource-library-wrap input[type="submit"] {
    margin: 0 8px 0 0;
    font-size: 20px;
    line-height: 28px;
    text-transform: capitalize;
    padding: 10px 29px;
    border-radius: 4px;
    background-color: #C21735;
    color: #ffffff;
    font-weight: 500;
}

.search-input::placeholder {
    color: #989898;
    font-size: 20px;
    line-height: 28px;
}

.search-btn {
    background-color: #c53030;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #b02a2a;
}

.resource-library-wrap .main-content {
    display: flex;
    gap: 110px;
}

.resource-library-wrap .sidebar {
    width: 230px;
    height: fit-content;
}

.resource-library-wrap .filter-section {
    margin-bottom: 50px;
    margin-top: 0;
}

.filter-title {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
    line-height: 28px;
    color: #000;
}

.filter-title:hover {
    color: #c53030;
}

.filter-title .arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
     transform: rotate(180deg);
}

.filter-title.collapsed .arrow {
    transform: rotate(0deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: fit-content;
    opacity: 1;
    width: 97%;
}

.filter-options.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.filter-section.collapsed {
    margin-bottom: 4px;
}

.filter-option {
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    line-height: 26px;
    color: #000000;
    margin: 0 0 6px 0;
    cursor: pointer;
    padding: 0 0 0 35px;
    position: relative;
}
.view-icon {
    height: 20px;
    display: inline-block;
}

.filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 8px 0 0;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: 0;
    top: 4px;
}

.filter-option input[type="checkbox"]:hover {
    border-color: #c21735;
}

.filter-option input[type="checkbox"]:checked {
    background-color: #c21735;
    border-color: #c21735;
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 49%;
    left: 55%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.filter-option input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 48, 48, 0.2);
}

.filter-option:hover input[type="checkbox"] {
    border-color: #c53030;
}

.reset-filters {
    color: #c53030;
    text-decoration: none;
    font-weight: 900;
    font-size: 24px;
    line-height: 28px;
}

.content-area {
    flex: 1;
    padding: 7px 0 0 0;
}

.content-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 32px;
    line-height: 28px;
    color: #000;
    font-weight: 900;
    padding: 0 0 14px 0;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.view-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.view-icon svg {
    cursor: pointer;
}

.view-icon svg:hover path {
    fill: #C21735;
}
.view-icon.active svg path {
    fill: #C21735;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 28px;
    color: #000000;
    font-weight: 500;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 0fr));
    gap: 24px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.resources-container.resources-grid .resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.resource-card.list-view {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    padding: 0;
    background-color: transparent;
    border-bottom: 1px solid #EFEFEF;
    box-shadow: none;
}

.resource-card.list-view .resource-preview {
    width: 40px;
    height: 52px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 0;
}
.resource-card.list-view .resource-type {
    display: inline-block;
    vertical-align: middle;
}

.resource-card.list-view .resource-meta {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 32px;
}

.resource-card.list-view .preview-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

.preview-image.document-icon.video-icon {
    background-color: transparent;
    border: 0;
}

.resource-card.list-view .resource-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-card.list-view .resource-info {
    flex: 1;
    padding: 0 30px 0 0;
}

.resource-card.list-view h3 {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0;
}
.resource-card.list-view .resource-meta .resource-type:last-child {
    display: none;
}
.resource-type.list-view-pdf, .resource-type.list-view-pdf-size {
    display: none;
}
.resources-container.resources-list .resource-type.list-view-pdf-size {
    display: flex;
    justify-content: flex-end;
    margin: 5px 0 0 0;
}
.resources-container.resources-list .resource-type.list-view-pdf {
    margin-right: 32px;
}
.resources-container.resources-list .resource-type {
    display: inline-block;
    vertical-align: middle;
}

.resource-card.list-view .resource-meta {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #666;
    display: none;
}

.resource-card.list-view .resource-meta .resource-type {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource-card.list-view .file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
    font-size: 13px;
    color: #666;
}

.resource-card.list-view .download-btn,
.resource-card.list-view .watch-btn {
    width: 120px;
    padding: 8px 10px;
}

.document-icon {
    width: 40px;
    height: 50px;
    background: #f8f9fa;
    /*border: 1px solid #e9ecef;
    border-radius: 4px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
}

.video-icon {
    background: #000;
    color: white;
}

.resource-preview {
    width: 100%;
    height: 144px;
    background: #F1F1F1;
    border-radius: 4px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 14px 0;
}
.resources-container.resources-grid .resource-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 0;
}
.resource-content {
    padding: 16px;
}

.preview-image {
    width: 100%;
    height: 100%;
    background: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.video-preview {
    background: #000;
    color: white;
    position: relative;
}

.resource-info h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 11px;
    color: #000000;
}
.resource-info {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.resource-info .resource-info-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.resources-list .resource-info .resource-info-bottom {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 9px;
    font-size: 12px;
    color: #666;
}

.resource-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
.resource-type span {
    color: #919191;
    font-size: 16px;
    line-height: 28px;
}

.download-btn, .watch-btn {
    width: 100%;
    padding: 4px;
    border: none;
    border-radius: 4px;
    line-height: 28px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-transform: capitalize;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    letter-spacing: 1px;
}
.download-btn img, .watch-btn img {
    margin:-3px 9px 0 0;
    display: inline-block;
    vertical-align: middle;
}

.download-btn {
    background-color: #c53030;
    color: white;
}
.download-btn:hover {
    background-color: #000000;
}
.watch-btn {
    background-color: #c53030;
    color: white;
}
.download-btn:hover {
    background-color: #000000;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: white;
    cursor: pointer;
    font-size: 14px;
}
.page-number.next-btn svg {
    transform: rotate(-90deg);
}
.page-number.prev-btn svg {
    transform: rotate(90deg);
}
.page-number.next-btn:hover svg path {
    fill: #ffffff;
}
.page-number:hover {
    background: #c53030;
    color: white;
}

.page-number.active {
    background: #c53030;
    color: white;
}

.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}
.icon img {
    display: inline-block;
    vertical-align: top;
}
.no-result-found-wrap {
    text-align: center;
}

.no-result-found-wrap p {
    text-align: left;
    font-size: 32px;
    line-height: 44px;
    color: #989898;
}

/* ===== SORT DROPDOWN CSS START ===== */
.sort-dropdown {
    position: relative;
    cursor: pointer;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sort-trigger:hover {
    color: #C21735;
}
.sort-trigger:hover svg path {
    fill: #C21735;
}

.sort-arrow {
    transition: transform 0.3s ease;
}

.sort-dropdown.active .sort-arrow {
    transform: rotate(180deg);
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-dropdown.active .sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.sort-option span {
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    font-weight: 500;
}

.sort-option:hover {
    background-color: #C21735;
    color: #fff;
}
.sort-option:hover span {
    color: #fff;
}

.sort-option:last-child {
    border-bottom: none;
}
.sort-option.active {
    background-color: #C21735;
}
.sort-option.active span {
    color: #fff;
}
/* ===== SORT DROPDOWN CSS END ===== */

/*Responsive Css Start Here*/
@media only screen and (max-width: 991px) {
    .filter-option { font-size: 16px; line-height: 22px; }
    .resource-library-wrap .filter-section { margin-bottom: 5px; }
    .filter-title { font-size: 20px; line-height: 22px; }
    .resource-library-wrap .main-content { gap: 40px; }
    .resource-library-wrap .sidebar { width: 200px; }
    .resource-card.list-view h3 { line-height:24px; margin-bottom: 5px; }
    .resource-library-block .container { padding: 0 10px; }
    .resources-grid { grid-template-columns: repeat(auto-fit, minmax(242px, 1fr)); } 
}

/* Tablet Styles */
@media only screen and (max-width: 767px) {
    .resources-grid { grid-template-columns: repeat(auto-fit, minmax(242px, 1fr)); } 
    .resource-library-block .container {
        padding: 0 15px;
    }
    
    .resource-library-wrap .search-header {
        margin-bottom: 40px;
    }
    .resource-card.list-view .resource-info {
        padding: 0 15px 0 0;
    }
    .resource-library-wrap .search-container {
        max-width: 100%;
        flex-direction: column;
        gap: 10px;
        border-radius: 0;
    }
    
    .resource-library-block .resource-library-wrap input[type="text"]:not(#recaptcha_response_field) {
        width: 100%;
        padding: 15px 0 15px 50px;
        font-size: 16px;
        line-height: 24px;
        border-radius: 8px;
        background-position: 15px center;
    }
    
    .resource-library-block .resource-library-wrap input[type="submit"] {
        width: 100%;
        margin: 0;
        font-size: 16px;
        line-height: 24px;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .search-input::placeholder {
        font-size: 16px;
        line-height: 24px;
    }
    
    .resource-library-wrap .main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .resource-library-wrap .sidebar {
        width: 100%;
        order: 1;
    }
    .preview-image img {
        width: 100%;
        object-fit: contain;
        height: 140px;
    }
    .content-area {
        order: 2;
        padding: 0;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .content-header h2 {
        font-size: 24px;
        line-height: 28px;
        padding: 0;
    }
    
    .view-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .view-icons {
        gap: 20px;
    }
    
    .sort-control {
        font-size: 16px;
        line-height: 22px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .filter-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 12px;
    }
    
    .filter-option {
        font-size: 14px;
        line-height: 20px;
        gap: 10px;
        padding: 0 0 0 25px;
    }
    
    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        top: 2px;
    }
    
    .reset-filters {
        font-size: 18px;
        line-height: 24px;
    }
    
    .resource-info h3 {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    
    .resource-type span {
        font-size: 14px;
        line-height: 24px;
    }
    
    .download-btn, .watch-btn {
        font-size: 12px;
        line-height: 24px;
        padding: 8px 12px;
    }
    
    .download-btn img, .watch-btn img {
        margin: -2px 6px 0 0;
    }
    
    .no-result-found-wrap p {
        font-size: 20px;
        line-height: 28px;
    }
    .sort-dropdown.active .sort-options {
        left: inherit;
        right: 0;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 480px) {
    
    .resource-library-block .container {
        padding: 0 15px;
    }
    
    .resource-library-wrap .search-header {
        margin-bottom: 30px;
    }
    
    .resource-library-block .resource-library-wrap input[type="text"]:not(#recaptcha_response_field) {
        padding: 12px 0 12px 45px;
        font-size: 14px;
        line-height: 20px;
        background-position: 12px center;
    }
    
    .resource-library-block .resource-library-wrap input[type="submit"] {
        font-size: 14px;
        line-height: 20px;
        padding: 12px 16px;
    }
    
    .search-input::placeholder {
        font-size: 14px;
        line-height: 20px;
    }
    
    .resource-library-wrap .main-content {
        gap: 20px;
    }
    
    .content-header h2 {
        font-size: 20px;
        line-height: 24px;
    }
    
    .view-controls {
        align-items: flex-start;
        gap: 15px;
    }
    .preview-image img {
        height: 100px;
    }
    
    .view-icons {
        gap: 15px;
    }
    
    .sort-control {
        font-size: 14px;
        line-height: 18px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-preview {
        height: 120px;
        object-fit: cover;
    }
    
    .resource-content {
        padding: 8px 12px 10px 12px;
    }
    
    .filter-title {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 10px;
    }
    
    .filter-option {
        font-size: 12px;
        line-height: 18px;
        gap: 8px;
        margin: 0 0 4px 0;
    }
    
    .filter-option input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .reset-filters {
        font-size: 16px;
        line-height: 20px;
    }
    
    .resource-info h3 {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 6px;
    }
    
    .resource-meta {
        gap: 10px;
        margin-bottom: 6px;
        font-size: 11px;
    }
    
    .download-btn img, .watch-btn img {
        margin: -1px 4px 0 0;
        width: 12px;
        height: 12px;
    }
    
    .no-result-found-wrap p {
        font-size: 16px;
        line-height: 22px;
    }
    
    .pagination {
        gap: 8px;
        margin-top: 20px;
    }
    
    .page-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* List view adjustments for mobile */
    .resource-card.list-view {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .resource-card.list-view .resource-preview {
        width: 30px;
        height: 40px;
    }
    
    .resource-card.list-view h3 {
        font-size: 13px;
        line-height: 18px;
    }
    
    .resource-card.list-view .resource-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .resource-card.list-view .download-btn,
    .resource-card.list-view .watch-btn {
        width: 100%;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Extra Small Mobile Styles */
@media only screen and (max-width: 320px) {
    .resource-library-wrap .search-header {
        margin-bottom: 25px;
    }
    
    .resource-library-block .resource-library-wrap input[type="text"]:not(#recaptcha_response_field) {
        padding: 10px 0 10px 40px;
        font-size: 13px;
        line-height: 18px;
    }
    
    .resource-library-block .resource-library-wrap input[type="submit"] {
        font-size: 13px;
        line-height: 18px;
        padding: 10px 14px;
    }
    
    .search-input::placeholder {
        font-size: 13px;
        line-height: 18px;
    }
    
    .content-header h2 {
        font-size: 18px;
        line-height: 22px;
    }
    
    
    .no-result-found-wrap p {
        font-size: 14px;
        line-height: 18px;
    }
}

/* Landscape Mobile Styles */
@media only screen and (max-width: 768px) and (orientation: landscape) {
    .resource-library-wrap .main-content {
        flex-direction: row;
        gap: 20px;
    }
    
    .resource-library-wrap .sidebar {
        width: 200px;
        order: 1;
    }
    
    .content-area {
        order: 2;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .resource-library-block .resource-library-wrap input[type="text"]:not(#recaptcha_response_field) {
        background-size: 20px 20px;
    }
}

/* New Industry & Application Filters */
.select-industry-first,
.no-terms {
    font-size: 13px;
    color: #666;
    font-style: italic;
    padding: 8px 0;
    margin: 0;
}

/* Resources Loader */
.resources-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.resources-loader .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.resources-loader p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}