/* ==========================================================================
   GEC MIRZAPUR — responsive layer
   Authored at the 1671px reference width and stepped down from there.
   Order is widest → narrowest so the cascade stays predictable.
   ========================================================================== */

/* the overhang of the floating panel is measured by main.js */
.section--intro{padding-top:calc(var(--panel-overhang,50px) + 82px)}

/* ======================================================================
   ≤ 1600px — gentle compression of the outer gutters
   ====================================================================== */
@media (max-width:1600px){
  :root{--edge:34px;--topbar-edge-l:48px;--brand-edge-l:62px;--brand-edge-r:44px;
        --nav-edge-l:66px;--nav-edge-r:34px}
  .topbar-contact{margin-left:44px;gap:28px}
  .brand-title-en{font-size:1.8125rem}
  .brand-title-hi{font-size:1.625rem}
  .nav-list{gap:16px}
}

/* ======================================================================
   ≤ 1440px
   ====================================================================== */
@media (max-width:1440px){
  :root{--edge:28px;--topbar-edge-l:34px;--brand-edge-l:44px;--brand-edge-r:32px;
        --nav-edge-l:44px;--nav-edge-r:28px;--hero-h:520px}

  .gov-text{font-size:0.84375rem}
  .tb-link,.lang-btn{font-size:0.8125rem}
  .gov-emblem{height:46px}
  .topbar-gov{gap:11px}
  .topbar-contact{margin-left:26px;gap:22px}
  .topbar-utils .tb-sep{margin-inline:13px}
  .fontsize-pill{margin-left:24px}
  .lang-switch{margin-left:14px}
  .lang-switch .tb-sep{margin-inline:12px}

  .brand-logo{width:92px;height:92px}
  .brand-rule{height:70px;margin-left:30px}
  .brand-titles{margin-left:30px;padding-right:16px}
  .brand-title-en{font-size:1.65625rem}
  .brand-title-hi{font-size:1.5rem}
  .brand-subtitle{font-size:0.90625rem}
  .header-emblem{height:90px;margin-left:30px}
  .brand-building{height:88px;margin-left:18px}

  .nav-list{gap:12px}
  .nav-link{font-size:0.96875rem;padding-inline:11px}
  .nav-home-icon{font-size:1.25rem;margin-right:12px}
  .nav-caret{font-size:0.875rem;margin-left:7px}

  .hero-eyebrow{font-size:1.3125rem}
  .hero-title{font-size:2.9375rem;line-height:3.1875rem}
  .hero-desc{font-size:1.3125rem;line-height:1.875rem}
  .btn-gold,.btn-ghost{height:51px;font-size:1rem}
  .hero-dots{bottom:98px}

  .ql-ico{font-size:2.5rem;height:40px}
  .ql-label{font-size:0.875rem;line-height:1.25rem}
  .quicklinks{padding:16px 26px 15px}
}

/* ======================================================================
   ≤ 1366px
   ====================================================================== */
@media (max-width:1366px){
  :root{--edge:24px;--topbar-edge-l:28px;--brand-edge-l:34px;--brand-edge-r:26px;
        --nav-edge-l:32px;--nav-edge-r:24px;--header-h:112px;--hero-h:498px}
  .brand-logo{width:84px;height:84px}
  .brand-rule{height:64px;margin-left:24px}
  .brand-titles{margin-left:24px}
  .brand-title-en{font-size:1.53125rem}
  .brand-title-hi{font-size:1.375rem}
  .brand-subtitle{font-size:0.84375rem}
  .header-emblem{height:82px;margin-left:24px}
  .brand-building{height:80px;margin-left:16px}
  .nav-link{font-size:0.9375rem;padding-inline:9px}
  .nav-list{gap:9px}
  .hero-title{font-size:2.75rem;line-height:3rem}
}

/* ======================================================================
   ≤ 1280px
   ====================================================================== */
@media (max-width:1400px){
  .topbar-contact .tb-link:last-child{display:none}       /* keep phone, drop e-mail */
}

@media (max-width:1280px){
  :root{--hero-h:472px}
  .nav-link{font-size:0.875rem;padding-inline:8px}
  .nav-list{gap:6px}
  .nav-home-icon{font-size:1.125rem;margin-right:9px}
  .nav-caret{margin-left:6px;font-size:0.75rem}
  .brand-building{height:72px}
  .header-emblem{height:76px}
  .hero-eyebrow{font-size:1.25rem}
  .hero-title{font-size:2.5625rem;line-height:2.8125rem}
  .hero-desc{font-size:1.1875rem;line-height:1.75rem}
  .ql-ico{font-size:2.25rem;height:36px}
  .ql-label{font-size:0.84375rem;line-height:1.125rem}
}

