/* ==========================================================
   Government Recruitment Portal — Official Theme
   Navy + saffron, styled after standard Indian gov portals
   ========================================================== */
:root {
  --grp-navy: #0d2b6b;
  --grp-navy-dark: #08205a;
  --grp-navy-deep: #061a4a;
  --grp-saffron: #f47b20;
  --grp-green: #1a8a4a;
  --grp-bg: #f4f6fa;
  --grp-border: #e3e8f0;
}

body {
  background-color: var(--grp-bg);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #22303f;
  font-size: 15px;
}

/* ---------- Accessibility top bar ---------- */
.grp-access-bar {
  background: var(--grp-navy-deep);
  color: #cfdcf2;
  font-size: .78rem;
  padding: 6px 0;
}
.grp-access-bar a { color: #cfdcf2; text-decoration: none; }
.grp-access-bar a:hover { color: var(--grp-saffron); }
.grp-access-bar .sep { color: #3a5490; margin: 0 8px; }
.grp-font-btn {
  background: none; border: 1px solid #3a5490; color: #cfdcf2;
  border-radius: 3px; padding: 0 6px; font-size: .75rem; line-height: 1.5;
}
.grp-font-btn:hover { background: var(--grp-saffron); border-color: var(--grp-saffron); color: #fff; }

/* ---------- Masthead ---------- */
.grp-masthead {
  background: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--grp-border);
}
.grp-masthead::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.55) 25%, rgba(13,43,107,.10) 100%);
  pointer-events: none;
}
.grp-masthead .container { position: relative; z-index: 2; }
.grp-emblem { width: 62px; height: 78px; object-fit: contain; }
.grp-emblem-fallback {
  width: 62px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  color: var(--grp-navy); font-size: 2.2rem;
}
.grp-title h1 {
  font-size: 1.62rem; font-weight: 800; color: var(--grp-navy);
  margin: 0; letter-spacing: .3px; line-height: 1.15;
}
.grp-title h2 {
  font-size: 1.32rem; font-weight: 800; color: var(--grp-saffron);
  margin: 0; letter-spacing: .3px;
}
.grp-title p {
  margin: 4px 0 0; font-size: .86rem; color: #5a6b80; letter-spacing: .6px;
}

