/*
 * ════════════════════════════════════════════════════════════
 *  program-detail.css  —  JIS Group · Shared Program Detail
 *  Used by: btech-cse.html, btech-civil.html, btech-mech.html …
 *  and any future B.Tech / M.Tech / Diploma detail pages.
 * ════════════════════════════════════════════════════════════
 */
/* ══ 1. DESIGN TOKENS ══ */
:root {
  --navy:    #0B1F3A;
  --navy-lt: #122d52;
  --gold:    #F4B400;
  --gold-dk: #C9940A;
  --gold-pl: #FFF8E1;
  --off:     #F7F6F2;
  --white:   #ffffff;
  --muted:   #6B7280;
  --border:  #E5E3DC;
  --ease:    cubic-bezier(.4,0,.2,1);
  --ff:      'Inter', system-ui, sans-serif;
  --ff-s:    'Playfair Display', Georgia, serif;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(11,31,58,.08);
}
/* ══ 2. RESET & BASE ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {  background: var(--off); color: var(--navy); }
img  { display: block; max-width: 100%; }
a    { color: inherit; }
/* ══ 3. LAYOUT HELPERS ══ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
/* ══ 4. DETAIL BANNER ══ */
.detail-banner {
  background: linear-gradient(158deg, #0e2647 0%, #0B1F3A 55%, #08192e 100%);
  border-top: 2px solid #ffffff1f;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
  padding: 48px 0 52px;
}
/* — Decorative background layers — */
.db-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 52px 52px;
}
.db-glow {
  position: absolute; right: -120px; top: -80px;
  width: 500px; height: 500px; pointer-events: none;
  background: radial-gradient(circle, rgba(244,180,0,.09) 0%, transparent 65%);
}
.db-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.db-ring-1 { width: 420px; height: 420px; right: -80px;  top: -140px; border: 1px solid rgba(244,180,0,.10); }
.db-ring-2 { width: 280px; height: 280px; right:  40px;  top:  -60px; border: 1px solid rgba(244,180,0,.06); }
.db-ring-3 { width: 320px; height: 320px; left: -100px; bottom: -180px; border: 1px solid rgba(244,180,0,.05); }
.db-vbar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(244,180,0,.06) 100%);
}
/* — Banner inner layout — */
.db-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 28px;
}
/* — Breadcrumb — */
.db-crumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,.3);
}
.db-crumb a   { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.db-crumb a:hover { color: var(--gold); }
.db-crumb .sep  { opacity: .35; }
.db-crumb .cur  { color: var(--gold); font-weight: 600; }
/* — Head row (title + CTA buttons) — */
.db-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.db-left { flex: 1; min-width: 280px; }
/* — Eyebrow — */
.db-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.db-eyebrow .bar {
  display: block; width: 20px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.db-eyebrow .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(244,180,0,.14); border: 1px solid rgba(244,180,0,.3);
  border-radius: 3px; padding: 2px 9px;
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
}
/* — Title — */
.db-title {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700; color: #fff;
  line-height: 1.1; margin-bottom: 16px; letter-spacing: -.5px;
}
.db-title em { font-style: normal; font-weight:bold; color: var(--gold); }
/* — Sub text — */
.db-sub {
  font-size: 15px; color: rgba(255,255,255,.68);
  line-height: 1.75; max-width: 620px;
}
/* — CTA buttons — */
.db-right {
  display: flex; gap: 12px; align-items: flex-start;
  flex-shrink: 0; flex-wrap: wrap;
}
.db-btn-p {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: 12px 24px; border-radius: 6px;
  text-decoration: none; box-shadow: 0 4px 16px rgba(244,180,0,.32);
  transition: background .15s, transform .15s;
}
.db-btn-p:hover { background: #FFD54F; color: var(--navy); text-decoration: none; transform: translateY(-1px); }
.db-btn-g {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: rgba(255,255,255,.78);
  font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; padding: 11px 22px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.22); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.db-btn-g:hover { border-color: rgba(255,255,255,.5); color: #fff; text-decoration: none; }
/* — Stats bar — */
.db-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.db-stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px; padding: 16px; text-align: center;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.db-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); opacity: .5; transition: opacity .2s;
}
.db-stat:hover { background: rgba(255,255,255,.09); }
.db-stat:hover::before { opacity: 1; }
.db-num {  font-size: 24px; font-weight: 700; color: #fff; line-height: 1; display: block; margin-bottom: 5px; }
.db-lbl { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
/* ══ 5. CONTENT SECTION ══ */
.detail-content { padding: 56px 0 80px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
/* ══ 6. MAIN COLUMN ══ */
/* — Overview box — */
.overview-box {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px; margin-bottom: 36px;
}
.overview-box h2 {
   font-size: 24px; font-weight: 700;
  color: var(--navy); margin-bottom: 16px; letter-spacing: -.3px;
}
.overview-box h3 {
   font-size: 21px; font-weight: 700;
  color: var(--navy); margin-bottom: 16px; letter-spacing: -.3px;
}
.overview-box p {
  font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 14px;
}
.overview-box p:last-child { margin-bottom: 0; }
/* — Key highlights strip (optional inside overview) — */
.overview-highlights {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.ov-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; background: var(--gold-pl);
  border: 1px solid rgba(244,180,0,.3); border-radius: 5px;
  font-size: 11px; font-weight: 700; color: var(--gold-dk);
}
/* — Institution table section — */
/* ══ INSTITUTION LIST — replaces old inst-table ══
   Numbered rows, phone inline, Visit link flush-right.
   Zero horizontal scroll — works at any viewport width.
   ═══════════════════════════════════════════════════ */
/* wrapper box (replaces .inst-section) */
.inst-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 36px;
}
.inst-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.inst-section > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
/* list */
.inst-list {
 background: var(--white);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
/* each row */
.inst-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.inst-row:last-child { border-bottom: none; }
.inst-row:hover      { background: var(--white); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 6px; }
/* number bubble */
.inst-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--off);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: background .15s, border-color .15s, color .15s;
}
.inst-row:hover .inst-num {
  background: var(--gold-pl);
  border-color: var(--gold);
  color: var(--gold-dk);
}
/* text block */
.inst-body  { flex: 1; min-width: 0; }
.inst-name  {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 4px;
  /* truncation safety on very small screens */
  overflow-wrap: break-word;
}
.inst-meta  {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inst-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.inst-phone i { font-size: 13px; color: var(--gold-dk); }
/* status tag */
.inst-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.inst-tag.flagship {
  background: rgba(244,180,0,.12);
  border: 1px solid rgba(244,180,0,.3);
  color: var(--gold-dk);
}
.inst-tag.jv {
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--muted);
}
/* right-side visit link */
.inst-right { flex-shrink: 0; }
.inst-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.inst-link i { font-size: 11px; transition: transform .2s; }
.inst-link:hover {
  border-color: var(--gold);
  background: var(--gold-pl);
  color: var(--gold-dk);
  text-decoration: none;
}
.inst-link:hover i { transform: translate(2px, -2px); }
/* ── RESPONSIVE ─────────────────────────────────── */
/* md / tablet: phone moves below name, link stays right */
@media (max-width: 767px) {
  .inst-section  { padding: 24px 20px; }
  .inst-row      { gap: 12px; }
  .inst-name     { font-size: 13px; }
  .inst-link     { padding: 6px 10px; font-size: 10px; }
}
/* xs / phone: link drops below, full-width row becomes stacked */
@media (max-width: 575px) {
  .inst-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .inst-body  { flex: 1 1 calc(100% - 46px); }  /* full width minus num */
  .inst-right {
    flex: 0 0 100%;
    padding-left: 46px;          /* align under name, not num */
    margin-top: 2px;
  }
  .inst-link  { width: auto; }
}
/* — Accreditation pills strip — */
.acred-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.acred-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy);
  transition: border-color .15s, background .15s;
}
.acred-pill:hover { border-color: var(--gold); background: var(--gold-pl); }
/* — Career paths box — */
.careers-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 36px;
}
.careers-box h2 {
   font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 16px;
}
.career-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.career-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.career-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-dk); }
/* ══ 7. SIDEBAR ══ */
.content-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.sidebar-card h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; letter-spacing: -.2px;
}
/* — Info list — */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.info-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.info-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-dk); }
.info-list li strong { color: var(--navy); font-weight: 600; }
/* — Program highlights pills — */
.highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; background: var(--gold-pl);
  border: 1px solid rgba(244,180,0,.3); border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gold-dk);
}
.hl-pill svg { width: 11px; height: 11px; flex-shrink: 0; }
/* — CTA card — */
.cta-card {
  background: linear-gradient(135deg, var(--navy-lt) 0%, #09203f 100%);
  border: 1px solid rgba(244,180,0,.2);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.cta-card h3 {
   font-size: 20px; font-weight: 700;
  color: #fff; margin-bottom: 12px; line-height: 1.3;
}
.cta-card h3 em { font-style: normal; font-weight: bold; color: var(--gold); }
.cta-card p {
  font-size: 13px; color: rgba(255,255,255,.68);
  line-height: 1.7; margin-bottom: 20px;
}
.cta-card .db-btn-p { width: 100%; justify-content: center; }
/* — Contact list inside sidebar — */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { font-size: 13px; color: var(--muted); line-height: 1.6; }
.contact-list li strong { display: block; font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list li a { color: var(--gold-dk); text-decoration: none; font-weight: 600; }
.contact-list li a:hover { color: var(--navy); }
/* ══ 8. BOTTOM CTA STRIP ══ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-lt) 0%, #09203f 100%);
  border-top: 2px solid var(--gold); padding: 56px 0;
}
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip-text h2 {
   font-size: 30px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.cta-strip-text h2 em { font-style: normal; font-weight: bold; color: var(--gold); }
.cta-strip-text p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.7; max-width: 520px; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.cta-btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.78);
  font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; padding: 13px 22px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.22); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.cta-btn-g:hover { border-color: rgba(255,255,255,.5); color: #fff; }
/* ══ 9. UTILITY / ANIMATION ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s var(--ease) both; }
.fade-up-2 { animation: fadeUp .45s .1s var(--ease) both; }
.fade-up-3 { animation: fadeUp .45s .2s var(--ease) both; }
/* ══ 10. RESPONSIVE ══
   Bootstrap 4.1 breakpoints:
   xl ≥1200px  |  lg 992–1199px  |  md 768–991px  |  sm 576–767px  |  xs <576px
   ════════════════════════════════════════════════════════════ */
/* ── lg and below (< 1200px): tighten desktop slightly ── */
@media (max-width: 1199px) {
  .content-grid { grid-template-columns: 1fr 340px; gap: 32px; }
}
/* ── md (768px – 991px): tablet ── */
@media (max-width: 991px) {
  /* Banner */
  .detail-banner   { padding: 36px 0 40px; }
  .db-inner        { gap: 24px; }
  .db-head         { flex-direction: column; gap: 20px; }
  .db-right        { flex-direction: row; gap: 10px; }
  .db-stats        { grid-template-columns: repeat(4, 1fr); }
  /* Layout: sidebar moves above main on tablet */
  .content-grid    { grid-template-columns: 1fr; gap: 28px; }
  .content-sidebar { order: -1; }
  /* Bottom CTA */
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .cta-strip-actions { justify-content: center; }
}
/* ── sm (576px – 767px): large phone / small tablet ── */
@media (max-width: 767px) {
  /* Banner */
  .detail-banner   { padding: 28px 0 32px; }
  .db-inner        { gap: 18px; }
  .db-title        { font-size: 28px; }
  .db-sub          { font-size: 14px; }
  .db-stats        { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .db-stat         { padding: 12px 10px; }
  .db-num          { font-size: 20px; }
  .db-lbl          { font-size: 9px; }
  /* Buttons: side by side, equal width */
  .db-right        { width: 100%; }
  .db-btn-p,
  .db-btn-g        { flex: 1; text-align: center; justify-content: center; }
  /* Content */
  .detail-content  { padding: 36px 0 56px; }
  /* Career grid: single column */
  .career-grid     { grid-template-columns: 1fr; }
  /* Bottom CTA */
  .cta-strip       { padding: 36px 0; }
  .cta-strip-text h2 { font-size: 24px; }
  .cta-strip-actions { flex-direction: column; align-items: stretch; }
  .cta-strip-actions .db-btn-p,
  .cta-strip-actions .cta-btn-g { text-align: center; justify-content: center; }
}
/* ── xs (< 576px): phone ── */
@media (max-width: 575px) {
  /* Banner */
  .db-title        { font-size: 24px; }
  .db-sub          { font-size: 13px; }
  .db-eyebrow      { flex-wrap: wrap; }
  /* Breadcrumb: truncate to last 2 items */
  .db-crumb-hide   { display: none; }
  /* Buttons: stack vertically on smallest screens */
  .db-right        { flex-direction: column; }
  .db-btn-p,
  .db-btn-g        { width: 100%; justify-content: center; }
  /* Cards */
  .overview-box    { padding: 20px; margin-bottom: 24px; }
  .overview-box h2 { font-size: 20px; }
  .inst-section    { padding: 20px; margin-bottom: 24px; }
  .inst-section h2 { font-size: 20px; }
  .careers-box     { padding: 20px; margin-bottom: 24px; }
  .careers-box h2  { font-size: 20px; }
  .sidebar-card    { padding: 20px; }
  .cta-card        { padding: 24px 20px; }
  /* Bottom CTA */
  .cta-strip-text h2 { font-size: 22px; }
}