/* =========================================================
   SARKARIRESULTS - NextGen Government Job & Result Portal
   Modern, Ultra-Fast, Responsive Material Design System
   ========================================================= */

:root {
  /* Brand Theme Colors */
  --primary-red: #D32F2F;
  --primary-red-dark: #B71C1C;
  --primary-red-light: #FFEBEE;
  --primary-navy: #1A365D;
  --primary-blue: #1E40AF;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-teal: #0D9488;
  --accent-purple: #7C3AED;

  /* Neutrals (Light Mode) */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-highlight: #CBD5E1;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

[data-theme="dark"] {
  --bg-page: #0B0F17;
  --bg-card: #151D2C;
  --bg-subtle: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --border-highlight: #475569;
  
  --primary-red-light: rgba(211, 47, 47, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   TOP FLASH NEWS TICKER
   ========================================================= */
.top-ticker-bar {
  background: #111827;
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--primary-red);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  background: var(--primary-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-marquee marquee {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.ticker-marquee a {
  color: #F8FAFC;
  margin-right: 28px;
  transition: color 0.2s;
}

.ticker-marquee a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* =========================================================
   MAIN HEADER & BRANDING
   ========================================================= */
.main-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-sr-badge,
.logo-sd-badge,
.logo-ns-badge {
  width: 48px;
  height: 48px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  border: 2px solid #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.logo-area:hover .logo-sr-badge,
.logo-area:hover .logo-sd-badge,
.logo-area:hover .logo-ns-badge {
  transform: scale(1.05);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .logo-text h1 {
  color: #FFFFFF;
}

[data-theme="dark"] .logo-sr-badge,
[data-theme="dark"] .logo-sd-badge,
[data-theme="dark"] .logo-ns-badge {
  background: #000000;
  color: #FFFFFF;
  border-color: #374151;
}

.logo-text h1 span {
  color: var(--primary-navy);
}

[data-theme="dark"] .logo-text h1 span {
  color: #60A5FA;
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Community Join Buttons (High CTR) */
.header-social-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088CC, #006699);
}

.btn-theme-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-theme-toggle:hover {
  background: var(--border-color);
}

/* Navigation Bar */
.nav-bar {
  background: var(--primary-navy);
  border-top: 3px solid var(--primary-red);
}

.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item a {
  display: block;
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.nav-item a:hover, .nav-item.active a {
  background-color: var(--primary-red);
  color: #FFFFFF;
}

/* =========================================================
   LIVE VACANCY STATS STRIP
   ========================================================= */
.live-stats-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.85rem;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.stat-val {
  color: var(--primary-red);
  font-weight: 800;
}

/* =========================================================
   STATE-WISE SECTOR SELECTOR BAR
   ========================================================= */
.state-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px 0;
  scrollbar-width: thin;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-speed);
}

.state-pill:hover, .state-pill.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

/* =========================================================
   STUDENT UTILITY TOOLS HUB (ROJGAR TOOLS 2.0)
   ========================================================= */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.tool-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tool-info h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.tool-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================
   SEARCH & QUALIFICATION FILTER BAR
   ========================================================= */
.search-filter-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 24px;
}

.search-box-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
  max-width: 800px;
  margin: 0 auto 16px auto;
}

.search-box-wrapper:focus-within {
  border-color: var(--primary-red);
  background: var(--bg-card);
}

.search-box-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-main);
}

.search-box-wrapper input::placeholder {
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover, .pill-btn.active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
}

/* =========================================================
   TOP TRENDING HIGHLIGHTS (COLORFUL BOXES)
   ========================================================= */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trending-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-red);
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-purple { background: #EDE9FE; color: #6D28D9; }
.badge-blue   { background: #DBEAFE; color: #1D4ED8; }
.badge-red    { background: #FEE2E2; color: #B91C1C; }
.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-orange { background: #FFEDD5; color: #C2410C; }
.badge-teal   { background: #CCFBF1; color: #0F766E; }
.badge-pink   { background: #FCE7F3; color: #BE185D; }

[data-theme="dark"] .badge-purple { background: rgba(109, 40, 217, 0.25); color: #C4B5FD; }
[data-theme="dark"] .badge-blue   { background: rgba(29, 78, 216, 0.25); color: #93C5FD; }
[data-theme="dark"] .badge-red    { background: rgba(185, 28, 28, 0.25); color: #FCA5A5; }
[data-theme="dark"] .badge-green  { background: rgba(21, 128, 61, 0.25); color: #86EFAC; }
[data-theme="dark"] .badge-orange { background: rgba(194, 65, 12, 0.25); color: #FDBA74; }
[data-theme="dark"] .badge-teal   { background: rgba(15, 118, 110, 0.25); color: #5EEAD4; }

.trending-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}

.trending-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.posts-count {
  color: var(--primary-red);
  font-weight: 700;
}

/* =========================================================
   THE ICONIC 3-COLUMN SARKARI RESULT GRID
   ========================================================= */
.sarkari-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.sarkari-column-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 12px 16px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-result { background: linear-gradient(135deg, #B91C1C, #991B1B); }
.header-admit  { background: linear-gradient(135deg, #1D4ED8, #1E40AF); }
.header-job    { background: linear-gradient(135deg, #047857, #065F46); }

.column-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.column-list {
  list-style: none;
  padding: 8px 0;
  flex: 1;
}

.column-list li {
  border-bottom: 1px dashed var(--border-color);
  padding: 10px 14px;
  transition: background-color 0.15s ease;
}

.column-list li:last-child {
  border-bottom: none;
}

.column-list li:hover {
  background-color: var(--bg-subtle);
}

.column-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.column-list a:hover {
  color: var(--primary-red);
}

.bullet-icon {
  color: var(--primary-red);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-out {
  background: var(--primary-red);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.column-footer-btn {
  padding: 10px;
  text-align: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.column-footer-btn a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.column-footer-btn a:hover {
  text-decoration: underline;
}

/* =========================================================
   MONETIZATION AD BLOCKS
   ========================================================= */
.ad-slot-container {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin: 24px auto;
  max-width: 970px;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 700;
}

.ad-banner-mock {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(30, 64, 175, 0.08));
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-red);
}

.ad-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-ad-cta {
  background: var(--primary-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* =========================================================
   TINY DISCREET REALTIME VISITOR COUNTER (BOTTOM-LEFT)
   ========================================================= */
.discreet-visitor-counter {
  position: fixed;
  bottom: 8px;
  left: 12px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.35;
  z-index: 999;
  user-select: none;
  font-family: monospace;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.discreet-visitor-counter:hover {
  opacity: 0.9;
}

/* =========================================================
   FULL IN-DEPTH JOB ADVERTISEMENT DETAIL PAGE / MODAL
   ========================================================= */
.job-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px 10px;
}

.job-detail-card {
  background: var(--bg-card);
  max-width: 950px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.detail-header {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.detail-header .sub-advt {
  font-size: 0.85rem;
  color: #FBBF24;
  margin-top: 4px;
  font-weight: 600;
}

.btn-close-detail {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-close-detail:hover {
  background: var(--primary-red);
}

.detail-body {
  padding: 24px;
}

.short-desc-box {
  background: var(--primary-red-light);
  border-left: 4px solid var(--primary-red);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 2-Column Info Tables (Dates & Fee) */
.tables-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.info-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table-card h3 {
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--primary-red);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sarkari-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sarkari-data-table td, .sarkari-data-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.sarkari-data-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  text-align: left;
}

.sarkari-data-table tr:last-child td {
  border-bottom: none;
}

.sarkari-data-table .val-bold {
  font-weight: 700;
  color: var(--text-main);
}

/* Vacancy Breakdown Table */
.vacancy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.vacancy-header {
  background: linear-gradient(135deg, var(--primary-navy), #2563EB);
  color: #FFFFFF;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 800;
}

/* Direct Useful Links Box (The Money Section) */
.links-card {
  background: #FFFBEB;
  border: 2px solid #F59E0B;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

[data-theme="dark"] .links-card {
  background: rgba(245, 158, 11, 0.08);
}

.links-header {
  background: #F59E0B;
  color: #000000;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
}

.links-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-link-action {
  background: var(--primary-red);
  color: #FFFFFF !important;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.15s, background 0.15s;
}

.btn-link-action:hover {
  background: var(--primary-red-dark);
  transform: scale(1.04);
}

.btn-social-link {
  background: #0088CC;
}

/* FAQs */
.faqs-section {
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
}

.faq-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-main);
}

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 40px 0 20px 0;
  border-top: 4px solid var(--primary-red);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #94A3B8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.82rem;
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1E293B;
  font-size: 0.8rem;
  color: #64748B;
}

/* =========================================================
   MOBILE BOTTOM QUICK NAVIGATION BAR
   ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 998;
  padding: 6px 12px;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 2px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-width: 54px;
}

.mobile-nav-item .material-symbols-rounded {
  font-size: 1.35rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

.mobile-nav-item.active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1;
}

/* =========================================================
   PC / DESKTOP OPTIMIZATIONS (LARGE SCREEN EXPERIENCES)
   ========================================================= */
@media (min-width: 1025px) {
  .sarkari-columns-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .trending-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tools-hub-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tables-dual-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .job-detail-card {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .discreet-visitor-counter {
    bottom: 8px;
    left: 12px;
  }
}

/* =========================================================
   TABLET & MEDIUM SCREENS (768px - 1024px)
   ========================================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .sarkari-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MOBILE PORTRAIT & COMPACT SCREENS (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Give space for mobile bottom nav */
  body {
    padding-bottom: 70px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  /* Compact Discreet Counter on Mobile */
  .discreet-visitor-counter {
    bottom: 64px;
    left: 8px;
  }

  /* Single Column Stack */
  .sarkari-columns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trending-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tools-hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tables-dual-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Touch-friendly horizontal scrollbars */
  .state-selector-bar,
  .pills-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .state-selector-bar::-webkit-scrollbar,
  .pills-container::-webkit-scrollbar {
    display: none;
  }

  /* Touch Target minimums */
  .column-list a,
  .pill-btn,
  .state-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Header Optimization on Mobile */
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-social-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo-text h1 {
    font-size: 1.35rem;
  }

  .brand-logo-text .portal-tagline {
    font-size: 0.72rem;
  }

  /* Ad Banner Mobile Stack */
  .ad-banner-mock {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .btn-ad-cta {
    width: 100%;
    text-align: center;
  }

  /* Mobile Full-Screen Bottom-Sheet Modals */
  .job-detail-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .job-detail-card {
    border-radius: 20px 20px 0 0;
    max-height: 94vh;
    width: 100%;
    margin-top: 6vh;
  }

  .detail-header {
    padding: 16px;
  }

  .detail-header h2 {
    font-size: 1.1rem;
  }

  .detail-body {
    padding: 16px;
  }
}

/* =========================================================
   MOBILE LANDSCAPE ORIENTATION ADAPTATION
   ========================================================= */
@media (max-width: 900px) and (orientation: landscape) {
  .sarkari-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-detail-card {
    max-height: 88vh;
  }

  .mobile-bottom-nav {
    padding: 2px 12px;
  }

  .mobile-nav-item {
    flex-direction: row;
    gap: 4px;
    font-size: 0.68rem;
  }

  .mobile-nav-item .material-symbols-rounded {
    font-size: 1.1rem;
  }
}

/* =========================================================
   GDPR / ADSENSE COOKIE CONSENT BANNER
   ========================================================= */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--primary-red);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.cookie-icon {
  color: var(--accent-gold);
  font-size: 24px;
}

.cookie-content a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: underline;
}

.btn-cookie-accept {
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-cookie-accept:hover {
  background: var(--primary-red-dark);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .cookie-consent-bar {
    bottom: 56px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .btn-cookie-accept {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   LEGAL MODAL CONTENT TYPOGRAPHY
   ========================================================= */
.legal-section {
  margin-bottom: 20px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

[data-theme="dark"] .legal-section h3 {
  color: #93C5FD;
}

.legal-section p {
  margin-bottom: 8px;
  color: var(--text-main);
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-section li {
  margin-bottom: 6px;
}
