/* about.css - Specific styles for the about/atlas page */
/* General layout */
.sidebar-menu {
  position: relative;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.page-wrapper .top-nav-container {
  padding: 5px 0;
}

.ini-modern-header {
  width: 100%;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  margin: 0 auto;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.header-nav a {
  text-decoration: none;
  letter-spacing: 0px;
  opacity: 1;
}

.header-nav a:hover {
  text-decoration: underline;
}

/* RESPONSIVE - NAVBAR */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #990000;
}

.mobile-nav-wrapper {
  display: none;
  z-index: 999;
}

.mobile-menu-toggle i {
  transition: transform 0.3s ease;
}

/* Sidebar styles */
.sidebar {
  width: 230px;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-menu::before {
  content: "";
  position: absolute;
  top: 105px;
  left: 15px;
  width: 1px;
  height: calc(100% - 150px);
  background-color: rgba(149, 151, 166, 0.5);
  z-index: -2;
}

/* Page4 - People */
#publications-page-wrapper .sidebar-menu::before,
#people-page-wrapper .sidebar-menu::before {
  top: 84px;
  height: calc(100% - 120px);
}

.sidebar-menu-item {
  position: relative;
  list-style: none;
}

.sidebar-link {
  text-decoration: none !important;
  display: block;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background-color: #9597a6;
  border-radius: 50%;
  z-index: 3;
}

.sidebar-link:hover,
.sidebar-link:focus {
  color: white;
}

/* Large outer circle for active item */
.sidebar-link.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 10px solid white;
  border-radius: 50%;
  z-index: -1;
}

.sidebar-link.active {
  color: white !important;
  text-decoration: underline !important;
}

.sidebar-link.active::before {
  background-color: #142352;
}

