/*
 * Shared design system for the header-linked inner pages (About, Contact,
 * Careers, Projects, Internship, Software Services, Team, Gallery, and the
 * individual best-*-training pages). Mirrors the landing page's blue→purple
 * ("Figtree" + #1769ff → #6c47ff) identity so every inner page reads as part
 * of the same site instead of the old teal/green template theme.
 *
 * Scoped under .ip-page so nothing here leaks into the legacy tj-* / custom.css
 * styled sections that still exist elsewhere, the same pattern already used
 * for the training page's .training-page / .explore-programs wrappers.
 */
.ip-page {
  --ip-ink: #0b1530;
  --ip-text: #53617b;
  --ip-text-soft: #8893a8;
  --ip-blue: #1769ff;
  --ip-blue-dark: #0b55e0;
  --ip-violet: #6c47ff;
  --ip-line: #e3e8f4;
  --ip-surface: #ffffff;
  --ip-tint: #f5f8ff;
  --ip-shadow: 0 10px 30px rgba(18, 38, 84, 0.08);
  --ip-shadow-lg: 0 20px 48px rgba(18, 38, 84, 0.12);
  --ip-radius: 20px;
  --ip-shell: 1760px;
  --ip-gradient: linear-gradient(90deg, var(--ip-blue), var(--ip-violet));
  min-height: 100vh;
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-family: "Figtree", "Plus Jakarta Sans", system-ui, sans-serif;
}
.ip-shell {
  width: min(var(--ip-shell), calc(100% - 88px));
  margin-inline: auto;
}
@media (max-width: 760px) {
  .ip-shell { width: calc(100% - 32px); }
}

/* ---------- Hero / page header ---------- */
.ip-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(42% 90% at 16% 30%, rgba(23, 105, 255, .14), transparent 72%),
    radial-gradient(40% 80% at 88% 20%, rgba(108, 71, 255, .12), transparent 72%),
    linear-gradient(180deg, #f1f5ff 0%, #fff 92%);
}
.ip-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -135px;
  left: 21%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(219, 238, 255, .58);
  pointer-events: none;
}
.ip-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: min(820px, 80vw);
  aspect-ratio: 2.8;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(71, 110, 255, .12);
  filter: blur(44px);
  pointer-events: none;
}
.ip-hero .ip-shell {
  position: relative;
}
.ip-hero .ip-shell::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 6%;
  width: 70px;
  height: 56px;
  opacity: .75;
  background-image: radial-gradient(var(--ip-blue) 2px, transparent 2px);
  background-size: 14px 14px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .ip-hero .ip-shell::before { top: 2px; right: 2%; width: 50px; height: 40px; }
}
.ip-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ip-blue);
  font-size: clamp(12px, .85vw, 16px);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.ip-eyebrow i { font-size: 1.1em; }
.ip-hero h1 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--ip-ink);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.ip-hero h1 span {
  color: transparent;
  background: var(--ip-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.ip-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--ip-text);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.6;
}
.ip-crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ip-text-soft);
}
.ip-crumbs a { color: var(--ip-text-soft); text-decoration: none; }
.ip-crumbs a:hover { color: var(--ip-blue); }
.ip-crumbs span.current { color: var(--ip-ink); }
.ip-hero-points {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 24px;
}
.ip-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--ip-ink);
  font-size: 14px;
  font-weight: 700;
}
.ip-hero-points span + span { border-left: 1px solid var(--ip-line); }
.ip-hero-points i { color: var(--ip-blue); font-size: 18px; }
@media (max-width: 760px) {
  .ip-hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .ip-hero-points span { justify-content: center; padding-inline: 7px; font-size: 12px; text-align: center; }
  .ip-hero-points span + span { border-left: 0; }
}

/* ---------- Section heading ---------- */
.ip-section { margin-top: clamp(44px, 4.4vw, 88px); }
.ip-section-head { text-align: center; max-width: 720px; margin-inline: auto; }
.ip-section-head.left { text-align: left; margin-inline: 0; }
.ip-eyebrow-sm {
  margin: 0;
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ip-blue);
}
.ip-section-head h2 {
  margin: 0.5em 0 0;
  font-size: clamp(26px, 2.4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ip-ink);
}
.ip-section-head p {
  margin: 14px 0 0;
  color: var(--ip-text);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.ip-btn-primary {
  background: var(--ip-gradient);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 105, 255, 0.28);
}
.ip-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(23, 105, 255, 0.36); color: #fff; }
.ip-btn-ghost {
  background: #fff;
  color: var(--ip-ink);
  border-color: var(--ip-line);
}
.ip-btn-ghost:hover { border-color: var(--ip-blue); color: var(--ip-blue); }
.ip-btn i { font-size: 1.05em; }

