/* ==========================================================================
   BORA — Bangladesh Open Research Academy
   Shared stylesheet. Static, dependency-free.
   ========================================================================== */

:root {
  --green-900: #0b3d2c;
  --green-800: #10513a;
  --green-700: #16684a;
  --green-600: #1e7f5c;
  --green-100: #e6f2ec;
  --green-050: #f2f8f5;

  --red-600: #c1272d;
  --red-500: #d94a4a;
  --red-050: #fdf0f0;

  --ink-900: #12171a;
  --ink-700: #333d44;
  --ink-500: #5c6a72;
  --ink-300: #93a1a8;
  --line: #dfe6e3;

  --paper: #ffffff;
  --paper-2: #f7faf8;
  --paper-3: #eef4f1;

  --amber-050: #fff8e6;
  --amber-600: #a4700a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(18, 23, 26, .06), 0 2px 8px rgba(18, 23, 26, .05);
  --shadow-2: 0 6px 22px rgba(11, 61, 44, .10);

  --wrap: 1140px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 1.05em; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 3px;
}

img { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-900); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}


/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: linear-gradient(140deg, var(--green-700), var(--green-900) 60%, var(--red-600));
  color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--ink-900); font-size: 1.06rem; letter-spacing: -.02em; }
.brand-sub { font-size: .705rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .5rem .7rem; cursor: pointer;
  font-size: 1.1rem; color: var(--ink-900);
}

.site-nav ul {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-nav a {
  display: block; padding: .5rem .62rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--green-050); color: var(--green-900); }
.site-nav a[aria-current="page"] { color: var(--green-800); background: var(--green-100); }
.nav-cta a,
a.nav-cta {
  background: var(--green-800); color: #fff !important; padding: .55rem .95rem;
}
.nav-cta a:hover, a.nav-cta:hover { background: var(--green-900); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 999px;
  font-weight: 650; font-size: .96rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: .16s ease;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-accent { background: var(--red-600); color: #fff; }
.btn-accent:hover { background: #9d1f24; color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-ghost:hover { background: var(--green-050); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-050); color: var(--green-900); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

/* ---------------------------------------------------------------- sections */
section { padding: 4.2rem 0; }
.section-tint { background: var(--paper-2); }
.section-deep {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: #dcece4;
}
.section-deep h2, .section-deep h3, .section-deep h1 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--green-700); margin-bottom: .7rem;
}
.section-deep .eyebrow { color: #8fd6b6; }
.lede { font-size: 1.11rem; color: var(--ink-500); max-width: 62ch; }
.section-deep .lede { color: #bcd8cb; }
.section-head { max-width: 70ch; margin-bottom: 2.2rem; }
.center { text-align: center; }
.center .lede, .center .section-head { margin-inline: auto; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(30,127,92,.16), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(193,39,45,.10), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 4.6rem 0 4.2rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5rem; }
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 1.22rem; color: var(--green-800); margin-bottom: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-facts { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-facts div strong { display: block; font-size: 1.55rem; color: var(--green-900); font-weight: 800; }
.hero-facts div span { font-size: .82rem; color: var(--ink-500); }

.page-hero {
  background:
    radial-gradient(760px 340px at 8% -20%, rgba(30,127,92,.14), transparent 62%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 2.9rem;
}
.page-hero h1 { margin-bottom: .35rem; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.3rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-100); color: var(--green-800);
  font-weight: 800; margin-bottom: .9rem; font-size: .95rem;
}
.card-accent { border-top: 3px solid var(--green-700); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); transition: .18s ease; }

.pillar { background: var(--paper); border-left: 4px solid var(--green-700); }
.pillar:nth-child(2) { border-left-color: var(--red-600); }
.pillar:nth-child(3) { border-left-color: var(--amber-600); }

/* mission / vision blocks */
.mv-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-1);
}
.mv-card .icon-chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-900); color: #fff; font-size: 1.15rem; margin-bottom: 1rem;
}
.mv-card.vision .icon-chip { background: var(--red-600); }
.mv-card blockquote {
  margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--ink-900);
}

/* ---------------------------------------------------------------- tags */
.tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .8rem; padding: 0; list-style: none; }
.tag {
  font-size: .74rem; font-weight: 600; padding: .24rem .6rem; border-radius: 999px;
  background: var(--green-050); color: var(--green-800); border: 1px solid var(--green-100);
}
.tag-red { background: var(--red-050); color: var(--red-600); border-color: #f6d9da; }
.tag-grey { background: var(--paper-3); color: var(--ink-500); border-color: var(--line); }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px;
  background: var(--amber-050); color: var(--amber-600); border: 1px solid #f0e0b4;
}