/* Submenu - page people */
.submenu {
  list-style: none;
  /* padding-left: 25px; */
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.submenu.open {
  max-height: 500px; /* Adjust based on your needs */
}

.submenu-item {
  position: relative;
}

.submenu-link {
  text-decoration: none !important;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.submenu-link:hover,
.submenu-link:focus {
  color: white;
}

.submenu-link.active {
  color: white !important;
}

/* Adjust sidebar link with submenu indicator */
.sidebar-link.has-submenu {
  position: relative;
}

.sidebar-link.has-submenu.active-parent {
  color: white !important;
}

@media (max-width: 576px) {
  .submenu {
    padding-left: 15px;
  }

  .submenu-link::before {
    left: 7px;
  }

  .submenu-link.active::after {
    left: 4px;
  }
}

/* Top navigation */
.top-navbar.sticky-top {
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  z-index: 900;
}

.top-navbar.scrolled,
.top-navbar-mobile.scrolled,
.top-navbar-mobile.scrolled .custom-nav-links.active {
  background-color: white !important;
}

.top-navbar .nav-tabs .nav-link {
  border: none;
}

.top-navbar .nav-tabs {
  border: none;
}

.top-navbar .nav-tabs .nav-link.active {
  color: #000000 !important;
  border-bottom: none;
  background-color: transparent;
  text-decoration: underline !important;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  margin-left: 230px; /* Equal to sidebar width */
  min-height: 100vh;
}

.fa-header-icons {
  font-size: 48px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Fadein-Fadeout */
.main-content .content-section {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.main-content .content-section.fade-out {
  opacity: 0;
}

.top-navbar-mobile {
  display: none !important;
}

.people-content {
  min-height: 80vh;
}

.people-content .profile-content-wrapper img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 75px;
  width: 75px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
}

.people-content .profile-content-wrapper hr {
  opacity: 1;
  color: #f0f1f7;
}

.pub-left-col {
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
}

/* @media (max-width: 1200px) {
  .sidebar {
    width: 210px;
  }

  .main-content {
    margin-left: 210px;
  }
} */

@media (max-width: 992px) {
  .fa-header-icons {
    font-size: 38px;
    left: -6px;
  }

  .mobile-nav {
    flex-direction: column;
    gap: 15px;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 55px;
    left: 25px;
  }

  .mobile-nav-wrapper {
    display: none;
    width: 100%;
    padding: 10px 0;
  }

  .mobile-nav-wrapper.active {
    display: block;
    padding: 10px 30px;
    position: absolute;
    background: #edebeb;
  }

  .top-navbar.sticky-top {
    width: 100%;
    display: none;
  }

  .top-navbar-mobile {
    display: block !important;
    padding: 20px 0 10px;
  }

  .sidebar {
    width: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.active {
    width: 250px;
    transform: translateY(0);
  }

  .sidebar-menu::before {
    top: 110px;
    height: calc(100% - 150px);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    /* cursor: pointer; */
    padding: 15px 30px;
  }

  .sidebar-header {
    text-align: center;
  }

  .sidebar-menu::before {
    top: 90px;
    left: 15px;
    height: calc(100% - 135px);
  }

  .submenu.parent3 li a {
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  #publications-page-wrapper .sidebar-menu::before,
  #people-page-wrapper .sidebar-menu::before {
    top: 80px;
    height: calc(100% - 115px);
  }

  .fa-header-icons {
    font-size: 32px;
  }

  .sidebar-menu::before {
    top: 110px;
    left: 15px;
    height: calc(100% - 140px);
  }
}

@media (max-width: 575px) {
  .sidebar.active {
    width: 100%;
  }
  .fa-header-icons {
    font-size: 26px;
    left: -3px;
  }

  .sidebar-link::before {
    left: 3px;
  }

  .sidebar-link.active::after {
    left: -2px;
  }

  .sidebar-menu::before {
    top: 65px;
    height: calc(100% - 90px);
  }

  #publications-page-wrapper .sidebar-menu::before,
  #people-page-wrapper .sidebar-menu::before {
    top: 70px;
    height: calc(100% - 90px);
  }

  .people-page-container .submenu-link {
    padding: 0.5rem 1rem;
  }

  .hgea-yt {
    width: 100% !important;
  }
}

.hgea-yt {
  width: 75% !important;
}

/* publications.css - Styles for publications page */
.publications-content .border-bottom-gray {
  border-bottom: 1px solid #cccccc;
}

.publications-header {
  border-top: 2px solid #cfd0d1;
}

/* View toggle buttons */
.view-toggle {
  border: 1px solid #e6dbda;
}

.view-toggle .btn-toggle {
  background-color: transparent;
  border: none;
  padding: 3px 6px;
  color: #000000;
  border-radius: 4px;
}

.view-toggle .btn-toggle.active {
  background-color: #f0f1f7;
  color: #990000;
}

.paper-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.paper-item:hover,
.paper-item.active {
  background-color: #ffffff;
}

.paper-thumbnail img {
  height: 80px;
  width: 80px;
  border-radius: 5px;
}

.paper-cover-image {
  max-height: 400px;
  object-fit: contain;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Publications gallery view */
.gallery-item {
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item.active {
  border: 2px solid #cc0000;
}

.gallery-item img {
  height: 150px;
  object-fit: contain;
}

/* Paper details section */
#paper-details {
  position: sticky;
}

.paper-quote {
  min-height: 120px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  #paper-details {
    position: relative;
    top: 0;
  }

  .gallery-item img {
    height: 120px;
  }
}

@media (max-width: 576px) {
  .paper-thumbnail img {
    height: 50px;
  }

  .gallery-item img {
    height: 100px;
  }
}

/* Image Popup Style */

/* Container styling */
.image-container {
  position: relative;
  display: inline-block;
}

/* Magnify Icon */
.magnify-icon {
  position: absolute;
  bottom: 19px;
  right: 17px;
  font-size: 24px;
  border-radius: 50%;
  padding: 22px;
  cursor: pointer;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgb(0, 0, 0, 0.9);
}

.popup-content {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.content-section .image-container {
  max-width: 800px;
}

@media (max-width: 1700px) {
  .content-section .image-container {
    max-width: 700px;
  }
  .magnify-icon {
    padding: 19px;
  }
}

@media (max-width: 1500px) {
  .magnify-icon {
    bottom: 16px;
    right: 14px;
    padding: 18px;
  }

  .content-section .image-container {
    max-width: 650px;
  }
}

@media (max-width: 1400px) {
  .magnify-icon {
    bottom: 14px;
    right: 12px;
    padding: 15px;
  }

  .content-section .image-container {
    max-width: 550px;
  }
}

@media (max-width: 1200px) {
  .magnify-icon {
    bottom: 10px;
    right: 9px;
    padding: 13px;
  }

  .content-section .image-container {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .magnify-icon {
    padding: 11px;
  }
  .content-section .image-container {
    max-width: 400px;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .magnify-icon {
    padding: 9px;
    bottom: 6px;
    right: 6px;
  }
  .content-section .image-container {
    max-width: 300px;
  }
}

.about-pages-header-container {
  height: 480px !important;
  overflow: hidden;
}

.about-pages-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1500px) {
  .about-pages-header-container {
    height: 800px;
  }
}
