/* Murree v2.9.40 - one authoritative, page-scoped layout stylesheet.
   Do not add Murree grid overrides to style.css. */
body.kn-murree-home-layout .container.page-grid.kn-murree-page-grid{
 display:block;box-sizing:border-box;width:calc(100% - 32px);
 max-width:1800px;margin:0 auto 48px;padding:0;
}
body.kn-murree-home-layout .kn-murree-main{
 display:block;width:100%;max-width:none;min-width:0;
}
body.kn-murree-home-layout .kn-murree-main > .kn-feature-row{
 display:grid;grid-template-columns:minmax(0, 3fr) minmax(280px, 1fr);
 gap:20px;align-items:start;direction:ltr;width:100%;margin:16px 0 24px;
}
body.kn-murree-home-layout .kn-feature-row > .kn-feature-primary{
 display:flex;flex-direction:column;gap:14px;min-width:0;max-width:100%;
}
body.kn-murree-home-layout .kn-feature-primary > .kn-feature-slider{
 width:100%;height:clamp(340px,34vw,540px);min-height:0;max-height:none;
 overflow:hidden;
}
body.kn-murree-home-layout .kn-feature-primary > .kn-feature-middle{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;
 gap:12px;height:auto;min-height:0;max-height:none;overflow:visible;
 background:transparent;box-shadow:none;
}
body.kn-murree-home-layout .kn-feature-middle > .kn-middle-story{
 display:flex;flex-direction:column;min-height:0;height:auto;gap:7px;
 border:1px solid #e9edf2;border-radius:9px;overflow:hidden;
 background:#fff;direction:rtl;padding:0 0 12px;
}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb{
 display:block;width:100%;height:auto;aspect-ratio:16/10;min-height:0;
 flex:none;overflow:hidden;
}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb img{
 display:block;width:100%;height:100%;object-fit:cover;
}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-story > div{
 width:100%;min-width:0;padding:0 10px;direction:rtl;text-align:right;
}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-story h3{
 font-size:clamp(13px,1.1vw,17px);line-height:1.8;margin:4px 0;
 display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
body.kn-murree-home-layout .kn-feature-row > .kn-feature-third{
 display:block;grid-column:auto;min-width:0;max-width:100%;width:100%;
 overflow:visible;align-self:start;direction:rtl;
}
body.kn-murree-home-layout .kn-murree-sidebar-ad,
body.kn-murree-home-layout .kn-murree-news-widgets{margin-top:18px;min-width:0;max-width:100%;}
body.kn-murree-home-layout .kn-murree-sidebar-ad :is(img,video,iframe){
 display:block;max-width:100%;width:auto;height:auto;
}
body.kn-murree-home-layout .kn-murree-sidebar-ad iframe{width:100%;}
body.kn-murree-home-layout .kn-murree-main .category-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px;align-items:stretch;grid-auto-rows:auto;
}
body.kn-murree-home-layout .kn-murree-main .category-grid > :is(.news-card,.lead-card){
 display:flex;flex-direction:column;grid-column:auto;grid-row:auto;
 min-width:0;max-width:100%;height:auto;overflow:hidden;
 border:1px solid #e9edf2;border-radius:10px;background:#fff;
}
body.kn-murree-home-layout .kn-murree-main .category-grid .thumb{
 display:block;width:100%;aspect-ratio:16/10;height:auto;min-height:0;flex:none;
}
body.kn-murree-home-layout .kn-murree-main .category-grid .thumb img{
 width:100%;height:100%;object-fit:cover;
}
body.kn-murree-home-layout .kn-murree-main .category-grid .card-body{
 position:static;display:block;background:#fff;color:var(--ink);padding:12px;min-width:0;
}
body.kn-murree-home-layout .kn-murree-main .category-grid .card-body h2{
 font-size:clamp(14px,1.15vw,18px);line-height:1.8;margin:0 0 8px;
}
body.kn-murree-home-layout .kn-murree-main .category-grid .card-body p{display:none;}
body.kn-murree-home-layout .kn-murree-main .category-grid .meta{color:var(--muted);}
body.kn-murree-home-layout .kn-story-origin{
 display:inline-block;color:white;background:#a9252c;padding:2px 8px;
 border-radius:4px;font-size:12px;
}
@media(max-width:1050px){
 body.kn-murree-home-layout .kn-murree-main > .kn-feature-row{
  grid-template-columns:minmax(0,2fr) minmax(245px,1fr);gap:14px;
 }
 body.kn-murree-home-layout .kn-murree-main .category-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:800px){
 body.kn-murree-home-layout .container.page-grid.kn-murree-page-grid{
  width:calc(100% - 24px);
 }
 body.kn-murree-home-layout .kn-murree-main > .kn-feature-row{
  grid-template-columns:minmax(0,1fr);
 }
 body.kn-murree-home-layout .kn-feature-primary > .kn-feature-slider{
  height:clamp(270px,55vw,420px);
 }
}
@media(max-width:600px){
 body.kn-murree-home-layout .kn-murree-main .category-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.kn-murree-home-layout .kn-feature-primary > .kn-feature-middle{
  grid-template-columns:minmax(0,1fr);
 }
 body.kn-murree-home-layout .kn-feature-middle > .kn-middle-story{
  display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;
  padding:5px;gap:8px;
 }
 body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb{
  height:95px;aspect-ratio:auto;
 }
}

