.resource-tabs {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.rs-tabs-nav {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  margin: 0;
  padding: 0;
}

.rs-tabs-nav .tab-link {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #5F6B7A;
  transition: all 0.3s ease;
  position: relative;
  list-style-type: none;
}

.rs-tabs-nav .tab-link:hover {
  background: #e9ecef;
  color: #495057;
}

.rs-tabs-nav .tab-link.active {
  background: #fff;
  color: #2DBDB6;
  border-bottom: 3px solid #2DBDB6;
}

.rs-top-header {
  display: flex;
  justify-content: flex-start;
   align-items: stretch;
  margin-bottom: 0;
}

.rs-top-header>.col {
  margin-right: 0;
  margin-bottom: 0;
}
.rs-top-header .state-filter-group{
  flex: 1;
}
.rs-top-header .search-key-wrapper{
   flex: 1.8;
}
body .rs-top-header select {
  cursor: pointer;
}

body .rs-top-header input,
body .rs-top-header select,
body .vendor-search-bar select,
body .vendor-search-bar input {
  max-width: 100%;
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #D9DEE3;
  height: 55px;
  font-size: 15px;
  color: #1A1F2B;
}
body .vendor-search-bar select,
body .vendor-search-bar input {
  padding-left: 35px;
}
body .select2-container .select2-selection{
  border: 2px solid #D9DEE3;
  font-size: 15px;
  min-height: 55px;
  padding: 10px;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice{
  font-size: 12px;
}
.training-workflow-filters,
.vide-collection{
    gap: 15px;
}
.rs-top-header.training-workflow-filters .search-key-wrapper,
.rs-top-header.vide-collection .search-key-wrapper{
    flex: 1;
}
.rs-top-header.table-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}
.rs-top-header.table-filters .search-key-wrapper {
    flex: auto;
}

/* No Results Message */
.no-results {
  text-align: center;
  color: #5F6B7A;
  font-size: 16px;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

/* Vendor Search bar */
.page-header {
  text-align: center;
}

.page-header h1 {
  line-height: 1;
}
#dashboard-content h1{
  font-size: 45px;
  margin-bottom: 4px;
}
.page-header p {
  margin-top: 0;
  margin-bottom: 30px;
}

.vendor-search-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.vendor-search-bar > .col{
  flex: 1;
  position: relative;
}
.vendor-search-bar > .col.full-width {
  width: 100%;
}
.vendor-search-bar > .col.search-btn-col{
  flex: none;
}
.col.search-btn-col{
  display: flex;
  gap: 10px;
}
.col.search-btn-col button{
    width: 55px;
    min-width: 55px;
    height: 55px;
    padding: 0;
    border-radius: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.col.search-btn-col button.v-reset-btn{
    background: #0B2434;
}
.search-filters .fusion-button {
  max-width: 200px;
  flex: auto;
}
.vendor-search-bar > .col .icon {
    position: absolute;
    width: 30px;
    /* height: 45px; */
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1;
    
}
.vendor-search-bar > .col .icon i {
    font-size: 14px;
    color: #1A1F2B;
    margin-left: 10px;
}
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vendor-card {
  background: #fff;
  border: 2px solid #D9DEE3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.vendor-grid .no-vendors-msg {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin: 40px 0;
}
.vendor-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.vendor-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vendor-card-info {
  padding: 14px;
}

.vendor-card-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.vendor-card-info .business-name {
  margin: 0 0 4px;
  font-size: 13px;
  color: #6b7280;
}

.vendor-card-info .location {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}
body .vendor-search-bar textarea.select2-search__field{
  margin-left: 25px!important;
}
.playlist-layout {
    display: flex;
    flex-wrap: nowrap;  
    gap: 20px;
    margin-top: 30px;
}

.playlist-list {
    flex: 1;
    max-width: 300px;
    border-right: none;
    padding: 25px 0;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #D9DEE3;
}
.playlist-list h3 {
    font-size: 16px;
    padding-left: 25px;
    padding-right: 25px;
    text-transform: uppercase;
    color: #676767;
}
.playlist-videos {
    flex: 3;           
    padding: 25px;
    background: #fff;
    border: 2px solid #D9DEE3;
    border-radius: 10px;
}
.playlist-videos h3{
    font-size: 22px;
    margin-bottom: 20px;
}
.playlist-grid{
    margin-top: 18px;
}
.resource-item.playlist-item {
    display: flex;
    align-items: center; 
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer; 
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease, border-left 0.2s ease, box-shadow 0.2s ease, padding-left 0.2s ease; 
}

.playlist-thumbnail {
    width: 70px;
    height: 70px;
}

.playlist-thumbnail img {
    max-width: 100%;
    width: 100%; 
    height: 100%;
    object-fit: contain;
}
.rs-playlist-content {
    width: calc(100% - 85px);
}
.playlist-grid .rs-playlist-content h4{
    margin: 0 0 2px 0;
    font-size: 18px;
}
.playlist-item.active {
    color: #1fa39c;
    background-color: #E1F6F5;
    border-left: 4px solid #1fa39c;
    box-shadow: none;
}
.playlist-item.active h4{
    color: #1fa39c;
}
/* Search and Filter Styles */
.collections-filter,
.filter-group {
  margin-bottom: 15px;
}

.collections-filter label,
.filter-group label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #2DBDB6;
  box-shadow: 0 0 0 2px rgba(40, 177, 198, 0.2);
}

.search-key-wrapper,
.search-box-wrapper {
  position: relative;
}
.search-box-wrapper{
  display: flex;
  width: 100%;
  max-width: 590px;
  margin: 50px auto auto;
}
.search-box-wrapper .search-input-field{
  flex-grow: 1;
}
.search-box-wrapper .search-buttons{
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
}
.search-box-wrapper .search-buttons button {
  background: transparent;
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: #2DBDB6;
}
.search-box-wrapper .search-input-field input{
      padding-right: 40px;
}
/* .clear-search-btn {
  margin-left: 0;
  padding: 8px;
  background: transparent;
  color: #6c757d;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  font-size: 20px;
  transition: background 0.3s ease;
} */

/* Results Grid */
.resource-results {
  margin-top: 30px;
}
.video-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.document-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.document-grid .document-item{
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid #D9DEE3;
    border-radius: 10px;
}
.document-item .right-content{
    display: flex;
    flex-direction: column;
    flex: 1;
}
.document-item .right-content h4 {
    margin: 0 0 12px;
    font-size: 15px;
    min-height: 47px;
    line-height: 1.3;
    display: block;
    color: #1A1F2B;
}
.document-item .doc-actions,
.vendor-card-inner .vendor-actions{
    margin-top: auto;
}
/* Video Item Styles */
.video-thumbnail {
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumbnail {
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.rs-video-content h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #212529;
}

.video-meta {
  margin-bottom: 10px;
}

.video-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-tag {
  background: #e3f2fd;
  color: #2DBDB6;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bbdefb;
}

.video-excerpt {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

/* Document Item Styles */
.document-item .icon i {
    font-size: 40px;
    color: #1A1F2B;
}

.document-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-tag {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #c8e6c9;
}

.document-excerpt {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.document-actions {
  display: flex;
  justify-content: flex-end;
}

.download-btn {
    background: #2DBDB6;
    color: #fff;
    padding: 7px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.3s ease;
}

.download-btn:hover {
  background: #116a78;
  color: #fff;
  text-decoration: none;
}

.collection-back-btn {
    cursor: pointer;
    color: #3d3d3d;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 30px;
}
.video-item {
    position: relative;
    cursor: pointer;
    background-color: #fff;
}
.video-item .rs-video-content {
    padding: 15px;
    margin-bottom: 0;
    border: 1px solid #D9DEE3;
}
.video-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}
.video-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}
.video-modal .modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: transparent;
}
.video-modal .close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  opacity: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  background: rgba(0,0,0,0.65);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.08);
}
.video-modal .close:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-1px);
}
.video-modal .close:focus {
  outline: 3px solid rgba(255,255,255,0.18);
  outline-offset: 2px;
}
.video-modal .close.pulse {
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
  50% { box-shadow: 0 10px 28px rgba(0,0,0,0.55); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
}

.video-modal .video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}
.video-modal .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.video-modal .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-modal .nav-button:hover {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.05);
}
.video-modal .nav-button::before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    content: "\f053"; 
}

