/*
Theme Name: MoreNews Child — এসো ইনকাম করি
Theme URI: https://eshoincomekori.com/
Author: Muse for Tayab
Description: Child theme of MoreNews with the new custom homepage design (trending ticker, hero search, pinboard, latest, trending, popular, categories, start path). Only the homepage uses this design — single posts, categories and all other pages keep the parent MoreNews theme. To go back to the old homepage, just activate the parent MoreNews theme again.
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: morenews-child
Template: morenews
*/
button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
      * { box-sizing: border-box; }
      :root {
        color-scheme: light dark;
        --bg: #faf5ec;
        --bg-soft: #f3ecdb;
        --surface: #fffdf8;
        --surface-2: #fdf6e7;
        --ink: #1d2a21;
        --muted: #5d6f63;
        --faint: #87988b;
        --line: #e6dbc2;
        --green: #0e7a4f;
        --green-deep: #0a5a3a;
        --green-tint: #e2f1e6;
        --amber: #dd8f1d;
        --amber-tint: #fbeed3;
        --red: #d2483c;
        --red-tint: #fbe7e3;
        --shadow: 0 10px 30px rgba(64, 48, 12, .10);
        --shadow-lg: 0 24px 50px rgba(64, 48, 12, .16);
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #0f1512;
          --bg-soft: #141d18;
          --surface: #182219;
          --surface-2: #1d2a20;
          --ink: #edf3ec;
          --muted: #a3b5a6;
          --faint: #728575;
          --line: #2c3d31;
          --green: #3ec483;
          --green-deep: #7adca9;
          --green-tint: #173626;
          --amber: #f0b95c;
          --amber-tint: #3a2d12;
          --red: #f0857a;
          --red-tint: #3d1e1a;
          --shadow: 0 10px 30px rgba(0, 0, 0, .35);
          --shadow-lg: 0 24px 50px rgba(0, 0, 0, .45);
        }
      }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Hind Siliguri", system-ui, sans-serif;
        font-size: 17px;
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
      }
      h1, h2, h3, .display { font-family: "Baloo Da 2", "Hind Siliguri", sans-serif; line-height: 1.3; margin: 0; }
      a { color: inherit; }
      img { display: block; max-width: 100%; }
      .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

      /* ---------- Header ---------- */
      header.site {
        position: sticky; top: 0; z-index: 50;
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .header-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
      .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
      .brand-mark {
        width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
        background: var(--green); color: #fff;
        display: grid; place-items: center;
        font-family: "Baloo Da 2", sans-serif; font-weight: 800; font-size: 24px;
        box-shadow: var(--shadow);
      }
      .brand-name { font-family: "Baloo Da 2", sans-serif; font-weight: 800; font-size: 23px; line-height: 1.1; }
      .brand-tag { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
      nav.main-nav { display: flex; gap: 4px; margin-left: auto; }
      nav.main-nav a {
        text-decoration: none; font-weight: 600; font-size: 15.5px;
        padding: 8px 13px; border-radius: 999px; color: var(--muted);
      }
      nav.main-nav a:hover { background: var(--green-tint); color: var(--green-deep); }
      .visit-btn {
        margin-left: 8px; flex-shrink: 0;
        background: var(--green); color: #fff; text-decoration: none;
        font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px;
        display: inline-flex; align-items: center; min-height: 2.5rem;
      }
      .visit-btn:hover { background: var(--green-deep); }

      /* ---------- Ticker ---------- */
      .ticker-bar { background: var(--ink); color: var(--bg); overflow: hidden; }
      .ticker-in { display: flex; align-items: stretch; gap: 0; }
      .ticker-label {
        flex-shrink: 0; display: flex; align-items: center; gap: 7px;
        background: var(--red); color: #fff; font-weight: 700; font-size: 14.5px;
        padding: 7px 16px 7px 20px; position: relative; z-index: 2;
      }
      .ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
      .ticker-track { display: flex; gap: 0; white-space: nowrap; animation: tick 55s linear infinite; will-change: transform; }
      .ticker-bar:hover .ticker-track { animation-play-state: paused; }
      .ticker-track .tick-item {
        color: inherit; font-size: 14.5px; padding: 7px 0;
        display: inline-flex; align-items: center; gap: 10px;
      }
      .ticker-track .tick-item::after { content: "◆"; font-size: 8px; color: var(--amber); margin: 0 22px; }
      @keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
      @media (prefers-reduced-motion: reduce) {
        .ticker-track { animation: none; }
        html { scroll-behavior: auto; }
      }

      /* ---------- Hero ---------- */
      .hero { padding-top: 46px; padding-bottom: 8px; }
      .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
      .hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        background: var(--amber-tint); color: var(--amber);
        font-weight: 700; font-size: 14px; padding: 5px 14px; border-radius: 999px;
      }
      .hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
      .hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin: 16px 0 14px; letter-spacing: -.01em; }
      .hero h1 .hl { color: var(--green); position: relative; white-space: nowrap; }
      .hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 9px; color: var(--amber); }
      .hero p.lede { font-size: 18.5px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
      .hero-search { display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); max-width: 520px; }
      .hero-search input {
        flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px;
        padding: 6px 10px; color: var(--ink); min-width: 0;
      }
      .hero-search input:focus { outline: none; }
      .hero-search input::placeholder { color: var(--faint); }
      .hero-search button {
        background: var(--green); color: #fff; border: 0; border-radius: 11px;
        font: inherit; font-weight: 700; font-size: 15.5px; padding: 8px 20px; cursor: pointer;
      }
      .hero-search button:hover { background: var(--green-deep); }
      .hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
      .hero-cats span { font-size: 14px; color: var(--muted); padding: 7px 4px 7px 0; }
      .chip {
        border: 1.5px solid var(--line); background: var(--surface); color: var(--ink) !important;
        border-radius: 999px; padding: 6px 15px; font: inherit; font-size: 14.5px; font-weight: 600;
        cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
      }
      .chip:hover { border-color: var(--green); color: var(--green-deep) !important; }
      .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff !important; }

      /* ---------- Pinboard ---------- */
      .pinboard {
        background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--amber) 65%, var(--line));
        border-radius: 26px; padding: 14px; box-shadow: var(--shadow-lg); position: relative;
      }
      .pinboard::before {
        content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-4deg);
        width: 26px; height: 26px; border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #ff9d8f, var(--red) 70%);
        box-shadow: 0 4px 8px rgba(0,0,0,.25); z-index: 3;
      }
      .pin-head { display: flex; align-items: center; gap: 9px; padding: 4px 8px 12px; }
      .pin-head .pin-ico { color: var(--red); display: grid; place-items: center; }
      .pin-head strong { font-family: "Baloo Da 2", sans-serif; font-size: 19px; }
      .pin-head small { color: var(--muted); font-size: 13.5px; margin-left: auto; text-align: right; }
      .pin-card { text-decoration: none; display: block; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
      .pin-card img { width: 100%; aspect-ratio: 768 / 419; object-fit: cover; }
      .pin-body { padding: 18px 20px 20px; }
      .pin-body h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 8px 0 8px; }
      .pin-body p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
      .pin-flip { animation: pinflip .45s ease; }
      @keyframes pinflip { from { opacity: 0; transform: translateY(10px) rotate(.4deg); } to { opacity: 1; transform: none; } }
      @media (prefers-reduced-motion: reduce) { .pin-flip { animation: none; } }

      .cat-tag {
        display: inline-flex; align-items: center; gap: 5px;
        font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
        background: var(--green-tint); color: var(--green-deep);
      }
      .cat-tag.ads { background: var(--amber-tint); color: var(--amber); }
      .cat-tag.affiliate { background: var(--red-tint); color: var(--red); }
      .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--faint); font-size: 13.5px; align-items: center; }
      .meta .read-link { color: var(--green); font-weight: 700; }

      /* ---------- Sections ---------- */
      section.block { padding-top: 44px; padding-bottom: 6px; }
      .sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
      .sec-head h2 { font-size: clamp(25px, 3.4vw, 33px); font-weight: 800; display: flex; align-items: center; gap: 11px; }
      .sec-head h2 .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
      .ico.green { background: var(--green-tint); color: var(--green); }
      .ico.amber { background: var(--amber-tint); color: var(--amber); }
      .ico.red { background: var(--red-tint); color: var(--red); }
      .sec-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
      .sec-head .all-link { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--green); text-decoration: none; padding: 8px 4px; }
      .sec-head .all-link:hover { text-decoration: underline; }

      /* ---------- Article cards ---------- */
      .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
      .card {
        background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
        overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(64,48,12,.05);
        transition: transform .18s ease, box-shadow .18s ease;
      }
      .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
      @media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
      .card .thumb { position: relative; }
      .card .thumb img { width: 100%; aspect-ratio: 768 / 419; object-fit: cover; }
      .pin-btn {
        position: absolute; top: 10px; right: 10px; z-index: 2;
        width: 40px; height: 40px; min-height: 40px; border-radius: 50%;
        border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.94); color: #8a6d1f !important;
        display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.18);
      }
      .pin-btn:hover { transform: scale(1.08); }
      .pin-btn[aria-pressed="true"] { background: var(--red); color: #fff !important; border-color: var(--red); }
      .pinned-flag {
        position: absolute; top: 10px; left: 10px; z-index: 2;
        background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700;
        padding: 4px 11px; border-radius: 999px; display: none; align-items: center; gap: 5px;
      }
      .card.is-pinned .pinned-flag { display: inline-flex; }
      .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
      .card-body h3 { font-size: 18.5px; font-weight: 700; }
      .card-body h3 a { text-decoration: none; }
      .card-body h3 a:hover { color: var(--green-deep); }
      .card-body p { margin: 0; color: var(--muted); font-size: 14.8px; flex: 1; }
      .empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 34px 10px; border: 1.5px dashed var(--line); border-radius: 18px; background: var(--surface); }

      /* ---------- Trending ---------- */
      .trend-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
      .trend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 34px; padding-bottom: 40px; }
      .trend-item { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; padding: 13px 10px; border-radius: 14px; }
      .trend-item:hover { background: var(--surface); }
      .trend-rank {
        font-family: "Baloo Da 2", sans-serif; font-weight: 800; font-size: 34px; line-height: 1;
        color: transparent; -webkit-text-stroke: 1.6px var(--amber); flex-shrink: 0; width: 40px; text-align: center;
      }
      .trend-item:nth-child(-n+3) .trend-rank { color: var(--amber); -webkit-text-stroke: 0; }
      .trend-item h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 3px; }
      .trend-item:hover h3 { color: var(--green-deep); }
      .trend-item .meta { font-size: 13px; }

      /* ---------- Popular ---------- */
      .pop-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
      .pop-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; display: block; box-shadow: var(--shadow); }
      .pop-feature img { width: 100%; aspect-ratio: 768 / 419; object-fit: cover; }
      .pop-feature .pf-body { padding: 20px 22px 22px; }
      .pop-feature h3 { font-size: clamp(21px, 2.6vw, 27px); margin: 9px 0 8px; }
      .pop-feature p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
      .pop-list { display: flex; flex-direction: column; gap: 12px; }
      .pop-row {
        display: flex; gap: 15px; background: var(--surface); border: 1px solid var(--line);
        border-radius: 16px; padding: 12px; text-decoration: none; align-items: center;
      }
      .pop-row:hover { border-color: var(--green); }
      .pop-row img { width: 118px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
      .pop-row h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
      .pop-row .meta { font-size: 12.8px; }

      /* ---------- Categories ---------- */
      .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 8px; }
      .cat-tile {
        border-radius: 20px; padding: 22px; text-decoration: none; display: block;
        border: 1px solid var(--line); background: var(--surface);
        transition: transform .18s ease, box-shadow .18s ease;
      }
      .cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
      .cat-tile .tile-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 13px; }
      .cat-tile h3 { font-size: 20px; margin-bottom: 5px; }
      .cat-tile p { margin: 0; color: var(--muted); font-size: 14.8px; }
      .cat-tile .go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--green); }
      .tile-green { background: var(--green-tint); color: var(--green-deep); }
      .tile-amber { background: var(--amber-tint); color: var(--amber); }
      .tile-red { background: var(--red-tint); color: var(--red); }

      /* ---------- Start path ---------- */
      .path-band { margin: 52px 0 0; background: var(--green); color: #eafaf1; border-radius: 28px; padding: 36px 38px; }
      .path-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 8px; }
      .path-band > p { margin: 0 0 26px; color: #c9ecd8; max-width: 44em; }
      .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
      .step { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 20px; }
      .step .num {
        width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #23180a;
        font-family: "Baloo Da 2", sans-serif; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px;
      }
      .step h3 { color: #fff; font-size: 18.5px; margin-bottom: 6px; }
      .step p { margin: 0; font-size: 14.8px; color: #d7f2e2; }
      .step a { color: #ffd98a; font-weight: 700; text-decoration: none; }
      .step a:hover { text-decoration: underline; }

      /* ---------- Footer ---------- */
      footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-soft); }
      .foot-in { padding: 34px 20px 40px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
      .foot-in .brand-name { font-size: 21px; }
      .foot-note { color: var(--muted); font-size: 14.5px; max-width: 40em; }
      .foot-links { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
      .foot-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 4px 0; }
      .foot-links a:hover { color: var(--green-deep); }

      /* ---------- Toast ---------- */
      .toast {
        position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 80px);
        background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px;
        font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); z-index: 90;
        transition: transform .3s ease; max-width: min(92vw, 560px); text-align: center;
      }
      .toast.show { transform: translate(-50%, 0); }

      /* ---------- Responsive ---------- */
      @media (max-width: 940px) {
        .hero-grid { grid-template-columns: 1fr; gap: 30px; }
        .grid { grid-template-columns: repeat(2, 1fr); }
        .cat-grid { grid-template-columns: repeat(2, 1fr); }
        .pop-grid { grid-template-columns: 1fr; }
        nav.main-nav { display: none; }
      }
      @media (max-width: 600px) {
        body { font-size: 16px; }
        .grid { grid-template-columns: 1fr; }
        .cat-grid { grid-template-columns: 1fr; }
        .trend-list { grid-template-columns: 1fr; }
        .steps { grid-template-columns: 1fr; }
        .path-band { padding: 26px 20px; }
        .brand-tag { display: none; }
        .header-in { gap: 10px; }
        .brand { min-width: 0; }
        .brand-name { font-size: 19px; white-space: nowrap; }
        .brand-mark { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
        .visit-btn { padding: 8px 12px; font-size: 13.5px; margin-left: 0; white-space: nowrap; }
        .hero { padding-top: 30px; }
        .pin-head small { display: none; }
      }

/* ---------- WordPress adaptations ---------- */
.thumb-fallback {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; display: grid; place-items: center;
  font-family: "Baloo Da 2", sans-serif; font-weight: 800;
}
.pin-card .thumb-fallback, .pop-feature .thumb-fallback { aspect-ratio: 768 / 419; font-size: 72px; }
.card .thumb .thumb-fallback { aspect-ratio: 768 / 419; font-size: 56px; }
.pop-row .thumb-fallback { width: 118px; height: 76px; border-radius: 10px; flex-shrink: 0; font-size: 34px; }
.cat-tile .count { display: block; margin-top: 10px; font-size: 13.5px; color: var(--faint); font-weight: 600; }
.search-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 10px; font-size: 14.5px; }
