.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: left;
  font-size: 14px;
}

/* 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: 30px;
  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: 55px;
  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 .vendor-image img {
  width: 100%;
  height: 100%;
  max-height: 65px;
  object-fit: contain;
}

.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;
}

.playlist-grid .no-results {
  padding: 25px 30px;
}

.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 */
.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;
}

.new-design-wrap .document-grid {
  grid-template-columns: repeat(3, 1fr);
}

.new-design-wrap .document-grid .document-item {
  flex-direction: row;
  text-align: left;
  align-items: center;
}

.new-design-wrap .document-item .right-content {
  flex-direction: row;
  align-items: center;
}

.new-design-wrap .document-item .right-content h4 {
  min-height: auto;
  margin-bottom: 0;
  width: calc(100% - 95px);
  margin-right: 10px;
}

.new-design-wrap .document-item .doc-actions {
  margin-top: 0;
  width: 100px;
}

.new-design-wrap .document-item .icon i {
  font-size: 30px;
}

/* Video Item Styles */
.video-thumbnail,
.training-video-thumb {
  margin-bottom: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-thumbnail img,
.training-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.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: 35px;
  color: #2DBDB6;
}

.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.75);
  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;
}

.rs-top-header.document-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;

  gap: 12px;
  margin-bottom: 32px;
  align-items: stretch;
}

.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%;
}

.vendor-search-bar .vendor-nationwide-bar .vendor-nationwide-btn {
  height: 55px;
  min-height: 55px;
  border-radius: 6px;
}

body .select2-container--default .select2-results__option--selected {
  font-size: 14px !important;
}

.vendor-search-bar .select2-container .select2-search--inline .select2-search__field {
  margin-left: 0 !important;
}

.vendor-search-bar .select2-container--default .select2-selection--multiple {
  border-radius: 6px;
}

.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 & PDF viewer */
.doc-viewer-body {
  flex: 1;
  overflow: hidden;
  background: #525659;
  position: relative;
}

#doc-viewer-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.pdf-viewer-wrap {
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.pdf-pages-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.pdf-page-canvas {
  max-width: 100%;
  height: auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  background: #ffffff;
}

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

#doc-viewer-content iframe img {
  margin-right: 0 !important;
  width: 100% !important;
}

.training-video-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  border-top: none;
  margin: 18px 0;
  padding: 20px;
  background: #f2f4f6;
  border-radius: 6px;
}

.training-video-title {
  margin: 0 0 15px;
  grid-column: 1 / -1;
  font-size: 18px;
}

.training-docs-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-items: flex-start;
  margin-left: 30px;
}

.training-doc-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  /* align-items: center; */
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 10px;
  border: 1px solid #edf0f5;
}

.training-doc-item .col p {
  margin: 0;
  color: #1A1F2B;
  line-height: 1.1;
}

.training-doc-title {
  margin: 0 25px 0 0px;
  width: calc(100% - 30px);
}

.training-doc-icon {
  width: 30px;
  height: 30px;
  margin-top: 1px;
}

.training-doc-item .doc-actions {
  margin-top: 0;
  width: 155px;
}

/* ===============================
   DOCUMENT VIEWER WATERMARK
================================ */
.doc-viewer-body {
  position: relative;
  overflow: hidden;
}

.doc-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  color: rgba(0, 0, 0, 0.20);
  font-size: 5rem;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 10px;
  transform: rotate(-30deg);
  white-space: nowrap;
  user-select: none;
}

.doc-watermark span {
  font-size: 1em;
  vertical-align: super;
  color: rgba(0, 0, 0, 0.20);
  font-weight: 600;
  margin-left: 1px;
}

@media print {
  .doc-watermark {
    display: none !important;
  }
}

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

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

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

/* ===============================
   FEED CARD (News + Videos combined)
================================ */
.dashboard-hero-image {
  flex: 50%;
}

.feed-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #edf0f5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.feed-card-row {
  display: flex;
  flex-direction: row;
}

.feed-card-col {
  flex: 1;
  min-width: 0;
}

.feed-card-news {
  border-right: 1px solid #e9ecef;
  flex: 1.2;
}

.feed-card-news:only-child {
  border-right: none;
}

.feed-card-video-col {
  flex: 1;
  border-right: 1px solid #e9ecef;
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b2434;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
}

.feed-card-header i {
  font-size: 18px;
  color: #2DBDB6;
}

.feed-card-items {
  display: flex;
  flex-direction: column;
}

/* --- News Items (text only) --- */
.feed-card-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 20px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.feed-card-item:last-child {
  border-bottom: none;
}

.feed-card-item:hover {
  background: #f8fcfc;
}

.feed-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  position: relative;
  padding-left: 12px;
}

.feed-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2DBDB6;
}

