/* Small touches on top of the live theme's style.css for the Laravel pages. */

/* "ताजा" column: title centred beside the round picture, with room between them. */
.fancy-jumbo .media { align-items: center; }
.fancy-jumbo .media.mt-4 { margin-top: 1rem !important; }
.fancy-jumbo .editorial-img figure { margin: 0; }
.fancy-jumbo .media-body h5 { margin: 0 !important; padding-left: 18px !important; font-size: 17px !important; line-height: 1.55; color: #333; }
.fancy-jumbo .media-body a:hover h5 { color: #134e96; }
.fancy-jumbo hr { margin: 1rem 0; }

/* Less white space between the page and the blue footer. */
footer.mt-5 { margin-top: 1.5rem !important; }

/* Readers' comments, in the site's blue and Nepali type. */
.np-comments { margin: 0 0 1.5rem; font-family: 'Mukta', sans-serif; }
.np-comments label { font-size: 15px; font-weight: 600; color: #333; }
.np-comments .uk-input, .np-comments .uk-textarea { border-radius: 4px; font-family: inherit; font-size: 16px; }
.np-comments .pc__submit { background: #134e96; border-color: #134e96; color: #fff; font-family: inherit; font-size: 16px; }
.np-comments .pc__submit:hover { background: #0f3d77; }
.np-comments .pc__title { font-size: 18px; font-weight: 700; margin-bottom: .5rem; }
.np-comments.pc { margin-top: 0; padding-top: 0; border-top: 0; }

/* Ads meant for one kind of screen only. */
@media (max-width: 767.98px) { .hp-ad--on-desktop { display: none !important; } }
@media (min-width: 768px) { .hp-ad--on-mobile { display: none !important; } }
.hp-ad img { max-width: 100%; height: auto; }

/* Skip ad: full screen when the homepage or a story opens, with the logo and a Skip button.
   site-tools.js opens it and closes it after 12 seconds; Skip, Escape or a click outside close it sooner. */
.pop-ad { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(255, 255, 255, .98); animation: pop-ad-in .25s ease; }
.pop-ad[hidden] { display: none; }
.pop-ad-open, .pop-ad-open body { overflow: hidden; }
.pop-ad__box { width: min(970px, 100%); text-align: center; }
.pop-ad img.pop-ad__logo { display: block; width: 200px; max-width: 50vw; height: auto; margin: 0 auto 18px; }
.pop-ad__bar { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 34px; margin-bottom: 10px; }
.pop-ad__skip { padding: 6px 18px; border: 0; border-radius: 999px; background: #c00; color: #fff; font-family: 'Mukta', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(204, 0, 0, .3); }
.pop-ad__skip:hover, .pop-ad__skip:focus-visible { background: #134e96; }
.pop-ad__item a, .pop-ad__item img { display: block; margin-inline: auto; }
.pop-ad__item img { max-width: 100%; max-height: 70vh; width: auto; height: auto; border: 1px solid #e3e5e8; }
@keyframes pop-ad-in { from { opacity: 0; } }
@media (max-width: 767px) { .pop-ad img.pop-ad__logo { width: 150px; } .pop-ad__item img { max-height: 65vh; } }

/* Homepage cards: every picture the same 16:9 shape and every card in a row the same height. */
.news-list { display: flex; }
.news-list > .uk-card { display: flex; flex-direction: column; width: 100%; height: 100%; }
.news-list .uk-card-media-top img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-list .uk-card-body { flex: 1; padding: 14px 16px; }
.news-list .uk-card-body h5 { margin: 0; line-height: 1.55; }

/* Homepage: the same 24px between every section and every ad row. */
.np-home > * { margin-top: 0 !important; margin-bottom: 24px !important; padding-top: 0 !important; }
.np-home > *:last-child { margin-bottom: 0 !important; }
/* Ad pictures sit on their own line, so no gap is left under them. */
.hp-ad img, .np-home .widget img { display: block; margin-inline: auto; }
.hp-ad + .hp-ad { margin-top: 12px; }

/* Story page: 24px between the blocks of the story column, 16px under each title bar. */
.single > .col-md-8 > * { margin-top: 0 !important; margin-bottom: 24px !important; }
.single > .col-md-8 > hr { margin: 0 0 24px !important; }
.single > .col-md-8 > .tag-nav { padding-top: 0 !important; }
.single .cat-title.mb-3, .single .mt-3 > .cat-title { margin-bottom: 16px !important; }
.single .post-entry > .mb-2, .single .post-entry .don { margin-bottom: 24px !important; }
.single .post-entry > .mb-2 > .mt-2 { margin-top: 24px !important; margin-bottom: 0 !important; }
.single .np-comments .pc__form { margin-top: 0; }
.single .post-entry > p:last-child { margin-bottom: 0; padding-bottom: 0; }
.single .np-comments .pc__form { padding: 0; }
/* Right column ads: 24px from the lists above and below them. */
.np-side-ads:has(.hp-ad) { margin: 24px 0 !important; }
.np-side-ads .hp-ad + .hp-ad { margin-top: 16px; }
.category > .pt-3 { padding-top: 24px !important; }

/* Text laid over a picture lets clicks through to the story link under it; its own links still work. */
.uk-overlay.uk-position-bottom { pointer-events: none; }
.uk-overlay.uk-position-bottom a { pointer-events: auto; }

/* ShareThis gives its buttons z-index 94034; keep them in the page so the skip ad and menus cover them. */
.sharethis-inline-share-buttons, .sharethis-inline-reaction-buttons { position: relative; z-index: 1 !important; }
