:root{
  --brand:#7a0019;        /* deep maroon (IIT ISM) */
  --brand-dark:#4a000f;
  --accent:#d4a017;       /* gold */
  --ink:#1a1a1a;
  --muted:#6b6b6b;
  --bg-soft:#f7f4ef;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:#fff;
}
h1,h2,h3,h4,.brand-title{font-family:'Playfair Display',serif;letter-spacing:.2px}
/* Topbar */
.topbar{background:var(--brand-dark);color:#f3e5c9;padding:.5rem 0;font-size:.85rem}
.topbar a{color:#f3e5c9;text-decoration:none;margin-left:.4rem}
.topbar a:hover{color:var(--accent)}
/* Nav */
.main-nav{
  background:rgba(122,0,25,.97);
  backdrop-filter:blur(6px);
  box-shadow:0 6px 20px rgba(0,0,0,.12);
  padding:.6rem 0;
}
.brand-text .brand-title{color:#fff;font-size:1.15rem;font-weight:700;line-height:1.1}
.brand-text .brand-sub{color:var(--accent);font-size:.78rem;letter-spacing:2px;text-transform:uppercase}
.main-nav .nav-link{color:#f7e9c9 !important;font-weight:500;padding:.5rem .9rem !important;position:relative}
.main-nav .nav-link.active,.main-nav .nav-link:hover{color:#fff !important}
.main-nav .nav-link.active::after,.main-nav .nav-link:hover::after{
  content:"";position:absolute;left:.9rem;right:.9rem;bottom:.25rem;height:2px;background:var(--accent);border-radius:2px;
}
.btn-accent{background:var(--accent);color:#3a2400;border:none;font-weight:600}
.btn-accent:hover{background:#e6b330;color:#000}
/* Hero */
.hero{
  position:relative;min-height:78vh;display:flex;align-items:center;justify-content:center;
  background:
    linear-gradient(120deg,rgba(74,0,15,.85),rgba(122,0,25,.6) 60%,rgba(212,160,23,.55)),
    url('https://people.iitism.ac.in/~inmedia/img/mbc_cover.png') center/cover;
  overflow:hidden;
}
.hero-overlay{position:absolute;inset:0;background:radial-gradient(circle at 20% 80%,rgba(0,0,0,.5),transparent 60%)}
.hero-inner{position:relative;z-index:2;padding:6rem 1rem 7rem}
.hero .eyebrow{display:inline-block;color:var(--accent);letter-spacing:4px;font-size:.85rem;text-transform:uppercase;margin-bottom:1rem}
.hero h1 .accent{color:var(--accent)}
.hero-stats{position:relative;z-index:2;margin-top:-3.2rem}
.hero-stats .stat{
  background:#fff;color:var(--ink);padding:1.3rem .6rem;border-top:3px solid var(--accent);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
}
.hero-stats .col-6:not(:last-child) .stat{border-right:1px solid #eee}
.hero-stats .num{font-family:'Playfair Display',serif;font-size:2rem;color:var(--brand);font-weight:700}
.hero-stats .lbl{font-size:.78rem;text-transform:uppercase;letter-spacing:2px;color:var(--muted)}
/* Sections */
.section{padding:5rem 0}
.section-muted{background:var(--bg-soft)}
.section-dark{background:linear-gradient(160deg,#1a0006,#3a0010);color:#fff}
.section-head{margin-bottom:2.5rem;text-align:center}
.section-head .kicker{display:inline-block;color:var(--accent);font-size:.8rem;letter-spacing:4px;text-transform:uppercase;font-weight:600}
.section-head h2{font-size:2.4rem;margin:.3rem 0 .5rem;color:var(--brand)}
.section-dark .section-head h2{color:#fff}
/* Highlight carousel */
.highlight-carousel{border-radius:14px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.12);background:#fff}
.highlight-carousel .carousel-item img{width:100%;height:480px;object-fit:cover}
.highlight-carousel .caption{padding:2.5rem;display:flex;flex-direction:column;justify-content:center;background:#fff}
.highlight-carousel .caption .tag{display:inline-block;background:var(--bg-soft);color:var(--brand);padding:.25rem .7rem;border-radius:50px;font-size:.75rem;letter-spacing:2px;text-transform:uppercase;font-weight:700;margin-bottom:1rem;width:fit-content}
.highlight-carousel .caption h3{color:var(--brand);font-size:1.7rem;margin-bottom:1rem}
.highlight-carousel .caption p{color:var(--muted);font-size:1.02rem;line-height:1.6}
.highlight-carousel .read-more{color:var(--brand);text-decoration:none;font-weight:600;margin-top:1rem}
.highlight-carousel .read-more:hover{color:var(--accent)}
.carousel-control-prev,.carousel-control-next{width:6%}
.carousel-control-prev-icon,.carousel-control-next-icon{background-color:rgba(122,0,25,.7);border-radius:50%;padding:1.2rem}
@media(max-width:768px){.highlight-carousel .carousel-item img{height:280px}.highlight-carousel .caption{padding:1.5rem}}
/* News cards */
.news-card{background:#fff;border-radius:12px;overflow:hidden;height:100%;box-shadow:0 8px 24px rgba(0,0,0,.06);transition:transform .35s,box-shadow .35s}
.news-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.12)}
.news-img{height:200px;overflow:hidden}
.news-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.news-card:hover .news-img img{transform:scale(1.08)}
.news-body{padding:1.3rem}
.news-tag{display:inline-block;background:var(--brand);color:#fff;padding:.2rem .6rem;border-radius:4px;font-size:.7rem;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;margin-bottom:.6rem}
.news-body h5{color:var(--ink);font-weight:700;margin-bottom:.5rem}
.news-body p{color:var(--muted);font-size:.92rem;line-height:1.55}
.news-body a{color:var(--brand);text-decoration:none;font-weight:600;font-size:.88rem}
.news-body a:hover{color:var(--accent)}
/* Research */
.research-card{display:block;background:#fff;border-radius:12px;overflow:hidden;height:100%;text-decoration:none;color:inherit;border:1px solid #ececec;transition:transform .3s,border-color .3s}
.research-card:hover{transform:translateY(-4px);border-color:var(--accent)}
.research-card img{width:100%;height:200px;object-fit:cover;background:#eee}
.research-body{padding:1.2rem}
.research-body h6{color:var(--brand);font-weight:700;font-size:1.05rem;margin-bottom:.4rem}
.research-body p{font-size:.9rem;color:var(--muted);margin-bottom:.6rem}
.research-body .src{font-size:.75rem;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:600}
/* Videos */
.video-card{border-radius:12px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.1)}
.video-card iframe{border:0}
/* Accolades */
.accolade{display:flex;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.06);height:100%}
.accolade img{width:130px;object-fit:cover;flex-shrink:0}
.accolade-body{padding:1.2rem}
.accolade-body h6{color:var(--brand);font-weight:700;margin-bottom:.2rem}
.accolade-body p{font-size:.88rem;color:var(--muted);margin-top:.5rem;line-height:1.5}
/* CTA band */
.cta-band{background:linear-gradient(90deg,var(--brand),var(--brand-dark));padding:3rem 0}
.cta-band h3{font-family:'Playfair Display',serif}
.newsletter input{min-width:260px}
@media(max-width:576px){.newsletter{width:100%}.newsletter input{min-width:0;flex:1}}
/* Footer */
.footer{background:#0e0004;color:#fff;padding:3.5rem 0 1.5rem}
.footer h5,.footer h6{color:var(--accent);font-family:'Playfair Display',serif}
.footer a{color:#ddd;text-decoration:none}
.footer a:hover{color:var(--accent)}
.footer ul li{margin-bottom:.4rem}
.socials a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:50%;margin-right:.4rem;transition:all .3s}
.socials a:hover{background:var(--accent);border-color:var(--accent);color:#000}
/* Back to top */
.to-top{
  position:fixed;right:20px;bottom:20px;width:44px;height:44px;border-radius:50%;border:0;
  background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;z-index:1000;
}
.to-top.visible{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--accent);color:#000;transform:translateY(-3px)}

@media(max-width:576px){
.display-3 {
    font-size: calc(0.525rem + 3.3vw);
    font-weight: 300;
    line-height: 1.2;
}
.hero-stats .lbl {
    font-size: .5rem;
    word-wrap: break-word;
}
.hero-stats .num {
  font-size: 1rem;
}
}


/* -------------------------------PressReleases------------------------------------------------------ */

/* ---------- Hero ---------- */
.hero2 {
  position: relative;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(200,155,60,.12), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(122,31,43,.08), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #fffaf2 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero2::before {
  content: ''; position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,20,16,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,20,16,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero2 > .container { position: relative; z-index: 1; }
.hero-crumb .breadcrumb { margin-bottom: 2rem; font-size: 13px; }
.hero-crumb .breadcrumb-item a { color: var(--muted); }
.hero-crumb .breadcrumb-item.active { color: var(--ink); }
.hero-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon);
  padding: .4rem .8rem;
  background: rgba(122,31,43,.07);
  border: 1px solid rgba(122,31,43,.15);
  border-radius: 999px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 4px rgba(122,31,43,.15);
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 1.4rem 0 1.2rem;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero-meta {
  display: inline-flex; align-items: center;
  gap: 1.6rem;
  padding: 1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.meta-item { display: flex; flex-direction: column; line-height: 1.1; }
.meta-num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--ink);
}
.meta-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.meta-divider { width: 1px; height: 28px; background: var(--line); }

/* Hero card */
.hero-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(200,155,60,.22), transparent 60%);
  pointer-events: none;
}
.card-head {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5bd16b;
  box-shadow: 0 0 0 4px rgba(91,209,107,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(91,209,107,.18); }
  50% { box-shadow: 0 0 0 8px rgba(91,209,107,0); }
}
.latest-date {
  margin-top: 1.2rem; font-size: 13px; color: var(--gold-soft);
  font-weight: 500; letter-spacing: .04em;
}
.latest-title {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem; font-weight: 600;
  line-height: 1.25; margin: .6rem 0 .8rem;
  color: #fff;
}
.latest-desc { color: rgba(250,246,240,.7); font-size: .95rem; margin-bottom: 1.2rem; }
.latest-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold-soft); font-weight: 600; font-size: .95rem;
  padding-bottom: 2px; border-bottom: 1px solid rgba(240,217,153,.4);
}
.latest-link:hover { color: #fff; border-color: #fff; }

/* ---------- Archive ---------- */
.archive { padding: 4rem 0 6rem; }
.archive-head { margin-bottom: 2rem; }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem; font-weight: 600;
  letter-spacing: -.01em; margin: 0;
}
.section-sub { color: var(--muted); margin-top: .35rem; }

/* Year tabs */
.year-tabs {
  background: #fff;
  padding: .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: inline-flex; flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: 2rem;
}
.year-tabs .nav-link {
  border-radius: 999px;
  padding: .55rem 1.25rem;
  font-weight: 600; font-size: 14px;
  color: var(--ink-2);
  background: transparent;
  border: none;
  transition: all .2s ease;
  font-family: 'Fraunces', serif;
  letter-spacing: .02em;
}
.year-tabs .nav-link:hover { background: var(--cream-2); color: var(--ink); }
.year-tabs .nav-link.active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(26,20,16,.18);
}

/* Toolbar */
.release-toolbar {
  display: flex; gap: 1rem; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.search-box {
  position: relative; flex: 1; max-width: 460px;
}
.search-box i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--muted);
}
.search-box .form-control {
  padding: .7rem 1rem .7rem 2.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.search-box .form-control:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(122,31,43,.12);
}
.count-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.count-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--maroon);
}
.count-pill strong { color: var(--ink); font-weight: 700; }

/* Table */
.release-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.release-table {
  margin: 0;
  font-size: 14.5px;
}
.release-table thead {
  background: var(--cream-2);
}
.release-table thead th {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-top: none;
}
.release-table tbody tr {
  transition: background .15s ease;
  border-bottom: 1px solid var(--line);
}
.release-table tbody tr:last-child { border-bottom: none; }
.release-table tbody tr:hover { background: #fdfaf3; }
.release-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border: none;
}
.release-table .idx {
  font-family: 'Fraunces', serif;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 60px;
}
.release-table .title a {
  color: var(--ink);
  font-weight: 500;
  display: inline-block;
  line-height: 1.45;
}
.release-table .title a:hover {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.date-badge {
  display: inline-block;
  padding: .3rem .65rem;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
}
.release-table .action .btn {
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: .35rem .75rem;
  border-color: var(--line);
  color: var(--maroon);
  background: #fff;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: .35rem;
}
.release-table .action .btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

/* Empty / archive states */
.empty-state, .archive-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.empty-state i { font-size: 2.2rem; color: var(--line); display: block; margin-bottom: .6rem; }
.archive-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 4.5rem 1.5rem;
}
.archive-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: var(--cream-2);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--maroon);
  font-size: 1.6rem;
}
.archive-state h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.archive-state .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 500;
  margin-top: .6rem;
}
.archive-state .btn-primary:hover {
  background: var(--maroon);
  border-color: var(--maroon);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,246,240,.7);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,246,240,.1);
}
.site-footer h6 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
}
.site-footer ul li { margin-bottom: .55rem; }
.site-footer ul a {
  color: rgba(250,246,240,.7);
  font-size: 14px;
}
.site-footer ul a:hover { color: var(--gold-soft); }
.site-footer .muted { color: rgba(250,246,240,.55); font-size: 14px; }
.site-footer .brand-mark {
  background: rgba(250,246,240,.06);
  border-color: rgba(250,246,240,.12);
}
.site-footer .brand-mark .ism { color: var(--gold-soft); }
.site-footer .brand-mark .ring { border-color: var(--gold-soft); }
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(250,246,240,.06);
  display: grid; place-items: center;
  color: rgba(250,246,240,.8);
  transition: all .2s ease;
}
.social a:hover {
  background: var(--maroon);
  color: #fff;
  transform: translateY(-2px);
}
.footer-base {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 13px;
}
.footer-base a { color: var(--gold-soft); }

/* Back to top */
.back-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 60;
}
.back-top.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.back-top:hover { background: var(--maroon); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 2.5rem 0; }
  .hero-meta { width: 100%; justify-content: space-between; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-meta { flex-wrap: wrap; }
  .meta-divider { display: none; }
  .release-table thead { display: none; }
  .release-table tbody tr {
    display: block;
    padding: 1rem 1.25rem;
  }
  .release-table tbody td {
    display: block;
    padding: .25rem 0;
  }
  .release-table .idx { display: inline-block; margin-right: .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .release-toolbar { flex-direction: column; align-items: stretch; }
  .count-pill { align-self: flex-start; }
}
