* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
}

/* Layout */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  margin-left: 240px;
  padding: 60px;
  flex: 1;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #161b22;
  padding: 30px 20px;
  border-right: 1px solid #30363d;
  overflow-y: auto;
}

.logo {
  display: flex;
  flex-direction: column;
  /* Stack vertically */
  align-items: center;
  /* Center horizontally */
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.logo img {
  width: 48px;
  /* Adjust size as needed */
  height: 48px;
  object-fit: contain;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar a {
  color: #c9d1d9;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background: #21262d;
}

.sidebar a.active {
  background: #238636;
  color: #ffffff;
}

/* Category box */
.category {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
}

.category h2 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #30363d;
}

/* Post */
.post {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 18px;
  margin: 0 auto 20px;
  /* center horizontally */
}

.post h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #58a6ff;
}

.post-date {
  color: #8b949e;
  font-size: 12px;
  margin-bottom: 12px;
}

.announcement-text {
  font-size: 14px;
  line-height: 1.6;
  color: #c9d1d9;
}

/* GitHub-style button */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #238636;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(240, 246, 252, 0.1);
  transition: background 0.2s ease;
}

.btn:hover {
  background: #2ea043;
}

/* Responsive */
@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .content {
    margin-left: 0;
    padding: 30px;
  }

  /* REMOVE SCROLL BOX ON MOBILE */
  .announcements-box,
  .events-box {
    max-height: none;
    overflow-y: visible;
  }

  /* Improve staff layout on mobile */
  .staff-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Scrollable Announcements Box */
.announcements-box {
  max-height: 388px;
  /* ~3 posts visible, adjust if needed */
  overflow-y: auto;
  padding-right: 6px;
}

/* Clean scrollbar */
.announcements-box::-webkit-scrollbar {
  width: 8px;
}

.announcements-box::-webkit-scrollbar-track {
  background: #161b22;
}

.announcements-box::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

.announcements-box::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* Scrollable Events Box */
.events-box {
  max-height: 388px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Clean scrollbar for Events */
.events-box::-webkit-scrollbar {
  width: 8px;
}

.events-box::-webkit-scrollbar-track {
  background: #161b22;
}

.events-box::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

.events-box::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* Extra spacing for Neko Squad members */
.staff-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.staff-card img {
  border-radius: 8px;
}

.staff-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.admin-role {
  background: #da3633;
  color: white;
}

.neko-role {
  background: #8250df;
  color: white;
}

.staff-info .btn {
  margin-top: 8px;
  display: inline-block;
}

.site-footer {
  margin-left: 240px;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #8b949e;
  border-top: 1px solid #30363d;
  background: #0d1117;
}

@media (max-width: 768px) {
  .site-footer {
    margin-left: 0;
  }
}