/* ============================================================
   NepaliJob — Complete Visual Revamp
   Drop into: Appearance > Customize > Additional CSS
   (or a child theme's style.css)
   ============================================================ */

/* ── 1. Design tokens ──────────────────────────────────────── */
:root {
  --brand:        #2563EB;   /* vivid blue — primary actions    */
  --brand-hover:  #1D4ED8;
  --accent:       #F59E0B;   /* amber — featured/highlight      */
  --dark:         #0F172A;   /* hero bg, footer                 */
  --dark-2:       #1E293B;   /* card hover bg                   */
  --body-text:    #334155;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --surface:      #F8FAFC;   /* light page bg                   */
  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
}

/* ── 2. Base reset & typography ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6 {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

a { color: var(--brand); transition: color .2s; }
a:hover, a:focus { color: var(--brand-hover); text-decoration: none; }

/* ── 3. Navbar ─────────────────────────────────────────────── */
.navbar,
.navbar-fixed-top {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  height: 68px;
  min-height: 68px;
}

.navbar-brand {
  height: 68px;
  line-height: 68px;
  font-weight: 800;
  font-size: 22px;
  color: var(--dark) !important;
  letter-spacing: -0.5px;
}

/* Nav links */
.navbar-nav > li > a {
  color: var(--body-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 68px !important;
  padding: 0 16px !important;
  transition: color .2s !important;
}
.navbar-nav > li > a:hover,
.navbar-nav > li:hover > a,
.navbar-nav li.active > a,
.navbar-nav li.current-menu-item > a {
  color: var(--brand) !important;
  background: transparent !important;
}

/* Post-a-job CTA button in nav */
.navbar-nav li.menu-item-post-btn > a,
.navbar-nav li.menu-item-post-btn > a:hover {
  background: var(--brand) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  line-height: 1.4 !important;
  margin-top: 16px;
  font-size: 14px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.3) !important;
  transition: background .2s, box-shadow .2s !important;
}
.navbar-nav li.menu-item-post-btn > a:hover {
  background: var(--brand-hover) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.4) !important;
  opacity: 1 !important;
}

/* Dropdown sub-menus */
.navbar-nav ul.sub-menu {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px 0 !important;
  margin-top: 4px !important;
}
.navbar-nav ul.sub-menu li > a {
  color: var(--body-text) !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  border-radius: 0 !important;
  transition: background .15s, color .15s !important;
}
.navbar-nav ul.sub-menu li > a:hover { 
  background: var(--surface) !important;
  color: var(--brand) !important;
}
/* Remove old yellow triangle on dropdown */
.navbar-nav.sf-menu > li > ul.sub-menu:before { display: none !important; }
.navbar-nav.sf-menu > li > ul.sub-menu { border-top: 3px solid var(--brand) !important; }

/* ── 4. Hero / Page heading ────────────────────────────────── */
.noo-page-heading,
.noo-job-heading,
.jobmonster-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3563 100%) !important;
  padding: 90px 0 80px !important;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture overlay */
.noo-page-heading::after,
.noo-job-heading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.noo-page-heading:before,
.noo-job-heading:before {
  background: rgba(15, 23, 42, 0.45) !important;
}

