/*
Theme Name: Rah-e-Haq Modern News
Theme URI: https://rahehaq.pk/
Author: Rah-e-Haq News Channel
Description: Responsive blue-and-red news portal theme for Rah-e-Haq News Channel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: rah-e-haq-modern
*/
:root{--navy:#06265e;--blue:#0b438e;--red:#e50920;--ink:#13284b;--muted:#66758b;--line:#dce5f0;--paper:#fff;--bg:#f2f6fb;--radius:5px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,"Noto Nastaliq Urdu",sans-serif;font-size:15px;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto;display:block}.container{width:min(1200px,94%);margin:auto}.topbar{background:#041d4b;color:#fff;font-size:12px}.topbar-inner{display:flex;justify-content:space-between;gap:15px;align-items:center;min-height:36px}.topbar a{color:#fff}.topbar .live-link{background:var(--red);padding:7px 13px;font-weight:700}.masthead{background:radial-gradient(circle at 85% 30%,#0e4c9c 0,#06265e 50%,#041b43 100%);color:#fff;border-bottom:3px solid var(--red);position:relative;overflow:hidden}.masthead:after{content:"";position:absolute;width:280px;height:280px;border:1px solid #ffffff16;border-radius:50%;right:4%;top:-120px;box-shadow:0 0 0 20px #ffffff08,0 0 0 40px #ffffff05;pointer-events:none}.brand-row{min-height:180px;display:flex;align-items:center;justify-content:center;gap:28px;position:relative;z-index:1;padding:18px 0}.brand-logo{width:165px;height:165px;object-fit:contain;filter:drop-shadow(0 4px 5px #0005)}.brand-copy{text-align:left}.brand-name{font-weight:900;font-size:clamp(30px,4vw,49px);line-height:1.08;letter-spacing:1px}.brand-name span{background:var(--red);padding:1px 8px;border-radius:3px}.brand-channel{letter-spacing:8px;font-size:13px;text-align:center;margin-top:8px}.brand-tagline{font-family:serif;text-align:center;font-size:18px;margin-top:4px}.main-nav{background:#06265e;color:#fff}.nav-inner{display:flex;align-items:stretch;min-height:43px;gap:0}.nav-inner a{color:#fff;font-weight:700;font-size:12px;padding:12px 13px;white-space:nowrap}.nav-inner a:hover,.nav-inner .current-menu-item>a{background:var(--red)}.menu-toggle{display:none;background:var(--red);color:white;border:0;padding:10px 14px}.breaking{display:flex;background:white;border:1px solid var(--line);margin:15px 0;min-height:42px;align-items:center;overflow:hidden}.breaking-label{background:var(--red);color:white;font-weight:800;padding:8px 14px;white-space:nowrap}.breaking-text{padding:7px 14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}.breaking-text a{margin-right:20px}.layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,.78fr);gap:20px;align-items:start}.lead-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);gap:12px;margin-bottom:24px}.hero-story{position:relative;min-height:340px;background:var(--navy);overflow:hidden;border-radius:var(--radius);color:white}.hero-story img{width:100%;height:100%;min-height:340px;object-fit:cover;opacity:.9}.hero-overlay{position:absolute;inset:0;background:linear-gradient(0deg,#031735 0%,#031735d9 28%,transparent 80%);display:flex;flex-direction:column;justify-content:flex-end;padding:18px}.category-tag{display:inline-block;background:var(--blue);color:white;font-size:11px;font-weight:800;padding:3px 8px;text-transform:uppercase;align-self:flex-start}.hero-story .category-tag{background:var(--red)}.hero-story h2{font-size:clamp(21px,2vw,28px);line-height:1.45;margin:9px 0;color:white}.meta{font-size:11px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}.hero-story .meta{color:#e3eaf6}.side-headlines{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px}.mini-story{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.mini-story:last-child{border:0}.mini-story img{width:105px;height:78px;object-fit:cover}.mini-story h3{font-size:14px;line-height:1.55;margin:3px 0 5px}.mini-story .meta{font-size:10px}.section{margin:24px 0}.section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--red);margin-bottom:12px}.section-title h2{font-size:18px;color:#fff;background:var(--red);padding:5px 15px;margin:0;text-transform:uppercase}.section-title a{font-size:11px;font-weight:800;color:var(--blue)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .18s,box-shadow .18s}.post-card:hover{transform:translateY(-2px);box-shadow:0 7px 20px #06265e12}.post-thumb{position:relative;background:#d9e4f2}.post-thumb img{width:100%;height:145px;object-fit:cover}.post-thumb .category-tag{position:absolute;bottom:0;left:0}.post-card h3{font-size:15px;line-height:1.55;margin:9px 10px 7px}.post-card .meta{padding:0 10px 11px}.widget{background:#fff;border:1px solid var(--line);margin-bottom:16px;border-radius:var(--radius);overflow:hidden}.widget-title{background:linear-gradient(90deg,var(--red),var(--navy));color:#fff;font-weight:800;padding:8px 12px;font-size:14px;margin:0}.widget-body{padding:12px}.live-screen{background:radial-gradient(circle,#0c4c9b,#031b45);color:white;text-align:center;padding:18px 10px}.live-screen img{width:92px;height:92px;object-fit:contain;margin:0 auto 8px}.live-button{display:inline-block;background:var(--red);color:white;font-weight:800;padding:6px 15px;border-radius:3px}.social-links{display:flex;gap:8px;justify-content:space-between}.social-links a{background:var(--navy);color:white;border-radius:3px;min-width:35px;text-align:center;padding:7px;font-weight:bold}.subscribe-form input{width:100%;padding:10px;border:1px solid var(--line);margin-bottom:8px}.subscribe-form button{width:100%;border:0;background:var(--red);color:white;font-weight:800;padding:10px;cursor:pointer}.popular-list{list-style:none;padding:0;margin:0;counter-reset:pop}.popular-list li{counter-increment:pop;display:grid;grid-template-columns:28px 1fr;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.popular-list li:before{content:counter(pop);background:var(--red);color:white;font-weight:800;text-align:center;border-radius:2px}.brand-widget{background:linear-gradient(145deg,#0b438e,#041b43);color:white;text-align:center;padding:20px 12px}.brand-widget img{width:100px;height:100px;object-fit:contain;margin:auto}.brand-widget p{font-size:17px}.site-footer{margin-top:35px;background:#041b43;color:#fff;border-top:3px solid var(--red)}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.3fr 1fr;gap:25px;padding:28px 0}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:75px}.footer-grid h3{font-size:14px;border-bottom:1px solid #ffffff30;padding-bottom:7px}.footer-grid ul{list-style:none;padding:0;margin:0;font-size:13px}.footer-grid li{margin:4px 0}.copyright{border-top:1px solid #ffffff25;padding:12px 0;font-size:11px;display:flex;justify-content:space-between;gap:12px}.content-box{background:white;padding:24px;border:1px solid var(--line);margin-bottom:20px}.content-box h1{line-height:1.4}.article-thumb{width:100%;max-height:470px;object-fit:cover;margin:15px 0}.article-content{font-size:17px;line-height:2}.article-content img{height:auto}.pagination{padding:20px 0}.pagination .page-numbers{display:inline-block;padding:8px 12px;background:#fff;border:1px solid var(--line);margin:2px}.pagination .current{background:var(--red);color:white}.search-form{display:flex;gap:8px}.search-form input{min-width:0;flex:1;padding:10px;border:1px solid var(--line)}.search-form button{background:var(--red);color:white;border:0;padding:0 14px}
@media(max-width:1000px){.nav-inner{overflow-x:auto}.nav-inner a{padding:12px 10px}.layout{grid-template-columns:minmax(0,1fr) 270px}.lead-grid{grid-template-columns:1fr}.hero-story{min-height:300px}.hero-story img{min-height:300px}.side-headlines{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.mini-story{grid-template-columns:85px 1fr}.mini-story img{width:85px;height:70px}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body{font-size:14px}.topbar-inner{min-height:34px}.topbar .date-text{display:none}.brand-row{min-height:125px;gap:12px;justify-content:flex-start}.brand-logo{width:95px;height:95px}.brand-name{font-size:clamp(22px,6vw,34px);letter-spacing:0}.brand-channel{letter-spacing:4px;font-size:10px}.brand-tagline{font-size:14px}.nav-inner{display:none;flex-direction:column;overflow:visible}.nav-inner.is-open{display:flex}.nav-inner a{padding:10px 14px;border-bottom:1px solid #ffffff18}.menu-toggle{display:block;width:100%;text-align:left}.breaking{margin:10px 0}.breaking-label{font-size:11px;padding:8px}.breaking-text{font-size:12px}.layout{grid-template-columns:1fr;gap:8px}.lead-grid{grid-template-columns:1fr}.hero-story,.hero-story img{min-height:280px}.hero-story h2{font-size:21px}.side-headlines{display:block}.mini-story{grid-template-columns:100px 1fr}.mini-story img{width:100px;height:75px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.post-thumb img{height:120px}.post-card h3{font-size:13px;margin:7px 8px}.post-card .meta{padding:0 8px 9px}.section{margin:18px 0}.section-title h2{font-size:15px}.footer-grid{grid-template-columns:1fr 1fr;gap:15px;padding:22px 0}.copyright{display:block}.content-box{padding:15px}.brand-widget{display:none}}
@media(max-width:390px){.post-grid{grid-template-columns:1fr}.post-thumb img{height:180px}.brand-logo{width:78px;height:78px}.brand-name{font-size:22px}}

/* Rah-e-Haq: Header alignment fix */
.masthead {
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 22px 0;
    box-sizing: border-box;
}

.masthead .brand-row {
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.masthead .brand-logo {
    display: block;
    width: 140px;
    height: 140px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.masthead .brand-copy {
    min-width: 0;
    text-align: center;
}

.masthead .brand-name {
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.masthead .brand-name span {
    display: inline-block;
}

.masthead .brand-channel {
    line-height: 1.6;
}

.masthead .brand-tagline {
    line-height: 1.8;
}

@media (max-width: 600px) {
    .masthead {
        padding: 16px 0;
    }

    .masthead .brand-row {
        gap: 12px;
        padding: 0 10px;
    }

    .masthead .brand-logo {
        width: 85px;
        height: 85px;
    }

    .masthead .brand-name {
        font-size: clamp(19px, 5vw, 28px);
    }

    .masthead .brand-channel {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .masthead .brand-tagline {
        font-size: 12px;
    }
}