/* Base Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  /* Subtle Tiranga gradient across the whole app */
  background: linear-gradient(135deg, rgba(255,153,51,0.18) 0%, rgba(255,255,255,0.9) 55%, rgba(18,136,7,0.18) 100%);
}

:root {
  --bg: #f4f7f6;
  --card: #FFFFFF;
  --text: #0f172a;
  --muted: #5b677a;
  /* Tiranga palette */
  --tiranga-saffron: #FF9933;
  --tiranga-white: #FFFFFF;
  --tiranga-green: #128807;
  --tiranga-blue: #000080; /* legacy, avoid for accents */
  /* Use green as primary accent (blue removed) */
  --primary: var(--tiranga-green);
  --primary-600: #0f6a05;
  --ring: rgba(18, 136, 7, 0.14);
  /* Soft pastel helpers */
  --saffron-soft: rgba(255, 153, 51, 0.6);
  --green-soft: rgba(18, 136, 7, 0.6);
  --border: rgba(0,0,0,0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --accent-coral: #FF5252;
  --accent-emerald: #10b981;
  --soft-blue: rgba(26, 35, 126, 0.08);
}

/* App Layout */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
}

.sidebar { grid-area: sidebar; }
.shell { grid-area: header / header / main / main; display: contents; }
.header { grid-area: header; }
.main { grid-area: main; }

/* Sidebar */
aside.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  /* Softer Tiranga gradient */
  background: linear-gradient(180deg,
    rgba(255,153,51,0.22) 0%,
    rgba(255,255,255,0.95) 45%,
    rgba(18,136,7,0.22) 100%);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.sidebar__brand::before { content: ""; display: none; }
.brand__logo { width: 100%; height: auto; max-height: 120px; display: block; border-radius: 6px; object-fit: contain; }
.brand__name { color: var(--text); }

