/* PJ NEWS V7.9 professional editorial homepage. Scoped to homepage .p79-* wrappers. */
.p3-shell{max-width:1280px!important;padding-left:18px!important;padding-right:18px!important;font-family:'Mandali','Noto Sans Telugu',Arial,sans-serif;color:#111927}
.p3-shell .p3-breaking{border-radius:12px!important;overflow:hidden;min-height:49px;box-shadow:0 2px 8px rgba(20,36,62,.04)}
.p3-shell .p3-breaking-links a{font-size:15px!important;line-height:1.5!important}
.p3-shell .p3-breaking-label{font-size:13px!important;display:flex;align-items:center}
.p3-shell .p3-navigation{border-bottom:1px solid #19263a!important;padding-bottom:12px!important}
.p3-shell .p3-pagehead{margin-top:17px!important}
/* Editorial hero: left headlines, center photo + stories, right video and social rail */
.p3-shell .p79-top{display:grid;grid-template-columns:190px minmax(0,1fr) 322px;gap:27px;align-items:start;padding-top:4px}
.p3-shell .p79-top>*,.p3-shell .p79-bottom{min-width:0}
.p3-shell .p79-left-rail h2{font-size:17px;font-weight:800;margin:8px 0 13px;line-height:1.45}
.p3-shell .p79-left-item{display:block;padding:13px 0 15px;border-bottom:1px solid #e5e8ed;line-height:1.5}
.p3-shell .p79-left-item span{display:block;color:#c31b30;font-size:11px;font-weight:800;margin-bottom:4px}
.p3-shell .p79-left-item strong{display:block;font-size:13.5px;line-height:1.7;word-break:normal}
.p3-shell .p79-lead-main .p7-section-title{margin:2px 0 12px!important}
.p3-shell .p79-lead-main .p7-section-title h2{font-size:23px!important}
.p3-shell .p79-lead-main .p7-leadnews{display:block!important}
.p3-shell .p79-lead-main .p3-hero .p3-image{height:auto!important;aspect-ratio:16/9!important;border-radius:13px!important;overflow:hidden}
.p3-shell .p79-lead-main .p3-hero .p3-copy{padding:11px 0 20px}
.p3-shell .p79-lead-main .p3-hero h3{font-size:23px!important;line-height:1.45!important}
.p3-shell .p79-lead-main .p7-leadside{display:flex!important;flex-direction:column!important;gap:0!important}
.p3-shell .p79-lead-main .p7-leadside .p7-mini{display:grid!important;grid-template-columns:1fr 154px!important;gap:14px!important;padding:14px 0!important;border-bottom:1px solid #e5e8ed;align-items:center;min-width:0}
.p3-shell .p79-lead-main .p7-leadside .p7-mini-image{order:2!important;width:154px!important;height:auto!important;aspect-ratio:16/9!important;border-radius:9px;overflow:hidden}
.p3-shell .p79-lead-main .p7-leadside .p7-mini-copy{order:1!important;min-width:0}
.p3-shell .p79-lead-main .p7-leadside .p7-mini h3{font-size:15px!important;line-height:1.55!important}
.p3-shell .p79-lead-main .p7-leadside .p7-mini-tag{color:#bd1f33;font-size:10px}
/* Right rail: deliberate spacing, compact genuine social links, editorial video tiles */
.p3-shell .p79-top .p78-news-rail{width:100%!important;grid-column:auto!important;grid-row:auto!important;max-width:100%!important;min-width:0!important;display:block!important}
.p3-shell .p79-top .p78-news-rail .p77-panel{padding:0 0 22px!important;margin:0 0 23px!important;border-bottom:1px solid #e2e5eb!important}
.p3-shell .p79-top .p78-news-rail .p77-panel h2{font-size:19px!important;margin:6px 0 15px!important}
.p3-shell .p79-top .p78-news-rail .p77-follow{padding:16px!important;border:1px solid #e1e8f0!important;border-radius:12px!important;background:#f7f9fc!important}
.p3-shell .p79-top .p78-news-rail .p77-follow p{font-size:12px;color:#657287}
.p3-shell .p79-top .p78-news-rail .p77-sociallink{display:inline-flex!important;flex-direction:column;justify-content:center;align-items:center!important;gap:5px!important;width:calc(20% - 5px)!important;min-width:0!important;padding:3px 1px!important;margin:0 2px 0 0!important;background:transparent!important;border:0!important;border-radius:9px!important;text-align:center}
.p3-shell .p79-top .p78-news-rail .p77-sociallink strong{font-size:9px!important;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-family:Arial,sans-serif}
.p3-shell .p79-top .p78-news-rail .p77-sociallink small{display:none!important}
.p3-shell .p79-top .p78-news-rail .p77-brand{width:39px!important;height:39px!important;flex:0 0 39px!important;border-radius:10px!important}
.p3-shell .p79-top .p78-news-rail .p77-brand svg{width:22px!important;height:22px!important}
.p3-shell .p79-top .p78-news-rail .p77-trend .p7-mini h3{font-size:13px!important}
.p3-shell .p79-top .p78-news-rail .p77-short-feature{max-height:270px!important;max-width:155px!important;display:block!important}
.p3-shell .p79-top .p78-news-rail .p77-video-item strong{font-size:13px!important}
/* Full width category decks, like a modern national news portal */
.p3-shell .p79-bottom{width:100%;margin:32px 0 18px}
.p3-shell .p79-bottom>.p7-section-title{border-top:1px dotted #9aa2ae!important;padding-top:22px!important;margin:29px 0 16px!important}
.p3-shell .p79-bottom .p7-section-title h2{font-size:20px!important;font-weight:800!important}
.p3-shell .p79-bottom .p75-cities-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px!important}
.p3-shell .p79-bottom .p75-cities-row+.p75-cities-row{border-top:1px dotted #9aa2ae!important}
.p3-shell .p79-bottom .p75-cities-row .p3-card h3{font-size:14px!important;line-height:1.5!important}
.p3-shell .p79-bottom .p7-cardgrid.p7-cols-5{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:20px!important}
.p3-shell .p79-bottom .p7-cardgrid .p3-card .p3-image{border-radius:10px;overflow:hidden;aspect-ratio:16/9!important}
.p3-shell .p79-bottom .p7-cardgrid .p3-card h3{font-size:14px!important;line-height:1.6!important}
.p3-shell .p79-bottom .p3-copy p{display:none!important}
.p3-shell .p79-bottom .p7-two-col-list,.p3-shell .p79-bottom .p7-twins{column-gap:34px!important}
.p3-shell .p79-bottom .p7-twins{border-top:1px dotted #a1a9b4!important;margin-top:30px;padding-top:17px}
.p3-shell .p79-bottom .p7-twins .p7-section-title{margin-top:4px!important}
.p3-shell .p79-bottom .p7-mini{min-width:0}
.p3-shell .p79-bottom .p7-mini h3{line-height:1.6}
.p3-shell .p79-bottom .p79-triple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px dotted #aab1bd;margin-top:34px;padding-top:12px}
.p3-shell .p79-bottom .p79-triple section{min-width:0}
.p3-shell .p79-bottom .p79-triple .p7-section-title{margin:10px 0 12px!important}
.p3-shell .p79-bottom .p79-triple .p7-mini{padding:9px 0;border-bottom:1px dotted #d0d6df}
.p3-shell .p79-bottom .p79-triple .p7-mini-image{width:92px!important;max-width:92px}
.p3-shell .p79-bottom .p79-triple .p7-mini h3{font-size:13px!important}
.p3-shell .p79-bottom .p7-video-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important}
.p3-shell .p79-bottom .p7-ytcard .p7-yt-thumb{border-radius:10px;overflow:hidden;aspect-ratio:16/9}
.p3-shell .p79-bottom .p7-ytcard strong{font-size:13px;line-height:1.45}
.p3-shell .p79-bottom .p7-cityfilters{margin-top:10px}
.p3-shell .p79-bottom .p7-emptyvideo{font-size:13px;color:#718097}
/* Crop only; never alter uploaded source images. */
.p3-shell .p79-top img,.p3-shell .p79-bottom .p3-image img,.p3-shell .p79-bottom .p7-mini-image img{object-fit:cover;transition:transform .23s ease}
.p3-shell .p79-top a:hover img,.p3-shell .p79-bottom a:hover img{transform:scale(1.035)}
@media(max-width:1150px){
 .p3-shell .p79-top{grid-template-columns:160px minmax(0,1fr) 285px;gap:17px}
 .p3-shell .p79-bottom .p75-cities-row,.p3-shell .p79-bottom .p7-cardgrid.p7-cols-5,.p3-shell .p79-bottom .p7-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .p3-shell .p79-top{grid-template-columns:minmax(0,1fr) 285px}
 .p3-shell .p79-top .p79-left-rail{display:none}
 .p3-shell .p79-bottom .p79-triple{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px){
 .p3-shell .p79-top{display:flex;flex-direction:column;gap:20px}
 .p3-shell .p79-top .p79-lead-main,.p3-shell .p79-top .p78-news-rail{width:100%!important;max-width:100%!important}
 .p3-shell .p79-top .p78-news-rail .p77-follow{padding:12px!important}
 .p3-shell .p79-lead-main .p7-leadside .p7-mini{grid-template-columns:1fr 120px!important}
 .p3-shell .p79-lead-main .p7-leadside .p7-mini-image{width:120px!important}
 .p3-shell .p79-bottom .p75-cities-row,.p3-shell .p79-bottom .p7-cardgrid.p7-cols-5,.p3-shell .p79-bottom .p7-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
 .p3-shell .p79-bottom .p79-triple{grid-template-columns:1fr}
 .p3-shell .p79-bottom .p7-twins,.p3-shell .p79-bottom .p7-two-col-list{grid-template-columns:1fr!important}
 .p3-shell .p79-bottom{margin-top:22px}
 .p3-shell .p79-bottom .p75-cities-row .p3-card h3{font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){.p3-shell .p79-top img,.p3-shell .p79-bottom img{transition:none!important;transform:none!important}}


/* V7.9.1 — Center Herald logo while keeping PJ NEWS title/header intact */
.p79-herald-masthead{max-width:1280px;margin:10px auto 12px;padding:0 16px}
.p79-herald-inner{display:flex;justify-content:center;align-items:center;padding:8px 0 2px;border-bottom:1px solid #e8eaf0}
.p79-herald-inner img{display:block;width:min(100%,760px);height:auto;object-fit:contain;filter:drop-shadow(0 2px 10px rgba(0,0,0,.06))}
@media (max-width: 900px){
 .p79-herald-masthead{margin:8px auto 10px;padding:0 12px}
 .p79-herald-inner{padding:6px 0 2px}
 .p79-herald-inner img{width:min(100%,420px)}
}


/* V7.9.2 — place THE PJ HERALD logo inside the top header row, between PJ NEWS and language links */
.p79-herald-masthead{display:none!important}
.pjh-toprow--enhanced{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
.pjh-toprow--enhanced > *{min-width:0}
.pjh-brand-block{flex:0 0 auto!important}
.pjh-inline-herald{flex:1 1 auto;display:flex;justify-content:center;align-items:center;min-width:0;padding:0 18px}
.pjh-inline-herald img{display:block;width:min(100%,620px);max-height:56px;height:auto;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(0,0,0,.06))}
.pjh-lang-block{flex:0 0 auto!important;display:flex;align-items:center;justify-content:flex-end;gap:20px}
@media (max-width: 1180px){.pjh-inline-herald img{max-height:48px;width:min(100%,500px)}}
@media (max-width: 980px){.pjh-inline-herald{padding:0 10px}.pjh-inline-herald img{max-height:40px;width:min(100%,360px)}}
@media (max-width: 860px){.pjh-inline-herald{display:none!important}.pjh-toprow--enhanced{gap:14px!important}}
