/* =====================================================
   RISE-BUET — Shared design system for content pages
   (internalResearch, undergraduateResearch,
    externalProjects, academicIndustry)
===================================================== */

/* ---------- Hero ---------- */
.pg-hero {
  position: relative;
  background: linear-gradient(135deg, #040e22 0%, #08386E 55%, #0a4a8a 100%);
  padding: 78px 0 56px; overflow: hidden; text-align: center;
}
.pg-hero::before {
  content: ''; position: absolute; top: -90px; left: -70px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(1,110,110,.28) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.pg-hero::after {
  content: ''; position: absolute; bottom: -110px; right: -60px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(139,0,67,.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.pg-hero .pg-wrap { position: relative; z-index: 2; }
.pg-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #5be0e0; background: rgba(91,224,224,.12);
  border: 1px solid rgba(91,224,224,.3);
  border-radius: 20px; padding: 5px 18px; margin-bottom: 16px;
}
.pg-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.15; }
.pg-hero p { font-size: .98rem; color: rgba(255,255,255,.72); max-width: 690px; margin: 0 auto; line-height: 1.7; }

/* ---------- Layout ---------- */
.pg-section { background: #f0f4fb; padding: 56px 0 80px; }
.pg-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- Apply / CTA button ---------- */
.pg-apply {
  display: flex; justify-content: center;
  margin: -34px auto 38px; position: relative; z-index: 6;
  max-width: 960px; padding: 0 24px;
}
.pg-apply a {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(90deg, #08386E, #016E6E);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 15px 34px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(8,56,110,.28);
  transition: transform .2s, box-shadow .2s;
}
.pg-apply a:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(8,56,110,.38); color: #fff; text-decoration: none; }
.pg-apply a i { font-size: 1.05rem; }

/* ---------- Intro highlight ---------- */
.pg-intro {
  background: #fff; border-radius: 16px; border-left: 5px solid #016E6E;
  padding: 24px 28px; margin-bottom: 34px;
  box-shadow: 0 4px 22px rgba(8,56,110,.08);
}
.pg-intro p { margin: 0; font-size: .97rem; color: #39414d; line-height: 1.8; text-align: justify; }
.pg-intro p + p { margin-top: 12px; }

/* ---------- Section label ---------- */
.pg-block-title {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.3rem; font-weight: 800; color: #08386E;
  margin: 38px 0 18px;
}
.pg-block-title .bar { width: 36px; height: 4px; border-radius: 2px; background: linear-gradient(90deg,#08386E,#016E6E); }

/* ---------- Plain content card ---------- */
.pg-card {
  background: #fff; border-radius: 16px; padding: 26px 30px; margin-bottom: 22px;
  box-shadow: 0 4px 22px rgba(8,56,110,.08);
}

/* ---------- Accordion ---------- */
.pg-acc { display: flex; flex-direction: column; gap: 14px; }
.pg-acc-item {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #e9eef7; box-shadow: 0 4px 20px rgba(8,56,110,.07);
}
.pg-acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; cursor: pointer; padding: 18px 24px;
  background: #fff; border: none; text-align: left;
  font-size: 1rem; font-weight: 700; color: #08386E; transition: background .2s;
}
.pg-acc-head:hover { background: #f5f8fd; }
.pg-acc-head:focus { outline: none; }
.pg-acc-head .pg-acc-label { flex: 1; line-height: 1.4; }
.pg-acc-head .pg-acc-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(1,110,110,.1); color: #016E6E;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: transform .25s, background .25s, color .25s;
}
.pg-acc-head:not(.collapsed) .pg-acc-ico { transform: rotate(180deg); background: #08386E; color: #fff; }
.pg-acc-body { padding: 2px 26px 24px; }

/* ---------- Styled lists ---------- */
.pg-list { list-style: none; margin: 0; padding: 0; }
.pg-list > li {
  position: relative; padding: 8px 0 8px 22px;
  font-size: .92rem; color: #3c4654; line-height: 1.72; text-align: justify;
  border-bottom: 1px solid #f1f4f9;
}
.pg-list > li:last-child { border-bottom: none; }
.pg-list > li::before {
  content: ''; position: absolute; left: 2px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: #016E6E;
}
.pg-list ul { list-style: none; margin: 9px 0 4px; padding-left: 4px; }
.pg-list ul li { position: relative; padding: 4px 0 4px 18px; font-size: .88rem; color: #5a6472; line-height: 1.6; text-align: justify; border: none; }
.pg-list ul li::before { content: '–'; position: absolute; left: 2px; top: 4px; color: #8B0043; font-weight: 700; background: none; width: auto; height: auto; }

/* ---------- Download chips (funded projects) ---------- */
.pg-files { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-file {
  display: inline-flex; align-items: center; gap: 9px;
  background: #f5f8fd; border: 1px solid #dce5f3; border-radius: 12px;
  padding: 12px 18px; text-decoration: none; color: #08386E;
  font-weight: 600; font-size: .9rem; transition: all .2s;
}
.pg-file:hover { background: #08386E; color: #fff; border-color: #08386E; text-decoration: none; transform: translateY(-2px); }
.pg-file i { font-size: 1.05rem; color: #1a7d4b; }
.pg-file:hover i { color: #7CFFB0; }

/* ---------- Tables (collaborations) ---------- */
.pg-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e4eaf4; }
.pg-table-wrap table { width: 100%; border-collapse: collapse; margin: 0; }
.pg-table-wrap thead th {
  background: linear-gradient(90deg,#08386E,#0a4e9a); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 12px 14px; text-align: center; white-space: nowrap;
}
.pg-table-wrap tbody td { padding: 11px 14px; font-size: .86rem; color: #3c4654; border-bottom: 1px solid #eef2f8; text-align: center; vertical-align: middle; line-height: 1.55; }
.pg-table-wrap tbody tr:nth-child(even) { background: #f7f9fd; }
.pg-table-wrap tbody tr:hover { background: #eef3fb; }
.pg-table-wrap .multi-item { padding: .55rem 0; border-bottom: 1px solid #e4eaf4; }
.pg-table-wrap .multi-item:first-child { padding-top: 0; }
.pg-table-wrap .multi-item:last-child { padding-bottom: 0; border-bottom: none; }

@media (max-width: 600px) {
  .pg-card, .pg-acc-body, .pg-intro { padding-left: 18px; padding-right: 18px; }
  .pg-acc-head { padding: 15px 16px; }
  .pg-block-title { font-size: 1.12rem; }
}
