/* ═══════════════════════════════════════════════════════════════
   ADRA Intelligence — styles.css
   Atria Institute of Technology · ASIP Ecosystem
   Minimalist, Razor-Sharp Professional Design (No Gradients)
   Fully Optimized for Desktop, Tablet, and Mobile
═══════════════════════════════════════════════════════════════ */

:root {
  /* Atria Brand & Neutral Palette (Solid, High-Contrast, No Gradients) */
  --bg-main:       #0A0C10;
  --bg-surface:    #12151C;
  --bg-card:       #181C26;
  --bg-card-hover: #1F2430;
  --bg-subtle:     #252B3A;

  /* Atria Signature Red */
  --atria-red:        #C91D2E;
  --atria-red-hover:  #A81423;
  --atria-red-subtle: rgba(201, 29, 46, 0.12);
  --atria-red-border: rgba(201, 29, 46, 0.35);

  /* Functional Accents (Solid & Minimal) */
  --accent-blue:   #2563EB;
  --accent-slate:  #475569;
  --accent-emerald:#059669;

  /* Typography Colors */
  --text-main:     #FFFFFF;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;
  --text-subtle:   #475569;

  /* Precision Borders & Radii */
  --border-subtle: #242936;
  --border-strong: #374151;
  --border-focus:  #C91D2E;
  
  --radius-sm:     4px;
  --radius-md:     6px;
  --radius-lg:     8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg-main);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   SVG ICON SYSTEM
───────────────────────────────────────── */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────── */
.announcement {
  background: var(--atria-red);
  color: #FFFFFF;
  text-align: center;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--atria-red-hover);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement span {
  opacity: 0.9;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   HEADER & NAVBAR
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-header-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}

.nav-adra-badge {
  display: flex;
  flex-direction: column;
}

.adra-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.adra-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  background: var(--atria-red);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
}

.adra-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}

.nav-pill-link:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.nav-pill-link.active {
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--atria-red);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.btn-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--atria-red);
  color: #FFFFFF;
  border: 1px solid var(--atria-red-hover);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ask img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.btn-ask:hover {
  background: var(--atria-red-hover);
}

/* ─────────────────────────────────────────
   PAGE WRAPPER & HERO
───────────────────────────────────────── */
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.hero {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
}
.hero-badge-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero h1 span.highlight {
  color: var(--atria-red);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   KPI METRIC STRIP (Sharp, Minimalist)
───────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto 44px;
}

.kpi-cell {
  background: var(--bg-surface);
  padding: 16px 12px;
  text-align: center;
  transition: background 0.15s;
}
.kpi-cell:hover {
  background: var(--bg-card);
}

.kpi-val {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
  color: var(--text-main);
}
.kpi-val.red { color: var(--atria-red); }

.kpi-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

/* ─────────────────────────────────────────
   MAIN GRID (Chat + Sidebar)
───────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

/* ─────────────────────────────────────────
   CHAT PANEL
───────────────────────────────────────── */
.chat-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 680px;
  overflow: hidden;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bot-avatar-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.chat-bot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}
.chat-bot-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-topbar-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Chat Messages Stream */
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--border-strong); }

.msg-row {
  display: flex;
  gap: 10px;
}
.msg-row.user {
  flex-direction: row-reverse;
}

.msg-av {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.msg-av.bot-av {
  border-color: var(--atria-red-border);
}
.msg-av img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.msg-av .svg-icon {
  width: 16px;
  height: 16px;
}

.msg-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

.msg-row.bot .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.msg-row.user .msg-bubble {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

/* Typing Indicator */
.typing-row {
  display: flex;
  gap: 10px;
}
.typing-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Result Cards Inside Chat */
.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--atria-red);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.result-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  border-left-color: var(--atria-red);
}

.rc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rc-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--atria-red);
  letter-spacing: 0.08em;
}
.rc-dept {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 1px 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.rc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.35;
}
.rc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.rc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.chip .svg-icon {
  width: 11px;
  height: 11px;
}

.rc-students {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}
.rc-students .svg-icon {
  width: 12px;
  height: 12px;
}

/* Synergy Box */
.synergy-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}
.synergy-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--atria-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.synergy-header .svg-icon {
  width: 13px;
  height: 13px;
}

/* Suggestion Chips (Smooth Horizontal Scroll on Mobile) */
.chat-suggestions {
  padding: 0 16px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sugg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sugg-chip .svg-icon {
  width: 12px;
  height: 12px;
}
.sugg-chip:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

/* Input Row */
.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--bg-surface);
}
.chat-textarea {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 100px;
  min-height: 42px;
  line-height: 1.4;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.chat-textarea:focus {
  border-color: var(--border-focus);
}
.chat-textarea::placeholder {
  color: var(--text-dim);
}

.send-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--atria-red);
  border: 1px solid var(--atria-red-hover);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.send-btn .svg-icon {
  width: 16px;
  height: 16px;
}
.send-btn:hover {
  background: var(--atria-red-hover);
}
.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gemini-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  padding: 0 16px 8px;
  font-weight: 500;
  line-height: 1.35;
}
.gemini-badge .svg-icon {
  width: 12px;
  height: 12px;
}

