/* ============ LUGUPSHUP – style ============ */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --navy: #1E4E79;
  --navy-dark: #0D2340;
  --red: #E01B1B;
  --ink: #1B2430;
  --muted: #5B6676;
  --line: #D9E1EA;
  --bg: #F5F8FB;
  --card-bg: #EAF4FD;
  --gold: #E8B53A;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Hind', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-top: 3px solid #2B3440;
  box-shadow: 0 2px 10px rgba(13, 35, 64, .06);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 12px;
}
.logo-link { display: inline-flex; }
.logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}
.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-dark); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px;
}
.brand { text-align: center; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--red);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand-tags {
  margin: 2px 0 0;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; }
.container.narrow { max-width: 720px; }

/* ---------- 3 Section buttons ---------- */
.section-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.section-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 21px);
  box-shadow: 0 6px 16px rgba(13, 35, 64, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.section-tab small { font-family: 'Hind', sans-serif; font-weight: 500; font-size: 13px; opacity: .8; }
.section-tab:hover { transform: translateY(-2px); color: #fff; }
.section-tab.is-active { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Department filter ---------- */
.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: -8px 0 22px;
}
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 6px 16px rgba(13, 35, 64, .08);
}
.filter-heading { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy-dark); }
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-field span { font-size: 14px; font-weight: 700; color: var(--muted); }
.filter-field select {
  width: 100%;
  min-height: 46px; padding: 8px 12px;
  border: 1.5px solid #C3CEDA; border-radius: 10px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.filter-field select:disabled { background: #F1F4F8; color: #8A94A3; }
.filter-field select:focus { outline: 3px solid rgba(30, 78, 121, .25); border-color: var(--navy); }
.filter-actions { display: flex; gap: 10px; }
.filter-actions .btn { flex: 1; min-height: 46px; padding: 8px 16px; }
.filter-actions .btn-clear { background: #fff; color: var(--ink); border: 1.5px solid #C3CEDA; box-shadow: none; }
.filter-actions .btn-clear:hover { color: var(--ink); background: #F1F4F8; }
.title-filter { color: var(--navy); font-weight: 700; }

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  margin: 0 0 16px;
}

/* ---------- Notice cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.notice-card {
  background: var(--card-bg);
  border: 2px solid #CBD5E1;
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 14px rgba(13, 35, 64, .07);
}
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.card-thumb {
  flex-shrink: 0;
  width: 86px; height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-pdf {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px;
  color: #fff; background: var(--red);
  padding: 6px 10px; border-radius: 6px;
}
.card-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--ink);
}
.card-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #B4171B;
}
.card-meta { margin: 0; display: grid; gap: 6px; }
.card-meta div {
  display: grid; grid-template-columns: 96px 1fr; gap: 8px;
  background: #fff; border-radius: 8px; padding: 8px 12px;
}
.card-meta dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-meta dd { margin: 0; font-size: 14px; font-weight: 600; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .02em;
  text-decoration: none; cursor: pointer; color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
.btn:hover { filter: brightness(1.06); color: #fff; }
.btn-orange { background: linear-gradient(90deg, #E07B0C, #F2A20F); }
.btn-orange-soft { background: #fff; color: #B35F00; border: 2px solid #E8A13A; box-shadow: none; }
.btn-orange-soft:hover { color: #8A4700; }
.btn-purple { background: linear-gradient(90deg, #5B3FE0, #9B33E6); }
.btn-wide { grid-column: 1 / -1; }
.btn-primary { background: var(--navy-dark); }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }

/* ---------- Forms ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(13, 35, 64, .06);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title { font-family: 'Poppins', sans-serif; font-size: 22px; margin: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 15px; padding: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=url], .field input[type=date],
.field input[type=password], .field select {
  min-height: 46px; padding: 8px 12px;
  border: 1.5px solid #C3CEDA; border-radius: 10px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.field input[type=file] {
  padding: 10px; border: 1.5px dashed #9FB0C3; border-radius: 10px; background: #F8FAFC; font: inherit;
}
.field input:focus, .field select:focus { outline: 3px solid rgba(30, 78, 121, .25); border-color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #C3CEDA; border-radius: 999px; font-weight: 600;
}
.choice input:checked + span { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(30, 78, 121, .35); }
.link-muted { color: var(--muted); font-weight: 600; }

.hash-box {
  width: 100%; padding: 12px; border-radius: 10px; border: 1.5px solid #C3CEDA;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #F8FAFC; resize: none;
}

/* ---------- Misc ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.alert-success { background: #E6F6EC; color: #146C3A; border: 1px solid #B9E3C8; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pager a {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
.pager a.is-active { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.site-footer { text-align: center; padding: 24px 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); background: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 56px 1fr 0; }
  .logo { width: 52px; height: 52px; }
  .section-tabs { grid-template-columns: 1fr; gap: 10px; }
  .section-tab { min-height: 56px; }
  .grid-2 { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .filter-bar { grid-column: 1 !important; }
  .filter-actions .btn { flex: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
}