/* ==========================================================================
   Sarkari Result Ultra-Fast Mobile-First Stylesheet
   Sharp Professional Corners & High-Performance Optimizations
   ========================================================================== */

:root {
  --primary-burgundy: #83182a;
  --primary-burgundy-dark: #671120;
  --primary-burgundy-light: #9c1f34;
  --primary-orange: #ea580c;
  --primary-orange-hover: #c2410c;
  --dark-ticker: #0f172a;
  --dark-footer: #090e17;
  --bg-page: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --card-bg: #ffffff;
  --badge-new: #dc2626;

  /* 9 Core Section Colors */
  --sec-latest-jobs: #1d4ed8;
  --sec-results: #881337;
  --sec-admit-card: #065f46;
  --sec-answer-key: #854d0e;
  --sec-syllabus: #6b21a8;
  --sec-admission: #334155;
  --sec-certificate: #0f766e;
  --sec-offline: #c2410c;
  --sec-important: #b91c1c;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

/* ----------------------------------------------------
   1. GLOBAL RESET & SHARP CORNERS (Zero border-radius)
---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strictly sharp corners across all elements */
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  touch-action: manipulation; /* Eliminate mobile tap delay */
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----------------------------------------------------
   2. TOP SITE HEADER
---------------------------------------------------- */
.site-header {
  background: linear-gradient(135deg, #83182a 0%, #701020 100%);
  color: #ffffff;
  border-bottom: 2px solid #520b17;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-badge {
  background: #ea580c url('/favicon-48x48.png') no-repeat center center;
  background-size: cover;
  color: transparent;
  font-size: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: #fed7aa;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Header Search Form */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 460px;
  width: 100%;
}

.header-search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 0.95rem;
}

.header-search-input {
  width: 100%;
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 10px 12px 10px 36px;
  font-size: 16px; /* Prevents auto-zoom on mobile iOS browsers */
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.header-search-btn {
  background-color: var(--primary-orange);
  color: #ffffff;
  border: 1px solid #c2410c;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
  white-space: nowrap;
  min-height: 42px;
}

.header-search-btn:hover, .header-search-btn:active {
  background-color: #c2410c;
}

/* Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  display: none;
}

.search-dropdown-item {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
}

.search-dropdown-item:active, .search-dropdown-item:hover {
  background-color: #f1f5f9;
}

.search-dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.search-dropdown-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #64748b;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ----------------------------------------------------
   3. SUB-NAVBAR MENU (Sticky & Touch-Scrollable)
---------------------------------------------------- */
.main-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 900;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-navbar::-webkit-scrollbar {
  display: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: max-content;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 11px 15px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
  white-space: nowrap;
  transition: all 0.15s;
  border-bottom: 3px solid transparent;
  min-height: 44px;
}

.nav-link:hover, .nav-link:active {
  color: var(--primary-burgundy);
  background-color: #fdf2f4;
}

.nav-link.active {
  color: var(--primary-burgundy);
  border-bottom-color: var(--primary-burgundy);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
}

.nav-action-btn:hover, .nav-action-btn:active {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.bookmark-count-badge {
  background-color: var(--primary-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
}

/* ----------------------------------------------------
   4. HOT UPDATES TICKER (Hardware Accelerated)
---------------------------------------------------- */
.hot-ticker-bar {
  background-color: var(--dark-ticker);
  color: #ffffff;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
  height: 38px;
}

.hot-ticker-label {
  background-color: var(--primary-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.hot-ticker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  animation: pulse-dot 1.2s infinite;
}

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

.ticker-content-track {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-marquee {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  will-change: transform;
  padding-left: 16px;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  color: #f1f5f9;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ticker-item:hover, .ticker-item:active {
  color: #fed7aa;
  text-decoration: underline;
}

.ticker-item-separator {
  color: #475569;
  font-weight: 700;
}

.ticker-badge-new {
  background-color: var(--badge-new);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ----------------------------------------------------
   5. QUICK FLASH BUTTONS ROW (TOP NOTIFICATIONS)
---------------------------------------------------- */
.quick-flash-section {
  padding: 12px 0 4px 0;
}

.quick-flash-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.quick-flash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, filter 0.15s ease;
  line-height: 1.25;
  min-height: 42px;
  text-decoration: none;
}

.quick-flash-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.quick-flash-btn:active {
  transform: translateY(0);
}

/* ----------------------------------------------------
   6. PORTAL HEADLINE BANNER (Sarkari Result Authentic)
---------------------------------------------------- */
.portal-headline-section {
  padding: 8px 0 6px 0;
}

.portal-headline-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-burgundy);
  padding: 10px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-headline-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-burgundy);
  line-height: 1.3;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
}

.portal-headline-subtitle {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0;
}

/* ----------------------------------------------------
   7. 9-CORE SECTIONS GRID (SHARP EDGES, 3x3)
---------------------------------------------------- */
.main-sections-area {
  padding: 14px 0 32px 0;
}

.sections-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.section-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  min-height: 260px;
  content-visibility: auto; /* Browser optimization: skips off-screen rendering */
}

.section-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0;
}

.section-count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-view-more-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
}

