/* =========================================================
   101 URDU NEWS NETWORK — MAIN STYLESHEET
   ========================================================= */

:root{
  --color-bg:            #faf6ef;
  --color-bg-card:       #ffffff;
  --color-dark:          #1c1712;
  --color-dark-2:        #2a221a;
  --color-red:           #d21f1f;
  --color-red-dark:      #a91616;
  --color-gold:          #d9ae4e;
  --color-gold-dark:     #c79a35;
  --color-text:          #1c1712;
  --color-text-muted:    #7a7167;
  --color-border:        #e8e1d4;

  --cat-pakistan:  #d21f1f;
  --cat-duniya:    #1c4fae;
  --cat-karobar:   #0e6b52;
  --cat-kheel:     #e0631f;
  --cat-science:   #2f2f78;
  --cat-tech:      #4b2e9e;
  --cat-sehat:     #0d7a6c;
  --cat-tafreeh:   #d81b7a;

  --radius: 10px;
  --shadow: 0 2px 10px rgba(28,23,18,0.06);
  --shadow-md: 0 6px 24px rgba(28,23,18,0.10);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Noto Nastaliq Urdu','Jameel Noori Nastaleeq','Noto Naskh Arabic',serif;
  direction: rtl;
  text-align: right;
  line-height: 2;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input, textarea{ font-family:inherit; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin: 40px 0 18px;
}
.section-title h2{
  font-size: 26px;
  margin:0;
  font-weight:700;
}
.section-title .bar{
  flex:1;
  height:3px;
  background: linear-gradient(to left, var(--color-gold), transparent);
  max-width: 220px;
}
.section-title .bar.red{ background: linear-gradient(to left, var(--color-red), transparent); }

/* =========================================================
   TOP UTILITY BAR
   ========================================================= */
.top-bar{
  background: var(--color-dark);
  color:#cfc6b8;
  font-size: 13px;
}
.top-bar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 40px;
}
.top-bar .top-bar-left,
.top-bar .top-bar-right{
  display:flex;
  align-items:center;
  gap: 18px;
}
.top-bar a{ color:#cfc6b8; transition: color .2s; }
.top-bar a:hover{ color: var(--color-gold); }
.top-bar .bell{ display:flex; align-items:center; gap:6px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  background:#fff;
  border-bottom: 3px solid var(--color-red);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 92px;
}
.header-icons{
  display:flex;
  align-items:center;
  gap: 22px;
}
.icon-btn{
  background:none;
  border:none;
  width:26px;
  height:26px;
  color: var(--color-dark);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-btn svg{ width:24px; height:24px; }

.site-logo{
  display:flex;
  align-items:center;
  gap:14px;
}
.site-logo .logo-101{
  color: var(--color-red);
  font-weight:800;
  font-size: 40px;
  line-height:1;
  font-family: Arial, sans-serif;
}
.site-logo .logo-divider{
  width:2px;
  height:34px;
  background: var(--color-gold);
}
.site-logo .logo-text{
  text-align:right;
}
.site-logo .logo-urdu{
  font-size: 28px;
  font-weight:700;
  line-height:1.1;
  color: var(--color-dark);
}
.site-logo .logo-sub{
  font-size: 10.5px;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  font-family: Arial, sans-serif;
}

/* =========================================================
   CATEGORY NAV GRID
   ========================================================= */
.category-nav{
  border-bottom: 1px solid var(--color-border);
  background:#fff;
}
.category-nav ul{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
}
.category-nav li{
  border-inline-start: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}
.category-nav li:nth-child(6n+1){ border-inline-start:none; }
.category-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px 6px;
  font-size: 16px;
  font-weight:600;
  transition: background .2s, color .2s;
}
.category-nav a:hover{ background: #fbf3e4; color: var(--color-red); }
.category-nav li.is-breaking a{ color: var(--color-red); }

/* =========================================================
   BREAKING NEWS TICKER ("Aaj Ki Khabar")
   ========================================================= */
.breaking-ticker{
  background: var(--color-red);
  display:flex;
  align-items:stretch;
}
.breaking-ticker .ticker-badge{
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight:800;
  padding: 10px 22px;
  display:flex;
  align-items:center;
  white-space:nowrap;
  font-size:15px;
}
.breaking-ticker .ticker-track{
  flex:1;
  display:flex;
  align-items:center;
  overflow:hidden;
  position:relative;
}
.breaking-ticker .ticker-item{
  color:#fff;
  padding: 10px 20px;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}
.breaking-ticker .ticker-nav{
  display:flex;
  align-items:center;
  gap:4px;
  padding: 0 14px;
  color:#fff;
  font-size:13px;
  white-space:nowrap;
}
.breaking-ticker .ticker-nav button{
  background:rgba(255,255,255,0.15);
  border:none;
  color:#fff;
  width:24px;height:24px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* =========================================================
   ARTICLE CARDS (grid, featured, list)
   ========================================================= */
.card{
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card .card-thumb{
  position:relative;
  aspect-ratio: 16/9;
  overflow:hidden;
  background:#eee;
}
.card .card-thumb img{ width:100%; height:100%; object-fit:cover; }

.cat-pill{
  display:inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight:700;
  border-radius:4px;
  color:#fff;
}
.cat-pill.pakistan{ background: var(--cat-pakistan); }
.cat-pill.duniya{ background: var(--cat-duniya); }
.cat-pill.karobar{ background: var(--cat-karobar); }
.cat-pill.kheel{ background: var(--cat-kheel); }
.cat-pill.science{ background: var(--cat-science); }
.cat-pill.tech{ background: var(--cat-tech); }
.cat-pill.sehat{ background: var(--cat-sehat); }
.cat-pill.tafreeh{ background: var(--cat-tafreeh); }
.cat-pill.default{ background: var(--color-dark); }

.card .card-body{ padding: 16px 18px 18px; }
.card .card-tag{ margin-bottom:10px; }
.card .card-title{
  font-size: 19px;
  font-weight:700;
  line-height:1.7;
  margin: 0 0 10px;
}
.card .card-title a:hover{ color: var(--color-red); }
.card .card-meta{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  color: var(--color-text-muted);
}
.card .card-meta .meta-item{ display:flex; align-items:center; gap:5px; }

/* Featured overlay-style card (image with headline over image) */
.card-overlay{ position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.card-overlay .card-thumb{ aspect-ratio: 16/10; }
.card-overlay .overlay-tag{ position:absolute; top:16px; inset-inline-end:16px; }
.card-overlay .overlay-content{
  position:absolute; bottom:0; right:0; left:0;
  padding: 30px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15) 70%, transparent);
  color:#fff;
}
.card-overlay .overlay-content .card-title{ color:#fff; font-size:24px; margin-bottom:12px; }
.card-overlay .overlay-content .card-meta{ color:#e6e1d6; }

/* =========================================================
   HOMEPAGE GRIDS
   ========================================================= */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }

.top-stories{ margin-top: 26px; }

/* =========================================================
   VIDEO NEWS
   ========================================================= */
.video-card .card-thumb{ background: #8b8378; }
.video-card .play-btn{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:62px;height:62px;border-radius:50%;
  background: var(--color-red);
  display:flex;align-items:center;justify-content:center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.video-card .play-btn svg{ width:22px;height:22px; fill:#fff; margin-inline-start:3px; }
.video-card .duration-badge{
  position:absolute; bottom:10px; inset-inline-start:10px;
  background: rgba(0,0,0,.75); color:#fff;
  font-size:12px; padding:3px 9px; border-radius:4px;
}
.video-card .overlay-title{
  position:absolute; top:14px; right:14px; left:70px;
  color:#fff; font-size:16px; font-weight:700; text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* =========================================================
   NEWSLETTER BOX
   ========================================================= */
.newsletter-box{
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-top: 40px;
  text-align:center;
}
.newsletter-box h3{ color:#fff; font-size:24px; margin:0 0 8px; }
.newsletter-box p{ color:#cfc6b8; margin:0 0 20px; font-size:15px; }
.newsletter-box form{
  display:flex;
  max-width: 480px;
  margin: 0 auto;
  gap:10px;
  flex-wrap:wrap;
}
.newsletter-box input[type=email]{
  flex:1;
  min-width:200px;
  padding: 13px 16px;
  border-radius:6px;
  border:1px solid #4a4033;
  background: #241d16;
  color:#fff;
  font-size:15px;
}
.newsletter-box input[type=email]::placeholder{ color:#8a8071; }
.newsletter-box button{
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight:800;
  border:none;
  padding: 13px 28px;
  border-radius:6px;
  font-size:15px;
  white-space:nowrap;
  transition: background .2s;
}
.newsletter-box button:hover{ background: var(--color-gold-dark); }

/* =========================================================
   EXPERT ANALYSIS SECTION
   ========================================================= */
.analysis-card{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display:flex;
  gap:20px;
  align-items:flex-start;
  margin-bottom: 18px;
}
.analysis-card .avatar{
  width:74px;height:74px;border-radius:50%;
  object-fit:cover;flex-shrink:0;
  border: 3px solid #f1e6cc;
}
.analysis-card .analysis-title{ font-size:20px; font-weight:700; margin:0 0 8px; }
.analysis-card .analysis-excerpt{ color: var(--color-text-muted); font-size:15px; margin:0 0 10px; }
.analysis-card .analysis-author{ font-size:14px; font-weight:700; color: var(--color-red); }
.analysis-card .analysis-author span{ font-weight:400; color: var(--color-text-muted); }

/* =========================================================
   CATEGORY COLOR CARDS
   ========================================================= */
.cat-cards{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top:8px; }
.cat-card{
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align:center;
  color:#fff;
  font-size:20px;
  font-weight:700;
  transition: opacity .2s, transform .2s;
}
.cat-card:hover{ opacity:.92; transform: translateY(-2px); }
.cat-card small{
  display:block;
  font-size:13px;
  font-weight:400;
  margin-top:8px;
  opacity:.9;
}
.cat-card.sehat{ background: var(--cat-sehat); }
.cat-card.kheel{ background: var(--cat-kheel); }
.cat-card.tafreeh{ background: var(--cat-tafreeh); }
.cat-card.tech{ background: var(--cat-tech); }

/* =========================================================
   POPULAR NEWS (numbered list)
   ========================================================= */
.popular-box{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.popular-box .popular-header{
  background: var(--color-dark);
  color:#fff;
  padding: 16px 20px;
  font-size:18px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
}
.popular-box ol{ list-style:none; margin:0; padding:0; }
.popular-box li{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding: 18px 20px;
  border-bottom:1px solid var(--color-border);
}
.popular-box li:last-child{ border-bottom:none; }
.popular-box .rank{
  font-size: 30px;
  font-weight:800;
  color:#e9e0cf;
  line-height:1;
  min-width:38px;
}
.popular-box .p-title{ font-size:16px; font-weight:700; margin-bottom:6px; }
.popular-box .p-meta{ font-size:12.5px; color:var(--color-text-muted); }

/* =========================================================
   SINGLE POST / ARCHIVE
   ========================================================= */
.page-content{ padding: 30px 0 60px; }
.single-header{ margin-bottom:20px; }
.single-header .cat-pill{ margin-bottom:14px; }
.single-title{ font-size:32px; font-weight:800; line-height:1.6; margin:0 0 14px; }
.single-meta{ display:flex; gap:18px; flex-wrap:wrap; color:var(--color-text-muted); font-size:14px; margin-bottom:22px; }
.single-thumb{ border-radius: var(--radius); overflow:hidden; margin-bottom: 26px; }
.single-content{ font-size:18px; line-height:2.1; max-width: 820px; }
.single-content p{ margin:0 0 22px; }
.single-content img{ border-radius: var(--radius); margin: 20px 0; }
.archive-title{ font-size:28px; font-weight:800; margin: 30px 0 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--color-dark);
  color:#cfc6b8;
  margin-top: 50px;
  padding: 50px 0 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-101{ color: var(--color-red); font-weight:800; font-size:34px; font-family:Arial,sans-serif; }
.footer-brand .logo-urdu{ font-size:26px; font-weight:700; color:#fff; }
.footer-brand p{ color:#a89e8d; margin-top:14px; font-size:15px; max-width:340px; }
.footer-col h4{ color: var(--color-gold); font-size:18px; margin:0 0 16px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col a{ color:#cfc6b8; transition:color .2s; }
.footer-col a:hover{ color: var(--color-gold); }
.footer-social{ display:flex; gap:14px; flex-wrap:wrap; margin-top:6px; }
.footer-social a{
  width:38px;height:38px;border-radius:50%;
  background:#2a221a;
  display:flex;align-items:center;justify-content:center;
  transition: background .2s;
}
.footer-social a:hover{ background: var(--color-red); }
.footer-bottom{
  border-top:1px solid #35291f;
  margin-top:36px;
  padding-top:20px;
  text-align:center;
  font-size:14px;
  color:#8a8071;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu{
  position:fixed; inset:0;
  background: var(--color-dark);
  color:#fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y:auto;
  padding: 24px 20px 40px;
}
.mobile-menu.is-open{ transform: translateX(0); }
.mobile-menu .close-btn{ background:none;border:none;color:#fff;width:28px;height:28px; }
.mobile-menu h5{ color: var(--color-gold); font-size:18px; margin: 26px 0 14px; }
.mobile-menu ul li{ padding: 10px 0; font-size:17px; border-bottom:1px solid #33291d; }

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay{
  position:fixed; inset:0; background: rgba(28,23,18,.96);
  z-index: 1000; display:flex; align-items:flex-start; justify-content:center;
  padding-top: 12vh; opacity:0; pointer-events:none; transition: opacity .2s;
}
.search-overlay.is-open{ opacity:1; pointer-events:auto; }
.search-overlay form{ width:90%; max-width:600px; display:flex; gap:10px; }
.search-overlay input{ flex:1; padding:16px 18px; border-radius:8px; border:none; font-size:18px; }
.search-overlay button{ background: var(--color-red); color:#fff; border:none; padding:0 22px; border-radius:8px; }
.search-overlay .close-search{ position:absolute; top:24px; left:24px; background:none; border:none; color:#fff; width:30px;height:30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-4, .cat-cards{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .category-nav ul{ grid-template-columns: repeat(3,1fr); }
  .category-nav li:nth-child(6n+1){ border-inline-start:1px solid var(--color-border); }
  .category-nav li:nth-child(3n+1){ border-inline-start:none; }
  .site-logo .logo-101{ font-size:32px; }
  .site-logo .logo-urdu{ font-size:22px; }
  .header-inner{ height:76px; }
  .top-bar .top-bar-left span:not(:first-child){ display:none; }
  .single-title{ font-size:24px; }
  .footer-grid{ grid-template-columns:1fr; }
}
