.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;
}
.playlist-list h3 {
    font-size: 20px;
    padding-left: 25px;
    padding-right: 25px;
    text-transform: uppercase;
    color: #676767;
}
.playlist-videos {
    flex: 3;           
    padding: 25px;
    background: #fff;
}
.playlist-videos h3{
    font-size: 30px;
    margin-bottom: 20px;
}
.playlist-grid{
    margin-top: 25px;
}
.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 {
    background-color: #f5faff;
    border-left: 4px solid #043c6d;
    box-shadow: none;
}
.playlist-item.active h4{
    color: #043c6d;
}
/* 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: #28b1c6;
  box-shadow: 0 0 0 2px rgba(40, 177, 198, 0.2);
}

.search-key-wrapper {
  position: relative;
}

.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,
.document-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.document-item .right-content{
    margin-left: 15px;
    width: calc(100% - 70px);
}

.document-item .right-content h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    display: block;
}
/* 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: #1976d2;
  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: 50px;
  color: #28b1c6;
}

.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: #28b1c6;
    color: #fff;
    padding: 7px 25px;
    border-radius: 0;
    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 #ddd;
}
.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%;
    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;
  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 Free";
    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,
.document-item{
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  border: 1px solid #ddd;
}
.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: 50px;
}

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