/* ---------------------------------------------------------------- people */
.moderator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.person-lead {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.3rem;
  background: var(--paper); border: 1px solid var(--green-100);
  border-top: 4px solid var(--green-800);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-2);
}
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-1); transition: .18s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.avatar {
  width: 96px; height: 96px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: .02em;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
}
.avatar-sm { width: 58px; height: 58px; border-radius: 14px; font-size: 1.05rem; margin-bottom: .9rem; }
.avatar-red { background: linear-gradient(145deg, var(--red-500), #8f1c21); }
.avatar-slate { background: linear-gradient(145deg, #4d6572, #22323b); }
.avatar-amber { background: linear-gradient(145deg, #c99521, #86620c); }
.person-name { font-size: 1.06rem; font-weight: 750; color: var(--ink-900); margin: 0 0 .12rem; }
.person-lead .person-name { font-size: 1.32rem; }
.person-role { font-size: .84rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .2rem; }
.person-lead .person-role { color: var(--red-600); }
.person-affil { font-size: .88rem; color: var(--ink-500); margin: 0 0 .7rem; }
.person-links { display: flex; gap: .8rem; margin-top: .85rem; font-size: .82rem; flex-wrap: wrap; }
.person-links a { font-weight: 600; text-decoration: none; }
.person-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
thead th {
  background: var(--green-900); color: #fff; text-align: left;
  padding: .85rem 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
tbody td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody td strong { color: var(--ink-900); }

/* ---------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 2px dashed var(--green-100); }
.timeline li { position: relative; padding: 0 0 1.9rem 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2.42rem; top: .35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--green-700);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .stage-label { font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); }
.timeline h3 { margin: .18rem 0 .3rem; }

/* mentorship tree */
.tree { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.tree-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tree-node {
  border: 1.5px solid var(--green-100); background: var(--paper);
  border-radius: var(--radius-sm); padding: .7rem 1.1rem; font-size: .87rem; font-weight: 650;
  color: var(--green-900); min-width: 130px; box-shadow: var(--shadow-1);
}
.tree-node.gen2 { border-color: var(--line); color: var(--ink-700); }
.tree-node.gen3 { border-color: var(--line); color: var(--ink-500); font-weight: 600; font-size: .8rem; min-width: 96px; }
.tree-arrow { color: var(--green-600); font-size: 1.2rem; line-height: 1; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { font-size: .84rem; color: #bcd8cb; }

/* ---------------------------------------------------------------- forms */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 650; color: var(--ink-900); }
.field .req { color: var(--red-600); }
.field .hint { font-size: .78rem; color: var(--ink-500); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], select, textarea {
  font: inherit; font-size: .94rem; color: var(--ink-900);
  padding: .68rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-600); outline: none;
  box-shadow: 0 0 0 3px rgba(30,127,92,.15);
}
textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .89rem; }
.checkbox-row input { margin-top: .28rem; width: 17px; height: 17px; flex: none; accent-color: var(--green-800); }
.field-error { font-size: .79rem; color: var(--red-600); font-weight: 600; min-height: 1em; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red-500); }

.form-success {
  display: none; margin-top: 1.2rem; padding: 1.1rem 1.3rem;
  background: var(--green-050); border: 1.5px solid var(--green-100);
  border-left: 4px solid var(--green-700); border-radius: var(--radius-sm);
  color: var(--green-900); font-size: .93rem;
}
.form-success.show { display: block; }
.form-success strong { display: block; margin-bottom: .25rem; }

/* ---------------------------------------------------------------- misc */
.notice {
  background: var(--amber-050); border: 1px solid #f0e0b4; border-left: 4px solid var(--amber-600);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .9rem; color: #6b4a06;
}
.notice strong { color: #5a3e05; }

.callout {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: #dcece4; border-radius: var(--radius); padding: 2.6rem;
  text-align: center;
}
.callout h2 { color: #fff; margin-bottom: .6rem; }
.callout p { color: #bcd8cb; max-width: 58ch; margin-inline: auto; }
.callout .hero-actions { justify-content: center; }

.post {
  display: grid; grid-template-columns: 148px 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.post:first-of-type { padding-top: 0; }
.post-date {
  font-size: .8rem; color: var(--ink-500); font-weight: 600;
  border-left: 3px solid var(--green-100); padding-left: .8rem;
}
.post h3 { margin-bottom: .3rem; }
.post h3 a { text-decoration: none; color: var(--ink-900); }
.post h3 a:hover { color: var(--green-800); }

.pub {
  border: 1px solid var(--line); border-left: 4px solid var(--green-700);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; background: var(--paper);
  margin-bottom: 1rem;
}
.pub h3 { font-size: 1.03rem; margin-bottom: .3rem; }
.pub .authors { font-size: .88rem; color: var(--ink-500); margin-bottom: .35rem; }
.pub .venue { font-size: .85rem; color: var(--ink-700); font-style: italic; }
.pub.planned { border-left-color: var(--ink-300); background: var(--paper-2); }

.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li {
  display: flex; gap: .8rem; align-items: baseline;
  padding: .72rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list .rl-tag {
  font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em;
  color: var(--green-700); min-width: 74px; flex: none;
}

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 650; color: var(--ink-900);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-700); font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 1.3rem 1.15rem; margin: 0; font-size: .94rem; color: var(--ink-500); }

.contact-line { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: .94rem; }
.contact-line .ci {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-800); font-size: 1rem;
}
.contact-line strong { display: block; color: var(--ink-900); font-size: .9rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-900); color: #9fb0b8; padding: 3.2rem 0 1.6rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #9fb0b8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand-mark { margin-bottom: .9rem; }
.footer-motto { font-family: var(--serif); font-style: italic; color: #cfd9de; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid #26313a;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .moderator-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); display: none; padding: .8rem 1.5rem 1.2rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { padding: .7rem .8rem; font-size: .96rem; }
  .nav-cta a, a.nav-cta { text-align: center; margin-top: .5rem; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 3rem 0; }
  .wrap, .narrow { width: calc(100% - 2rem); }
  .g2, .g3, .g4, .form-grid, .footer-grid, .stats { grid-template-columns: 1fr; }
  .person-lead { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: .5rem; }
  .post-date { border-left: none; padding-left: 0; }
  .callout { padding: 1.8rem 1.2rem; }
  .form-card { padding: 1.3rem; }
  .hero-facts { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card-hover:hover, .person:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}
