:root {
  --navy: #0B1020;
  --navy-soft: #11162A;
  --card: #151A2C;
  --rose-gold: #D9A57B;
  --sand: #E8E2D9;
  --text: #FFFFFF;
  --muted: #A9B0D5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* LAYOUT */

.sidebar {
  width: 240px;
  background: var(--navy-soft);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-logo img {
  height: 64px;
  filter: drop-shadow(
    0 0 8px rgba(217,165,123,0.35)
  );
}

.sidebar-title {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.sidebar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.2rem;
  border-radius: 0.3rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--sand);
  background: rgba(217,165,123,0.12);
}

.sidebar-nav a.active {
  border-left: 3px solid var(--rose-gold);
  padding-left: 0.75rem;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

/* MOBILE HEADER */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11,16,32,0.95);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-header-logo img {
  height: 32px;
}

.mobile-header-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.mobile-menu-button {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.4rem;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
}

/* MOBILE SIDEBAR OVERLAY */

/* MOBILE SIDEBAR OVERLAY */

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--navy-soft);
  padding: 0.75rem 1rem;
  z-index: 19;
  border-bottom: 1px solid rgba(255,255,255,0.08); /* Added a nice bottom border */
}

.mobile-sidebar.open {
  display: block !important; /* Forces it to show when toggled */
}

.mobile-sidebar a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.mobile-sidebar a:hover {
  color: var(--sand);
}

/* MAIN CONTENT */

.main {
  margin-left: 240px;
  padding: 1.5rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 1100px;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.6rem;
  color: var(--sand);
}

.page-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* HERO (INDEX) */

.hero-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-image {
  width: 100%;
  max-width: 360px;
  border-radius: 1rem;
  border: 1px solid rgba(217,165,123,0.4);
  background: var(--card);
  padding: 1rem;
}

/* GRID + CARDS */

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


.card {
  background: var(--card);
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(217,165,123,0.25);
  font-size: 0.9rem;

  display: flex;
  flex-direction: column;
  /* Removed justify-content: space-between so text stays at the top */
  min-height: 260px;

  transition: all 0.2s ease;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--rose-gold);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem; /* Added breathing room before buttons */
}

.muted div {
  margin-bottom: 0.35rem;
}

.card-actions {
  margin-top: auto; /* Pushes action buttons cleanly to the bottom if present */
  text-align: center;
}

.card-actions a {
  display: inline-block;
  margin: 0.25rem;
}

.card-accent {
  border-left: 4px solid var(--rose-gold);
}



/* ANNOUNCEMENTS */

.announcement {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 0;
}

.announcement-title {
  color: var(--sand);
  font-size: 0.95rem;
}

.announcement-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

/* LOGIN */

.login-card {
  max-width: 360px;
  background: var(--card);
  border-radius: 0.9rem;
  padding: 1.25rem;
  border: 1px solid rgba(217,165,123,0.25);
}

.login-card label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.login-card input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1424;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--rose-gold);
  color: #2b1a08;
  font-weight: 600;
}

.btn-primary:hover {
  background: #eabf9a;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(217,165,123,0.15);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .main {
    margin-left: 0;
    padding-top: 3.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-image {
    margin-top: 1rem;
  }
}



