.jplist .article {
    padding-bottom: 20px;
}

.tags span {
    background-color: #999999;
    display: inline-block;
    padding: 2px 4px;
    font-size: 11.844px;
    font-weight: bold;
    line-height: 14px;
    color: #ffffff;
    vertical-align: baseline;
    white-space: nowrap;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.tags span.jplist-selected {
     background-color: #ff6a00;
}

ul.tags {
    list-style:none;
    margin-left:0;
}

.tags li{
    display:inline-block;
}

@media (min-width: 992px)
{
    .jplist .side-bar {
        float:right;
    }
}

.jplist-hidden {
    display: none;
}


.jplist-panel .pagination {
margin:0;
}


.oembedall-container{

  border:#eee solid 1px;
  padding:3px;
  
}

.jplist-hide-preloader{display:none}
.jplist-preloader{height:30px;line-height:30px;margin:10px 10px 0 0;}

.flexslider li {list-style-type: none;}

.OCListimage {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px -5px rgba(34, 148, 60, 0.15), /* Your green */
    0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.OCListimage:hover {
  box-shadow: 
    0 20px 40px -5px rgba(34, 148, 60, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px) scale(1.01);
}

/* Optional: Add subtle border */
.OCListimage {
  border: 1px solid rgba(34, 148, 60, 0.1);
}

.OCListimage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 148, 60, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.OCListimage:hover::after {
  opacity: 1;
}

.OCListimage:hover {
  outline: 3px solid rgba(34, 148, 60, 0.3);
  outline-offset: 4px;
}

.OCListimage img {
  transition: transform 0.5s ease;
}

.OCListimage:hover img {
  transform: scale(1.05);
}

/* ===================================
   MODERN PAGINATION STYLING
   =================================== */

/* Pagination Panel Container */
.jplist-panel.row {
  margin-top: 50px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Items Per Page Dropdown */
.jplist-items-per-page {
  margin-bottom: 15px;
}

.jplist-items-per-page .btn-primary {
  background: white;
  color: #495057;
  border: 2px solid #e9ecef;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.jplist-items-per-page .btn-primary:hover,
.jplist-items-per-page .btn-primary:focus,
.jplist-items-per-page .btn-primary:active,
.jplist-items-per-page .btn-primary.active {
  background: #22943c !important;
  color: white !important;
  border-color: #22943c !important;
  box-shadow: 0 4px 12px rgba(34, 148, 60, 0.3) !important;
  outline: none !important;
  transform: translateY(-2px);
}

.jplist-items-per-page .btn-primary .caret {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.jplist-items-per-page .btn-primary:hover .caret {
  transform: translateY(2px);
}

.jplist-items-per-page .dropdown-menu {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 160px;
}

.jplist-items-per-page .dropdown-menu li a {
  padding: 10px 20px;
  color: #495057;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 8px;
}

.jplist-items-per-page .dropdown-menu li a:hover {
  background: #22943c;
  color: white;
  transform: translateX(4px);
}

.jplist-items-per-page .dropdown-menu .divider {
  margin: 8px 0;
  border-top: 1px solid #e9ecef;
}

/* Pagination Numbers */
.jplist-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jplist-pagination.pull-left {
  float: none !important;
}

.jplist-pagination li {
  margin: 0;
  list-style: none;
}

.jplist-pagination li a,
.jplist-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: white;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.jplist-pagination li a:hover {
  background: #22943c;
  color: white;
  border-color: #22943c;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(34, 148, 60, 0.3);
}

/* Active Page */
.jplist-pagination li.active a,
.jplist-pagination li.active span {
  background: linear-gradient(135deg, #22943c 0%, #1a7530 100%);
  color: white;
  border-color: #22943c;
  box-shadow: 
    0 4px 12px rgba(34, 148, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: default;
  transform: scale(1.05);
}

.jplist-pagination li.active a:hover {
  transform: scale(1.05);
}

/* Disabled State */
.jplist-pagination li.disabled a,
.jplist-pagination li.disabled span {
  background: #f8f9fa;
  color: #adb5bd;
  border-color: #e9ecef;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.jplist-pagination li.disabled a:hover {
  background: #f8f9fa;
  color: #adb5bd;
  transform: none;
  box-shadow: none;
}

/* First/Last/Prev/Next Buttons */
.jplist-pagination li:first-child a,
.jplist-pagination li:last-child a {
  font-weight: 700;
  min-width: 50px;
}

.jplist-pagination li:first-child a::before {
  content: "«";
  margin-right: 4px;
}

.jplist-pagination li:last-child a::after {
  content: "»";
  margin-left: 4px;
}

/* Ellipsis */
.jplist-pagination li.jplist-ellipsis span {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #6c757d;
  font-weight: 700;
  cursor: default;
}

/* Pagination Info - Modern Card Style */
.jplist-pagination-info {
  background: white;
  border-radius: 12px;
  padding: 18px 24px;
  display: inline-block;
  margin: 0 !important;
  text-align: center;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04);
  border-left: 5px solid #22943c;
  transition: all 0.3s ease;
}

.jplist-pagination-info:hover {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.jplist-pagination-info.pull-left {
  float: none !important;
}

.jplist-pagination-info strong {
  display: block;
  color: #212529;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.jplist-pagination-info small {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Add icon to pagination info (optional) */
.jplist-pagination-info strong::before {
  content: "📄";
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .jplist-panel.row {
    padding: 25px 15px;
  }
  
  .jplist-panel .col-md-9,
  .jplist-panel .col-md-3 {
    width: 100%;
  }
  
  .jplist-panel .col-md-9 {
    margin-bottom: 20px;
  }
  
  .jplist-pagination {
    justify-content: flex-start;
  }
  
  .jplist-pagination-info {
    width: 100%;
    margin-top: 15px !important;
  }
}

@media (max-width: 767px) {
  .jplist-panel.row {
    margin-top: 30px;
    padding: 20px 12px;
  }
  
  .jplist-items-per-page {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .jplist-items-per-page .btn-primary {
    width: 100%;
  }
  
  /* Smaller pagination buttons on mobile */
  .jplist-pagination li a,
  .jplist-pagination li span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }
  
  .jplist-pagination {
    gap: 5px;
  }
  
  .jplist-pagination-info {
    padding: 14px 18px;
  }
  
  .jplist-pagination-info strong {
    font-size: 0.95rem;
  }
  
  .jplist-pagination-info small {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .jplist-pagination li a,
  .jplist-pagination li span {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
  
  /* Hide some page numbers on very small screens */
  .jplist-pagination li:nth-child(n+6):nth-last-child(n+4) {
    display: none;
  }
}

/* Loading Animation */
.jplist-panel.row {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.jplist-pagination li a:focus,
.jplist-items-per-page .btn-primary:focus {
  outline: 3px solid rgba(34, 148, 60, 0.4);
  outline-offset: 2px;
}

/* Optional: Add subtle pattern background */
.jplist-panel.row {
  background-image: 
    linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.01) 10px,
      rgba(0, 0, 0, 0.01) 20px
    );
}

.OCListimage-wrapper {
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.OCListimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
