/* =========================================================
   ANTI-RAGGING CELL & POLICIES — STYLESHEET
   Department of Life Sciences, GNIPST
   ========================================================= */

/* ---- Color Tokens ---- */
:root {
  --ar-navy: #0f2a4a;
  --ar-forest: #0d4a2b;
  --ar-leaf: #1e7e34;
  --ar-amber: #d97706;
  --ar-red: #dc2626;
  --ar-red-soft: #fef2f2;
  --ar-red-border: #fecaca;
  --ar-surface: #f8fafc;
  --ar-line: #e2e8f0;
}

/* ---- Quick Jump Navigation Bar ---- */
.ar-jump-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--ar-line);
  position: sticky;
  top: 72px;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.ar-jump-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.ar-jump-wrap::-webkit-scrollbar {
  display: none;
}
.ar-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.ar-jump-link:hover,
.ar-jump-link.is-active {
  background: var(--ar-leaf);
  color: #ffffff;
}
.ar-jump-link svg {
  width: 15px;
  height: 15px;
}

/* ---- Emergency Alert Hotline Strip ---- */
.ar-emergency-strip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 32px 0;
  border-bottom: 4px solid var(--ar-red);
}
.ar-emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.ar-em-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ar-em-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.ar-em-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ar-em-icon--red {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}
.ar-em-icon--amber {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}
.ar-em-icon--green {
  background: rgba(30, 126, 52, 0.25);
  color: #4ade80;
}
.ar-em-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 4px;
}
.ar-em-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.ar-em-val:hover {
  color: #fbbf24;
}
.ar-em-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 4px 0 0;
}

/* ---- Section Layouts ---- */
.ar-section {
  padding: 64px 0;
}
.ar-section--white {
  background: #ffffff;
}
.ar-section--tint {
  background: #f8fafc;
}
.ar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ar-leaf);
  margin-bottom: 8px;
}
.ar-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--ar-amber);
}
.ar-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--ar-navy);
  margin: 0 0 12px;
  line-height: 1.25;
}
.ar-lede {
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 36px;
}

/* ---- Policy Highlights Cards ---- */
.ar-mandates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.ar-mandate-card {
  background: #ffffff;
  border: 1px solid var(--ar-line);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ar-mandate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.08);
}
.ar-mandate-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.ar-mandate-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef8ee;
  color: var(--ar-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ar-mandate-icon--red {
  background: var(--ar-red-soft);
  color: var(--ar-red);
}
.ar-mandate-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ar-navy);
  margin: 0 0 4px;
}
.ar-mandate-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ar-mandate-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}
.ar-mandate-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ar-mandate-list li {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #374151;
}
.ar-mandate-list li svg {
  width: 16px;
  height: 16px;
  color: var(--ar-red);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- Statutory Downloads Grid ---- */
.ar-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.ar-dl-card {
  background: #ffffff;
  border: 1px solid var(--ar-line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ar-dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.08);
  border-color: var(--ar-leaf);
}
.ar-dl-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ar-dl-info {
  flex-grow: 1;
}
.ar-dl-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ar-navy);
  margin: 0 0 4px;
  line-height: 1.35;
}
.ar-dl-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ar-dl-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.ar-dl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ar-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.ar-dl-card:hover .ar-dl-btn {
  background: var(--ar-leaf);
  color: #ffffff;
}

/* ---- Member Filter Bar & Controls ---- */
.ar-controls-bar {
  background: #ffffff;
  border: 1px solid var(--ar-line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.ar-search-wrap {
  position: relative;
  flex-grow: 1;
  max-width: 360px;
}
.ar-search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--ar-line);
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ar-search-wrap input:focus {
  border-color: var(--ar-leaf);
  box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
}
.ar-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.ar-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ar-pill-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--ar-line);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ar-pill-btn:hover {
  background: #f1f5f9;
  color: var(--ar-navy);
}
.ar-pill-btn.is-active {
  background: var(--ar-leaf);
  border-color: var(--ar-leaf);
  color: #ffffff;
}

/* ---- Table Styles ---- */
.ar-table-wrap {
  background: #ffffff;
  border: 1px solid var(--ar-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.ar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ar-table th {
  background: #f8fafc;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ar-line);
}
.ar-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #334155;
  border-bottom: 1px solid var(--ar-line);
  vertical-align: middle;
}
.ar-table tbody tr:last-child td {
  border-bottom: none;
}
.ar-table tbody tr:hover {
  background: #f1f8f3;
}
.ar-badge-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}
.ar-badge-role--faculty {
  background: #dcfce7;
  color: #166534;
}
.ar-badge-role--civil {
  background: #fef3c7;
  color: #92400e;
}
.ar-badge-role--warden {
  background: #fee2e2;
  color: #991b1b;
}
.ar-badge-role--student {
  background: #e0f2fe;
  color: #075985;
}
.ar-contact-link {
  color: var(--ar-leaf);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ar-contact-link:hover {
  text-decoration: underline;
  color: var(--ar-forest);
}

/* ---- Grievance & Reporting Box ---- */
.ar-report-box {
  background: linear-gradient(135deg, #0a2e1d 0%, #061c12 100%);
  border-radius: 20px;
  padding: 44px 36px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.ar-report-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ar-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ar-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ar-amber);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ar-step-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}
.ar-step-text p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}
.ar-report-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
}
.ar-report-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.ar-report-card p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 24px;
}
.ar-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ar-red);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ar-report-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  color: #ffffff;
}

@media (max-width: 900px) {
  .ar-report-box {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
}
