.job-advert {

display: none;
}

@media screen and (max-width: 1024px) {

.job-advert {
display: block;
border-radius: 15px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
overflow: hidden;
background-color: #ffffff;
margin-bottom: 20px !important;
}
}

.job-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr); /* Default: mobile (2 columns) */
}

.job-head {
  width: 100%;
  font-size: 0px;
  padding: 0;
  font-weight: 100;
  color: #5F78BC;
}

.job-head.active {
 font-size: 36px;
  padding: 0px 0 16px 0;
}


@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(3, 1fr); /* Tablets/iPads */
  }
}

@media (min-width: 1024px) {
  .job-grid {
    grid-template-columns: repeat(4, 1fr); /* Desktops */
  }
}

.job-card {
  background: #ffffff;
  height: 200px;
  border-radius: 15px;
  padding: 0px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card .head {
  position: absolute;
  bottom: 0px;
  left:0px;
  right: 0px;
  padding: 20px;
  background: rgba(255,255,255,0);
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,0)), color-stop(30%, rgba(255,255,255,1)), color-stop(100%, rgba(255,255,255,1)));
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0 );
}

.job-card .head h3{
  font-size: 20px;
  line-height: 20px;
  color: #261077;
  font-weight: 600;
}

.job-card .head h5{
  font-size: 15px;
  color: #261077;
  font-weight: 100;
}

.job-card .content {
  position: absolute;
  top: 100%;
  left: 0px;
  right: 0px;
  margin: auto;
  padding: 10px;
  z-index: 2;
  background: #ffffff;
  transition: all .2s ease;
}


.job-card:hover .content {
  top: 0;
  bottom: 0;
  transition: all .2s ease;
}

.job-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  object-fit: cover;
  border: 1px solid #D3DBED;
}

.job-info {
  display: flex;
  flex-direction: column;
}

.job-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.company-info {
   font-size: 12px;
   line-height: 13px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posted-time {
  color: #999;
}

.job-tags {
 
  height: 90px;
  max-height: 90px;
  min-height: 90px;
  overflow: hidden;
  background: #ffffff;
}

.tag {
  float: left;
  background: #D3DBED;
  padding: 4px 10px;
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  border-radius: 8px;
color: #261077;
text-decoration-color: rgba(0, 0, 0,0);
text-decoration-line: none;
text-decoration-style: solid;

}

a .tag {
  text-decoration: none !important;
}



.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 4px;
  margin-top: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.salary {
  font-weight: 600;
  font-size: 14px;
}

.location {
  font-size: 11px;
  color: #888;
}

.apply-btn {
  background: #261077;
  color: white;
  padding: 4px 8px;
  border: 1px solid #261077;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.apply-btn:hover {
  background: #FF5331;
  border: 1px solid #FF5331;
}