/* ═══════════════════════════════════════════════════════════
   Shakti Education – Careers Page
   Covers: listing, cards, modal, CF7 form
   Scope: .sk-careers-section / .sk-apply-modal-overlay / .careers-form-wrapper
════════════════════════════════════════════════════════════ */

:root {
  --sk-c-primary:    #0082C6;
  --sk-c-primary-dk: #00639A;
  --sk-c-text:       #212529;
  --sk-c-text-sec:   #495057;
  --sk-c-muted:      #ADB5BD;
  --sk-c-border:     #DADADA;
  --sk-c-bg:         #FFFFFF;
  --sk-c-desc-bg:    #F7F7F7;
  --sk-c-radius-sm:  8px;
  --sk-c-radius-md:  16px;
}

/* ── Section ── */
.sk-careers-page { width: 100%; }
.sk-careers-section { width: 100%; padding: 60px 20px; box-sizing: border-box; }
.sk-careers-container { max-width: 1200px; margin: 0 auto;   padding-inline:20px;}

/* ── Heading ── */
.sk-careers-heading {
  color: #495057;
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  line-height: 58px;
  letter-spacing: 0;
  margin: 0 0 40px;
  padding: 0;
  border: none;
}

/* ── List ── */
.sk-careers-list { display: flex; flex-direction: column; gap: 16px; }
.sk-career-hidden { display: none; }
.sk-career-visible { animation: sk-fade-up 0.3s ease forwards; }
@keyframes sk-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ── */
.sk-career-card {
  display: flex; flex-direction: column;
  border-radius: var(--sk-c-radius-sm);
  border: 1px solid var(--sk-c-border);
  background: var(--sk-c-bg); overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sk-career-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.sk-career-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px; flex-wrap: nowrap;
}
.sk-career-card__meta { display: flex; flex-direction: row; gap: 20px; min-width: 0; flex: 1; }

.sk-career-card__title {
  color: var(--sk-c-text);
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 24px; font-weight: 600; line-height: 32px;
  margin: 0; padding: 0;
}

.sk-career-card__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.sk-career-badge {
  display: inline-flex; padding: 5px 16px;
  justify-content: center; align-items: center;
  border-radius: 360px; color: #212529;
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}

.sk-career-separator { color: var(--sk-c-muted); font-size: 14px; user-select: none; }

.sk-career-type {
  color: var(--sk-c-text-sec);
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 14px; font-weight: 400; line-height: 20px;
  display: inline-flex; align-items: center; white-space: nowrap;
}

.sk-career-card__action { flex-shrink: 0; }

