:root {
  --aju-green: #1B4D2E;
  --aju-green-dark: #123420;
  --aju-green-darker: #0C2417;
  --aju-gold: #C9A227;
  --aju-gold-dark: #A9861D;
  --aju-gold-light: #E8C766;
  --aju-cream: #F7F5EF;
  --aju-white: #FFFFFF;
  --aju-text: #1A1A1A;
  --aju-text-muted: #5A5A55;
  --aju-border: #E3E0D5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--aju-cream);
  color: var(--aju-text);
}

h1, h2, h3, h4, p, span, a, button, input, label {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

h1, h3, h4 { font-weight: 700; }

/* ================= Layout: sidebar + main ================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--aju-green);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.sidebar.collapsed { width: 76px; }
.sidebar.collapsed .label,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-footer .muted,
.sidebar.collapsed .sidebar-footer .user-name { display: none; }
.sidebar.collapsed .menu-item { justify-content: center; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand-icon { font-size: 30px; background: rgba(255,255,255,0.08); padding: 8px 10px; border-radius: 8px; color: var(--aju-gold-light); }
.brand-text { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-text small { display: block; font-weight: 400; font-size: 11px; color: var(--aju-gold-light); }

.brand-motto {
  font-size: 10.5px;
  font-style: italic;
  letter-spacing: 0.6px;
  color: rgba(232,199,102,0.75);
  margin: 0 0 16px 2px;
}
.sidebar.collapsed .brand-motto { display: none; }

.collapse-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.collapse-btn:hover { background: rgba(255,255,255,0.08); }

.collapse-btn .bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--aju-gold-light);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animate into an X when the sidebar is collapsed */
.sidebar.collapsed .collapse-btn .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar.collapsed .collapse-btn .bar:nth-child(2) { opacity: 0; }
.sidebar.collapsed .collapse-btn .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search inside sidebar, above the menu */
.sidebar .search-box {
  display: flex;
  margin-bottom: 18px;
}
.sidebar .search-box input {
  border: none;
  padding: 8px 10px;
  flex: 1;
  border-radius: 6px 0 0 6px;
  font-size: 0.85rem;
  min-width: 0;
  font-family: 'Raleway', sans-serif;
}
.sidebar .search-box button {
  border: none;
  background-color: var(--aju-gold);
  color: var(--aju-green-dark);
  font-weight: 600;
  padding: 0 12px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.sidebar .search-box button:hover { background-color: var(--aju-gold-light); }

/* Menu */
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: #e6eefb; text-decoration: none; font-size: 0.9rem;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.menu-item .icon { font-size: 17px; width: 22px; text-align: center; color: var(--aju-gold-light); transition: transform 0.15s ease; }
.menu-item:hover { background: rgba(255,255,255,0.06); padding-left: 16px; }
.menu-item:hover .icon { transform: scale(1.12); }
.menu-item.active { background: rgba(255,255,255,0.1); }
.menu-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background-color: var(--aju-gold);
}
.sidebar.collapsed .menu-item.active::before { display: none; }

.menu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #5FBF6E;
  box-shadow: 0 0 0 2px rgba(95,191,110,0.25);
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar.collapsed .menu-dot { display: none; }

.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; }
.sidebar-footer .muted { color: rgba(255,255,255,0.7); }
.sidebar-footer .user-name { color: var(--aju-gold-light); }

/* ================= Main content ================= */
.main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
  transition: margin-left 0.28s ease;
}
.sidebar.collapsed ~ .main { margin-left: 76px; }