/* ======================================================================
   ≤ 1199px — switch to the drawer navigation
   ====================================================================== */
@media (max-width:1199.98px){
  :root{--nav-h:54px;--hero-h:458px}

  .nav-list{display:none}
  .nav-burger{display:flex}
  .nav-burger-label{display:inline-block;margin-left:10px}
  .mainnav-inner{padding-inline:24px}

  .topbar-contact{margin-left:22px}
  .quicklinks{bottom:-56px;padding:16px 18px 15px}
  .ql-ico{font-size:1.9375rem;height:31px;margin-bottom:5px}
  .ql-label{font-size:0.78125rem;line-height:1rem}
  .ql-item a{padding:0 3px}
  .hero-dots{bottom:58px}
}

/* ======================================================================
   ≤ 1100px — compact utility bar, branding reflow
   ====================================================================== */
@media (max-width:1100px){
  :root{--topbar-h:48px;--header-h:94px;--hero-h:440px}

  .topbar-utils{display:none}
  .util-toggle{
    display:inline-flex;align-items:center;justify-content:center;
    width:36px;height:30px;border-radius:8px;margin-left:auto;
    background:rgba(255,255,255,.12);color:#fff;font-size:1rem;
  }
  .util-toggle[aria-expanded="true"]{background:var(--gold);color:var(--primary-navy)}
  .topbar-inner{padding-inline:18px}
  .topbar-contact{margin-left:18px;gap:16px}
  .gov-text{font-size:0.78125rem}
  .gov-emblem{height:36px}

  .brand-inner{padding:0 18px}
  .brand-rule{display:none}
  .brand-logo{width:66px;height:66px}
  .brand-titles{margin-left:16px;padding-right:10px}
  .brand-title-en{font-size:1.25rem;line-height:1.2}
  .brand-title-hi{font-size:1.0625rem}
  .brand-subtitle{font-size:0.71875rem;margin-top:3px}
  .header-emblem{height:58px;margin-left:14px}
  .brand-building{display:none}

  .hero-copy{padding-bottom:40px}
  .hero-eyebrow{font-size:1.125rem;margin-bottom:6px}
  .hero-title{font-size:2.25rem;line-height:2.5rem}
  .hero-desc{font-size:1.125rem;line-height:1.625rem;margin-top:12px}
  .btn-gold,.btn-ghost{height:48px;font-size:0.96875rem;padding-inline:18px;gap:11px}
  .btn-gold i{font-size:1.25rem}
  .hero-dots{bottom:56px}

  .ql-ico{font-size:1.8125rem;height:29px;margin-bottom:4px}
  .ql-label{font-size:0.7375rem;line-height:0.9375rem}
  .quicklinks{bottom:-52px;padding:14px 14px 13px}
}

/* ======================================================================
   ≤ 1024px — tablet landscape
   ====================================================================== */
@media (max-width:1024px){
  :root{--hero-h:446px}
  .topbar-contact{gap:14px}
  .topbar-contact .tb-link span{display:none}
  .topbar-contact .tb-link:last-child{display:inline-flex}  /* icon-only, so keep it */
  .topbar-contact .tb-link i{font-size:0.9375rem}
  .ql-ico{font-size:1.6875rem;height:27px}
  .ql-label{font-size:0.6875rem;line-height:0.875rem}
  .stat-row{grid-template-columns:repeat(2,1fr)}
}

/* ======================================================================
   ≤ 991px
   ====================================================================== */
@media (max-width:991.98px){
  :root{--hero-h:500px}
  /* the copy sits over the photograph on narrow screens, so the wash is
     carried further across to keep the headline legible */
  .hero-veil{
    background-image:
      linear-gradient(0deg, rgba(var(--primary-rgb),.62) 0%, rgba(var(--primary-rgb),.24) 14%, rgba(var(--primary-rgb),0) 32%),
      linear-gradient(90deg,
        rgba(var(--primary-rgb),.95)  0%,
        rgba(var(--primary-rgb),.90) 28%,
        rgba(var(--primary-rgb),.78) 50%,
        rgba(var(--primary-rgb),.56) 72%,
        rgba(var(--primary-rgb),.34)100%);
  }
  .hero-title{font-size:2.0625rem;line-height:2.3125rem}
  .hero-copy{padding-bottom:58px}
  .ql-list{grid-template-columns:repeat(5,1fr);row-gap:14px}
  .ql-item:nth-child(6)::before{display:none}            /* first cell of 2nd row */
  .ql-ico{font-size:1.8125rem;height:29px}
  .ql-label{font-size:0.75rem;line-height:0.9375rem}
  .quicklinks{bottom:-104px;padding:15px 14px}
  .hero-dots{bottom:100px}
}

