/* SRGI public home — palette and seal motif taken from the group emblem (maroon ring, marigold band, laurel wine). */
@font-face{font-family:"Lora";src:url("fonts/lora-latin-var.woff") format("woff");font-weight:400 700;font-style:normal;font-display:swap}

.h2{
  --seal:#9E1F2C; --wine:#5E1B27; --gold:#F4B400; --gold-deep:#C98F00; --sun:#E9860C;
  --leaf:#2F8F3A; --globe:#1E4FA3; --steel:#3F4A5C; --care:#B3261E;
  --ink:#201A1F; --soft:#5B5158; --mist:#F6F2F3; --line:#E8DDE0;
  --display:"Lora","Noto Serif Devanagari","Tiro Devanagari Hindi","Nirmala UI",Georgia,serif;
  --text:"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","Nirmala UI",Mangal,Arial,sans-serif;
  font-family:var(--text);color:var(--ink);font-size:17px;line-height:1.6;background:#fff;
}
.h2 *{box-sizing:border-box}
.h2 h1,.h2 h2,.h2 h3{font-family:var(--display);font-weight:600;letter-spacing:-.005em;margin:0}
.h2 a{color:var(--seal)}
.h2 :focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}

/* ---------- buttons ---------- */
.h2-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;line-height:1.2;transition:background-color .15s,color .15s,border-color .15s}
.h2-btn-gold{background:var(--gold);color:var(--wine)!important}
.h2-btn-gold:hover{background:#ffc928}
.h2-btn-line{border:2px solid rgba(255,255,255,.7);color:#fff!important}
.h2-btn-line:hover{background:rgba(255,255,255,.12);border-color:#fff}
.h2-btn-seal{background:var(--seal);color:#fff!important}
.h2-btn-seal:hover{background:var(--wine)}

/* ---------- hero ---------- */
.h2-hero{position:relative;overflow:hidden;color:#fff;background:var(--wine);isolation:isolate}
.h2-hero-photo{position:absolute;inset:0;z-index:-1;background:
  linear-gradient(100deg,rgba(78,20,31,.97) 0%,rgba(94,27,39,.9) 40%,rgba(94,27,39,.45) 72%,rgba(94,27,39,.2) 100%),
  url("srgs-building-hero.jpg") center/cover no-repeat;transform-origin:70% 50%;animation:h2-settle 1.6s cubic-bezier(.2,.7,.2,1) both}
.h2-hero-inner{max-width:1180px;margin:0 auto;padding:56px 20px 44px}
.h2-hero-logo{display:block;width:120px;height:auto;background:#fff;border-radius:22px;padding:8px;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.h2-hero h1{font-size:clamp(2.4rem,5.4vw,4.4rem);line-height:1.04;margin-top:22px;max-width:14ch;text-wrap:balance}
.h2-ribbon{position:relative;display:inline-block;margin:22px 0 0 14px;font-family:var(--display);font-weight:600;font-size:clamp(1.05rem,2vw,1.35rem);color:var(--wine)}
.h2-ribbon span{position:relative;z-index:1;display:block;background:var(--gold);padding:7px 22px}
.h2-ribbon::before,.h2-ribbon::after{content:"";position:absolute;top:9px;bottom:-9px;width:26px;background:var(--gold-deep);z-index:0}
.h2-ribbon::before{left:-14px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,9px 50%)}
.h2-ribbon::after{right:-14px;clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%)}
.h2-lede{max-width:46ch;font-size:clamp(1.05rem,1.6vw,1.22rem);margin:22px 0 0;color:#fbeef0}
.h2-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.h2-seals{display:flex;flex-wrap:wrap;gap:14px 18px;margin-top:40px}
.h2-seal{margin:0;width:132px;height:132px;transform:rotate(var(--tilt));filter:drop-shadow(0 6px 12px rgba(0,0,0,.28));animation:h2-stamp .55s cubic-bezier(.3,1.6,.5,1) both}
.h2-seal:nth-child(1){animation-delay:.55s}.h2-seal:nth-child(2){animation-delay:.69s}.h2-seal:nth-child(3){animation-delay:.83s}
.h2-seal:nth-child(4){animation-delay:.97s}.h2-seal:nth-child(5){animation-delay:1.11s}.h2-seal:nth-child(6){animation-delay:1.25s}
.h2-seal svg{width:100%;height:100%;display:block}
.h2-seal .s-paper{fill:#fffdfa}
.h2-seal .s-ring{fill:none;stroke:var(--seal);stroke-width:6}
.h2-seal .s-inner{fill:none;stroke:var(--seal);stroke-width:1.6}
.h2-seal .s-ringtext{fill:var(--seal);font:700 15px var(--display);letter-spacing:.4px}
.h2-seal .s-center{fill:var(--seal);font:700 34px var(--display)}
.h2-seal .s-code{fill:var(--ink);font:700 14px var(--text)}
.h2-seal .s-star{fill:var(--gold-deep);font-size:16px}
.h2-seal-note{max-width:62ch;margin:16px 0 0;font-size:14.5px;color:#f1d9dd}
@keyframes h2-stamp{0%{opacity:0;transform:scale(1.8) rotate(calc(var(--tilt) - 18deg))}55%{opacity:1;transform:scale(.92) rotate(var(--tilt))}100%{opacity:1;transform:scale(1) rotate(var(--tilt))}}
@keyframes h2-settle{from{transform:scale(1.07)}to{transform:scale(1)}}

/* ---------- quick search ---------- */
.h2-search{max-width:1180px;margin:0 auto;padding:26px 20px;display:flex;gap:14px 22px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.h2-search label{font-family:var(--display);font-size:1.3rem;font-weight:600}
.h2-search div{flex:1;min-width:260px;display:flex;gap:10px}
.h2-search input{flex:1;min-width:0;height:50px;border:2px solid var(--line);border-radius:999px;padding:0 20px;font:inherit;background:#fff}
.h2-search input:focus{border-color:var(--seal);outline:none}
.h2-search button{height:50px;padding:0 24px;border:0;border-radius:999px;background:var(--seal);color:#fff;font:700 16px var(--text);cursor:pointer}

/* ---------- shared section ---------- */
.h2-section{max-width:1180px;margin:0 auto;padding:68px 20px}
.h2-head{max-width:64ch;margin-bottom:28px}
.h2-head h2{font-size:clamp(1.9rem,3.4vw,2.7rem);line-height:1.1}
.h2-head p{margin:10px 0 0;color:var(--soft)}
.h2-muted{color:var(--soft)}

/* ---------- course finder ---------- */
.h2-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-bottom:18px}
.h2-chips{display:flex;flex-wrap:wrap;gap:8px}
.h2-chips button{min-height:42px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font:600 15px var(--text);cursor:pointer}
.h2-chips button:hover{border-color:var(--seal)}
.h2-chips button.on{background:var(--seal);border-color:var(--seal);color:#fff}
.h2-find{height:44px;min-width:240px;flex:0 1 320px;border:1.5px solid var(--line);border-radius:999px;padding:0 18px;font:inherit}
.h2-table{border-top:2px solid var(--ink)}
.h2-tr{display:grid;grid-template-columns:minmax(220px,2.1fr) .8fr .7fr minmax(220px,2.2fr) auto;gap:6px 22px;align-items:start;padding:18px 4px 18px 16px;border-bottom:1px solid var(--line);position:relative}
.h2-tr::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:4px;background:var(--seal)}
.h2-tr[data-cat=pharmacy]::before{background:var(--leaf)}.h2-tr[data-cat=education]::before{background:var(--globe)}
.h2-tr[data-cat=degree]::before{background:var(--sun)}.h2-tr[data-cat=iti]::before{background:var(--steel)}
.h2-th{font-size:14px;font-weight:700;color:var(--soft);padding-top:12px;padding-bottom:12px}
.h2-th::before{display:none}
.h2-cname b{display:block;font-family:var(--display);font-size:1.3rem;font-weight:700;line-height:1.2}
.h2-cname a{font-size:15px;text-decoration:none}
.h2-cname a:hover{text-decoration:underline}
.h2-cname details{margin-top:6px;font-size:14.5px}
.h2-cname summary{cursor:pointer;color:var(--seal);font-weight:600}
.h2-cname details p{margin:6px 0 0;color:var(--soft)}
.h2-fee{font-weight:600}
.h2-enq{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--seal);font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.h2-enq:hover{background:var(--seal);color:#fff}
.h2-tr.is-hidden{display:none}
.h2-tr.is-shown{animation:h2-in .25s ease both}
@keyframes h2-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.h2-empty{padding:22px 4px;font-weight:600}
.h2-footnote{margin:16px 0 0;font-size:14.5px;color:var(--soft)}

/* ---------- colleges ---------- */
.h2-colleges{max-width:none;background:var(--mist)}
.h2-colleges > *{max-width:1140px;margin-left:auto;margin-right:auto}
.h2-college-list{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:1fr;gap:0}
.h2-college{display:grid;grid-template-columns:96px 1fr;gap:20px;padding:24px 0;border-top:1px solid var(--line)}
.h2-college-mark{width:96px;height:96px;border-radius:22px;background:var(--seal);display:grid;place-items:center;overflow:hidden}
.h2-college-mark span{font-family:var(--display);font-weight:700;font-size:1.9rem;color:#fff;letter-spacing:.02em}
.h2-college-mark img{width:100%;height:100%;object-fit:cover}
.tone-leaf .h2-college-mark{background:var(--leaf)}.tone-globe .h2-college-mark{background:var(--globe)}
.tone-sun .h2-college-mark{background:var(--sun)}.tone-steel .h2-college-mark{background:var(--steel)}
.tone-gold .h2-college-mark{background:var(--gold-deep)}.tone-care .h2-college-mark{background:var(--care)}
.h2-college-kind{margin:0;font-size:14px;font-weight:700;color:var(--seal)}
.tone-leaf .h2-college-kind{color:var(--leaf)}.tone-globe .h2-college-kind{color:var(--globe)}.tone-sun .h2-college-kind{color:#B36200}.tone-steel .h2-college-kind{color:var(--steel)}
.h2-college h3{font-size:1.5rem;line-height:1.2;margin:2px 0 6px}
.h2-college h3 a{color:var(--ink);text-decoration:none}
.h2-college h3 a:hover{color:var(--seal)}
.h2-college-body > p{margin:0 0 6px;max-width:70ch}
.h2-college-courses{font-weight:600}
.h2-college-codes{font-size:14.5px;color:var(--soft)}
.h2-college-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:8px!important}
.h2-college-links a{font-weight:700}

/* ---------- admission steps ---------- */
.h2-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:26px;position:relative}
.h2-steps ol::before{content:"";position:absolute;top:27px;left:28px;right:28px;height:3px;background:repeating-linear-gradient(90deg,var(--gold) 0 14px,transparent 14px 22px);z-index:0}
.h2-steps li{position:relative;z-index:1}
.h2-step-n{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;border:4px solid var(--seal);font-family:var(--display);font-weight:700;font-size:1.5rem;color:var(--seal);box-shadow:0 0 0 6px #fff}
.h2-steps h3{font-size:1.3rem;margin:16px 0 6px}
.h2-steps p{margin:0;color:var(--soft)}
.h2-steps-cta{margin:30px 0 0}

/* ---------- notices + library ---------- */
.h2-news{display:grid;grid-template-columns:1fr 1fr;gap:48px;border-top:1px solid var(--line)}
.h2-col h2{font-size:1.8rem;margin-bottom:14px}
.h2-list{list-style:none;margin:0 0 14px;padding:0}
.h2-list li{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);align-items:baseline}
.h2-list time{font-size:14px;color:var(--soft);font-variant-numeric:tabular-nums}
.h2-list a{color:var(--ink);font-weight:600;text-decoration:none}
.h2-list a:hover{color:var(--seal);text-decoration:underline}
.h2-tag{font-size:13px;font-weight:700;color:var(--globe)}
.h2-more{font-weight:700}

/* ---------- visit ---------- */
.h2-visit{background:var(--wine);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:36px;padding:64px max(20px,calc((100% - 1180px)/2))}
.h2-visit h2{font-size:clamp(1.9rem,3.4vw,2.6rem)}
.h2-address{font-size:1.15rem;margin:14px 0 20px;max-width:36ch;color:#fbeef0}
.h2-contact{list-style:none;margin:28px 0 0;padding:0}
.h2-contact li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid rgba(255,255,255,.18)}
.h2-contact span{color:#f1d9dd}
.h2-contact a{color:var(--gold);font-weight:700;text-decoration:none}
.h2-map{min-height:340px;border-radius:20px;overflow:hidden;background:#3f1219}
.h2-map iframe{width:100%;height:100%;min-height:340px;border:0;display:block}

/* ---------- responsive ---------- */
@media (min-width:1100px){
  .h2-college-list{grid-template-columns:1fr 1fr;column-gap:56px}
  .h2-college:nth-child(2){border-top:1px solid var(--line)}
}
@media (max-width:900px){
  .h2-tr{grid-template-columns:1fr 1fr;padding-left:18px}
  .h2-th{display:none}
  .h2-tr > span:first-child{grid-column:1 / -1}
  .h2-tr > span[data-l]::before{content:attr(data-l);display:block;font-size:13px;font-weight:700;color:var(--soft)}
  .h2-tr > span.h2-fee{grid-column:1 / -1}
  .h2-tr > span:last-child{grid-column:1 / -1}
  .h2-steps ol{grid-template-columns:1fr;gap:22px}
  .h2-steps ol::before{top:28px;bottom:28px;left:26px;right:auto;width:3px;height:auto;background:repeating-linear-gradient(180deg,var(--gold) 0 14px,transparent 14px 22px)}
  .h2-steps li{display:grid;grid-template-columns:56px 1fr;column-gap:18px}
  .h2-steps li h3{margin-top:12px}
  .h2-steps li p{grid-column:2}
  .h2-news{grid-template-columns:1fr;gap:36px}
  .h2-visit{grid-template-columns:1fr}
}
@media (max-width:560px){
  .h2{font-size:16px}
  .h2-hero-inner{padding:34px 16px 34px}
  .h2-hero-logo{width:84px}
  .h2-hero-photo{background:
    linear-gradient(180deg,rgba(78,20,31,.86) 0%,rgba(94,27,39,.95) 55%,rgba(78,20,31,.98) 100%),
    url("srgs-building-hero.jpg") 60% 0/cover no-repeat}
  .h2-cta .h2-btn{flex:1 1 100%}
  .h2-seals{gap:10px 12px}
  .h2-seal{width:96px;height:96px}
  .h2-section{padding:52px 16px}
  .h2-search{padding:22px 16px}
  .h2-find{flex:1 1 100%}
  .h2-college{grid-template-columns:64px 1fr;gap:14px}
  .h2-college-mark{width:64px;height:64px;border-radius:16px}
  .h2-college-mark span{font-size:1.3rem}
  .h2-list li{grid-template-columns:1fr;gap:2px}
}
@media (prefers-reduced-motion:reduce){
  .h2-hero-photo,.h2-seal,.h2-tr.is-shown{animation:none}
}
