/*
Theme Name: Online Sindh Media
Theme URI: https://onlinesindh.online/
Author: Online Sindh
Author URI: https://onlinesindh.online/
Description: A lightweight, professional digital media theme for Online Sindh — news, documentaries, jobs, history and culture.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: online-sindh
*/

:root{
  --os-red:#d71920;
  --os-red-dark:#a90f15;
  --os-black:#111111;
  --os-cream:#f7f2e8;
  --os-paper:#fffdf8;
  --os-gray:#686868;
  --os-border:#e7dfd2;
  --os-ajrak:#171717;
  --os-max:1240px;
  --os-radius:12px;
  --os-shadow:0 8px 28px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--os-paper);color:var(--os-black);font-family:Arial,Helvetica,sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(100% - 32px,var(--os-max));margin-inline:auto}

/* Ajrak-inspired decorative pattern */
.ajrak-strip{
  height:8px;
  background:
    linear-gradient(45deg,transparent 42%,var(--os-red) 43%,var(--os-red) 57%,transparent 58%) 0 0/18px 18px,
    linear-gradient(-45deg,transparent 42%,var(--os-black) 43%,var(--os-black) 57%,transparent 58%) 9px 0/18px 18px;
  background-color:var(--os-cream);
}
.topbar{background:var(--os-black);color:#fff;font-size:13px}
.topbar .container{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.topbar a{opacity:.9}
.site-header{background:#fff;border-bottom:1px solid var(--os-border);position:sticky;top:0;z-index:50}
.header-main{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;gap:13px;min-width:220px}
.brand img{width:76px;height:76px;object-fit:contain}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-size:28px;font-weight:900;letter-spacing:-1px}
.brand-tagline{font-size:12px;color:var(--os-gray);font-weight:700;letter-spacing:.7px}
.main-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.main-nav a{padding:10px 11px;font-weight:700;font-size:14px;border-radius:8px}
.main-nav a:hover{background:var(--os-cream);color:var(--os-red)}
.nav-menu{list-style:none;padding:0;margin:0;display:flex;gap:4px;align-items:center}
.nav-menu li{margin:0}
.menu-toggle{display:none;background:var(--os-black);color:#fff;border:0;border-radius:8px;padding:10px 13px;font-weight:700}

/* Breaking news */
.breaking{background:var(--os-red);color:#fff}
.breaking .container{display:flex;align-items:center;gap:14px;min-height:44px}
.breaking-label{font-size:12px;font-weight:900;letter-spacing:.8px;background:#fff;color:var(--os-red);padding:5px 9px;border-radius:5px;white-space:nowrap}
.breaking a{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Hero */
.hero{padding:30px 0 18px}
.hero-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px}
.hero-card{position:relative;overflow:hidden;border-radius:var(--os-radius);min-height:440px;background:var(--os-black);box-shadow:var(--os-shadow)}
.hero-card img{width:100%;height:440px;object-fit:cover;opacity:.86}
.hero-overlay{position:absolute;inset:auto 0 0;padding:65px 28px 26px;background:linear-gradient(transparent,rgba(0,0,0,.9));color:#fff}
.kicker{display:inline-block;color:var(--os-red);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:1px;margin-bottom:7px}
.hero-overlay h1{font-size:clamp(30px,4vw,52px);line-height:1.08;margin:0 0 10px;font-weight:900}
.hero-overlay p{margin:0;color:#eee;max-width:780px}
.hero-side{display:grid;gap:20px}
.feature-card{display:grid;grid-template-columns:150px 1fr;gap:15px;border:1px solid var(--os-border);background:#fff;border-radius:var(--os-radius);overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.feature-card img{height:145px;width:150px;object-fit:cover}
.feature-card .content{padding:14px 14px 14px 0}
.feature-card h3{font-size:18px;line-height:1.25;margin:5px 0 6px}
.meta{font-size:12px;color:var(--os-gray);display:flex;gap:10px;flex-wrap:wrap}

/* Sections */
.section{padding:26px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px;border-bottom:2px solid var(--os-black);padding-bottom:9px}
.section-head h2{margin:0;font-size:28px;line-height:1.1}
.section-head a{font-size:13px;font-weight:800;color:var(--os-red)}
.section-head .accent{border-left:5px solid var(--os-red);padding-left:10px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--os-border);border-radius:var(--os-radius);overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.045)}
.card img{width:100%;height:210px;object-fit:cover}
.card-body{padding:15px}
.card h3{font-size:20px;line-height:1.25;margin:5px 0 8px}
.card p{margin:0;color:#5d5d5d;font-size:14px}
.card:hover{transform:translateY(-2px);box-shadow:var(--os-shadow);transition:.2s}
.category-badge{display:inline-block;background:var(--os-red);color:#fff;font-size:11px;font-weight:900;padding:4px 7px;border-radius:4px;text-transform:uppercase}

/* Two-column content */
.content-layout{display:grid;grid-template-columns:2fr 1fr;gap:28px}
.list-card{display:grid;grid-template-columns:220px 1fr;gap:18px;border-bottom:1px solid var(--os-border);padding:0 0 18px;margin-bottom:18px}
.list-card img{width:220px;height:135px;object-fit:cover;border-radius:10px}
.list-card h3{margin:4px 0 6px;font-size:21px;line-height:1.25}
.sidebar-box{border:1px solid var(--os-border);background:#fff;border-radius:var(--os-radius);padding:18px;margin-bottom:18px}
.sidebar-box h3{margin:0 0 12px;font-size:19px;border-left:4px solid var(--os-red);padding-left:9px}
.job-item{padding:12px 0;border-bottom:1px solid var(--os-border)}
.job-item:last-child{border-bottom:0}
.job-item h4{margin:0 0 3px;font-size:16px;line-height:1.3}
.job-meta{font-size:12px;color:var(--os-gray)}

/* Ajrak callout */
.ajrak-callout{background:var(--os-black);color:#fff;border-radius:var(--os-radius);padding:25px;position:relative;overflow:hidden}
.ajrak-callout:after{content:"";position:absolute;inset:auto -20px -30px auto;width:230px;height:230px;opacity:.25;background:
  repeating-conic-gradient(from 45deg,var(--os-red) 0 12deg,transparent 12deg 24deg);
  border-radius:50%}
.ajrak-callout h3{margin:0 0 5px;font-size:25px}
.ajrak-callout p{margin:0;color:#ddd;max-width:650px}

/* Single posts/pages */
.page-hero{background:var(--os-black);color:#fff;padding:42px 0}
.page-hero h1{font-size:clamp(32px,5vw,58px);line-height:1.1;margin:0 0 10px}
.single-wrap{width:min(100% - 32px,900px);margin:35px auto}
.single-wrap .featured-image{width:100%;max-height:560px;object-fit:cover;border-radius:var(--os-radius);margin-bottom:22px}
.single-wrap h1{font-size:clamp(32px,5vw,56px);line-height:1.12;margin:0 0 12px}
.entry-content{font-size:18px;line-height:1.85}
.entry-content h2{font-size:30px;line-height:1.25;margin-top:32px}
.entry-content h3{font-size:24px}
.entry-content blockquote{border-left:5px solid var(--os-red);margin:25px 0;padding:12px 20px;background:var(--os-cream)}
.entry-content a{color:var(--os-red);text-decoration:underline}

/* Footer */
.site-footer{margin-top:45px;background:var(--os-black);color:#fff}
.footer-main{padding:38px 0;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}
.footer-brand{display:flex;gap:14px;align-items:flex-start}
.footer-brand img{width:70px;height:70px;object-fit:contain}
.site-footer h3{margin:0 0 10px;font-size:18px}
.site-footer p,.site-footer li{color:#cfcfcf;font-size:14px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:6px 0}
.footer-bottom{border-top:1px solid #333;padding:15px 0;color:#aaa;font-size:12px}
.footer-bottom .container{display:flex;justify-content:space-between;gap:15px}

/* WordPress */
.wp-block-image img{border-radius:10px}
.wp-block-button__link{background:var(--os-red);border-radius:7px}
.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}
.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--os-border);border-radius:7px;background:#fff}
.pagination .current{background:var(--os-black);color:#fff}

/* Responsive */
@media(max-width:980px){
  .main-nav{display:none}
  .menu-toggle{display:block}
  .header-main{min-height:74px}
  .brand img{width:60px;height:60px}
  .brand-name{font-size:23px}
  .hero-grid,.content-layout{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .hero-card,.hero-card img{min-height:390px;height:390px}
}
@media(max-width:650px){
  .container{width:min(100% - 22px,var(--os-max))}
  .topbar{display:none}
  .header-main{gap:10px}
  .brand img{width:52px;height:52px}
  .brand-name{font-size:21px}
  .brand-tagline{font-size:10px}
  .cards{grid-template-columns:1fr}
  .feature-card{grid-template-columns:110px 1fr}
  .feature-card img{width:110px;height:125px}
  .feature-card .content{padding:10px 10px 10px 0}
  .feature-card h3{font-size:16px}
  .hero{padding-top:16px}
  .hero-card,.hero-card img{min-height:330px;height:330px}
  .hero-overlay{padding:50px 18px 18px}
  .hero-overlay h1{font-size:30px}
  .list-card{grid-template-columns:120px 1fr;gap:12px}
  .list-card img{width:120px;height:95px}
  .list-card h3{font-size:17px}
  .footer-main{grid-template-columns:1fr}
  .footer-bottom .container{flex-direction:column}
}