.section-view-more-link:hover, .section-view-more-link:active {
  color: #ffffff;
  text-decoration: underline;
}

.section-card-body {
  padding: 6px 0;
  flex: 1;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.post-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.post-item-row {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.12s;
  min-height: 48px; /* Touch target accessibility */
}

.post-item-row:last-child {
  border-bottom: none;
}

.post-item-row:hover, .post-item-row:active {
  background-color: #f8fafc;
}

.post-item-row:hover .post-link-title, .post-item-row:active .post-link-title {
  color: var(--primary-burgundy);
  text-decoration: underline;
}

.post-bullet-dot {
  width: 6px;
  height: 6px;
  background-color: var(--badge-new);
  margin-top: 7px;
  flex-shrink: 0;
}

.post-content-wrap {
  flex: 1;
}

.post-link-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0c1cae;
  line-height: 1.4;
  display: inline;
}

.post-badge-new {
  display: inline-block;
  background-color: var(--badge-new);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.2;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.post-meta-dept {
  font-weight: 500;
}

.empty-section-message {
  padding: 32px 16px;
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  font-size: 0.9rem;
  margin: auto;
}

/* ----------------------------------------------------
   8. MODALS (DETAIL VIEW, BOOKMARKS, ADMIN)
---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modal-enter 0.2s ease;
}

@keyframes modal-enter {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  background-color: var(--primary-burgundy);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #520b17;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.modal-close-btn {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover, .modal-close-btn:active {
  opacity: 0.8;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-footer {
  padding: 10px 16px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* Post Detail Notice Styles */
.detail-notice-banner {
  background: #fdf2f4;
  border: 1px solid #fecdd3;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: center;
}

.detail-notice-banner h2 {
  color: var(--primary-burgundy);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.25;
}

.detail-notice-banner .detail-dept-name {
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.98rem;
}

.detail-notice-banner .detail-advt-info {
  font-size: 0.82rem;
  color: #475569;
  margin-top: 4px;
}

.detail-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  transition: all 0.15s;
}

.detail-btn:hover, .detail-btn:active {
  background-color: #f1f5f9;
}

.detail-btn.btn-primary {
  background-color: var(--primary-burgundy);
  color: #ffffff;
  border-color: var(--primary-burgundy);
}

.detail-btn.btn-primary:hover, .detail-btn.btn-primary:active {
  background-color: var(--primary-burgundy-dark);
}

.detail-btn.bookmarked {
  background-color: #fed7aa;
  border-color: #ea580c;
  color: #9a3412;
}

