/* BRACU Resources */

:root {
  --ink: #17163a;
  --muted: #5a5980;
  --page: #f5f4fb;
  --line: #e6e4f2;
  --hero: #211a5c;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero);
  padding: 72px 24px 120px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: bold;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* four segments, one per resource color */
.bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.bar i { width: 44px; height: 5px; border-radius: 3px; }
.bar i:nth-child(1) { background: #7b86ff; }
.bar i:nth-child(2) { background: #2ec4a9; }
.bar i:nth-child(3) { background: #ff5c93; }
.bar i:nth-child(4) { background: #ffb020; }

/* ---------- List ---------- */
.list {
  max-width: 900px;
  margin: -64px auto 0;
  padding: 0 20px 72px;
  display: grid;
  gap: 20px;
}

/* per-resource colors */
.c1 { --accent: #4752c4; --tint: #eceeff; }
.c2 { --accent: #0b7a6b; --tint: #e3f5f1; }
.c3 { --accent: #c2255c; --tint: #fdebf2; }
.c4 { --accent: #b45f06; --tint: #fff0dc; }

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(23, 22, 58, 0.07);
}

.info { padding: 22px 20px 22px 22px; }

.head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
}

.desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3d1;
  color: #6b4300;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
}
.notice::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b45f06;
  color: #fff;
  font-size: 12px;
}

/* ---------- Links panel ---------- */
.links {
  margin: 0;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--tint);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.links > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
}
.links > div + div { border-top: 1px solid rgba(23, 22, 58, 0.09); }

dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

a,
a:visited {
  color: var(--accent);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color 0.15s;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .hero { padding: 56px 20px 104px; }
  .list { padding: 0 14px 48px; }
  .card { grid-template-columns: minmax(0, 1fr); }
  .info { padding: 18px 14px 14px; }
  .links { padding: 6px 16px; }
  .links > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
}