.sidebar__nav { display: grid; gap: 8px; margin-top: 6px; }
.nav__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav__item:hover { transform: translateY(-1px); background: #f8fafc; }
.nav__item.is-active, .nav__item:focus-visible {
  outline: none;
  background: #FFFFFF;
  border-color: var(--tiranga-saffron);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  color: var(--tiranga-green);
}
.nav__item.is-active { border-left: 4px solid var(--tiranga-saffron); }
.nav__icon { font-size: 18px; opacity: .95; }

/* Sidebar Social Buttons */
.sidebar__social { margin-top: auto; display: grid; gap: 10px; }
.social { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; text-decoration: none; color: #0f172a; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-weight: 700; }
.social i { font-size: 18px; }
.social--whatsapp { border-left: 6px solid #25D366; }
.social--telegram { border-left: 6px solid #229ED9; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 64px;
  /* Softer Tricolour gradient header */
  background: linear-gradient(90deg, rgba(255,153,51,0.22), rgba(255,255,255,0.9), rgba(18,136,7,0.22));
  color: #17212f;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  position: sticky;
}
.header::before, .header::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; }
.header::before { top: 0; background: linear-gradient(90deg, rgba(255,153,51,0.25), transparent); }
.header::after { bottom: 0; background: linear-gradient(90deg, transparent, rgba(18,136,7,0.25)); }
.hamburger { display:none; background: transparent; border: 0; padding: 6px; }
.hamburger span { display:block; width: 22px; height: 2px; background:#1e293b; margin:5px 0; border-radius:2px; }
.header__title { font-size: 28px; font-weight: 700; margin: 0; color: #17212f; font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; letter-spacing: .2px; }
.header__search { max-width: 560px; justify-self: center; width: 100%; }
.search { position: relative; display: grid; grid-template-columns: 24px 1fr; align-items: center; }
.search__icon { color: #64748b; display: inline-flex; justify-content: center; }
.header__chakra { justify-self: center; color: #000080; display: inline-flex; align-items: center; }
.header__search input {
  width: 100%; padding: 12px 12px 12px 6px; border-radius: 999px; border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06), var(--shadow);
}
.header__search input:hover { border-color: var(--saffron-soft); }
.header__search input:focus { outline: none; border-color: var(--saffron-soft); box-shadow: 0 0 0 3px rgba(18,136,7,0.14), inset 0 2px 6px rgba(0,0,0,0.06); }
.header__icon { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); color: var(--primary); }

/* Main */
.main { padding: 18px; max-width: 1200px; margin: 0 auto; }
/* Trending cards (replacing marquee) */
.trending { margin: 8px 18px 0; }
.trend-grid { display:grid; gap: 12px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.trend-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 6px; }
.trend-head { display:flex; align-items:center; justify-content:space-between; }
.trend-title { font-weight: 700; color: #1f2937; font-size: 13px; }
.trend-icon { display:inline-grid; place-items:center; width: 36px; height: 36px; border-radius: 10px; background: #1f2937; color: #fff; font-size: 16px; }
.trend-sub { margin: 0; font-size: 13px; color: var(--tiranga-green); }
@media (max-width: 1024px){ .trend-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .trend-grid { grid-template-columns: 1fr; } }
.hero {
  display: grid; gap: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, #e6ebff, #ffffff);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.hero__content h2 { margin: 0; font-size: 20px; }
.hero__content p { margin: 6px 0 0; color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.marquee__track { display: flex; gap: 40px; padding: 10px 16px; width: max-content; animation: scroll 20s linear infinite; color: #0b63f3; font-weight: 600; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section__head { display:flex; align-items:center; justify-content:space-between; margin: 18px 0 12px; }
.section__title { margin: 0; font-size: 18px; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; font-weight: 700; }
.link { color: var(--green-soft); text-decoration: none; font-weight: 700; transition: color .25s ease; }

/* Chips */
.chips { display: flex; gap: 12px; overflow:auto; padding: 6px 2px; }
.chip {
  border: 1px solid rgba(0,0,0,0.06); background: #ffffff; color: #1f2937;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  font-weight: 700; font-size: 15px;
}
.chip.is-selected { color: #fff; background: var(--saffron-soft); border-color: var(--saffron-soft); box-shadow: 0 10px 24px rgba(255,153,51,0.25); }

/* Subtle tricolor band behind chips */
.filters { padding: 8px 0 0; }
.filters .chips { padding: 10px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,153,51,0.12), rgba(255,255,255,0.8) 50%, rgba(18,136,7,0.12)); box-shadow: var(--shadow); }

/* Section headline above trio */
.section__headline { margin: 10px 0 6px; font-size: 20px; font-weight: 700; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color: #1f2937; }
.section__head .link { color: var(--green-soft); font-weight: 700; }
.section__head .link:hover { color: var(--tiranga-green); }

/* Smooth link transitions globally */
a { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.trio__panel .section__head { position: relative; padding-bottom: 8px; }
.trio__panel .section__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: var(--saffron-soft); border-radius: 999px; }

/* Trio subtitle */
.trio__panel .section__subtitle { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Trio layout for Jobs/Result/Admit */
.home-trio { display: flex; gap: 20px; margin: 24px 0; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.home-trio .trio__panel { background: var(--card); border: 1px solid rgba(0,0,0,0.06); border-radius: 8px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; min-width: 340px; flex: 0 0 auto; scroll-snap-align: start; }
/* Inside trio, show a compact list (1 column) */
.home-trio .grid--jobs { grid-template-columns: 1fr; }
.home-trio .card { padding: 12px; border-radius: 8px; }
.home-trio .card__title { font-size: 15px; }

@media (min-width: 1024px) {
  .home-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; gap: 20px; }
  .home-trio .trio__panel { min-width: 0; flex: initial; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid; gap: 12px; padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
/* Vertical category bars: saffron for jobs, green for results/admit */
#jobsGrid .card, #jobsGridHome .card { border-left: 3px solid var(--saffron-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#resultsGridHome .card, #admitGridHome .card { border-left: 3px solid var(--green-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid--jobs .card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card__header { display:flex; align-items:center; justify-content:space-between; gap: 8px; }
.card__title { margin: 0; font-size: 17px; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; font-weight: 600; }
.badge { background: #eef2ff; color: var(--primary); border: 1px solid #dee6ff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge--new { background: var(--saffron-soft); color: #ffffff; border-color: var(--saffron-soft); }
.badge--success { background: var(--green-soft); color: #ffffff; border-color: var(--green-soft); }
.badge--ending { background: rgba(255,82,82,0.12); color: #c81d25; border-color: rgba(255,82,82,0.28); }
.badge--result { background: var(--tiranga-green); color: #ffffff; border-color: var(--tiranga-green); }
.card__body .muted { color: var(--muted); margin: 2px 0 0; }
.card__footer { display:flex; justify-content:flex-end; }

/* Skeleton Loader */
.skeleton { position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(255,255,255,0.5), rgba(0,0,0,0)); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.skeleton-row { height: 12px; background: #eef1f6; border-radius: 8px; }
.skeleton-row.lg { height: 16px; width: 70%; }
.skeleton-badge { width: 90px; height: 20px; background: #eef1f6; border-radius: 999px; }

/* Buttons */
.btn { border: 0; cursor: pointer; padding: 12px 14px; border-radius: 16px; font-weight: 700; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--primary-600); }
.btn--block { width: 100%; }

/* Footer */
.footer { margin: 24px 18px 0; padding: 20px; text-align: center; color: #0f172a; 
  background: linear-gradient(90deg, rgba(255,153,51,0.4), rgba(255,255,255,0.9) 50%, rgba(18,136,7,0.4));
  border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; box-shadow: var(--shadow); position: relative; }
.footer::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--saffron-soft), var(--green-soft)); opacity: .4; }
.footer small { position: relative; background: transparent; padding: 0 8px; color: #0b0b5c; font-weight: 700; }

/* Services */
.service { display:grid; grid-template-columns: 40px 1fr; gap: 12px; align-items:center; padding: 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.service__icon { font-size: 20px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.service--aadhar { border-left: 6px solid #0ea5e9; }
.service--aadhar .service__icon { background: #0ea5e9; }
.service--pan { border-left: 6px solid var(--accent-emerald); }
.service--pan .service__icon { background: var(--accent-emerald); }
.service--voter { border-left: 6px solid #f59e0b; }
.service--voter .service__icon { background: #f59e0b; }
.service:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }

/* Tabs */
.tab { display: block; }
.tab[hidden] { display: none !important; }

/* UP Government boxes */
.up-gov { margin-top: 22px; }
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gov-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 14px 10px;
  position: relative;
}
.gov-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, var(--saffron-soft), var(--green-soft)); }
.gov-card--saffron::before { background: var(--saffron-soft); }
.gov-card--green::before { background: var(--green-soft); }
.gov-card__title { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.gov-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gov-card__list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.gov-card__list li a { color: #1f2937; text-decoration: none; font-weight: 600; }
.gov-card__list li a:hover { color: var(--tiranga-green); }
.gov-card__list li span { font-size: 12px; color: var(--muted); }

@media (max-width: 1024px){
  .gov-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .gov-grid { grid-template-columns: 1fr; }
}

/* Classic Trio (Results, Admit, Jobs) */
.classic-trio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 16px; }
@media (max-width: 1024px){ .classic-trio { grid-template-columns: 1fr; } }
.classic-panel {
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.classic-panel .classic-head { position: relative; padding: 10px 14px; background: var(--tiranga-green); color: #fff; }
.classic-panel .classic-head h3 { margin: 0; font-weight: 700; font-size: 16px; }
.classic-panel::before { content: ""; display: block; height: 8px; background: var(--tiranga-saffron); }
.classic-panel--jobs .classic-head { background: var(--tiranga-green); }
.classic-panel--admit .classic-head { background: var(--tiranga-green); }
.classic-panel--results .classic-head { background: var(--tiranga-green); }
.classic-list { max-height: 520px; overflow: auto; padding: 12px; display: grid; gap: 12px; background: linear-gradient(180deg, #fff7ed, #ffffff); }
.classic-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 12px; }
.classic-item h4 { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: #1f2937; }
.classic-item ul { margin: 0 0 10px; padding: 0; list-style: none; color: #334155; font-size: 13px; display: grid; gap: 4px; }
.classic-item ul li strong { font-weight: 700; }
.classic-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-grad { background: linear-gradient(90deg, var(--tiranga-saffron), var(--tiranga-green)); color: #fff; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow); border: 0; }
.btn-solid { background: var(--tiranga-green); color: #fff; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow); border: 0; }
.btn-grad:hover, .btn-solid:hover { filter: brightness(0.96); }

/* Backdrop */
.backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.45); backdrop-filter: blur(2px); z-index: 25; }

/* Responsive */
@media (max-width: 1024px) {
  .grid--jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header"
      "main"
      "sidebar";
  }
  aside.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 78%; max-width: 320px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 30;
    height: 100vh;
  }
  aside.sidebar.is-open { transform: translateX(0); }
  .hamburger { display: inline-block; }
  .header__title { font-size: 20px; }
  .header__search { order: 3; grid-column: 1 / -1; }
  .grid--jobs { grid-template-columns: 1fr; }
  .btn { padding: 14px 16px; }
  .chip { padding: 12px 16px; }
}

/* Ultra-small */
@media (max-width: 400px) {
  .header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .header__search input { font-size: 14px; }
}
