/* ═══════════════════════════════════════════════════
   OneTimeRegistration.co.in — Main Stylesheet
   Mobile-First | CLS-Optimized | Accessible
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --navy:       #0d1b2a;
  --navy2:      #162536;
  --navy3:      #1e3248;
  --navy4:      #253c55;
  --cream:      #f6f1e9;
  --cream2:     #ede8df;
  --cream3:     #e3ddd4;
  --vermilion:  #c0392b;
  --vermilion2: #a93226;
  --gold:       #d4a017;
  --gold2:      #b8870e;
  --green:      #16a34a;
  --orange:     #d97706;
  --blue:       #1d4ed8;

  /* Text */
  --text-primary:   #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;

  /* Surfaces */
  --surface-primary:   #ffffff;
  --surface-secondary: var(--cream);
  --surface-tertiary:  var(--cream2);
  --border-color:      rgba(13,27,42,.1);
  --border-strong:     rgba(13,27,42,.2);

  /* Typography */
  --font-display: 'DM Serif Display', 'Tiro Devanagari Hindi', Georgia, serif;
  --font-body:    'Source Serif 4', 'Tiro Devanagari Hindi', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl:64px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 780px;
  --gutter: 16px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,27,42,.08);
  --shadow-md: 0 4px 16px rgba(13,27,42,.1);
  --shadow-lg: 0 8px 32px rgba(13,27,42,.15);

  /* Transitions */
  --t-fast: .15s ease;
  --t-med:  .25s ease;
  --t-slow: .4s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Prevent CLS from scrollbar appearance */
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-fast);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
}

h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--vermilion);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--vermilion2); text-decoration: underline; }

img, svg { display: block; }

img {
  max-width: 100%;
  height: auto;
  /* Prevent CLS with explicit dimensions */
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ── Section ── */
.section       { padding: var(--space-xl) 0; }
.section-alt   { background: var(--surface-secondary); }
.section-dark  { background: var(--navy); color: #fff; }

.section-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
}
.section-accent {
  width: 4px;
  height: 26px;
  background: var(--vermilion);
  border-radius: 2px;
  flex-shrink: 0;
}
.see-all-link {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--vermilion);
  white-space: nowrap;
  font-weight: 500;
}
.see-all-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   BREAKING BAR
   ═══════════════════════════════════════════ */
.breaking-bar {
  background: var(--navy);
  display: flex;
  align-items: stretch;
  height: 36px;
  overflow: hidden;
}
.breaking-label {
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 0 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1;
}
.breaking-scroll {
  overflow: hidden;
  flex: 1;
  position: relative;
}
.breaking-inner {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
  height: 100%;
  align-items: center;
}
.breaking-inner span {
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}
.breaking-inner span::before {
  content: '·';
  margin-right: 32px;
  color: var(--gold);
}
.breaking-inner span:first-child::before { display: none; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .breaking-inner { animation: none; }
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--surface-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  /* LCP optimization: no heavy shadow */
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 var(--border-color), 0 2px 8px rgba(13,27,42,.06);
  /* Prevent layout shift */
  contain: layout style;
}

/* Top utility bar */
.header-top {
  background: var(--navy);
  display: none; /* hidden on mobile */
}
@media (min-width: 768px) { .header-top { display: block; } }
.hdr-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.hdr-date {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.5);
}
.hdr-quick-links {
  display: flex;
  gap: 20px;
}
.hdr-quick-links a {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--t-fast);
}
.hdr-quick-links a:hover { color: var(--gold); }

/* Main header row */
.header-main {
  border-bottom: 3px solid var(--navy);
}
.hdr-main-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.02em;
}
.logo-name strong { font-weight: 700; color: var(--vermilion); }
.logo-tagline {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: none;
}
@media (min-width: 768px) { .header-search { display: block; } }

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 44px 0 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--text-primary);
  background: var(--cream);
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
}
.search-input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,27,42,.07);
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.search-btn:hover { color: var(--navy); }

/* Nav */
.nav-main {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
@media (min-width: 900px) { .nav-main { display: flex; } }

.nav-item {
  padding: 7px 12px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--cream); color: var(--navy); text-decoration: none; }
.nav-item.active {
  background: var(--navy);
  color: #fff;
}
.nav-item.active:hover { background: var(--navy3); color: #fff; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-med), transform var(--t-med);
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: .85rem;
  color: var(--text-primary);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-fast);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
