/*
 * SarkariLok — Shared Page Styles
 * Used by: page-latest-jobs, page-results, page-call-letters, page-apply-online, page-paper-blogs
 * Design System: "Governance Pro" — The Civic Architect
 */

/* ─── Base ─────────────────────────────────────────────────────────────── */
.sl-page { font-family: 'Poppins', 'Anek Gujarati', sans-serif; background: #f7f9fb; color: #191c1e; width: 100%; box-sizing: border-box; }
.sl-page .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.sl-hero {
  background: var(--sl-hero-bg, linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%));
  padding: 60px 24px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* Muted professional deep colors instead of high-contrast neons */
.sl-hero--green   { background: var(--sl-hero-bg-green, linear-gradient(135deg, #14532d 0%, #0f172a 100%)); }
.sl-hero--indigo  { background: var(--sl-hero-bg-indigo, linear-gradient(135deg, #312e81 0%, #0f172a 100%)); }
.sl-hero--violet  { background: var(--sl-hero-bg-violet, linear-gradient(135deg, #4c1d95 0%, #0f172a 100%)); }

.sl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.sl-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }

.sl-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 20px; letter-spacing: 0.03em;
}
.sl-hero-title {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 800; color: #fff;
  line-height: 1.2; margin: 0 0 14px;
}
.sl-accent {
  background: linear-gradient(90deg, #bfdbfe 0%, #a5f3fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sl-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.82);
  line-height: 1.6; margin-bottom: 32px;
}

/* Search form */
.sl-search-form { margin-bottom: 24px; }
.sl-search-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  max-width: 600px; margin: 0 auto;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.sl-search-icon { color: var(--sl-search-icon-color, #1d4ed8); font-size: 22px; flex-shrink: 0; }
.sl-hero--green  .sl-search-icon { color: #166534; }
.sl-hero--indigo .sl-search-icon { color: #3730a3; }
.sl-hero--violet .sl-search-icon { color: #6d28d9; }
.sl-search-input {
  flex: 1; border: none; background: transparent;
  font-family: 'Poppins', 'Anek Gujarati', sans-serif; font-size: 15px;
  color: #191c1e; padding: 8px 12px; outline: none;
}
.sl-search-input::placeholder { color: #94a3b8; }
.sl-search-btn {
  background: var(--sl-search-btn-bg, linear-gradient(135deg, #1e3a8a, #1d4ed8));
  border: none; border-radius: 999px; color: #fff;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity 0.2s; flex-shrink: 0;
}
.sl-hero--green  .sl-search-btn { background: linear-gradient(135deg, #166534, #14532d); }
.sl-hero--indigo .sl-search-btn { background: linear-gradient(135deg, #3730a3, #312e81); }
.sl-hero--violet .sl-search-btn { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.sl-search-btn:hover { opacity: 0.88; }
.sl-search-btn .material-icons-round { font-size: 20px; }

/* Filter chips */
.sl-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sl-chip {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; backdrop-filter: blur(6px);
}
.sl-chip:hover { background: rgba(255,255,255,0.32); }
.sl-chip--active { background: #fff !important; color: var(--sl-chip-active-color, #1e3a8a) !important; }
.sl-hero--green  .sl-chip--active { color: #166534 !important; }
.sl-hero--indigo .sl-chip--active { color: #3730a3 !important; }
.sl-hero--violet .sl-chip--active { color: #6d28d9 !important; }

/* ─── BODY LAYOUT ──────────────────────────────────────────────────────── */
.sl-page .sl-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.sl-count { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.sl-count strong { color: #0037b0; }

/* ─── CARD GRID ─────────────────────────────────────────────────────────── */
.sl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* ─── BASE CARD ─────────────────────────────────────────────────────────── */
.sl-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(25,28,30,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(25,28,30,0.12);
}

/* Thumbnail link wrapper */
.sl-card__thumb-link { display: block; text-decoration: none; }

/* Top image section (Latest Jobs) */
.sl-card__top {
  height: 110px; display: flex; align-items: flex-end;
  justify-content: space-between; padding: 0 14px 12px;
  position: relative; overflow: hidden;
}
.sl-card__top .sl-card__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; border-radius: 0;
}
.sl-card__logo-wrap { position: relative; z-index: 2; }
.sl-card__logo {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
  backdrop-filter: blur(6px);
}

/* Small thumbnail (Results, Call Letters, Apply Online) */
.sl-card__thumb-sm {
  position: relative; height: 90px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sl-card__thumb-sm .sl-card__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.sl-card__thumb-icon {
  position: relative; z-index: 1;
  font-size: 32px; color: rgba(255,255,255,0.7);
}
.sl-card__accent-overlay {
  position: absolute; inset: 0; z-index: 1;
}

/* Status badge on top */
.sl-card__status {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.92);
  color: #15803d; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  position: relative; z-index: 2;
}
.sl-card__status .material-icons-round { font-size: 14px; }
.sl-status--warn   { color: #b45309 !important; }
.sl-status--expired{ color: #94a3b8 !important; }

/* Card body */
.sl-card__body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sl-card__body--np { padding-top: 14px; }

.sl-card__result-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* Board chip */
.sl-board-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}

/* Result/status badge */
.sl-result-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.sl-result-badge .material-icons-round { font-size: 13px; }

/* Card title */
.sl-card__title {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  color: #191c1e; margin: 0;
}
.sl-card__title--sm { font-size: 13.5px; }
.sl-card__title a {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sl-card__title a:hover { color: #1d4ed8; }

/* Meta row */
.sl-card__meta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #434655;
}
.sl-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
}
.sl-meta-item .material-icons-round { font-size: 14px; color: #94a3b8; }
.sl-meta--warn { color: #b45309 !important; }
.sl-meta--warn .material-icons-round { color: #b45309 !important; }

/* Tags */
.sl-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; }
.sl-tag--blue { background: #dce1ff; color: #0037b0; }
.sl-tag--gray { background: #f0f2f4; color: #434655; }
.sl-tag--green{ background: #dcfce7; color: #15803d; }

/* Card footer */
.sl-card__footer {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: auto; padding-top: 10px;
  border-top: 1px solid #f0f2f4;
}
.sl-date {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #94a3b8; margin-right: auto;
}
.sl-date .material-icons-round { font-size: 13px; }

/* Buttons */
.sl-btn-primary {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #0037b0, #1d4ed8);
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
  transition: opacity 0.2s; white-space: nowrap;
  border: none; cursor: pointer;
}
.sl-btn-primary .material-icons-round { font-size: 14px; }
.sl-btn-primary:hover { opacity: 0.88; color: #fff; }

.sl-btn-ghost {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: #1d4ed8;
  font-size: 12px; font-weight: 600; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
  transition: background 0.15s; white-space: nowrap;
}
.sl-btn-ghost .material-icons-round { font-size: 14px; }
.sl-btn-ghost:hover { background: #dce1ff; color: #0037b0; }

.sl-btn-disabled {
  display: inline-flex; align-items: center;
  background: #f0f2f4; color: #94a3b8;
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  cursor: not-allowed; white-space: nowrap;
}

/* Urgency bar */
.sl-urgency-bar { height: 5px; }

/* ─── PAGINATION ─────────────────────────────────────────────────────────── */
.sl-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.sl-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; min-width: 38px; height: 38px;
  border-radius: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: #0037b0;
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: all 0.15s;
}
.sl-pager .page-numbers.current { background: #1d4ed8; color: #fff; }
.sl-pager .page-numbers:hover:not(.current) { background: #dce1ff; }
.sl-pager .page-numbers .material-icons-round { font-size: 18px; }

/* Empty state */
.sl-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }
.sl-empty .material-icons-round { font-size: 56px; display: block; margin-bottom: 14px; }
.sl-empty h3 { font-size: 1.2rem; color: #434655; margin: 0 0 8px; }
.sl-empty a { color: #1d4ed8; font-weight: 600; }

/* ─── DIGITAL CURATOR: INTELLIGENT LIST CARDS ───────────────────────────── */
.sl-list-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.sl-list-header .sl-list-title {
  font-family: 'Poppins', 'Anek Gujarati', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: #121c2a; margin: 0;
}
.sl-card-list {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px;
}
.sl-list-card {
  background: #ffffff; /* surface-container-lowest */
  border-radius: 16px;
  padding: 20px 24px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 4px 24px rgba(18, 28, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.sl-list-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #003aa4, #094fd4);
  opacity: 0; transition: opacity 0.2s;
}
.sl-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 28, 42, 0.08);
}
.sl-list-card:hover::before { opacity: 1; }

.sl-list-card__main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sl-list-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-list-card__title {
  font-family: 'Poppins', 'Anek Gujarati', sans-serif;
  font-size: 1.125rem; font-weight: 700; color: #121c2a; margin: 0; line-height: 1.4;
}
.sl-list-card__title a { color: inherit; text-decoration: none; }
.sl-list-card__title a:hover { color: #003aa4; }

.sl-list-card__details {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.875rem; color: #434654;
}
.sl-detail-item { display: inline-flex; align-items: center; gap: 6px; }
.sl-detail-item .material-icons-round { font-size: 16px; color: #737685; }

.sl-card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.sl-card-badge .material-icons-round { font-size: 14px; }
.sl-card-badge--available { background: #eaf1ff; color: #003aa4; }
.sl-card-badge--urgent { background: #ffdad6; color: #93000a; }
.sl-card-badge--archived { background: #f0f2f4; color: #434654; }

.sl-list-card__action { flex-shrink: 0; }
.sl-btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #003aa4, #094fd4);
  color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 700;
  padding: 10px 20px; border-radius: 12px; transition: all 0.2s;
}
.sl-btn-download:hover {
  box-shadow: 0 8px 16px rgba(0, 58, 164, 0.2);
  transform: translateY(-1px); color: #fff;
}
.sl-btn-download .material-icons-round { font-size: 18px; }

/* Empty state modified for cards */
.sl-empty--card {
  background: #ffffff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(18, 28, 42, 0.04);
}

/* Digital Curator Sidebar Widgets */
.sl-widget--tonal {
  box-shadow: none; background: #eff4ff; /* surface-container-low */
  border-radius: 16px;
}
.sl-widget--orange-gradient {
  background: linear-gradient(135deg, #ffce99, #ffb95f); /* Soft Amber to Amber */
  color: #2a1700; border-radius: 16px; border: none; text-align: left;
}
.sl-widget--orange-gradient h4 { color: #2a1700; margin: 8px 0 6px; font-size: 15px; font-weight: 700; }
.sl-widget--orange-gradient p { color: #653e00; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px;}
.sl-widget--orange-gradient .sl-cta-btn {
  display: inline-block; padding: 10px 24px; font-size: 13px; font-weight: 700;
  background: #2a1700; color: #fff; border-radius: 12px; text-decoration: none; transition: opacity 0.2s;
}
.sl-widget--orange-gradient .sl-cta-btn:hover { opacity: 0.9; }
.sl-widget--orange-gradient .sl-cta-icon { color: #2a1700; font-size: 34px; }

/* ─── DATA TABLE ────────────────────────────────────────────────────────── */
.sl-table-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25,28,30,0.07);
  overflow-x: auto;
  margin-bottom: 36px;
}
.sl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}
.sl-table th, .sl-table td {
  padding: 16px 24px;
}
.sl-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #434654;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #ffffff;
}
/* Zebra Striping */
.sl-table tbody tr:nth-child(even) {
  background-color: #eff4ff; /* surface-container-low */
}
.sl-table tbody tr:nth-child(odd) {
  background-color: #f8f9ff; /* surface */
}
/* Remove all inner borders (Digital Curator strictly prohibits 1px divider lines) */
.sl-table th, .sl-table td {
  border: none;
}
.sl-table__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #121c2a;
}
.sl-table__title a {
  color: inherit; text-decoration: none;
}
.sl-table__title a:hover {
  color: #003aa4;
}
.sl-table__status {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e6eeff;
  color: #094fd4; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.sl-table__status--passed {
  background: #f0f2f4; color: #737685;
}
.sl-table__status .material-icons-round { font-size: 14px; }
.sl-table__board {
  font-size: 12px; font-weight: 600; color: #434654;
}
.sl-table__date {
  font-size: 12px; font-weight: 500; color: #121c2a;
}
.sl-table__action {
  white-space: nowrap; text-align: right;
}

/* ─── SIDEBAR ───────────────────────────────────────────────────────────── */
.sl-sidebar { display: flex; flex-direction: column; gap: 20px; padding-top: 36px; }

.sl-widget {
  background: #fff; border-radius: 14px;
  padding: 20px; box-shadow: 0 4px 20px rgba(25,28,30,0.06);
}
.sl-widget--urgent { background: #fff5f5; }
.sl-widget--notice {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.sl-widget--notice h4 { color: #92400e; margin: 8px 0 6px; font-size: 14px; }
.sl-widget--notice p  { font-size: 12.5px; color: #78350f; line-height: 1.5; margin: 0; }

.sl-widget__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #191c1e;
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 2px solid #f0f2f4;
}
.sl-widget__title .material-icons-round { color: #1d4ed8; font-size: 18px; }
.sl-widget__empty { font-size: 13px; color: #94a3b8; text-align: center; padding: 12px 0; }

/* Widget list */
.sl-widget__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sl-widget__item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  color: #434655; text-decoration: none; font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.sl-widget__item a:hover { background: #f2f4f6; color: #0037b0; }
.sl-widget__item--active a { background: #dce1ff; color: #0037b0; font-weight: 700; }
.sl-count-badge {
  background: #f0f2f4; color: #6b7280;
  padding: 2px 8px; border-radius: 999px; font-size: 11px;
}
.sl-widget__item--active .sl-count-badge { background: #bfdbfe; color: #0037b0; }

/* Closing soon list */
.sl-closing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sl-closing-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; text-decoration: none;
  background: #fff; transition: background 0.15s;
}
.sl-closing-item a:hover { background: #fee2e2; }
.sl-closing-title { font-size: 12.5px; color: #191c1e; font-weight: 500; flex: 1; }
.sl-closing-days { font-size: 11px; color: #dc2626; font-weight: 700; flex-shrink: 0; background: #fee2e2; padding: 2px 8px; border-radius: 999px; }

/* Upcoming exam list */
.sl-upcoming-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sl-upcoming-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.sl-upcoming-item:last-child { border-bottom: none; }
.sl-upcoming-date {
  font-size: 12px; font-weight: 700; color: #0037b0;
  background: #dce1ff; padding: 4px 10px; border-radius: 8px; flex-shrink: 0; min-width: 52px; text-align: center;
}
.sl-upcoming-title { font-size: 12.5px; color: #434655; text-decoration: none; font-weight: 500; line-height: 1.35; }
.sl-upcoming-title:hover { color: #1d4ed8; }

/* Popular list */
.sl-popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sl-popular-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 10px; text-decoration: none;
  transition: background 0.15s;
}
.sl-popular-link:hover { background: #f2f4f6; }
.sl-popular-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: #dce1ff; color: #1d4ed8;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.sl-popular-text { display: flex; flex-direction: column; gap: 2px; }
.sl-popular-title { font-size: 12px; font-weight: 600; color: #191c1e; line-height: 1.35; }
.sl-popular-meta  { font-size: 11px; color: #94a3b8; }

/* Checklist */
.sl-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sl-checklist__item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #434655; }
.sl-check-icon { color: #15803d; font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* CTA Widget */
.sl-widget--cta {
  text-align: center;
  background: linear-gradient(135deg, #0037b0, #1d4ed8);
  color: #fff;
}
.sl-widget--green-cta { background: linear-gradient(135deg, #14532d, #15803d); }
.sl-widget--amber-cta { background: linear-gradient(135deg, #78350f, #b45309); }
.sl-widget--cta h4 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; color: #fff; }
.sl-widget--cta p  { font-size: 12.5px; color: rgba(255,255,255,0.82); margin: 0 0 16px; line-height: 1.5; }
.sl-cta-icon { font-size: 34px; color: rgba(255,255,255,0.9); }
.sl-widget--cta .sl-cta-btn {
  display: inline-block; padding: 10px 24px; border-radius: 999px;
  background: #fff; color: #0037b0; font-weight: 700;
  text-decoration: none; font-size: 13px; transition: opacity 0.2s;
}
.sl-widget--cta .sl-cta-btn:hover { opacity: 0.9; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sl-page .sl-body  { grid-template-columns: 1fr 280px; }
  .sl-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sl-page .container { padding: 0 16px; }
  .sl-page { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; }
  .sl-page .sl-body  { grid-template-columns: 1fr !important; padding-top: 24px; padding-bottom: 100px; gap: 24px; width: 100% !important; min-width: 0 !important; }
  .sl-sidebar { order: 2; gap: 16px; }
  .sl-main    { order: 1; width: 100%; min-width: 0; }
  .sl-grid    { grid-template-columns: 1fr; }
  
  .sl-widget  { padding: 16px; }

  .sl-list-card {
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px;
  }
  .sl-list-card__action { width: 100%; }
  .sl-btn-download { width: 100%; justify-content: center; }

  .sl-hero    { padding: 40px 16px 36px; }
  .sl-hero-title { font-size: 1.6rem; }
  .sl-chips   { gap: 8px; }
  .sl-chip    { padding: 6px 14px; font-size: 12px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .sl-search-wrap { padding: 4px 4px 4px 14px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .sl-eyebrow { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(255,255,255,0.22); }

  /* Responsive Data Table Stacking */
  .sl-table-container { overflow-x: visible !important; }
  .sl-table { min-width: 0 !important; }
  .sl-table thead { display: none !important; }
  .sl-table, .sl-table tbody, .sl-table tr, .sl-table td { display: block !important; width: 100% !important; box-sizing: border-box !important; }
  .sl-table tr { margin-bottom: 16px; border: 1px solid var(--color-border, #e2e8f0); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
  .sl-table td { border-bottom: 1px solid #f1f5f9; padding: 12px 16px 12px 120px !important; position: relative; font-size: 13px !important; min-height: 44px; display: flex; align-items: center; text-align: left !important; }
  .sl-table td:last-child { border-bottom: none; }
  .sl-table td::before {
    content: attr(data-label);
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: #64748b; width: 90px; line-height: 1.2;
  }
  .sl-table__action { justify-content: flex-start !important; padding-left: 16px !important; }
  .sl-table__action::before { display: none !important; }
}

/* Dark Mode support for Sub-page Heroes & Tables */
body.dark-mode {
  --sl-hero-bg: linear-gradient(135deg, #09090b 0%, #18181b 100%);
  --sl-hero-bg-green: linear-gradient(135deg, #040905 0%, #101210 100%);
  --sl-hero-bg-indigo: linear-gradient(135deg, #07060f 0%, #111016 100%);
  --sl-hero-bg-violet: linear-gradient(135deg, #080310 0%, #120e18 100%);
  --sl-search-icon-color: #93c5fd;
  --sl-search-btn-bg: linear-gradient(135deg, #1e3a8a, #3b82f6);
  --sl-chip-active-color: #0f172a;
}
body.dark-mode .sl-search-wrap {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .sl-search-input {
  color: #f1f5f9;
}
body.dark-mode .sl-search-input::placeholder {
  color: #64748b;
}
body.dark-mode .sl-hero--green .sl-search-icon { color: #4ade80; }
body.dark-mode .sl-hero--indigo .sl-search-icon { color: #818cf8; }
body.dark-mode .sl-hero--violet .sl-search-icon { color: #c084fc; }

body.dark-mode .sl-hero--green .sl-search-btn { background: linear-gradient(135deg, #166534, #22c55e); }
body.dark-mode .sl-hero--indigo .sl-search-btn { background: linear-gradient(135deg, #3730a3, #6366f1); }
body.dark-mode .sl-hero--violet .sl-search-btn { background: linear-gradient(135deg, #6d28d9, #a855f7); }

body.dark-mode .sl-hero--green .sl-chip--active { color: #166534 !important; }
body.dark-mode .sl-hero--indigo .sl-chip--active { color: #3730a3 !important; }
body.dark-mode .sl-hero--violet .sl-chip--active { color: #6d28d9 !important; }

/* Dark Mode Table overrides */
body.dark-mode .sl-table-container {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark-mode .sl-table th {
  background: #18181b;
  color: #a1a1aa;
}
body.dark-mode .sl-table tbody tr:nth-child(even) {
  background-color: #202024;
}
body.dark-mode .sl-table tbody tr:nth-child(odd) {
  background-color: #18181b;
}
body.dark-mode .sl-table__title {
  color: #f4f4f5;
}
body.dark-mode .sl-table__title a:hover {
  color: #60a5fa;
}
body.dark-mode .sl-table__board {
  color: #a1a1aa;
}
body.dark-mode .sl-table__date {
  color: #d4d4d8;
}
body.dark-mode .sl-table tr {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #18181b !important;
}
body.dark-mode .sl-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
