:root{
  --navy:#0B2A4A;--teal:#1C7293;--gold:#D99A2B;--bg:#F4F9FC;
  --nav-bg:#0B2A4A;--text:#1F2A37;--muted:#56677A;--white:#fff;
  --border:#D6E4EF;--card-bg:#fff;--accent:#1C7293;
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px;scroll-behavior:smooth}
body{font-family:'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--text);padding-top:112px}

/* HEADER */
#site-header{position:fixed;top:0;left:0;right:0;z-index:100;box-shadow:0 2px 12px rgba(0,0,0,.22);background:linear-gradient(90deg,var(--navy) 0%,#1a4a6e 60%,var(--teal) 100%)}
#iitm-bar{padding:.4rem 1rem;display:flex;align-items:center;gap:.8rem;min-height:64px}
#iitm-bar img{height:52px;width:auto;flex-shrink:0;mix-blend-mode:multiply}
.iitm-title{flex-shrink:0;min-width:0}
.iitm-title h1{font-size:.88rem;font-weight:700;color:var(--gold);margin:0 0 .08rem;white-space:nowrap}
.iitm-title h3{font-size:.72rem;font-weight:600;color:rgba(255,255,255,.85);margin:0 0 .05rem;white-space:nowrap}
.iitm-title h3 a,.iitm-title h4 a{color:rgba(255,255,255,.75);text-decoration:none}
.iitm-title h3 a:hover,.iitm-title h4 a:hover{color:#fff}
.iitm-title h4{font-size:.68rem;font-weight:400;color:rgba(255,255,255,.6);margin:0;white-space:nowrap}
.nav-links{display:flex;gap:.1rem;align-items:center;justify-content:flex-end;flex:1;flex-wrap:nowrap}
.nav-links a{color:rgba(255,255,255,.82);font-size:clamp(.7rem,1.1vw,1.123rem);font-weight:500;padding:.32rem .5rem;border-radius:6px;text-decoration:none;position:relative;overflow:hidden;transition:color .22s;white-space:nowrap;flex-shrink:0}
.nav-links a::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,var(--gold) 0%,#e8b84b 100%);border-radius:6px;transform:scaleY(0);transform-origin:bottom;transition:transform .22s cubic-bezier(.4,0,.2,1);z-index:0}
.nav-links a span{position:relative;z-index:1}
.nav-links a:hover{color:var(--navy)}
.nav-links a:hover::before{transform:scaleY(1)}
.nav-links a.active{color:#fff;background:rgba(255,255,255,.12);border-bottom:2.5px solid var(--gold);border-radius:6px 6px 0 0}
.nav-links a.active::before{display:none}
.nav-toggle{display:none;background:none;border:1px solid rgba(255,255,255,.5);color:#fff;padding:.3rem .7rem;border-radius:4px;cursor:pointer;font-size:1.1rem;flex-shrink:0;margin-left:auto}

/* CAROUSEL */
#carousel-wrap{background:var(--bg);padding:1.2rem 0}
#carousel{position:relative;width:75%;margin:0 auto;overflow:hidden;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.18)}
.carousel-slide{display:none;position:relative}
.carousel-slide.active{display:block}
.carousel-slide img{width:100%;height:720px;object-fit:cover;display:block}
.carousel-readmore{position:absolute;bottom:1rem;right:1rem;background:var(--gold);color:var(--navy);font-weight:700;font-size:.85rem;padding:.45rem 1.1rem;border-radius:6px;text-decoration:none;transition:opacity .2s;z-index:2}
.carousel-readmore:hover{opacity:.85}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.4);color:#fff;border:none;font-size:2rem;line-height:1;padding:.1rem .55rem;cursor:pointer;z-index:2;border-radius:4px;transition:background .2s}
.carousel-btn:hover{background:rgba(0,0,0,.65)}
.carousel-btn.prev{left:.5rem}
.carousel-btn.next{right:.5rem}
.carousel-dots{position:absolute;bottom:.5rem;left:50%;transform:translateX(-50%);display:flex;gap:.4rem;z-index:2}
.dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:background .2s}
.dot.active{background:#fff}
@media(max-width:1024px){
  #carousel{width:90%}
  .carousel-slide img{height:560px}
}
@media(max-width:600px){
  #carousel{width:100%;border-radius:0}
  #carousel-wrap{padding:.6rem 0}
  .carousel-slide img{height:400px}
  .carousel-readmore{font-size:.72rem;padding:.3rem .7rem}
  .carousel-btn{font-size:1.4rem}
}

/* PAGE LOADER */
#page-loader{position:fixed;inset:0;z-index:999;background:var(--bg);display:flex;align-items:center;justify-content:center}
.loader-spinner{width:40px;height:40px;border:3px solid var(--border);border-top-color:var(--teal);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* PAGE HEADER */
.page-header{background:var(--navy);color:#fff;padding:3rem 0 2.5rem}
.page-header .container{max-width:1100px;margin:0 auto;padding:0 1.5rem}
.page-header h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700;margin-bottom:.5rem}
.page-header p{color:rgba(255,255,255,.65);font-size:1rem;max-width:700px}
.page-header .breadcrumb{font-size:.78rem;color:rgba(255,255,255,.45);margin-bottom:.8rem}
.page-header .breadcrumb a{color:var(--gold);text-decoration:none}

/* CONTAINER */
.container{max-width:1100px;margin:0 auto;padding:0 1.5rem}
.section{padding:3.5rem 0}

/* SECTION TITLE */
.section-title{font-size:1.5rem;font-weight:700;color:var(--navy);margin-bottom:.4rem}
.section-title::after{content:'';display:block;width:48px;height:3px;background:var(--gold);border-radius:2px;margin-top:.4rem}
.section-sub{color:var(--muted);font-size:.95rem;margin-bottom:2rem;margin-top:.5rem}

/* CARDS GRID */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.2rem}
.card{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:1.4rem;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 6px 20px rgba(11,42,74,.1);transform:translateY(-3px)}
.card-link{display:block;text-decoration:none;cursor:pointer}
.card-num{width:40px;height:40px;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;font-size:1rem;display:flex;align-items:center;justify-content:center;margin-bottom:.9rem}
.card h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:.4rem}
.card p{font-size:.85rem;color:var(--muted);line-height:1.6}
.card-desc-link{display:block;font-size:.85rem;color:var(--teal);line-height:1.8;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.card-desc-link:hover{border-bottom-color:var(--teal)}

/* TIMELINE */
.timeline{display:flex;flex-direction:column;gap:0}
.tl-item{display:flex;gap:1.2rem;padding:1.2rem 1.4rem;border-radius:8px;background:var(--card-bg);border:1px solid var(--border);margin-bottom:.8rem;transition:box-shadow .2s}
.tl-item:hover{box-shadow:0 4px 16px rgba(11,42,74,.08)}
.tl-year{min-width:64px;background:var(--teal);color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;padding:.4rem .5rem;text-align:center;line-height:1.2}
.tl-body h3{font-size:.98rem;font-weight:700;color:var(--navy);margin-bottom:.25rem}
.tl-body p{font-size:.83rem;color:var(--teal)}

/* TWO-COL LIST */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.list-box{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;overflow:hidden}
.list-box-header{background:var(--navy);color:#fff;padding:.7rem 1.2rem;font-weight:700;font-size:.95rem}
.list-box ul{list-style:none;padding:1rem 1.2rem}
.list-box ul li{padding:.45rem 0;border-bottom:1px solid var(--border);font-size:.9rem;color:var(--text);display:flex;align-items:flex-start;gap:.5rem}
.list-box ul li:last-child{border-bottom:none}
.list-box ul li::before{content:'›';color:var(--teal);font-weight:700;flex-shrink:0}

/* PEOPLE GRID */
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.person-card{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:1.2rem;text-align:center}
.person-avatar{width:56px;height:56px;border-radius:50%;background:var(--teal);color:#fff;font-size:1.3rem;display:flex;align-items:center;justify-content:center;margin:0 auto .7rem}
.person-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:top;display:block;margin:0 auto .7rem;border:2px solid var(--border);background:var(--teal)}
.person-card h4{font-size:.92rem;font-weight:700;color:var(--navy);margin-bottom:.2rem}
.person-card .person-role{font-size:.78rem;font-weight:600;color:var(--teal);margin-bottom:.1rem}
.person-card p{font-size:.78rem;color:var(--muted)}
.person-card .tag{display:inline-block;background:var(--bg);border:1px solid var(--border);color:var(--teal);font-size:.72rem;padding:.15rem .5rem;border-radius:20px;margin-top:.4rem}

/* CLIENTS BANNER */
.clients-banner{background:var(--navy);border-radius:10px;padding:1.2rem 1.5rem;margin-top:2rem}
.clients-banner .label{color:var(--gold);font-weight:700;font-size:.85rem;margin-bottom:.5rem}
.clients-banner p{color:rgba(255,255,255,.85);font-size:.9rem;line-height:1.8}

.pub-profile-links{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:1.2rem}
.pub-profile-links a{display:inline-flex;align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:.4rem .8rem;transition:background .2s}
.pub-profile-links a:hover{background:rgba(255,255,255,.22)}
.pub-profile-links a img{height:28px;width:auto;display:block}

/* PUBLICATIONS */
.pub-item{display:block;padding:1rem 1.2rem;border-left:3px solid var(--teal);background:var(--card-bg);border-radius:0 8px 8px 0;margin-bottom:.8rem;text-decoration:none;transition:box-shadow .2s,border-color .2s}
.pub-item:not(.pub-no-link){cursor:pointer}
.pub-item:not(.pub-no-link):hover{box-shadow:0 4px 16px rgba(11,42,74,.1);border-left-color:var(--gold)}
.pub-item h4{font-size:.92rem;font-weight:700;color:var(--navy);margin-bottom:.25rem}
.pub-item p{font-size:.8rem;color:var(--muted)}
.pub-item .pub-meta{font-size:.78rem;color:var(--teal);margin-top:.2rem}

/* ACHIEVEMENTS */
.ach-item{display:flex;gap:1rem;align-items:flex-start;padding:1rem 1.2rem;background:var(--card-bg);border:1px solid var(--border);border-radius:8px;margin-bottom:.8rem}
.ach-icon{font-size:1.5rem;flex-shrink:0}
.ach-item h4{font-size:.95rem;font-weight:700;color:var(--navy);margin-bottom:.2rem}
.ach-item p{font-size:.83rem;color:var(--muted)}

/* JOIN US */
.join-box{background:var(--navy);color:#fff;border-radius:12px;padding:2rem;margin-bottom:1.2rem}
.join-box h3{font-size:1.1rem;font-weight:700;color:var(--gold);margin-bottom:.6rem}
.join-box p{font-size:.9rem;color:rgba(255,255,255,.8);line-height:1.7}
.join-box .req{margin-top:.8rem;font-size:.83rem;color:rgba(255,255,255,.6)}
.btn-apply{display:inline-block;margin-top:1rem;background:var(--gold);color:var(--navy);font-weight:700;padding:.6rem 1.4rem;border-radius:6px;text-decoration:none;font-size:.88rem;transition:opacity .2s}
.btn-apply:hover{opacity:.85}

/* HERO (index only) */
.hero{background:var(--navy);color:#fff;padding:4rem 0 3rem;position:relative;overflow:hidden}
.hero::after{content:'';position:absolute;right:-80px;top:-60px;width:400px;height:400px;border-radius:50%;background:rgba(28,114,147,.18);pointer-events:none}
.hero-inner{display:flex;gap:2.5rem;align-items:center;position:relative;z-index:1}
.hero-photo{width:160px;height:160px;border-radius:50%;object-fit:cover;border:4px solid var(--teal);flex-shrink:0}
.hero-photo-placeholder{width:160px;height:160px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;font-size:3rem;flex-shrink:0;border:4px solid rgba(255,255,255,.2)}
.hero h1{font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:700;margin-bottom:.3rem}
.hero .role{color:var(--gold);font-size:1rem;font-weight:600;margin-bottom:.8rem}
.hero .bio{font-size:.9rem;color:rgba(255,255,255,.75);line-height:1.7;max-width:580px;margin-bottom:1.2rem}
.hero-btns{display:flex;gap:.8rem;flex-wrap:wrap}
.btn-primary{background:var(--gold);color:var(--navy);font-weight:700;padding:.6rem 1.4rem;border-radius:6px;text-decoration:none;font-size:.88rem;transition:opacity .2s}
.btn-primary:hover{opacity:.85}
.btn-outline{border:2px solid rgba(255,255,255,.4);color:#fff;padding:.55rem 1.3rem;border-radius:6px;text-decoration:none;font-size:.88rem;transition:border-color .2s}
.btn-outline:hover{border-color:#fff}

/* RESEARCH HIGHLIGHTS (index) */
.highlights{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.8rem;margin-top:1.5rem}
.hl-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:1rem;color:#fff;text-decoration:none;transition:background .2s}
.hl-card:hover{background:rgba(28,114,147,.3)}
.hl-card .hl-icon{font-size:1.4rem;margin-bottom:.4rem}
.hl-card h4{font-size:.88rem;font-weight:700;margin-bottom:.2rem}
.hl-card p{font-size:.75rem;color:rgba(255,255,255,.6)}

/* NAV GRID (index) */
.nav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.8rem;margin-top:2rem}
.nav-grid a{background:var(--card-bg);border:1px solid var(--border);border-radius:8px;padding:1rem;text-align:center;text-decoration:none;color:var(--navy);transition:box-shadow .2s,transform .2s}
.nav-grid a:hover{box-shadow:0 4px 16px rgba(11,42,74,.1);transform:translateY(-2px)}
.nav-grid a .ng-icon{font-size:1.6rem;margin-bottom:.4rem}
.nav-grid a span{display:block;font-size:.82rem;font-weight:600}

/* LOCATION BOX */
.location-box{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:1.6rem 1.8rem;margin-top:1.2rem}
.location-box p{font-size:.95rem;color:var(--text);line-height:1.9}
.map-link{display:inline-flex;align-items:center;gap:.4rem;margin-top:1rem;background:var(--teal);color:#fff;font-weight:600;font-size:.88rem;padding:.5rem 1.2rem;border-radius:6px;text-decoration:none;transition:opacity .2s}
.map-link:hover{opacity:.85}

/* PROFILE MODAL */
.modal-overlay{display:none;position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.55);align-items:center;justify-content:center;padding:1rem}
.modal-overlay.open{display:flex}
.modal-box{background:#fff;border-radius:12px;width:100%;max-width:980px;max-height:90vh;overflow-y:auto;box-shadow:0 16px 56px rgba(0,0,0,.32);display:flex;flex-direction:column}
/* header */
.pm-header{background:var(--navy);border-radius:12px 12px 0 0;padding:1.2rem 1.4rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:0;z-index:2}
.pm-header-left{display:flex;align-items:center;gap:.9rem}
.pm-avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid rgba(255,255,255,.35);flex-shrink:0}
.pm-avatar-fallback{background:var(--teal)}
.pm-name{font-size:1.05rem;font-weight:700;color:#fff;line-height:1.2}
.pm-role{font-size:.8rem;color:rgba(255,255,255,.65);margin-top:.15rem}
.pm-close{background:rgba(255,255,255,.12);border:none;color:#fff;width:34px;height:34px;border-radius:50%;font-size:1.25rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s}
.pm-close:hover{background:rgba(255,255,255,.28)}
/* body two-col */
.pm-body{display:grid;grid-template-columns:1fr 478px;gap:0;min-height:500px}
.pm-left{padding:1.6rem 1.4rem;border-right:1px solid var(--border)}
.pm-right{padding:1.6rem 1.4rem;display:flex;flex-direction:column}
.pm-pill{background:rgba(28,114,147,.12);color:var(--teal);border:1px solid rgba(28,114,147,.25);border-radius:20px;font-size:.78rem;font-weight:600;padding:.4rem .9rem;line-height:1.5;margin-bottom:1.2rem}
.pm-pill-label{font-weight:700;text-decoration:underline}
.pm-section-label{font-size:.7rem;font-weight:700;letter-spacing:.1em;color:var(--muted);text-transform:uppercase;margin-bottom:.6rem}
.pm-summary{font-size:.88rem;color:var(--text);line-height:1.75}
/* figure */
.pm-figure-block{display:flex;flex-direction:column;align-items:center;gap:.7rem;flex:1}
.pm-figure-img{width:100%;border-radius:8px;border:1px solid var(--border);object-fit:contain;display:block}
.pm-figure-placeholder{width:100%;min-height:200px;border-radius:8px;border:2px dashed var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.82rem}
.pm-figure-caption{font-size:.75rem;color:var(--muted);text-align:center;line-height:1.5}
/* profile hint on card */
.profile-hint{display:block;font-size:.72rem;color:var(--teal);font-weight:600;margin-top:.5rem;transition:color .2s}
.person-card[data-profile]:hover .profile-hint{color:var(--gold)}
/* responsive */
@media(max-width:680px){
  .pm-body{grid-template-columns:1fr}
  .pm-left{border-right:none;border-bottom:1px solid var(--border);padding:1.2rem 1.1rem}
  .pm-right{padding:1.2rem 1.1rem}
  .pm-header{padding:1rem 1rem}
  .pm-avatar{width:52px;height:52px}
  .pm-name{font-size:.92rem}
}

/* FOOTER */
footer{background:var(--navy);color:rgba(255,255,255,.6);padding:1.5rem 0;font-size:.82rem;margin-top:3rem}
footer .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}
footer a{color:var(--gold);text-decoration:none}

/* REVEAL */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .5s,transform .5s}
.reveal.visible{opacity:1;transform:none}

/* RESPONSIVE */

/* Mobile & Tablet: hamburger side drawer */
@media(max-width:1024px){
  body{padding-top:72px}
  .nav-toggle{display:block}
  .nav-links{
    display:none;
    position:fixed;
    top:0;right:0;bottom:0;
    width:72vw;max-width:300px;
    flex-direction:column;
    flex:none;
    background:linear-gradient(160deg,var(--navy) 0%,#1a4a6e 100%);
    padding:1rem;
    gap:.15rem;
    z-index:999;
    box-shadow:-4px 0 24px rgba(0,0,0,.4);
    overflow-y:auto;
    justify-content:flex-start;
    align-items:stretch;
  }
  .nav-links.open{display:flex}
  .nav-links a{font-size:1rem;white-space:normal;padding:.6rem .9rem;color:rgba(255,255,255,.88);border-radius:6px;flex-shrink:unset}
  .nav-links a::before{display:none}
  .nav-links a:hover{background:rgba(255,255,255,.12);color:#fff}
  .nav-links a.active{border-bottom:none;border-left:3px solid var(--gold);border-radius:0 6px 6px 0;background:rgba(255,255,255,.08)}
}

/* Tablet only (601–1024px) */
@media(min-width:601px) and (max-width:1024px){
  #iitm-bar{padding:.4rem 1.2rem}
  #iitm-bar img{height:44px}
  .iitm-title h1{font-size:.82rem}
  .iitm-title h4{display:none}
  .hero-inner{gap:1.5rem}
  .hero-photo{width:120px;height:120px}
  .cards{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
  .highlights{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .nav-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
}

/* Mobile only (≤600px) */
@media(max-width:600px){
  body{padding-top:60px}
  #iitm-bar{padding:.3rem .8rem;gap:.5rem;min-height:60px}
  #iitm-bar img{height:34px}
  .iitm-title h1{font-size:.72rem}
  .iitm-title h3,.iitm-title h4{display:none}
  .container{padding:0 1rem}
  .section{padding:2rem 0}
  .two-col{grid-template-columns:1fr}
  .hero{padding:2rem 0}
  .hero-inner{flex-direction:column;text-align:center;gap:1rem}
  .hero-btns{justify-content:center}
  .hero-photo,.hero-photo-placeholder{width:100px;height:100px}
  .hero h1{font-size:1.5rem}
  .cards{grid-template-columns:1fr}
  .highlights{grid-template-columns:1fr 1fr}
  .nav-grid{grid-template-columns:repeat(3,1fr)}
  .people-grid{grid-template-columns:repeat(2,1fr)}
  .tl-item{flex-direction:column;gap:.5rem}
  .tl-year{min-width:unset;width:fit-content;padding:.2rem .6rem}
  .ach-item{flex-direction:column;gap:.5rem}
  .join-box{padding:1.2rem}
  footer .container{flex-direction:column;text-align:center}
  .page-header{padding:1.5rem 0 1.2rem}
}

/* Desktop (≥1025px) */
@media(min-width:1025px){
  html{font-size:16px}
  body{padding-top:72px}
}