.noo-page-heading .page-title {
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.noo-page-heading .page-sub-heading-info,
.noo-page-heading .page-sub-heading-info .content-meta,
.noo-page-heading .page-sub-heading-info .content-meta a,
.noo-page-heading .page-sub-heading-info .entry-date span {
  color: rgba(255,255,255,.75) !important;
  font-size: 15px;
}

/* Count badge */
.noo-page-heading .page-title .count {
  background: var(--brand) !important;
  font-size: 13px !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

/* ── 5. Search bar (hero area) ─────────────────────────────── */
.noo-job-map .job-advanced-search .job-advanced-search-form,
.noo-job-search-wrapper .job-advanced-search .job-advanced-search-form,
.noo-heading-search {
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 10px !important;
  border: none !important;
  margin-top: 32px;
}

.noo-heading-search .noo-form-control,
.noo-job-map .job-advanced-search .form-group .form-control,
.noo-job-search-wrapper .job-advanced-search .form-group .form-control {
  border: none !important;
  box-shadow: none !important;
  font-size: 15px;
  color: var(--body-text);
  height: 48px;
}

.noo-heading-search .noo-btn-search,
.noo-job-map .job-advanced-search .btn-search-submit,
.noo-job-search-wrapper .job-advanced-search .btn-search-submit {
  background: var(--brand) !important;
  border-radius: 12px !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  height: 48px;
  padding: 0 32px !important;
  font-size: 15px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.35) !important;
  transition: background .2s, box-shadow .2s !important;
}
.noo-heading-search .noo-btn-search:hover,
.noo-job-map .job-advanced-search .btn-search-submit:hover,
.noo-job-search-wrapper .job-advanced-search .btn-search-submit:hover {
  background: var(--brand-hover) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,.45) !important;
  opacity: 1 !important;
}

/* ── 6. Buttons (global) ───────────────────────────────────── */
.btn,
.btn-primary,
.widget_newsletterwidget .newsletter-submit,
.read-more {
  font-family: 'Inter', 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  border-radius: 8px !important;
  transition: background .2s, box-shadow .2s, transform .15s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.btn-primary,
.widget_newsletterwidget .newsletter-submit {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--white) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.widget_newsletterwidget .newsletter-submit:hover {
  background: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(37,99,235,.35) !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

.btn-default {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  color: var(--body-text) !important;
}
.btn-default:hover {
  background: var(--surface) !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* ── 7. Job listing cards ──────────────────────────────────── */
.jobs article,
.jobs article.style-1 {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px !important;
  padding: 22px 24px !important;
  transition: box-shadow .2s, border-color .2s, transform .2s !important;
  display: flex !important;
  align-items: center;
}
.jobs article:nth-child(odd),
.jobs article.style-1:nth-child(odd) { background: var(--white) !important; }

.jobs article:hover,
.jobs article.style-1:hover {
  background: var(--white) !important;
  border-color: var(--brand) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
  cursor: pointer;
}

/* Fix text color on hover (old theme turned everything white) */
.jobs article:hover .loop-item-title > a,
.jobs article:hover .show-view-more > a,
.jobs article:hover em,
.jobs article:hover span,
.jobs article:hover span.job-category > a,
.jobs article:hover span.job-company > a,
.jobs article:hover time,
.jobs article:hover .content-meta,
.jobs article:hover .content-meta a {
  color: var(--body-text) !important;
}
.jobs article:hover .loop-item-title > a { color: var(--brand) !important; }
.jobs article:hover .show-view-more > a  { color: var(--brand) !important; }

/* Company logo circle */
.list.loop-item-wrap .item-featured,
.style-1 .loop-item-wrap .item-featured {
  width: 72px !important;
  min-width: 72px !important;
  height: 72px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}
.list.loop-item-wrap .item-featured img,
.style-1 .loop-item-wrap .item-featured img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  border-radius: 0 !important;
}

/* Job title */
.list.loop-item-wrap .loop-item-content .loop-item-title,
.style-1 .loop-item-wrap .loop-item-content .loop-item-title,
.loop-item-wrap .loop-item-content .loop-item-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  margin-bottom: 4px !important;
}
.list.loop-item-wrap .loop-item-content .loop-item-title a,
.style-1 .loop-item-wrap .loop-item-content .loop-item-title a {
  color: var(--dark) !important;
  font-size: 15px !important;
  transition: color .2s !important;
}
.list.loop-item-wrap .loop-item-content .loop-item-title a:hover { color: var(--brand) !important; }

/* Meta (company, location, type) */
.list.loop-item-wrap .loop-item-content .content-meta,
.style-1 .loop-item-wrap .loop-item-content .content-meta {
  font-size: 13px !important;
  color: var(--muted) !important;
}
.list.loop-item-wrap .loop-item-content .content-meta a,
.style-1 .loop-item-wrap .loop-item-content .content-meta a { color: var(--muted) !important; }
.list.loop-item-wrap .loop-item-content .content-meta a:hover { color: var(--brand) !important; }

/* Job type tags */
.content-meta ul .job-type.full-time  { color: #16A34A !important; background: #DCFCE7; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.content-meta ul .job-type.part-time  { color: #2563EB !important; background: #DBEAFE; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.content-meta ul .job-type.contract   { color: #7C3AED !important; background: #EDE9FE; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.content-meta ul .job-type.freelance  { color: #D97706 !important; background: #FEF3C7; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Apply button on card */
.list.loop-item-wrap .show-view-more .btn-primary,
.loop-item-wrap .show-view-more .btn-primary {
  padding: 8px 18px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--white) !important;
}

/* Featured job badge */
.noo_job.featured-job:before {
  border-left-color: var(--accent) !important;
}
.noo_job.featured-job:after { color: var(--white) !important; }

/* ── 8. noo-job-grid2 (grid view cards) ────────────────────── */
.noo-job-grid2 .noo-job-item,
.noo-job-grid .noo-job-item {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  transition: box-shadow .2s, border-color .2s, transform .2s !important;
  padding: 20px !important;
}
.noo-job-grid2 .noo-job-item:hover,
.noo-job-grid .noo-job-item:hover {
  background: var(--white) !important;
  border-color: var(--brand) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-3px);
}
.noo-job-grid2 .noo-job-item:hover a,
.noo-job-grid2 .noo-job-item:hover h3,
.noo-job-grid .noo-job-item:hover a,
.noo-job-grid .noo-job-item:hover h3 {
  color: var(--brand) !important;
}

