/* ══════════════════════════════════════════════════════════════════
   ENGINEERING PROGRAMS — COMMON DESIGN SYSTEM
   Shared styles for B.Tech, M.Tech, and Diploma program listing pages
   ══════════════════════════════════════════════════════════════════ */
/* ══ 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;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--off);
}
/* ══════════════════════════════════════
   SUB-BANNER — Program listing hero
══════════════════════════════════════ */
.sub-banner {
  background: linear-gradient(158deg, #0e2647 0%, #0B1F3A 55%, #08192e 100%);
  border-top: 4px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
  padding: 40px 0 36px;
}
.sb-grid {
  position: absolute;
  inset: 0;
  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;
  pointer-events: none;
}
.sb-glow {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244,180,0,.07) 0%, transparent 65%);
  pointer-events: none;
}
.sb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sb-ring-1 {
  width: 360px;
  height: 360px;
  right: -60px;
  top: -120px;
  border: 1px solid rgba(244,180,0,.1);
}
.sb-ring-2 {
  width: 240px;
  height: 240px;
  right: 20px;
  top: -50px;
  border: 1px solid rgba(244,180,0,.06);
}
.sb-ring-accent {
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(244,180,0,.05);
  pointer-events: none;
}
.sb-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%);
}
.sb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sb-left {}
.sb-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.sb-crumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.sb-crumb a:hover {
  color: var(--gold);
}
.sb-crumb .sep {
  opacity: .35;
}
.sb-crumb .cur {
  color: var(--gold);
  font-weight: 600;
}
.sb-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: 12px;
}
.sb-eyebrow span.bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.sb-eyebrow .level-pill,
.sb-eyebrow .pg-pill {
  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;
  text-transform: uppercase;
  color: var(--gold);
}
.sb-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -.4px;
}
.sb-title em {
  font-style: normal;
  font-weight: bold;
  color: var(--gold);
}
.sb-sub {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  max-width: 520px;
}
.sb-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.sb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sb-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background .2s;
  min-width: 80px;
}
.sb-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: .5;
}
.sb-stat:hover {
  background: rgba(255,255,255,.09);
}
.sb-stat:hover::before {
  opacity: 1;
}
.sb-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.sb-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.sb-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sb-btn-p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(244,180,0,.28);
  transition: background .15s, transform .15s;
}
.sb-btn-p:hover {
  background: #FFD54F;
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}
.sb-btn-g {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.2);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.sb-btn-g:hover {
  border-color: rgba(255,255,255,.45);
  color: #fff;
  text-decoration: none;
}
/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(11,31,58,.06);
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.filter-btn:hover {
  color: var(--navy);
}
.filter-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.filter-btn .fc {
  font-size: 9px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 6px;
  font-weight: 700;
  color: var(--muted);
}
.filter-btn.active .fc {
  background: var(--gold-pl);
  border-color: var(--gold);
  color: var(--gold-dk);
}
/* ══════════════════════════════════════
   MAIN SECTION
══════════════════════════════════════ */
.program-sec {
  padding: 48px 0 72px;
}
.btech-sec,
.mtech-sec,
.diploma-sec {
  padding: 48px 0 72px;
}
/* Intro box */
.intro-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 22px 28px;
  margin-bottom: 40px;
}
.intro-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.intro-box p strong {
  color: var(--navy);
  font-weight: 600;
}
/* Accreditation pills */
.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);
}
/* ══════════════════════════════════════
   BRANCH CARDS GRID
══════════════════════════════════════ */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
  animation: fadeUp .4s var(--ease) both;
}
.branch-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(11,31,58,.09);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.branch-card[data-cat].hidden {
  display: none;
}
/* Card image zone */
.bc-img {
  position: relative;
  width: 100%;
  padding-top: 52%;
  overflow: hidden;
  background: var(--navy);
}
.bc-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.branch-card:hover .bc-img img {
  transform: scale(1.06);
}
.bc-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11,31,58,.75) 0%, rgba(11,31,58,.1) 55%, transparent 100%);
}
.bc-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 2;
  opacity: 0;
  transition: opacity .25s;
}
.branch-card:hover .bc-img::after {
  opacity: 1;
}
/* Fallback icon background */
.bc-fb {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
}
.bc-fb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bc-fb svg {
  position: relative;
  z-index: 1;
  opacity: .32;
}
/* Badges on image */
.bc-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  line-height: 1;
}
.bc-badge.ghost {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.bc-badge.dur,
.bc-badge.pg {
  background: rgba(11,31,58,.75);
  border: 1px solid rgba(244,180,0,.55);
  color: var(--gold);
}
/* Category label on image */
.bc-cat-label {
  position: absolute;
  bottom: 14px;
  right: 12px;
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
/* Card body */
.bc-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -.1px;
}
.bc-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  flex: 1;
}
.bc-details li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.bc-details li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold-dk);
}
/* Card footer */
.bc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.bc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.bc-btn:hover {
  background: var(--gold-dk);
  color: var(--white);
  transform: translateX(2px);
  text-decoration: none;
}
.bc-btn svg {
  transition: transform .2s;
}
.bc-btn:hover svg {
  transform: translateX(3px);
}
.bc-go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.branch-card:hover .bc-go {
  background: var(--gold);
  border-color: var(--gold);
}
/* ══════════════════════════════════════
   CTA STRIP
══════════════════════════════════════ */
.cta-sec {
  background: linear-gradient(135deg, var(--navy-lt) 0%, #09203f 100%);
  border-top: 3px solid var(--gold);
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-heading {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.cta-heading em {
  font-style: normal;
  font-weight: bold;
  color: var(--gold);
}
.cta-text p {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.cta-btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244,180,0,.28);
  transition: background .15s, transform .15s;
}
.cta-btn-p:hover {
  background: #FFD54F;
  transform: translateY(-2px);
  color: var(--navy);
  text-decoration: none;
}
.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: 12px 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;
  text-decoration: none;
}
/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Card animation stagger */
.branch-card:nth-child(1)  { animation-delay: .03s }
.branch-card:nth-child(2)  { animation-delay: .07s }
.branch-card:nth-child(3)  { animation-delay: .11s }
.branch-card:nth-child(4)  { animation-delay: .15s }
.branch-card:nth-child(5)  { animation-delay: .19s }
.branch-card:nth-child(6)  { animation-delay: .23s }
.branch-card:nth-child(7)  { animation-delay: .27s }
.branch-card:nth-child(8)  { animation-delay: .31s }
.branch-card:nth-child(9)  { animation-delay: .35s }
.branch-card:nth-child(10) { animation-delay: .39s }
.branch-card:nth-child(11) { animation-delay: .43s }
.branch-card:nth-child(12) { animation-delay: .47s }
.branch-card:nth-child(13) { animation-delay: .51s }
.branch-card:nth-child(14) { animation-delay: .55s }
.branch-card:nth-child(15) { animation-delay: .59s }
.branch-card:nth-child(16) { animation-delay: .63s }
/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 991px) {
  .sb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .sb-inner {
    flex-direction: column;
  }
  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
}
@media (max-width: 575px) {
  .sb-title {
    font-size: 24px;
  }
  .branch-grid {
    grid-template-columns: 1fr;
  }
  .program-sec,
  .btech-sec,
  .mtech-sec,
  .diploma-sec {
    padding: 36px 0 56px;
  }
}