.feed-card-date {
  font-size: 12px;
  font-weight: 400;
  color: #787878;
  letter-spacing: 0;
  margin-left: 12px;
}

.feed-card-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  margin-left: 12px;
}

.feed-card-empty {
  padding: 24px 20px;
  color: #8e9aab;
  font-size: 13px;
  text-align: center;
}

/* --- Welcome Video (iframe) --- */
.feed-card-video-wrap {
  padding: 12px;
}

.feed-card-video-wrap h5 {
  font-size: 15px;
  margin: 0;
}

.welcome-video-player {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  margin-bottom: 10px;
}

.welcome-video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  font-weight: 600;
}

.welcome-video-placeholder i {
  font-size: 34px;
  color: #fff;
}

.welcome-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.welcome-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Responsive: stack columns on small screens --- */
@media (max-width: 900px) {
  .feed-card-row {
    flex-direction: column;
  }

  .feed-card-news {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }

  .feed-card {
    width: 100%;
  }
}

/* =================== Responsive =================== */
@media (min-width: 1600px) {

  .video-thumbnail,
  .training-video-thumb {
    height: 210px;
  }

  .playlist-list {
    max-width: 400px;
  }
}

@media (min-width: 1920px) {

  .video-thumbnail,
  .training-video-thumb {
    height: 240px;
  }
}

@media (min-width: 1920px) {

  .video-thumbnail,
  .training-video-thumb {
    height: 300px;
  }
}

@media (min-width: 2400px) {

  .video-thumbnail,
  .training-video-thumb {
    height: 450px;
  }
}

@media (max-width: 1400px) {
  .vendor-search-bar>.col {
    flex: 0 0 calc(33.333% - 8px);
  }

  .search-btn-col {
    display: flex;
    gap: 10px;
  }

  .search-btn-col button {
    flex: 1;
  }

  .video-thumbnail,
  .training-video-thumb {
    height: 230px;
  }

}

@media (min-width:768px) and (max-width: 1300px) {
  .playlist-thumbnail {
    width: 45px;
    height: 45px;
  }

  .rs-playlist-content {
    width: calc(100% - 45px);
  }

  .training-video-row {
    display: block;
  }

  .playlist-videos {
    flex: 1;
  }
}

@media (max-width: 1300px) {
  .training-docs-right {
    margin-left: 0;
    margin-top: 15px;
  }
}

@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);
  }

  .new-design-wrap .document-grid .document-item,
  .new-design-wrap .document-item .right-content {
    flex-direction: column;
  }

  .new-design-wrap .document-item .right-content h4 {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .rs-top-header.document-filters {
    grid-template-columns: 1fr 1fr;
  }

  .training-doc-title {
    width: calc(100% - 200px);
  }

  .vendor-grid {
    grid-template-columns: repeat(2, 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,
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-design-wrap .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-modal .close {
    position: fixed;
    top: 16px;
    top: calc(16px + env(safe-area-inset-top));
    right: 20px;
    right: calc(20px + env(safe-area-inset-right));
    z-index: 100000;
  }

}

@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;
  }

  .playlist-videos {
    padding: 16px;
  }

  .training-video-row {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .training-doc-item {
    display: flex;
    flex-wrap: wrap;
  }

  .training-doc-title {
    width: calc(100% - 235px);
  }

  .rs-top-header.table-filters {
    flex-direction: row;
  }

  .new-design-wrap .document-item .doc-actions {
    width: 125px;
  }
}

/* Mobile */
@media (max-width: 640px) {

  .video-grid,
  .collection-grid,
  .vendor-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .rs-top-header {
    flex-direction: column;
  }

  .new-design-wrap .document-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .doc-watermark {
    font-size: 4rem;
    letter-spacing: 0px;
  }

  .doc-view-btn {
    max-width: 170px;
    margin: 0 auto;
  }

  .training-doc-title {
    margin: 0;
    width: calc(100% - 60px);
  }

  .video-modal .modal-content {
    height: 85vh !important;
    margin: 2% auto !important;
  }

  .video-modal .close {
    position: fixed;
    top: 10px;
    top: calc(10px + env(safe-area-inset-top));
    right: 15px;
    right: calc(15px + env(safe-area-inset-right));
    width: 40px;
    height: 40px;
    font-size: 22px;
    z-index: 100000;
  }

  .video-modal .nav-button {
    width: 40px;
    height: 40px;
  }

}

@media (max-width: 480px) {

  .document-category-buttons,
  .vendor-category-buttons {
    grid-template-columns: 1fr;
  }

  .rs-top-header.table-filters {
    flex-direction: column;
  }

  .rs-top-header.table-filters .search-key-wrapper {
    width: 100%;
  }

  .doc-watermark {
    font-size: 2.7rem;
  }

}