/* Site stylesheet for www.uv.es/miga — (c) Michael Gabler.
   Built on Bootstrap 5 (MIT) and Bootstrap Icons (MIT). */

:root {
  --accent: #33B8FF;
  --accent-light: #99dbff;
  --accent-dark: #0a8fd6;
  --text: #444444;
  --heading: #545454;
  --muted: #6e6e6e;
  --line: #ededed;
  --soft: #f7f7f7;
  --dark: #545454;
  --footer: #3b3b3b;
  --footer-bottom: #404040;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: "Raleway", sans-serif; }

/* ---------- top bar & header ---------- */
#topbar { background: var(--dark); padding: 8px 0; font-size: 14px; color: #fff; }
#topbar .bi { color: var(--accent); font-style: normal; }
#topbar a { color: #fff; padding-left: 6px; }
#topbar a:hover { color: var(--accent-light); }

#header {
  height: 70px; background: #fff; z-index: 997;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky; top: 0;
}
#header .brand {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 20px;
  color: var(--accent); letter-spacing: .5px;
}
#header .brand span { color: inherit; }

.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: 10px 0 10px 28px;
  font-family: "Poppins", sans-serif; font-size: 14px; color: var(--heading);
  white-space: nowrap; transition: color .3s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.nav-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--heading); line-height: 0; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); padding: 10px 0;
  }
  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 10px 20px; }
}

/* ---------- hero carousel ---------- */
#hero { width: 100%; height: 70vh; min-height: 420px; padding: 0; background: #3b3b3b; overflow: hidden; }
#hero .carousel, #hero .carousel-inner, #hero .carousel-item { height: 100%; }
#hero .carousel-item { background-size: cover; background-position: center; position: relative; }
#hero .carousel-item::before {             /* light vignette only: the picture stays visible */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.25) 100%);
}
#hero .carousel-caption-box {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 70px 60px;
}
#hero .carousel-caption-box > div {          /* text on a frosted panel, readable on every slide */
  max-width: 860px; padding: 32px 40px 36px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.55); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#hero h2 { color: #2e2e2e; font-size: 46px; font-weight: 700; margin-bottom: 20px; }
#hero h2 span { color: var(--accent); }
#hero p { color: #333; font-size: 16px; margin: 0 auto 26px; max-width: 760px; }
.btn-get-started {
  display: inline-block; font-family: "Raleway", sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 1px; padding: 12px 32px; border-radius: 50px; color: #fff;
  background: var(--accent); border: 2px solid var(--accent); transition: .3s;
}
.btn-get-started:hover { background: transparent; color: var(--accent-dark); }
#hero .carousel-control-prev-icon, #hero .carousel-control-next-icon {
  background: none; font-size: 30px; line-height: 1; width: 54px; height: 54px;
  border-radius: 50px; display: flex; align-items: center; justify-content: center;
  color: rgba(0, 0, 0, .55); background-color: rgba(255, 255, 255, .5);
}
#hero .carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%; background-color: var(--accent); border: 0; opacity: .5;
}
#hero .carousel-indicators .active { opacity: 1; }
@media (max-width: 768px) {
  #hero h2 { font-size: 28px; }
  #hero p { font-size: 14px; }
  #hero .carousel-caption-box { padding: 0 16px 50px; }
  #hero .carousel-caption-box > div { padding: 20px 18px 24px; }
}