/* ---------- Main navigation ---------- */
.grp-mainnav { background: var(--grp-navy); }
.grp-mainnav .nav-link {
  color: #e6edf9 !important;
  font-weight: 600; font-size: .82rem; letter-spacing: .5px;
  text-transform: uppercase;
  padding: 14px 18px !important;
  border-radius: 0;
}
.grp-mainnav .nav-link:hover { background: var(--grp-navy-dark); color: #fff !important; }
.grp-mainnav .nav-link.active { background: #1c47a0; color: #fff !important; }
.grp-mainnav .dropdown-menu {
  border: none; border-top: 3px solid var(--grp-saffron);
  border-radius: 0; box-shadow: 0 6px 18px rgba(0,0,0,.15); font-size: .88rem;
}
.grp-mainnav .dropdown-item:hover { background: #eef3fc; color: var(--grp-navy); }
.btn-grp-register {
  background: var(--grp-saffron); color: #fff !important; font-weight: 700;
  font-size: .82rem; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 3px; padding: 8px 20px; border: none;
}
.btn-grp-register:hover { background: #d9660f; color: #fff; }
.btn-grp-login {
  background: var(--grp-green); color: #fff !important; font-weight: 700;
  font-size: .82rem; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 3px; padding: 8px 20px; border: none;
}
.btn-grp-login:hover { background: #146b39; color: #fff; }

/* ---------- Hero carousel ---------- */
.grp-hero-slide {
  min-height: 300px;
  background: linear-gradient(100deg, var(--grp-navy) 0%, var(--grp-navy) 42%, #1c47a0 70%, #2b5cc4 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.grp-hero-slide .hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.grp-hero-slide .hero-body { position: relative; z-index: 3; padding: 44px 0; }
.grp-hero-slide h2 {
  color: #fff; font-weight: 800; font-size: 2.35rem; margin: 0; letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.grp-hero-slide h2 .accent { color: var(--grp-saffron); display: block; }
.grp-hero-slide p {
  color: #dbe6f7; margin: 14px 0 22px; max-width: 460px; font-size: 1.02rem;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
}
.btn-hero {
  background: var(--grp-saffron); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; font-size: .85rem;
  padding: 12px 26px; border-radius: 3px; border: none;
}
.btn-hero:hover { background: #d9660f; color: #fff; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: none; }

/* ---------- Quick action cards ---------- */
.grp-quick-card {
  background: #fff; border: 1px solid var(--grp-border); border-radius: 6px;
  padding: 20px; height: 100%; transition: box-shadow .2s, transform .2s;
}
.grp-quick-card:hover { box-shadow: 0 6px 18px rgba(13,43,107,.12); transform: translateY(-2px); }
.grp-quick-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.grp-quick-card h6 {
  font-weight: 700; color: var(--grp-navy); font-size: .92rem;
  text-transform: uppercase; letter-spacing: .3px; margin: 0 0 5px;
}
.grp-quick-card p { font-size: .84rem; color: #6b7a8d; margin: 0 0 8px; line-height: 1.45; }
.grp-quick-card a.more {
  font-size: .84rem; font-weight: 600; color: var(--grp-navy); text-decoration: none;
}
.grp-quick-card a.more:hover { color: var(--grp-saffron); }

/* ---------- Panels ---------- */
.grp-panel { background: #fff; border: 1px solid var(--grp-border); border-radius: 6px; height: 100%; }
.grp-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 2px solid var(--grp-border);
}
.grp-panel-head h6 {
  margin: 0; font-weight: 700; color: var(--grp-navy);
  font-size: .92rem; text-transform: uppercase; letter-spacing: .5px;
}
.grp-panel-head .btn-viewall {
  background: var(--grp-navy); color: #fff; font-size: .74rem; font-weight: 600;
  padding: 5px 14px; border-radius: 3px; text-decoration: none; text-transform: uppercase;
}
.grp-panel-head .btn-viewall:hover { background: var(--grp-saffron); color: #fff; }
.grp-notice-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-bottom: 1px solid #f0f3f8; font-size: .88rem;
}
.grp-notice-row:last-child { border-bottom: none; }
.grp-notice-row:hover { background: #f8faff; }
.badge-new {
  background: #1c47a0; color: #fff; font-size: .6rem; font-weight: 700;
  padding: 3px 6px; border-radius: 2px; letter-spacing: .4px; flex-shrink: 0;
}
.grp-notice-row a { color: #22303f; text-decoration: none; flex: 1; }
.grp-notice-row a:hover { color: var(--grp-navy); }
.grp-notice-row .date { color: #8a97a8; font-size: .8rem; white-space: nowrap; }

.grp-date-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid #f0f3f8; font-size: .88rem;
}
.grp-date-row:last-child { border-bottom: none; }
.grp-date-row .label { color: #3c4a5c; }
.grp-date-row .label i { color: var(--grp-navy); margin-right: 7px; }
.grp-date-row .value { color: #c0392b; font-weight: 600; white-space: nowrap; }

/* ---------- Stats strip ---------- */
.grp-stats-strip {
  background: var(--grp-navy); border-radius: 6px; color: #fff;
  padding: 26px 10px; margin-top: 26px;
}
.grp-stat-item {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; padding: 6px 4px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.grp-stat-item:last-child { border-right: none; }
.grp-stat-item i { font-size: 1.6rem; color: #a9c2ee; }
.grp-stat-item .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.grp-stat-item .lbl { font-size: .78rem; color: #c3d3ee; }

/* ---------- Footer ---------- */
.grp-footer { background: #fff; border-top: 3px solid var(--grp-navy); padding: 16px 0; margin-top: 34px; }
.grp-footer, .grp-footer a { font-size: .84rem; color: #5a6b80; text-decoration: none; }
.grp-footer a:hover { color: var(--grp-saffron); }
.grp-footer .sep { color: #c6d0dd; margin: 0 10px; }

/* ---------- Shared components ---------- */
.card { border: 1px solid var(--grp-border); border-radius: 6px; box-shadow: none; }
.card-header { background: #fff; border-bottom: 2px solid var(--grp-border); font-weight: 700; color: var(--grp-navy); }
.table thead { background: #f0f4fa; }
.table thead th { color: var(--grp-navy); font-weight: 700; border-bottom: none; font-size: .84rem; }
.badge-role { background: #eaf0fa; color: var(--grp-navy); font-weight: 600; }

.grp-sidebar {
  background: #fff; min-height: calc(100vh - 56px);
  border-right: 1px solid var(--grp-border); padding-top: 18px;
}
.grp-sidebar .nav-link {
  color: #46536b; border-radius: 5px; padding: 9px 14px;
  margin-bottom: 3px; font-weight: 600; font-size: .88rem;
}
.grp-sidebar .nav-link.active, .grp-sidebar .nav-link:hover { background: #eaf1fb; color: var(--grp-navy); }
.grp-sidebar .nav-link i { width: 20px; display: inline-block; }

.grp-auth-card { max-width: 460px; margin: 44px auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .grp-masthead::after { display: none; }
  .grp-title h1 { font-size: 1.24rem; }
  .grp-title h2 { font-size: 1.04rem; }
  .grp-hero-slide h2 { font-size: 1.7rem; }
  .grp-hero-slide .hero-photo { width: 100%; opacity: .3; -webkit-mask-image: none; mask-image: none; }
  .grp-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.14); }
  .grp-mainnav .nav-link { padding: 10px 14px !important; }
}
@media (max-width: 767px) {
  .grp-sidebar { min-height: auto; border-right: none; border-bottom: 1px solid var(--grp-border); }
}

/* ---------- Accessibility font sizes ---------- */
body.fs-small { font-size: 13.5px; }
body.fs-large { font-size: 16.5px; }

@media print { .no-print { display: none !important; } }
