.careers-hero-wrapper {
  position: relative;
  background-image: linear-gradient(rgba(0, 50, 150, 0.8), rgba(0, 50, 150, 0.8)),
    url("assets/OfficePhoto.jpg");
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.careers-hero-text-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.careers-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.careers-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #e0e0e0;
  font-family: 'Montserrat', sans-serif;
}

.careers-hero-logo-blur {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: 1;
  max-width: 350px;
}

.careers-hero-logo-blur img {
  width: 100%;
  height: auto;
}


/* Tablet (≤991px) */
@media (max-width: 991px) {
  .careers-hero-wrapper {
    padding: 80px 20px;
  }

  .careers-hero-title {
    font-size: 2.4rem;
  }

  .careers-hero-subtitle {
    font-size: 1.05rem;
  }

  .careers-hero-logo-blur {
    max-width: 250px;
    left: 15px;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  .careers-hero-wrapper {
    padding: 60px 15px;
  }

  .careers-hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .careers-hero-subtitle {
    font-size: 0.95rem;
  }

  .careers-hero-logo-blur {
    max-width: 180px;
    left: 10px;
    opacity: 0.07;
  }
}

.why-section {
  padding: 100px 20px;
  background: #fff;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-image-wrapper {
  position: relative;
}

.why-bg-shape {
  width: 100%;
  padding-bottom: 100%;
  background: rgba(80, 134, 209, 0.8);
  border-radius: 24px;
  transform: rotate(-6deg);
}

.why-card {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-tagline {
  font-weight: 600;
  color: #3850bd;
  font-size: 1rem;
}

.why-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.why-description {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.why-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #374151;
}

.why-icon {
  color: #1651a3;
  font-weight: bold;
}

/* Tablet (≤ 991px) → reduce gap and stack better */
@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-title {
    font-size: 2rem;
  }

  .why-description {
    font-size: 1rem;
  }

  .why-features {
    grid-template-columns: 1fr 1fr;
    /* keep 2 cols on tablets */
  }
}

/* Mobile (≤ 600px) → full width single column */
@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-title {
    font-size: 1.75rem;
  }

  .why-description {
    font-size: 0.95rem;
  }

  .why-features {
    grid-template-columns: 1fr;
    /* stack features vertically */
    gap: 12px;
  }

  .why-feature {
    font-size: 0.95rem;
  }
}

.cp-section,
.cp-container,
.cp-card,
.cp-modal-content {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.cp-section {
  background: #f3f4f6;
  padding: 48px 16px;
}

.cp-container {
  max-width: 960px;
  margin: 0 auto;
}

.cp-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  color: #14337b !important;
  margin: 0 0 28px;
}

/* ===== Jobs list ===== */
.cp-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cp-empty {
  text-align: center;
  color: #6b7280;
  padding-top: 10px;
  font-family: 'Open Sans', sans-serif !important ;
  font-style: italic;
}

.cp-hidden {
  display: none;
}

.cp-empty .cp-hidden{
   font-family: 'Open Sans', sans-serif !important ;
}

/* ===== Base Styles ===== */
cp-section {
  background: #f3f4f6;
  padding: 48px 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

.cp-container {
  max-width: 960px;
  margin: 0 auto;
}

.cp-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 28px;
}

/* ===== Jobs List ===== */
.cp-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cp-empty {
  text-align: center;
  color: #6b7280;
}

.cp-hidden {
  display: none;
}

/* ===== Card Styles ===== */
.cp-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow .2s ease, transform .2s ease;
}

.cp-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.cp-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cp-card-main {
  min-width: 260px;
}

.cp-job-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #14337b !important;
}

.cp-subtitle {
  font-size: 1.1rem;
  color: #616161;
  margin-top: -8px;
  margin-bottom: 20px;
  text-align: center;
}

.cp-cta-explore {
  display: inline-block;
  text-decoration: none;
  min-height: 50px;
  margin-top: 1rem;
  border-radius: 999px !important;
  font-size: 1.1rem;
}

.cp-cta-explore-container {
  text-align: center;
}