/* ---------- sections ---------- */
section { padding: 0 0 70px 0; }
.section-title { text-align: center; padding-bottom: 30px; }
.section-title h2 {
  font-size: 28px; font-weight: 600; margin-bottom: 20px; padding-bottom: 20px;
  position: relative; font-family: "Poppins", sans-serif; color: var(--heading);
}
.section-title h2::after {
  content: ''; position: absolute; width: 50px; height: 3px; background: var(--accent);
  bottom: 0; left: calc(50% - 25px);
}
.breadcrumbs { padding: 20px 0; background: var(--soft); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.breadcrumbs h2 { font-size: 26px; font-weight: 300; margin: 0; color: var(--heading); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0 0 5px; margin: 0; font-size: 14px; }
.breadcrumbs ol li + li { padding-left: 10px; }
.breadcrumbs ol li + li::before { content: "/"; padding-right: 10px; color: var(--muted); }

/* ---------- icon boxes (home + interests) ---------- */
.feature-box {
  display: block; height: 100%; padding: 40px 30px; text-align: center;
  border: 1px solid var(--line); background: #fff; color: var(--text); transition: all .3s;
}
.feature-box i, .feature-box my_i { font-size: 48px; color: var(--accent); line-height: 1; display: inline-block; margin-bottom: 15px; }
.feature-box h3 { font-weight: 700; font-size: 20px; color: var(--heading); margin-bottom: 12px; }
.feature-box p { font-size: 15px; margin: 0; }
.feature-box:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.feature-box:hover i, .feature-box:hover my_i, .feature-box:hover h3 { color: #fff; }

.topic-box {
  display: block; height: 100%; text-align: center; border: 1px solid var(--line);
  padding: 60px 20px; color: var(--text); transition: all .3s;
}
.topic-box .icon {
  margin: 0 auto 22px; width: 100px; height: 100px; background: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; position: relative; transition: .3s;
}
.topic-box .icon::before {
  content: ''; position: absolute; left: -8px; top: -8px; width: 100%; height: 100%;
  background: var(--accent-light); border-radius: 10px; z-index: -1; transition: .3s;
}
.topic-box .icon i { color: #fff; font-size: 80px; line-height: 1; }
.topic-box h4 { font-weight: 700; font-size: 22px; color: var(--heading); margin-bottom: 12px; }
.topic-box p { font-size: 14px; line-height: 24px; margin: 0; }
.topic-box:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic-box:hover .icon { background: #fff; }
.topic-box:hover .icon i { color: var(--accent); }
.topic-box:hover .icon::before { background: var(--accent-dark); }
.topic-box:hover h4 { color: #fff; }

/* ---------- content pages ---------- */
.content h3 { font-size: 24px; font-weight: 600; color: var(--heading); margin: 10px 0 15px; }
.content p { line-height: 1.7; }
.content ul.ticks { list-style: none; padding: 0; }
.content ul.ticks li { padding: 0 0 10px 28px; position: relative; }
.content ul.ticks li > i { position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 18px; }
.lead-figure { width: 100%; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.figure-caption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.contrib {
  border-left: 4px solid var(--accent); background: #f2faff; padding: 20px 24px; border-radius: 0 6px 6px 0; margin: 25px 0;
}
.contrib h4 { font-size: 18px; font-weight: 700; color: var(--accent-dark); margin-bottom: 10px; }
.contrib h4 i { margin-right: 6px; }
.contrib ul { margin: 0; padding-left: 20px; }
.contrib li { margin-bottom: 6px; }

.divider { border: 0; border-top: 2px solid var(--accent); opacity: .5; width: 90%; margin: 0 auto 50px; }

/* ---------- CV ---------- */
.cv-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 40px; }
.cv-item .what { flex: 1 1 520px; }
.cv-item h3 { font-size: 22px; font-weight: 600; color: var(--heading); margin: 0; }
.cv-item .where { font-family: "Poppins", sans-serif; font-size: 15px; color: var(--muted); margin: 4px 0 12px; }
.cv-item .when { color: var(--accent-dark); white-space: nowrap; font-weight: 600; font-size: 15px; }
.cv-h2 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 28px; color: var(--heading); margin-bottom: 30px; }
.info-list { list-style: none; padding: 0; }
.info-list li { padding-bottom: 8px; }
.info-list i { color: var(--accent); margin-right: 4px; }

/* ---------- publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.pub-tools button {
  border: 1px solid var(--accent); background: #fff; color: var(--accent-dark); border-radius: 50px;
  padding: 6px 18px; font-size: 14px; font-family: "Poppins", sans-serif; transition: .2s;
}
.pub-tools button.active, .pub-tools button:hover { background: var(--accent); color: #fff; }
.pub-year { font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600; color: var(--accent-dark);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 30px 0 14px; }
.pub { padding: 10px 0 12px 16px; border-left: 3px solid var(--line); margin-bottom: 10px; }
.pub.first { border-left-color: var(--accent); }
.pub .title { font-weight: 600; color: var(--heading); }
.pub .authors { font-size: 14px; }
.pub .authors b { color: #222; }
.pub .ref { font-size: 14px; color: var(--muted); }
.pub .links a { font-size: 13px; margin-right: 12px; }
.badge-topic { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 7px; margin-left: 6px;
  background: #e8f6ff; color: var(--accent-dark); vertical-align: middle; white-space: nowrap; }
.badge-first { background: var(--accent); color: #fff; }
.pub-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 30px; text-align: center; }
.pub-stats .num { font-family: "Poppins", sans-serif; font-size: 36px; font-weight: 600; color: var(--accent); line-height: 1.1; }
.pub-stats .lbl { font-size: 14px; color: var(--muted); }

/* ---------- movies ---------- */
.movie-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 40px; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.movie-card h3 { font-size: 24px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.movie-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.movie-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; display: block; }
.movie-card .nav-pills .nav-link { border-radius: 50px; color: var(--accent-dark); padding: 5px 18px; font-size: 14px; }
.movie-card .nav-pills .nav-link.active { background: var(--accent); color: #fff; }
.res-tag { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 8px; vertical-align: middle; margin-left: 8px; }
.res-full { background: var(--accent); color: #fff; }
.res-low { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.coming-soon { aspect-ratio: 16 / 9; background: #1b1b1b; color: #bbb; display: flex; align-items: center;
  justify-content: center; border-radius: 4px; font-family: "Poppins", sans-serif; text-align: center; padding: 20px; }
.legend-table td { padding: 3px 12px 3px 0; vertical-align: top; font-size: 14px; }
.notice { font-size: 13px; color: var(--muted); }

/* ---------- funding ---------- */
.funding img { max-height: 90px; margin: 10px 25px; }

/* ---------- footer ---------- */
#footer { background: var(--footer-bottom); color: #fff; font-size: 14px; padding: 0 0 25px; }
#footer .footer-top { background: var(--footer); border-bottom: 1px solid #474747; padding: 50px 0 20px; margin-bottom: 25px; }
#footer .footer-top p, #footer .footer-top div { line-height: 1.7; }
#footer a { color: #fff; }
#footer a:hover { color: var(--accent-light); }
#footer .footer-logo { max-width: 100%; height: auto; max-height: 110px; }
#footer .copyright { text-align: center; color: #ddd; }

.back-to-top {
  position: fixed; right: 15px; bottom: 15px; z-index: 996; width: 40px; height: 40px; border-radius: 4px;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; opacity: 0; visibility: hidden; transition: .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-dark); color: #fff; }

/* ---------- topic pages ---------- */
.topic-row { margin-bottom: 30px; }
.topic-figure { margin: 10px 0 20px; }
.topic-figure img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); background: #000; }
.topic-figure img[src$=".svg"] { background: #fff; box-shadow: none; border: 1px solid var(--line); }
.topic-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.topic-figure .credit { display: block; font-size: 11px; color: #999; margin-top: 2px; }
.papers-h { font-size: 17px; font-weight: 700; color: var(--heading); margin: 30px 0 10px; }
.pub-compact { font-size: 13px; line-height: 1.5; padding-left: 18px; color: var(--muted); }
.pub-compact li { margin-bottom: 4px; }
.pub-compact a { color: var(--heading); }
.pub-compact a:hover { color: var(--accent-dark); }

/* carousel arrows: no button frame */
#hero .carousel-control-prev, #hero .carousel-control-next { border: 0; background: none; width: 8%; }

/* ---------- students ---------- */
.student-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0;
  padding: 18px 22px; height: 100%; background: #fff; }
.student-card h4 { font-size: 19px; font-weight: 700; color: var(--heading); margin: 0; }
.student-card h4 i { color: var(--accent); }
.student-card .where { font-family: "Poppins", sans-serif; font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.student-card .when { color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.student-card p { margin: 0; font-size: 15px; }

/* ---------- topic navigation arrows ---------- */
.topic-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 990; display: flex; align-items: center;
  gap: 6px; height: 54px; padding: 0 14px; background: rgba(51, 184, 255, .9); color: #fff;
  font-family: "Poppins", sans-serif; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: .25s;
}
.topic-arrow i { font-size: 26px; line-height: 1; }
.topic-arrow span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.topic-arrow:hover { color: #fff; background: var(--accent-dark); }
.topic-arrow:hover span { max-width: 200px; }
.topic-arrow.prev { left: 0; border-radius: 0 30px 30px 0; }
.topic-arrow.next { right: 0; border-radius: 30px 0 0 30px; }
@media (max-width: 768px) {
  .topic-arrow { top: auto; bottom: 70px; transform: none; height: 44px; padding: 0 8px; }
  .topic-arrow i { font-size: 22px; }
}


/* discreet download link under each movie */
.movie-card .dl { color: var(--muted); opacity: .06; font-size: 12px; padding: 0 2px; transition: opacity .2s; }
.movie-card .dl:hover, .movie-card .dl:focus { opacity: .9; color: var(--accent-dark); }

/* inline SVG topic icons (single colour, follow the font-icon colour) */
.svg-icon { display: inline-block; line-height: 0; font-style: normal; }
.svg-icon svg { width: 1em; height: 1em; }
.topic-box .icon .svg-icon svg { width: 80px; height: 80px; }
.contrib h4 .svg-icon svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
