.white-section { padding: 1.25rem 0; background: #f4f5fb;margin-bottom: 1.5rem; }
.white-section h1 { font-size: 2.8rem; font-weight: 700; color: #0052CC; }
/* Filters */
.btn-filter {
  border-radius: 20px; font-size: 0.8rem;
  padding: 5px 16px;
  border: 1.5px solid #d0d3f0;
  background: #fff; color: #555;
  cursor: pointer; transition: all .15s;
}
.btn-filter:hover  { border-color: #0052CC; color: #0052CC; }
.btn-filter.active { background: #0052CC; color: #fff; border-color: #0052CC; }
/* Search */
.search-wrap { position: relative; max-width: 360px; margin-left: auto; }
.search-wrap input {
  border-radius: 30px;
  border: 1.5px solid #d0d3f0;
  padding: 10px 44px 10px 18px;
  font-size: 0.88rem;
  background: #fff;
  width: 100%;
  outline: none;
  color: #333;
  transition: border-color .15s;
}
.search-wrap input:focus { border-color: #0052CC; }
.search-wrap .search-icon {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #0052CC; font-size: 1rem; pointer-events: none;
}

/* Cards */
.paper-card {
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  height: 100%;
  cursor: pointer;
}
.paper-card:hover {
  box-shadow: 0 4px 8px rgba(76,68,212,.1);
  border: 0.5px solid #0052CC;
}
.card-thumb {
  height: 180px;
  background: #eceeff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-thumb .bg-label {
  position: absolute; font-size: 5rem; font-weight: 800;
  color: #0052CC;  letter-spacing: -2px; user-select: none;
}
.card-thumb .thumb-icon { font-size: 3rem; position: relative; z-index: 1; }
.card-body-inner { padding: 1.2rem 1.3rem 1.4rem; }
.card-type-label,
.related-type {
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: #888; margin-bottom: 8px;
  display: inline-block;
    background-color: #f5f5f5;
    padding: 2px 10px;
    border-radius: 4px;
    border: 0.5px solid #ccc;
}
.card-title-text, .related-title{
  font-size: 1.125rem; font-weight: 600; color: #0052CC;
  line-height: 1.4; margin-bottom: 8px;white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc-text {
  font-size: 0.82rem; color: #555; line-height: 1.6; margin-bottom: 14px;display: -webkit-box;
  -webkit-line-clamp: 2;   /* change number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.learn-more-link {
  font-size: 0.85rem; font-weight: 600;
  color: #0052CC; text-decoration: none;
}
.learn-more-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center; padding: 4rem 0;
  color: #aaa; font-size: 0.9rem;
}
.paper-card-link,
.related-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.paper-card-link:hover,
.related-card-link:hover {
  color: inherit;
  text-decoration: none;
}
/* whitepapers */
.card-thumb {
  position: relative;
  overflow: hidden;
}
.card-title-text,
.related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-date {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.related-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.related-date {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.logo-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border: 4px solid rgba(0, 82, 204, 0.18);
  border-top-color: #0052CC;
  border-radius: 50%;
  animation: logoSpin 0.8s linear infinite;
  z-index: 3;
}

.card-thumb .bg-label,
.card-thumb .thumb-icon,
.card-thumb .thumb-icon-img {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-thumb.is-loaded .logo-spinner {
  opacity: 0;
  visibility: hidden;
}

.card-thumb.is-loaded .bg-label,
.card-thumb.is-loaded .thumb-icon,
.card-thumb.is-loaded .thumb-icon-img {
  opacity: 1;
}
/* Content */
.detail-subtitle {
  font-size: 1.15rem; font-weight: 700;
  color: #0052CC; margin-bottom: 12px;
}
.detail-body { font-size: 0.9rem; color: #444; line-height: 1.75; }
.detail-body ul { padding-left: 1.2rem; margin-top: 12px; }
.detail-body ul li { margin-bottom: 4px; }
.detail-body p{line-height: 24px;}

/* Download card */
.download-card {
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 24px;
  text-align: center;
}
.download-card .related-thumb{border-top-left-radius: 10px!important; border-top-right-radius: 10px!important;}
.download-card h6 { font-weight: 700; font-size: 1rem; color: #0052CC; margin-bottom: 10px; margin-top: 20px; }
.download-card p  { font-size: 0.82rem; color: #777; margin-bottom: 1.2rem; }
.btn-download {
  background: #0052CC; color: #fff;
  border: none; border-radius: 30px;
  padding: 10px 22px; font-size: 0.88rem;
  font-weight: 600; width: 100%;
  text-decoration: none; display: block;
  text-align: center; transition: background .15s;
}
.btn-download:hover { background: #0d6efd; color: #fff; }
.particle{display: none;visibility: hidden;}
/* Related cards */
.related-card {
  background: #fff; 
  border: 0.5px solid #ccc;
  border-radius: 10px; 
  overflow: hidden;
  transition: box-shadow .2s; cursor: pointer;
  height: 100%;
}
.related-thumb {
  position: relative;
  height: 220px;
  background: #f0f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-bg-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052CC;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.related-thumb-icon {
  position: relative;
  z-index: 1;
  font-size: 42px;
  line-height: 1;
}
.related-card:hover { box-shadow: 0 6px 20px rgba(76,68,212,.1); border: 0.5px solid #0052CC;}
.related-thumb {
  height: 180px; background: #eceeff;
  display: flex; align-items: center;
  justify-content: center; font-size: 2.2rem;
}

.related-body { padding: 1rem 1.1rem 1.2rem; }


.related-link  { font-size: 0.82rem; font-weight: 600; color: #0052CC; text-decoration: none; }
.related-link:hover { text-decoration: underline; }

.section-title {
  font-size: 1.3rem; font-weight: 700;
  color: #0052CC; margin-bottom: 1.2rem;
}
.view-more-link {
  font-size: 0.85rem; font-weight: 600;
  color: #0052CC; text-decoration: none;
}
.view-more-link:hover { text-decoration: underline; }
.back-link {
  font-size: 0.82rem; color: #0052CC;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 4px; margin-bottom: 1rem;
}
.back-link:hover { text-decoration: underline; }
.js-sticky-paper {
  position: sticky;
  top: 220px;
  transition: all 1.9s ease;
}
.detail-hero {
  padding: 5rem 0;
  margin-bottom: 2.5rem;
}
.detail-hero .type-label {
  font-size: 22px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: #0052CC;
}
.pdf-preview-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  max-height: 300px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdf-preview-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.pdf-preview-wrap .logo-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border: 4px solid rgba(0, 82, 204, 0.18);
  border-top-color: #0052CC;
  border-radius: 50%;
  animation: logoSpin 0.8s linear infinite;
  z-index: 5;
}
.card-date,
.related-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #595959;
  white-space: nowrap;
}

.card-date-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.75;
}
.pdf-preview-wrap.is-loaded .logo-spinner {
  opacity: 0;
  visibility: hidden;
}

.pdf-preview-wrap.is-loaded .pdf-preview-img {
  opacity: 1;
}


@keyframes logoSpin {
  to {
    transform: rotate(360deg);
  }
}