.detail-short-info {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

/* Two-column table: Dates vs Fees */
.sr-dates-fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.sr-table-box {
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.sr-table-header {
  background-color: #065f46;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
}

.sr-table-header.fee-header {
  background-color: #854d0e;
}

.sr-table-content {
  padding: 10px 12px;
  list-style: none;
}

.sr-table-content li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  gap: 8px;
}

.sr-table-content li:last-child {
  border-bottom: none;
}

.sr-table-content strong {
  color: #1e293b;
}

.sr-table-content span {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.sr-full-box {
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  background: #ffffff;
}

.sr-box-header {
  background-color: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  text-transform: uppercase;
}

.sr-box-header.vac-header {
  background-color: #881337;
}

.sr-box-body {
  padding: 12px;
}

/* Table container for touch devices */
.sr-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sr-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 320px;
}

.sr-data-table th, .sr-data-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: left;
}

.sr-data-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.btn-click-here {
  display: inline-block;
  background-color: #1d4ed8;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  text-align: center;
  min-height: 32px;
}

.btn-click-here:hover, .btn-click-here:active {
  background-color: #1e40af;
  text-decoration: none !important;
}

/* ----------------------------------------------------
   9. ADMIN DASHBOARD & FORM STYLING
---------------------------------------------------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 14px;
}

.admin-tab-btn {
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-bottom: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: #475569;
  min-height: 40px;
}

.admin-tab-btn.active {
  background: #ffffff;
  color: var(--primary-burgundy);
  border-top: 3px solid var(--primary-burgundy);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.form-control {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  font-size: 16px; /* Prevents auto-zoom on mobile */
  outline: none;
  background: #ffffff;
  min-height: 38px;
}

.form-control:focus {
  border-color: var(--primary-orange);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group label {
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 460px;
}

.admin-posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 500px;
}

.admin-posts-table th, .admin-posts-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
}

.admin-posts-table th {
  background-color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}

.action-btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #ffffff;
  margin-right: 4px;
  min-height: 30px;
}

