/* ApkJobs front styles (inspired by provided design) */
.apkj-wrap{
  --apkj-accent:#f4a62a;
  --apkj-ink:#0b0b0c;
  --apkj-soft:#f6f6f6;
  --apkj-line:#e7e7e7;
  font-family: 'Poppins', sans-serif;
  color:var(--apkj-ink);
  max-width: 100%;
  margin: 0 auto;
  background:#f7f4ef;
  padding: 30px 0px;
  border-radius: 40px;
  border: 1px solid #a6a6a6;
}

.apkj-top{ padding: 18px 12px 10px; text-align:center; }
.apkj-search{
  display:flex;
  align-items:center;
  gap:0;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:999px;
  padding: 0px;
  max-width: 650px;
  margin: 0 auto 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  overflow:hidden;
}

.apkj-search-icon{
  width:55px;
  height:45px;
  border-radius: 30px 50px 50px 30px;
  background: var(--apkj-accent);
  flex:0 0 auto;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.apkj-search-icon:before{
  content:"";
  width:14px;
  height:14px;
  border:2px solid #111;
  border-radius:50%;
  display:block;
  position:relative;
  top:-2px;
}
.apkj-search-icon:after{
  content:"";
  width:10px;
  height:2px;
  background:#111;
  position:absolute;
  transform: rotate(45deg);
  right:15px;
  bottom:15px;
}
.apkj-divider{
  width:1px;
  height:26px;
  background:#d9d9d9;
  margin: 0 10px;
  flex: 0 0 auto;
}
.apkj-q{
  border:0;
  outline:0;
  width:100%;
  font-size: 14px;
  padding: 0 10px;
  color:#222;
  background:transparent;
}
.apkj-q::placeholder{
  color:#777;
}

.apkj-country{
  border:0;
  outline:0;
  padding: 8px 34px 8px 10px;
  background:transparent;
  font-weight:600;
  color:#111;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  position:relative;
  cursor:pointer;
  min-width: 110px;
  width: 110px;
}

.apkj-search select.apkj-country{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23111' d='M5.5 7.5 10 12l4.5-4.5 1.5 1.5L10 15 4 9z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

/* FORCE search bar to be one single pill (override theme/Elementor input styles) */
.apkj-wrap .apkj-search input.apkj-q{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 10px !important;
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
}


.apkj-wrap .apkj-search{
  overflow: hidden; /* prevents inner elements from looking separate */
}

.apkj-wrap .apkj-divider{
  height: 28px !important;
  background: #d9d9d9 !important;
  opacity: 1 !important;
}


@media (max-width: 520px){
  .apkj-country{ min-width: 95px; }
  .apkj-q{ font-size: 13px; }
}
.apkj-headline{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-top: 20px;
}

.apkj-icon-slider, .apkj-jobs{ padding: 18px 12px 24px; position:relative; width: 90% ; margin: 0 auto;}
.swiper-button-prev, .swiper-rtl .swiper-button-next{
  left: -29px!important;
  color: #f4a62a!important;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
  right: -29px!important;
  left: auto;
  color: #f4a62a!important;
} 
.apkj-jobs[data-state="hidden"]{ display:none; }
.apkj-icon-slider[data-state="hidden"]{ display:none; }

.apkj-jobs-inner{ position:relative; }

.apkj-track{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  padding: 18px 6px;
  scrollbar-width: none;
  justify-content: space-evenly;
}
.apkj-track::-webkit-scrollbar{ display:none; }

.apkj-slide{
  scroll-snap-align: center;
  flex: 0 0 320px;
  border: 5px solid #111;      /* exact thick black frame */
  border-radius: 0;
  
  box-shadow:
  3px 4px 0px 0px rgba(0,0,0,1);
  padding: 18px 16px;
  text-align:center;
}
.apkj-jobcard--imgonly .apkj-job-img{
  background: #fff;
  border-radius: 0;
  box-shadow: none;
} 
.apkj-icon{
  width:100px;height:100px;
  margin: 0 auto 0px;
  display:flex;align-items:center;justify-content:center;
}
.apkj-icon .dashicons{ font-size: 34px; width:34px; height:34px; color:#000; }
.apkj-icon-title{ font-weight: 800; font-size: 20px; line-height: 1.1; }

.apkj-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width:44px;height:44px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.apkj-prev{ left:7px; }
.apkj-next{ right:7px; }
.apkj-nav:before{
  content:"";
  width:14px;height:14px;
  border-left:3px solid #000;
  border-bottom:3px solid #000;
  display:block;
  margin:auto;
  transform: rotate(45deg);
}
.apkj-next:before{ transform: rotate(-135deg); }

/* Job cards */
.apkj-jobcard{
  flex: 0 0 360px;
  /* background:#fff; */
  border-radius: 16px;
  overflow:hidden;
  /* box-shadow: 0 18px 40px rgba(0,0,0,.12); */
  /* border:1px solid rgba(0,0,0,.06); */
  cursor:pointer;
}
.apkj-job-top{
  display:flex;
  gap:10px;
  justify-content:center;
  padding: 12px 12px 0;
}
.apkj-pill{
  background:#0b0b0c;
  color:#fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}
.apkj-job-img{
  width:100%;

}
.apkj-job-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.apkj-apply{
  display:block;
  width: calc(100% - 28px);
  margin: 10px auto 16px;
  border:0;
  border-radius: 999px;
  background: var(--apkj-accent);
  color:#000;
  font-weight: 900;
  padding: 14px 16px;
  font-size: 18px;
}
.apkj-job-meta{
  padding: 10px 14px 4px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.apkj-meta-box{
  background: #fff7e7;
  border: 2px solid rgba(0,0,0,.14);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 800;
  flex: 1 1 0;
}
.apkj-meta-sub{ font-weight:700; opacity:.8; font-size: 12px; display:block; }
.apkj-meta-val{ font-size: 20px; display:block; margin-top:2px; }

/* Modal */
/* ===== Modal (exact behavior: scroll + blur + centered) ===== */
/* ===== Modal (clean blur + scroll) ===== */
.apkj-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.apkj-modal[aria-hidden="false"]{
  display: flex;                 /* flex only when open */
}

.apkj-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.apkj-modal-card{
  position: relative;
  z-index: 1;                    /* always above blur */
  width: min(1000px, 92vw);
  max-height: 86vh;              /* LIMIT HEIGHT */
  overflow-y: auto;              /* SCROLL INSIDE */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  background: rgba(255,255,255,0.96);
  border-radius: 26px;
  padding: 31px 65px 31px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

@media (max-width: 640px){
  .apkj-modal{ padding: 12px; }
  .apkj-modal-card{
    width: 94vw;
    max-height: 90vh;
    border-radius: 22px;
    padding: 18px 16px 16px;
  }
}


.apkj-modal-close{
  position:absolute; right:14px; top:14px;
  width:40px;height:40px;border:0;border-radius:999px;background:#f2f2f2; cursor:pointer;
}
.apkj-modal-close:before,.apkj-modal-close:after{
  content:""; position:absolute; width:18px;height:2px;background:#111; top:50%; left:50%;
  transform-origin:center;
}
.apkj-modal-close:before{ transform: translate(-50%,-50%) rotate(45deg); }
.apkj-modal-close:after{ transform: translate(-50%,-50%) rotate(-45deg); }

.apkj-modal-close:hover{ background: #f4a62a; }
/* ===== Modal heading + description (exact like design) ===== */
.apkj-modal-title{
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.apkj-modal-title span{
  color: var(--apkj-accent);
}

.apkj-modal-sub{
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  max-width: 560px;
  margin: 0 auto 22px;
}

.apkj-modal-sub p{
  margin: 0 0 10px;
}

.apkj-modal-sub strong{
  font-weight: 800;
}

@media (max-width: 640px){
  .apkj-modal-title{
    font-size: 24px;
  }
}

.apkj-modal-sub{ text-align:center; opacity:.8; max-width: 560px; margin: 0 auto 18px; }

.apkj-form .apkj-field{ margin-bottom: 30px; }
.apkj-form label{ display:block; font-weight:600; margin-bottom: 6px; }
.apkj-form input{
  width:100%;
  border:1px solid var(--apkj-line);
  border-radius: 999px;
  padding: 12px 14px;
  outline:0;
  background:#fff;
}
.apkj-form input[disabled]{ background:#f7f7f7; }
.apkj-2col{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.apkj-submit{
  width: 20%;
    color: black;
    border: 0;
    border-radius: 999px;
    background: var(--apkj-accent);
    padding: 14px 16px;
    font-weight: 400;
    font-size: 16px;
    display: block;
    margin: 0 auto;
  cursor:pointer;
}
.apkj-submit:hover{ background: #f4a62a; }

.apkj-form-msg{ margin-top: 10px; font-weight: 700; }

@media (max-width: 720px){
  .apkj-headline{ font-size: 18px; }
  .apkj-slide{ flex-basis: 260px; }
  .apkj-jobcard{ flex-basis: 300px; }
  .apkj-2col{ grid-template-columns:1fr; }
  .apkj-modal-card{ margin: 3vh 12px; }
}


/* Icon images selected from admin */
.apkj-icon img{ width:100px; height:100px; object-fit:contain; display:block; margin:0 auto; }

/* View All button */
.apkj-viewall{ text-align:center; padding: 6px 0 18px; }
.apkj-viewall-btn{
  display: block;
  width: 15%;
  margin-left: auto;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .18);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 400;
  text-decoration:none;
  color:#000;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.apkj-viewall-btn:hover{ color: #f4a62a; }

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
  background-color: #f4a62a!important;
}

.apkj-nav:hover{ background-color: #f4a62a!important; 
color: white;
}

/* Grid page */
.apkj-gridwrap{ padding: 10px 12px 28px; }
.apkj-gridtrack{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.apkj-gridtrack .apkj-jobcard{ flex: initial; width: 100%; }
@media (max-width: 1024px){ .apkj-gridtrack{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .apkj-gridtrack{ grid-template-columns: 1fr; } }


.apk-availablejobs h1
{
text-align:center;
font-weight:700;
margin-bottom: 0px;
}
.apk-availablejobs h1 span
{
color:var(--apkj-accent);
}

/* Image-only job card */
.apkj-jobcard--imgonly{
  border-radius: 18px;
  overflow: hidden;
  padding: 0 !important;
}

.apkj-jobs-swiper .swiper-slide{
  display: flex;
  justify-content: center;
}