/* ---------- Colors saved as variables, so we can reuse them ---------- */
:root {
  --blue: #1236c9;
  --blue-light: #3d63ea;
  --navy: #0b1d3a;
  --ink: #1b1f4b;
  --text: #0c0d14;
  
}

/* ---------- Basic setup ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Navigation bar ---------- */
.navbar {
  background: var(--blue);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.navbar a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 15px 28px;
}
.navbar a:hover,
.navbar a.active {
  background: var(--blue-light);
}

/* ---------- Name banner ---------- */
.name-banner {
  margin: 8px;
  padding: 22px 10px;
  border: 1px dashed #9db0f0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.name-banner::before,
.name-banner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfd5e6;
}
.name-banner h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #3b4054;
}

/* ---------- Hero ---------- */
.hero {
    background:
    linear-gradient(rgba(11, 29, 58, 0.82), rgba(7, 19, 42, 0.9)),
    url("../images/hero.jpg") center / cover no-repeat;
  color: white;
  text-align: center;
  padding: 52px 16px 44px;
}
.hero .welcome { margin: 0; font-size: 14px; }
.hero h1 {
  margin: 6px 0 30px;
  font-size: 32px;
  font-weight: 600;
}

.hero-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.hero-icons a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #5b6f94;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-icons a:hover .circle,
.hero-icons a.active .circle {
  background: var(--blue);
  border-color: var(--blue);
}
.circle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ---------- Shared building blocks ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 24px;
}
.band {
  background: #f5f7fb;
}
.card {
  background: white;
  border: 1px solid #e3e7f0;
  border-radius: 6px;
  padding: 24px;
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.card p {
  margin: 0 0 12px;
  font-size: 14.5px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.section-title h2 {
  margin: 0;
  font-size: 21px;
  color: var(--ink);
}
.section-title .line {
  flex: 1;
  height: 1px;
  background: #dfe3ee;
}
.icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--blue);
}
.about-title h2 {
  margin: 6px 0 10px;
  font-size: 24px;
  color: var(--ink);
}
.underline {
  width: 34px;
  height: 2px;
  background: var(--ink);
}
.about-text p {
  margin: 0 0 14px;
  font-size: 15px;
}
.supervisor {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
  font-size: 13px;
}
.supervisor strong {
  display: block;
  color: var(--ink);
}

/* ---------- Vision & Mission ---------- */
.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Introduction chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chips span {
  font-size: 13px;
  border: 1px solid #e3e7f0;
  background: #f5f7fb;
  color: var(--ink);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfd3f0;
  font-size: 12px;
  padding: 16px;
  text-align: center;
}

/* ---------- Phones and small screens ---------- */
@media (max-width: 800px) {
  .about,
  .two-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .navbar a { padding: 12px 14px; }
  .hero h1 { font-size: 24px; }
}
/* ---------- Members page ---------- */
.center-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 34px 0 22px;
}
.center-title::before,
.center-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe3ee;
}
.center-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #3b4054;
}
.center-title.big h2 {
  font-size: 26px;
}

.pi {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  padding: 0 10px;
}
.pi-photo {
  width: 230px;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.pi-info h3 {
  margin: 0;
  font-size: 19px;
  color: var(--ink);
}
.pi-info p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.8;
}
.pi-info .role {
  margin: 4px 0 14px;
  color: #3b4054;
}
.pi-info a {
  color: var(--blue);
  text-decoration: none;
}
.pi-info a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .pi { flex-direction: column; }
}
/* ---------- Faculty members ---------- */
.faculty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
}
.faculty {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.faculty img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #dfe6f7;
}
.faculty h3 {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}
.faculty .role {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #3b4054;
}
.faculty .area {
  margin: 6px 0 12px;
  font-size: 13.5px;
  color: #5a6078;
}
.faculty h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #3b4054;
}
.faculty .pub {
  margin: 0 0 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--blue);
}

/* ---------- Graduate students ---------- */
.student-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
}
.student {
  text-align: center;
  background: #f5f7fb;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  padding: 22px 16px;
}
.student h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.student p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5a6078;
}
.student .topic {
  color: var(--blue);
}

/* Phones: stack the columns */
@media (max-width: 800px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: 1fr 1fr; }
}
/* ---------- Page header band (inner pages) ---------- */
.page-header {
  background: #f5f7fb;
  border-bottom: 1px solid #e3e7f0;
}
.page-header .container {
  padding-top: 44px;
  padding-bottom: 36px;
}
.page-header h1 {
  margin: 8px 0 10px;
  font-size: 38px;
  color: var(--ink);
}
.page-header p {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  padding: 24px;
}
.contact-card .icon-tile {
  width: 46px;
  height: 46px;
  flex: none;
}
.small-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #5a6078;
}
.contact-card .value {
  margin: 6px 0 4px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}
.contact-card .note {
  margin: 0;
  font-size: 14px;
  color: #5a6078;
}
.contact-card a {
  color: var(--blue);
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Dark banner with button ---------- */
.cta {
  margin-top: 28px;
  background: var(--navy);
  border-radius: 8px;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta h3 {
  margin: 0;
  font-size: 19px;
  color: white;
}
.cta p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #b9c4e6;
}
.button {
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
}
.button:hover {
  background: var(--blue-light);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
/* ---------- Research page ---------- */
.project {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #e3e7f0;
}
.project:last-child {
  border-bottom: none;
}
.thumb {
  width: 200px;
  height: 132px;
  flex: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #16407f, #0b1d3a);
  object-fit: cover;
  display: block;
}
.project-body {
  flex: 1;
  min-width: 0;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #eaeefd;
  padding: 3px 10px;
  border-radius: 20px;
}
.project h3 {
  margin: 8px 0 4px;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}
.project .area {
  margin: 0;
  font-size: 14px;
  color: #5a6078;
}
.project .desc {
  margin: 8px 0 10px;
  font-size: 16px;
  max-width: 720px;
}
.project-body a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.project-body a:hover {
  color: var(--blue);
}

@media (max-width: 800px) {
  .project { flex-direction: column; }
  .thumb { width: 100%; }
}
.pill + .pill {
  margin-left: 6px;
}
/* ---------- Project detail pages ---------- */
.detail p {
  font-size: 16px;
  max-width: 760px;
}
.detail h2 {
  color: var(--ink);
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

.summary-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.summary-row h2 { margin-top: 0; }

.figure-box {
  min-height: 240px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16407f, #0b1d3a);
  color: #cfe0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
}
img.figure-box {
  width: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.stat {
  background: #f5f7fb;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 32px;
  color: var(--blue);
  line-height: 1.2;
}
.stat span {
  font-size: 14px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
  font-size: 16px;
  max-width: 760px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail .section-title { margin-top: 40px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.team-grid .card p { font-size: 15px; line-height: 1.7; }
.small { font-size: 13px !important; color: #5a6078; }

.plain-list {
  padding-left: 20px;
  max-width: 760px;
  font-size: 15px;
}
.plain-list li { margin-bottom: 8px; }

@media (max-width: 800px) {
  .summary-row,
  .stats,
  .team-grid { grid-template-columns: 1fr; }
}