.hero {
  background-color: var(--aju-green-dark);
  color: var(--aju-white);
  padding: 60px 24px 44px;
  text-align: center;
}
.hero h1 { font-size: 2.1rem; margin-bottom: 10px; letter-spacing: 0.5px; }
.hero p.lead { color: var(--aju-gold-light); margin: 0 auto 28px; max-width: 640px; font-size: 1rem; }

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  border-radius: 6px 0 0 6px;
  font-size: 0.95rem;
  font-family: 'Raleway', sans-serif;
}
.hero-search button {
  border: none;
  background-color: var(--aju-gold);
  color: var(--aju-green-dark);
  font-weight: 700;
  padding: 0 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-search button:hover { background-color: var(--aju-gold-light); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  justify-content: center;
}
.status-badge a { color: var(--aju-gold-light); text-decoration: none; }
.status-badge a:hover { text-decoration: underline; }
.status-divider { color: rgba(255,255,255,0.4); }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background-color: #8a8a85;
  display: inline-block;
}
.status-badge.is-open .status-dot { background-color: #5FBF6E; box-shadow: 0 0 0 3px rgba(95,191,110,0.2); }
.status-badge.is-open .status-text { color: #B7E8BE; font-weight: 600; }
.status-badge.is-closed .status-dot { background-color: #E0736B; box-shadow: 0 0 0 3px rgba(224,115,107,0.2); }
.status-badge.is-closed .status-text { color: #F2BAB5; font-weight: 600; }

/* ---- Quick Links ---- */
.quick-links { padding: 40px 24px 10px; }
.quick-links h2 {
  font-weight: 400;
  color: var(--aju-text-muted);
  text-align: center;
  font-size: 1rem;
  max-width: 760px;
  margin: 0 auto 24px;
}

.quick-link-card {
  background-color: var(--aju-white);
  border: 1px solid var(--aju-border);
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.quick-link-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(27,77,46,0.12); }
.quick-link-card i { font-size: 1.8rem; color: var(--aju-green); margin-bottom: 10px; display: block; }
.quick-link-card span { font-size: 0.95rem; color: var(--aju-text); font-weight: 600; }

/* ---- Quick Access collapsible ---- */
.quick-access { padding: 30px 24px 0; }
.quick-access-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--aju-green);
  color: var(--aju-white);
  border: none;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}
.quick-access-toggle:hover { background-color: var(--aju-green-dark); }
.qa-left { display: flex; align-items: center; gap: 10px; }
.qa-left i { color: var(--aju-gold-light); font-size: 1.2rem; }
.qa-chevron { transition: transform 0.2s ease; }
.qa-chevron.open { transform: rotate(180deg); }

.quick-access-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background-color: var(--aju-white);
  border: 1px solid var(--aju-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 18px 20px;
}
.qa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: var(--aju-cream);
  color: var(--aju-green-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--aju-border);
}
.qa-item i { color: var(--aju-gold-dark); font-size: 1.1rem; }
.qa-item:hover { border-color: var(--aju-gold); color: var(--aju-green); }

/* ---- Section title ---- */
.section-title { border-left: 4px solid var(--aju-gold); padding-left: 12px; margin-bottom: 24px; color: var(--aju-green-dark); }

/* ---- Research guides ---- */
.guide-card {
  background-color: var(--aju-white);
  border: 1px solid var(--aju-border);
  border-radius: 8px;
  padding: 16px;
  font-weight: 600;
  color: var(--aju-green-dark);
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.guide-card:hover { border-color: var(--aju-gold); color: var(--aju-green); }

/* ---- Ask a Librarian ---- */
.ask-librarian { padding: 10px 24px 40px; }
.ask-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background-color: var(--aju-green-dark);
  color: var(--aju-white);
  border-radius: 12px;
  padding: 32px;
}
.ask-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--aju-gold-light);
}
.ask-content h3 { margin: 0 0 10px; font-size: 1.3rem; }
.ask-content p { margin: 0 0 18px; color: rgba(255,255,255,0.85); max-width: 640px; line-height: 1.5; }
.btn-gold {
  display: inline-block;
  background-color: var(--aju-gold);
  color: var(--aju-green-dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-gold:hover { background-color: var(--aju-gold-light); }

/* ---- News ---- */
.news-section { padding: 10px 24px 40px; }
.news-item {
  background-color: var(--aju-white);
  border: 1px solid var(--aju-border);
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}
.news-date { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--aju-gold-dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.news-item h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--aju-green-dark); }
.news-item p { margin: 0; color: var(--aju-text-muted); font-size: 0.9rem; line-height: 1.5; }
/* ---- News ---- */
.news-section { padding: 10px 24px 40px; }
.news-item {
  position: relative;
  background-color: var(--aju-white);
  border: 1px solid var(--aju-border);
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.news-item:hover { border-color: var(--aju-gold); box-shadow: 0 6px 16px rgba(27,77,46,0.1); transform: translateY(-2px); }
.news-item:focus-visible { outline: 2px solid var(--aju-gold); outline-offset: 2px; }
.news-item.is-selected {
  border-color: var(--aju-gold);
  background-color: var(--aju-cream);
  box-shadow: 0 0 0 2px rgba(201,162,39,0.3);
}
.news-unread-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--aju-gold);
}
.news-item.is-read .news-unread-dot { display: none; }
.news-date { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--aju-gold-dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.news-item h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--aju-green-dark); }
.news-item p { margin: 0; color: var(--aju-text-muted); font-size: 0.9rem; line-height: 1.5; }
.news-item .news-detail {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--aju-border);
}
.news-item.is-selected .news-detail { display: block; }
.news-toggle {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--aju-green);
}
.news-item.is-selected .news-toggle { display: none; }


/* ---- Admissions CTA ---- */
.admissions-cta { padding: 10px 24px 50px; }
.admissions-card {
  background: linear-gradient(135deg, var(--aju-gold) 0%, var(--aju-gold-dark) 100%);
  color: var(--aju-green-darker);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.admissions-eyebrow { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; opacity: 0.85; }
.admissions-card h3 { margin: 0 0 8px; font-size: 1.5rem; }
.admissions-card p { margin: 0; max-width: 520px; font-size: 0.95rem; line-height: 1.5; }
.btn-apply {
  flex-shrink: 0;
  display: inline-block;
  background-color: var(--aju-green-dark);
  color: var(--aju-white);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-apply:hover { background-color: var(--aju-green-darker); }

/* ---- Gallery ---- */
.gallery-section { background-color: var(--aju-white); padding: 50px 24px; }
.carousel-item img { height: 380px; object-fit: cover; border-radius: 8px; }

/* ---- Video ---- */
.video-section { padding: 50px 24px; }
.video-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* ---- Footer ---- */
footer {
  background-color: var(--aju-green-darker);
  color: var(--aju-cream);
  padding: 34px 24px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col { min-width: 220px; }
.footer-brand { font-weight: 700; color: var(--aju-white); margin-bottom: 6px; font-size: 1rem; }
.footer-line { margin-bottom: 6px; color: rgba(247,245,239,0.85); }
footer a { color: var(--aju-gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-link { display: inline-block; }

@media (max-width: 768px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .sidebar.collapsed { width: 100%; }
  .main { margin-left: 0; }
}