/* Genel kart stili */
.gipta-job-card {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease-in-out;
}

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

.gipta-job-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
  letter-spacing: 1px;
}

.gipta-job-card p {
  font-size: 14px;
  color: #444;
}

/* Başlık + lokasyon-referans üstte hizalı */
.gipta-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gipta-job-meta {
  text-align: right;
  font-size: 14px;
  color: #444;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Başvuru butonu */
.gipta-apply-btn,
.gipta-job-actions a,
a.gipta-popup-open {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #4c5562;
  color: #fff;
  border-radius: 33px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.gipta-apply-btn:hover,
.gipta-job-actions a:hover,
a.gipta-popup-open:hover {
  background: #005d88;
}

/* Kart grid yapısı */
.gipta-job-listings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

/* Mobilde tek sütun */
@media (max-width: 768px) {
  .gipta-job-listings {
    grid-template-columns: 1fr;
  }

  .gipta-job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .gipta-job-meta {
    text-align: left;
    justify-content: flex-start;
  }
}

/* Lightbox detay popup */
#gipta-detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 9999;
}
#gipta-detail-popup {
  background: #fff;
  width: 80%;
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
#gipta-detail-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Popup (Başvuru) kutusu */
#gipta-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgb(76 85 98 / 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999 !important;
  backdrop-filter: blur(20px);
}

#gipta-popup-box {
  background: #fff;
  padding: 30px;
  max-width: 740px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  top: 78px;
}

#gipta-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
}

/* Başvuru form alanları */
#job-form-inline {
  margin-top: 20px;
}
#job-form-inline .wpcf7-form input,
#job-form-inline .wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
}


/* CREODIVE-POPUP-SCROLL 18.08.2026
   Sorun: #gipta-popup-box'ta max-height/overflow yoktu; kutu ekrandan tasinca
   CF7'nin 'Mesajiniz gonderildi' onay mesaji gorunmez oluyordu (aday tekrar gonderiyordu). */
#gipta-popup-box {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  #gipta-popup-box { top: 40px; max-height: calc(100vh - 90px); }
}
