/* ==========================================================================
   Careers page (careers.html)
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#openings, #apply, #applyForm, .job { scroll-margin-top: 100px; }

/* ---------- Hero ---------- */
.page-hero .hero-actions { justify-content: flex-start; margin-top: 6px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); flex: none; }
.hero-points strong { color: var(--cream); font-weight: 700; }

/* ---------- Check list ---------- */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Why work with us ---------- */
.why-media { position: relative; padding-bottom: 70px; }
.why-main { aspect-ratio: 1 / 1; width: 88%; box-shadow: var(--shadow); }
.why-inset {
  position: absolute; right: 0; bottom: 0; width: 58%;
  padding: 10px; border-radius: 20px; background: var(--white);
  box-shadow: 0 30px 60px -25px rgba(45, 28, 12, .45);
}
.why-inset .rounded-img { border-radius: 14px; aspect-ratio: 16 / 9; }
.why-inset figcaption { padding: 12px 8px 4px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.why-inset figcaption strong { display: block; color: var(--title); font-size: 15px; margin-bottom: 2px; }
.why-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.benefits { margin-top: 120px; }
.benefits .feature-card h3 { margin-top: 4px; }

/* ---------- Open positions: toolbar ---------- */
.jobs-toolbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.jobs-toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.job-search { position: relative; flex: 1 1 320px; max-width: 480px; }
.job-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.job-search input {
  width: 100%; padding: 15px 20px 15px 48px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--white); outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.job-search input::placeholder { color: #a8998a; }
.job-search input:focus { border-color: var(--rust); box-shadow: 0 0 0 4px rgba(160, 78, 18, .12); }
.jobs-count { font-size: 14px; color: var(--muted); font-weight: 500; }
.job-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 10px 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 14.5px; font-weight: 500; color: var(--title); white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s, color .3s;
}
.filter-chip .n {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 100px;
  display: grid; place-items: center;
  background: var(--sand); color: var(--rust); font-size: 12px; font-weight: 700;
  transition: background .3s, color .3s;
}
.filter-chip:hover { border-color: var(--rust-400); }
.filter-chip[aria-pressed="true"] { background: var(--brown-deep); border-color: var(--brown-deep); color: var(--white); }
.filter-chip[aria-pressed="true"] .n { background: var(--rust); color: var(--white); }
.filter-chip:focus-visible, .job-toggle:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Job cards ---------- */
.job-list { display: grid; gap: 14px; }
.job {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .45s var(--ease), border-color .3s;
}
.job[hidden] { display: none; }
.job:hover { border-color: #d8c4a6; }
.job.open { border-color: transparent; box-shadow: var(--shadow); }
.job-h { font-size: inherit; line-height: inherit; letter-spacing: normal; font-weight: inherit; }
.job-toggle { width: 100%; text-align: left; display: flex; align-items: center; gap: 22px; padding: 24px 28px; border-radius: var(--radius-lg); }
.job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tags .chip { font-size: 12px; padding: 5px 11px; }
.chip--intern { background: var(--cream); color: var(--brown-700); }
.job-title { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--title); transition: color .3s; }
.job-toggle:hover .job-title, .job.open .job-title { color: var(--rust); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--muted); }
.job-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.job-meta svg { width: 16px; height: 16px; color: var(--rust); flex: none; }
.job-more { font-size: 14px; font-weight: 600; color: var(--rust); white-space: nowrap; }
.job-more::before { content: "View details"; }
.job.open .job-more::before { content: "Close"; }
.job-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); flex: none; position: relative; transition: background .3s, transform .45s var(--ease); }
.job-ic::before, .job-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; border-radius: 2px; background: var(--rust); transition: transform .45s var(--ease), background .3s; }
.job-ic::after { transform: rotate(90deg); }
.job-toggle:hover .job-ic { background: #ead9c2; }
.job.open .job-ic { background: var(--rust); transform: rotate(180deg); }
.job.open .job-ic::before, .job.open .job-ic::after { background: var(--white); }
.job.open .job-ic::after { transform: rotate(0); }

.job-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s; }
.job.open .job-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s; }
.job-body > div { overflow: hidden; min-height: 0; }
.job-inner { margin: 0 28px; padding: 26px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.job-summary { font-size: 17px; line-height: 1.55; color: var(--text); max-width: 860px; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.job-cols h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--rust); margin-bottom: 14px; }
.job-cols ul { display: grid; gap: 10px; }
.job-cols li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.job-cols li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--rust); transform: rotate(45deg); }
.job-cols .req li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--rust); }
.job-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 16px 16px 22px; border-radius: 14px; background: var(--sand);
}
.job-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.job-facts div { display: flex; flex-direction: column; gap: 2px; }
.job-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.job-facts dd { font-size: 15px; font-weight: 600; color: var(--title); }