.video-modal .next-button::before {
    content: "\f054"; 
}
.video-modal .prev-button {
    left: 20px;
}

.video-modal .next-button {
    right: 20px;
}
.collection-item{
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  border: 2px solid #D9DEE3;
  border-radius: 10px;
}
.collection-item .collection-thumbnail{
    width: 100px;
    height: 100px;
}
#table-results .collection-item .collection-thumbnail {
  width: 70px;
  height: 70px;
}
.collection-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.collection-item .rs-collection-content {
    width: calc(100% - 115px);
    padding: 0;
}
.collection-item .rs-collection-content  h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.collection-item .rs-collection-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}
.document-filters {
  gap: 15px;
  margin-top: 0;
}

.document-filters .filter-group {
  margin-bottom: 0;
}
/* #table-results .category-videos h4{
    font-size: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
} */
/* #table-results .category-videos .document-item .right-content h4{
    font-size: 22px;
    margin: 0 0 10px 0;
} */
.document-category-buttons,
.vendor-category-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.vendor-nationwide-bar{
    width: 100%;
}

.document-category-buttons button,
.vendor-category-buttons button,
.vendor-nationwide-btn {
    background: #fff;
    border: 2px solid #D9DEE3;
    padding: 15px 20px;
    min-height: 60px;
    font-size: 15px;
    color: #1A1F2B;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: left;
}
.vendor-cat-icon-wrapper{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.vendor-cat-icon-wrapper img{
    max-width: 100%;
    max-height: 100%;
}
.vendor-nationwide-bar .vendor-nationwide-btn{
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.document-category-buttons button.active,
.vendor-category-buttons button.active,
.vendor-nationwide-btn.active {
    background-color: #E1F6F5;
    border-color: #1FA39C;
    color: #1FA39C;
}
.cat-icon{
    max-width: 20px;
    margin-right: 10px;
}
.document-category-buttons button.active img,
.vendor-category-buttons button.active img,
.vendor-nationwide-btn.active img{
    filter: brightness(0) saturate(100%) invert(54%) sepia(62%) saturate(463%) hue-rotate(127deg) brightness(92%) contrast(88%);

}
/* =================== Document Viewer Modal =================== */

.doc-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-viewer-modal {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.doc-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
    flex-shrink: 0;
}

.doc-viewer-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.doc-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-viewer-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    transition: color 0.2s;
}

.doc-viewer-close:hover {
    color: #000;
}

/* iframe */
.doc-viewer-body {
    flex: 1;
    overflow: hidden;
    background: #f0f0f0;
}

#doc-viewer-content > div.ose-embedpress-responsive,
#doc-viewer-content > div.ose-embedpress-responsive iframe {
    width: 100%!important;
    height: 100%!important;
    max-height: 100%!important;
}

