
/* ===== Careers Hero ===== */
.careers-hero{
  background: #f0f5ff;
  padding: clamp(64px, 10vw, 120px) 1rem 60px;
  text-align: center;
}

/* red briefcase badge */
.career-badge{
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #fff;
  border: 8px solid rgba(196, 46, 46, 0.18);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.career-badge i{
  font-size: 40px;
  color: #c42e2e;
}

/* heading + lede */
.careers-hero_content h1{
  color: #1e2d64;
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 4rem);
  margin: 10px 0 14px;
  letter-spacing: .2px;
}
.careers-hero_content p{
  color: #3f4b63;
  font-size: clamp(1.05rem, 1.1vw, 1.35rem);
  line-height: 1.75;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 .5rem;
}

/* small screens */
@media (max-width: 480px){
  .careers-hero{ padding: 56px 1rem 44px; }
  .career-badge{ width: 84px; height: 84px; }
  .career-badge i{ font-size: 36px; }
}



/* ===== Why Choose Salam Academy (Careers) ===== */
.why-join{
  background:#fff;
  padding: 4.5rem 1rem 3.5rem;
}

.why-head{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 2rem;
}
.why-head h2{
  color:#1e2d64;
  font-weight:800;
  font-size: 31px;
  margin-bottom:.6rem;
}
.why-head p{
  color:#56627b;
  font-size: clamp(1rem, .9rem + .6vw, 1.25rem);
}

/* grid */
.why-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .why-grid{ grid-template-columns: repeat(4, 1fr); }
}

/* card */
.why-card{
  text-align:center;
  background:#fff;
  border: 1px solid #e7ecf6;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.why-card:hover{
  transform: translateY(-4px);
  border-color:#ead7d7;
  box-shadow: 0 18px 36px rgba(16,24,40,.10);
}

/* icon bubble */
.why-icon{
  width:84px; height:84px; border-radius:50%;
  display:grid; place-items:center;
  margin: 0 auto 12px;
  background:#fdeaea;      /* pale red bubble */
  color:#c42e2e;           /* brand red */
  font-size: 1.6rem;
}

/* text */
.why-card h3{
  color:#1e2d64;
  font-weight:800;
  font-size: clamp(1.05rem, .95rem + .7vw, 1.45rem);
  margin: 6px 0 10px;
}
.why-card p{
  color:#3f4b63;
  font-size: 1.02rem;
  line-height:1.75;
}

/* mobile tweaks */
@media (max-width:560px){
  .why-card{ padding: 22px 18px; }
  .why-icon{ width:68px; height:68px; font-size:1.35rem; }
}



