/* What the Laravel pages add to the Note Bazar theme's own stylesheets. */

/* Advertisements: the admin's device choice decides where each one shows. */
.hp-ad { display: block; margin: 0 auto 10px; text-align: center; }
.hp-ad img { max-width: 100%; height: auto; }
.hp-ad--on-desktop { display: none; }
@media (min-width: 960px) {
    .hp-ad--on-desktop { display: block; }
    .hp-ad--on-mobile { display: none; }
}
.nb-side-ads .hp-ad { margin-bottom: 15px; }
.nb-side-ads .hp-ad img { max-width: 300px; width: 100%; }

/* Banking beside the ad column: the white card reaches the foot of the ads, with more headlines
   and a link to the section filling the space instead of a blank gap. */
.nb-fill-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.nb-more-list { border-top: 1px solid #e5e5e5; padding-top: 15px; }
.nb-more-item { display: flex; gap: 12px; align-items: center; color: #222; text-decoration: none; }
.nb-more-item:hover { color: #268f9a; text-decoration: none; }
.nb-more-item img { width: 110px; height: 70px; object-fit: cover; border-radius: 4px; flex: none; }
.nb-more-item span { font-size: 17px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-more-link { margin-top: auto; padding-top: 20px; text-align: center; }

/* One story with its picture at the head of a card (Tech, Auto). */
.nb-lead { display: block; color: #222; text-decoration: none; }
.nb-lead:hover { color: #268f9a; text-decoration: none; }
.nb-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.nb-lead h3 { margin: 12px 0 0; font-size: 21px; line-height: 1.45; font-weight: 600; color: inherit; }
.nb-lead--big h3 { font-size: 26px; }
.nb-lead p { margin: 10px 0 0; color: #555; font-size: 16px; line-height: 1.6; }
.nb-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-mini-cards { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ececec; }
.nb-lead--mini h3 { font-size: 17px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Headline rows under or beside the lead story, split by thin lines. */
.nb-rows { margin-top: 15px; }
.nb-rows .nb-more-item { padding: 12px 0; border-top: 1px solid #ececec; }
.nb-rows--side { margin-top: 0; }
.nb-rows--side .nb-more-item:first-child { padding-top: 0; border-top: 0; }
.post-entry .hp-ad, .post-entry blockquote { margin-top: 15px; }

/* Ads inside a story: full-width banners across the column, squares centred in their own box,
   each marked "Advertisement" so readers can tell them from the story. */
.nb-in-ad { clear: both; margin: 22px 0; padding: 10px 0 12px; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; text-align: center; }
.nb-in-ad::before { content: "Advertisement"; display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.nb-in-ad .hp-ad { margin: 0 auto 8px; }
.nb-in-ad .hp-ad:last-child { margin-bottom: 0; }
.nb-in-ad--full .hp-ad img { width: 100%; max-width: 100%; }
.nb-in-ad--square { max-width: 340px; margin-left: auto; margin-right: auto; background: #f7f7f7; border: 0; border-radius: 6px; padding: 10px 20px 20px; }
.nb-in-ad--square .hp-ad img { width: 300px; max-width: 100%; }

/* Share bar under the headline: the total beside the buttons, and WhatsApp on computers too. */
.reader-effect { align-items: center; gap: 4px; }
.total-shares { line-height: 1.2; color: #555; font-size: 15px; }
.total-shares .total-number { margin-right: 0 !important; font-size: 18px; font-weight: 700; color: #222; }
.sharethis-inline-share-buttons .st-btn[data-network='whatsapp'] { display: inline-block !important; }

/* Story page right column: Latest with small pictures, Popular numbered, ads between them. */
.nb-side-ad { margin-bottom: 20px; text-align: center; }
.nb-side-ad .hp-ad img { width: 300px; max-width: 100%; }
.nb-side-box { margin-bottom: 24px; padding: 16px; background: #fff; border: 1px solid #ececec; border-radius: 8px; }
.nb-side-title { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid #ececec; font-size: 20px; font-weight: 700; line-height: 1.3; }
.nb-side-title span { display: inline-block; padding-bottom: 10px; margin-bottom: -12px; border-bottom: 2px solid #268f9a; color: #268f9a; }
.nb-side-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #f0f0f0; color: #222; text-decoration: none; }
.nb-side-title + .nb-side-item { border-top: 0; }
.nb-side-item:hover { color: #268f9a; text-decoration: none; }
.nb-side-item img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.nb-side-item span { font-size: 16px; line-height: 1.5; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-side-item--rank b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #e8f4f5; color: #268f9a; font-size: 16px; line-height: 32px; text-align: center; }
.nb-side-title + .nb-side-item--rank b { background: #268f9a; color: #fff; }

/* Stories copied from WordPress keep their pictures inside the column. */
.post-entry img, .post-entry iframe, .post-entry video { max-width: 100%; height: auto; }
.post-entry figure { margin-left: 0; margin-right: 0; }

/* Category tabs (Economy, News): the open tab stands out like the theme's. */
.sub-nav-artha > li.uk-active .sub-tab-name { color: #268f9a; border-bottom: 2px solid #268f9a; }

/* Tags under a story. */
.tag-cloud-link { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; background: #f2f2f2; border-radius: 3px; color: #333; font-size: 14px; }
.tag-cloud-link:hover { background: #268f9a; color: #fff; text-decoration: none; }

/* Footer: a dark brand block with four columns, the registration line, and the copyright bar. */
.nbf { margin-top: 50px; background: #0f2a31; color: #c9d6d9; font-size: 15px; line-height: 1.6; }
.nbf a { color: #e8f1f2; text-decoration: none; }
.nbf a:hover { color: #5fd0dc; }
.nbf-grid { display: grid; grid-template-columns: 1.5fr 1.2fr .9fr 1.3fr; gap: 40px; padding: 50px 0 34px; }
.nbf-logo img { display: block; width: 230px; height: auto; background: #fff; border-radius: 8px; padding: 10px 14px; }
.nbf-about { margin: 18px 0 20px; max-width: 320px; color: #a9bcc0; }
.nbf-social { display: flex; gap: 10px; }
.nbf-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.nbf-social a:hover { background: #268f9a; color: #fff; }
.nbf-col h4 { margin: 0 0 18px; padding-bottom: 10px; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .02em; border-bottom: 2px solid #268f9a; display: inline-block; }
.nbf-links { list-style: none; margin: 0; padding: 0; }
.nbf-links li { margin-bottom: 9px; }
.nbf-links--two { columns: 2; column-gap: 20px; }
.nbf-contact { list-style: none; margin: 0; padding: 0; }
.nbf-contact li { display: flex; gap: 10px; margin-bottom: 14px; }
.nbf-contact li > [uk-icon] { color: #5fd0dc; flex: none; margin-top: 3px; }
.nbf-reg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #a9bcc0; font-size: 14px; }
.nbf-reg b { color: #fff; font-weight: 600; margin-right: 6px; }
.nbf-bar { background: #268f9a; color: #e9f7f8; font-size: 14px; }
.nbf-bar-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 14px 0; }
.nbf-bar a { color: #fff; font-weight: 600; }
@media (max-width: 959px) {
    .nbf-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 36px; }
    .nbf-brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .nbf { padding-bottom: 60px; } /* room for the phone menu bar */
    .nbf-grid { grid-template-columns: 1fr; }
    .nbf-reg { flex-direction: column; align-items: center; gap: 4px; }
    .nbf-bar-in { justify-content: center; text-align: center; }
}

/* Back to top. */
.nb-totop { position: fixed; right: 18px; bottom: 80px; z-index: 980; padding: 10px; border-radius: 50%; background: #268f9a; color: #fff; }
.nb-totop:hover { color: #fff; }

/* Page numbers. */
.uk-pagination > .uk-active > a { background: #268f9a; color: #fff; }