#job-vacancies.highlight {
  animation: highlightFlash 1.5s ease;
}

@keyframes highlightFlash {
  0% {
    background-color: #dbe4ed;
  }

  50% {
    background-color:#dbe4ed;
  }

  100% {
    background-color: #dbe4ed;
  }
}

.cp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

.cp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cp-dot {
  color: #9ca3af;
}

.cp-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.cp-icon-btn {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

.cp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Buttons ===== */
.cp-btn {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.cp-btn-outline {
  color: #14337b !important;
  background: #fff;
  border-color: #e5e7eb;
}

.cp-btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 0 0 3px #14337b !important;
}

.cp-btn-dark {
  color: #fff;
  background: #14337b !important;
  border-color: #14337b !important;
}

.cp-btn-dark:hover {
  background: #14337b !important;
  border-color: #14337b !important;
}

/* ===== Modal Styles ===== */
.cp-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.cp-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cp-modal-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 20px;
  animation: cp-fade-up .2s ease both;
}

@keyframes cp-fade-up {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cp-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: #fff;
  cursor: pointer;
  font-size: 15px !important;
  line-height: 1;
  color: #374151;
}

.cp-close-btn:hover {
  background: #f8fafc;
}

.cp-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 4px 40px 6px 4px;
}

.cp-meta-modal {
  margin: 6px 6px 16px;
}

.cp-modal-section {
  margin: 14px 6px;
}

.cp-section-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.cp-paragraph {
  color: #374151;
  line-height: 1.6;
  white-space: normal;
}

.cp-modal-actions {
  display: flex;
  gap: 12px;
  margin: 18px 6px 6px;
}

/* ===== Form Styles ===== */
.cp-form {
  margin-top: 6px;
}

.cp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 12px 0 6px;
}

.cp-input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.cp-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cp-status {
  margin-top: 8px;
  font-size: 13px;
}