/* ===== Apply Today (compact & orderly) ===== */
.apply{ padding: 2.5rem 1rem 3rem; background:#fff; }
.apply-head{ text-align:center; margin-bottom: .75rem; }
.apply-head h2{
  color:#1e2d64; font-weight:800;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin: 0 0 .25rem;
}
.apply-head p{ color:#5a667f; font-size:.98rem; }

/* smaller, centered card */
.apply-card{
  max-width: 760px; margin: 0 auto;
  background:#fff; border:1px solid #e6eaf5; border-radius:14px;
  padding: 16px; box-shadow: 0 8px 18px rgba(16,24,40,.05);
}

/* tidy rows with breathing room */
.form-row{ display:grid; gap: 16px; grid-template-columns: 1fr; }
.form-row + .form-row{ margin-top: 14px; }
@media (min-width: 760px){ .form-row{ grid-template-columns: 1fr 1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-weight:100; color:#23325a; font-size:.88rem; }
.field input, .field textarea{
  width:100%; padding:10px 12px; border:1px solid #e3e7f2; border-radius:10px;
  font-size:.92rem; outline:none; transition:border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus{
  border-color:#2a4b9b; box-shadow: 0 0 0 3px rgba(42,75,155,.12);
}

.form-block{ margin-top: 14px; }

/* submit */
.apply-btn{
  width:100%; margin-top:16px;
  background:#d33729; color:#fff; border:none; border-radius:10px;
  padding:11px 14px; font-weight:800; font-size:.95rem; cursor:pointer;
  transition: background .18s ease, transform .18s ease;
}
.apply-btn:hover{ background:#a62013; transform: translateY(-1px); }
.apply-btn[disabled]{ opacity:.7; cursor:not-allowed; transform:none; }

.apply-status{ margin-top:8px; font-size:.9rem; min-height:1.1em; }

/* tiny paragraph under the form */
.apply-smallprint{
  max-width:760px; margin:10px auto 0; color:#5b677b; line-height:1.6;
  font-size:.78rem; text-align:center;
}

/* Add a red asterisk to any label whose next control is required */
.field label:has(+ input[required]),
.field label:has(+ textarea[required]){
  position: relative;
}
.field label:has(+ input[required])::after,
.field label:has(+ textarea[required])::after{
  content: " *";
  color: #c42e2e;        /* your brand red */
  font-weight: 800;
  margin-left: 4px;
}



/* ===== Open Positions ===== */
.jobs { background:#ffffff; padding: 2.5rem 1rem 3rem; }
.jobs-wrap { max-width: 1000px; margin: 0 auto; }

.jobs-title {
  text-align:center; color:#1f2b6c; font-weight:800;
  font-size:2rem; margin:0 0 .35rem;
}
.jobs-sub { text-align:center; color:#4b5563; margin:0 0 1.25rem; }

/* Tabs */
.jobs-tabs {
  display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap;
  background:#f7f8fb; border:1px solid #e6e9f2; border-radius:999px;
  padding:.35rem; margin:0 auto 1.2rem; max-width:520px;
}
.jobs-tab {
  appearance:none; border:0; background:transparent; cursor:pointer;
  padding:.55rem 1rem; border-radius:999px; font-weight:700; color:#1e2d64;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.jobs-tab:hover { transform: translateY(-1px); }
.jobs-tab.is-active {
  background:#1e2d64; color:#fff; box-shadow:0 6px 14px rgba(30,45,100,.18);
}

/* Panels */
.jobs-panels { margin-top:.5rem; }
/* Jobs panels: show only the active one */
.jobs-panels .jobs-panel { display: none; }
.jobs-panels .jobs-panel.is-active { display: block; }

/* Show only the active panel */
.jobs-panels .jobs-panel { display: none; }
.jobs-panels .jobs-panel.is-active { display: grid; }

/* Grid layout for openings */
.jobs-panel.is-active {
  gap: 24px;                 /* space between cards */
  align-items: start;        /* keep tops aligned */
  justify-items: center;     /* center cards in their column */
}

/* Minimum 2 columns on tablet/desktop */
@media (min-width: 800px) {
  .jobs-panel.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Optional: allow 3 across on very wide screens */
@media (min-width: 1400px) {
  .jobs-panel.is-active {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card sizing: never stretch past 600px */
.job-card {
  width: min(100%, 600px);
  margin: 0;                 /* kill any default margins */
}

/* Safety: hidden attrib should truly hide */
.jobs-panel[hidden] { display: none !important; }

/* Mobile: single column */
@media (max-width: 799px) {
  .jobs-panel.is-active {
    grid-template-columns: 1fr;
  }
}



/* Job Card */
.job-card {
  background:#fff; border:1px solid #e6e9f2; border-radius:16px;
  padding:1rem 1.1rem; box-shadow:0 8px 18px rgba(16,24,40,.05);
}

.job-card.notice { background:#f9fafb; border-style:dashed; }

.job-head {
  display:grid; grid-template-columns:1fr auto; gap:.5rem 1rem; align-items:start;
}
.job-head h3 {
  margin:0; color:#c13a32; font-weight:800; font-size:1.2rem;
}
.job-right { display:flex; gap:1rem; color:#6b7280; font-size:.92rem; }
.job-right i { margin-right:.35rem; }

.job-tags { display:flex; gap:.4rem; margin-top:.25rem; }
.tag {
  display:inline-flex; align-items:center; padding:.25rem .55rem; border-radius:999px;
  font-size:.8rem; font-weight:700; border:1.5px solid currentColor; color:#1e2d64; background:#fff;
}
.tag-blue { color:#2f5bd8; }
.tag-green { color:#2c974b; }
.tag-purple { color:#7a4ed7; }

.job-desc { color:#374151; line-height:1.65; margin:.8rem 0 1rem; }

.job-reqs h4 { margin:.2rem 0 .5rem; color:#1e2d64; font-weight:800; }
.job-reqs ul { margin:0; padding-left:0; list-style:none; display:grid; gap:.4rem; }
.job-reqs li { color:#223049; font-size:.98rem; }
.job-reqs li i { color:#2c974b; margin-right:.45rem; }

/* Buttons (reuse style you already have) */
.job-actions { margin-top:1rem; display:flex; gap:.6rem; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1rem; border-radius:10px; font-weight:700; font-size:.95rem;
  text-decoration:none; transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background:#e24533; color:#fff; box-shadow:0 6px 14px rgba(226,69,51,.18); }
.btn-primary:hover { background:#ca4435; transform: translateY(-1px); }
.btn-outline { background:transparent; border:2px solid #1e2d64; color:#1e2d64; }
.btn-outline:hover { background:#1e2d64; color:#fff; transform: translateY(-1px); }

/* Small screens */
@media (max-width:640px){
  .job-right { width:100%; justify-content:flex-start; flex-wrap:wrap; }
}