@media (min-width: 900px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

/* Category strip */
.cat-strip {
  background: var(--navy2);
}
.cat-strip-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-link {
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cat-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
  border-bottom-color: rgba(255,255,255,.3);
}
.cat-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-section {
  padding: 28px 0 0;
  background: var(--navy);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 28px;
  }
}

/* Hero Lead */
.hero-lead {
  background: var(--surface-primary);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-lead { border-radius: var(--r-xl) 0 0 0; }
}

.hero-lead-img {
  position: relative;
  height: 260px;
  background: var(--navy3);
  overflow: hidden;
}
@media (min-width: 600px) { .hero-lead-img { height: 320px; } }

.hero-lead-bg {
  position: absolute;
  inset: 0;
}
.hero-lead-bg svg { width: 100%; height: 100%; object-fit: cover; }

.hero-lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 1;
}
.hero-cat-badge {
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  display: inline-block;
}
.hero-cat-badge:hover { background: var(--vermilion2); text-decoration: none; color: #fff; }

.hero-lead-body { padding: 22px 24px 24px; }
.hero-lead-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 12px;
}
.hero-lead-title a { color: var(--navy); text-decoration: none; }
.hero-lead-title a:hover { color: var(--vermilion); }
.hero-lead-excerpt {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.hero-lead-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-read-more:hover { background: var(--vermilion); color: #fff; text-decoration: none; transform: translateY(-1px); }

.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,.1);
  border: 1px solid rgba(192,57,43,.3);
  color: var(--vermilion);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .75rem;
}
.deadline-dot {
  width: 7px;
  height: 7px;
  background: var(--vermilion);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .deadline-dot { animation: none; }
}

/* Hero Sidebar */
.hero-sidebar {
  background: rgba(255,255,255,.05);
  border-radius: 0 var(--r-xl) 0 0;
  overflow: hidden;
  display: none;
}
@media (min-width: 900px) { .hero-sidebar { display: block; } }