/* ======================================================================
   ≤ 767px — phones / small tablets
   ====================================================================== */
@media (max-width:767.98px){
  :root{--hero-h:510px;--header-h:auto}

  .topbar-contact{display:none}

  .brand-inner{padding:12px 16px;align-items:center}
  .brand-logo{width:52px;height:52px}
  .brand-title-en{font-size:1.03125rem}
  .brand-title-hi{font-size:0.90625rem}
  .brand-subtitle{font-size:0.65625rem;line-height:1.35}
  .header-emblem{height:46px;margin-left:10px}

  .mainnav-inner{padding-inline:16px}

  .hero-wrap{padding-inline:22px;align-items:flex-start;padding-top:46px}
  .hero-copy{max-width:100%;padding-bottom:0}
  .hero-eyebrow{font-size:1.0625rem;gap:10px;margin-bottom:4px}
  .eyebrow-dash{width:20px;height:4px}
  .hero-title{font-size:clamp(1.6875rem,8.2vw,2.25rem);line-height:1.1}
  .hero-desc{font-size:clamp(0.9375rem,4.3vw,1.1875rem);line-height:1.4;margin-top:12px}
  .hero-actions{gap:12px;margin-top:20px}
  .btn-gold,.btn-ghost{height:46px;font-size:0.9375rem;padding-inline:16px;gap:9px;flex:1 1 auto;min-width:0}
  .btn-gold i,.btn-ghost i{font-size:1.0625rem}
  .hero-dots{bottom:16px;gap:12px;margin-left:0}
  .hero-dot{width:11px;height:11px}

  /* panel flows under the hero but still laps over it */
  .quicklinks{
    top:100%;bottom:auto;margin-top:-46px;        /* hangs off the hero's bottom edge */
    width:calc(100% - 24px);
    border-radius:20px;padding:14px 10px;
  }
  .ql-list{grid-template-columns:repeat(3,1fr);row-gap:12px}
  .ql-item::before,.ql-item + .ql-item::before{display:none}
  .ql-item a{padding:10px 4px;background:rgba(255,255,255,.06)}
  .ql-ico{font-size:1.6875rem;height:27px;margin-bottom:5px}
  .ql-label{font-size:0.78125rem;line-height:0.9375rem}

  .section--intro{padding-top:46px;padding-bottom:52px}
  .stat-row{margin-top:36px;gap:14px}
  .foot-bottom{justify-content:flex-start}
}

/* ======================================================================
   ≤ 575px
   ====================================================================== */
