/*
Theme Name: News Drop
Template: colormag
Description: News Drop child theme — home page, share cards, summary box.
Version: 1.0.2
Text Domain: newsdrop
*/

:root { --nd-navy: #001F44; --nd-blue: #007BFF; --nd-cyan: #00D1FF; --nd-light: #F5F7FA; --nd-line: #E3E9F2; --nd-ink: #14213D; --nd-muted: #6B7A90; }

.nd-home { max-width: 1200px; margin: 0 auto; padding: 18px 16px 40px; direction: rtl; }
.nd-home a { text-decoration: none; color: var(--nd-ink); }
.nd-home a:hover { color: var(--nd-blue); }
.nd-empty { text-align: center; color: var(--nd-muted); padding: 60px 0; }

/* Chalti patti */
.nd-ticker { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--nd-line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.nd-ticker-label { flex: none; background: var(--nd-blue); color: #fff; padding: 0 16px; display: flex; align-items: center; font-weight: 700; }
.nd-ticker-track { overflow: hidden; flex: 1; }
.nd-ticker-move { display: inline-flex; gap: 40px; white-space: nowrap; padding: 6px 20px; animation: nd-tick 60s linear infinite; }
.nd-ticker-move a::before { content: "●"; color: var(--nd-cyan); margin-left: 10px; font-size: 10px; }
.nd-ticker:hover .nd-ticker-move { animation-play-state: paused; }
@keyframes nd-tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .nd-ticker-move { animation: none; } }

/* Cards */
.nd-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,31,68,.06), 0 6px 18px rgba(0,31,68,.06); display: flex; flex-direction: column; }
.nd-thumb { display: block; aspect-ratio: 16 / 10; background: var(--nd-line); overflow: hidden; }
.nd-thumb img, .nd-noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nd-card:hover .nd-thumb img { transform: scale(1.03); }
.nd-card-body { padding: 10px 14px 14px; }
.nd-cat { display: inline-block; background: #E6F1FF; color: var(--nd-blue); border-radius: 999px; padding: 0 10px; font-size: 13px; line-height: 2; }
.nd-card-title { font-size: 19px; line-height: 1.95; margin: 6px 0 4px; }
.nd-card time { color: var(--nd-muted); font-size: 13px; }

/* Top stories */
.nd-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 28px; }
.nd-card-lead .nd-thumb { aspect-ratio: 16 / 9; }
.nd-card-lead .nd-card-title { font-size: 28px; line-height: 1.85; }
.nd-side { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
.nd-card-side .nd-card-title { font-size: 16px; }
.nd-home h2, .nd-home h3, .nd-home a, .nd-summary, .nd-share { letter-spacing: normal !important; word-spacing: normal !important; }

/* Category blocks + aside */
.nd-columns { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.nd-block { margin-bottom: 28px; }
.nd-block-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--nd-navy); margin: 0 0 14px; padding-bottom: 4px; font-size: 24px; }
.nd-block-title a { color: var(--nd-navy); }
.nd-more { font-size: 15px; color: var(--nd-blue) !important; font-weight: 400; }
.nd-block-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, auto); gap: 12px; }
.nd-card-first { grid-row: span 3; }
.nd-card-first .nd-card-title { font-size: 22px; }
.nd-card-row { flex-direction: row; }
.nd-card-row .nd-thumb { flex: none; width: 38%; aspect-ratio: auto; }
.nd-card-row .nd-card-title { font-size: 15px; line-height: 1.9; }
.nd-card-row .nd-card-body { padding: 8px 12px; }

.nd-mostread { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(0,31,68,.06); position: sticky; top: 16px; }
.nd-mostread .nd-block-title { font-weight: 400; } /* bold Nastaliq mein "ڑھ" toot jata hai */
.nd-mostread ol { margin: 0; padding: 0; list-style: none; counter-reset: nd; }
.nd-mostread li { counter-increment: nd; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nd-line); line-height: 1.9; }
.nd-mostread li:last-child { border-bottom: 0; }
.nd-mostread li::before { content: counter(nd); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--nd-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; }

/* Khabar ka safha: khulasa + share */
.nd-summary { background: var(--nd-light); border-right: 5px solid var(--nd-blue); border-radius: 10px; padding: 10px 18px; margin: 0 0 20px; }
.nd-summary-title { font-weight: 700; color: var(--nd-navy); }
.nd-summary ul { margin: 4px 0 0; padding-right: 20px; }
.nd-summary li { margin: 4px 0; }
.nd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 8px; padding-top: 14px; border-top: 1px solid var(--nd-line); }
.nd-share-label { color: var(--nd-muted); margin-left: 6px; }
.nd-share-btn { display: inline-block; border: 0; border-radius: 999px; padding: 2px 16px; line-height: 2.2; color: #fff !important; cursor: pointer; font: inherit; text-decoration: none !important; }
.nd-wa { background: #25D366; } .nd-fb { background: #1877F2; } .nd-x { background: #111; } .nd-copy { background: var(--nd-navy); }

/* Mobile */
@media (max-width: 900px) {
  .nd-top, .nd-columns { grid-template-columns: 1fr; }
  .nd-mostread { position: static; }
}
@media (max-width: 560px) {
  .nd-side { grid-template-columns: 1fr; }
  .nd-block-grid { grid-template-columns: 1fr; }
  .nd-card-first { grid-row: auto; }
  .nd-card-lead .nd-card-title { font-size: 22px; }
}
