@charset "UTF-8";
/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Variables
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Search Bar
/*-----------------------------------------------------------------------------------*/
.rl-search-section {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.rl-search-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #d0dde8;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.rl-search-input:focus {
  border-color: #36526f;
}
.rl-search-input::placeholder {
  color: #7a9fba;
}

.rl-search-btn {
  padding: 8px 18px;
  background: #36526f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.rl-search-btn:hover {
  background: #253d52;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Filter Row (SP-style)
/*-----------------------------------------------------------------------------------*/
.rl-filters-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.rl-filter {
  padding: 8px 12px;
  border: 1px solid #d0dde8;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  min-width: 150px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #fff;
}
.rl-filter:focus {
  border-color: #36526f;
  outline: none;
}

.rl-reset-btn {
  padding: 8px 14px;
  background: #f0f4f8;
  border: 1px solid #d0dde8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: background 0.2s, border-color 0.2s;
}
.rl-reset-btn:hover {
  background: #eef6ff;
  border-color: #36526f;
}

/* Grid / List toggle buttons */
.rl-layout-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.rl-layout-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0dde8;
  border-radius: 4px;
  background: #fff;
  color: #7a9fba;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rl-layout-btn.is-current, .rl-layout-btn:hover {
  color: #36526f;
  border-color: #36526f;
  background: #eef6ff;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Results Grid
/*-----------------------------------------------------------------------------------*/
.library-container {
  display: flex;
  flex-wrap: wrap;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Card (Grid layout)
/*-----------------------------------------------------------------------------------*/
/* The card itself is the <a> — reset link styles */
.rl-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #dde6ef;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.rl-card:hover .rl-card-btn {
  background: #253d52;
}

/* Image — position: relative so the icon can be centered over it */
.rl-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}
.rl-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Body — centered title */
.rl-card-body {
  padding: 12px 14px;
  flex: 1;
}

.rl-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a2b3c;
  text-align: left;
}

/* Footer — action span styled as button */
.rl-card-footer {
  padding: 10px 14px;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: center;
}

.rl-card-btn {
  display: inline-block;
  padding: 6px 18px;
  background: #36526f;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
  white-space: nowrap;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Card (List layout)
/*-----------------------------------------------------------------------------------*/
/* List card: also an <a> — row layout */
.rl-card--list {
  flex-direction: row;
  align-items: center;
  border-radius: 6px;
  height: auto;
}
.rl-card--list .rl-card-title {
  font-size: 15px;
  text-align: left;
}

.rl-card-list-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
}
.rl-card-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rl-card-list-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.rl-card-list-meta {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Type Icon (centered over featured image)
/*-----------------------------------------------------------------------------------*/
/* Base: absolutely centered over the image wrapper */
.rl-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* List: smaller circle over the thumb */
  /* Secondary + Third are light backgrounds — flip icon to dark so it reads clearly */
}
.rl-type-icon--sm {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.rl-type-icon.resource-type--link, .rl-type-icon.resource-type--video {
  color: #36526f;
}

/* Type colors — Primary / Secondary / Third */
.resource-type--file {
  background-color: #ebffda;
}

.resource-type--link {
  background-color: #eef6ff;
}

.resource-type--video {
  background-color: #ffebd0;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Loading Spinner
/*-----------------------------------------------------------------------------------*/
.rl-loading {
  display: none;
  width: 100%;
  padding: 56px 0;
  align-items: center;
  justify-content: center;
}
.rl-loading.is-active {
  display: flex;
}

.rl-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #eef6ff;
  border-top-color: #36526f;
  border-radius: 50%;
  animation: rl-spin 0.75s linear infinite;
}

@keyframes rl-spin {
  to {
    transform: rotate(360deg);
  }
}
/*-----------------------------------------------------------------------------------*/
/*  Resource Library — "No results" message
/*-----------------------------------------------------------------------------------*/
.no-resources {
  padding: 2rem;
  color: #777;
  width: 100%;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Pagination (SP style)
/*-----------------------------------------------------------------------------------*/
.rl-pagination {
  margin-top: 24px;
  text-align: center;
}
.rl-pagination .pagination-list {
  justify-content: center;
}
.rl-pagination .pagination-link {
  cursor: pointer;
  border: 1px solid #d0dde8;
  background: #fff;
  color: #333;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.rl-pagination .pagination-link:hover {
  background: #36526f;
  color: #fff;
  border-color: #36526f;
}
.rl-pagination .pagination-link.is-current {
  background: #36526f;
  border-color: #36526f;
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.rl-pagination .pagination-previous,
.rl-pagination .pagination-next {
  cursor: pointer;
  border: 1px solid #d0dde8;
  background: #fff;
  transition: background 0.15s, color 0.15s;
}
.rl-pagination .pagination-previous:hover,
.rl-pagination .pagination-next:hover {
  background: #eef6ff;
  border-color: #36526f;
}
.rl-pagination .pagination-previous[disabled],
.rl-pagination .pagination-next[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Legacy selector — kept for backward compat */
.pagination .pagination-link.is-current {
  background-color: #36526f;
  color: #fff;
}

/*-----------------------------------------------------------------------------------*/
/*  Resource Library — Responsive
/*-----------------------------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  .rl-filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .rl-filter,
.rl-reset-btn {
    min-width: 0;
    width: 100%;
  }

  .rl-layout-toggle {
    margin-left: 0;
    justify-content: flex-end;
  }

  /* List card stacks on mobile */
  .rl-card--list {
    flex-direction: column;
    align-items: stretch;
  }

  .rl-card-list-thumb {
    width: 100%;
    height: 160px;
  }

  .rl-card-list-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
.resource--list .rl-card-list-thumb {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/*# sourceMappingURL=resources.css.map */
