/* Shivjagruti College V37 — Roboto for Latin/English; Ek Mukta for Devanagari glyphs. */
@import url('https://fonts.googleapis.com/css2?family=Ek+Mukta:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;600;700;800&display=swap');
:root { --sj-latin-font: 'Roboto', Arial, sans-serif; --sj-devanagari-font: 'Ek Mukta', 'Noto Sans Devanagari', Mangal, sans-serif; --sj-font-stack: 'Roboto', 'Ek Mukta', 'Noto Sans Devanagari', Mangal, sans-serif; }
html, body { font-family: var(--sj-font-stack) !important; }
body :not(i):not(svg):not(code):not(pre):not(.fa):not([class*="fa-"]):not([class*="icon-"]):not([class^="icon"]):not(.material-icons):not(.glyphicon):not(.dashicons) { font-family: var(--sj-font-stack) !important; }
input, select, textarea, button { font-family: var(--sj-font-stack) !important; }
/* Preserve icon-font glyph rendering and code samples. */
i, .fa, [class*="fa-"], [class*="icon-"], [class^="icon"], .material-icons, .glyphicon, .dashicons, code, pre, svg, svg * { font-family: revert !important; }

/* V48: compact, consistent reading rhythm across all public pages. Keep header/navigation sizing unchanged. */
:where(main, .container, .content, .content-area, .page-content, .sj-content, .table-responsive, .panel-body, .card-body, .section-content) p,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) li,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) dd,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) blockquote {
  line-height: 1.4 !important;
}
:where(main, .container, .content, .content-area, .page-content, .sj-content, .table-responsive, .panel-body, .card-body, .section-content) table th,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .table-responsive, .panel-body, .card-body, .section-content) table td {
  line-height: 1.25 !important;
  padding-top: 8px;
  padding-bottom: 8px;
}
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h1,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h2,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h3,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h4,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h5,
:where(main, .container, .content, .content-area, .page-content, .sj-content, .panel-body, .card-body, .section-content) h6 {
  line-height: 1.2 !important;
}

/* V54 FIX: the public page banner is styled on many pages by the global
   typography stylesheet, not by sj-frontend.css. Target its actual title class
   here so Organogram, Trustee's, Courses, and other legacy templates all update. */
html body .sj-gallery-hero .sj-gallery-hero-title > h1,
html body .sj-gallery-hero h1.sj-banner-title-target,
html body .sj-gallery-hero h1 {
  font-size: 30px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
}
@media (max-width: 760px) {
  html body .sj-gallery-hero .sj-gallery-hero-title > h1,
  html body .sj-gallery-hero h1.sj-banner-title-target,
  html body .sj-gallery-hero h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
}


/* V55 HARD-CODED BANNER TITLE FIX: applied to the actual stylesheet linked by legacy pages. */
html body .sj-page-frame .sj-gallery-hero h1,
html body .sj-gallery-hero h1.sj-banner-title-target,
html body .sj-gallery-hero .sj-gallery-hero-title h1 {
  font-size: 30px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  transform: none !important;
  zoom: 1 !important;
  flex-shrink: 0 !important;
}
@media (max-width: 760px) {
  html body .sj-page-frame .sj-gallery-hero h1,
  html body .sj-gallery-hero h1.sj-banner-title-target,
  html body .sj-gallery-hero .sj-gallery-hero-title h1 {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }
}


/* V56: force readable page-banner title size and prevent parent/layout scaling. */
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero { zoom: 1 !important; transform: none !important; }
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title { flex: 0 0 auto !important; min-width: max-content !important; zoom: 1 !important; transform: none !important; }
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title > h1,
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero h1.sj-banner-title-target { display: block !important; visibility: visible !important; opacity: 1 !important; font-family: Roboto, Arial, sans-serif !important; font-size: 30px !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -0.3px !important; transform: none !important; zoom: 1 !important; scale: 1 !important; flex-shrink: 0 !important; }
@media (max-width: 760px) {
 html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title > h1,
 html body.sj-internal-page .sj-page-frame > .sj-gallery-hero h1.sj-banner-title-target { font-size: 20px !important; line-height: 1.15 !important; }
}

/* V57: final banner-title enforcement. Prevent late-loaded theme styles from shrinking the title. */
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title,
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title > h1.sj-banner-title-target {
  min-width: max-content !important;
  flex-shrink: 0 !important;
  transform: none !important;
  zoom: 1 !important;
}
html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title > h1.sj-banner-title-target {
  display: block !important;
  font-size: 30px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  transition: none !important;
  animation: none !important;
}
@media (max-width: 760px) {
  html body.sj-internal-page .sj-page-frame > .sj-gallery-hero .sj-gallery-hero-title > h1.sj-banner-title-target {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }
}


/* V58: prevent global typography spans from overriding banner heading text. */
html body .sj-gallery-hero h1.sj-banner-title-target,
html body .sj-gallery-hero h1.sj-banner-title-target .sj-latin-text,
html body .sj-gallery-hero h1.sj-banner-title-target .sj-dev-text { font-size: 30px !important; line-height:1.12 !important; font-weight:800 !important; }
@media(max-width:760px){html body .sj-gallery-hero h1.sj-banner-title-target,html body .sj-gallery-hero h1.sj-banner-title-target .sj-latin-text,html body .sj-gallery-hero h1.sj-banner-title-target .sj-dev-text{font-size: 20px!important;line-height:1.15!important}}