/* Section titles inside modal */
.cp-section-title {
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

/* Paragraph text inside modal */
.cp-paragraph {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Requirements list styling */
.cp-list {
  padding-left: 20px;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.6;
}

.cp-list li {
  margin-bottom: 6px;
}

/* Modal adjustments */
.apply-modal {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.apply-modal h2,
.apply-modal p,
.apply-modal label,
.apply-modal input,
.apply-modal textarea,
.apply-modal button {
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ===== Application Modal Specific ===== */
.cp-apply-content {
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.cp-apply-content .cp-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #222;
}

.cp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cp-form-group {
  display: flex;
  flex-direction: column;
}

.cp-form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.cp-form-group input,
.cp-form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cp-form-group input:focus,
.cp-form-group textarea:focus {
  outline: none;
  border-color: #222;
}

.cp-form-actions {
  margin-top: 0.5rem;
}

.cp-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.cp-apply-content {
  max-width: 700px;
  width: 95%;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

.cp-modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #1e293b;
  font-family: inherit;
}

/* Reuse career form styles inside modal */
.cp-apply-content .career-form-row,
.cp-apply-content .career-form-group,
.cp-apply-content .career-label,
.cp-apply-content .career-input-icon,
.cp-apply-content .career-textarea,
.cp-apply-content .career-file-upload,
.cp-apply-content .career-submit,
.cp-apply-content .career-success,
.cp-apply-content .career-form-error {
  all: unset;
  display: revert;
}

/* ===== Upload Styles ===== */
.cp-upload-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cp-upload-box input[type="file"] {
  display: none;
}

.cp-btn.cp-btn-outline {
  padding: 8px 14px;
  border: 2px solid #14337b;
  background-color: transparent;
  color: #14337b;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  line-height: 1;
}

.cp-btn.cp-btn-outline:hover {
  color: white;
}

.cp-upload-filename {
  font-size: 14px;
  color: #555;
  font-style: italic;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
}

.cp-file-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cp-file-input:hover,
.cp-file-input:focus {
  border-color: #666;
}

.cp-upload-dropzone {
  border: 2px dashed #888;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.cp-upload-dropzone.dragover {
  background-color: #e0f7fa;
  border-color: #00796b;
}

.cp-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cp-upload-icon {
  margin-bottom: 8px;
  color: #00796b;
}

/* ===== Error & Status Styles ===== */
.career-error {
  background-color: #fdecea;
  color: #b00020;
  border: 1px solid #f5c6cb;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 4px rgb(255 0 0 / 0.1);
  transition: opacity 0.3s ease;
}

.career-error.hidden {
  display: none;
}

.career-error i {
  font-size: 1.5rem;
  color: #b00020;
}

.cp-status.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgb(0 128 0 / 0.1);
}

.cp-status.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgb(255 0 0 / 0.1);
}

.career-success {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  border-radius: 12px;
  margin-top: 30px;
  color: #23344f;
  text-align: center;
}

.career-success i {
  font-size: 2rem;
  color: #418bdc;
  margin-bottom: 15px;
}

.career-success h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.career-success p {
  color: #475569;
  font-size: 1rem;
}

/* Tailwind-like form styling */
.cp-modal-content {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  margin: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: system-ui, sans-serif;
}

.cp-form-group {
  margin-bottom: 1.25rem;
}

.cp-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.cp-form-group input,
.cp-form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.cp-form-group input:focus,
.cp-form-group textarea:focus {
  border-color: #6366f1;
}

.cp-btn-dark {
  background-color: #14337b;
  ;
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cp-btn-dark:hover {
  background-color: #14337b;
  ;
}

.cp-upload-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background-color: #f9fafb;
}

.cp-upload-dropzone:hover {
  background-color: #f3f4f6;
}

.cp-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

/* ===== Compact Application Modal ===== */
.cp-apply-container {
  width: min(520px, calc(100vw - 1.5rem));
  max-width: 520px;
  max-height: 520px;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.cp-apply-container .cp-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.cp-form-compact .cp-form-group {
  margin-bottom: 0.9rem;
}

.cp-form-compact .cp-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.cp-form-compact input[type="text"],
.cp-form-compact input[type="email"],
.cp-form-compact input[type="tel"],
.cp-form-compact textarea {
  width: 545px !important;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  height: 42px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cp-form-compact textarea {
  min-height: 120px;
  height: auto;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.cp-form-compact input:focus,
.cp-form-compact textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.cp-form-compact input::placeholder,
.cp-form-compact textarea::placeholder {
  color: #94a3b8;
}

.cp-upload-compact {
  padding: 1.1rem;
  border-radius: 10px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
}

.cp-upload-compact:hover {
  border-color: #2563eb;
  background: #f9fbff;
}

.cp-upload-compact .cp-upload-placeholder svg {
  display: block;
  margin: 0 auto 0.45rem;
  color: #64748b;
}

.cp-upload-compact .cp-upload-placeholder p {
  margin: 0.15rem 0;
}

.cp-upload-compact .cp-upload-note {
  font-size: 0.78rem;
  color: #64748b;
}

.cp-actions-compact {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.cp-actions-compact .cp-btn-dark,
.cp-actions-compact .cp-btn-outline {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.cp-actions-compact .cp-btn-dark {
  background: #2563eb;
  color: #fff;
  border: none;
  width: 500px;
}

.cp-actions-compact .cp-btn-dark:hover {
  background: #1e40af;
}

.cp-actions-compact .cp-btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #111827;
}

.cp-actions-compact .cp-btn-outline:hover {
  background: #f3f4f6;
}

.cp-apply-container .cp-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.cp-apply-success {
  text-align: center;
  padding: 1.25rem 0.5rem 1.5rem;
}

.cp-apply-success .cp-success-icon {
  color: #16a34a;
}

.cp-apply-success h3 {
  margin-top: 0.6rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #166534;
}

.cp-apply-success p {
  margin: 0.35rem 0 1.1rem;
  color: #475569;
  font-size: 0.95rem;
}

/* Ultra-compact input + textarea sizes */
.cp-form-compact input[type="text"],
.cp-form-compact input[type="email"],
.cp-form-compact input[type="tel"],
.cp-form-compact textarea {
  width: 565px;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #0f172a;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  height: 34px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cp-form-compact textarea {
  min-height: 80px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.cp-actions-compact .cp-btn-dark,
.cp-actions-compact .cp-btn-outline {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.cp-form-row {
  display: flex;
  gap: 0.86rem;
}

.cp-form-row .half {
  flex: 1;
  min-width: 0;
}

.cp-form-row .half input {
  width: 263px !important;
}

/* Reduce white space under buttons */
#cp-apply-body,
.cp-apply-content,
.cp-modal-content,
.cp-apply-container {
  padding-bottom: 8px !important;
}

.cp-actions-compact {
  margin-top: 0.25rem !important;
  margin-bottom: 0 !important;
}

.cp-apply-container>*:last-child,
.cp-apply-content>*:last-child,
#cp-apply-body>*:last-child,
.cp-form-compact>*:last-child {
  margin-bottom: 0 !important;
}

.cp-form,
.cp-form-compact {
  margin-bottom: 0 !important;
}

#cp-apply-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  text-align: left;
}

/* ===== Details Modal Styles ===== */
.cp-details-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: #fff;
}

.cp-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.cp-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.cp-meta-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  color: #6b7280;
  vertical-align: middle;
}

.cp-details-section {
  margin-bottom: 1.5rem;
}

.cp-details-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.cp-details-section p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.cp-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cp-req-list li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

.cp-req-icon {
  color: #2563eb;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

.cp-details-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

#cp-details-apply {
  min-width: 220px;
}

/* Force details modal left alignment */
#cp-details-modal .cp-modal-content {
  max-width: 720px;
  text-align: left !important;
  padding: 14px 18px 16px !important;
}

.cp-details-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.cp-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem 0;
}

.cp-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .95rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.cp-meta-icon {
  width: 18px;
  height: 18px;
  margin-right: .4rem;
  color: #6b7280;
  vertical-align: middle;
}

.cp-details-section {
  margin-bottom: 1rem;
}

.cp-details-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #111827;
}

.cp-details-section p {
  font-size: .95rem;
  line-height: 1.55;
  color: #374151;
}

.cp-req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cp-req-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .95rem;
  color: #374151;
}

.cp-req-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #2563eb;
}