/* ---------- Cards ---------- */
.ip-card {
  position: relative;
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  padding: 30px 26px;
  box-shadow: var(--ip-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ip-shadow-lg);
  border-color: rgba(23, 105, 255, 0.25);
}
.ip-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.12), rgba(108, 71, 255, 0.12));
  color: var(--ip-blue);
  font-size: 24px;
}
.ip-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ip-ink);
}
.ip-card p {
  margin: 0;
  color: var(--ip-text);
  font-size: 14.5px;
  line-height: 1.65;
}
.ip-grid {
  display: grid;
  gap: clamp(16px, 1.6vw, 26px);
  margin-top: clamp(28px, 2.6vw, 44px);
}
.ip-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ip-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ip-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) {
  .ip-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ip-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ip-grid-4, .ip-grid-3, .ip-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Stat strip ---------- */
.ip-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(32px, 3vw, 52px);
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1530, #15245c);
  color: #fff;
}
.ip-stats div { text-align: center; }
.ip-stats strong {
  display: block;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 800;
  background: linear-gradient(90deg, #8fb6ff, #c6b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ip-stats span { font-size: 13px; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
@media (max-width: 640px) {
  .ip-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA band ---------- */
.ip-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 5vw, 96px);
  padding: clamp(40px, 4.4vw, 68px) clamp(24px, 4vw, 56px);
  border-radius: 28px;
  background: linear-gradient(120deg, #0b1530 0%, #15245c 55%, #3d2a8f 100%);
  color: #fff;
  text-align: center;
}
.ip-cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 71, 255, 0.45), transparent 70%);
  pointer-events: none;
}
.ip-cta h2 {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ip-cta p {
  position: relative;
  max-width: 560px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.ip-cta .ip-btn-primary {
  position: relative;
  margin-top: 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

/* ---------- CTA band (angled gradient, left copy / right button) ---------- */
.ip-cta-band {
  margin-top: clamp(56px, 5vw, 96px);
  margin-bottom: clamp(56px, 5vw, 96px);
}
.ip-cta-band-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 178px;
  padding: 32px clamp(30px, 4vw, 66px);
  border-radius: 17px;
  background: linear-gradient(105deg, #0b55dc 0%, #3536db 57%, #7549f6 100%);
  box-shadow: 0 14px 28px rgba(35, 79, 204, .22);
  color: #fff;
}
.ip-cta-band-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -220px;
  width: 540px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 19px rgba(255, 255, 255, .035), 0 0 0 39px rgba(255, 255, 255, .03), 0 0 0 59px rgba(255, 255, 255, .025);
  transform: rotate(-20deg);
}
.ip-cta-band-kicker {
  margin: 0 0 8px;
  color: #d9eaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.ip-cta-band-inner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 2.65vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.ip-cta-band-inner div > p:last-child {
  max-width: 660px;
  margin: 10px 0 0;
  color: #ecf2ff;
  font-size: 14px;
  line-height: 1.55;
}
.ip-cta-band-inner a {
  flex: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-width: 152px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: #195ee9;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(15, 34, 121, .12);
  transition: transform .2s;
}
.ip-cta-band-inner a:hover {
  color: #195ee9;
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .ip-cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ip-cta-band-inner a { transition: none; }
}

/* ---------- Form card (contact / internship / careers apply) ---------- */
.ip-form-card {
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: 24px;
  padding: clamp(24px, 2.6vw, 40px);
  box-shadow: var(--ip-shadow);
}
.ip-field { margin-bottom: 18px; }
.ip-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ip-ink);
}
.ip-field input,
.ip-field select,
.ip-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--ip-line);
  background: var(--ip-tint);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ip-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ip-field input:focus,
.ip-field select:focus,
.ip-field textarea:focus {
  outline: none;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
  background: #fff;
}
.ip-field textarea { resize: vertical; min-height: 120px; }

/* ---------- Breadcrumb-less simple band (used by smaller pages) ---------- */
.ip-band {
  padding: clamp(14px, 1.4vw, 20px) 0;
  border-bottom: 1px solid var(--ip-line);
}
