/* =====================================================
   RESOURCES SECTION
===================================================== */

.resources-section {
  background: #fff;
}

/* =====================================================
   RESOURCES HERO (FLOATING HEADER SAFE)
===================================================== */

.resources-hero {
  position: relative;
  padding-top: 140px; /* pushes content below floating navbar */
  padding-bottom: 80px;
  background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.resources-hero-content h1 {
  font-size: 2.6rem;
}

.resources-hero-content p {
  max-width: 620px;
  margin: 0 auto;
}

.resource-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-6px);
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.resource-content {
  padding: 18px;
}

.resource-content h5 {
  font-weight: 600;
  margin-bottom: 8px;
}

.resource-content p {
  font-size: 0.95rem;
  color: #666;
}

/* =====================================================
   SKELETON LOADER
===================================================== */

.skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  z-index: 1;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =====================================================
   LAZY LOADING
===================================================== */

.lazy-load-iframe {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.lazy-load-iframe.loaded {
  opacity: 1;
}

/* =====================================================
   PAGINATION
===================================================== */

.pagination {
  gap: 0.5rem;
}

.pagination .page-link {
  color: rgb(25, 25, 112);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: rgba(25, 25, 112, 0.1);
  border-color: rgb(25, 25, 112);
  color: rgb(25, 25, 112);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background-color: rgb(25, 25, 112);
  border-color: rgb(25, 25, 112);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(25, 25, 112, 0.3);
}

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
  font-size: 1.2rem;
  padding: 0.5rem 0.875rem;
}


