/* ============================================================
   IIT MADRAS – BS in Data Science & Machine Learning
   Admission Portal Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  /* Institutional Navy + Gold palette */
  --navy-950: #0a0e1a;
  --navy-900: #0d1321;
  --navy-800: #131b2e;
  --navy-700: #1a2540;
  --navy-600: #243054;
  --navy-500: #2f4068;
  --navy-400: #4a5f8a;
  --navy-300: #7389b5;
  --navy-200: #a3b4d4;
  --navy-100: #d1daea;

  --gold-500: #c9a84c;
  --gold-400: #ddbf5f;
  --gold-300: #e8d07e;
  --gold-200: #f0dfa0;

  --success-500: #22c55e;
  --success-400: #4ade80;
  --success-bg: rgba(34, 197, 94, 0.08);
  --success-border: rgba(34, 197, 94, 0.2);

  --warning-500: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.08);
  --warning-border: rgba(245, 158, 11, 0.2);

  --danger-500: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-border: rgba(239, 68, 68, 0.2);

  --info-500: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.08);
  --info-border: rgba(59, 130, 246, 0.2);

  --white: #ffffff;
  --text-primary: #f0f2f8;
  --text-secondary: #a3b4d4;
  --text-muted: #7389b5;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(201,168,76,0.12);

  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1280px;
  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-950);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-300);
}

/* ---------- Top Announcement Bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, var(--gold-500), #b8942e, var(--gold-500));
  color: var(--navy-950);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 100;
}

.announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-bar .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--navy-900);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-text .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-brand-text .subtitle {
  font-size: 11px;
  color: var(--gold-400);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--gold-400);
  background: rgba(201, 168, 76, 0.08);
}

.nav-cta {
  background: var(--gold-500);
  color: var(--navy-950) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--gold-400) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.4) 0%,
    rgba(10, 14, 26, 0.7) 50%,
    var(--navy-950) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 50px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success-400);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .badge-icon {
  width: 18px;
  height: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gold {
  color: var(--gold-400);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-400);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.hero-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Main Content Area ---------- */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ---------- Dashboard Grid ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* ---------- Card Component ---------- */
.card {
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.15);
  box-shadow: var(--shadow-glow);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 svg {
  width: 20px;
  height: 20px;
  color: var(--gold-400);
}

.card-body {
  padding: 24px;
}

/* ---------- Status Badge ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-concluded {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-500);
}

.status-active {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-400);
}

.status-upcoming {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-500);
}

.status-closed {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-500);
}

/* ---------- Exam Status Card ---------- */
.exam-status-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.02));
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.exam-status-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--info-500);
  border-radius: 4px 0 0 4px;
}

.exam-status-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.exam-status-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.exam-status-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.exam-meta-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.exam-meta-item .meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.exam-meta-item .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--navy-500);
  z-index: 1;
}

.timeline-item.completed::before {
  background: var(--success-500);
  border-color: var(--success-500);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.timeline-item.current::before {
  background: var(--info-500);
  border-color: var(--info-500);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 16px rgba(59, 130, 246, 0.5); }
}

.timeline-item.upcoming::before {
  background: var(--navy-700);
  border-color: var(--navy-500);
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.timeline-item.completed .timeline-title {
  color: var(--text-secondary);
}

/* ---------- Info Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 12px 0;
  font-size: 14px;
}

.info-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 42%;
  padding-right: 12px;
}

.info-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Sidebar Cards ---------- */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Card */
.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-950);
  border: 3px solid rgba(201, 168, 76, 0.3);
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-id {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.profile-details {
  text-align: left;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row .label {
  color: var(--text-muted);
}

.profile-row .value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-sans);
  width: 100%;
  text-align: left;
}

.action-btn:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.15);
  color: var(--text-primary);
  transform: translateX(4px);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.action-btn .arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.action-btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Results Section ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.result-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.result-metric:hover {
  border-color: rgba(201, 168, 76, 0.15);
  background: rgba(201, 168, 76, 0.04);
}

.result-metric .metric-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-400);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.result-metric .metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 4px;
}

/* Score Breakdown Table */
.score-table {
  width: 100%;
  border-collapse: collapse;
}

.score-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.score-table thead th:last-child {
  text-align: right;
}

.score-table tbody td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.score-table tbody td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold-400);
}

.score-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.score-table tbody tr:last-child td {
  border-bottom: none;
}

/* Score Bar */
.score-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.score-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 1s ease-out;
}

/* ---------- Notices / Alerts ---------- */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.notice-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notice-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-icon.info {
  background: var(--info-bg);
  color: var(--info-500);
}

.notice-icon.warning {
  background: var(--warning-bg);
  color: var(--warning-500);
}

.notice-icon.success {
  background: var(--success-bg);
  color: var(--success-400);
}

.notice-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notice-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.notice-text .date {
  font-size: 11px;
  color: var(--navy-400);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ---------- Important Dates Grid ---------- */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.date-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.date-cell:hover {
  border-color: rgba(201, 168, 76, 0.12);
  background: rgba(201, 168, 76, 0.03);
}

.date-cell .date-event {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.date-cell .date-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-400);
  font-family: var(--font-mono);
}

.date-cell .date-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.date-cell.past {
  opacity: 0.6;
}

.date-cell.past .date-value {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ---------- Sections below dashboard ---------- */
.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Score Circle ---------- */
.score-circle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.score-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.score-circle .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}

.score-circle .fill {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-circle .score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle .score-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-400);
  font-family: var(--font-mono);
  line-height: 1;
}

.score-circle .score-total {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-circle .score-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .exam-meta-grid {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-row {
    grid-template-columns: 1fr;
  }
  .dates-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-stat .stat-num {
    font-size: 22px;
  }
}

/* ---------- Hamburger Animation ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 24px;
}

/* ---------- Tooltip ---------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--navy-700);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ---------- Admission Process Flow ---------- */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.process-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--navy-700);
  color: var(--text-muted);
  border: 2px solid var(--navy-600);
  transition: all 0.3s ease;
}

.process-step.completed .step-number {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success-400);
  border-color: rgba(34, 197, 94, 0.3);
}

.process-step.current .step-number {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info-500);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.process-step.upcoming .step-number {
  opacity: 0.5;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.process-step.upcoming .step-title,
.process-step.upcoming .step-desc {
  opacity: 0.5;
}

/* ---------- IAT Cutoff Box ---------- */
.iat-cutoff-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cutoff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--warning-500);
  margin-bottom: 14px;
}

.cutoff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.cutoff-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cutoff-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.cutoff-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-400);
  font-family: var(--font-mono);
}

.cutoff-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Syllabus Grid ---------- */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.syllabus-subject {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
}

.syllabus-subject:hover {
  border-color: rgba(201, 168, 76, 0.15);
  background: rgba(201, 168, 76, 0.03);
}

/* Make the last item (Bash) span full width if odd count */
.syllabus-grid .syllabus-subject:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.subject-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.subject-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.subject-icon.eng {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.subject-icon.ct {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.subject-icon.math {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.subject-icon.py {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.subject-icon.bash {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.subject-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.subject-marks {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.topic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-500);
}

/* Responsive for new components */
@media (max-width: 768px) {
  .cutoff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
  .syllabus-grid .syllabus-subject:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* ---------- Print Utility ---------- */
@media print {
  .nav, .announcement-bar, .footer, .quick-actions {
    display: none;
  }
  body {
    background: white;
    color: #111;
  }
  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