.action-btn-sm.btn-danger {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.action-btn-sm.btn-edit {
  background-color: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

/* ----------------------------------------------------
   10. SITE FOOTER
---------------------------------------------------- */
.site-footer {
  background-color: var(--dark-footer);
  color: #94a3b8;
  border-top: 4px solid var(--primary-burgundy);
  padding: 36px 0 20px 0;
  margin-top: 36px;
}

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary-orange);
  display: inline-block;
  padding-bottom: 3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover, .footer-links a:active {
  color: #fed7aa;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-disclaimer {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

/* ----------------------------------------------------
   11. FLOATING BACK TO TOP BUTTON
---------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-burgundy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:active {
  transform: scale(0.92);
}

/* ----------------------------------------------------
   12. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
---------------------------------------------------- */

/* Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .sections-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-flash-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand-wrapper {
    justify-content: flex-start;
  }

  .brand-title-main {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .header-search-form {
    max-width: 100%;
  }

  .quick-flash-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .sections-grid-3x3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    flex: 1;
  }

  .category-pill-filters {
    width: 100%;
  }

  .sr-dates-fees-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Mobile Screens (<= 540px) */
@media (max-width: 540px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-window {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border: none;
  }

  .modal-body {
    padding: 12px;
  }

  .detail-notice-banner h2 {
    font-size: 1.15rem;
  }

  .detail-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions-bar > div {
    display: flex;
    width: 100%;
  }

  .detail-actions-bar .detail-btn {
    flex: 1;
    justify-content: center;
  }

  .nav-action-btn span:not(.bookmark-count-badge) {
    display: none; /* Icon-only on very narrow bars */
  }

  .brand-logo-badge {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .quick-flash-btn {
    font-size: 0.78rem;
    padding: 6px 4px;
  }
}

/* ----------------------------------------------------
   13. PRINT STYLESHEET
---------------------------------------------------- */
@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }
  .site-header, .main-navbar, .hot-ticker-bar, .quick-flash-section,
  .controls-bar, .modal-close-btn, .modal-footer, .site-footer,
  .detail-actions-bar, .back-to-top-btn {
    display: none !important;
  }
  .modal-overlay {
    position: static;
    background: transparent;
    padding: 0;
  }
  .modal-window {
    border: none;
    max-width: 100%;
    box-shadow: none;
  }
  .modal-header {
    background: #000000;
    color: #ffffff;
  }
  .sr-table-header, .sr-box-header {
    background: #e2e8f0 !important;
    color: #000000 !important;
    border: 1px solid #000000;
  }
  .btn-click-here {
    border: 1px solid #000000;
    color: #000000 !important;
    background: transparent;
  }
}

/* ----------------------------------------------------
   14. ADSENSE COMPLIANT AD SLOTS & RELATED POSTS
---------------------------------------------------- */
.adsense-slot-wrapper {
  margin: 14px auto;
  text-align: center;
  width: 100%;
}

.adsense-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.adsense-box {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.adsense-box.ad-leaderboard {
  min-height: 90px;
  max-width: 970px;
  width: 100%;
}

.adsense-box.ad-in-article {
  min-height: 120px;
  max-width: 100%;
  width: 100%;
}

.adsense-placeholder-inner {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

/* Related Posts Grid */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.related-post-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.related-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   E-E-A-T & ADSENSE COMPLIANCE COMPONENTS
   ========================================================================== */

/* Editorial Fact-Check Badge */
.fact-check-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 10px 14px;
  margin: 12px 0 16px 0;
  font-size: 0.88rem;
  color: #14532d;
}

.fact-check-badge i {
  color: #16a34a;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Post FAQ Accordion */
.post-faq-section {
  margin-top: 24px;
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.post-faq-header {
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-faq-item {
  border-bottom: 1px solid var(--border-light);
}

.post-faq-item:last-child {
  border-bottom: none;
}

.post-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0;
}

.post-faq-question:hover {
  background-color: #f8fafc;
}

.post-faq-question i {
  transition: transform 0.2s ease;
  color: #64748b;
  font-size: 0.85rem;
}

.post-faq-item.active .post-faq-question i {
  transform: rotate(180deg);
  color: var(--primary-burgundy);
}

.post-faq-answer {
  display: none;
  padding: 0 16px 14px 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
}

.post-faq-item.active .post-faq-answer {
  display: block;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  z-index: 99999;
  border-top: 3px solid var(--primary-burgundy);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookie-banner-text a {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--primary-burgundy);
  color: #ffffff;
  border: 1px solid #881337;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.15s;
}

.btn-cookie-accept:hover {
  background-color: #9f1239;
}

.btn-cookie-decline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
}

.btn-cookie-decline:hover {
  color: #ffffff;
  border-color: #cbd5e1;
}

/* Admin Links, Vacancy Repeater & Responsive Styles */
.highlight-badge-vac {
  display: inline-block;
  background-color: #fef2f2;
  color: #991b1b;
  font-weight: 800;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  font-size: 0.88rem;
}

.sr-overview-table th {
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.86rem;
}

.sr-overview-table td {
  font-size: 0.88rem;
  color: #0f172a;
}

.selection-stages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selection-stage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary-burgundy);
}

.stage-num {
  background: var(--primary-burgundy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.stage-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.stage-desc strong {
  color: #0f172a;
}

.custom-date-item,
.custom-fee-item {
  display: grid;
  grid-template-columns: 240px 1fr 38px;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.custom-link-item {
  display: grid;
  grid-template-columns: 260px 1fr 140px 38px;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.selection-stage-editor-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #334155;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.faq-editor-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #1e3a8a;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vacancy-row-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #1e40af;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

@media (max-width: 820px) {
  .custom-date-item,
  .custom-fee-item,
  .custom-link-item {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Editorial In-Depth Content Card for High E-E-A-T and AdSense Value */
.sr-editorial-card {
  margin-top: 14px;
}

.sr-editorial-card .editorial-content-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
}

.sr-editorial-card .editorial-content-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sr-editorial-card .editorial-content-body h3:first-child {
  margin-top: 0;
}

.candidate-advisory-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  padding: 12px 16px;
  margin-bottom: 14px;
}