.cp-details-actions {
  margin-top: .75rem;
}

.cp-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.cp-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.cp-details-card {
  max-width: 600px;
  margin: 0;
  padding: 1rem 1.25rem !important;
  background: #fff;
  text-align: left;
}

.cp-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0 !important;
}

.cp-details-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.5rem !important;
  justify-content: flex-start !important;
}

.cp-details-section {
  margin-bottom: 1.25rem !important;
}

.cp-details-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== Unified Modal Widths ===== */
:root {
  --cp-card-width: 600px;
}

#cp-details-modal .cp-modal-content,
#cp-apply-modal .cp-modal-content {
  max-width: var(--cp-card-width) !important;
  width: min(100%, var(--cp-card-width)) !important;
  margin: 0 auto !important;
}

.cp-apply-container {
  width: auto !important;
  max-width: none !important;
}

.cp-details-card {
  max-width: 100% !important;
  margin: 0 !important;
}

/* Remove outer gutters in details modal */
#cp-details-modal .cp-modal-content {
  padding: 0 !important;
}

#cp-details-body {
  padding: 0 !important;
  display: contents !important;
}

#cp-details-modal .cp-details-card {
  margin: 0 !important;
  max-width: 100% !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
}

.spontaneous-application {
  background-color: #ffffff;
  /* white background for the whole section */
  padding: 60px 20px;
}

.spontaneous-card {
  background-color: #f9fbfd;
  /* light gray card */
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6ecf3;
}

.sparkles-icon {
  width: 70px;
  /* bigger icon */
  height: 75px;
  /* bigger icon */
  color: #2c5cc4;
  /* blue-600 */
  margin: 0 auto 20px auto;
  display: block;
}

.spontaneous-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.spontaneous-card p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.spontaneous-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.spontaneous-card a:hover {
  text-decoration: underline;
}

