/* पश्चिमपाटी — frontend theme (brand: blue #1a5da2, gold #c9a227) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --blue: #1a5da2; --blue-d: #13406e; --gold: #c9a227; --red: #c0392b; --text: #1d2733; --muted: #66727f; --line: #e6ebf1; --bg: #f5f7fa; }
body { font-family: 'Mukta', 'Segoe UI', sans-serif; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* top strip */
.topstrip { background: var(--blue-d); color: #cfe0f2; font-size: 13.5px; }
.topstrip-in { display: flex; justify-content: flex-end; align-items: center; padding: 6px 16px; flex-wrap: wrap; gap: 6px; }
.topstrip-links a { color: #cfe0f2; margin-left: 14px; }
.topstrip-links a:hover { color: #fff; }
.login-link { border: 1px solid rgba(255,255,255,.35); padding: 2px 10px; border-radius: 20px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead-in { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 16px; }
.masthead-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo img { height: 150px; width: auto; }
.masthead-date { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13.5px; }
.masthead-date::before, .masthead-date::after { content: ""; height: 1px; width: 130px; background: var(--line); }
.m-btn { display: none; background: none; border: 0; color: var(--text); font-size: 22px; padding: 10px; cursor: pointer; }

/* nav */
.mainnav { background: var(--blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mainnav-in { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; flex-wrap: wrap; flex: 1; }
.nav-links a { color: #eaf2fa; padding: 12px 13px; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { background: var(--blue-d); color: #fff; }
.nav-home { font-size: 15px; }
.nav-special { color: #ffe9a8 !important; }
.nav-login-m { display: none; }
.nav-search { display: flex; margin-left: auto; }
.nav-search input { border: 0; padding: 7px 12px; border-radius: 3px 0 0 3px; width: 150px; font-family: inherit; font-size: 14px; }
.nav-search input:focus { outline: 2px solid var(--gold); }
.nav-search button { border: 0; background: var(--gold); color: #fff; padding: 0 13px; border-radius: 0 3px 3px 0; cursor: pointer; }

/* breaking zone (karobar-style stacked top stories) */
.break-zone { margin: 34px 0 6px; }
.break-story { max-width: 1080px; margin: 0 auto 54px; text-align: center; }
.break-title a { font-size: 42px; font-weight: 700; line-height: 1.35; display: inline-block; }
.break-story.first .break-title a { font-size: 62px; line-height: 1.3; }
.break-title a:hover { color: var(--blue); }
.break-img { display: block; margin-top: 22px; }
.break-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.break-byline { color: #444; font-size: 15.5px; font-weight: 600; margin-top: 10px; }
.break-ex { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 14px; max-width: 820px; margin-inline: auto; }

/* hero */
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; margin: 22px 0; }
.hero-card { position: relative; }
.hero-card .card-img img { width: 100%; aspect-ratio: 16/8.4; object-fit: cover; border-radius: 8px; }
.hero-cat { position: absolute; top: 14px; left: 14px; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 3px; }
.hero-card h1 { font-size: 30px; line-height: 1.35; margin: 12px 0 6px; font-weight: 800; }
.hero-card h1 a:hover, h2 a:hover, h3 a:hover { color: var(--blue); }
.hero-card p { color: var(--muted); font-size: 15.5px; }
.hero-sub { margin-top: 18px; }

/* cards */
.card-meta { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.card-big .card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.card-big h2 { font-size: 19px; line-height: 1.45; margin-top: 9px; font-weight: 700; }
.card-ex { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-small { display: flex; gap: 12px; }
.card-small .card-img { flex: 0 0 110px; }
.card-small .card-img img { width: 110px; height: 76px; object-fit: cover; border-radius: 5px; }
.card-small h3 { font-size: 15.5px; line-height: 1.45; font-weight: 700; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; row-gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }

/* section head */
.sec-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--sec-color, var(--blue)); margin: 34px 0 18px; }
.sec-head h2 { font-size: 21px; font-weight: 800; background: var(--sec-color, var(--blue)); color: #fff; padding: 6px 18px; border-radius: 5px 5px 0 0; }
.sec-more { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.sec-more:hover { color: var(--sec-color, var(--blue)); }
.text-count { color: var(--muted); font-size: 13.5px; }
.cat-page-head { margin-top: 24px; }

/* category block */
.cat-block { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.cat-rest { display: grid; gap: 16px; align-content: start; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.trend-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trend-head { background: var(--red); color: #fff; font-weight: 700; padding: 9px 14px; font-size: 15px; }
.trend-list { list-style: none; counter-reset: tr; }
.trend-list li { counter-increment: tr; display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-direction: column; position: relative; padding-left: 52px; }
.trend-list li::before { content: counter(tr, devanagari); position: absolute; left: 14px; top: 12px; font-size: 22px; font-weight: 800; color: #d8dfe7; }
.trend-list a { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.trend-list a:hover { color: var(--blue); }
.trend-list small { color: var(--muted); font-size: 12px; }

/* ads */
.ad-slot { margin: 26px 0; text-align: center; }
.ad-slot.container { margin-left: auto; margin-right: auto; }
.ad-slot img { margin: 0 auto; border-radius: 5px; max-width: 100%; }

/* NEPSE widget */
.nepse-widget { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nepse-head { background: var(--blue); color: #fff; font-weight: 700; padding: 9px 14px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.nepse-head a { color: #ffe9a8; font-size: 12.5px; }
.nepse-body { padding: 12px 14px; }
.nepse-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nepse-num strong { font-size: 26px; font-weight: 800; }
.nepse-num span { font-size: 14px; font-weight: 700; }
.nepse-spark { width: 100%; height: 64px; margin-top: 6px; }
.nepse-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* NEPSE page */
.nepse-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; background: linear-gradient(120deg, var(--blue-d), var(--blue)); border-radius: 10px; color: #fff; padding: 26px; margin-bottom: 24px; }
.nepse-hero-num small { opacity: .8; font-size: 14px; display: block; }
.nepse-hero-num strong { font-size: 44px; font-weight: 800; display: block; line-height: 1.1; }
.nepse-hero-num span { font-weight: 700; font-size: 16px; background: #fff; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-top: 8px; }
.nepse-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: center; }
.nepse-hero-stats div { background: rgba(255,255,255,.1); border-radius: 8px; padding: 12px 14px; }
.nepse-hero-stats small { opacity: .8; display: block; font-size: 12.5px; }
.nepse-hero-stats strong { font-size: 17px; }
.panel-white { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 24px; }
.panel-title { font-size: 17px; margin-bottom: 12px; font-weight: 800; }
.nepse-chart { width: 100%; height: 240px; }
.chart-range { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stock-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.stock-table th { text-align: left; color: var(--muted); font-size: 12.5px; border-bottom: 2px solid var(--line); padding: 6px 8px; }
.stock-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.stock-table small { color: var(--muted); }
.up { color: #1e9e5a; font-weight: 700; } .down { color: #d64545; font-weight: 700; }

/* horoscope */
.horo-strip { margin-top: 30px; }
.horo-scroller { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.horo-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; background: #fffdf5; }
.horo-chip:hover { border-color: var(--gold); background: #fff8e1; }
.horo-sym { font-size: 22px; color: var(--gold); }
.horo-name { font-size: 13.5px; font-weight: 700; }
.horo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.horo-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px; background: #fffefb; }
.horo-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.horo-sym-big { font-size: 34px; color: var(--gold); }
.horo-card h3 { font-size: 18px; }
.horo-card small { color: var(--muted); font-size: 12px; }
.horo-card p { font-size: 14.5px; line-height: 1.7; color: #333; }
.disclaimer { color: var(--muted); font-size: 12.5px; margin: 18px 0 30px; text-align: center; }

/* video section (home) */
.video-sec { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 22px; box-shadow: 0 1px 4px rgba(20,40,70,.06); }
.video-sec-head { margin: 0 0 18px; border-bottom-width: 2px; border-bottom-color: #2b2b2b; }
.video-sec-head h2.video-sec-title { background: none; color: var(--text); padding: 0 0 10px; font-size: 24px; }
.video-sec-title a { display: flex; align-items: center; gap: 12px; }
.video-sec-logo { height: 52px; width: auto; border-radius: 6px; }
.video-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.video-player { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-main-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-top: 12px; }
.video-main-title a:hover { color: var(--red); }
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #181818; color: #fff; border-radius: 8px; padding: 10px 10px 10px 14px; transition: background .15s; }
.video-item:hover { background: #2a2a2a; }
.video-item-title { font-size: 14.5px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-thumb { position: relative; flex: 0 0 96px; border-radius: 6px; overflow: hidden; }
.video-thumb img { width: 96px; height: 68px; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); color: #fff; font-size: 13px; }
.video-play i { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; padding-left: 2px; background: rgba(0,0,0,.35); }
.single-video { margin-bottom: 18px; }

/* single */
.single-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; margin: 28px auto 40px; }
.single-cat { display: inline-block; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 3px; margin-bottom: 14px; }
.single h1 { font-family: 'Mukta', sans-serif; font-size: 48px; line-height: 1.35; font-weight: 700; color: #1d2733; margin-bottom: 18px; }
.single-meta { display: flex; align-items: center; gap: 14px; border-block: 1px solid var(--line); padding: 12px 0; margin-bottom: 22px; flex-wrap: wrap; }
.byline-name { font-size: 17px; font-weight: 700; color: #1d2733; }
.byline-date { color: var(--muted); font-size: 14px; }
.meta-shares { margin-left: auto; text-align: center; line-height: 1.05; }
.meta-shares strong { display: block; font-size: 21px; font-weight: 800; color: #1d2733; }
.meta-shares small { color: var(--muted); font-size: 12px; }
.author-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.single-img img { width: 100%; border-radius: 8px; }
.single-img { margin-bottom: 24px; }
.single-content { font-family: 'Mukta', sans-serif; font-size: 20px; font-weight: 500; line-height: 35px; color: rgb(51, 48, 48); }
.single-content p { margin-bottom: 20px; }
.single-content h3 { margin: 22px 0 10px; line-height: 1.5; color: #1d2733; }
.single-content blockquote { border-left: 4px solid var(--gold); background: #fbf7ec; padding: 14px 20px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.single-content ul, .single-content ol { padding-left: 26px; margin-bottom: 20px; }
.single-content img { margin: 20px auto; border-radius: 6px; height: auto; }
.single-content iframe { max-width: 100%; }
.single-content figure { margin: 20px 0; }
.share { display: flex; gap: 10px; align-items: center; margin: 24px 0; font-weight: 700; font-size: 14.5px; }
.share a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 15px; }
.share a:nth-of-type(2) { background: #000; } .share a:nth-of-type(3) { background: #25d366; }
.share.share-top { margin: 0; }
.related h3 { border-bottom: 2px solid var(--blue); padding-bottom: 6px; margin-bottom: 14px; font-size: 18px; }
.static-page { margin: 30px auto 50px; max-width: 800px; }
.static-page h1 { margin-bottom: 16px; border-bottom: 3px solid var(--blue); display: inline-block; padding-bottom: 6px; }

/* pager / misc */
.pager { display: flex; gap: 8px; margin: 26px 0; }
.pager a, .pager .cur { border: 1px solid var(--line); padding: 6px 14px; border-radius: 4px; font-weight: 700; }
.pager .cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 70px; color: var(--blue); }
.btn-home { display: inline-block; background: var(--blue); color: #fff; padding: 9px 24px; border-radius: 5px; margin-top: 14px; font-weight: 700; }

/* footer */
.footer { background: var(--blue); color: #dce8f6; margin-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 38px 16px; }
.footer-logo { max-width: 200px; background: #fff; border-radius: 6px; padding: 8px; margin-bottom: 12px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; border-left: 3px solid var(--gold); padding-left: 10px; }
.footer a { display: block; padding: 3px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer p { font-size: 14px; line-height: 1.9; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex !important; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); color: #13406e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 14px 0; font-size: 13.5px; text-align: center; }
.footer-bottom span { opacity: .6; }

/* event pages (SCOPE, सहकारी सम्मेलन) */
.event-hero { background: var(--sec-color, #1a5da2); background: linear-gradient(135deg, var(--sec-color, #1a5da2), color-mix(in srgb, var(--sec-color, #1a5da2) 70%, #000)); color: #fff; border-radius: 10px; padding: 34px 30px; margin: 6px 0 22px; }
.event-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 30px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.event-hero h1 { font-size: 34px; margin: 12px 0 10px; font-weight: 800; }
.event-hero p { max-width: 860px; font-size: 15.5px; line-height: 1.8; opacity: .94; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sec-color, #1a5da2); border-radius: 8px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(20,40,70,.05); }
.mv-card h3 { color: var(--sec-color, #1a5da2); font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.mv-card p { line-height: 1.85; font-size: 15px; }
.event-video { position: relative; aspect-ratio: 16/9; max-width: 860px; margin: 0 auto 26px; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 2px 10px rgba(20,40,70,.15); }
.event-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid, .single-grid { grid-template-columns: 1fr; }
  .break-title a { font-size: 32px; }
  .break-story.first .break-title a { font-size: 44px; }
  .single h1 { font-size: 36px; }
  .cat-block { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .horo-scroller { grid-template-columns: repeat(6, 1fr); }
  .horo-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nepse-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* header: hamburger left — logo center — search right */
  .topstrip { display: none; }
  .m-btn { display: block; }
  .logo img { height: 92px; }
  .masthead-date { display: none; }
  .masthead-in { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 8px 12px; }
  .mainnav { display: none; }
  body.nav-open .mainnav, body.search-open .mainnav { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; }
  body.nav-open .nav-links { display: flex; }
  body.search-open .nav-links { display: none; }
  .nav-login-m { display: block; border-top: 1px solid rgba(255,255,255,.2); }
  .mainnav-in { flex-wrap: wrap; }
  .nav-search { display: none; margin: 8px 0; width: 100%; }
  body.search-open .nav-search { display: flex; }
  .nav-search input { flex: 1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-card h1 { font-size: 23px; }
  .break-title a { font-size: 25px; }
  .break-story.first .break-title a { font-size: 30px; }
  .break-img img { aspect-ratio: 16/10; }
  .single h1 { font-size: 28px; }
  .single-content { font-size: 18px; line-height: 32px; }
  .mv-grid { grid-template-columns: 1fr; }
  .event-hero { padding: 24px 18px; }
  .event-hero h1 { font-size: 26px; }
  .horo-scroller { grid-template-columns: repeat(4, 1fr); }
  .horo-grid, .gl-grid { grid-template-columns: 1fr; }
  .video-sec { padding: 14px 14px 18px; }
  .video-sec-logo { height: 40px; }
  .video-sec-head h2.video-sec-title { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
