/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a3c5e;
  --primary-light: #2563a8;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --dark: #0f1f2e;
  --text: #2d3748;
  --text-muted: #718096;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26,60,94,.08);
  --shadow-hover: 0 8px 40px rgba(26,60,94,.16);
  --hero-bg: linear-gradient(135deg, #0f1f2e 0%, #1a3c5e 50%, #2563a8 100%);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.25;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.site-header .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.5px;
}
.site-header .navbar-brand span { color: var(--accent); }
.site-header .navbar-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  padding: .65rem 1rem;
  transition: color .2s;
}
.site-header .navbar-nav .nav-link:hover { color: var(--accent) !important; }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.3); }
.site-header .navbar-toggler-icon { filter: invert(1); }

/* ── HERO ── */
.hero-section {
  background: var(--hero-bg);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}
.hero-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.hero-search-bar {
  background: #fff;
  border-radius: 50px;
  padding: 6px 6px 6px 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  max-width: 680px;
  margin: 2rem auto 0;
}
.hero-search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
}
.hero-search-bar button {
  background: var(--accent);
  border: none;
  border-radius: 40px;
  color: var(--dark);
  font-weight: 600;
  padding: .7rem 1.8rem;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.hero-search-bar button:hover { background: var(--accent-hover); transform: scale(1.02); }
.hero-stats { margin-top: 2.5rem; }
.hero-stats span {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-right: 1.5rem;
}
.hero-stats strong { color: #fff; }

/* ── SEARCH DROPDOWN ── */
.search-wrapper { position: relative; }
#search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--border);
}
#search-results-dropdown .search-item {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
#search-results-dropdown .search-item:hover { background: var(--bg); }
#search-results-dropdown .search-item:last-child { border-bottom: none; }
#search-results-dropdown .search-item .title { font-weight: 600; font-size: .95rem; color: var(--dark); }
#search-results-dropdown .search-item .meta { font-size: .8rem; color: var(--text-muted); }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-item { padding:.8rem 1.2rem; border-bottom:1px solid var(--border); }
.skeleton-title { height:16px; width:60%; margin-bottom:6px; }
.skeleton-meta { height:12px; width:40%; }

/* ── SECTION TITLES ── */
.section-title {
  font-size: 1.8rem;
  margin-bottom: .4rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: .5rem;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* ── JOB CARD ── */
.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.job-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.job-card.featured { border-left: 4px solid var(--accent); }
.job-card .featured-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.job-card .company-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: .75rem;
}
.job-card .company-logo-placeholder {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; font-weight: 700;
  margin-bottom: .75rem;
}
.job-card h5 { font-size: 1.05rem; margin-bottom: .25rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.job-card h5 a { color: var(--dark); }
.job-card h5 a:hover { color: var(--primary-light); }
.job-card .company-name { color: var(--text-muted); font-size: .88rem; margin-bottom: .6rem; }
.job-card .job-meta { font-size: .83rem; color: var(--text-muted); margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.job-card .job-meta span { margin-right: .8rem; }
.job-card .job-meta i { margin-right: 3px; }
.job-card .expired-overlay {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: rgba(255,255,255,.7); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.job-card .expired-overlay span { background: #e53e3e; color: #fff; padding: .3rem .8rem; border-radius: 20px; font-size: .8rem; font-weight: 600; }

/* ── CATEGORY CARD ── */
.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--dark);
}
.category-card:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.category-card .cat-icon {
  font-size: 2.2rem;
  margin-bottom: .75rem;
  display: block;
}
.category-card h6 { font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: .25rem; }
.category-card .count { font-size: .82rem; opacity: .7; }

/* ── FILTERS ── */
.filter-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.filter-bar .form-select, .filter-bar .form-control {
  border-radius: 8px;
  border-color: var(--border);
  font-size: .9rem;
}

/* ── JOB DETAIL ── */
.job-detail-header {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.job-detail-header img.company-img {
  width: 80px; height: 80px; border-radius: 14px;
  object-fit: cover; border: 1px solid var(--border);
}
.apply-btn {
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: .85rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  display: inline-block;
}
.apply-btn:hover { background: var(--accent-hover); color: var(--dark); transform: scale(1.03); }
.job-description { line-height: 1.8; }
.job-description h1, .job-description h2, .job-description h3,
.job-description h4, .job-description h5 { font-size: 1.1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

/* ── SIDEBAR ── */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.info-list li { padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5rem; }
.info-list li:last-child { border-bottom: none; }
.info-list li i { color: var(--primary-light); width: 18px; text-align: center; }

/* ── ADS ── */
.ad-placeholder {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e2e8f0 10px, #e2e8f0 20px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  text-align: center;
  min-height: 100px;
  margin-bottom: 1.5rem;
}
.ad-placeholder.ad-728 { min-height: 90px; }
.ad-placeholder.ad-300 { min-height: 250px; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state .empty-icon { font-size: 4rem; opacity: .3; margin-bottom: 1rem; }
.empty-state h4 { color: var(--text-muted); font-family: 'DM Sans', sans-serif; }

/* ── BREADCRUMB ── */
.breadcrumb-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.breadcrumb { margin: 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--dark); }

/* ── 404 ── */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-page .error-code { font-size: 7rem; font-weight: 700; color: var(--primary); opacity: .15; line-height: 1; }
.error-page h2 { margin-top: -2rem; font-size: 1.8rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h6 {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul li a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.site-footer ul li a:hover { color: var(--accent); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-brand span { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 2rem; font-size: .82rem; }

/* ── CONTACT ── */
.contact-form .form-control, .contact-form .form-select {
  border-radius: 10px; border-color: var(--border);
  padding: .8rem 1rem; font-family: 'DM Sans', sans-serif;
}
.contact-form .form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 .2rem rgba(37,99,168,.15); }
.btn-primary-custom {
  background: var(--primary);
  color: #fff; border: none;
  border-radius: 50px;
  padding: .8rem 2rem;
  font-weight: 600;
  transition: all .2s;
}
.btn-primary-custom:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ── BADGE / PILLS ── */
.badge { font-weight: 500; font-size: .78rem; border-radius: 20px; padding: .3em .7em; }

/* ── PAGINATION ── */
.pagination .page-link { border-color: var(--border); color: var(--primary-light); border-radius: 8px !important; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── UTILITIES ── */
.bg-accent { background: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.border-radius-lg { border-radius: var(--radius) !important; }
.card-hover { transition: all .25s; }
.card-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-section h1 { font-size: 1.8rem; }
  .hero-search-bar { flex-direction: column; border-radius: var(--radius); padding: .5rem; }
  .hero-search-bar input { padding: .6rem .8rem; }
  .hero-search-bar button { width: 100%; border-radius: 8px; }
  .section-title { font-size: 1.4rem; }
  .job-detail-header { padding: 1.2rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