/* ── 9. Sidebar & widgets ──────────────────────────────────── */
.noo-sidebar-wrap { background: transparent !important; }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px !important;
}

.widget-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.widget ol, .widget ul {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.widget ol li, .widget ul li {
  border-bottom: 1px solid var(--border) !important;
  padding: 8px 0 !important;
}
.widget ol li:last-child, .widget ul li:last-child { border-bottom: none !important; }
.widget ol li a, .widget ul li a {
  color: var(--body-text) !important;
  font-size: 14px !important;
  transition: color .15s;
}
.widget ol li a:hover, .widget ul li a:hover { color: var(--brand) !important; }

/* Filter checkboxes */
.form-control-flat > .checkbox i,
.form-control-flat > .radio i { border-color: var(--border) !important; }
.form-control-flat > .checkbox input:checked + i,
.form-control-flat > .radio input:checked + i,
.form-control-flat .checkbox i:after,
.form-control-flat .radio i:after { color: var(--brand) !important; }

/* ── 10. Pagination ────────────────────────────────────────── */
.pagination .page-numbers {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  color: var(--body-text) !important;
  border-radius: 8px !important;
  width: 36px; height: 36px; line-height: 34px;
  font-weight: 600;
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current:not(.disabled) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--white) !important;
}

/* ── 11. Forms & inputs ────────────────────────────────────── */
.form-control,
.wpcf7-form-control:not(.wpcf7-submit) {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  height: 46px !important;
  font-size: 14px !important;
  color: var(--body-text) !important;
  background: var(--white) !important;
  transition: border-color .2s, box-shadow .2s !important;
  box-shadow: none !important;
}
.form-control:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
  outline: none !important;
}
textarea.form-control { height: auto !important; }

/* ── 12. Company cards ─────────────────────────────────────── */
.company-list .company-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s !important;
  background: var(--white) !important;
}
.company-list .company-item:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-3px);
}
.company-list .company-item .company-item-meta {
  border-top: 1px solid var(--border) !important;
  padding: 16px 20px !important;
}
.company-list .company-item .company-item-meta a {
  color: var(--dark) !important;
  font-weight: 700 !important;
}
.company-list .company-item .company-item-meta a:hover { color: var(--brand) !important; }
.company-list .company-item .company-item-meta .fa { color: var(--brand) !important; }

