/* ══ HERO ══ */
.res-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.res-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.res-hero::after {
  content: "📄";
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 180px; opacity: .05;
  line-height: 1; pointer-events: none; user-select: none;
}
.res-hero-inner { position: relative; z-index: 1; }
.res-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 30px; margin-bottom: 14px;
}
.res-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.res-hero h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.res-hero p.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.78);
  max-width: 580px; line-height: 1.65; margin-bottom: 20px;
}
.res-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.res-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.res-chip i { color: rgba(255,255,255,.7); font-size: 14px; }

/* ══ MAIN ══ */
.res-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ CONTENT CARD ══ */
.res-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden; margin-bottom: 20px;
}
.res-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.res-card-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.res-card-header-text h3 {
  font-size: 1.15rem; font-weight: 900;
  color: rgba(11,18,32,.9); margin-bottom: 2px;
}
.res-card-header-text p {
  font-size: 13px; color: rgba(11,18,32,.45); margin: 0;
}
.res-card-body { padding: 24px 28px 28px; }
.res-intro {
  font-size: 1rem; color: rgba(11,18,32,.6);
  line-height: 1.75; margin-bottom: 20px;
}

/* ══ SEARCH BAR ══ */
.res-search-wrap { position: relative; margin-bottom: 24px; }
.res-search-wrap i.search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #1578be; font-size: 15px;
  pointer-events: none; z-index: 2;
}
.res-search-wrap input {
  width: 100%; padding: 13px 160px 13px 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(21,120,190,.2);
  background: #fff; font-size: 14px;
  color: rgba(11,18,32,.8);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.res-search-wrap input:focus {
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
}
.res-search-wrap input::placeholder { color: rgba(11,18,32,.35); }
.res-search-btn {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: opacity .2s;
  min-width: 100px; justify-content: center;
}
.res-search-btn:hover { opacity: .88; }
.res-search-btn .btn-text { transition: opacity .2s; }
.res-search-btn .btn-spinner { display: none; }
.res-search-btn.loading .btn-text { display: none; }
.res-search-btn.loading .btn-spinner { display: inline-flex; align-items: center; gap: 6px; }

/* ══ SEARCH RESULTS PANEL ══ */
#searchResultsPanel {
  display: none;
  animation: resFadeIn .3s ease;
}
#searchResultsPanel.show { display: block; }

/* results header bar */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.results-bar-left {
  display: flex; align-items: center; gap: 10px;
}
.results-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.16);
  border-radius: 30px; padding: 5px 14px;
  font-size: 13px; font-weight: 700; color: #1578be;
}
.results-query {
  font-size: 13px; color: rgba(11,18,32,.48); font-style: italic;
}
.results-clear-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 30px;
  border: 1.5px solid rgba(212,0,0,.2);
  background: rgba(212,0,0,.05);
  color: #d40000; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .18s, border-color .18s;
}
.results-clear-btn:hover {
  background: rgba(212,0,0,.1);
  border-color: rgba(212,0,0,.35);
}

/* inline column filters */
.res-filter-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}
.res-filter-row input {
  width: 100%; padding: 8px 12px; border-radius: 9px;
  border: 1.5px solid rgba(21,120,190,.18);
  font-size: 13px; color: rgba(11,18,32,.75);
  outline: none; background: #fff;
  transition: border-color .2s;
}
.res-filter-row input:focus { border-color: #1578be; }
.res-filter-row input::placeholder { color: rgba(11,18,32,.32); }

/* ══ PUBLICATION ROW ══ */
.pub-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(11,18,32,.06);
  background: #fff; margin-bottom: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.pub-row:last-child { margin-bottom: 0; }
.pub-row:hover {
  box-shadow: 0 4px 18px rgba(21,120,190,.1);
  border-color: rgba(21,120,190,.2);
}

/* cover thumbnail */
.pub-cover {
  width: 52px; height: 68px; flex: 0 0 52px;
  border-radius: 6px; overflow: hidden;
  border: 1.5px solid rgba(11,18,32,.08);
  background: linear-gradient(135deg, rgba(21,120,190,.08), rgba(11,61,110,.06));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); flex-shrink: 0;
}
.pub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-cover .cover-fallback {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; width: 100%; height: 100%; padding: 6px;
}
.pub-cover .cover-fallback i { font-size: 22px; color: #1578be; opacity: .7; }
.pub-cover .cover-fallback span {
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #1578be; opacity: .6;
}

.pub-row-meta { flex: 1; min-width: 0; }
.pub-row-meta .pub-name {
  font-size: .98rem; font-weight: 700;
  color: rgba(11,18,32,.82); margin-bottom: 4px;
  line-height: 1.4;
}
.pub-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pub-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.14);
  color: #1578be;
}
.dl-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 30px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.18);
  color: #1578be; font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .18s, color .18s, border-color .18s;
}
.dl-link:hover {
  background: #1578be; color: #fff;
  border-color: transparent; text-decoration: none;
}

/* empty state */
.res-empty {
  text-align: center; padding: 48px 0;
  color: rgba(11,18,32,.35);
}
.res-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.res-empty p { font-size: 15px; margin: 0; }

