/* ===========================
   General Reset
   =========================== */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  color: #002855;
  background: #ffffff;
}

.fixed-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.main-page-font-size {
  font-size: 20px;
}

.group-font-size {
  font-size: 40px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #002855;
}

.remove-margin-top {
  margin-top: 0;
}

.main-box {
  padding-left: 1rem;
  padding-right: 2rem;
}
/* ===========================
     Navbar (LEPS style)
     =========================== */
.topnav,
.ucd-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw); 
  background-color: #002855;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1150px;
  margin: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  color: white;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  position: relative;
  transition: all 0.35s ease;
}

/* Hover & Active = gold parallelogram */
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: #ffd700;
  color: #002855;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
  transition: all 0.35s ease;
}

/* ===========================
     Dropdowns
     =========================== */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
  top: 100%;
  left: 0;
  min-width: 200px;
  border: 1px solid #ddd;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.hidden-card {
  visibility: hidden;
}

.nav-menu li:hover > .dropdown {
  display: block;
}

.dropdown li a {
  color: #002855;
  padding: 0.65rem 0.9rem;
  display: block;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.dropdown li a::after {
  content: " ›";
  position: absolute;
  right: 0.8rem;
  color: inherit;
}

.dropdown li:hover > a {
  color: #ffd700;
  background: none;
}

/* ===========================
     Search Icon
     =========================== */
.search-icon {
  color: white;
  cursor: pointer;
  padding: 0.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.search-icon:hover {
  background: #ffd700;
  color: #002855;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
}

/* ===========================
     Sidebar Titles
     =========================== */
.parallelogram-title {
  background: #ffd700;
  color: #002855;
  font-weight: bold;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 0.5rem 0;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
  transition: all 0.35s ease;
}

.parallelogram-title:hover {
  background: #002855;
  color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ===========================
     Layout
     =========================== */
.two-column {
  display: flex;
  margin: auto;
  padding: 0.5rem;
  gap: 1.2rem;
  margin-top: 3rem;
}

.sidebar {
  width: 28%;
  padding: 0.5rem;
}

.content {
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.content-main_page {
  font-size: 15px;
}

.remove-left-padding {
  padding-left: 0;
}

.add-left-padding {
  padding-left: 3rem;
}

.department-link {
  position: absolute;
  font-size: 18px;
  bottom: 3rem;
}
/* ===========================
     Map
     =========================== */
.map-container {
  margin: 0.8rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

/* ===========================
     Images
     =========================== */
.image-stack {
  max-width: 500px;
  margin: 0 auto 1rem;
  text-align: center;
}

.lab-logo {
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  border-radius: 0;
}

/* ===========================
     Footer
     =========================== */
.ucd-footer {
  color: white;
  text-align: center;
  padding: 1.5rem 0.5rem;
  margin-top: 2rem;
}

.ucd-footer a {
  color: #ffd700;
  text-decoration: none;
}

.ucd-footer a:hover {
  text-decoration: underline;
}

.footer-top {
  margin-bottom: 0.8rem;
}

.footer-top .script-logo {
  max-width: 130px;
  margin: 0 auto 0.4rem auto;
  display: block;
}

.footer-links {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  font-size: 0.75rem;
  color: #ccc;
  line-height: 1.3;
}

/* ===========================
     Research interest page 
     =========================== */

#primary {
  padding-right: 1rem;
  width: 230px;
  float: left;
  clear: left;
  border: none;
  /* border-right: 1px dotted #EEE; */
}
.main-wrap {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  /* height: 30rem; */
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===========================
     faculty dropdown
     =========================== */

.dropdown li {
  position: relative;
}

.dropdown li .sub-dropdown {
  display: none;
  position: absolute;
  top: -1px;
  left: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 300;
}

.dropdown li:hover > .sub-dropdown {
  display: block;
}

.dropdown li > a::after {
  content: "";
}
.dropdown li.has-submenu > a::after {
  content: " ›";
  position: absolute;
  right: 0.8rem;
  color: inherit;
}
.address {
  padding: 10px;
  margin: 0px;
}

.entry-content {
  display: flex;
  flex-direction: column;
  border-right: 1px dotted #eee;
  border-left: 1px dotted #eee;
  padding-left: 1rem;
  padding-right: 1rem;
}

.facultysidebar {
  display: flex;
  flex-direction: column;
}

.main-title {
  display: block;
}
.sub-title {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===========================
     publication page
     =========================== */

.paper-link {
  color: blue;
  text-decoration: none;
  padding-bottom: 1px;
}

.paper-link:hover {
  border-bottom: 2px solid darkblue;
}

.abstract-font-size {
  font-size: x-small;
}

.project-box {
  border: 1px solid #ddd;
}
.publication-first-top {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
}

.citation {
  text-align: justify;
  font-size: 13px;
  font-family: Arial, sans-serif;
  margin: 0;
  font-size: 20px;
}

.publication-first {
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
}

.publication-last {
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
}
.project {
  border-bottom: 1px solid #ddd;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===========================
       People Grid
       =========================== */

:root {
  --avatar-size: 140px;
}

.person-card {
  position: relative;
  width: 220px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 0.8rem;
  height: 310px;
}

.social-icons {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.student-title-position {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  bottom: 65px;
  font-size: 16px;
}

.person-card img.person-photo {
  width: var(--avatar-size) !important;
  height: var(--avatar-size) !important;
  display: block;
  margin: 0 auto 0.6rem;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 1px solid #ccc;
}

.photo-wrapper {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.6rem;
  border: 1px solid #ccc;
}

.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.3s ease;
}

.zoom-photo img {
  transform: scale(1.25) translateY(-8%);
  transform-origin: center center;
}

#alasaad-photo {
  object-fit: cover !important;
  object-position: center 0% !important;
  transition: transform 0.3s ease;
}

.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem;
}

/* ===========================
       Personal link github & linkedin 
       =========================== */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.social {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* LinkedIn 색상 */
.social.linkedin {
  color: #0a66c2;
}
.social.linkedin:hover {
  color: #084d96;
  transform: scale(1.1);
}

.social.github {
  color: #24292f;
}
.social.github:hover {
  color: #000;
  transform: scale(1.1);
}

html {
  overflow-y: scroll;
}

/* ===========================
      Project page
       =========================== */

.members {
  font-size: 16px !important;
}


.remove-bottom-margin{
   margin-bottom: 0;
}