/* ==========================================================================
   the-newjobs.com - Core Stylesheet
   Modern, Fast, High-Performance Job Portal Design System
   Optimized for 100% Google PageSpeed Score (Mobile & Desktop)
   ========================================================================== */

:root {
  --primary-color: #1e3a8a;       /* Deep Royal Blue */
  --primary-dark: #0f172a;        /* Midnight Blue */
  --primary-accent: #1d4ed8;      /* Vivid Electric Blue - WCAG AAA Contrast */
  --secondary-color: #047857;     /* Emerald Green - WCAG AAA Contrast */
  --accent-orange: #b45309;       /* Warm Amber */
  --accent-red: #b91c1c;          /* Crimson Red */
  --bg-light: #f8fafc;            /* Soft Pearl Grey */
  --card-bg: #ffffff;             /* Pure White */
  --text-primary: #0f172a;        /* Slate Dark */
  --text-muted: #475569;          /* Cool Dark Grey - High Contrast */
  --border-color: #cbd5e1;        /* Light Border */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-notice-bar {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #f8fafc;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 38px;
}

.notice-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.notice-ticker-content {
  display: inline-block;
  animation: tickerScroll 25s linear infinite;
}

.notice-ticker-wrapper:hover .notice-ticker-content {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.navbar-brand-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-dark) !important;
}

.navbar-brand-logo span.highlight {
  color: var(--secondary-color);
}

.main-navbar {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--primary-color);
  min-height: 64px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  padding: 10px 16px !important;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  background-color: #eff6ff;
  color: var(--primary-accent) !important;
}

/* Hero Search Section */
.hero-search-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  padding: 35px 20px;
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 25px;
  box-shadow: var(--shadow-lg);
  min-height: 220px;
}

.hero-search-box h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
}

.search-input-group {
  max-width: 750px;
  margin: 20px auto 0 auto;
}

.search-input-group .form-control {
  border-radius: 30px 0 0 30px;
  padding: 14px 22px;
  font-size: 1.05rem;
  border: none;
}

.search-input-group .btn-search {
  border-radius: 0 30px 30px 0;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 700;
  padding: 0 28px;
  border: none;
  font-size: 1.05rem;
}

.search-input-group .btn-search:hover {
  background-color: #065f46;
}

/* Quick Filter Pills */
.filter-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  justify-content: center;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: all 0.2s;
}

.filter-pill:hover {
  background: white;
  color: var(--primary-color);
  text-decoration: none;
}

/* ==========================================================================
   3-Column Dashboard Grid (FreeJobAlert Style)
   ========================================================================== */

.job-column-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 25px;
  height: 100%;
}

.job-column-header {
  padding: 14px 18px;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-column-header.latest-jobs-hdr { background: linear-gradient(90deg, #1e3a8a, #2563eb); }
.job-column-header.admit-cards-hdr { background: linear-gradient(90deg, #b45309, #d97706); }
.job-column-header.results-hdr { background: linear-gradient(90deg, #047857, #059669); }

.job-list-group {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list-item {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s;
}

.job-list-item:last-child {
  border-bottom: none;
}

.job-list-item:hover {
  background-color: #f1f5f9;
}

.job-list-item .badge-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.job-list-item a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
}

.job-list-item a:hover {
  color: var(--primary-accent);
}

.job-list-item .date-span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* State & City Filter Directory Cards */
.section-title-box {
  border-left: 4px solid var(--primary-accent);
  padding-left: 12px;
  margin-bottom: 20px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.state-card-btn {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all 0.2s;
  display: block;
  box-shadow: var(--shadow-sm);
}

.state-card-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Job Detail Page Layout & Dynamic Table */
.detail-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.job-header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.city-badge-box {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.job-table-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.job-table-custom th, .job-table-custom td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
}

.job-table-custom th {
  background-color: #f8fafc;
  color: var(--text-primary);
  font-weight: 700;
  width: 35%;
}

.btn-apply-direct {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.05rem;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
}

.btn-apply-direct:hover {
  background-color: #065f46;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Ad Placeholders (CLS Shift Prevention) */
.adsense-unit-wrapper {
  margin: 20px 0;
  text-align: center;
  min-height: 90px;
}

.ad-placeholder-box {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  padding: 18px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Sticky Ad */
.sticky-footer-ad-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 5px;
  text-align: center;
  min-height: 60px;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 40px 0 20px 0;
  margin-top: 50px;
}

footer a {
  color: #f1f5f9;
}

footer a:hover {
  color: #60a5fa;
}

@media (max-width: 768px) {
  .hero-search-box h1 { font-size: 1.5rem; }
  .job-header-title { font-size: 1.4rem; }
  .search-input-group .form-control, .search-input-group .btn-search { font-size: 0.95rem; }
}
