/* V44.1 — Homepage Unified Readability
   Complements V44.0. Scope is homepage only. */

body.rebuild-v1{
  --hz-text:#0b1f3a;
  --hz-copy:#334155;
  --hz-muted:#475569;
}

/* Apply readable defaults to ordinary homepage copy without touching headings,
   buttons, badges, icons, inputs, navigation or deliberately styled labels. */
body.rebuild-v1 main :is(p,small){
  color:var(--hz-copy);
  font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;
}
body.rebuild-v1 main p{
  font-size:15.5px;
  line-height:1.9;
  font-weight:600;
}
body.rebuild-v1 main small{
  font-size:13.5px;
  line-height:1.75;
  font-weight:650;
  color:var(--hz-muted);
}

/* Statistics / quick services / registration-result cards */
body.rebuild-v1 :is(.stats,.quick-grid,.services,.feature-grid,.portal-grid,.admission-grid) :is(p,small,span:not(.badge)){
  color:var(--hz-copy) !important;
}
body.rebuild-v1 :is(.stats,.quick-grid,.services,.feature-grid,.portal-grid,.admission-grid) small{
  font-size:13.5px !important;
  font-weight:650 !important;
}

/* About institute / general content blocks */
body.rebuild-v1 :is(.about,.about-section,.about-grid,.section-copy,.institute-about,.about-content) p{
  color:var(--hz-copy) !important;
  font-size:15.5px !important;
  line-height:1.95 !important;
  font-weight:600 !important;
}

/* Gallery / library / location */
body.rebuild-v1 :is(.gallery,.gallery-section,.library,.files-section,.location,.map-section,.contact-section) :is(p,small){
  color:var(--hz-copy) !important;
  font-size:14.5px !important;
  line-height:1.85 !important;
  font-weight:600 !important;
}

/* Keep copy placed over photos / dark blue areas light and readable */
body.rebuild-v1 :is(.hero,.campus,.dean,.cta,.blue-band,.dark-section,.gallery-card,.gallery-feature) :is(p,small){
  color:#edf6ff !important;
}

/* Footer: stronger than V44.0 */
body.rebuild-v1 .footer :is(p,a,small,.footer-brand span){
  color:#dce9f6 !important;
  font-size:14.5px !important;
  line-height:1.9 !important;
  font-weight:650 !important;
}
body.rebuild-v1 .footer .copyright,
body.rebuild-v1 .copyright{
  color:#cbdbea !important;
  font-size:13.5px !important;
  font-weight:600 !important;
}

/* Do not recolor interactive / semantic elements */
body.rebuild-v1 :is(.btn,.button,button,.badge,.tag,.status,[class*="badge"],[class*="status"]) {
  font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;
}

@media (max-width:768px){
  body.rebuild-v1 main p{font-size:15px;}
  body.rebuild-v1 main small{font-size:13.5px;}
  body.rebuild-v1 .footer :is(p,a,small,.footer-brand span){font-size:14px !important;}
}