/* ===== Mobile (≤600px) ===== */
@media (max-width: 600px) {

  /* Section spacing smaller */
  .cp-section {
    padding: 32px 12px;
  }

  .cp-title {
    font-size: 1.6rem;
  }

  /* Job cards full width */
  .cp-card {
    padding: 16px;
  }

  .cp-job-title {
    font-size: 1rem;
  }

  /* Modals take almost full screen */
  .cp-modal-content,
  .cp-apply-container,
  .cp-apply-content {
    max-width: 95% !important;
    width: 95% !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }

  /* Form inputs full width */
  .cp-form-compact input[type="text"],
  .cp-form-compact input[type="email"],
  .cp-form-compact input[type="tel"],
  .cp-form-compact textarea {
    width: 100% !important;
  }

  /* Stack buttons vertically */
  .cp-actions-compact {
    flex-direction: column;
    gap: 10px;
  }

  .cp-actions-compact .cp-btn-dark,
  .cp-actions-compact .cp-btn-outline {
    width: 100%;
  }

  /* Spontaneous card */
  .spontaneous-card {
    padding: 24px 16px;
  }

  .spontaneous-card h3 {
    font-size: 1.2rem;
  }

  .sparkles-icon {
    width: 48px;
    height: 48px;
  }
}

/* ===== Tablet (601px – 991px) ===== */
@media (min-width: 601px) and (max-width: 991px) {
  .cp-title {
    font-size: 2rem;
  }

  /* Modals narrower but still roomy */
  .cp-modal-content,
  .cp-apply-container,
  .cp-apply-content {
    max-width: 90% !important;
    width: 90% !important;
    padding: 20px !important;
  }

  /* Form inputs scale nicely */
  .cp-form-compact input[type="text"],
  .cp-form-compact input[type="email"],
  .cp-form-compact input[type="tel"],
  .cp-form-compact textarea {
    width: 100% !important;
  }

  /* Buttons side by side */
  .cp-actions-compact {
    flex-direction: row;
    justify-content: center;
  }

  .cp-actions-compact .cp-btn-dark,
  .cp-actions-compact .cp-btn-outline {
    width: auto;
    min-width: 160px;
  }

  /* Spontaneous card */
  .spontaneous-card {
    padding: 32px 20px;
  }

  .spontaneous-card h3 {
    font-size: 1.4rem;
  }

  .sparkles-icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 600px) {

  .cp-job-title,
  .cp-apply-title {
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-word;
  }
}

/* =========================
   2) Uniform icon sizing in Requirements & Meta
   ========================= */

/* Requirements list: fixed icon column so text length never changes icon size */
.cp-req-list li {
  display: grid !important;
  grid-template-columns: 20px 1fr !important;
  /* 20px icon column */
  align-items: start !important;
  gap: 8px !important;
}

/* Normalize requirement icons (svg or container) */
.cp-req-list li .cp-req-icon,
.cp-req-list li svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: block;
}

/* Remove any vertical nudge some rules added earlier */
.cp-req-icon {
  margin-top: 0 !important;
}

/* Meta rows (department, type, email, phone…) – keep icons consistent too */
.cp-meta-item,
.cp-details-meta .cp-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.cp-meta-item .cp-meta-icon,
.cp-details-meta .cp-meta-icon,
.cp-meta-item svg,
.cp-details-meta svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
}

/* =========================
   Smaller titles on phones so long titles don't clip
   ========================= */
@media (max-width: 600px) {

  .cp-job-title,
  .cp-details-title,
  .cp-apply-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
}

@media (max-width: 450px) {

  /* stack the two halves */
  .cp-form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cp-form-row .half {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* kill fixed widths from earlier rules (263px, 545px, 565px) */
  .cp-form-row .half input,
  .cp-form-row .half textarea,
  .cp-form-compact input[type="text"],
  .cp-form-compact input[type="email"],
  .cp-form-compact input[type="tel"],
  .cp-form-compact textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Popup alert (above modals) */
.cp-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 2000;
  display: none;
}

.cp-alert-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 2001;
}

.cp-alert {
  width: min(90vw, 420px);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fef2f2;
  /* default: error */
  color: #991b1b;
  border: 1px solid #fca5a5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  transform: scale(.96);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.cp-alert.show {
  opacity: 1;
  transform: scale(1);
}

