/* Layout */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #003366;
  color: #fff;
  height: 100vh;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 12px 0;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #ffcc00;
}

/* Toggle button for mobile */
.toggle-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  background: #003366;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  z-index: 1100;
}

.toggle-btn:hover {
  background: #0055aa;
}

/* Main Content */
.content {
  margin-left: 260px; /* sidebar width + spacing */
  padding: 20px;
  max-width: 900px;
}

header {
  border-bottom: 2px solid #003366;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  color: #003366;
  font-size: 1.8rem;
}

header p {
  margin: 5px 0 15px;
  font-size: 1rem;
  color: #555;
}

section {
  margin-bottom: 40px;
}

section h2 {
  color: #003366;
  border-bottom: 1px solid #003366;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
}

a {
  color: #003366;
}

a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* ==============================
   Mobile Adjustments
   ============================== */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
    height: 100%;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .toggle-btn {
    display: block;
  }

  .content {
    margin-left: 0;
    padding: 70px 15px 20px; /* push down so toggle button doesn't overlap */
  }
}
/* Hover effect for Research & Teaching sections */
/* Make the whole card clickable */

.hover-link {
  text-decoration: none;   /* remove underline */
  color: inherit;          /* keep text color */
  display: block;          /* make link wrap the whole card */
}

.hover-link:hover {
  text-decoration: none;   /* prevent underline on hover */
}

.hover-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hover-card h2 {
  margin-top: 0;
  transition: color 0.2s ease;
  color: #003366; /* default dark blue */
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #003366;
}

.hover-card:hover h2 {
  color: #91c2f2; /* highlight title on hover */
}
