/* --- Global Styles --- */
body {
  font-family: 'Open Sans', 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 20px;
}

/* --- Links --- */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #f09228;
  text-decoration: underline;
}

/* --- Headings --- */
h2 {
  font-size: 28px;
  font-weight: 700;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

/* --- Name --- */
.name {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin: 0;
  padding-bottom: 20px;
}

/* --- Paper Title --- */
.papertitle {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* --- Publication Section --- */
.one {
  width: 160px;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.two {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.one:hover .two {
  opacity: 1;
}

/* --- Fade animation --- */
.fade {
  transition: opacity .2s ease-in-out;
}

/* --- Highlight --- */
span.highlight {
  background-color: #fff3cd;
}

/* --- Colored Box (if you want to use it) --- */
.colored-box {
  background-color: #f0f0f0;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* change if needed */
  overflow: hidden;
}

.media-container imgh,
.media-container videoh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover */
}