/* =================== Document Card Actions =================== */
.doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.doc-view-btn {
    width: 100%;
    padding: 7px 18px;
    background: #2DBDB6;
    border: 2px solid #2DBDB6;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

.doc-view-btn:hover {
    background: #1FA39C;
    color: #fff;
}

/* =================== Responsive =================== */

@media (min-width:768px) and (max-width: 1300px) {
  .playlist-thumbnail {
      width: 45px;
      height: 45px;
  }
  .rs-playlist-content {
    width: calc(100% - 45px);
  }
}
@media (max-width: 1200px) {
  .playlist-grid .rs-playlist-content h4{
      font-size: 15px;
  }
  .resource-item.playlist-item{
    padding: 10px 15px;
    margin-bottom: 2px;
  }
  .video-modal .modal-content{
    height: 450px;
  }
  .document-grid{
      grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
    .document-category-buttons,
    .vendor-category-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    .playlist-layout{
        flex-direction: column;
    }
    .playlist-list{
      max-width: 100%;
    }
    .document-category-buttons,
    .vendor-category-buttons,
    .video-grid, 
    .collection-grid,
    .vendor-grid,
    .document-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .doc-viewer-modal {
        width: 96%;
        height: 90vh;
    }

    .doc-viewer-title {
        font-size: 13px;
        max-width: 50%;
    }

    .doc-actions {
        flex-wrap: wrap;
    }
    .vendor-card-inner{
      flex-direction: column;
    }
    .vendor-card-inner .vendor-info{
      width: 100%;
    }
    .vendor-search-bar > .col{
      flex: auto;
    }
    .document-category-buttons,
    .vendor-category-buttons{
       grid-template-columns: 1fr 1fr;
    }
}
/* Mobile */
@media (max-width: 640px) {
    .video-grid, 
    .collection-grid,
    .vendor-grid,
    .document-grid{
        grid-template-columns: 1fr;
    }
    .rs-top-header{
        flex-direction: column;
    }

}
@media (max-width: 480px) {
    .document-category-buttons,
    .vendor-category-buttons{
       grid-template-columns: 1fr;
    }
}
