/* ===========================
   SARTHAK YOJANA – HEADER CSS
   File: assets/css/style.css
   =========================== */

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

body {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── TOP INFO BAR ── */
.top-bar {
  background: #1a56db;
  color: #fff;
  font-size: 12px;
  padding: 5px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── MAIN HEADER ── */
.main-header {
  background: #fff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Logo stays left */
.logo-link {
  justify-self: start;
}

/* Nav stays center */
.main-nav {
  justify-self: center;
}

/* Hamburger stays right */
.hamburger {
  justify-self: end;
  grid-column: 3;
}

/* ── LOGO ── */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,86,219,0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a56db;
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: #64748b;
}

/* ── NAV LINKS ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: #eff6ff;
  color: #1a56db;
}

.nav-link.active {
  background: #eff6ff;
  color: #1a56db;
  font-weight: 600;
}

/* ── HAMBURGER (Mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {

  .top-bar {
    justify-content: center;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-header {
    position: relative;
  }

  .nav-link {
    padding: 10px 14px;
  }

  .logo-title {
    font-size: 15px;
  }
}


/* ===========================
   LATEST JOBS CARDS SECTION
   =========================== */

.cards-section {
  background: #f4f6fb;
  padding: 28px 0;
}

.cards-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.see-all {
  font-size: 13px;
  color: #1a56db;
  font-weight: 500;
}
.see-all:hover { text-decoration: underline; }

/* GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* EACH CARD */
.job-card {
  position: relative;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* CARD COLORS */
.c-pink   { background: #ffe4ec; border-color: #f9a8c9; }
.c-purple { background: #ede9ff; border-color: #c4b5fd; }
.c-yellow { background: #fef9c3; border-color: #fde047; }
.c-green  { background: #dcfce7; border-color: #86efac; }

/* CARD TITLE */
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
}

/* PIN ICON */
.pin {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
}

/* NEW BADGE */
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* MOBILE */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card-title { font-size: 12px; }
}

@media (max-width: 380px) {
  .cards-grid { grid-template-columns: 1fr; }
}
