/* ===== BASE ===== */
* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans', sans-serif;
  color: #222;
  scroll-behavior: smooth;
}

/* ===== HERO VIDEO SECTION ===== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

/* Top-right nav */
.hero-nav {
  position: absolute;
  top: 1.4rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.hero-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.hero-nav-link:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Centered title */
.hero-title-block {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ===== PAPER INFO SECTION ===== */
.paper-info-section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  line-height: 1.25;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.affiliation-block {
  color: #555;
  line-height: 1.8;
}

.pub-btn {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ===== SECTION TITLE TAG (black label) ===== */
.section-title-tag {
  display: inline-block;
  background: #111;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Center helper */
.has-text-centered .section-title-tag {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}


/* ===== ALT BACKGROUND ===== */
.alt-bg {
  background: #f5f5f5;
}

/* ===== VIDEO + ABSTRACT ROW ===== */
.video-abstract-row {
  align-items: flex-start;
}

.video-abs-col .section-title-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 1rem;
}

.video-abs-media video {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


/* ===== ABSTRACT / BODY TEXT ===== */
.abstract-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}


/* ===== SECTION DESC (subtitle under section title) ===== */
.section-desc {
  color: #555;
  font-size: 1rem;
}


/* ===== VIDEO GRID ===== */
.task-block {
  margin-bottom: 0.5rem;
}

.task-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.6rem;
  padding-left: 0.1rem;
}

.video-row {
  display: grid;
  gap: 12px;
}

.video-row.three-col { grid-template-columns: repeat(3, 1fr); }
.video-row.two-col   { grid-template-columns: repeat(2, 1fr); }
.video-row.four-col  { grid-template-columns: repeat(4, 1fr); }

.video-cell video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  display: block;
  transition: transform 0.2s ease;
}

.video-cell video:hover {
  transform: scale(1.02);
}

.video-caption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-top: 0.4rem;
}


/* ===== SINGLE VIDEO ===== */
.single-video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  display: block;
}


/* ===== FOOTER ===== */
.dark-footer {
  background: #111;
  color: #aaa;
  padding: 2rem 0;
}

.dark-footer a {
  color: #ddd;
  text-decoration: underline;
}

.dark-footer p {
  font-size: 0.9rem;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .video-row.three-col { grid-template-columns: 1fr; }
  .video-row.four-col  { grid-template-columns: repeat(2, 1fr); }
  .hero-nav { gap: 0.4rem; right: 1rem; }
  .hero-nav-link { font-size: 0.8rem; padding: 0.3rem 0.7rem; }
  .section-title-tag { font-size: 1.1rem; }
}