/* ─────────────────────────────────────────
   SIDEBAR PANELS (Sharp & Solid)
───────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h3 {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.panel-head h3 .svg-icon {
  width: 13px;
  height: 13px;
  color: var(--atria-red);
}
.count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.search-wrap {
  padding: 10px 14px 6px;
  position: relative;
}
.search-icon-abs {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--text-dim);
}
.sidebar-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px 8px 30px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.sidebar-search:focus {
  border-color: var(--border-focus);
}
.sidebar-search::placeholder {
  color: var(--text-dim);
}

.dept-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 14px 10px;
}
.dept-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dept-tab:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}
.dept-tab.active {
  background: var(--atria-red);
  border-color: var(--atria-red-hover);
  color: #FFFFFF;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 10px 14px;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.theme-btn .svg-icon {
  width: 12px;
  height: 12px;
}
.theme-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.proj-scroll {
  overflow-y: auto;
  max-height: 400px;
  -webkit-overflow-scrolling: touch;
}
.proj-scroll::-webkit-scrollbar { width: 3px; }
.proj-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); }

.proj-row {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}
.proj-row:last-child {
  border-bottom: none;
}
.proj-row:hover {
  background: var(--bg-card);
}
.proj-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.proj-row-id {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--atria-red);
  letter-spacing: 0.06em;
}
.proj-row-dept {
  font-size: 9.5px;
  color: var(--text-dim);
  font-weight: 600;
}
.proj-row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}
.proj-row-guide {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-dim);
}
.proj-row-guide .svg-icon {
  width: 11px;
  height: 11px;
}
.proj-row-users {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.proj-row-users .svg-icon {
  width: 11px;
  height: 11px;
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.info-section {
  margin: 52px 0 36px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--atria-red);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-main);
}
.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 680px;
  line-height: 1.65;
}

.sem-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.sem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.sem-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.sem-card-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--atria-red);
  margin-bottom: 4px;
}
.sem-card-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sem-card-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 5px;
  line-height: 1.4;
}
.sem-card.highlight {
  border-color: var(--atria-red-border);
  background: var(--atria-red-subtle);
}

/* ─────────────────────────────────────────
   FOOTER (Branded with Atria Footer Banner)
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 32px 32px 24px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-banner-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-adra-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.footer-adra-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}
.footer-adra-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────
   MODAL WINDOW
───────────────────────────────────────── */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-bg.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s;
}
.modal-close-btn .svg-icon {
  width: 16px;
  height: 16px;
}
.modal-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.modal-proj-id-line {
  font-size: 10.5px;
  color: var(--atria-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-right: 32px;
}
.modal-proj-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-main);
  padding-right: 32px;
}
.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.meta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.meta-box-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 2px;
}
.meta-box-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.modal-section {
  margin-top: 14px;
}
.modal-section-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 5px;
}
.modal-section-body {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.students-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.student-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
}
.student-tag .svg-icon {
  width: 11px;
  height: 11px;
  color: var(--atria-red);
}

/* ═════════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS
═════════════════════════════════════════ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  header { padding: 0 20px; }
  .page-wrap { padding: 0 20px 48px; }
  .main-grid { grid-template-columns: 1fr; }
  .chat-panel { height: 600px; }
  .kpi-strip { grid-template-columns: repeat(5, 1fr); }
  .sem-track { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 0 14px;
    height: 58px;
  }
  .brand-header-img {
    height: 30px;
    max-width: 130px;
  }
  .brand-divider {
    display: none;
  }
  .nav-adra-badge {
    display: none;
  }
  .nav-pills {
    display: none;
  }
  .nav-counter {
    display: none;
  }
  .btn-ask {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .page-wrap {
    padding: 0 14px 40px;
  }

  .hero {
    padding: 28px 0 24px;
  }
  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 22px;
  }

  /* Compact 2-3 Column KPI Grid */
  .kpi-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 28px;
  }
  .kpi-cell {
    padding: 12px 6px;
  }
  .kpi-val {
    font-size: 20px;
  }
  .kpi-lbl {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  /* Chat Panel on Mobile */
  .chat-panel {
    height: 520px;
    border-radius: var(--radius-sm);
  }
  .chat-topbar {
    padding: 10px 14px;
  }
  .chat-bot-name {
    font-size: 12.5px;
  }
  .chat-bot-sub {
    font-size: 10px;
  }
  .chat-topbar-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .chat-msgs {
    padding: 12px 14px;
    gap: 12px;
  }
  .msg-bubble {
    max-width: 88%;
    padding: 10px 12px;
    font-size: 13px;
  }
  .result-card {
    padding: 10px 12px;
  }

  /* Horizontal Scroll for Suggestion Chips on Mobile */
  .chat-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 14px 8px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chat-suggestions::-webkit-scrollbar {
    display: none;
  }
  .sugg-chip {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 9px;
  }

  .chat-input-row {
    padding: 10px 12px;
    gap: 6px;
  }
  .chat-textarea {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 38px;
  }
  .send-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .gemini-badge {
    padding: 0 12px 6px;
    font-size: 9px;
  }

  /* Sidebar Panels on Mobile */
  .sidebar {
    margin-top: 6px;
  }
  .panel-head {
    padding: 10px 14px;
  }
  .search-wrap {
    padding: 8px 12px 6px;
  }
  .dept-tabs {
    padding: 0 12px 8px;
  }
  .theme-grid {
    padding: 8px 12px;
    gap: 5px;
  }
  .proj-scroll {
    max-height: 320px;
  }

  /* About & Timeline */
  .info-section {
    margin: 36px 0 24px;
  }
  .section-title {
    font-size: 19px;
  }
  .section-desc {
    font-size: 13px;
  }
  .sem-track {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sem-card {
    padding: 12px 10px;
  }
  .sem-card-num {
    font-size: 17px;
  }

  /* Footer on Mobile */
  footer {
    padding: 24px 14px 18px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-banner-img {
    height: 32px;
  }
  .footer-adra-info {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Modal on Mobile */
  .modal-box {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .modal-proj-title {
    font-size: 16px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Screens (max-width: 400px) */
@media (max-width: 400px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .sem-track {
    grid-template-columns: 1fr;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
}