/* v2.9.38: Advertisement replaces generic sidebar widgets on Murree. */
body.kn-murree-home-layout .kn-feature-third > .kn-murree-sidebar-ad{margin:0 0 18px;width:100%;max-width:100%;min-width:0;overflow:hidden;}
body.kn-murree-home-layout .kn-murree-sidebar-ad .ad-area,
body.kn-murree-home-layout .kn-murree-sidebar-ad .ad-widget{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
body.kn-murree-home-layout .kn-murree-sidebar-ad :is(img,video,iframe){max-width:100%!important;}

/* Approved desktop mockup: maximum usable space, hero left, advertising right.
   These page-scoped rules are loaded after the theme and supersede only Murree. */
body.kn-murree-home-layout .container.page-grid.kn-murree-page-grid{
  width:calc(100% - clamp(24px,3vw,56px));max-width:1800px;
  margin-inline:auto;display:block;float:none;clear:both;
}
body.kn-murree-home-layout .kn-murree-main{float:none;margin:0;max-width:none;min-width:0;width:100%;}
body.kn-murree-home-layout .kn-murree-main>.kn-feature-row{
  display:grid;grid-template-columns:minmax(0, 2.75fr) minmax(280px,1fr);
  direction:ltr;align-items:start;gap:clamp(14px,1.8vw,26px);
}
body.kn-murree-home-layout .kn-feature-primary{display:flex;flex-direction:column;gap:14px;}
body.kn-murree-home-layout .kn-feature-primary>.kn-feature-slider{
  display:block;position:relative;width:100%;height:clamp(370px,34vw,560px);
  border-radius:9px;isolation:isolate;overflow:hidden;
}
body.kn-murree-home-layout .kn-feature-slider>.kn-feature-slide{position:absolute;inset:0;height:100%;width:100%;}
body.kn-murree-home-layout .kn-feature-slider>.kn-feature-slide[hidden]{display:none!important;}
body.kn-murree-home-layout .kn-feature-slider .kn-feature-link{position:absolute;inset:0;display:block;}
body.kn-murree-home-layout .kn-feature-slider .kn-feature-image{width:100%;height:100%;object-fit:cover;}
body.kn-murree-home-layout .kn-feature-slider .kn-feature-caption{position:absolute;bottom:0;left:0;right:0;z-index:2;direction:rtl;text-align:right;padding:65px 20px 22px;background:linear-gradient(transparent,rgba(0,0,0,.85));}
body.kn-murree-home-layout .kn-feature-slider .kn-feature-caption h2{font-size:clamp(21px,2vw,32px);line-height:1.6;color:#fff;margin:0;}
body.kn-murree-home-layout .kn-feature-slider :is(.kn-slide-prev,.kn-slide-next){z-index:4;}
body.kn-murree-home-layout .kn-feature-slider .kn-slide-dots{z-index:4;}
body.kn-murree-home-layout .kn-feature-primary>.kn-feature-middle{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;
  gap:14px;height:auto;max-height:none;padding:0;box-shadow:none;
}
body.kn-murree-home-layout .kn-feature-middle>.kn-middle-story{display:flex;flex-direction:column;min-width:0;height:auto;min-height:0;}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;}
body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb img{width:100%;height:100%;object-fit:cover;}
body.kn-murree-home-layout .kn-feature-row>.kn-feature-third{padding:0;background:transparent;box-shadow:none;overflow:visible;direction:rtl;}
body.kn-murree-home-layout .kn-feature-third .kn-murree-sidebar-ad{margin:0 0 16px;min-height:0;}
body.kn-murree-home-layout .kn-feature-third .kn-murree-sidebar-ad :is(img,iframe,video){max-width:100%;}
body.kn-murree-home-layout .kn-feature-third .kn-feature-tabs{background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 3px 15px #00000010;}
body.kn-murree-home-layout .kn-murree-main .category-section{clear:both;width:100%;min-width:0;}
body.kn-murree-home-layout .kn-murree-main .category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;grid-auto-rows:auto;gap:16px;}
body.kn-murree-home-layout .kn-murree-main .category-grid>*{min-width:0;max-width:100%;}
@media(max-width:1050px){body.kn-murree-home-layout .kn-murree-main>.kn-feature-row{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:14px;}body.kn-murree-home-layout .kn-murree-main .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:800px){body.kn-murree-home-layout .kn-murree-main>.kn-feature-row{grid-template-columns:minmax(0,1fr);}body.kn-murree-home-layout .kn-feature-primary>.kn-feature-slider{height:clamp(280px,54vw,430px);}body.kn-murree-home-layout .kn-feature-row>.kn-feature-third{width:100%;}}
@media(max-width:600px){body.kn-murree-home-layout .kn-feature-primary>.kn-feature-middle{grid-template-columns:minmax(0,1fr);}body.kn-murree-home-layout .kn-murree-main .category-grid{grid-template-columns:minmax(0,1fr);}body.kn-murree-home-layout .kn-feature-middle>.kn-middle-story{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;}body.kn-murree-home-layout .kn-feature-middle .kn-middle-thumb{aspect-ratio:auto;height:95px;}}
