
/* Jamia Mahmoodia Core v75
   Public scholarly-services separation + Research Center contrast/Urdu authority. */

body#jm-site-root .jm74-public-research{
  --jm75-research-serif:"Cormorant Garamond","Newsreader","Source Serif 4",Georgia,serif;
  --jm75-research-sans:"Manrope","Noto Sans Arabic",Arial,sans-serif;
  --jm75-research-urdu:"Noto Naskh Arabic","Noto Sans Arabic",serif;
}
body#jm-site-root .jm74-public-research :is(p,a,small,strong,span){font-family:var(--jm75-research-sans)}
body#jm-site-root .jm74-public-research :is(h1,h2,h3){font-family:var(--jm75-research-serif)!important}
body#jm-site-root .jm74-public-research [dir="rtl"],
body#jm-site-root.jm-language-ur .jm74-public-research :is(h1,h2,h3,h4,p,strong,small,span){
  font-family:var(--jm75-research-urdu)!important;letter-spacing:0!important
}
body#jm-site-root .jm74-public-research [dir="rtl"]{line-height:1.9!important}
body#jm-site-root.jm-language-ur .jm74-public-research{direction:rtl}
body#jm-site-root.jm-language-ur .jm74-public-research .jm66-hero-actions,
body#jm-site-root.jm-language-ur .jm74-public-research .jm74-public-research-trust{justify-content:flex-start}

/* Hero: final contrast guard against old generic hero rules. */
html body#jm-site-root .jm74-public-research .jm74-public-research-hero .jm74-research-hero-copy h1{
  color:#123f35!important;text-shadow:none!important;opacity:1!important;font-family:var(--jm75-research-serif)!important
}
html body#jm-site-root.jm-language-ur .jm74-public-research .jm74-public-research-hero .jm74-research-hero-copy h1{
  font-family:var(--jm75-research-urdu)!important;font-size:clamp(40px,5vw,70px)!important;line-height:1.55!important
}
html body#jm-site-root .jm74-public-research .jm74-public-research-hero .jm74-research-hero-copy p{color:#526b62!important;opacity:1!important}

/* Three genuinely separate public scholarly services. */
body#jm-site-root .jm75-scholarly-gateway{padding:34px 0!important;background:linear-gradient(135deg,#043f34,#075a49)!important}
body#jm-site-root .jm75-scholarly-gateway>.jm-core-wrap{display:block!important}
body#jm-site-root .jm75-scholar-service-head{display:grid!important;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)!important;gap:32px!important;align-items:end!important;margin-bottom:18px!important}
body#jm-site-root .jm75-scholar-service-head>span{color:#efc45c!important;font-size:10px!important;font-weight:900!important;letter-spacing:.16em!important}
body#jm-site-root .jm75-scholar-service-head h2{margin:0!important;color:#fff!important;font:600 clamp(27px,3vw,40px)/1.08 var(--jm75-research-serif)!important;letter-spacing:-.025em!important}
body#jm-site-root.jm-language-ur .jm75-scholar-service-head h2{font-family:var(--jm75-research-urdu)!important;line-height:1.65!important}
body#jm-site-root .jm75-scholar-service-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body#jm-site-root .jm75-scholar-service-grid>a{
  display:grid!important;grid-template-columns:48px minmax(0,1fr) 24px!important;gap:12px!important;align-items:center!important;
  min-height:88px!important;padding:14px!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:17px!important;
  background:rgba(255,255,255,.075)!important;color:#fff!important;text-decoration:none!important;box-shadow:0 12px 28px rgba(0,0,0,.07)!important
}
body#jm-site-root .jm75-scholar-service-grid>a:hover{background:rgba(255,255,255,.13)!important;transform:translateY(-2px)!important}
body#jm-site-root .jm75-scholar-service-grid>a.is-current{background:#fff!important;color:#123f35!important;border-color:#fff!important}
body#jm-site-root .jm75-scholar-service-grid>a>i:first-child{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:14px!important;background:rgba(232,183,75,.16)!important;color:#f0c65f!important;font-size:17px!important}
body#jm-site-root .jm75-scholar-service-grid>a.is-current>i:first-child{background:#eaf4ef!important;color:#08705a!important}
body#jm-site-root .jm75-scholar-service-grid strong{display:block!important;color:inherit!important;font-size:14px!important;font-weight:850!important}
body#jm-site-root .jm75-scholar-service-grid small{display:block!important;margin-top:4px!important;color:#bad1c9!important;font-size:10.5px!important;line-height:1.45!important}
body#jm-site-root .jm75-scholar-service-grid>a.is-current small{color:#657c73!important}