@media (max-width:575.98px){
  :root{--hero-h:500px}
  .shell{padding-inline:16px}
  .gov-text{font-size:0.71875rem}
  .gov-emblem{height:30px}
  .brand-title-en{font-size:0.9375rem}
  .brand-title-hi{font-size:0.8125rem}
  .brand-subtitle{display:none}
  .header-emblem{height:40px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn-gold,.btn-ghost{width:100%}
  .ql-list{grid-template-columns:repeat(2,1fr)}
  .ql-ico{font-size:1.625rem;height:26px}
  .ql-label{font-size:0.78125rem}
  .stat-row{grid-template-columns:repeat(2,1fr)}
  .notice-card-head{padding:14px 16px}
  .notice-list li{padding:12px 16px}
}

/* ======================================================================
   ≤ 430px / 390px / 360px
   ====================================================================== */
@media (max-width:430px){
  :root{--hero-h:492px}
  .brand-title-en{font-size:0.875rem}
  .brand-title-hi{font-size:0.78125rem}
  .brand-logo{width:46px;height:46px}
  .header-emblem{height:36px}
  .hero-wrap{padding-inline:18px;padding-top:38px}
  .hero-title{font-size:clamp(1.5rem,7.9vw,1.875rem)}
  .quicklinks{width:calc(100% - 18px);margin-top:-40px;padding:12px 8px}
  .ql-label{font-size:0.71875rem;line-height:0.875rem}
}

@media (max-width:390px){
  .gov-text{font-size:0.65625rem}
  .brand-title-en{font-size:0.8125rem}
  .hero-eyebrow{font-size:0.9375rem}
  .btn-gold,.btn-ghost{height:44px;font-size:0.875rem}
}

@media (max-width:360px){
  :root{--hero-h:474px}
  .brand-title-hi{display:none}
  .hero-title{font-size:1.4375rem}
  .ql-ico{font-size:1.4375rem;height:23px}
  .ql-label{font-size:0.6875rem}
}

/* ======================================================================
   very short landscape viewports
   ====================================================================== */
@media (max-height:520px) and (orientation:landscape) and (max-width:991.98px){
  :root{--hero-h:420px}
  .hero-wrap{padding-top:28px}
}

/* The branding bar carries a variable number of detail lines (address,
   affiliating university), so it grows with its content instead of being
   pinned to a fixed height — the crest and badges keep their design size. */
.brand-header{height:auto;min-height:var(--header-h)}
.brand-inner{height:auto;min-height:var(--header-h);padding-block:6px}
.brand-titles{top:0}
.brand-title-hi{margin-top:6px}
.brand-subtitle.brand-detail{display:block;font-size:0.85rem;line-height:1.4;margin-top:4px}
@media (max-width:767.98px){
  .brand-inner{min-height:0;padding-block:6px}
  .brand-subtitle.brand-detail{font-size:0.6875rem;margin-top:2px}
}

/* ======================================================================
   centre block (search + quick actions)
   ====================================================================== */
/* Space in the branding bar is shared between the college name, the centre
   block and the right-hand badges. As the viewport narrows the decorative
   building illustration yields first, which buys the name enough room to stay
   on one line. */
@media (max-width:1700px){
  .brand-building{height:78px}               /* narrows before it disappears */
  .brand-quick a span{display:none}          /* icon-only pills, label via aria/title */
  .brand-quick a{padding:0 11px}
  .brand-extra{gap:9px;padding-inline:14px}
  .brand-search{width:min(260px,100%)}
}

@media (max-width:1600px){
  .brand-building{display:none}
  .brand-quick a span{display:inline}        /* room again — labels return */
  .brand-quick a{padding:0 13px}
  .brand-extra{gap:10px;padding-inline:18px}
  .brand-search{width:min(290px,100%)}
}

@media (max-width:1366px){
  .brand-extra{padding-inline:12px}
  .brand-search{width:min(250px,100%);height:36px}
  .brand-search-go{height:26px;padding:0 12px}
  .brand-quick a{height:28px;padding:0 11px;font-size:0.78125rem}
}

@media (max-width:1280px){
  .brand-quick a span{display:none}
  .brand-search{width:min(210px,100%)}
  .brand-search-go{display:none}
}

@media (max-width:1199.98px){
  .brand-extra{display:none}          /* lives in the drawer below this width */
}
.drawer-search{display:none}
@media (max-width:1199.98px){
  .drawer-search{display:flex;width:auto;margin:14px 16px 4px}
}

/* Mobile hero shortcuts flow below the photograph in a two-column grid. */
@media (max-width:767.98px){
  #hero{
    height:auto;
    padding-top:0;
    background:var(--page-bg);
  }
  #hero .hero-track{position:relative;inset:auto;height:auto}
  #hero .hero-slide{position:relative;inset:auto}
  #hero .hero-wrap{height:auto;padding-bottom:12px}
  #hero .quicklinks{
    position:relative;inset:auto;left:auto;top:auto;bottom:auto;
    width:calc(100% - 24px);margin:14px auto 0;padding:0;
    transform:none;animation:none;border:0;border-radius:0;
    background:transparent;box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  #hero .ql-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #hero .ql-item::before{display:none}
  #hero .ql-item a{
    height:100%;min-height:108px;padding:14px 10px;gap:8px;
    border:1px solid transparent;border-radius:10px;
    background:var(--primary-navy);box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  #hero .ql-ico{height:30px;font-size:1.75rem;margin:0;filter:none}
  #hero .ql-label{font-size:.875rem;line-height:1.4;text-shadow:none}
  #hero .ql-item a:hover,#hero .ql-item a:focus-visible{
    background:var(--primary-navy);border-color:var(--gold);
  }
  #hero .ql-item a:hover .ql-ico,#hero .ql-item a:focus-visible .ql-ico{filter:none;transform:none}
}
@media (max-width:430px){#hero .quicklinks{width:calc(100% - 18px)}}

/* Keep the college name on one line, with a full-width mobile title. */
.brand-title-en{white-space:nowrap}
@media (max-width:767.98px){
  .brand-inner{display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 10px;align-items:center}
  .brand-titles{display:contents}
  .brand-title-en{grid-column:2;grid-row:1;text-align:left;font-size:clamp(1rem,4.6vw,1.25rem);line-height:1.25;letter-spacing:-.2px}
  .brand-logo-link{grid-column:1;grid-row:1 / 4;justify-self:center;align-self:center}
  .brand-subtitle.brand-detail{grid-column:2;margin:0;line-height:1.4}
  .brand-subtitle.brand-detail:first-of-type{grid-row:2}
  .brand-subtitle.brand-detail:last-of-type{grid-row:3}
  .header-emblem{display:none}
}

/* ======================================================================
   print
   ====================================================================== */
@media print{
  .topbar,.mainnav,.hero-dots,.to-top,.nav-drawer,.nav-scrim,.util-sheet{display:none !important}
  .hero{height:auto}
  body{background:#fff;color:#000}
}
