/*
Theme Name: Gwadar Urdu Press
Author: Gwadar Digital
Description: Responsive RTL Urdu news theme with editable category sections, ticker, advertising spaces and mobile navigation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gwadar-urdu-press
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images
*/
:root{--accent:#b7192e;--ink:#132336;--muted:#687382;--line:#e2e6eb;--paper:#f5f6f8}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font-family:"Noto Nastaliq Urdu","Urdu Typesetting","Jameel Noori Nastaleeq",Tahoma,Arial,sans-serif;font-size:18px;line-height:2.1}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #d99d26;outline-offset:4px}img{max-width:100%;height:auto;display:block}.wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}.topbar{background:var(--ink);color:#fff;font-family:Tahoma,sans-serif;font-size:12px;line-height:2.8}.topbar .wrap{display:flex;justify-content:space-between}.masthead{display:flex;align-items:center;justify-content:space-between;gap:40px;padding-block:30px}.brand{display:flex;align-items:center;gap:20px}.custom-logo{max-width:150px;max-height:105px;width:auto}.brand-name{font-size:44px;font-weight:800;line-height:1.8;letter-spacing:-1px}.brand p{font-size:16px;color:var(--muted);margin:0}.header-notice{display:grid;place-content:center;text-align:center;min-width:330px;min-height:90px;background:var(--paper);border:1px solid var(--line);color:var(--muted)}small{font-family:Tahoma,sans-serif;font-size:11px;letter-spacing:1px}.header-notice strong{font-size:21px}.nav-shell{background:var(--ink);border-bottom:4px solid var(--accent)}.main-nav{display:flex;align-items:center;justify-content:space-between;gap:20px}#main-menu ul{display:flex;flex-wrap:wrap;gap:0;list-style:none;margin:0;padding:0}#main-menu li{position:relative}#main-menu a{color:#fff;display:block;padding:10px 18px;font-weight:700;font-size:19px}#main-menu a:hover,#main-menu .current-menu-item>a{background:var(--accent)}#main-menu .sub-menu,#main-menu .children{display:none;position:absolute;z-index:50;top:100%;right:0;min-width:200px;background:var(--ink)}#main-menu li:hover>ul,#main-menu li:focus-within>ul{display:block}.search{display:flex;max-width:230px;min-width:160px}.search input{min-width:0;width:100%;border:0;background:#ffffff14;color:#fff;padding:10px;font:14px Tahoma}.search input::placeholder{color:#d2d8df}.search button{border:0;background:var(--accent);color:#fff;font-size:25px;cursor:pointer}.menu-toggle{display:none}.ticker{display:flex;align-items:stretch;margin-block:24px;border:1px solid var(--line);overflow:hidden}.ticker>strong{background:var(--accent);color:white;padding:8px 24px;flex-shrink:0}.ticker-window{overflow:hidden;display:flex;align-items:center;min-width:0}.ticker-track{display:flex;gap:60px;white-space:nowrap;padding-inline:30px;animation:news-scroll 65s linear infinite}.ticker-track a{font-size:18px;font-weight:700}.ticker-track a:before{content:'●';color:var(--accent);font-size:10px;margin-left:15px}.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:paused}@keyframes news-scroll{0%,8%{transform:translateX(-15%)}92%,100%{transform:translateX(85%)}}.main-content{padding-bottom:60px;min-height:45vh}.section-title{font-size:27px;font-weight:800;border-right:5px solid var(--accent);padding-right:15px;margin:20px 0 25px;line-height:1.8}.hero-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:22px}.news-card{min-width:0;border-bottom:1px solid var(--line);padding-bottom:14px}.picture{display:block;overflow:hidden;background:var(--paper);aspect-ratio:16/10}.picture img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.picture:hover img{transform:scale(1.055)}.placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#edf0f4,#d7dfe8);color:#6e7d90;font-size:22px}.card-body{padding-top:10px}.meta{font:12px/1.8 Tahoma,sans-serif;color:var(--muted);margin-block:4px 8px}.news-card h2{font-size:22px;line-height:2;margin:0;font-weight:700}.news-card p{font-size:18px;color:var(--muted);margin:10px 0}.lead-card{grid-row:span 2}.lead-card .picture{aspect-ratio:4/3}.lead-card h2{font-size:31px;line-height:2}.hero-grid>.news-card:not(.lead-card) h2{font-size:19px}.wide-notice{background:var(--paper);border:1px dashed #cad1db;display:flex;align-items:center;justify-content:center;gap:25px;margin-block:35px;padding:22px;font-size:24px;color:var(--muted)}.wide-notice span{font:11px Tahoma}.news-section{margin-top:38px}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading>a{font-size:15px;color:var(--accent)}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:50px}.article h1{font-size:39px;line-height:2;margin:15px 0 20px}.eyebrow{color:var(--accent);font-size:16px}.article-image{margin-block:25px}.article-image img{width:100%;height:auto}.entry-content{font-size:23px;line-height:2.5;overflow-wrap:anywhere}.entry-content p{margin-bottom:24px}.entry-content iframe,.entry-content video{max-width:100%}.entry-content table{display:block;overflow:auto;max-width:100%}.entry-content a{color:var(--accent);text-decoration:underline}.notice-box{margin-block:30px;padding:35px 20px;border:1px dashed #c4cdd7;background:var(--paper);text-align:center;min-height:260px;display:flex;flex-direction:column;justify-content:center}.notice-box h2{font-size:25px}.notice-box p{font-size:17px}.sidebar .news-card{margin-bottom:25px}.pagination,.post-navigation{border-top:1px solid var(--line);margin-top:30px;padding-top:25px}.nav-links{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between}.page-numbers{padding:5px 15px;border:1px solid var(--line)}.page-numbers.current{background:var(--accent);color:#fff}footer{background:var(--ink);color:#e0e6ec;padding-top:40px;border-top:5px solid var(--accent)}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}.footer-grid h2{font-size:32px}.footer-grid h3{font-size:22px}.footer-grid p{color:#b6c2cf;font-size:17px}.footer-grid ul{padding:0;list-style:none;display:flex;gap:20px;flex-wrap:wrap}.copyright{border-top:1px solid #ffffff20;padding-block:20px;margin-top:30px;font-size:14px}.screen-reader-text,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.skip:focus{position:fixed;top:10px;right:10px;width:auto;height:auto;clip:auto;z-index:100000;background:#fff;padding:15px}
@media(max-width:1000px){.header-notice{min-width:240px}.brand-name{font-size:35px}.hero-grid{grid-template-columns:2fr 1fr}.hero-grid>.news-card:last-child{display:none}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.article-layout{gap:25px;grid-template-columns:minmax(0,1fr) 250px}.main-nav{flex-wrap:wrap}#main-menu a{padding:8px 12px}.search{margin-bottom:10px}}
@media(max-width:700px){.wrap{width:calc(100% - 28px)}.topbar{font-size:10px}.masthead{padding-block:20px}.brand{gap:12px}.brand-name{font-size:30px}.brand p{font-size:13px}.custom-logo{max-width:80px}.header-notice{display:none}.main-nav{position:relative;gap:10px;padding-block:10px}.menu-toggle{display:block;background:transparent;border:1px solid #ffffff45;color:#fff;padding:6px 14px;font:18px Tahoma;cursor:pointer}#main-menu{display:none;order:3;width:100%}#main-menu.is-open{display:block}#main-menu ul{display:block}#main-menu .sub-menu,#main-menu .children{position:static;display:block;padding-right:18px}#main-menu a{font-size:20px}.search{margin:0;max-width:200px}.ticker{margin-block:16px}.ticker>strong{padding:7px 12px;font-size:16px}.ticker-track a{font-size:16px}.hero-grid{grid-template-columns:1fr 1fr;gap:20px 14px}.lead-card{grid-column:1/-1;grid-row:auto}.lead-card .picture{aspect-ratio:16/10}.lead-card h2{font-size:27px}.hero-grid>.news-card:last-child{display:block}.hero-grid .news-card:not(.lead-card) h2{font-size:19px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.news-card h2{font-size:19px}.section-title{font-size:25px}.wide-notice{font-size:19px;padding:20px 10px;gap:15px}.article-layout{display:block}.article h1{font-size:29px}.entry-content{font-size:22px;line-height:2.4}.sidebar{border-top:1px solid var(--line);margin-top:35px}.footer-grid{grid-template-columns:1fr;gap:10px}.section-heading>a{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none;white-space:normal;flex-wrap:wrap;gap:15px}.ticker-window{max-height:130px;overflow:auto}.picture img{transition:none}}

/* News masthead, navigation and advertising */
.main-nav{justify-content:center;flex-wrap:wrap;gap:0}.main-nav #main-menu{flex:1}#main-menu>ul{justify-content:center}#main-menu a{font-size:27px;font-weight:800;padding:12px 17px;line-height:2}#main-menu>ul>li+li{border-right:1px solid #ffffff22}.search{max-width:190px}.header-notice{display:grid!important;min-width:390px;min-height:110px;border:1px dashed #bcc8d5;border-right:5px solid var(--accent);background:linear-gradient(115deg,#f7f9fc,#edf2f7);border-radius:5px;color:var(--ink)}.header-notice strong{font-size:29px}.header-notice small{color:var(--accent);margin-bottom:8px}.article-notice{min-height:115px;border-right:5px solid var(--accent)}.article-notice-tall{min-height:320px;max-width:620px;margin:30px auto;background:linear-gradient(135deg,#f5f7fa,#e8eef5);border:1px dashed #b6c3d2;border-top:4px solid var(--accent)}.footer-grid{grid-template-columns:1fr 1fr 1.2fr;gap:45px;padding-bottom:30px}.footer-grid h3{border-bottom:1px solid #ffffff25;padding-bottom:12px;color:#fff}.footer-grid ul{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;font-size:18px}.footer-grid li a:hover{color:#fff;text-decoration:underline}.copyright{text-align:center}.news-section{padding-top:15px;border-top:1px solid var(--line)}@media(max-width:1000px){.header-notice{min-width:280px}.main-nav #main-menu{flex:auto}.footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){.masthead{flex-wrap:wrap;gap:18px}.header-notice{width:100%;min-width:0;min-height:90px}.header-notice strong{font-size:24px}.main-nav{justify-content:space-between;gap:10px}.main-nav #main-menu{flex:auto;width:100%}#main-menu a{font-size:24px}#main-menu>ul>li+li{border-right:0;border-top:1px solid #ffffff18}.footer-grid{grid-template-columns:1fr;gap:20px}.article-notice-tall{min-height:280px}}
#main-menu a{font-size:30px!important;font-weight:900!important;text-shadow:0 0 .3px currentColor}#main-menu>ul>li+li:before{content:"◆";position:absolute;right:-4px;top:50%;transform:translateY(-50%);color:#c84858;font:8px Arial}.brand{flex-direction:column;align-items:flex-start;gap:0}.header-notice{display:grid!important}.header-notice:after{content:"اپنے کاروبار کو نمایاں کریں";font-size:18px;color:#66788a}@media(max-width:700px){#main-menu a{font-size:25px!important}#main-menu>ul>li+li:before{display:none}}
@media(min-width:701px){#main-menu a{font-size:34px!important;font-weight:900!important;padding:12px 18px;text-shadow:.35px 0 currentColor,-.35px 0 currentColor}}
/* Start the news ticker immediately on every page, retaining its moving speed. */
@keyframes news-scroll{from{transform:translateX(-15%)}to{transform:translateX(85%)}}
.ticker-track{animation-duration:54.6s}
/* Readable publication details on opened articles. */
.article>.eyebrow{font-size:23px;font-weight:800;line-height:2}
.article>.meta{font-size:16px;font-weight:700;line-height:2;color:#4d5968}

.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:running}

/* Slightly larger, stronger masthead tagline. */
.masthead .brand p{font-size:26px!important;font-weight:900!important;text-shadow:.2px 0 currentColor,-.2px 0 currentColor}
@media(max-width:700px){.masthead .brand p{font-size:24px!important}}

/* Stronger footer navigation and readable introduction. */
.footer-grid h2{font-size:36px;font-weight:900}.footer-grid h3{font-size:26px;font-weight:800}.footer-grid a{font-size:21px;font-weight:800}.footer-grid p{font-size:19px;font-weight:600;line-height:2.25}.footer-grid .footer-about{font-size:19px;line-height:2.3}.footer-grid svg,.footer-grid i{font-size:24px;width:1.2em;height:1.2em}

.footer-grid p{font-weight:800;color:#e0e6ec}.footer-grid a{font-weight:900}

.footer-grid p{font-size:21px;font-weight:900;text-shadow:.3px 0 currentColor,-.3px 0 currentColor}.footer-grid .footer-about{font-size:21px}.footer-grid a{font-size:23px;text-shadow:.3px 0 currentColor,-.3px 0 currentColor}.footer-grid h3{font-size:28px;font-weight:900}.footer-grid h2{font-size:38px}

/* Larger footer text and copyright. */
.footer-grid p,.footer-grid .footer-about{font-size:23px;font-weight:900;text-shadow:.45px 0 currentColor,-.45px 0 currentColor}.footer-grid a{font-size:25px;font-weight:900;text-shadow:.45px 0 currentColor,-.45px 0 currentColor}.footer-grid h3{font-size:30px}.footer-grid h2{font-size:40px}.copyright{font-size:21px;font-weight:800;line-height:2.1;color:#fff}

/* Downloadable Nastaleeq for phones and computers without an installed Urdu font. */
@font-face{font-family:'Gwadar Jameel Web';src:url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN/JameelNooriNastaleeq.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
body{font-family:'Gwadar Jameel Web','Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif}.search input,.menu-toggle{font-family:'Gwadar Jameel Web','Jameel Noori Nastaleeq',serif}.search input{font-size:17px}.menu-toggle{line-height:2}

@media(max-width:700px){body,.search input,.menu-toggle{font-family:'Gwadar Jameel Web','Jameel Noori Nastaleeq',serif!important}}

/* Mobile-only reading sizes and stronger Urdu text. */
@media(max-width:700px){body,.search input,.menu-toggle{font-family:'Gwadar Jameel Web','Jameel Noori Nastaleeq',serif!important}.main-content .section-title,.category .main-content>.section-title{font-size:32px!important;font-weight:900!important}.news-card h2,.hero-grid>.news-card:not(.lead-card) h2{font-size:25px!important;font-weight:800!important;line-height:2.1}.lead-card h2{font-size:31px!important}.article h1{font-size:33px!important;font-weight:800!important;line-height:2.1}.entry-content{font-size:26px!important;font-weight:700!important;line-height:2.35}.entry-content p,.entry-content li{font-size:inherit!important;font-weight:inherit!important}.article .eyebrow{font-size:25px;font-weight:800}.menu-toggle{font-size:21px;font-weight:700}}

/* Larger, bold scrolling headlines. */
.ticker-track a{font-size:27px!important;font-weight:900!important;line-height:2.1;text-shadow:.25px 0 currentColor,-.25px 0 currentColor}@media(max-width:700px){.ticker-track a{font-size:23px!important}}
