/* Custom Styles for NaukriDisha Government Jobs Portal */
:root {
  --portal-primary: #0f2c59;
  --portal-primary-hover: #0a1f40;
  --portal-accent: #d97706;
  --portal-accent-hover: #b45309;
  --portal-success: #15803d;
  --portal-danger: #dc2626;
  --portal-info: #0284c7;
  --portal-bg-light: #f8fafc;
  --portal-card-border: #e2e8f0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--portal-bg-light);
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
.top-bar-notice {
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 6px 0;
}

.portal-navbar {
  background-color: var(--portal-primary);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.15);
}

.portal-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.5px;
}

.portal-navbar .nav-link {
  color: #e2e8f0 !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  transition: all 0.2s ease;
}

.portal-navbar .nav-link:hover,
.portal-navbar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Hero & Announcement Banner */
.hero-search-section {
  background: linear-gradient(135deg, #0f2c59 0%, #1e40af 100%);
  color: white;
  padding: 2.5rem 0;
  border-bottom: 4px solid var(--portal-accent);
}

.ticker-wrap {
  background-color: #fef3c7;
  border-left: 4px solid var(--portal-accent);
  padding: 8px 16px;
  border-radius: 4px;
}

/* Home 3-Column Tables (Sarkari Style) */
.sarkari-column-card {
  border: 2px solid var(--portal-primary);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: 100%;
}

.sarkari-column-header {
  background: var(--portal-primary);
  color: #ffffff;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sarkari-list-group .list-group-item {
  border-left: none;
  border-right: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: background-color 0.15s;
}

.sarkari-list-group .list-group-item:hover {
  background-color: #f1f5f9;
}

.sarkari-list-group .list-group-item:last-child {
  border-bottom: none;
}

/* Job Cards & Badges */
.job-card {
  border: 1px solid var(--portal-card-border);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.badge-featured {
  background-color: #f59e0b;
  color: #ffffff;
}

.badge-closing {
  background-color: #ef4444;
  color: #ffffff;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Job Details Page Specifications Box */
.specs-table-box {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.specs-table-box th {
  background-color: #f1f5f9;
  color: #334155;
  width: 35%;
}

/* Category Icons */
.category-card {
  border: 1px solid var(--portal-card-border);
  border-radius: 8px;
  background: white;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  border-color: var(--portal-primary);
  background-color: #f0fdf4;
  color: var(--portal-primary);
  transform: translateY(-3px);
}

.category-card i {
  font-size: 2.2rem;
  color: var(--portal-primary);
  margin-bottom: 0.5rem;
}

/* Admin Dashboard Styling */
.admin-sidebar {
  background-color: #0f172a;
  color: #94a3b8;
  min-height: calc(100vh - 60px);
}

.admin-sidebar .nav-link {
  color: #94a3b8;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #ffffff;
  background-color: #1e293b;
}

.stat-card {
  border-radius: 10px;
  padding: 1.25rem;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.stat-card-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.stat-card-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.stat-card-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.stat-card-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.stat-card-red { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* Footer */
footer {
  margin-top: auto;
  background-color: #0f172a;
  color: #94a3b8;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   DYNAMIC JOB POST & RICH-TEXT PORTAL ENHANCEMENTS
   ========================================================================== */

.section-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

.rich-content-body {
  line-height: 1.7;
  color: #1e293b;
  font-size: 0.95rem;
}

.rich-content-body h1,
.rich-content-body h2,
.rich-content-body h3,
.rich-content-body h4,
.rich-content-body h5,
.rich-content-body h6 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.rich-content-body p {
  margin-bottom: 1rem;
}

.rich-content-body ul,
.rich-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.rich-content-body li {
  margin-bottom: 0.35rem;
}

/* Modern Clean Sarkari Tables */
.rich-content-body table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.rich-content-body th,
.rich-content-body td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  vertical-align: middle;
}

.rich-content-body th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  text-align: left;
}

.rich-content-body tr:nth-child(even) td {
  background-color: #f8fafc;
}

.rich-content-body tr:hover td {
  background-color: #f1f5f9;
}

/* Mobile Accordions */
.mobile-job-accordion .accordion-button {
  font-size: 1rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
}

.mobile-job-accordion .accordion-button:not(.collapsed) {
  color: #2563eb;
  background-color: #eff6ff;
  box-shadow: none;
}

.mobile-job-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(37, 99, 235, 0.25);
}

/* Print Styles */
@@media print {
  header, footer, .btn, .admin-sidebar, .breadcrumb, #btnBookmark {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}