/* Department cards: Urdu is a real secondary title, not compressed metadata. */
body#jm-site-root .jm74-public-research-grid h3{font-family:var(--jm75-research-serif)!important;font-size:24px!important}
body#jm-site-root .jm74-public-research-grid h4[dir="rtl"]{
  font-family:var(--jm75-research-urdu)!important;font-size:17px!important;line-height:1.8!important;color:#4c6d62!important
}
body#jm-site-root.jm-language-ur .jm74-public-research-grid h3[dir="rtl"]{
  font-family:var(--jm75-research-urdu)!important;font-size:22px!important;line-height:1.8!important
}
body#jm-site-root.jm-language-ur .jm74-public-research-grid h4{font-family:var(--jm75-research-serif)!important;font-size:15px!important;direction:ltr;text-align:right}
body#jm-site-root .jm74-public-research-grid p[dir="rtl"],
body#jm-site-root .jm74-secondary-urdu,
body#jm-site-root .jm74-topic-grid small[dir="rtl"]{
  font-family:var(--jm75-research-urdu)!important;font-size:15px!important;line-height:1.9!important;letter-spacing:0!important
}

/* Selected department panel gets clearer hierarchy. */
body#jm-site-root .jm74-department-detail>.jm-core-wrap{padding:30px!important}
body#jm-site-root .jm74-department-detail-head h2{font-family:var(--jm75-research-serif)!important}
body#jm-site-root .jm74-department-detail-head h2[dir="rtl"],
body#jm-site-root .jm74-department-detail-head h3[dir="rtl"]{font-family:var(--jm75-research-urdu)!important;line-height:1.75!important}
body#jm-site-root .jm74-topic-grid strong{font-size:13px!important;line-height:1.45!important}
body#jm-site-root .jm74-topic-grid small{font-size:12.5px!important}
body#jm-site-root .jm74-department-scope p{font-size:14px!important}

/* The screenshot issue: old public h2 color was overriding the dark governance block.
   Lock every relevant child to a deliberate high-contrast palette. */
html body#jm-site-root .jm74-public-research .jm74-public-research-process{
  background:
    radial-gradient(circle at 82% 18%,rgba(231,184,79,.11),transparent 25%),
    linear-gradient(135deg,#043b31 0%,#075545 100%)!important;
  color:#fff!important
}
html body#jm-site-root .jm74-public-research .jm74-public-research-process .jm66-kicker{color:#f0c55a!important}
html body#jm-site-root .jm74-public-research .jm74-public-research-process h2{
  color:#fff!important;text-shadow:none!important;opacity:1!important;
  font:600 clamp(36px,4vw,56px)/1.04 var(--jm75-research-serif)!important
}
html body#jm-site-root.jm-language-ur .jm74-public-research .jm74-public-research-process h2{
  font-family:var(--jm75-research-urdu)!important;line-height:1.65!important
}
html body#jm-site-root .jm74-public-research .jm74-public-research-process li{
  min-height:142px!important;padding:18px!important;background:rgba(255,255,255,.075)!important;
  border-color:rgba(255,255,255,.16)!important;box-shadow:0 12px 28px rgba(1,30,25,.12)!important
}
html body#jm-site-root .jm74-public-research .jm74-public-research-process li>b{color:#f2c962!important;font-size:10px!important}
html body#jm-site-root .jm74-public-research .jm74-public-research-process strong{color:#fff!important;font-size:13px!important}
html body#jm-site-root .jm74-public-research .jm74-public-research-process small{color:#c5dbd4!important;font-size:10.5px!important;line-height:1.65!important}
body#jm-site-root.jm-language-ur .jm74-public-research-process strong,
body#jm-site-root.jm-language-ur .jm74-public-research-process small{font-family:var(--jm75-research-urdu)!important;line-height:1.8!important}

/* Public Dar-ul-Ifta / Idarat / Research headings use one premium language system. */
body#jm-site-root :is(.jm73-idarat-page,.jm74-public-research,.jm-darulifta-public) h1,
body#jm-site-root :is(.jm73-idarat-page,.jm74-public-research,.jm-darulifta-public) h2{
  text-wrap:balance
}
body#jm-site-root.jm-language-ur :is(.jm73-idarat-page,.jm74-public-research,.jm-darulifta-public) :is(h1,h2,h3,p)[dir="rtl"],
body#jm-site-root.jm-language-ur :is(.jm73-idarat-page,.jm74-public-research,.jm-darulifta-public) :is(h1,h2,h3){
  font-family:var(--jm75-research-urdu)!important;letter-spacing:0!important
}

@media(max-width:900px){
  body#jm-site-root .jm75-scholar-service-head{grid-template-columns:1fr!important;gap:8px!important}
  body#jm-site-root .jm75-scholar-service-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  body#jm-site-root .jm75-scholarly-gateway{padding:24px 0!important}
  body#jm-site-root .jm75-scholar-service-grid>a{min-height:80px!important}
  body#jm-site-root .jm74-public-research-process h2{font-size:35px!important}
  body#jm-site-root.jm-language-ur .jm74-public-research-process h2{font-size:30px!important;line-height:1.7!important}
}
