:root{
    --navy:#0b2a4a; --navy-dark:#081c33; --gold:#d4af37; --gold-light:#f3d98b;
    --red:#c0392b; --green:#1e7a46; --white:#ffffff; --bg:#f7f9fc; --ink:#13243a;
    --muted:#5b6b80; --card:#ffffff; --border:#e5eaf1; --shadow:0 10px 30px rgba(11,42,74,.08);
    color-scheme: light; --footer-ink:#dbe4f0;
  }
  :root[data-theme="dark"]{
    --bg:#0c1726; --ink:#eef3fa; --muted:#9db0c6; --card:#101e32; --border:#1c2d44;
    --shadow:0 10px 30px rgba(0,0,0,.4); color-scheme: dark;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; scroll-padding-top: calc(150px + env(safe-area-inset-top,0px));}
  body{
    font-family:'Hind Siliguri','Poppins',sans-serif; background:var(--bg); color:var(--ink);
    padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.brand{font-family:'Poppins','Hind Siliguri',sans-serif;}
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  .container{max-width:1200px; margin:0 auto; padding:0 20px;}
  .btn{display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:50px; font-weight:600; font-size:15px; transition:transform .2s, box-shadow .2s; cursor:pointer; border:none;}
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:linear-gradient(135deg,var(--gold),#b8872e); color:var(--navy-dark); box-shadow:0 8px 20px rgba(212,175,55,.35);}
  .btn-outline{background:rgba(255,255,255,.08); color:#fff; border:1.5px solid rgba(255,255,255,.55); backdrop-filter:blur(6px);}
  .btn-dark{background:var(--navy); color:#fff;}

  /* marquee */
  .marquee-bar{background:var(--navy-dark); color:#ffd989; overflow:hidden; white-space:nowrap; border-bottom:1px solid rgba(255,255,255,.08);}
  .marquee-track{display:inline-block; padding-left:100%; animation:scrollLeft 22s linear infinite; font-size:12.5px; font-weight:600; padding-top:6px; padding-bottom:6px;}
  @keyframes scrollLeft{0%{transform:translateX(0);}100%{transform:translateX(-100%);}}

  /* top bar */
  .topbar{background:var(--navy-dark); color:#cfe0f5; font-size:13px;}
  body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--navy-dark);}
  .topbar .container{display:flex; justify-content:space-between; align-items:center; padding:7px 20px; flex-wrap:wrap; gap:6px;}
  .topbar a{opacity:.92}

  /* nav */
  header.nav{position:sticky; top:env(safe-area-inset-top,0px); z-index:50; background:var(--card); box-shadow:0 2px 16px rgba(0,0,0,.06); border-bottom:1px solid var(--border);}
  .nav-inner{display:flex; align-items:center; justify-content:space-between; padding:10px 20px; gap:16px;}
  .brand{display:flex; align-items:center; gap:12px;}
  .brand img{width:54px; height:54px; object-fit:contain;}
  .brand .name-en{font-weight:700; font-size:16px; color:var(--navy); line-height:1.2;}
  :root[data-theme="dark"] .brand .name-en{color:#fff;}
  .brand .name-bn{font-size:13px; color:var(--gold); font-weight:600;}
  nav.links{display:flex; gap:26px; font-weight:600; font-size:14.5px;}
  nav.links a:hover{color:var(--gold);}
  .nav-cta{display:flex; align-items:center; gap:12px;}
  .lang-toggle, .theme-toggle{border-radius:50px; border:1px solid var(--border); background:var(--bg); color:var(--ink); font-size:13px; font-weight:700; cursor:pointer; padding:8px 14px; display:flex; align-items:center; gap:6px;}
  .theme-toggle{border-radius:50%; width:40px; height:40px; justify-content:center; padding:0; font-size:17px;}
  .burger{display:none; font-size:24px; background:none; border:none; cursor:pointer; color:var(--ink);}
  @media (max-width:880px){
    nav.links{display:none;}
    .burger{display:block;}
  }
  #mobileMenu{display:none; flex-direction:column; padding:10px 20px 18px; gap:14px; border-top:1px solid var(--border); font-weight:600;}
  #mobileMenu.open{display:flex;}

  /* trust strip */
  .trust-strip{background:linear-gradient(90deg,#0e3863,#123a66); color:#eaf2ff; font-size:13px; font-weight:600; text-align:center; padding:12px 16px; line-height:1.7;}
  .trust-strip b{color:var(--gold-light);}

  /* hero */
  .hero{position:relative; background:radial-gradient(circle at 20% 20%, #123a66, var(--navy) 55%, var(--navy-dark)); color:#fff; overflow:hidden; padding:60px 0 90px;}
  /* hero slideshow */
  .hero-slide{position:absolute; inset:0; background:#0b2a4a var(--bg-desk) center right/cover no-repeat; opacity:0; transition:opacity 1.2s ease-in-out; z-index:0;}
  .hero-slide.active{opacity:1;}
  /* text legibility never depends on the photo: solid navy veil behind the copy */
  .hero-slide:not(.design)::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,31,56,.94) 0%, rgba(8,31,56,.82) 35%, rgba(8,31,56,.25) 65%, rgba(8,31,56,0) 80%);}
  .hero-grid h1, .hero-grid p.sub{text-shadow:0 2px 14px rgba(0,0,0,.35);}
  @media (max-width: 900px){ .hero-slide:not(.design)::after{background:linear-gradient(180deg, rgba(8,31,56,.95) 0%, rgba(8,31,56,.8) 45%, rgba(8,31,56,.2) 75%, rgba(8,31,56,0) 90%);} }
  .hero-slide.design{background:radial-gradient(circle at 80% 25%, rgba(212,175,55,.28), transparent 42%), radial-gradient(circle at 10% 90%, rgba(192,57,43,.14), transparent 45%), linear-gradient(135deg, #123a66 0%, #0b2a4a 60%, #081f38 100%);}
  .hero-slide.design::before{content:""; position:absolute; width:130%; height:130%; left:-15%; top:-40%; border:2px solid rgba(212,175,55,.35); border-radius:50%;}
  .hero-slide.design::after{content:""; position:absolute; width:90%; height:90%; right:-20%; bottom:-45%; border:1px solid rgba(212,175,55,.2); border-radius:50%;}
  @media (max-width: 900px){ .hero-slide{background-image:var(--bg-mob, var(--bg-desk)); background-position:center top;} }
  .hero-slider > .container{position:relative; z-index:1;}
  .hero-dots{position:absolute; left:0; right:0; bottom:22px; display:flex; justify-content:center; gap:10px; z-index:3;}
  .hero-dots button{width:10px; height:10px; border-radius:50%; border:0; padding:0; background:rgba(255,255,255,.45); cursor:pointer;}
  .hero-dots button.active{background:var(--gold); transform:scale(1.25);}
  @media (prefers-reduced-motion: reduce){.hero-slide{transition:none;}}
  .hero::after{content:"";position:absolute; inset:0; background:
    radial-gradient(circle at 85% 15%, rgba(212,175,55,.25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(192,57,43,.18), transparent 45%);}
  .hero-grid{position:relative; display:grid; grid-template-columns:1.2fr 1fr; gap:40px; align-items:center;}
  @media (max-width:900px){.hero-grid{grid-template-columns:1fr;}}
  .badge{display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25); padding:7px 16px; border-radius:50px; font-size:13px; font-weight:600; backdrop-filter:blur(6px); margin-bottom:18px;}
  .hero h1{font-size:clamp(26px,4.5vw,44px); font-weight:800; line-height:1.3; margin-bottom:14px;}
  .hero h1 span{color:var(--gold);}
  .hero p.sub{color:#cfe0f5; font-size:16.5px; max-width:540px; margin-bottom:28px; line-height:1.8;}
  .hero .cta-row{display:flex; gap:14px; flex-wrap:wrap;}
  .glass-card{background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(14px); border-radius:22px; padding:30px; box-shadow:0 20px 50px rgba(0,0,0,.25);}
  .glass-card h3{font-size:18px; margin-bottom:16px; color:var(--gold-light);}
  .glass-card ul{list-style:none; display:grid; gap:12px;}
  .glass-card li{display:flex; gap:10px; align-items:center; font-size:14.5px;}
  .dot{width:8px; height:8px; border-radius:50%; background:var(--gold); flex-shrink:0;}

  section{padding:70px 0;}
  .eyebrow{color:var(--red); font-weight:700; font-size:13px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:10px;}
  .sec-title{font-size:clamp(24px,3vw,34px); font-weight:800; color:var(--navy); margin-bottom:14px;}
  :root[data-theme="dark"] .sec-title{color:#fff;}
  .sec-sub{color:var(--muted); max-width:640px; line-height:1.7; margin-bottom:40px;}

  .about-grid{display:grid; grid-template-columns:1fr 1.15fr; gap:50px; align-items:center;}
  @media (max-width:860px){.about-grid{grid-template-columns:1fr;}}
  .about-visual{background:linear-gradient(145deg,var(--navy),var(--navy-dark)); border-radius:24px; padding:50px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);}
  .about-visual img{width:min(220px,60%); filter:drop-shadow(0 10px 25px rgba(0,0,0,.4));}
  .about-list{list-style:none; display:grid; gap:14px; margin-top:22px;}
  .about-list li{display:flex; gap:10px; color:var(--ink);}
  .about-list li::before{content:"✓"; color:var(--green); font-weight:800;}
  .accred-box{margin-top:24px; background:rgba(212,175,55,.1); border:1px solid rgba(212,175,55,.35); border-radius:14px; padding:16px 18px; font-size:13.5px; color:var(--ink); line-height:1.7;}
  .accred-box b{color:var(--navy);}
  :root[data-theme="dark"] .accred-box b{color:#fff;}

  .grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
  @media (max-width:900px){.grid4{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:520px){.grid4{grid-template-columns:1fr;}}
  .feature{background:var(--card); border:1px solid var(--border); border-radius:18px; padding:28px 22px; box-shadow:var(--shadow); transition:transform .25s;}
  .feature:hover{transform:translateY(-6px);}
  .feature .ic{font-size:28px; margin-bottom:14px;}
  .feature h4{font-size:16.5px; margin-bottom:8px; color:var(--navy);}
  :root[data-theme="dark"] .feature h4{color:#fff;}
  .feature p{font-size:14px; color:var(--muted); line-height:1.6;}

  .bg-alt{background:var(--bg); }
  .programs-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:24px;}
  @media (max-width:860px){.programs-grid{grid-template-columns:1fr;}}
  .prog-card{background:var(--card); border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow:var(--shadow);}
  .prog-top{background:linear-gradient(135deg,var(--navy),#17446f); color:#fff; padding:26px 22px;}
  .prog-top .tag{font-size:12px; background:rgba(255,255,255,.18); display:inline-block; padding:4px 12px; border-radius:20px; margin-bottom:10px; font-weight:700;}
  .prog-top h4{font-size:21px;}
  .prog-body{padding:22px;}
  .prog-body p{color:var(--muted); font-size:14.5px; line-height:1.7; margin-bottom:14px;}
  .prog-meta{display:flex; gap:18px; flex-wrap:wrap; margin-bottom:16px;}
  .prog-meta div{font-size:13px; color:var(--muted);}
  .prog-meta b{display:block; color:var(--navy); font-size:15px;}
  :root[data-theme="dark"] .prog-meta b{color:#fff;}
  .prog-body a{color:var(--red); font-weight:700; font-size:14px;}
  .prog-side{display:grid; gap:18px;}
  .mini-card{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow:var(--shadow);}
  .mini-card h5{color:var(--navy); font-size:14.5px; margin-bottom:8px;}
  :root[data-theme="dark"] .mini-card h5{color:#fff;}
  .mini-card p{font-size:13px; color:var(--muted); line-height:1.6;}

  .cta-band{background:linear-gradient(120deg,var(--navy),var(--navy-dark)); color:#fff; border-radius:26px; padding:46px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;}
  .cta-band h3{font-size:24px; margin-bottom:8px;}
  .cta-band p{color:#cfe0f5;}

  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
  @media (max-width:860px){.contact-grid{grid-template-columns:1fr;}}
  .contact-card{background:var(--card); border:1px solid var(--border); border-radius:18px; padding:30px; box-shadow:var(--shadow);}
  .contact-item{display:flex; gap:14px; margin-bottom:22px; align-items:flex-start;}
  .contact-item .ic{width:42px; height:42px; border-radius:12px; background:rgba(212,175,55,.15); color:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px;}
  .contact-item strong{display:block; color:var(--navy); font-size:14.5px;}
  :root[data-theme="dark"] .contact-item strong{color:#fff;}
  .contact-item span{color:var(--muted); font-size:14px;}
  .map-wrap{border-radius:18px; overflow:hidden; border:1px solid var(--border); min-height:300px; box-shadow:var(--shadow);}
  .map-wrap iframe{width:100%; height:100%; min-height:300px; border:0;}

  footer{background:var(--navy-dark); color:var(--footer-ink); padding-top:60px;}
  .foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1.1fr; gap:36px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1);}
  @media (max-width:860px){.foot-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:520px){.foot-grid{grid-template-columns:1fr;}}
  footer h5{color:#fff; font-size:15px; margin-bottom:16px;}
  footer ul{list-style:none; display:grid; gap:10px;}
  footer a{color:var(--footer-ink); font-size:14px; opacity:.9;}
  footer a:hover{color:var(--gold);}
  .foot-brand{display:flex; gap:12px; align-items:center; margin-bottom:14px;}
  .foot-brand img{width:46px; height:46px;}
  .foot-brand div b{color:#fff; font-size:15px;}
  footer p.desc{font-size:13.5px; line-height:1.7; opacity:.85; max-width:320px;}

  .dev-row{background:#07131f; padding:20px 0;}
  .dev-inner{display:flex; justify-content:center; align-items:center; gap:14px; flex-wrap:wrap; font-size:13px;}
  .dev-inner img{width:min(260px,70vw); height:auto;}
  .dev-inner a.devlink{color:var(--gold-light); font-weight:700;}
  .copyright{text-align:center; padding:12px 0; font-size:12.5px; opacity:.75; background:#050d16;}
  .theme-toggle{background:var(--bg); color:var(--ink);}

  .feature{border-top:4px solid transparent;}
  .feature.c-blue{border-top-color:#2d9cdb;} .feature.c-blue .ic{color:#2d9cdb;}
  .feature.c-gold{border-top-color:var(--gold);} .feature.c-gold .ic{color:var(--gold);}
  .feature.c-red{border-top-color:var(--red);} .feature.c-red .ic{color:var(--red);}
  .feature.c-green{border-top-color:var(--green);} .feature.c-green .ic{color:var(--green);}

  .news-scroll-wrap{overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);}
  .news-track{display:flex; gap:20px; width:max-content; animation:newsScroll 30s linear infinite;}
  .news-scroll-wrap:hover .news-track{animation-play-state:paused;}
  @keyframes newsScroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}
  .news-card{width:260px; flex-shrink:0; border-radius:16px; padding:20px; color:#fff; box-shadow:var(--shadow);}
  .news-card.c1{background:linear-gradient(135deg,#2d9cdb,#1565a8);}
  .news-card.c2{background:linear-gradient(135deg,var(--gold),#b8872e);}
  .news-card.c3{background:linear-gradient(135deg,var(--red),#8e2a1f);}
  .news-card.c4{background:linear-gradient(135deg,var(--green),#135330);}
  .news-card .date{font-size:12px; opacity:.85; margin-bottom:8px; font-weight:700;}
  .news-card h5{font-size:15.5px; margin-bottom:8px; line-height:1.4;}
  .news-card p{font-size:13px; opacity:.9; line-height:1.6;}

  .testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  @media (max-width:860px){.testi-grid{grid-template-columns:1fr;}}
  .testi-card{position:relative; background:var(--card); border:1px solid var(--border); border-left:5px solid var(--gold); border-radius:16px; padding:24px; box-shadow:var(--shadow);}
  .testi-card.t2{border-left-color:#2d9cdb;}
  .testi-card.t3{border-left-color:var(--red);}
  .testi-tag{position:absolute; top:14px; right:14px; font-size:10.5px; background:rgba(212,175,55,.15); color:var(--gold); padding:3px 10px; border-radius:20px; font-weight:700;}
  .testi-avatar{width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,var(--navy),#17446f); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:14px;}
  .testi-card p.quote{font-size:14px; color:var(--ink); line-height:1.7; margin-bottom:14px; font-style:italic;}
  .testi-card .who{font-size:13.5px; color:var(--muted); font-weight:700;}

  .gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
  @media (max-width:860px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}
  .gallery-tile{aspect-ratio:1/1; border-radius:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#fff; font-size:13px; font-weight:600; text-align:center; padding:10px; transition:transform .25s;}
  .gallery-tile:hover{transform:scale(1.04);}
  .gallery-tile .emoji{font-size:30px;}
  .gallery-tile.g1{background:linear-gradient(145deg,#2d9cdb,#17446f);}
  .gallery-tile.g2{background:linear-gradient(145deg,var(--gold),#b8872e);}
  .gallery-tile.g3{background:linear-gradient(145deg,var(--red),#8e2a1f);}
  .gallery-tile.g4{background:linear-gradient(145deg,var(--green),#135330);}
  .gallery-tile.g5{background:linear-gradient(145deg,#6a4fb6,#3d2e73);}
  .gallery-tile.g6{background:linear-gradient(145deg,#0b2a4a,#081c33);}
  .gallery-tile.g7{background:linear-gradient(145deg,#2d9cdb,var(--navy));}
  .gallery-tile.g8{background:linear-gradient(145deg,var(--gold),var(--red));}

  .faq-list{display:grid; gap:14px; max-width:820px;}
  .faq-item{background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:var(--shadow);}
  .faq-q{width:100%; text-align:left; background:none; border:none; padding:18px 22px; font-size:15px; font-weight:700; color:var(--navy); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:10px; font-family:inherit;}
  :root[data-theme="dark"] .faq-q{color:#fff;}
  .faq-q .arrow{transition:transform .25s; color:var(--gold); flex-shrink:0;}
  .faq-item.open .faq-q .arrow{transform:rotate(180deg);}
  .faq-a{max-height:0; overflow:hidden; transition:max-height .3s ease; padding:0 22px;}
  .faq-item.open .faq-a{max-height:260px; padding-bottom:20px;}
  .faq-a p{color:var(--muted); font-size:14px; line-height:1.7;}
  /* ===== v2 additions ===== */
  :root{ --building: url("../img/building.jpg"); }
  .glass-card{position:relative;}
  .contact-card{position:relative;}
  .float3d{animation:float3d 5.5s ease-in-out infinite; filter:drop-shadow(0 16px 18px rgba(0,0,0,.28));}
  .float3d.d2{animation-delay:-1.8s;} .float3d.d3{animation-delay:-3.4s;}
  @keyframes float3d{0%,100%{transform:translateY(0) rotate(-1.5deg);} 50%{transform:translateY(-12px) rotate(1.5deg);}}
  .hero-sticker{position:absolute; top:-58px; right:-14px; width:132px; z-index:2;}
  .cta-sticker{width:118px; height:auto; flex-shrink:0; margin:-30px 0;}
  .contact-sticker{position:absolute; top:-64px; right:14px; width:120px; z-index:2;}
  .feature .ic3d{width:88px; height:88px; object-fit:contain; margin-bottom:10px;}
  .campus-photo{width:100%; aspect-ratio:4/3; border-radius:18px; background:var(--building) center/cover no-repeat; border:4px solid rgba(255,255,255,.12); box-shadow:0 20px 40px rgba(0,0,0,.3);}
  .about-visual{flex-direction:column; padding:18px 18px 16px; gap:14px;}
  .campus-cap{color:#cfe0f5; font-size:13px; text-align:center;}
  .gallery-tile.campus-tile{position:relative; overflow:hidden; background:var(--building) center/cover no-repeat; justify-content:flex-end; padding-bottom:16px;}
  .gallery-tile.campus-tile::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,28,51,0) 35%,rgba(8,28,51,.9));}
  .gallery-tile.campus-tile span{position:relative; z-index:1;}
  .inquiry-grid{display:grid; grid-template-columns:1fr 1.1fr; gap:44px; align-items:start;}
  @media (max-width:860px){.inquiry-grid{grid-template-columns:1fr;}}
  .inquiry-sticker{width:170px; height:auto; margin-top:24px;}
  .inquiry-form{display:block;}
  .fld{display:grid; gap:6px; margin-bottom:14px; font-size:14px; font-weight:700; color:var(--navy);}
  :root[data-theme="dark"] .fld{color:#fff;}
  .fld input,.fld select,.fld textarea{font:inherit; font-weight:400; font-size:15px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--bg); color:var(--ink); width:100%;}
  .fld input:focus-visible,.fld select:focus-visible,.fld textarea:focus-visible{outline:2px solid var(--gold); outline-offset:1px;}
  .fld textarea{resize:vertical;}
  .form-err{color:var(--red); font-size:13.5px; font-weight:700; margin-bottom:12px;}
  .fine{font-size:12.5px; color:var(--muted); margin-top:12px; line-height:1.6;}
  .inquiry-form .btn{margin-top:4px;}
  nav.links a.active{color:var(--gold);}
  #toTop{position:fixed; right:18px; bottom:24px; width:46px; height:46px; border-radius:50%; border:none; background:var(--gold); color:var(--navy-dark); font-size:20px; font-weight:800; cursor:pointer; box-shadow:0 10px 24px rgba(212,175,55,.4); opacity:0; transform:translateY(12px); pointer-events:none; transition:opacity .3s, transform .3s; z-index:54;}
  #toTop.show{opacity:1; transform:none; pointer-events:auto;}
  .mobile-bar{display:none; position:fixed; left:0; right:0; bottom:0; z-index:55; background:var(--card); border-top:1px solid var(--border); box-shadow:0 -6px 20px rgba(0,0,0,.08); padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px)); justify-content:space-around; gap:8px;}
  .mobile-bar a{display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12.5px; font-weight:700; color:var(--navy); flex:1; padding:6px; border-radius:12px;}
  :root[data-theme="dark"] .mobile-bar a{color:#fff;}
  .mobile-bar a span:first-child{font-size:20px;}
  .mobile-bar a:first-child{background:linear-gradient(135deg,var(--gold),#b8872e); color:var(--navy-dark);}
  @media (max-width:880px){ .mobile-bar{display:flex;} body{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px));} #toTop{bottom:88px;} }
  @media (max-width:520px){ .hero-sticker{width:104px; right:0;} .contact-sticker{width:96px;} }
  @media (prefers-reduced-motion: reduce){ .float3d, .marquee-track, .news-track{animation:none !important;} html{scroll-behavior:auto;} }


  /* ===== v3: icons, logo, designer credit ===== */
  img.ico{display:inline-block; width:18px; height:18px; object-fit:contain; vertical-align:-4px; margin-right:6px; flex-shrink:0;}
  .topbar img.ico{width:16px; height:16px; margin-right:4px;}
  .topbar img.ico, footer img.ico, .trust-strip img.ico, .badge img.ico, .gallery-tile img.ico, .testi-avatar img.ico{filter:brightness(0) invert(1);}
  .gallery-tile img.ico{width:36px; height:36px; margin:0;}
  .testi-avatar img.ico{width:24px; height:24px; margin:0;}
  .mini-card h5 img.ico{width:22px; height:22px; vertical-align:-6px;}
  .contact-item .ic img.ico{width:24px; height:24px; margin:0; filter:none;}
  .trust-strip img.ico{width:16px; height:16px; margin-right:4px;}
  .badge img.ico{width:18px; height:18px; margin-right:4px;}
  .feature img.ic3d{object-fit:contain;}
  :root[data-theme="dark"] .feature img.ic3d{background:#fff; border-radius:18px; padding:12px;}
  :root[data-theme="dark"] .contact-item .ic img.ico{filter:brightness(0) invert(1);}
  .dev-plate{display:inline-block; background:#fff; border-radius:16px; padding:10px 18px; line-height:0; box-shadow:0 6px 18px rgba(0,0,0,.25);}
  .dev-plate img{width:min(300px,70vw); height:auto; max-width:none;}
  .campus-tile img.ico{display:none;}
  .mobile-bar img.ico{width:24px; height:24px; margin:0;}
  .mobile-bar a:not(:first-child) img.ico{filter:none;}
  :root[data-theme="dark"] .mobile-bar a:not(:first-child) img.ico{filter:brightness(0) invert(1);}
  .inquiry-sticker, .hero-sticker{object-fit:contain;}
  .foot-brand img, .brand img{object-fit:contain;}

  /* ===== developer credit (footer) ===== */
  .dev-credit{text-align:center; font-size:13.5px; color:#cfe0f5; padding:0 16px 10px;}
  .dev-credit a{color:var(--gold-light); font-weight:700; text-decoration:none;}
  .dev-credit a:hover{text-decoration:underline; color:#fff;}

/* ---------- Inner pages & placeholders (v5) ---------- */
.page-real{padding-block:8px 0}
/* page header band: navy-gold abstract, no images (reusable on any inner page) */
.page-hero{position:relative; overflow:hidden; background:radial-gradient(circle at 85% 20%, rgba(212,175,55,.22), transparent 42%), linear-gradient(135deg,#123a66 0%,#0b2a4a 60%,#081f38 100%); color:#fff; padding:56px 0 64px;}
.page-hero::before{content:""; position:absolute; width:120%; height:160%; left:-10%; top:-70%; border:2px solid rgba(212,175,55,.3); border-radius:50%; pointer-events:none;}
.page-hero::after{content:""; position:absolute; width:90%; height:120%; right:-25%; bottom:-80%; border:1px solid rgba(212,175,55,.18); border-radius:50%; pointer-events:none;}
.page-hero .container{position:relative; z-index:1; max-width:880px;}
.page-hero .crumb{font-size:13px; color:#cfe0f5; margin:0 0 12px;}
.page-hero .crumb a{color:var(--gold-light, #f3d77a); text-decoration:none;}
.page-hero h1{font-size:clamp(1.9rem,4.2vw,2.6rem); line-height:1.2; margin:0 0 10px; color:#fff; text-wrap:balance;}
.page-hero h1 span{color:var(--gold, #d4af37);}
.page-hero p.lead{color:#cfe0f5; font-size:16px; line-height:1.75; max-width:620px; margin:0;}
@media (prefers-reduced-motion: reduce){ .page-hero::before, .page-hero::after{transition:none;} }
.ph-main{padding-block:48px 72px}
.ph-main .container{max-width:880px}
.ph-badge{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.02em;padding:6px 12px;border-radius:999px;background:var(--soft,#fff4e6);color:var(--accent,#b45309);margin-bottom:14px}
.ph-title{font-size:clamp(1.9rem,4.2vw,2.6rem);line-height:1.2;margin:0 0 18px;text-wrap:balance}
.ph-card{background:var(--card,#fff);border:1px dashed var(--line,#d6d3d1);border-radius:18px;padding:28px 24px;display:grid;gap:14px;justify-items:start}
.ph-card img{width:56px;height:56px;opacity:.9}
.ph-card h2{font-size:1.15rem;margin:0}
.ph-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;width:100%}
.ph-list li{padding:12px 14px;border-radius:12px;background:var(--soft,#f5f5f4);border-left:4px solid var(--accent,#b45309)}
.sitemap-list li{border-left-color:var(--line,#d6d3d1)}
.sitemap-list a{text-decoration:none;color:inherit;font-weight:600}
.ph-note{margin:0;font-size:.92rem;color:var(--muted,#57534e)}
.ph-cta{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0}
.ph-back{margin:28px 0 0}
.ph-back a{color:var(--accent,#b45309);font-weight:600}
@media (prefers-color-scheme:dark){.ph-card{background:var(--card,#1c1917)}}
:root[data-theme="dark"] .ph-card{background:var(--card,#1c1917)}

/* ---------- Phone header fit (v5) ---------- */
@media (max-width: 520px){
  .nav-cta .btn-dark{display:none}
  .brand{min-width:0;flex:1 1 auto;gap:8px}
  .brand img{width:44px;height:44px}
  .brand .name-en{font-size:13px}
  .brand .name-bn{font-size:12px}
  .lang-toggle, .theme-toggle{padding:6px 10px;font-size:12px}
}

/* ---------- Netlify form feedback (v5) ---------- */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-ok{color:#166534;font-weight:600;margin:8px 0 0}

  /* ===== poster / advertisement slider (above footer) ===== */
  .ad-strip{background:var(--bg); padding:46px 0 54px; border-top:1px solid var(--border);}
  .ad-strip .eyebrow{text-align:center;}
  .ad-slider{position:relative; max-width:1000px; margin:0 auto;}
  .ad-stage{
    position:relative; overflow:hidden; border-radius:20px;
    height:clamp(300px, 34vw, 460px);
    background:linear-gradient(135deg,#f0f5fb 0%,#e3ecf7 100%);
    border:1px solid var(--border); box-shadow:var(--shadow);
    touch-action:pan-y;
  }
  :root[data-theme="dark"] .ad-stage{background:linear-gradient(135deg,#102540 0%,#0b1a2e 100%);}
  .ad-slide{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden; transition:opacity .7s ease-in-out, visibility .7s;
  }
  .ad-slide.active{opacity:1; visibility:visible;}
  /* the figure holds the poster as a background but paints nothing (size 0);
     ::before inherits that image and renders it blurred to fill the side gutters */
  .ad-slide{background-size:0 0;}
  .ad-slide::before{
    content:""; position:absolute; inset:-8%; z-index:0;
    background-image:inherit; background-size:cover; background-position:center; background-repeat:no-repeat;
    filter:blur(30px) saturate(1.15); opacity:.5;
  }
  .ad-slide img{position:relative; z-index:1; width:100%; height:100%; object-fit:contain; object-position:center;}
  .ad-nav{
    position:absolute; top:50%; transform:translateY(-50%); z-index:3;
    width:40px; height:40px; border-radius:50%; cursor:pointer;
    border:1px solid rgba(11,42,74,.14); background:rgba(255,255,255,.88); color:var(--navy);
    font-size:24px; line-height:1; display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 14px rgba(11,42,74,.16); transition:background .2s, transform .2s;
  }
  .ad-nav:hover{background:var(--gold); transform:translateY(-50%) scale(1.06);}
  .ad-nav.prev{left:10px;}
  .ad-nav.next{right:10px;}
  .ad-dots{display:flex; justify-content:center; gap:10px; margin-top:16px;}
  .ad-dots button{width:10px; height:10px; border-radius:50%; border:0; padding:0; cursor:pointer; background:rgba(11,42,74,.25); transition:background .2s, transform .2s;}
  :root[data-theme="dark"] .ad-dots button{background:rgba(255,255,255,.3);}
  .ad-dots button.active,
  :root[data-theme="dark"] .ad-dots button.active{background:var(--gold); transform:scale(1.3);}
  @media (max-width:640px){
    .ad-strip{padding:34px 0 40px;}
    .ad-stage{height:clamp(300px, 86vw, 420px); border-radius:16px;}
    .ad-nav{width:34px; height:34px; font-size:20px;}
    .ad-nav.prev{left:6px;} .ad-nav.next{right:6px;}
  }
  @media (prefers-reduced-motion: reduce){ .ad-slide{transition:none;} }

  /* student photo in the admission inquiry block */
  .inquiry-photo{
    margin-top:22px; border-radius:18px; overflow:hidden;
    border:1px solid var(--border); box-shadow:var(--shadow);
    max-width:330px; background:linear-gradient(135deg,#eef4fb,#dfe9f6);
  }
  :root[data-theme="dark"] .inquiry-photo{background:linear-gradient(135deg,#132742,#0f1f36);}
  .inquiry-photo img{width:100%; height:auto; display:block;}
  @media (max-width:860px){ .inquiry-photo{max-width:260px; margin-left:auto; margin-right:auto;} }


  /* ===== hero cover: keep the copy clear of the photo subject =====
     The banner artwork carries its figure on the RIGHT (x 51%-97%) and flat navy
     on the LEFT, so every word is held inside that left zone.                    */
  @media (min-width:901px){
    .hero{display:flex; align-items:center; padding:52px 0 76px;}
    .hero-slider > .container{width:100%;}
    /* anchored high so the cap is never cut and the folded hands stay in frame */
    .hero-slide{background-position:right 20%;}
    /* veil is solid navy under the copy and clears completely before the figure */
    .hero-slide:not(.design)::after{
      background:linear-gradient(90deg, rgba(8,31,56,.93) 0%, rgba(8,31,56,.88) 26%, rgba(8,31,56,.5) 42%, rgba(8,31,56,0) 54%);
    }
    .hero-grid{gap:0;}
    .hero-facts{margin-top:26px; padding:22px 26px;}
    .hero-facts li{align-items:flex-start;}
    .hero-facts li .dot{margin-top:7px;}
  }
  @media (min-width:1150px){
    .hero{min-height:620px;}
    .hero-grid{grid-template-columns:minmax(0,620px);}
    .hero-facts ul{grid-template-columns:1fr 1fr; gap:11px 22px;}
  }
  @media (min-width:901px) and (max-width:1149px){
    .hero{min-height:560px;}
    .hero-grid{grid-template-columns:minmax(0,48%);}
    .hero h1{font-size:clamp(24px,3.4vw,34px);}
    .hero p.sub{font-size:15px; line-height:1.7;}
    .hero-facts{padding:18px 20px;}
    .hero-facts li{font-size:13.5px;}
  }

  /* small tablets keep the side-by-side banner, just tighter */
  @media (min-width:701px) and (max-width:900px){
    .hero{display:flex; align-items:center; min-height:520px; padding:48px 0 72px;}
    .hero-slider > .container{width:100%;}
    /* focal point nudged right so the artwork's own navy zone stays under the copy */
    .hero-slide{background-image:var(--bg-desk); background-size:cover; background-position:78% 20%;}
    .hero-slide:not(.design)::after{
      background:linear-gradient(90deg, rgba(8,31,56,.95) 0%, rgba(8,31,56,.92) 30%, rgba(8,31,56,.7) 46%, rgba(8,31,56,0) 60%);
    }
    .hero-grid{grid-template-columns:minmax(0,48%); gap:0;}
    .hero h1{font-size:clamp(22px,3.2vw,28px);}
    .hero p.sub{font-size:14px; line-height:1.65;}
    .hero-facts{margin-top:20px; padding:16px 18px;}
    .hero-facts li{font-size:12.5px;}
  }

  /* phones: the portrait artwork has only its top third free, so the copy sits
     ABOVE the figure instead of on it — the face is never covered */
  @media (max-width:700px){
    .hero{padding:40px 0 calc(100vw * 1.25);}
    .hero-slide{background-size:100% auto; background-position:center bottom;}
    .hero-slide:not(.design)::after{
      background:linear-gradient(180deg, rgba(8,31,56,.96) 0%, rgba(8,31,56,.93) 44%, rgba(8,31,56,.42) 58%, rgba(8,31,56,0) 72%);
    }
    .hero-facts{margin-top:24px;}
    .hero-dots{bottom:14px;}
  }

  /* ===== Managing Director's message ===== */
  .director{
    --director-primary:#0B2148;
    --director-accent:#C9A43B;
    --director-bg:#FFFFFF;
    --director-soft-bg:#F4F7FB;
    --director-text:#38465A;
    --director-muted:#65748B;
    --director-line:#e3eaf3;
    /* kept on the site's loaded families so no extra webfont is pulled in */
    --font-bangla:'Hind Siliguri','Noto Sans Bengali',sans-serif;
    --font-english:'Poppins','Inter',sans-serif;
    background:var(--director-soft-bg);
  }
  :root[data-theme="dark"] .director{
    --director-bg:#101e32; --director-soft-bg:#0c1726;
    --director-text:#c8d6e8; --director-muted:#9db0c6; --director-line:#1c2d44;
  }
  .director .sec-title{color:var(--director-primary); font-family:var(--font-english);}
  :root[data-theme="dark"] .director .sec-title{color:#fff;}

  .director-card{
    position:relative; overflow:hidden;
    display:grid; grid-template-columns:1fr 300px; gap:40px; align-items:start;
    background:var(--director-bg); border:1px solid var(--director-line);
    border-radius:24px; padding:36px 36px 32px;
    box-shadow:0 18px 44px rgba(11,33,72,.10);
  }
  .director-card::before{
    content:""; position:absolute; inset:0 0 auto; height:4px;
    background:linear-gradient(90deg,var(--director-primary),var(--director-accent) 55%,var(--director-primary));
  }

  /* portrait sits to the right on wide screens, first on phones */
  .director-photo{order:2; margin:0; align-self:center;}
  .director-body{order:1; position:relative;}

  .director-photo img{width:100%; height:auto; border-radius:18px; box-shadow:0 14px 34px rgba(11,33,72,.22);}
  .director-photo figcaption{margin-top:15px; text-align:center;}
  .director-photo strong{display:block; color:var(--director-primary); font-size:17px; font-weight:700;}
  :root[data-theme="dark"] .director-photo strong{color:#fff;}
  .director-photo figcaption span{display:block; margin-top:4px; color:var(--director-accent); font-size:13px; font-weight:700; letter-spacing:.6px; text-transform:uppercase;}

  .director-mark{
    position:absolute; left:-4px; top:-34px; z-index:0;
    font-family:Georgia,'Times New Roman',serif; font-size:92px; line-height:1;
    color:var(--director-accent); opacity:.26; pointer-events:none; user-select:none;
  }
  .director-body > p, .director-more p{
    position:relative; z-index:1;
    color:var(--director-text); font-size:15.6px; line-height:1.95; margin-bottom:15px;
  }
  .director-body > p:first-of-type{color:var(--director-primary); font-size:16.8px; font-weight:600;}
  :root[data-theme="dark"] .director-body > p:first-of-type{color:#eaf2fb;}

  /* read-more region */
  .director-more{display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s ease;}
  .director-more > div{overflow:hidden;}
  .director-card.open .director-more{grid-template-rows:1fr;}

  .director-toggle{
    display:inline-flex; align-items:center; gap:8px; margin:4px 0 2px;
    font-family:inherit; font-weight:700; font-size:14px; cursor:pointer;
    padding:9px 20px; border-radius:50px;
    background:transparent; border:1.5px solid var(--director-accent); color:var(--director-primary);
    transition:background .2s, color .2s, box-shadow .2s;
  }
  :root[data-theme="dark"] .director-toggle{color:#eaf2fb;}
  .director-toggle:hover{background:var(--director-accent); color:#fff; box-shadow:0 8px 18px rgba(201,164,59,.3);}
  .director-toggle .t-less{display:none;}
  .director-toggle[aria-expanded="true"] .t-more{display:none;}
  .director-toggle[aria-expanded="true"] .t-less{display:inline;}
  .director-toggle .chev{transition:transform .3s;}
  .director-toggle[aria-expanded="true"] .chev{transform:rotate(180deg);}

  .director-sign{margin-top:24px; padding-top:20px; border-top:1px solid var(--director-line);}
  .director-sign .sign-pre{display:block; color:var(--director-muted); font-size:14px; margin-bottom:7px;}
  .director-sign strong{display:block; color:var(--director-primary); font-size:17px; font-weight:700;}
  :root[data-theme="dark"] .director-sign strong{color:#fff;}
  .director-sign .sign-role{display:block; margin-top:4px; color:var(--director-muted); font-size:13.5px; line-height:1.6;}

  @media (max-width:980px){ .director-card{grid-template-columns:1fr 250px; gap:30px; padding:30px 26px 26px;} }
  @media (max-width:860px){
    .director-card{grid-template-columns:1fr; gap:26px; padding:26px 20px 24px;}
    .director-photo{order:1; max-width:250px; margin:0 auto;}
    .director-body{order:2;}
    .director-mark{top:-28px; font-size:70px;}
    .director-body > p, .director-more p{font-size:15px; line-height:1.9;}
    .director-toggle{width:100%; justify-content:center;}
  }
  @media (prefers-reduced-motion: reduce){ .director-more{transition:none;} .director-toggle .chev{transition:none;} }

  /* hero slide 2 — the group artwork places its figures further left than slide 1,
     so the image is laid in at its own width and pinned right to keep the copy clear */
  @media (min-width:901px){
    .hero-slide.slide-2{background-size:auto 100%; background-position:right center;}
  }
  /* on small tablets the artwork is wider than the viewport, so anchoring it left
     is what keeps the group clear of the copy */
  @media (min-width:701px) and (max-width:900px){
    .hero-slide.slide-2{background-position:0% 20%;}
  }

  /* ===== breadcrumb bar — a visible way back on every sub-page ===== */
  .crumb-bar{background:var(--card); border-bottom:1px solid var(--border); font-size:13.5px;}
  .crumb-bar .container{display:flex; flex-wrap:wrap; align-items:center; gap:4px 9px; padding-top:11px; padding-bottom:11px;}
  .crumb-bar a{color:var(--muted); font-weight:600; padding:2px 0;}
  .crumb-bar a:hover{color:var(--gold);}
  .crumb-bar .sep{color:var(--muted); opacity:.45; font-weight:700;}
  .crumb-bar .here{color:var(--ink); font-weight:700;}
  @media (max-width:560px){ .crumb-bar{font-size:12.5px;} .crumb-bar .container{gap:3px 7px;} }

  /* the header logo is a link now, so it needs to feel like one */
  a.brand{cursor:pointer;}
  a.brand:hover .name-en{color:var(--gold);}
  :root[data-theme="dark"] a.brand:hover .name-en{color:var(--gold);}

  /* ===== institute name above the hero headline ===== */
  .hero-name{
    font-family:'Poppins','Hind Siliguri',sans-serif;
    font-size:clamp(14px,1.35vw,17px); font-weight:700; letter-spacing:2.4px;
    color:var(--gold-light); margin-bottom:10px; line-height:1.45;
  }
  :root[lang="en"] .hero-name{text-transform:uppercase;}
  @media (max-width:560px){ .hero-name{letter-spacing:1.6px; font-size:13px;} }

  /* ===== three-up feature grid (Why Choose Us) ===== */
  .grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  @media (max-width:980px){.grid3{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:560px){.grid3{grid-template-columns:1fr;}}

  /* ===== mission & vision ===== */
  .mv-grid{display:grid; grid-template-columns:1fr 1fr; gap:26px;}
  @media (max-width:860px){.mv-grid{grid-template-columns:1fr;}}
  .mv-card{
    position:relative; overflow:hidden;
    background:var(--card); border:1px solid var(--border); border-radius:22px;
    padding:32px 30px; box-shadow:var(--shadow);
  }
  .mv-card::before{
    content:""; position:absolute; inset:0 auto 0 0; width:4px;
    background:linear-gradient(180deg,var(--navy),var(--gold));
  }
  .mv-card .mv-ic{width:52px; height:52px; object-fit:contain; margin-bottom:14px;}
  .mv-card h3{font-size:20px; color:var(--navy); margin-bottom:12px;}
  :root[data-theme="dark"] .mv-card h3{color:#fff;}
  :root[data-theme="dark"] .mv-card .mv-ic{background:#fff; border-radius:14px; padding:8px;}
  .mv-card p{color:var(--muted); font-size:15px; line-height:1.85; margin-bottom:12px;}
  .mv-card p:last-child{margin-bottom:0;}

  /* About section: several paragraphs instead of one block */
  #about .sec-sub{margin-bottom:16px;}
  #about .sec-sub:last-of-type{margin-bottom:28px;}

  /* ===== expanded navigation: grouped dropdowns + utility pills ===== */
  nav.links{gap:18px; align-items:center;}
  .nav-item{position:relative;}
  .nav-top{display:inline-flex; align-items:center; gap:5px; padding:8px 0; white-space:nowrap;}
  .nav-top:hover{color:var(--gold);}
  .nav-item .caret{transition:transform .2s; opacity:.7;}
  .nav-item:hover .caret, .nav-item:focus-within .caret{transform:rotate(180deg);}

  .sub{
    position:absolute; left:-14px; top:100%; min-width:230px; z-index:60;
    background:var(--card); border:1px solid var(--border); border-radius:14px;
    box-shadow:0 18px 40px rgba(11,42,74,.16); padding:8px;
    display:grid; gap:2px;
    opacity:0; visibility:hidden; transform:translateY(8px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-item:hover .sub, .nav-item:focus-within .sub{opacity:1; visibility:visible; transform:translateY(0);}
  .sub a{
    display:block; padding:9px 12px; border-radius:9px;
    font-size:14px; font-weight:600; color:var(--ink); line-height:1.45;
  }
  .sub a:hover, .sub a:focus-visible{background:var(--bg); color:var(--gold);}

  .nav-pill{
    display:inline-flex; align-items:center; gap:7px; white-space:nowrap;
    padding:7px 14px; border-radius:50px; font-size:13.5px; font-weight:700;
    border:1px solid var(--border); background:var(--bg); color:var(--ink);
    transition:background .2s, color .2s, border-color .2s;
  }
  .nav-pill .ico{width:15px; height:15px;}
  .nav-pill:hover{background:var(--navy); border-color:var(--navy); color:#fff;}
  :root[data-theme="dark"] .nav-pill:hover{background:var(--gold); border-color:var(--gold); color:var(--navy-dark);}

  /* the menu is wider now, so it folds into the burger earlier */
  @media (max-width:1180px){ nav.links{display:none;} .burger{display:block;} }
  @media (min-width:1181px){ nav.links{display:flex;} .burger{display:none;} }

  /* mobile menu: grouped, scrollable */
  #mobileMenu{max-height:min(70vh,560px); overflow-y:auto; gap:4px;}
  #mobileMenu .mm-head{
    display:block; margin:14px 0 4px; font-size:12px; font-weight:800;
    letter-spacing:1.2px; text-transform:uppercase; color:var(--muted);
  }
  #mobileMenu .mm-group a{display:block; padding:9px 0 9px 14px; font-size:14.5px; border-left:2px solid var(--border);}
  #mobileMenu .mm-group a:hover{border-left-color:var(--gold); color:var(--gold);}
  #mobileMenu .mm-solo{display:block; padding:11px 0; font-size:15px; border-bottom:1px solid var(--border);}
  #mobileMenu .mm-pills{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
  /* keep the brand and the main CTA on one line now that the menu is wider */
  nav.links{gap:15px;}
  @media (min-width:1181px){ .brand .name-en, .brand .name-bn{white-space:nowrap;} }
  .nav-cta .btn{white-space:nowrap;}
  nav.links .nav-top{font-size:14px;}
  nav.links{gap:13px;}
  nav.links .nav-top{font-size:13.5px;}
  nav.links .nav-pill{padding:7px 13px; font-size:13px;}
  @media (max-width:1180px){ nav.links{display:none;} .burger{display:block;} }
  /* stop the brand and the menu from overlapping: neither may shrink below its text */
  .nav-inner{gap:16px;}
  /* only on desktop may the brand refuse to shrink — on phones it must give way */
  @media (min-width:1181px){
    .brand{flex:0 0 auto;}
    .nav-cta{flex:0 0 auto;}
    nav.links{flex:1 1 auto; justify-content:flex-end; min-width:0;}
  }
  @media (min-width:1181px){ .brand > div{flex:0 0 auto;} }
  /* with eight menu entries the header needs a slightly smaller brand on every desktop width */
  @media (min-width:1181px){
    .brand img{width:46px; height:46px;}
    .brand .name-en{font-size:14.5px;}
    .brand .name-bn{font-size:12px;}
    nav.links{gap:11px;}
    nav.links .nav-top{font-size:13px;}
  }
  @media (min-width:1181px) and (max-width:1300px){
    nav.links{gap:9px;}
    nav.links .nav-pill{padding:6px 11px;}
  }

  /* the burger menu must never push the page sideways */
  #mobileMenu{width:100%; box-sizing:border-box; overflow-x:hidden;}
  #mobileMenu a{overflow-wrap:anywhere;}

  /* ===== footer: social row and tidier columns ===== */
  .foot-grid{grid-template-columns:1.35fr 1fr 1.1fr 1.25fr; gap:34px;}
  @media (max-width:980px){.foot-grid{grid-template-columns:1fr 1fr; gap:30px 26px;}}
  @media (max-width:560px){.foot-grid{grid-template-columns:1fr; gap:26px;}}
  .foot-col-brand .desc{margin-bottom:18px;}
  a.foot-brand{text-decoration:none;}
  a.foot-brand:hover b{color:var(--gold-light);}

  .foot-social{display:flex; gap:10px; flex-wrap:wrap;}
  .foot-social .soc{
    width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
    border-radius:11px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
    transition:background .2s, transform .2s, border-color .2s;
  }
  .foot-social .soc img{width:22px; height:22px; object-fit:contain; display:block;}
  .foot-social a.soc:hover{background:rgba(255,255,255,.16); border-color:var(--gold); transform:translateY(-2px);}
  /* no URL yet — visible but deliberately not a link */
  .foot-social .is-soon{opacity:.45; cursor:default;}

  .foot-contact{display:grid; gap:12px;}
  .foot-contact li{display:flex; gap:9px; align-items:flex-start; font-size:14px; line-height:1.6; color:var(--footer-ink);}
  .foot-contact li .ico{width:16px; height:16px; flex-shrink:0; margin-top:3px;}
  .foot-contact a{font-size:14px; word-break:break-word;}
  /* developer row: one compact line instead of a tall mostly-empty band */
  .dev-row{padding:16px 0;}
  .dev-row .dev-inner{display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap;}
  .dev-plate{padding:7px 14px; border-radius:12px;}
  .dev-plate img{width:min(210px,52vw);}
  .dev-meta{display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center;}
  .dev-row .dev-credit{padding:0; text-align:left; font-size:13px;}
  .dev-row .devlink{display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--gold-light); font-weight:700;}
  .dev-row .devlink .ico{width:14px; height:14px;}
  @media (max-width:560px){ .dev-row .dev-inner{gap:12px;} .dev-row .dev-credit{text-align:center;} }

  /* ===== vertical rhythm: 140px between sections is right on a desktop,
     far too much on a phone where it reads as a dead screen ===== */
  @media (max-width:980px){ section{padding:54px 0;} }
  @media (max-width:560px){ section{padding:40px 0;} .sec-sub{margin-bottom:26px;} }
  @media (max-width:560px){
    .sec-title{font-size:23px; line-height:1.3;}
    .sec-sub{font-size:15px; line-height:1.75;}
    .eyebrow{font-size:12px; letter-spacing:1.2px; margin-bottom:8px;}
  }
  /* cards in a row keep equal height and align their content consistently */
  .grid3, .grid4, .mv-grid{align-items:stretch;}
  .grid3 > *, .grid4 > *, .mv-grid > *{display:flex; flex-direction:column;}
  .feature p{margin-top:auto;}
  @media (min-width:981px){ section{padding:58px 0;} }