.job-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 56px 24px; border: 1.5px dashed #d6c2a4; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .55);
}
.job-empty[hidden] { display: none; }
.job-empty > svg { width: 40px; height: 40px; color: var(--rust); }
.job-empty p { max-width: 520px; }
.job-empty .row { justify-content: center; margin-top: 6px; }

.jobs-note {
  margin-top: 36px; padding: 34px 36px; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--brown-deep), var(--brown) 70%, var(--rust-600));
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
  color: var(--white);
}
.jobs-note > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.jobs-note h3 { color: var(--white); }
.jobs-note p { color: rgba(255, 255, 255, .75); }

/* ---------- Hiring steps ---------- */
.steps .step h3 { margin-top: 6px; }

/* ---------- Internships & freshers ---------- */
.fresher-text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.fresher-text .hero-actions { justify-content: flex-start; }
.fresher-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.fp { padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.fp strong { display: block; color: var(--cream); font-weight: 600; margin-bottom: 6px; }
.on-dark .fp p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.qual-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.on-dark .qual-chips .chip { background: rgba(252, 217, 160, .1); color: var(--cream); border: 1px solid rgba(252, 217, 160, .16); }
.fresher-media { position: relative; }
.fresher-media .rounded-img { aspect-ratio: 4 / 5; }
.fresher-badge {
  position: absolute; left: -22px; bottom: 40px;
  padding: 16px 20px; border-radius: 16px;
  background: var(--cream); color: var(--brown-deep);
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.fresher-badge span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-bottom: 2px; }

/* ---------- Application form ---------- */
.apply-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.apply-aside { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.keep-ready { display: flex; flex-direction: column; gap: 16px; }
.keep-ready h3 { font-size: 18px; }
.contact-mini { width: 100%; display: grid; gap: 4px; padding: 10px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.contact-mini a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--title); font-weight: 600; transition: background .3s; word-break: break-word; }
.contact-mini a:hover { background: var(--bg); }
.contact-mini svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sand); color: var(--rust); flex: none; }
.contact-mini small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }

.apply-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
.apply-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.apply-for { display: none; padding: 8px 14px; border-radius: 100px; background: rgba(160, 78, 18, .08); color: var(--rust-600); font-size: 14px; }
.apply-for.on { display: inline-block; }
.apply-for strong { font-weight: 700; }
.field .req { color: var(--rust); }
.apply-card .field select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a04e12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.apply-card .field textarea { min-height: 130px; }
.field.flash select { animation: rolePulse 1.6s var(--ease); }
@keyframes rolePulse {
  0% { border-color: var(--rust); box-shadow: 0 0 0 0 rgba(160, 78, 18, .45); }
  70% { border-color: var(--rust); box-shadow: 0 0 0 12px rgba(160, 78, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(160, 78, 18, 0); }
}
.resume-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 13.5px; line-height: 1.5; color: var(--text); }
.resume-note svg { width: 18px; height: 18px; color: var(--rust); flex: none; margin-top: 1px; }
.form-actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .form-note { flex: 1 1 220px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .apply-wrap { grid-template-columns: 1fr 1.25fr; gap: 40px; }
}
@media (max-width: 900px) {
  .benefits { margin-top: 90px; }
  .apply-wrap, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .apply-aside, .faq-wrap .section-head { position: static; }
  .fresher-media { order: -1; }
  .fresher-media .rounded-img { aspect-ratio: 16 / 10; }
  .fresher-badge { left: 16px; bottom: 16px; }
  .job-more { display: none; }
}
@media (max-width: 640px) {
  .why-media { padding-bottom: 50px; }
  .why-main { width: 100%; }
  .why-inset { width: 72%; right: -6px; }
  .why-inset figcaption { font-size: 12.5px; }
  .job-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .job-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .job-search { flex-basis: 100%; max-width: none; }
  .job-toggle { padding: 20px; gap: 14px; align-items: flex-start; }
  .job-ic { width: 36px; height: 36px; }
  .job-meta { gap: 6px 16px; font-size: 14px; }
  .job-inner { margin: 0 20px; padding: 22px 0 22px; gap: 24px; }
  .job-summary { font-size: 16px; }
  .job-cols { grid-template-columns: 1fr; gap: 24px; }
  .job-foot { flex-direction: column; align-items: stretch; padding: 18px; }
  .job-foot .btn { justify-content: space-between; }
  .jobs-note { padding: 28px 22px; }
  .fresher-points { grid-template-columns: 1fr; }
  .apply-card { padding: 26px 18px; border-radius: var(--radius-lg); }
  .form-actions .btn { width: 100%; justify-content: space-between; }
}
