/* --- Left Sidebar Navigation --- */

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body p, body li {
  font-family: 'Merriweather', 'Georgia', serif;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100%;
  background-color: #00539C;
  color: #FFFFFF;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
  margin-bottom: 15px;
}

.sidebar-avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  object-fit: cover;
  object-position: center;
}
}

.sidebar-avatar-img:hover {
  border-color: #b3b3b3;
  transform: scale(1.05);
}

.sidebar-title {
  display: block;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-title:hover {
  color: #b3b3b3;
  text-decoration: none;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu .nav {
  padding-left: 0;
}

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

.sidebar-nav .sidebar-menu .nav-link {
  display: block !important;
  padding: 12px 25px !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-left: 3px solid transparent !important;
  font-family: 'Inter', sans-serif !important;
}

.sidebar-nav .sidebar-menu .nav-link:hover,
.sidebar-nav .sidebar-menu .nav-link:focus {
  color: #00d4ff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-left-color: #00d4ff !important;
  text-decoration: none !important;
}

.sidebar-nav .sidebar-menu .nav-link.active {
  color: #00d4ff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-left-color: #00d4ff !important;
}

.sidebar-menu .sub-menu {
  padding-left: 0;
  display: none;
}

.sidebar-menu .sub-menu .nav-link {
  padding-left: 40px;
  font-size: 12px;
  text-transform: none;
}

/* Main content adjustment for sidebar */
.main-content,
.container {
  margin-left: 260px !important;
  padding-top: 40px !important;
  position: relative;
}

.container {
  padding-left: 30px;
  padding-right: 30px;
}

/* Space background styling */
body {
  background-image: url('/img/coronaAustralis_l1500.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Add semi-transparent overlay for readability */
.main-content::before,
.container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.80);
  z-index: -1;
}

.content-section {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  padding: 60px 40px;
  margin-bottom: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media only screen and (min-width: 768px) {
  .main-content,
  .container {
    padding-top: 60px !important;
  }
}

/* Section titles styling */
.content-section h2.post-title {
  color: #0c2f55 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.content-section h3.post-title {
  color: #1a5490 !important;
}

/* Mobile responsiveness */
@media only screen and (max-width: 767px) {
  .sidebar-nav {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }
  
  .sidebar-nav.active {
    transform: translateX(0);
  }
  
  .main-content,
  .container {
    margin-left: 0 !important;
  }
  
  .main-content::before,
  .container::before {
    left: 0;
  }
  
  .content-section {
    padding: 40px 20px;
    border-radius: 0;
  }
}

/* Hide old navbar */
.navbar-custom {
  display: none !important;
}

.navbar-custom .avatar-container {
  display: none !important;
}

/* Project collapsible sections */
.project-item {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.project-title {
  cursor: pointer;
  padding: 20px;
  margin: 0;
  font-size: 1.3em;
  font-weight: 700;
  color: #0c2f55;
  background: rgba(255, 255, 255, 0.9);
  transition: background-color 0.3s ease;
  user-select: none;
}

.project-title:hover {
  background: rgba(255, 255, 255, 1);
}

.toggle-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.project-title.active .toggle-icon {
  transform: rotate(90deg);
}

.project-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
  opacity: 0;
  visibility: hidden;
}

.project-content.expanded {
  max-height: 5000px;
  padding: 0 20px 20px 20px;
  opacity: 1;
  visibility: visible;
}

/* Publications layout */
.publications-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
  text-align: left;
}

.publication-column {
  display: flex !important;
  flex-direction: column;
  gap: 30px;
}

.publication-item {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pub-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #0c2f55;
  flex: 1;
  padding-right: 15px;
}

.pub-title a {
  color: #0c2f55;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pub-title a:hover {
  color: #1a5490;
  text-decoration: underline;
}

.pub-date {
  font-size: 0.9em;
  color: #666;
  white-space: nowrap;
  font-weight: 400;
}

.pub-authors {
  margin: 0 0 10px 0;
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}

.pub-authors .author-highlight {
  font-weight: 700;
}

.pub-abstract {
  font-size: 0.95em;
  line-height: 1.6;
}

.abstract-preview {
  margin: 0 0 10px 0;
}

.abstract-full {
  display: none;
  margin: 10px 0;
}

.abstract-full.show {
  display: block;
}

.read-more {
  color: #1a5490;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9em;
  display: inline-block;
  margin-top: 5px;
}

.read-more:hover {
  text-decoration: underline;
  color: #0c2f55;
}

@media only screen and (max-width: 992px) {
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