/* skeleton loader */
.pub-skeleton {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(11,18,32,.06);
  background: #fff; margin-bottom: 10px;
}
.skeleton-cover {
  width: 52px; height: 68px; flex: 0 0 52px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e8f5 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e8f5 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.tag { width: 30%; height: 10px; }
.skeleton-btn {
  width: 90px; height: 34px; border-radius: 30px; flex-shrink: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e8f5 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══ ACCORDION ══ */
.res-accordion {
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: res-counter;
}
.res-acc-item {
  background: #fff; border-radius: 14px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  overflow: hidden; transition: box-shadow .22s, border-color .22s;
}
.res-acc-item:hover {
  box-shadow: 0 6px 24px rgba(21,120,190,.1);
  border-color: rgba(21,120,190,.2);
}
.res-acc-item.open {
  border-color: rgba(21,120,190,.3);
  box-shadow: 0 8px 28px rgba(21,120,190,.12);
}
.res-acc-question {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; user-select: none;
}
.res-acc-num {
  counter-increment: res-counter;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 9px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #1578be;
  transition: background .22s, color .22s, border-color .22s;
}
.res-acc-num::before { content: counter(res-counter, decimal-leading-zero); }
.res-acc-item.open .res-acc-num {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent; color: #fff;
}
.res-acc-title {
  flex: 1; font-size: 1.05rem; font-weight: 700;
  color: rgba(11,18,32,.88); line-height: 1.4;
  margin: 0; transition: color .2s;
}
.res-acc-item.open .res-acc-title { color: #1578be; }
.res-acc-toggle {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.15);
  display: flex; align-items: center; justify-content: center;
  color: #1578be; font-size: 13px;
  transition: background .22s, transform .3s, color .22s, border-color .22s;
}
.res-acc-item.open .res-acc-toggle {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent; color: #fff; transform: rotate(45deg);
}
.res-acc-body {
  display: none; padding: 0 20px 20px 66px;
  animation: resFadeIn .3s ease;
}
.res-acc-body.show { display: block; }
@keyframes resFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ YEAR TABS ══ */
.year-tab-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.year-tab-btn {
  padding: 6px 16px; border-radius: 30px;
  border: 1.5px solid rgba(21,120,190,.2);
  background: #fff; color: rgba(11,18,32,.7);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.year-tab-btn:hover {
  background: rgba(21,120,190,.07);
  border-color: rgba(21,120,190,.35); color: #1578be;
}
.year-tab-btn.active {
  background: linear-gradient(135deg, #1578be, #0b3d6e);
  border-color: transparent; color: #fff;
}
.year-panel { display: none; }
.year-panel.show { display: block; animation: resFadeIn .3s ease; }
.year-section-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.year-section-label .line { flex: 1; height: 1px; background: rgba(11,18,32,.08); }
.year-section-label span {
  font-size: 11px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; color: rgba(11,18,32,.38); white-space: nowrap;
}

/* ══ QUICK LINKS ══ */
.ql-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden; position: sticky; top: 80px;
}
.ql-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0b3d6e, #1578be);
  position: relative; overflow: hidden;
}
.ql-header::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.ql-header h4 { font-size: 16px; font-weight: 900; color: #fff; margin: 0; position: relative; z-index: 1; }
.ql-header p { font-size: 13px; color: rgba(255,255,255,.65); margin: 4px 0 0; position: relative; z-index: 1; }
.ql-body { padding: 12px 14px; }
.ql-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px;
  text-decoration: none; color: rgba(11,18,32,.78);
  font-size: 14px; font-weight: 600; line-height: 1.35;
  transition: background .18s, color .18s, gap .18s;
  border-bottom: 1px solid rgba(11,18,32,.05);
}
.ql-item:last-child { border-bottom: none; }
.ql-item:hover { background: rgba(21,120,190,.07); color: #1578be; gap: 13px; text-decoration: none; }
.ql-icon {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  background: rgba(21,120,190,.08); border: 1px solid rgba(21,120,190,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #1578be;
  transition: background .18s, color .18s, border-color .18s;
}
.ql-item:hover .ql-icon { background: #1578be; color: #fff; border-color: transparent; }
.ql-arrow { margin-left: auto; font-size: 11px; color: rgba(11,18,32,.25); transition: color .18s, transform .18s; }
.ql-item:hover .ql-arrow { color: #1578be; transform: translateX(3px); }
.ql-contact {
  margin: 8px 14px 14px;
  background: linear-gradient(135deg, rgba(21,120,190,.08), rgba(212,0,0,.06));
  border: 1px solid rgba(21,120,190,.15);
  border-radius: 12px; padding: 14px; text-align: center;
}
.ql-contact p { font-size: 13.5px; color: rgba(11,18,32,.6); margin-bottom: 10px; line-height: 1.5; }
.ql-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 30px;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff; font-size: 13px; font-weight: 800;
  text-decoration: none; transition: opacity .2s, transform .2s;
}
.ql-contact a:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

@media (max-width: 768px) {
  .res-card-body { padding: 18px 16px 22px; }
  .res-acc-body { padding: 0 16px 18px 16px; }
  .res-filter-row { grid-template-columns: 1fr; }
  .pub-row-meta .pub-name { white-space: normal; }
  .ql-card { position: static; }
}