:root {
  --primary-blue: #1a237e;
  --deep-red: #b81818;
  --sidebar-width: 260px;
  --bg-light: #f4f7f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

.portal-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
}

.portal-wrapper {
  display: flex;
  flex: 1;
  align-items: flex-start;
  width: 100%;
}

.sidebar-nav {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 25px 15px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  height: fit-content;
  margin-bottom: 20px;
}

.sidebar-header {
  background: var(--deep-red);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.main-content {
  flex: 1;
  background: #f4f7f6;
  min-height: 100vh;
  border-left: 1px solid #e0e0e0;
}

.content-frame {
  width: 100%;
  border: none;
  display: block;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav ul li a {
  display: block;
  padding: 12px 15px;
  background: #f8f9fa;
  text-decoration: none;
  color: #444;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  transition: 0.3s;
  font-size: 1rem;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active-link {
  background: var(--deep-red);
  color: #ffffff;
}

@media (max-width: 768px) {
  .portal-wrapper {
    flex-direction: column;
  }

  .sidebar-nav {
    width: 100%;
    position: relative;
    top: 0;
  }
}
