:root {
  --maroon: #992121; /* For SOL branding */
  --nav-link: #6c2bc2;
  --magenta: #c714b6;
  --dark-purple-btn: #4b457f;
  --bright-purple: #6a14e6;
  --dark-bg: #3f395c;
  --text-light: #f5f5f5;
  --ink: #2a2a2a;
  --paper: #ffffff;
  --muted: #aaaaaa;
  --border: #e4d9d9;
  --new-red: #d1272f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

/* Navbar */
.navbar {
  background: linear-gradient(90deg, #b0b4f8 0%, #ffffff 15%, #ffffff 85%, #b0b4f8 100%);
  border-bottom: none;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--maroon);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--nav-link);
  color: var(--nav-link);
  font-size: 1.2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  border-bottom-color: var(--nav-link);
}

/* Action Buttons in Navbar */
.subbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-align: center;
  color: #fff;
}
.pill-magenta {
  background: var(--magenta);
}
.pill-magenta:hover { background: #b010a0; }
.pill-solid {
  background: var(--dark-purple-btn);
}
.pill-solid:hover { background: #3b3666; }

/* Hero letterhead */
.hero {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.hero-logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}
.hero-text p {
  margin: 0.2rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bright-purple);
}

/* Purple Divider */
.purple-divider {
  max-width: 1200px;
  margin: 0 auto 2rem;
  height: 24px;
  background: var(--bright-purple);
  border-radius: 4px;
}

/* Notices */
.notices-wrap {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}
.notices-heading {
  text-align: center;
  font-size: 1.4rem;
  background: var(--bright-purple);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0;
}
.refresh-btn {
  background: #f1f1f1;
  border: 1px solid #ccc;
  color: var(--ink);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.refresh-btn:hover { background: #e2e2e2; }

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--dark-bg);
  border-radius: 6px;
  overflow-y: auto;
  max-height: 500px;
}

/* Custom Scrollbar for notice-list */
.notice-list::-webkit-scrollbar {
  width: 8px;
}
.notice-list::-webkit-scrollbar-track {
  background: #f1f1f1; 
  border-radius: 4px;
}
.notice-list::-webkit-scrollbar-thumb {
  background: #c1c1c1; 
  border-radius: 4px;
}
.notice-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8; 
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-light);
  border-bottom: none;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: transparent; }

.notice-link {
  color: var(--text-light);
  font-weight: 400;
  text-decoration: underline;
}
.notice-link:hover { color: #d4d4fc; }

.new-badge {
  color: #fff;
  background: #e51d1d;
  font-weight: 800;
  font-size: 0.65rem;
  font-style: italic;
  border: 1px dashed #f5db2c;
  border-radius: 12px;
  padding: 0.1rem 0.4rem;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.register-link {
  font-size: 0.82rem;
  color: #fff;
  background: #d6363f;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}
.register-link:hover { background: #b5252d; text-decoration: none; }

.empty-state, .error-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--bright-purple);
  color: #f0e6e6;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer strong { color: #fff; }
.footer-address, .footer-contact { max-width: 500px; margin: 0 auto 1rem; line-height: 1.5; }
.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.social-row a {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
}
.social-row a:hover { background: rgba(255,255,255,0.1); }
.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: #d8c6c6;
}

/* Responsive */
@media (max-width: 900px) {
  .subbar { flex-basis: 100%; justify-content: center; margin-top: 0.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }
  .nav-links.open { display: flex; }
  .hero { flex-direction: column; }
}