.cp-alert h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.cp-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* close button */
.cp-alert-close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  align-self: start;
}

/* success variant */
.cp-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

#cp-details-modal .cp-modal-content {
  max-height: 80vh !important; 
  overflow: hidden !important; 
  display: flex !important;
  flex-direction: column !important;
}

#cp-details-body {
  display: block !important;    
  overflow-y: auto !important;  
  overflow-x: hidden !important;
  max-height: 100% !important;   
  flex: 1 1 auto !important;
  -webkit-overflow-scrolling: touch; 
}

@media (max-width: 600px) {
  #cp-details-modal .cp-modal-content {
    max-height: 70vh !important; 
    overflow: hidden !important; 
    display: flex !important;
    flex-direction: column !important;
  }

  #cp-details-body {
    display: block !important;    
    overflow-y: auto !important;   
    overflow-x: hidden !important;
    max-height: 100% !important;   
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch; 
  }
}

@media (max-width: 991px) {
  .why-image-wrapper {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }
}

/* New */
.cp-modal-content {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin:0.1rem auto;
  padding: 0.1rem; 
}

.cp-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  z-index: 10;
}

.cp-close-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.cp-modal-header {
  padding: 1.5rem 1.5rem 0;
}

.cp-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.5rem;
}

.cp-modal-description {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 15px; 
}

.cp-modal-body {
  padding: 1rem 1.5rem;
}

.cp-modal-footer {
  padding: 1rem 1.5rem 1.5rem;
}

.text-gray-700 {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 14px; 
}

.info-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.copy-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.copy-btn:hover {
  background-color: #eff6ff;
}

.copy-btn i {
  margin-right: 4px;
  font-size: 0.875rem;
}

.info-content {
  font-family: monospace;
  color: #3b82f6;
  background-color: #eff6ff;
  padding: 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

.instructions-box {
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.instructions-title {
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.75rem;
}

.instructions-list {
  color: #1e40af;
  list-style-type: none;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.instructions-list li:last-child {
  margin-bottom: 0;
}

.bullet-point {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  margin-top: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.email-btn {
  width: 100%;
  background-color: #254da2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.email-btn:hover {
  background-color: #1d4ed8;
}

.email-btn i {
  margin-right: 8px;
}

.instructions-box {
    font-size: 14px; 
}


/* Responsive: Mobile */
@media (max-width: 480px) {
  .cp-modal-content {
    max-width: 95%;
    padding: 0.4rem;
    max-height: 70vh;
  }

  .cp-modal-header,
  .cp-modal-body,
  .cp-modal-footer {
    padding: 0.5rem 0.75rem;
  }

  .cp-modal-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .cp-modal-description,
  .text-gray-700,
  .instructions-box,
  .instructions-list li,
  .info-label,
  .copy-btn {
    font-size: 13px;
  }

  .info-box,
  .instructions-box {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .email-btn {
    padding: 0.6rem 1rem;
    font-size: 13.5px;
  }

  .bullet-point {
    margin-top: 4px;
    margin-right: 6px;
  }

  .copy-btn {
    padding: 2px 6px;
  }

  .info-content {
    padding: 0.4rem;
    font-size: 13px;
  }
}

/* Responsive: Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .cp-modal-content {
    max-width: 85%;
    padding: 0.6rem;
    max-height: 70vh;
  }

  .cp-modal-header,
  .cp-modal-body,
  .cp-modal-footer {
    padding: 0.75rem 1rem;
  }

  .cp-modal-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .cp-modal-description,
  .text-gray-700,
  .instructions-box,
  .instructions-list li,
  .info-label,
  .copy-btn {
    font-size: 14px;
  }

  .info-box,
  .instructions-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .email-btn {
    padding: 0.65rem 1.2rem;
    font-size: 14.5px;
  }

  .bullet-point {
    margin-top: 6px;
    margin-right: 8px;
  }

  .copy-btn {
    padding: 3px 7px;
  }

  .info-content {
    padding: 0.45rem;
    font-size: 14px;
  }
}