.sk-career-apply-btn {
  display: inline-flex; padding: 6px 20px;
  justify-content: center; align-items: center;
  border-radius: 6px; background: #0082C6; color: #FFF;
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 20px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.sk-career-apply-btn:hover { background: #00639A; color: #FFF; text-decoration: none; }

/* ── Description section ── */
.sk-career-card__desc-wrap {
  border-top: 1px solid var(--sk-c-border);
  background: var(--sk-c-desc-bg);
  /* border-radius: 0 0 var(--sk-c-radius-md) var(--sk-c-radius-md); */
}
.sk-career-card__desc { position: relative; padding: 16px 24px 0; }

.sk-desc-collapsed .sk-career-card__desc-inner {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sk-desc-expanded .sk-career-card__desc-inner { display: block; overflow: visible; }
.sk-desc-collapsed .sk-desc-fade { height: 20px; background: linear-gradient(transparent, var(--sk-c-desc-bg)); }
.sk-desc-expanded .sk-desc-fade { display: none; }

/* ════════════════════════════════════════════════════════════
   JOB DESCRIPTION RICH TEXT (.sk-jd)
   All rules use !important to beat Astra/theme overrides.
════════════════════════════════════════════════════════════ */
.sk-jd {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: var(--sk-c-text) !important;
  word-break: break-word !important;
}

/* ── Paragraph ── */
.sk-jd p {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: var(--sk-c-text) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

/* ── BR line gap ── */
.sk-jd br { display: block !important; content: '' !important; margin-top: 8px !important; }

/* ── Headings ── */
.sk-jd h1 {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 20px !important; font-weight: 700 !important; line-height: 28px !important;
  color: var(--sk-c-text) !important; margin: 28px 0 10px !important; padding: 0 !important;
  border: none !important;
}
.sk-jd h2 {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 18px !important; font-weight: 700 !important; line-height: 26px !important;
  color: var(--sk-c-text) !important; margin: 24px 0 8px !important; padding: 0 !important;
  border: none !important;
}
.sk-jd h3 {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 16px !important; font-weight: 600 !important; line-height: 24px !important;
  color: var(--sk-c-text) !important; margin: 20px 0 6px !important; padding: 0 !important;
  border: none !important;
}
.sk-jd h4 {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 15px !important; font-weight: 600 !important; line-height: 22px !important;
  color: var(--sk-c-text) !important; margin: 16px 0 6px !important; padding: 0 !important;
  border: none !important;
}
.sk-jd h5,
.sk-jd h6 {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 14px !important; font-weight: 600 !important; line-height: 20px !important;
  color: var(--sk-c-text) !important; margin: 14px 0 4px !important; padding: 0 !important;
  border: none !important;
}

/* ── Lists ── */
.sk-jd ul,
.sk-jd ol {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 24px !important;
  color: var(--sk-c-text) !important;
  margin: 12px 0 16px !important;
  padding-left: 22px !important;
}
.sk-jd ul  { list-style-type: disc !important; }
.sk-jd ol  { list-style-type: decimal !important; }

.sk-jd li {
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 24px !important;
  color: var(--sk-c-text) !important;
  margin-bottom: 8px !important;
  padding-left: 4px !important;
  list-style: inherit !important;
}
.sk-jd li:last-child { margin-bottom: 0 !important; }

/* space after list block ends */
.sk-jd ul + p, .sk-jd ul + h1, .sk-jd ul + h2,
.sk-jd ul + h3, .sk-jd ul + h4, .sk-jd ul + h5,
.sk-jd ul + h6, .sk-jd ul + ul, .sk-jd ul + ol,
.sk-jd ol + p, .sk-jd ol + h1, .sk-jd ol + h2,
.sk-jd ol + h3, .sk-jd ol + h4, .sk-jd ol + h5,
.sk-jd ol + h6, .sk-jd ol + ul, .sk-jd ol + ol { margin-top: 16px !important; }

/* nested lists */
.sk-jd ul ul, .sk-jd ol ol,
.sk-jd ul ol, .sk-jd ol ul {
  margin: 6px 0 4px !important;
  padding-left: 18px !important;
}

/* ── Inline ── */
.sk-jd strong, .sk-jd b { font-weight: 600 !important; color: var(--sk-c-text) !important; }
.sk-jd em, .sk-jd i     { font-style: italic !important; }
.sk-jd u                 { text-decoration: underline !important; }
.sk-jd s, .sk-jd del    { text-decoration: line-through !important; }
.sk-jd sup               { font-size: 10px !important; vertical-align: super !important; }
.sk-jd sub               { font-size: 10px !important; vertical-align: sub !important; }

/* ── Links ── */
.sk-jd a { color: var(--sk-c-primary) !important; text-decoration: underline !important; font-weight: 500 !important; }
.sk-jd a:hover { color: var(--sk-c-primary-dk) !important; }

/* ── Blockquote ── */
.sk-jd blockquote {
  border-left: 3px solid var(--sk-c-primary) !important;
  margin: 14px 0 !important; padding: 8px 16px !important;
  background: #EEF6FB !important; border-radius: 0 4px 4px 0 !important;
}
.sk-jd blockquote p { margin: 0 !important; color: var(--sk-c-text-sec) !important; font-style: italic !important; }

/* ── HR ── */
.sk-jd hr { border: none !important; border-top: 1px solid var(--sk-c-border) !important; margin: 16px 0 !important; }

/* ── Code ── */
.sk-jd code { font-size: 12px !important; background: #F0F0F0 !important; padding: 1px 5px !important; border-radius: 3px !important; font-family: monospace !important; }
.sk-jd pre  { background: #F7F7F7 !important; border: 1px solid var(--sk-c-border) !important; border-radius: 4px !important; padding: 12px !important; overflow-x: auto !important; font-size: 12px !important; line-height: 18px !important; margin: 10px 0 !important; }

/* ── Image ── */
.sk-jd img { max-width: 100% !important; height: auto !important; border-radius: 4px !important; display: block !important; margin: 12px 0 !important; }

/* ── First / last child reset ── */
.sk-jd > *:first-child { margin-top: 0 !important; }
.sk-jd > *:last-child  { margin-bottom: 0 !important; }

/* ── Read more toggle ── */
.sk-desc-toggle {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 8px 24px 14px !important;
  padding: 0 !important;
  cursor: pointer !important;
  color: var(--sk-c-primary) !important;
  background: none !important;
  border: none !important;
  font-family: Figtree, 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: color 0.18s ease !important;
}
.sk-desc-toggle:hover { color: var(--sk-c-primary-dk) !important; background: none !important; }
.sk-toggle-arrow { transition: transform 0.2s ease; }
.sk-desc-toggle[aria-expanded="true"] .sk-toggle-arrow { transform: rotate(180deg); }

/* ── Load More ── */
.sk-careers-load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.sk-careers-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 32px; border-radius: 6px;
  border: 1.5px solid #0082C6; background: transparent; color: #0082C6;
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sk-careers-load-more:hover { background: #0082C6; color: #FFF; }

/* ── Empty state ── */
.sk-careers-empty {
  color: var(--sk-c-text-sec);
  font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 16px; font-weight: 500;
  margin: 0; padding: 24px 0;
}

/* ════════════════════════════════════════════════════════════
   APPLY MODAL
════════════════════════════════════════════════════════════ */
.sk-apply-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 99999;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(2px);
}
.sk-apply-modal-overlay.sk-apply-modal--open {
  display: flex; animation: sk-overlay-in 0.2s ease;
}
@keyframes sk-overlay-in { from{opacity:0} to{opacity:1} }

.sk-apply-modal {
  background: #FFF; border-radius: 12px; padding: 36px 32px 32px;
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0px 22.978px 22.978px -2.062px rgba(0,0,0,0.08),
              0px 39.566px 39.566px -2.406px rgba(0,0,0,0.08),
              0px 72px 72px -2.75px rgba(0,0,0,0.07);
  animation: sk-modal-in 0.25s ease;
}
@keyframes sk-modal-in {
  from { opacity:0; transform:translateY(20px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.sk-apply-modal__close {
  position: absolute; top:16px; right:16px;
  background:none; border:none; cursor:pointer;
  padding:6px; color:var(--sk-c-muted); border-radius:6px;
  transition: color 0.2s, background 0.2s;
}
.sk-apply-modal__close:hover { color:var(--sk-c-text); background:#F0F0F0; }

.sk-apply-modal__title {
  color: var(--sk-c-text); font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 22px; font-weight: 700; line-height: 30px; margin: 0 0 4px;
}
.sk-apply-modal__subtitle {
  color: var(--sk-c-text-sec); font-family: Figtree, 'Segoe UI', sans-serif;
  font-size: 14px; font-weight: 400; line-height: 20px; margin: 0 0 24px;
}

/* ════════════════════════════════════════════════════════════
   CF7 FORM (inside .careers-form-wrapper)
════════════════════════════════════════════════════════════ */
.careers-form-wrapper .wpcf7 form .wpcf7-response-output {
  border: none !important; font-family: Figtree, sans-serif;
  font-size: 14px; color: #dc2626; font-weight: 500; margin: 8px 0 0;
}
.careers-form-wrapper .wpcf7-form-control-wrap br,
.careers-form-wrapper .wpcf7-form br { display: none; }

.careers-form-wrapper .careers-form-container { width: 100%; background: #fff; text-align: left; }
.careers-form-wrapper .careers-form-container p { margin-bottom: 20px !important; text-align: left; }

.careers-form-wrapper .careers-form-container label,
.careers-form-wrapper .careers-form-container .wpcf7-form label {
  display: block; font-family: Figtree, sans-serif !important;
  font-size: 14px; font-weight: 500; color: #2B2D38; margin-bottom: 20px;
}

.careers-form-wrapper .careers-form-container .wpcf7-form input[type="text"],
.careers-form-wrapper .careers-form-container .wpcf7-form input[type="tel"] {
  width: 100%; height: 40px; background: #EFEFEF;
  border: none; border-radius: 4px; padding: 8px 12px; margin-top: 5px;
  font-family: Figtree, sans-serif; font-size: 14px; color: #2B2D38;
  display: block; box-sizing: border-box; transition: border 0.2s, background 0.2s;
}
.careers-form-wrapper .careers-form-container .wpcf7-form input[type="text"]:focus,
.careers-form-wrapper .careers-form-container .wpcf7-form input[type="tel"]:focus {
  outline: none; border: 1.5px solid #0082C6; background: #fff;
}

.careers-form-wrapper .careers-form-container .wpcf7-form input.careers-position-field {
  background: #E4E4E4 !important; color: #6C757D;
  cursor: default; pointer-events: none;
}

.careers-form-wrapper .wpcf7-not-valid { border: 1px solid red !important; background: #ffe6e6 !important; }
.careers-form-wrapper .wpcf7-not-valid-tip {
  font-size: 12px; color: red; margin-top: 4px;
  display: block; font-family: Figtree, sans-serif;
}

/* ── File upload ── */
.careers-form-wrapper .careers-form-container input.careers-file-input[type="file"] {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; overflow: hidden; z-index: -1;
}
.careers-form-wrapper .careers-file-label {
  display: block; font-family: Figtree, sans-serif !important;
  font-size: 14px; font-weight: 500; color: #2B2D38; margin-bottom: 20px;
}
.careers-upload-box {
  display: flex; align-items: center;
  margin-top: 6px; width: 100%; height: 40px;
  background: #EFEFEF; border-radius: 4px; overflow: hidden;
  cursor: pointer; border: 1.5px dashed #C0C0C0;
  transition: border-color 0.2s, background 0.2s;
}
.careers-upload-box:hover { border-color: #0082C6; background: #EEF6FB; }
.careers-upload-box.has-file { border-color: #28A745; background: #F0FFF4; border-style: solid; }

.careers-upload-btn {
  flex-shrink: 0; height: 100%; padding: 0 14px;
  background: #0082C6; color: #fff;
  font-family: Figtree, sans-serif; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: background 0.2s;
}
.careers-upload-btn:hover { background: #00639A; }

.careers-upload-name {
  flex: 1; font-family: Figtree, sans-serif; font-size: 13px; color: #6C757D;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px;
}
.careers-upload-name.selected { color: #212529; font-weight: 500; }

.careers-file-note {
  display: block; font-family: Figtree, sans-serif;
  font-size: 11px; font-weight: 400; color: #ADB5BD; margin-top: 5px;
}

.careers-form-wrapper .tel-count-field { display: flex; gap: 20px; margin-bottom: 0; }
.careers-form-wrapper .tel-count-field > p { flex: 1; margin-bottom: 0 !important; }

.careers-form-wrapper .submit-wrapper { display: flex; justify-content: flex-end; margin-top: 28px; }
.careers-form-wrapper .submit-wrapper p { margin-bottom: 0 !important; }

.careers-form-wrapper .submit-btn {
  height: 42px; padding: 0 28px; background: #0082C6; color: #fff;
  font-family: Figtree, sans-serif; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 6px; border: none; cursor: pointer; transition: background 0.2s;
}
.careers-form-wrapper .submit-btn:hover { background: #00639A; }
.careers-form-wrapper .wpcf7-submit::after {
  content: ""; width: 18px; height: 18px;
  background: url('/wp-content/uploads/2026/05/right-arrow.svg') no-repeat center/contain;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── Tablet ≤ 1023px ── */
@media (max-width: 1023px) {
  .sk-careers-heading { font-size: 36px; line-height: 46px; margin-bottom: 32px; }
  .sk-career-card__title { font-size: 20px; line-height: 28px; }
  .sk-rich-text,
  .sk-rich-text p,
  .sk-rich-text li,
  .sk-rich-text ul,
  .sk-rich-text ol { font-size: 14px; line-height: 22px; }
  .sk-rich-text h1 { font-size: 18px; line-height: 26px; }
  .sk-rich-text h2 { font-size: 16px; line-height: 24px; }
  .sk-rich-text h3 { font-size: 15px; line-height: 22px; }
  .sk-rich-text h4,
  .sk-rich-text h5,
  .sk-rich-text h6 { font-size: 14px; line-height: 20px; }
}

/* ── Mobile ≤ 767px ── */
@media (max-width: 767px) {
  .sk-careers-section { padding: 40px 20px; }
  .sk-careers-heading { font-size: 28px; line-height: 36px; margin-bottom: 28px; }
  .sk-career-card__top { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sk-career-card__action { width: 100%; }
  .sk-career-apply-btn { width: 100%; justify-content: center; padding: 10px 20px; }
  .sk-career-card__title { font-size: 18px; line-height: 26px; }
  .sk-apply-modal { padding: 28px 20px 24px; }
  .sk-apply-modal__title { font-size: 18px; line-height: 26px; }
  .careers-form-wrapper .tel-count-field { flex-direction: column; }
  .sk-rich-text { font-size: 14px; line-height: 22px; max-width: 100%; }
  .sk-rich-text h1 { font-size: 16px; line-height: 24px; }
  .sk-rich-text h2 { font-size: 15px; line-height: 22px; }
  .sk-rich-text h3,
  .sk-rich-text h4,
  .sk-rich-text h5,
  .sk-rich-text h6 { font-size: 14px; line-height: 20px; }
  .sk-rich-text th,
  .sk-rich-text td { padding: 5px 8px; font-size: 12px; }
  .sk-careers-container {padding-inline: 0;}
}

/* ── Small mobile ≤ 480px ── */
@media (max-width: 480px) {
  .sk-careers-heading { font-size: 24px; line-height: 32px; margin-bottom: 24px; }
  .sk-career-badge { padding: 4px 12px; font-size: 11px; }
  .sk-careers-load-more { width: 100%; justify-content: center; }
}


 @media(max-width:900px){
  .sk-career-card__meta {  flex-direction: column;  }

 }