/*
Theme Name: PMG Media News
Theme URI: https://pmgmedia.in/
Author: PMG Media
Description: Original, responsive WordPress news theme for PMG Media. Editorial red/white design with technology slider, national, Rajasthan, crime and complete-news sections.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pmg-media-news
*/

:root{
  --pmg-red:#c9142b;
  --pmg-red-dark:#8f0d1d;
  --pmg-red-soft:#f7e7ea;
  --pmg-black:#111;
  --pmg-text:#222;
  --pmg-muted:#6c6c6c;
  --pmg-border:#e5e5e5;
  --pmg-white:#fff;
  --pmg-bg:#f7f7f7;
  --pmg-container:1240px;
  --pmg-radius:4px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--pmg-bg);color:var(--pmg-text);font-family:Arial,Helvetica,sans-serif;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.container{width:min(100% - 32px,var(--pmg-container));margin:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pmg-topbar{background:var(--pmg-red);color:#fff;font-size:13px}
.pmg-topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pmg-date{opacity:.95}
.pmg-social{display:flex;gap:12px}
.pmg-social a{opacity:.9}
.pmg-header{background:#fff;border-bottom:1px solid var(--pmg-border)}
.pmg-header-inner{min-height:86px;display:flex;align-items:center;gap:28px}
.pmg-brand{display:flex;align-items:center;min-width:170px}
.custom-logo-link{display:flex;align-items:center}
.custom-logo{width:auto;max-width:185px;max-height:62px}
.pmg-site-title{font-size:27px;font-weight:800;color:var(--pmg-red);letter-spacing:-.5px}
.pmg-site-tagline{font-size:11px;color:#666;margin-left:8px}
.pmg-header-ad{margin-left:auto;min-height:60px;min-width:300px;display:flex;align-items:center;justify-content:center}
.pmg-nav{background:var(--pmg-black);color:#fff}
.pmg-nav-inner{display:flex;align-items:center}
.pmg-menu{display:flex;list-style:none;margin:0;padding:0;gap:0}
.pmg-menu>li>a{display:block;padding:13px 14px;font-weight:700;font-size:14px}
.pmg-menu>li>a:hover,.pmg-menu>li.current-menu-item>a{background:var(--pmg-red)}
.pmg-menu-toggle{display:none;background:none;border:0;color:#fff;font-size:26px;padding:8px}
.pmg-search{margin-left:auto;display:flex;gap:5px;padding-left:12px}
.pmg-search input{width:170px;border:1px solid #444;background:#222;color:#fff;padding:7px 9px;border-radius:3px}
.pmg-search button{background:var(--pmg-red);border:0;color:#fff;padding:0 11px;border-radius:3px}
.pmg-breaking{background:#fff;border-bottom:1px solid var(--pmg-border)}
.pmg-breaking-inner{display:flex;align-items:center;min-height:42px;overflow:hidden}
.breaking-label{background:var(--pmg-red);color:#fff;padding:6px 13px;font-weight:800;font-size:13px;white-space:nowrap}
.breaking-track{padding-left:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.pmg-main{padding:22px 0 50px}
.ad-slot{background:#eee;border:1px dashed #cfcfcf;color:#888;min-height:90px;display:flex;align-items:center;justify-content:center;font-size:12px;text-transform:uppercase;letter-spacing:.8px}
.top-ad{margin-bottom:22px}
.pmg-section{margin-top:30px}
.section-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid var(--pmg-red);margin-bottom:15px}
.section-heading h2{font-size:23px;margin:0;background:var(--pmg-red);color:#fff;padding:5px 14px;line-height:1.4}
.section-heading a{font-size:13px;color:var(--pmg-red);font-weight:700}
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}
.hero-main{position:relative;min-height:420px;background:#222;overflow:hidden}
.hero-main img{width:100%;height:420px;object-fit:cover;opacity:.88}
.hero-main-content{position:absolute;inset:auto 0 0;padding:22px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.88))}
.hero-main-content .cat{color:#fff;background:var(--pmg-red);display:inline-block;padding:3px 8px;font-size:11px;font-weight:700;margin-bottom:8px}
.hero-main-content h1{font-size:30px;line-height:1.18;margin:0 0 7px}
.hero-main-content .meta{font-size:12px;opacity:.85}
.hero-side{display:grid;grid-template-rows:repeat(4,1fr);gap:12px}
.news-tile{display:grid;grid-template-columns:130px 1fr;gap:12px;background:#fff;border:1px solid var(--pmg-border);padding:9px}
.news-tile img{width:130px;height:95px;object-fit:cover}
.news-tile h3{font-size:16px;line-height:1.25;margin:0 0 6px}
.meta{font-size:11px;color:var(--pmg-muted)}
.placeholder{background:#ddd;display:flex;align-items:center;justify-content:center;color:#888;font-size:12px}
.tech-wrap{position:relative}
.tech-slider{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 1px 10px;scrollbar-width:thin}
.tech-card{flex:0 0 calc(25% - 11px);background:#fff;border:1px solid var(--pmg-border);scroll-snap-align:start}
.tech-card img{height:160px;width:100%;object-fit:cover}
.tech-card-body{padding:11px}
.tech-card h3{font-size:16px;line-height:1.3;margin:4px 0}
.slider-controls{position:absolute;right:0;top:-48px;display:flex;gap:5px}
.slider-controls button{width:34px;height:34px;border:1px solid var(--pmg-red);background:#fff;color:var(--pmg-red);cursor:pointer}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:#fff;border:1px solid var(--pmg-border)}
.card img{width:100%;height:175px;object-fit:cover}
.card-body{padding:11px 13px}
.card .cat{color:var(--pmg-red);font-weight:700;font-size:11px;text-transform:uppercase}
.card h3{font-size:18px;line-height:1.3;margin:4px 0 7px}
.sidebar-box{background:#fff;border:1px solid var(--pmg-border);padding:14px;margin-bottom:18px}
.sidebar-title{font-size:18px;margin:0 0 10px;padding-bottom:8px;border-bottom:2px solid var(--pmg-red)}
.most-read{counter-reset:item;list-style:none;margin:0;padding:0}
.most-read li{counter-increment:item;display:grid;grid-template-columns:32px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid var(--pmg-border)}
.most-read li:before{content:counter(item);font-size:22px;font-weight:800;color:var(--pmg-red)}
.most-read a{font-weight:700;font-size:14px;line-height:1.35}
.complete-news{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.complete-news .card{min-width:0}
.complete-news .card-body{padding:14px 15px 16px}
.complete-news .card h3{font-size:19px;line-height:1.4;margin:5px 0 8px}
.load-more{display:flex;justify-content:center;margin-top:20px}
.button,.wp-element-button{display:inline-block;background:var(--pmg-red);color:#fff;padding:9px 18px;border:0;border-radius:3px;font-weight:700}
.article-wrap{background:#fff;border:1px solid var(--pmg-border);padding:25px}
.breadcrumbs{font-size:12px;color:#777;margin-bottom:12px}
.entry-header h1{font-size:42px;line-height:1.15;margin:8px 0 10px}
.article-meta{display:flex;flex-wrap:wrap;gap:10px;color:#666;font-size:13px;border-bottom:1px solid var(--pmg-border);padding-bottom:14px;margin-bottom:18px}
.featured-image{margin:0 0 18px}
.featured-image img{width:100%;max-height:620px;object-fit:cover}
.entry-content{font-size:18px;line-height:1.85}
.entry-content h2,.entry-content h3{line-height:1.3}
.entry-content a{color:var(--pmg-red);text-decoration:underline}
.share-row{display:flex;gap:8px;align-items:center;border-top:1px solid var(--pmg-border);border-bottom:1px solid var(--pmg-border);padding:12px 0;margin:22px 0}
.share-row a{background:var(--pmg-red);color:#fff;padding:6px 10px;border-radius:3px;font-size:12px}
.author-box{display:flex;gap:14px;background:var(--pmg-red-soft);padding:16px;margin-top:25px}
.author-avatar img{width:70px;height:70px;border-radius:50%;object-fit:cover}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pmg-footer{background:#111;color:#ddd;margin-top:30px}
.footer-top{padding:35px 0;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:25px}
.footer-title{color:#fff;font-size:17px;margin:0 0 10px}
.footer-top ul{list-style:none;padding:0;margin:0}
.footer-top li{padding:4px 0;font-size:13px}
.footer-bottom{border-top:1px solid #333;padding:15px 0;font-size:12px}
.pmg-footer a:hover{color:#fff}
.no-results{background:#fff;padding:35px;text-align:center}
.pagination{display:flex;gap:6px;justify-content:center;margin:25px 0}
.pagination a,.pagination span{padding:7px 11px;background:#fff;border:1px solid var(--pmg-border)}
.pagination .current{background:var(--pmg-red);color:#fff}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-side{grid-template-columns:repeat(2,1fr);grid-template-rows:none}
  .tech-card{flex-basis:calc(33.333% - 10px)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .complete-news{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .content-layout{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
  .footer-top{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .container{width:min(100% - 20px,var(--pmg-container))}
  .pmg-topbar{display:none}
  .pmg-header-inner{min-height:70px;gap:10px}
  .custom-logo{max-width:150px;max-height:50px}
  .pmg-site-tagline{display:none}
  .pmg-menu-toggle{display:block}
  .pmg-nav-inner{justify-content:space-between}
  .pmg-menu{display:none;position:absolute;left:0;right:0;top:70px;background:#111;z-index:1000;flex-direction:column}
  .pmg-menu.is-open{display:flex}
  .pmg-menu>li>a{border-bottom:1px solid #292929}
  .pmg-search{display:none}
  .pmg-breaking-inner{min-height:38px}
  .hero-main,.hero-main img{min-height:330px;height:330px}
  .hero-main-content h1{font-size:24px}
  .hero-side{grid-template-columns:1fr}
  .news-tile{grid-template-columns:110px 1fr}
  .news-tile img{width:110px;height:85px}
  .tech-card{flex-basis:78%}
  .news-grid,.complete-news,.related-grid{grid-template-columns:1fr}
  .complete-news{gap:16px}
  .complete-news .card-body{padding:14px 15px 16px}
  .complete-news .card h3{font-size:18px;line-height:1.4}
  .sidebar{display:block}
  .entry-header h1{font-size:30px}
  .article-wrap{padding:15px}
  .entry-content{font-size:17px}
  .footer-top{grid-template-columns:1fr}
}

/* PMG 1.1 responsive advertising and compact section refinements */
.pmg-header-ad{width:min(100%,728px);min-width:0;min-height:90px}
.pmg-header-ad .ad-slot{width:100%;min-height:90px}
.pmg-header-ad img,.pmg-header-ad iframe,.pmg-header-ad ins{max-width:100%!important}
.pmg-header-ad img{height:auto}
.pmg-category-section{margin-top:26px}
.section-news-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.in-feed-ad{grid-column:1/-1;width:100%;margin:2px 0 4px;overflow:hidden}
.in-feed-ad .ad-slot{min-height:120px;width:100%}
.in-feed-ad img,.in-feed-ad iframe,.in-feed-ad ins{max-width:100%!important}

@media(max-width:980px){
  .pmg-header-inner{flex-wrap:wrap;padding:12px 0}
  .pmg-header-ad{width:min(100%,600px);min-height:74px}
  .pmg-header-ad .ad-slot{min-height:74px}
  .section-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .in-feed-ad .ad-slot{min-height:100px}
}
@media(max-width:700px){
  .pmg-header-inner{flex-direction:column;align-items:stretch;padding:10px 0 12px;min-height:auto}
  .pmg-brand{justify-content:center}
  .pmg-site-tagline{display:none}
  .pmg-header-ad{display:flex;width:100%;min-height:60px;margin:0}
  .pmg-header-ad .ad-slot{min-height:60px}
  .section-news-grid{grid-template-columns:1fr}
  .pmg-category-section{margin-top:22px}
  .in-feed-ad{margin:0}
  .in-feed-ad .ad-slot{min-height:90px}
  .card img{height:auto;aspect-ratio:16/9;object-fit:cover}
}


/* PMG 1.3 media sidebar and 10-item latest-news ticker */
.breaking-track{flex:1;min-width:0;overflow:hidden}
.breaking-marquee{overflow:hidden;position:relative;width:100%}
.breaking-marquee-track{display:inline-flex;align-items:center;gap:12px;min-width:max-content;animation:pmgTicker 42s linear infinite}
.breaking-marquee-track:hover{animation-play-state:paused}
.breaking-marquee-track a{font-weight:700;color:var(--pmg-black)}
.breaking-marquee-track span{color:var(--pmg-red);font-weight:900}
@keyframes pmgTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.homepage-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px;align-items:start}
.homepage-main-column{min-width:0}
.homepage-right-sidebar{min-width:0;position:sticky;top:18px}
.homepage-right-sidebar .sidebar-box{margin-bottom:18px}
.pmg-widget-image{overflow:hidden;background:#f3f3f3}
.pmg-widget-image img{width:100%;height:auto;max-width:var(--pmg-widget-width,100%);margin:0 auto;object-fit:cover}
.pmg-widget-image-small img{max-height:220px}
.pmg-widget-image-medium img{max-height:360px}
.pmg-widget-image-large img{max-height:520px}
.pmg-widget-image-full img{max-height:none}
.pmg-widget-video video{display:block;width:100%;height:auto;max-height:520px;background:#000}
.pmg-widget-slider{position:relative;overflow:hidden;background:#111}
.pmg-widget-slide{display:none}
.pmg-widget-slide.is-active{display:block}
.pmg-widget-slide img{width:100%;aspect-ratio:16/10;object-fit:cover}
.pmg-slider-dots{display:flex;justify-content:center;gap:5px;padding:8px;background:rgba(0,0,0,.75)}
.pmg-slider-dots button{border:1px solid #fff;background:transparent;color:#fff;min-width:25px;height:25px;border-radius:50%;font-size:11px;cursor:pointer}
.pmg-slider-dots button.is-active{background:var(--pmg-red);border-color:var(--pmg-red)}
.pmg-media-widget small{display:block;margin-top:5px;color:#666}
@media(max-width:980px){.homepage-content-layout{grid-template-columns:1fr}.homepage-right-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.homepage-right-sidebar .sidebar-box{margin-bottom:0}}
@media(max-width:700px){.homepage-right-sidebar{display:block}.homepage-right-sidebar .sidebar-box{margin-bottom:15px}.breaking-marquee-track{animation-duration:34s}.breaking-marquee-track a{font-size:13px}}
