/* ================= JOB PAGE CSS ================= */

/* GLOBAL CONTAINER ALIGNMENT (Homepage Match) */
.container{
  max-width:1200px;
  margin:auto;
  padding:0 15px;
}


/* ================= HEADING ================= */
.list-box h2{
  text-align:center;
  margin:0 0 12px;
  color:#b91c1c;   /* 🔴 homepage red */
  font-size:22px;
  font-weight:700;
}

/* ================= CATEGORY (HOMEPAGE MATCH) ================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

.cat-card {
  background: #fff;
  padding: 12px 8px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-weight: 500;
  transition: 0.3s;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  transform: translateY(-5px);
}

/* 🔥 CATEGORY CARD LINK FIX */
.cat-grid a.cat-card {
  color: #000;              /* black text */
  text-decoration: none;   /* underline remove */
}

/* hover (blue hover) */
.cat-grid a.cat-card:hover {
  color: #2563eb;   /* blue hover */
}

/* MOBILE */
@media(max-width:768px){
  .cat-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ================= CATEGORY GAP FIX ================= */
.cat-grid{
  margin-top:10px;
  margin-bottom:10px;
}

/* ================= FLASH (HOMEPAGE MATCH) ================= */
.flash-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px;
  margin: 2px 0;
  border-radius: 10px;
  overflow: visible; /* 🔥 important */
}

.flash-label {
  background: red;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.flash-bar marquee {
  flex: 1;
  white-space: nowrap;
}

.flash-link{
  color:#1d4ed8;
  text-decoration:none;
  font-weight:500;
}

.flash-link:hover{
  text-decoration:underline;
}

/* ================= FILTER BAR ================= */
.filter-bar{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:10px 0 15px;
  position:sticky;
  top:120px; /* 🔥 improved spacing */
  z-index:9;
  background:#fff;
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.filter-btn{
  padding:8px 14px;
  border-radius:8px;
  border:1px solid #ddd;
  background:#f7f7f7;
  cursor:pointer;
  font-weight:600;
  transition:0.25s;
}

.filter-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,0.1);
}

/* ACTIVE */
.filter-btn.active{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

/* ================= JOB CARDS ================= */
.job-cards{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.job-card{
  border:1px solid #e5e7eb;
  border-radius:12px; /* improved */
  padding:18px 20px; /* improved spacing */
  background:#fff;
  box-shadow:0 3px 12px rgba(0,0,0,0.08);
  transition:0.3s;
}

.job-card:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

.job-card.expired{
  opacity:0.6;
  background:#fafafa;
}

/* ================= TITLE ================= */
.jc-title{
  margin:0 0 6px;
  font-size:17px;   /* improved */
  font-weight:700;
  line-height:1.4;
}

/* ================= TAGS ================= */
.jc-tags span{
  background:#eef4ff; /* improved */
  padding:5px 9px;
  border-radius:6px;
  margin-right:5px;
  font-size:12px;
  font-weight:500;
}

.jc-tags .new-badge{background:#2e7d32;color:#fff;}
.jc-tags .closing-badge{background:#ff9800;color:#fff;}
.jc-tags .today-badge{background:#e53935;color:#fff;}

/* ================= BUTTON ROW ================= */
.jc-row{
  display:flex;
  gap:10px;
  margin-top:12px;
}

/* ================= LAST DATE BOX ================= */
.jc-btn-outline{
  flex:1;
  border:2px solid #b91c1c;
  border-radius:8px;
  padding:6px 10px;
  background:#fff5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  box-shadow:0 2px 8px rgba(185,28,28,0.1); /* improved */
}

.ld-label{
  font-size:12px;
  margin-right:5px;
}

.ld-date{
  font-size:13px;
  font-weight:700;
  color:#b91c1c;
}

/* ================= VIEW BUTTON ================= */
.jc-primary{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#2563eb;
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 4px 12px rgba(37,99,235,0.3); /* improved */
  transition:0.2s;
}

.jc-primary:hover{
  background:#1d4ed8;
}

/* ================= EXPIRED BUTTON ================= */
.expired-btn{
  margin:20px auto 8px;
  display:block;
  background:#333;
  color:#fff;
  border-radius:8px;
  padding:10px 14px;
  font-weight:700;
  border:none;
  cursor:pointer;
}

.expired-btn:hover{
  opacity:0.9;
}

/* ================= MOBILE ================= */
@media(max-width:600px){

  .filter-bar{
    top:120px;
    padding:8px 0;
  }

  .jc-title{
    font-size:14px;
  }

  .jc-primary{
    font-size:13px;
  }

}

@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 10px 5px;
    font-size: 12px;
  }
}
