/* ═══════════════════════════════════════════════════════════════════
   LWANGA DISTRICT RESOURCES PAGE
   Adapts the reference Downloads-page layout to Lasalle Lwanga
   branding: navy #0a2357 / blue #124b98 / gold #fd9f01,
   Playfair Display (headings) + Inter (body) — same palette as
   phocadownload-style.css so the two feel like one system.
   ═══════════════════════════════════════════════════════════════════ */

.ll-lr-page {
  font-family: 'Inter', sans-serif;
  background: #fbfaf7;
  color: #333;
}

/* Hero band */
.ll-lr-hero {
  background: linear-gradient(135deg, #0a2357 0%, #124b98 100%);
  color: #fff;
  text-align: center;
  padding: 56px 24px 48px;
}
.ll-lr-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff; /* explicit — HOMECONT's global "h1{color:#124b98}" rule
                  would otherwise override the inherited white text here */
}
.ll-lr-hero p {
  font-size: 16px;
  color: #d0ddf4;
  max-width: 560px;
  margin: 0 auto;
}

/* Intro */
.ll-lr-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px 8px;
}
.ll-lr-intro h2 {
  font-family: 'Playfair Display', serif;
  color: #0a2357;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
}
.ll-lr-rule {
  width: 64px;
  height: 3px;
  background: #fd9f01;
  margin: 0 auto 20px;
}
.ll-lr-intro p {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

/* Section cards */
.ll-lr-sections {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ll-lr-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(18, 75, 152, .08);
}

/* Applied briefly while an AJAX year-filter/pagination fetch for this
   card is in flight. Deliberately no visual change (no dimming/fade)
   per request — just a functional click-guard against double
   submits while the fetch is in progress. */
.ll-lr-card.ll-lr-loading {
  pointer-events: none;
}

.ll-lr-card-head {
  background: #0a2357;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.ll-lr-card-icon { font-size: 20px; line-height: 1; }
.ll-lr-card-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex: 0 0 auto;
}
.ll-lr-count {
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ll-lr-year-filter { margin-left: auto; }
.ll-lr-year-filter select {
  background: #fff;
  color: #0a2357;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.ll-lr-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.ll-lr-card-body { padding: 8px 24px 4px; }
.ll-lr-empty { color: #888; padding: 20px 0; font-size: 14px; }

/* Auto-shown to Super Users only, directly under "No documents
   available" — never visible to regular site visitors. */
.ll-lr-admin-diag {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #fff8e6;
  border: 1px dashed #e0b84a;
  border-radius: 10px;
  font-size: 12.5px;
  color: #6b5710;
  line-height: 1.6;
}
.ll-lr-admin-diag ul { margin: 8px 0; padding-left: 20px; }
.ll-lr-admin-diag li { margin-bottom: 2px; }

.ll-lr-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eef1f8;
}
.ll-lr-doc:last-child { border-bottom: none; }

.ll-lr-doc-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ll-lr-doc-info { flex: 1 1 auto; min-width: 0; }
.ll-lr-doc-title {
  display: block;
  font-weight: 700;
  color: #0a2357;
  font-size: 15px;
  margin-bottom: 4px;
  text-decoration: none;
}
.ll-lr-doc-title:hover { color: #124b98; text-decoration: underline; }
.ll-lr-doc-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #888;
  font-size: 12.5px;
}

/* The form itself is just a layout shim around the real button below —
   it carries no visual styling of its own. */
.ll-lr-download-form { flex: 0 0 auto; margin: 0; }

.ll-lr-download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #124b98;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s ease;
}
.ll-lr-download-btn:hover { background: #fd9f01; color: #0a2357 !important; }

.ll-lr-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 20px;
}
.ll-lr-page-btn {
  color: #124b98;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  border: 1.5px solid #e0dfd9;
  border-radius: 20px;
  padding: 7px 16px;
}
.ll-lr-page-btn:hover { background: #f4f7fd; text-decoration: none; }

/* Institute Resources CTA */
.ll-lr-institute-cta {
  max-width: 620px;
  margin: 0 auto 72px;
  text-align: center;
  background: #f4f7fd;
  border: 1px solid #e0e8f7;
  border-radius: 14px;
  padding: 32px 28px;
  color: #124b98;
}
.ll-lr-institute-cta svg { color: #fd9f01; margin-bottom: 10px; }
.ll-lr-institute-cta p { color: #333; font-size: 15px; margin: 0 0 18px; }
.ll-lr-institute-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a2357;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 28px;
  text-decoration: none !important;
}
.ll-lr-institute-btn:hover { background: #124b98; }

@media (max-width: 640px) {
  .ll-lr-hero { padding: 40px 18px 34px; }
  .ll-lr-hero h1 { font-size: 30px; }
  .ll-lr-sections { padding: 0 16px 48px; }
  .ll-lr-card-head { padding: 16px 18px; }
  .ll-lr-year-filter { margin-left: 0; flex-basis: 100%; }
  .ll-lr-card-body { padding: 4px 18px 0; }
  .ll-lr-doc { flex-wrap: wrap; }
  .ll-lr-download-btn { margin-left: 62px; }
}