/* ── 13. Single job page ───────────────────────────────────── */
.content-summary {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 28px !important;
}
.job-custom-fields {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
}
.job-action .btn-primary {
  padding: 14px 36px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}

/* ── 14. Footer ────────────────────────────────────────────── */
.colophon.wigetized {
  background: var(--dark) !important;
}
.colophon.site-info {
  background: #080E1A !important;
}
.colophon.site-info:before { background: #1E293B !important; }
.wigetized .widget-title {
  color: var(--white) !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
.wigetized .widget a { color: rgba(255,255,255,.65) !important; }
.wigetized .widget a:hover { color: var(--brand) !important; }
.wigetized .widget ol li, .wigetized .widget ul li {
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.colophon.site-info .footer-more { color: rgba(255,255,255,.5) !important; }
.colophon.site-info .footer-more a { color: rgba(255,255,255,.5) !important; }
.colophon.site-info .footer-more a:hover { color: var(--brand) !important; }

/* ── 15. Category/tag pills ────────────────────────────────── */
.label-primary,
.noo_job.featured-job .content-meta .show-view-more a::before { color: var(--accent) !important; }

.widget_product_tag_cloud .tagcloud a,
.widget_tag_cloud .tagcloud a,
.content-footer .content-tags a {
  background: var(--surface) !important;
  color: var(--body-text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}
.widget_product_tag_cloud .tagcloud a:hover,
.widget_tag_cloud .tagcloud a:hover,
.content-footer .content-tags a:hover {
  background: var(--brand) !important;
  color: var(--white) !important;
  border-color: var(--brand) !important;
}

/* ── 16. Alerts & messages ─────────────────────────────────── */
.noo-messages.noo-message-success {
  background: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
  color: #166534 !important;
  border-radius: 8px;
}
.noo-messages.noo-message-error {
  background: #FEF2F2 !important;
  border-color: #FECACA !important;
  color: #991B1B !important;
  border-radius: 8px;
}
.noo-messages.noo-message-notice {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #1E40AF !important;
  border-radius: 8px;
}

/* ── 17. Job-type stat pills (map/sidebar) ─────────────────── */
.text-primary { color: var(--brand) !important; }
.bg-primary    { background: var(--brand) !important; }

/* ── 18. Member dashboard ──────────────────────────────────── */
.member-heading { background: var(--dark-2) !important; }
.member-heading .member-heading-nav li a { color: rgba(255,255,255,.6) !important; }
.member-heading .member-heading-nav li a:hover,
.member-heading .member-heading-nav li.active a { color: var(--white) !important; }
.member-heading .member-heading-nav li a:before {
  border-bottom-color: var(--brand) !important;
}

/* Table rows */
.member-manage .table tbody tr:not(.child):hover {
  background: var(--dark) !important;
}
.member-manage .table tbody tr:not(.child):hover a:not(.btn-primary) { color: rgba(255,255,255,.85) !important; }

/* ── 19. Topbar ────────────────────────────────────────────── */
.noo-topbar {
  background: var(--dark) !important;
  border-bottom: none !important;
}
.noo-topbar, .noo-topbar a { color: rgba(255,255,255,.65) !important; }
.noo-topbar a:hover { color: var(--white) !important; }
.noo-topbar .noo-topbar-login-link li a:hover { color: var(--white) !important; }

/* ── 20. Page background ───────────────────────────────────── */
.main-content,
.site,
#page { background: var(--surface) !important; }

/* Container max-width comfort */
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

/* ── 21. Mobile ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
  }
  .navbar-nav > li > a { line-height: 1.6 !important; padding: 12px 20px !important; }
  .noo-page-heading { padding: 60px 0 50px !important; }
  .noo-page-heading .page-title { font-size: 1.8rem !important; }
  .jobs article { padding: 16px !important; }
}

@media (max-width: 767px) {
  .noo-topbar { display: none !important; }
  .widget { padding: 16px !important; }
}
