/* ============================================================
   The Cisneros Group – custom stylesheet
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/dreampulse/computer-modern-web-font/fonts.css');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Computer Modern Sans", sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.65;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #0f172a; }
h2 { font-size: 1.6rem;  margin-bottom: 0.9rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
p  { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin-left: 1.4rem; margin-bottom: 0.9rem; }
li { margin-bottom: 0.3rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 3.4rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-brand {
  color: #e2e8f0;
  font-family: "Computer Modern Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { color: #fff; text-decoration: none; }

.nav-links { display: flex; gap: 0.15rem; }

.nav-link {
  color: #94a3b8;
  font-family: "Computer Modern Sans", sans-serif;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover  { color: #e2e8f0; background: rgba(255,255,255,0.07); text-decoration: none; }
.nav-link.active { color: #ffffff;  background: rgba(255,255,255,0.12); }

/* hamburger button – hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* ── Hero section ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 420px;
  background: #060816;
  overflow: hidden;
}

.hero-canvas,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;  /* for .hero-image */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  background: linear-gradient(to right, rgba(6,8,22,0.80) 38%, transparent 75%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 460px;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Page banner (non-home) ───────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3557 100%);
  padding: 2.8rem 2rem 2.6rem;
  text-align: center;
}
.page-banner h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ── Main content wrapper ─────────────────────────────────── */
.site-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.75rem 5rem;
}

/* ── Content sections ─────────────────────────────────────── */
.content-section {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.content-section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

/* ── Bio section ──────────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.profile-placeholder {
  width: 190px;
  height: 190px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.profile-placeholder svg { opacity: 0.4; }

/* ── Research-interest list ───────────────────────────────── */
.interests-list {
  list-style: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.interests-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0;
}
.interests-list li::before {
  content: "›";
  color: #2563eb;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── News ─────────────────────────────────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.25rem;
}
.news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 0.05rem;
}
.news-text { color: #334155; font-size: 0.95rem; }

/* ── Apply box ────────────────────────────────────────────── */
.apply-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
}
.apply-box h3 { color: #1d4ed8; margin-bottom: 0.75rem; }

/* ── Publications ─────────────────────────────────────────── */
.pub-list,
ol.bibliography {
  list-style: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.1rem;
}
ol.bibliography { padding-left: 0; }
.pub-item {
  padding: 1.1rem 1.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
}
.pub-title { font-weight: 600; color: #0f172a; margin-bottom: 0.2rem; }
.pub-authors { font-size: 0.875rem; color: #475569; margin-bottom: 0.15rem; }
.pub-journal { font-size: 0.875rem; color: #64748b; font-style: italic; }

/* ── Project cards ────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 1.25rem;
}
.project-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.09); transform: translateY(-2px); }
.project-card h3 { color: #1e40af; margin-bottom: 0.5rem; }
.project-card p  { font-size: 0.9rem; color: #475569; margin-bottom: 0.5rem; }
.project-card p:last-child { margin-bottom: 0; }

/* ── People ───────────────────────────────────────────────── */
.people-group { margin-bottom: 2.5rem; }
.people-group:last-child { margin-bottom: 0; }

.group-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.4rem;
  margin-bottom: 1.1rem;
}

.person-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.person-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e40af;
  flex-shrink: 0;
  user-select: none;
}
.person-info { display: flex; flex-direction: column; line-height: 1.3; }
.person-name { font-weight: 600; font-size: 0.95rem; }
.person-name a { color: #0f172a; }
.person-name a:hover { color: #2563eb; }
.person-role { font-size: 0.82rem; color: #64748b; }

/* ── Teaching / course cards ──────────────────────────────── */
.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.course-card:last-child { margin-bottom: 0; }
.course-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.course-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.75rem; }
.course-meta  { font-size: 0.85rem; color: #64748b; margin-top: 0.9rem; margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #0d1b2a;
  color: #64748b;
  padding: 2.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #e2e8f0; text-decoration: none; }
.footer-links { margin-top: 0.4rem; }
.footer-links a + span { margin: 0 0.4rem; }
.footer-links span + a { margin: 0; }

/* ── Utilities ────────────────────────────────────────────── */
.text-muted { color: #64748b; }
.text-sm    { font-size: 0.875rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 660px) {

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.4rem;
    left: 0; right: 0;
    background: #0d1b2a;
    flex-direction: column;
    padding: 0.6rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.65rem 0.5rem; font-size: 0.95rem; }

  .hero-section     { height: 300px; }
  .hero-title       { font-size: 1.75rem; }
  .hero-overlay {
    padding: 1.5rem;
    justify-content: flex-start;
    padding-top: 2rem;
    background: linear-gradient(to bottom, rgba(6,8,22,0.85) 0%, rgba(6,8,22,0.55) 60%, transparent 100%);
  }

  .bio-grid { grid-template-columns: 1fr; }
  .profile-photo,
  .profile-placeholder { width: 150px; height: 150px; }

  .news-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .news-date { margin-bottom: 0; }

  .project-grid { grid-template-columns: 1fr; }
}