.sidebar-section-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-heading {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.trending-list {
  list-style: none;
  counter-reset: trending-counter;
}
.trending-item { counter-increment: trending-counter; }
.trending-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: background var(--t-fast);
}
.trending-link:hover {
  background: rgba(255,255,255,.06);
  text-decoration: none;
}
.trending-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}
.trending-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.trending-title {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
  font-family: var(--font-ui);
  margin: 0 0 6px;
}
.trending-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════
   POST META
   ═══════════════════════════════════════════ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.post-cat {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast);
}
.post-cat:hover { background: var(--vermilion); color: #fff; text-decoration: none; }
.post-cat.cat-railway { background: #1e3a5f; }
.post-cat.cat-upsc    { background: #3b2f66; }
.post-cat.cat-banking { background: #1a4d3a; }
.post-cat.cat-defence { background: #4a2222; }
.post-cat.cat-teaching{ background: #4a3500; }

.post-date, .post-views, .post-read {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */
.trust-bar {
  background: var(--navy);
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 24px;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-divider:nth-child(4),
  .trust-divider:nth-child(8) { display: none; }
  .trust-item { padding: 6px 16px; }
}

/* ═══════════════════════════════════════════
   NOTIFICATION TABLE
   ═══════════════════════════════════════════ */
.notif-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  /* Prevent layout shift */
  min-height: 320px;
}
.notif-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-primary);
  min-width: 640px;
}
.notif-table thead tr {
  background: var(--navy);
}
.notif-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.notif-table th:first-child { border-radius: var(--r-lg) 0 0 0; }
.notif-table th:last-child  { border-radius: 0 var(--r-lg) 0 0; }

.notif-row td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: .875rem;
  vertical-align: middle;
}
.notif-row:last-child td { border-bottom: none; }
.notif-row:hover td { background: var(--cream); }
.notif-row.hot td { background: rgba(192,57,43,.03); }
.notif-row.hot:hover td { background: rgba(192,57,43,.06); }

.td-org { font-size: .8rem; color: var(--text-secondary); min-width: 200px; }
.td-post { min-width: 200px; }
.td-vac { font-family: var(--font-mono); font-size: .85rem; color: var(--navy); text-align: right; }
.td-date { font-family: var(--font-mono); font-size: .78rem; }
.td-status { white-space: nowrap; }
.td-action { white-space: nowrap; }

.org-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-right: 6px;
  text-transform: uppercase;
}
.org-badge.ssc  { background: #dbeafe; color: #1e40af; }
.org-badge.rrb  { background: #dcfce7; color: #166534; }
.org-badge.ibps { background: #fef9c3; color: #854d0e; }
.org-badge.army { background: #fee2e2; color: #991b1b; }
.org-badge.cbse { background: #f3e8ff; color: #6b21a8; }
.org-badge.mp   { background: #ffedd5; color: #9a3412; }

.post-link {
  font-weight: 500;
  color: var(--navy);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--t-fast);
}
.post-link:hover { color: var(--vermilion); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.status-badge::before { content: '●'; font-size: .6rem; }
.status-badge.open    { background: #dcfce7; color: #166534; }
.status-badge.closing { background: #fef9c3; color: #854d0e; }
.status-badge.closed  { background: #f1f5f9; color: #64748b; }

.days-left {
  font-size: .68rem;
  color: var(--orange);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.apply-btn-sm {
  display: inline-flex;
  align-items: center;
  background: var(--vermilion);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast);
  white-space: nowrap;
}
.apply-btn-sm:hover { background: var(--vermilion2); color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════
   CONTENT + SIDEBAR LAYOUT
   ═══════════════════════════════════════════ */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}

/* ═══════════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════════ */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background: var(--surface-primary);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-med), transform var(--t-med);
}
@media (min-width: 560px) {
  .post-card { flex-direction: row; }
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-img-wrap { flex-shrink: 0; }
.post-card-thumb {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 560px) {
  .post-card-thumb {
    width: 180px;
    height: 100%;
    min-height: 140px;
  }
}
/* Thumb colors by category */
.post-thumb-ssc      { background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%); }
.post-thumb-railway  { background: linear-gradient(135deg, #0d2a1a 0%, #1a4d3a 100%); }
.post-thumb-banking  { background: linear-gradient(135deg, #1a2a0d 0%, #2a4d1a 100%); }
.post-thumb-upsc     { background: linear-gradient(135deg, #1a0d2a 0%, #3b2f66 100%); }
.post-thumb-defence  { background: linear-gradient(135deg, #2a0d0d 0%, #4a2222 100%); }
.post-thumb-teaching { background: linear-gradient(135deg, #2a200d 0%, #4a3500 100%); }

.thumb-icon {
  font-size: 3rem;
  opacity: .7;
  /* Prevent CLS by making emojis explicit size */
  display: block;
  line-height: 1;
  width: 3rem;
  height: 3rem;
}
.thumb-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.thumb-views {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.4);
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

.post-card-body { padding: 16px 18px; flex: 1; }
.post-title {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 8px;
}
.post-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
}
.post-title a:hover { color: var(--vermilion); }
.post-excerpt {
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.65;
  margin-bottom: 12px;
  /* Limit to 2 lines for card */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--text-muted);
}
.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream2);
  object-fit: cover;
  /* Prevent CLS */
  aspect-ratio: 1;
  flex-shrink: 0;
}
.read-link {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--vermilion);
  text-decoration: none;
  white-space: nowrap;
}
.read-link:hover { text-decoration: underline; color: var(--vermilion2); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: var(--r-pill);
  background: var(--surface-primary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Load more */
.load-more-wrap { margin-top: 28px; text-align: center; }
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-load-more:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════
   SIDEBAR WIDGETS
   ═══════════════════════════════════════════ */
.widget {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.widget:last-child { margin-bottom: 0; }
.widget-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vermilion);
}
.widget-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Upcoming exams */
.upcoming-list { list-style: none; }
.upcoming-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.upcoming-item:last-child { border-bottom: none; padding-bottom: 0; }
.upcoming-date {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-md);
  padding: 6px 8px;
  text-align: center;
  min-width: 44px;
  flex-shrink: 0;
}
.udate-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.udate-month {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.upcoming-title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 3px;
}
.upcoming-title:hover { color: var(--vermilion); }
.upcoming-cat {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-muted);
}

/* Newsletter widget */
.widget-newsletter { background: var(--navy); border-color: var(--navy3); }
.widget-newsletter .widget-heading { color: var(--gold); border-bottom-color: var(--gold2); }
.widget-newsletter .widget-desc { color: rgba(255,255,255,.65); }
.nl-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .875rem;
  margin-bottom: 8px;
  outline: none;
  transition: border-color var(--t-fast);
}
.nl-input::placeholder { color: rgba(255,255,255,.4); }
.nl-input:focus { border-color: var(--gold); }
.nl-btn {
  width: 100%;
  padding: 10px;
  background: var(--vermilion);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nl-btn:hover { background: var(--vermilion2); }
.nl-note {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* Quick links */
.quick-links-list { list-style: none; }
.qlink {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: .875rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--t-fast), padding var(--t-fast);
}
.qlink:last-child { border-bottom: none; }
.qlink:hover { color: var(--vermilion); padding-left: 4px; }

/* Gov links */
.gov-links-list { list-style: none; }
.gov-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--t-fast);
}
.gov-link:last-child { border-bottom: none; }
.gov-link:hover { color: var(--vermilion); }
.ext-icon { color: var(--text-muted); font-size: .7rem; }

/* ═══════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════ */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 480px) { .cat-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cat-cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .cat-cards-grid { grid-template-columns: repeat(8, 1fr); } }

.cat-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 18px 12px 16px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.cat-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cat-card-icon {
  font-size: 2rem;
  display: block;
  line-height: 1;
  width: 2rem;
  height: 2rem;
}
.cat-card-name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  transition: color var(--t-med);
}
.cat-card:hover .cat-card-name { color: var(--gold); }
.cat-card-desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: none;
  transition: color var(--t-med);
}
@media (min-width: 768px) { .cat-card-desc { display: block; } }
.cat-card:hover .cat-card-desc { color: rgba(255,255,255,.5); }
.cat-card-count {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--vermilion);
  font-weight: 500;
  transition: color var(--t-med);
}
.cat-card:hover .cat-card-count { color: var(--gold); }

/* ═══════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.faq-col { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(192,57,43,.3); }

.faq-q {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background var(--t-fast);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--vermilion);
  flex-shrink: 0;
  transition: transform var(--t-med);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { background: var(--cream); }
.faq-a {
  padding: 0 18px 16px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.faq-a p { margin: 0; }

/* ═══════════════════════════════════════════
   ABOUT / E-E-A-T SECTION
   ═══════════════════════════════════════════ */
.about-section { background: var(--navy); color: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--gold);
  margin-bottom: 16px;
}
.about-text { color: rgba(255,255,255,.75); margin-bottom: 14px; font-size: .95rem; }
.about-text strong { color: #fff; }
.about-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.about-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .72rem;
}

.team-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.team-list { display: flex; flex-direction: column; gap: 14px; }
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 14px;
}
.team-avatar { font-size: 2rem; flex-shrink: 0; }
.team-info { display: flex; flex-direction: column; gap: 2px; }
.team-name { color: #fff; font-size: .95rem; }
.team-role { font-size: .78rem; color: rgba(255,255,255,.6); }
.team-exp { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  margin-top: 0;
}
.footer-main {
  padding: 56px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo { text-decoration: none; display: inline-block; margin-bottom: 12px; }
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255,255,255,.9);
}
.footer-logo-name strong { color: var(--gold); }
.footer-desc { font-size: .85rem; line-height: 1.7; max-width: 280px; margin-bottom: 18px; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.social-link:hover { background: var(--vermilion); color: #fff; border-color: var(--vermilion); text-decoration: none; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-nav-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-nav-col a:hover { color: #fff; }

.footer-contact { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.9; }

.footer-bottom { padding: 16px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.footer-copyright strong { color: rgba(255,255,255,.6); }
.footer-disclaimer { display: block; font-size: .68rem; margin-top: 2px; }
.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.footer-bottom-links a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  z-index: 100;
  opacity: 0;
}
.back-to-top:not([hidden]) { opacity: 1; }
.back-to-top:hover { background: var(--vermilion); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 9999;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.cookie-text { font-size: .85rem; }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept {
  padding: 8px 18px;
  background: var(--vermilion);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .8rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.cookie-accept:hover { background: var(--vermilion2); }
.cookie-decline {
  padding: 8px 14px;
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .8rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════ */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--t-med);
  overflow-y: auto;
  padding: 80px 24px 40px;
  display: none;
}
.nav-mobile.open { transform: translateX(0); }
@media (max-width: 900px) { .nav-mobile { display: block; } }
.nav-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--t-fast);
}
.nav-mobile a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */
@media print {
  .breaking-bar, .site-header, .cat-strip,
  .newsletter-form, .cookie-banner,
  .back-to-top, .site-footer { display: none !important; }
  body { font-family: Georgia, serif; font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
