/* =========================================================
   NishaMadhulika.com - साइट डिज़ाइन
   पुरानी साइट जैसा ही रूप (नीला मेनू, ग्रे सेक्शन हेडर),
   पर मोबाइल पर ठीक, हल्का और तेज़
   ========================================================= */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6b6b6b;
  --line: #e3e3e0;
  --blue: #1f6cc4;
  --blue-dark: #17559c;
  --link: #1a5fb4;
  --brand: #6a2a12;
  --accent: #e8730c;
  --head-bg: #ececea;
  --ok: #1e7b34;
  --warn: #9a6200;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --font: "Hind", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
button, input, textarea, select { font: inherit; }

.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ---------- हेडर ---------- */
.site-header { background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 6px; color: var(--brand); position: relative; padding-bottom: 14px; }
.brand:hover { text-decoration: none; }
.brand-word { font-family: "Yatra One", var(--font); font-size: 38px; line-height: 1; letter-spacing: .5px; }
.brand-photo, .brand-dot { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #b8860b; object-fit: cover; }
.brand-dot { display: inline-block; background: radial-gradient(circle at 50% 40%, #f3c27a, #c46a1c); }
.brand-domain { position: absolute; right: 0; bottom: 0; font-size: 13px; color: var(--brand); }
.brand-logo { max-height: 72px; width: auto; }
.header-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; }
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.pill-green { background: #2e9a46; }
.pill-orange { background: #ef6c1a; }
.pill-red { background: #d62b2b; }
.header-banner { margin-left: auto; }
.header-banner img { display: block; max-height: 92px; width: auto; border-radius: 8px; }

/* ---------- नीला मेनू ---------- */
.main-nav { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.nav-row { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 20px; padding: 8px 4px; cursor: pointer; }
.nav-toggle span { font-size: 16px; font-weight: 600; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { display: block; color: #fff; font-weight: 600; padding: 13px 11px; font-size: 17px; border-bottom: 3px solid transparent; }
.nav-list > li > a:hover, .nav-list > li.active > a { text-decoration: none; background: var(--blue-dark); border-bottom-color: var(--accent); }
.nav-home { font-size: 20px !important; }
.sub-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; max-height: 70vh; overflow: auto; list-style: none; margin: 0; padding: 6px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); border-radius: 0 0 var(--radius) var(--radius); }
.sub a { display: block; padding: 7px 16px; color: var(--text); font-size: 16px; }
.sub a:hover { background: #f0f5fc; text-decoration: none; }
.sub small { color: var(--muted); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.nav-search { display: flex; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.nav-search input { background: transparent; border: 0; color: #fff; padding: 8px 14px; width: 190px; outline: none; }
.nav-search input::placeholder { color: rgba(255,255,255,.8); }
.nav-search button { background: none; border: 0; color: #fff; padding: 0 12px; cursor: pointer; }

/* ---------- सेक्शन / कार्ड ---------- */
.main { padding-top: 24px; padding-bottom: 40px; }
.block { margin-bottom: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--head-bg); border-bottom: 2px solid #d9d9d6; padding: 10px 16px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: #333; }
.more { font-size: 15px; white-space: nowrap; border-bottom: 1px dotted currentColor; }
.more:hover { text-decoration: none; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 10px 2px 4px; }
.card-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: #2b2b2b; }
.card-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid .card { background: transparent; }

/* ---------- होम पेज ---------- */
.home-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side-block { background: var(--surface); border: 1px solid var(--line); padding: 6px; }
.side-block .block-head { margin: 0 0 10px; padding: 8px 10px; }
.side-block .block-head h2 { font-size: 21px; }
.side-list { display: grid; gap: 16px; }
.side-list .card { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.side-list .card:last-child { border-bottom: 0; }
.side-list .card-title { font-size: 16px; -webkit-line-clamp: 3; }
.side-list .card-text { font-size: 14px; }
.side-block > .more { display: inline-block; margin: 4px 6px 8px; }
.side-list.compact .card { flex-direction: row; gap: 10px; align-items: flex-start; }
.side-list.compact .card-img { width: 96px; flex: none; aspect-ratio: 1; border-radius: 4px; }
.side-list.compact .card-body { padding: 0; }
.side-list.compact .card-title { font-size: 15px; }

/* वीडियो स्लाइडर */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.video-thumb { position: relative; padding: 0; border: 0; cursor: pointer; background: #000; aspect-ratio: 16 / 9; overflow: hidden; scroll-snap-align: start; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0,0,0,.45); border: 2px solid #fff; }
.video-thumb:hover .play { background: #d62b2b; border-color: #d62b2b; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.slider-btn.prev { left: -14px; }
.slider-btn.next { right: -14px; }
/* वीडियो पेज */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.vcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.vcard .video-thumb { display: block; width: 100%; }
.vcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard-body h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.vcard-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.vcard-meta a { font-weight: 600; }
.video-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 16px; }
.video-modal[hidden] { display: none; }
.video-modal-box { width: min(960px, 100%); position: relative; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- लिस्ट पेज ---------- */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.list-head { margin-bottom: 18px; }
.list-head h1 { font-size: 32px; margin-bottom: 4px; }
.list-head h1 small { font-size: 18px; color: var(--muted); font-weight: 500; }
.list-head p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; color: var(--text); font-size: 15px; }
.chips a:hover { border-color: var(--blue); text-decoration: none; }
.chips small { color: var(--muted); }
.empty { background: var(--surface); padding: 24px; border-radius: var(--radius); text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 6px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--blue); text-decoration: none; }
.pager .current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.big-search { display: flex; gap: 8px; margin: 12px 0; max-width: 640px; }
.big-search input { flex: 1; padding: 10px 14px; border: 1px solid #ccc; border-radius: var(--radius); background: #fff; }
.narrow.center .big-search { margin-left: auto; margin-right: auto; }

/* ---------- रेसिपी पेज ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.recipe { background: var(--surface); padding: 26px 30px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.recipe-title { font-size: 32px; color: #1d1d1d; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.recipe-meta a { color: var(--muted); }
.meta-rating { color: #c47f00; font-weight: 600; }
.recipe-hero { width: 100%; border-radius: var(--radius); margin-bottom: 18px; }
.recipe-content { font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.recipe-content h2 { font-size: 23px; margin: 1.2em 0 .5em; color: var(--brand); border-left: 4px solid var(--accent); padding-left: 10px; }
.recipe-content h3 { font-size: 20px; margin: 1.2em 0 .4em; }
.recipe-content ul, .recipe-content ol { padding-left: 1.4em; }
.recipe-content li { margin: .2em 0; }
.recipe-content img { border-radius: 4px; height: auto !important; }
.recipe-content img.quote_right, .recipe-content img[align="right"] { float: right; margin: 4px 0 12px 16px; max-width: 45%; }
.recipe-content img.quote_left, .recipe-content img[align="left"] { float: left; margin: 4px 16px 12px 0; max-width: 45%; }
.recipe-content p { margin: 0 0 .4em; }
.recipe-content h2 + p, .recipe-content h3 + p { margin-top: .2em; }
.recipe-content::after { content: ""; display: table; clear: both; }
.recipe-content iframe, .video-embed iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; margin: 12px auto; }
.recipe-content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.recipe-content td, .recipe-content th { border: 1px solid var(--line); padding: 6px 10px; }
.video-embed { margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.tags a { background: #f1f4f9; padding: 3px 12px; border-radius: 999px; }

.rate-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: #fff8ec; border: 1px solid #f3dfbb; border-radius: var(--radius); padding: 12px 16px; margin: 20px 0 28px; }
.stars button { background: none; border: 0; font-size: 30px; line-height: 1; color: #d6d6d6; cursor: pointer; padding: 0 2px; }
.stars button.on, .stars:not(.done) button.hover { color: #f2a900; }
.stars.done button { cursor: default; }
.rate-info { color: var(--muted); font-size: 15px; }

.sidebar { position: sticky; top: 70px; }
.sidebar .side-block { padding: 6px 10px 10px; }

/* ---------- कमेंट ---------- */
.comments { margin-top: 10px; }
.comments > h2 { font-size: 24px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.comment-form { display: grid; gap: 10px; background: #f8f9fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.comment-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.comment-form input, .comment-form textarea { width: 100%; padding: 9px 12px; border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; font-weight: 400; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error, .form-errors { color: #b3261e; font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.replying { margin: 0; font-size: 15px; }
.btn { justify-self: start; background: var(--blue); color: #fff; border: 0; border-radius: var(--radius); padding: 9px 22px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.comment { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment-head time { color: var(--muted); font-size: 14px; }
.comment-text { margin-top: 4px; overflow-wrap: anywhere; }
.comment-text p { margin: 0 0 .5em; }
.comment.reply { margin: 10px 0 0 22px; padding: 10px 14px; border: 0; border-left: 3px solid var(--line); background: #fafafa; }
.comment.by-admin { border-left-color: var(--accent); background: #fff7ee; }
.comment.by-admin > .comment-head strong::after { content: " ✓ निशा मधुलिका"; color: var(--accent); font-size: 13px; font-weight: 600; }
.lang-en .comment.by-admin > .comment-head strong::after { content: " ✓ Nisha Madhulika"; }
.reply-btn { background: none; border: 0; color: var(--link); padding: 4px 0; cursor: pointer; font-size: 14px; }
.notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.notice-ok { background: #e7f5ea; color: var(--ok); }
.notice-warn { background: #fff4d6; color: var(--warn); }

/* ---------- विज्ञापन (सिर्फ़ 2, रेसिपी पेज पर) ---------- */
.ad-box { margin: 22px 0; padding: 6px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 120px; text-align: center; }
.ad-label { display: block; font-size: 11px; color: #9a9a9a; letter-spacing: .5px; margin-bottom: 4px; }
.ad-side { background: var(--surface); border: 1px solid var(--line); padding: 8px; margin: 0 0 18px; min-height: 280px; }
@media (max-width: 1100px) { .ad-side { display: none; } }

/* ---------- फ़ुटर ---------- */
.site-footer { background: #23272e; color: #cfd3da; padding: 30px 0; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer strong { color: #fff; font-size: 20px; }
.site-footer p { margin: 4px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: #cfd3da; }
.copy { width: 100%; color: #8b919b; font-size: 14px; }

/* ---------- टैबलेट / मोबाइल ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-main { order: -1; }
  .home-side { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .slider-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .nav-list > li > a { padding: 13px 8px; font-size: 16px; }
}

@media (max-width: 860px) {
  .header-row { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-banner { margin-left: 0; width: 100%; }
  .header-banner img { max-height: 70px; margin: 0 auto; }
  .nav-toggle { display: block; }
  .nav-row { flex-wrap: wrap; }
  .nav-search { flex: 1; min-width: 0; }
  .nav-search input { width: 100%; }
  .nav-list { display: none; flex-basis: 100%; flex-direction: column; order: 3; padding-bottom: 8px; }
  .nav-list.open { display: flex; }
  .nav-list > li { flex-wrap: wrap; }
  .nav-list > li > a { flex: 1; border-bottom: 0; }
  .sub-toggle { display: block; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .sub { position: static; flex-basis: 100%; box-shadow: none; border-radius: var(--radius); max-height: none; margin: 0 8px 8px; }
  .has-sub.sub-open > .sub { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .slider-track { grid-auto-columns: 70%; }
  .slider-btn { display: none; }
  .recipe { padding: 18px 16px; }
  .recipe-title { font-size: 26px; }
  .recipe-content { font-size: 17px; }
  .row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-word { font-size: 30px; }
  .brand-photo, .brand-dot { width: 44px; height: 44px; }
  .header-links { gap: 6px; }
  .pill { padding: 4px 10px; font-size: 13px; }
  .block-head h2 { font-size: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 .card, .grid-4 .card { flex-direction: row; gap: 12px; }
  .grid-3 .card-img, .grid-4 .card-img { width: 120px; flex: none; aspect-ratio: 1; border-radius: 4px; }
  .grid-3 .card-body, .grid-4 .card-body { padding: 0; }
  .grid-3 .card-title, .grid-4 .card-title { font-size: 17px; }
  .home-side { grid-template-columns: 1fr; }
  .recipe-content img.quote_right, .recipe-content img.quote_left,
  .recipe-content img[align] { float: none; max-width: 100%; margin: 8px 0; }
  .list-head h1 { font-size: 26px; }
}

@media print {
  .site-header, .site-footer, .sidebar, .comments, .rate-box, .block { display: none !important; }
  .recipe { box-shadow: none; padding: 0; }
}
