/* =========================================================
   Newsair (free) – "Pro look" Additional CSS  (v2)
   Matched to Newsair 2.4.1 style.css
   Paste into: Appearance > Customize > Additional CSS
   (replace everything you pasted before)
   ========================================================= */

:root {
  --np-accent: #e91e63;        /* main brand colour – change this */
  --np-accent-dark: #b0003a;
  --np-footer: #111827;        /* footer background */
  --np-footer-bottom: #0b0f19; /* copyright bar background */
  --np-radius: 10px;
  --np-shadow: 0 4px 18px rgba(17, 24, 39, 0.08);
  --np-shadow-hover: 0 10px 30px rgba(17, 24, 39, 0.16);
}

/* ---------- 1. Global ---------- */
::selection { background: var(--np-accent); color: #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--np-accent); }

/* ---------- 2. Top bar & menu ---------- */
.bs-head-detail .top-date {
  background: var(--np-accent);
  color: #fff;
}

/* Theme's menu hover line: make it thicker + accent coloured */
.navbar-wp .navbar-nav > li:after {
  height: 3px;
  background: var(--np-accent);
  border-radius: 3px;
}
.navbar-wp .navbar-nav > li > a {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .04em;
}

/* Dropdown menus */
.navbar-wp .dropdown-menu {
  border-top: 3px solid var(--np-accent);
  border-radius: 0 0 var(--np-radius) var(--np-radius);
  box-shadow: var(--np-shadow-hover);
  overflow: hidden;
}

/* ---------- 3. Breaking news ticker ---------- */
.mg-latest-news {
  border-radius: var(--np-radius);
  overflow: hidden;
  box-shadow: var(--np-shadow);
}
.mg-latest-news .bn_title .title {
  background: var(--np-accent) !important;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .05em;
}

/* ---------- 4. Post cards ---------- */
.bs-blog-post,
.bs-sidebar .bs-widget,
.bs-card-box {
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}
.bs-blog-post {
  transition: transform .25s ease, box-shadow .25s ease;
}
.bs-blog-post:hover {
  box-shadow: var(--np-shadow-hover);
}
.bs-blog-post:not(.single):hover {
  transform: translateY(-4px);
}

/* Image zoom on hover */
.bs-blog-thumb .back-img,
.bs-blog-thumb img,
.small-post .img-small-post img {
  transition: transform .6s ease;
}
.bs-blog-post:hover .bs-blog-thumb .back-img,
.bs-blog-post:hover .bs-blog-thumb img,
.small-post:hover .img-small-post img {
  transform: scale(1.07);
}
.small-post .img-small-post { border-radius: 8px; }

/* Animated underline on post titles */
.bs-blog-post .title a,
.small-post .title a {
  background-image: linear-gradient(var(--np-accent), var(--np-accent));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
.bs-blog-post .title a:hover,
.small-post .title a:hover {
  background-size: 100% 2px;
}

/* Category badges */
.bs-blog-category a {
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 10px;
}

/* ---------- 5. Widget titles ---------- */
.bs-widget-title {
  border-bottom-width: 2px;
}
.bs-widget-title .title {
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: .04em;
  background: var(--np-accent) !important;
  color: #fff !important;
  border-radius: 6px 6px 0 0;
}
.bs-widget-title {
  border-color: var(--np-accent) !important;
}

/* Tag cloud as pills */
.bs-sidebar .bs-widget .tagcloud a,
.wp-block-tag-cloud a,
footer .bs-widget .tagcloud a {
  border-radius: 50px;
}

/* ---------- 6. Buttons ---------- */
.btn,
.more-link,
button,
input[type="submit"],
.wp-block-button__link {
  border-radius: 6px;
}

/* ---------- 7. Single post reading ---------- */
.bs-blog-post.single .bs-header .title {
  line-height: 1.25;
}
.small.single p {
  font-size: 17px;
  line-height: 1.85;
}
.small.single h2 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--np-accent);
}
.small.single img {
  border-radius: var(--np-radius);
}
blockquote {
  border-color: var(--np-accent) !important;
}
.post-share-icons a {
  transition: transform .2s ease;
}
.post-share-icons a:hover {
  transform: translateY(-3px);
}
.bs-info-author-block.py-4.px-3.mb-4 {
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
  border: 0;
}
.bs-info-author-block .bs-author-pic img {
  border-color: var(--np-accent);
}

/* ---------- 8. Pagination ---------- */
.navigation.pagination .nav-links .page-numbers,
.navigation.pagination .nav-links a {
  border-radius: 6px;
}
.navigation.pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links a:hover {
  background: var(--np-accent) !important;
  color: #fff !important;
}

/* ---------- 9. Scroll-to-top ---------- */
.bs_upscr {
  border-radius: 50%;
  background: var(--np-accent) !important;
  border-color: var(--np-accent) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* =========================================================
   10. ARCHIVE PAGES (category, tag, author, date, search)
   ========================================================= */

/* Title banner (theme uses .page-entry-title) */
.archive .page-entry-title,
.search .page-entry-title {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
  border-radius: var(--np-radius);
  padding: 30px !important;
  margin-bottom: 30px;
}
.archive .page-entry-title::after,
.search .page-entry-title::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--np-accent);
  opacity: .3;
}
.archive .page-entry-title .entry-title,
.archive .page-entry-title .title,
.search .page-entry-title .entry-title,
.search .page-entry-title .title {
  color: #fff !important;
  position: relative;
  z-index: 1;
  margin: 0;
}
/* Breadcrumb inside the banner */
.archive .page-entry-title .bs-breadcrumb-section,
.search .page-entry-title .bs-breadcrumb-section {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.archive .page-entry-title .bs-breadcrumb-section .overlay,
.search .page-entry-title .bs-breadcrumb-section .overlay {
  background: transparent !important;
}
.archive .page-entry-title .breadcrumb,
.archive .page-entry-title .breadcrumb a,
.archive .page-entry-title .breadcrumb span,
.search .page-entry-title .breadcrumb,
.search .page-entry-title .breadcrumb a,
.search .page-entry-title .breadcrumb span,
.search .search-results-count {
  color: #d1d5db !important;
}

/* Shorter, neater list cards on archive pages */
.archive .list-blog.bs-blog-post,
.search .list-blog.bs-blog-post {
  padding: 12px;
  margin-bottom: 24px;
}
.archive .list-blog .bs-blog-thumb,
.search .list-blog .bs-blog-thumb {
  width: 38%;
  max-width: 38%;
  min-width: 38%;
  height: 200px;
  min-height: 200px;
  border-radius: 8px;
}
.archive .list-blog.bs-blog-post .title,
.search .list-blog.bs-blog-post .title {
  font-size: 20px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.archive .list-blog.bs-blog-post p,
.search .list-blog.bs-blog-post p {
  font-size: 15px;
  opacity: .85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid cards on archive pages */
.archive .grid-card .bs-blog-thumb.lg,
.search .grid-card .bs-blog-thumb.lg {
  height: 220px;
}

/* =========================================================
   11. COMPACT ARCHIVES WIDGET (last 12 months, 2 columns)
   ========================================================= */

/* Show only the latest 12 months – updates itself every month */
.widget_archive ul li:nth-child(n+13),
.wp-block-archives-list li:nth-child(n+13) {
  display: none !important;
}

.bs-widget.widget_archive ul,
.bs-widget .wp-block-archives-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-bottom: 10px;
}
.bs-widget.widget_archive ul li,
.bs-widget .wp-block-archives-list li {
  display: block;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bs-widget.widget_archive ul li a,
.bs-widget .wp-block-archives-list li a {
  display: block;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  background: rgba(127, 127, 127, .12);
  transition: background .2s ease, color .2s ease;
}
.bs-widget.widget_archive ul li a::before,
.bs-widget .wp-block-archives-list li a::before {
  content: none !important;
}
.bs-widget.widget_archive ul li a:hover,
.bs-widget .wp-block-archives-list li a:hover {
  background: var(--np-accent);
  color: #fff !important;
  text-decoration: none !important;
}
.bs-widget.widget_archive ul::-webkit-scrollbar,
.bs-widget .wp-block-archives-list::-webkit-scrollbar { width: 4px; }
.bs-widget.widget_archive ul::-webkit-scrollbar-thumb,
.bs-widget .wp-block-archives-list::-webkit-scrollbar-thumb {
  background: var(--np-accent);
  border-radius: 4px;
}

/* =========================================================
   12. FOOTER
   ========================================================= */
footer.footer,
footer .overlay {
  background: linear-gradient(180deg, var(--np-footer) 0%, var(--np-footer-bottom) 100%) !important;
}
footer.footer { position: relative; }
footer.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--np-accent), #ff9800, var(--np-accent));
}
footer .bs-footer-widget-area {
  padding-top: 60px;
}
footer,
footer p,
footer li,
footer .bs-widget {
  color: #9ca3af;
}
footer a,
footer .site-title-footer a {
  color: #e5e7eb;
}
footer a:hover {
  color: var(--np-accent) !important;
}

/* Footer widget titles */
footer .bs-widget-title {
  border-color: rgba(255, 255, 255, .12) !important;
}
footer .bs-widget-title .title,
footer .wp-block-heading {
  background: transparent !important;
  color: #fff !important;
  padding-left: 0;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
footer .bs-widget-title .title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 40px; height: 2px;
  background: var(--np-accent);
}

/* Footer link lists: arrow + slide */
footer .bs-widget ul li {
  border-color: rgba(255, 255, 255, .06) !important;
}
footer .bs-widget ul:not(.bs-social):not(.wp-block-archives-list) li a {
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}
footer .bs-widget ul:not(.bs-social):not(.wp-block-archives-list) li a:hover {
  transform: translateX(5px);
}
footer ul.menu li.menu-item:before {
  content: "›";
  font-family: inherit;
  color: var(--np-accent);
}

/* Small posts in footer */
footer .small-post {
  border-color: rgba(255, 255, 255, .06) !important;
}
footer .small-post .title a { color: #e5e7eb; }

/* Social icons: round buttons */
footer .bs-social li a i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  transition: background .2s ease, transform .2s ease;
}
footer .bs-social li a:hover i {
  background: var(--np-accent) !important;
  transform: translateY(-3px);
  opacity: 1;
}

/* Inputs on dark */
footer input[type="text"],
footer input[type="email"],
footer input[type="search"] {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-radius: 6px;
}

/* Divider + copyright bar */
footer .divide-line {
  background: rgba(255, 255, 255, .08);
}
footer .bs-footer-copyright,
.bs-footer-copyright .copyright-overlay {
  background: var(--np-footer-bottom) !important;
  font-size: 13px;
}

/* Remove "Newsair by Themeansar" credit, show your own line */
footer .bs-footer-copyright p {
  font-size: 0 !important;
}
footer .bs-footer-copyright p a[href*="themeansar"] {
  display: none !important;
}
footer .bs-footer-copyright p::before {
  content: "© 2026 Windtek. All rights reserved.";
  font-size: 13px;
  color: #9ca3af;
}

/* =========================================================
   13. FOOTER DISCLAIMER + CONTACT (Custom HTML widget)
   ========================================================= */
.np-disclaimer p {
  color: #9ca3af;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.np-disclaimer .np-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: 8px 16px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.np-disclaimer .np-contact:hover {
  background: var(--np-accent);
  border-color: var(--np-accent);
  color: #fff !important;
}

/* ---------- 14. Mobile ---------- */
@media (max-width: 767.98px) {
  .archive .list-blog .bs-blog-thumb,
  .search .list-blog .bs-blog-thumb {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
  footer .bs-footer-widget-area { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   15. HOMEPAGE – MODERN MAGAZINE LOOK
   (keeps ticker, You Missed, sidebar and dark mode)
   ========================================================= */

/* Sticky menu: frosted-glass effect when it sticks */
.is-sticky .sticky-header,
.navbar-wp.header.sticky {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

/* Latest ticker: pill label with live pulse dot */
.mg-latest-news {
  margin-top: 16px;
}
.mg-latest-news .bn_title .title {
  border-radius: 50px;
  margin: 0 6px;
  padding: 4px 16px 4px 26px;
  position: relative;
}
.mg-latest-news .bn_title .title::before {
  content: "";
  position: absolute;
  left: 11px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  animation: np-pulse 1.6s infinite;
}
@keyframes np-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.mg-latest-news .mg-latest-news-slider a img {
  border-radius: 50%;
  width: 30px; height: 30px;
}

/* Top Tags bar: pill chips */
.mg-tpt-tag-area .mg-tpt-txnlst-title {
  background: var(--np-accent);
  color: #fff;
  border-radius: 50px;
  padding: 4px 12px;
}
.mg-tpt-txnlst ul li a {
  display: inline-block;
  border-radius: 50px;
  padding: 4px 12px;
  margin: 3px 2px;
  background: rgba(127, 127, 127, .12);
  transition: background .2s ease, color .2s ease;
}
.mg-tpt-txnlst ul li a:hover {
  background: var(--np-accent);
  color: #fff !important;
}
.mg-tpt-txnlst ul li a:before { content: "#"; font-family: inherit; }

/* Featured / overlay posts: rounded, deeper gradient, bigger titles */
.mainfeatured,
.mainfeatured .featinner,
.bs-blog-post.three,
.featured-widget .bs-blog-post {
  border-radius: 14px;
  overflow: hidden;
}
.bs-blog-post.three .inner:after {
  background-image: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.9) 100%);
}
.bs-blog-post.three .title a {
  color: #fff !important;
}
.bs-blog-post.three.lg .title {
  font-size: 30px;
  line-height: 1.2;
}
.bs-blog-post.three .bs-blog-meta,
.bs-blog-post.three .bs-blog-meta a {
  color: rgba(255, 255, 255, .85) !important;
}

/* Main post grid on homepage */
.home .grid-card.bs-blog-post,
.blog .grid-card.bs-blog-post {
  border-radius: 14px;
}
.home .grid-card .bs-blog-thumb.lg,
.blog .grid-card .bs-blog-thumb.lg {
  height: 230px;
}
.home .bs-blog-post .small,
.blog .bs-blog-post .small {
  padding: 18px 20px 20px;
}
.home .grid-card.bs-blog-post .title,
.blog .grid-card.bs-blog-post .title {
  font-size: 21px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.home .bs-blog-post p,
.blog .bs-blog-post p {
  font-size: 15px;
  opacity: .85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* List layout on home, if used */
.home .list-blog .bs-blog-thumb,
.blog .list-blog .bs-blog-thumb {
  width: 40%; max-width: 40%; min-width: 40%;
  height: 210px; min-height: 210px;
  border-radius: 10px;
}

/* Author avatar + meta tidy */
.bs-blog-meta span { font-size: 13px; }
.bs-blog-meta .bs-author img { width: 24px; height: 24px; }

/* "You Missed" section: section heading + rounded cards */
.missed {
  padding-top: 30px;
  padding-bottom: 30px;
}
.missed .bs-blog-post.three {
  margin-bottom: 0;
}
.missed .bs-blog-post.three .title {
  font-size: 18px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.missed .swiper-navigation .swiper-button-prev,
.missed .swiper-navigation .swiper-button-next {
  border-radius: 50%;
  background: var(--np-accent);
  color: #fff;
}

/* Sidebar sticks while scrolling (desktop) */
@media (min-width: 992px) {
  .home .bs-sidebar,
  .blog .bs-sidebar,
  .archive .bs-sidebar {
    position: sticky;
    top: 90px;
  }
}

/* Pagination centred */
.home .navigation.pagination .nav-links,
.blog .navigation.pagination .nav-links {
  justify-content: center;
}

/* Dark mode: keep chips readable */
body.dark .mg-tpt-txnlst ul li a,
body.dark .bs-widget.widget_archive ul li a {
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 767.98px) {
  .bs-blog-post.three.lg .title { font-size: 22px; }
  .home .list-blog .bs-blog-thumb,
  .blog .list-blog .bs-blog-thumb {
    width: 100% !important; max-width: 100% !important; min-width: 100% !important;
  }
}

/* =========================================================
   16. REMOVE FOOTER LOGO STRIP (logo + tagline row and its divider)
   ========================================================= */
footer .bs-footer-bottom-area,
footer .divide-line {
  display: none !important;
}
footer .bs-footer-widget-area {
  padding-bottom: 20px;
}

/* =========================================================
   17. COPYRIGHT STRIP – distinct coloured bar
   ========================================================= */
footer .bs-footer-copyright,
footer .bs-footer-copyright .copyright-overlay {
  background: #05070d !important;   /* deeper than the footer */
}
footer .bs-footer-copyright {
  position: relative;
  border-top: 0 !important;
}
/* Thin gradient line on top of the strip (matches footer top line) */
footer .bs-footer-copyright::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--np-accent), #ff9800, var(--np-accent));
}
footer .bs-footer-copyright .copyright-overlay {
  padding: 18px 0 !important;
}
footer .bs-footer-copyright p::before {
  color: #d1d5db !important;
  font-size: 14px !important;
  letter-spacing: .02em;
}

/* =========================================================
   18. HOMEPAGE POST GRID v2
   Featured hero story + even grid that adapts to the space:
   wide area = 3 columns, medium = 2 columns, phone = 1 column.
   ========================================================= */

/* The grid's wrapper measures its own width */
:is(.home, .blog) :has(> .row > * > .grid-card) {
  container-type: inline-size;
}

/* Take over the Bootstrap row: real CSS grid */
:is(.home, .blog) .row:has(> * > .grid-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-left: 0;
  margin-right: 0;
}
@container (min-width: 900px) {
  :is(.home, .blog) .row:has(> * > .grid-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
  :is(.home, .blog) .row:has(> * > .grid-card) { grid-template-columns: minmax(0, 1fr); }
}
:is(.home, .blog) .row:has(> * > .grid-card) > * {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}
/* anything that is not a post (pagination etc.) uses the full row */
:is(.home, .blog) .row:has(> * > .grid-card) > :not(:has(.grid-card)) {
  grid-column: 1 / -1;
}

/* ---- Regular cards ---- */
:is(.home, .blog) .grid-card.bs-blog-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
}
:is(.home, .blog) .grid-card .bs-blog-thumb {
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
:is(.home, .blog) .grid-card .bs-blog-thumb img,
:is(.home, .blog) .grid-card .bs-blog-thumb .back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:is(.home, .blog) .grid-card .small {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}
:is(.home, .blog) .grid-card .title {
  font-size: 19px !important;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
:is(.home, .blog) .grid-card .small p {
  margin-top: auto;
  font-size: 14.5px;
  opacity: .85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- FEATURED HERO: first post, full width, text over the image ---- */
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) {
  grid-column: 1 / -1;
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) > .grid-card {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .22);
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-thumb {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: 1;
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-thumb a,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-thumb img,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-thumb .back-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* dark fade so white text is always readable */
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5, 7, 13, .95) 0%, rgba(5, 7, 13, .7) 38%, rgba(5, 7, 13, .15) 75%, rgba(5, 7, 13, 0) 100%),
    linear-gradient(90deg, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, 0) 60%);
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small {
  position: relative;
  z-index: 3;
  min-height: 420px;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px !important;
  background: transparent !important;
  pointer-events: none;            /* clicks pass through to the image link… */
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small a {
  pointer-events: auto;            /* …except the real links */
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .title {
  font-size: 34px !important;
  line-height: 1.15;
  margin-bottom: 12px !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .title a,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-meta,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-meta a,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-meta span {
  color: #ffffff !important;
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .bs-blog-meta { opacity: .9; }
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .85) !important;
  font-size: 16px;
  opacity: 1;
  max-width: 640px;
}
/* "Featured" label */
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small::before {
  content: "\2605  Featured";
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--np-accent);
  box-shadow: 0 6px 16px rgba(233, 30, 99, .4);
}
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) > .grid-card:hover .bs-blog-thumb img,
:is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) > .grid-card:hover .bs-blog-thumb .back-img {
  transform: scale(1.04);
}

/* ---- Medium width (2 columns): no lonely last card ---- */
@container (min-width: 561px) and (max-width: 899px) {
  :is(.home, .blog) .row > :nth-child(even of :has(> .grid-card)):nth-last-child(1 of :has(> .grid-card)) {
    grid-column: 1 / -1;
  }
  :is(.home, .blog) .row > :nth-child(even of :has(> .grid-card)):nth-last-child(1 of :has(> .grid-card)) > .grid-card {
    flex-direction: row;
  }
  :is(.home, .blog) .row > :nth-child(even of :has(> .grid-card)):nth-last-child(1 of :has(> .grid-card)) .bs-blog-thumb {
    flex: 0 0 45%;
    aspect-ratio: auto;
  }
}

/* ---- Phone ---- */
@container (max-width: 560px) {
  :is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) > .grid-card,
  :is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small { min-height: 340px; }
  :is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small { padding: 22px !important; }
  :is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .title { font-size: 23px !important; }
  :is(.home, .blog) .row > :nth-child(1 of :has(> .grid-card)) .small p { display: none; }
}

/* Bigger, easier-to-tap pagination */
:is(.home, .blog) .navigation.pagination .nav-links .page-numbers {
  min-width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 16px;
}

/* =========================================================
   19. HEADER + MENU – dark, elegant, matches the footer
   Top bar  ↔ copyright strip  (#05070d)
   Header   ↔ footer           (#111827 navy)
   Gradient line under the menu ↔ gradient line on the footer
   ========================================================= */

/* ---- Top bar (date, social) ---- */
.bs-head-detail {
  background: #05070d !important;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 6px 0;
}
.bs-head-detail,
.bs-head-detail a,
.bs-head-detail .top-date,
.bs-head-detail .top-date .day,
.bs-head-detail .top-date .deta {
  color: #9ca3af !important;
}
.bs-head-detail .top-date {
  background: rgba(255, 255, 255, .06) !important;
  border-radius: 50px;
  padding: 2px 12px;
}
.bs-head-detail .top-date .time {
  background: var(--np-accent) !important;
  color: #fff !important;
  border-radius: 50px;
  padding: 0 8px;
}
.bs-head-detail .bs-social li a i {
  color: #9ca3af !important;
  background: transparent !important;
  transition: color .2s ease;
}
.bs-head-detail .bs-social li a:hover i {
  color: var(--np-accent) !important;
  opacity: 1;
}

/* ---- Logo area ---- */
.bs-default .bs-header-main {
  background: radial-gradient(ellipse at 15% 50%, rgba(233, 30, 99, .12) 0%, rgba(233, 30, 99, 0) 55%),
              linear-gradient(180deg, #0b0f19 0%, #111827 100%) !important;
}
.bs-default .bs-header-main .inner {
  height: 104px;
  padding: 10px 0;
}
.bs-default .bs-header-main .navbar-brand img,
.bs-default .bs-header-main .custom-logo {
  width: 250px;
  height: auto;
}
.bs-header-main .site-title a { color: #fff !important; }
.bs-header-main .site-description { color: #9ca3af !important; }

/* ---- Menu bar ---- */
.bs-default .bs-menu-full,
.bs-default .navbar-wp,
.bs-menu-full .navbar-wp {
  background: #111827 !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
  position: relative;
}
/* gradient line under the menu (same as the footer's) */
.bs-default .bs-menu-full::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--np-accent), #ff9800, var(--np-accent));
  z-index: 2;
  pointer-events: none;
}

/* Menu links */
.navbar-wp .navbar-nav > li > a,
.bs-default .navbar-wp .navbar-nav > li > a {
  color: #d1d5db !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 16px !important;
  line-height: 1.4;
}
.navbar-wp .navbar-nav > li > a:hover,
.navbar-wp .navbar-nav > li.active > a,
.navbar-wp .navbar-nav > li.current-menu-item > a {
  color: #ffffff !important;
}
/* underline: accent, grows from left */
.navbar-wp .navbar-nav > li:after {
  height: 3px !important;
  bottom: 8px !important;
  left: 16px !important;
  background: var(--np-accent) !important;
  border-radius: 3px;
}
.navbar-wp .navbar-nav > li:hover:after,
.navbar-wp .navbar-nav > li.active:after,
.navbar-wp .navbar-nav > li.current-menu-item:after {
  width: calc(100% - 32px) !important;
}

/* Home button: accent square instead of white box */
.homebtn a {
  background: var(--np-accent) !important;
  color: #fff !important;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-right: 8px;
  transition: background .2s ease, transform .2s ease;
}
.homebtn a:hover {
  background: var(--np-accent-dark) !important;
  transform: translateY(-2px);
}

/* Search icon + dark mode switch */
.desk-header .msearch,
.right-nav a,
.right-nav a i {
  color: #d1d5db !important;
}
.desk-header .msearch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06) !important;
  transition: background .2s ease, color .2s ease;
}
.desk-header .msearch:hover {
  background: var(--np-accent) !important;
  color: #fff !important;
}
.switch .slider {
  background: rgba(255, 255, 255, .12) !important;
  border-radius: 50px !important;
}
.switch .slider::before {
  background: var(--np-accent) !important;
  color: #fff !important;
}

/* Search dropdown */
.navbar-wp .dropdown-menu.searchinner {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 10px;
}

/* Sub-menus */
.navbar-wp .dropdown-menu {
  background: #111827 !important;
  border-top: 3px solid var(--np-accent) !important;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35) !important;
  padding: 6px 0 !important;
}
.navbar-wp .dropdown-menu > li > a {
  color: #d1d5db !important;
  font-weight: 500;
  padding: 10px 18px;
  background: transparent !important;
}
.navbar-wp .dropdown-menu > li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .06) !important;
  padding-left: 24px;
}

/* Sticky menu: frosted navy */
.is-sticky .sticky-header,
.is-sticky .bs-menu-full,
.navbar-wp.header.sticky {
  background: rgba(17, 24, 39, .88) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

/* ---- Mobile header + slide-out menu ---- */
@media (max-width: 991.98px) {
  .m-header,
  .bs-default .bs-menu-full {
    background: #111827 !important;
  }
  .bs-default .bs-menu-full { min-height: 70px; }
  .m-header .navbar-brand img { width: 150px; }
  .m-header a,
  .m-header i,
  .navbar-toggler,
  .navbar-wp [data-bs-toggle=offcanvas] {
    color: #fff !important;
  }
  .bs-default .bs-header-main .inner { height: auto; }
}
.offcanvas {
  background: #111827 !important;
  color: #d1d5db;
}
.offcanvas .offcanvas-header {
  border-bottom: 3px solid var(--np-accent);
}
.offcanvas .offcanvas-header .btn_close,
.sidenav a.nav-link,
.sidenav .nav-item .dropdown-item {
  color: #d1d5db !important;
}
.sidenav a.nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 14px 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
}
.sidenav a.nav-link:hover,
.sidenav .nav-item .dropdown-item:hover {
  color: var(--np-accent) !important;
  background: transparent !important;
}

/* =========================================================
   20. SIGNATURE GRADIENT LINE + HOME BUTTON
   ========================================================= */
:root {
  --np-gradient: linear-gradient(90deg, var(--np-accent), #ff9800, var(--np-accent));
}

/* ---- 1. Keep the home ICON, hide the duplicate "Home" text link ---- */
@media (min-width: 992px) {
  .navbar-wp .navbar-nav > li.menu-item-home {
    display: none !important;
  }
}
/* Show the home icon as "active" on the homepage */
.home .homebtn a {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
}

/* ---- 2. Section & widget titles: gradient underline instead of blue ---- */
.bs-widget-title {
  border-bottom-color: transparent !important;
}
.bs-widget-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--np-gradient);
  border-radius: 2px;
}
footer .bs-widget-title .title::after { content: none; }

/* ---- 3. Gradient line on every post card ---- */
.bs-blog-post,
.grid-card.bs-blog-post,
.list-blog.bs-blog-post {
  position: relative;
}
.bs-blog-post::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 6;
  background: var(--np-gradient);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position .6s ease, height .25s ease;
  pointer-events: none;
}
/* on hover the colours flow and the line thickens slightly */
.bs-blog-post:hover::before {
  background-position: 100% 0;
  height: 4px;
}
/* "You Missed" small overlay cards: thinner line */
.missed .bs-blog-post::before { height: 2px; }

/* Single post page: line across the top of the article */
.bs-blog-post.single::before { height: 4px; }

/* Sidebar widgets: same thin line on top, ties sidebar to cards */
.bs-sidebar .bs-widget {
  position: relative;
}
.bs-sidebar .bs-widget::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--np-gradient);
}

/* =========================================================
   21. HEADER FINE-TUNING
   Top bar: deep plum-navy (ties pink accent to the navy menu)
   Logo area: clean light band (keeps the dark-text logo)
   Menu: unchanged colour, larger text, fixed glitches
   ========================================================= */

/* ---- Top bar: different colour that suits the theme ---- */
.bs-head-detail {
  background: linear-gradient(90deg, #2a0a1c 0%, #1a0f24 45%, #111827 100%) !important;
  border-bottom: 1px solid rgba(233, 30, 99, .25);
}
.bs-head-detail .top-date {
  background: rgba(255, 255, 255, .08) !important;
  color: #f3f4f6 !important;
}
.bs-head-detail .top-date .day,
.bs-head-detail .top-date .deta {
  color: #f3f4f6 !important;
}

/* Ticker in the top bar: remove the blue box behind "LATEST" */
.mg-latest-news,
.mg-latest-news .bn_title {
  background: transparent !important;
  box-shadow: none !important;
}
.mg-latest-news .mg-latest-news-slider a {
  color: #f3f4f6 !important;
}
.mg-latest-news .mg-latest-news-slider a:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* ---- Logo area: clean light band ---- */
.bs-header-main,
.bs-default .bs-header-main {
  background: radial-gradient(ellipse at 12% 50%, rgba(233, 30, 99, .07) 0%, rgba(233, 30, 99, 0) 50%),
              #ffffff !important;
}
.bs-header-main .site-title a { color: #111827 !important; }
.bs-header-main .site-description { color: #4b5563 !important; }
/* Dark mode: keep logo area dark */
body.dark .bs-header-main,
body.dark .bs-default .bs-header-main {
  background: #0b0f19 !important;
}

/* ---- Menu: larger, clearer text ---- */
.navbar-wp .navbar-nav > li > a,
.bs-default .navbar-wp .navbar-nav > li > a {
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 18px 18px !important;
}
.navbar-wp .navbar-nav > li:after {
  left: 18px !important;
}
.navbar-wp .navbar-nav > li:hover:after,
.navbar-wp .navbar-nav > li.active:after,
.navbar-wp .navbar-nav > li.current-menu-item:after {
  width: calc(100% - 36px) !important;
}

/* Home button: remove the white box around the pink icon */
.navbar-wp .homebtn,
.navbar-wp li.homebtn,
.bs-default .homebtn {
  background: transparent !important;
  box-shadow: none !important;
}
.homebtn a {
  width: 46px;
  height: 46px;
  font-size: 19px;
}

/* Gradient line under the menu: show across the full width */
.bs-default .bs-menu-full::after {
  z-index: 1001;
  background: var(--np-gradient);
}

/* =========================================================
   23. HOMEPAGE FULL WIDTH when the sidebar is empty or missing
   ========================================================= */
/* Sidebar column exists but has no widgets: hide it */
:is(.home, .blog) .row > :has(> .bs-sidebar:not(:has(.bs-widget))),
:is(.home, .blog) .row > .bs-sidebar:not(:has(.bs-widget)) {
  display: none !important;
}
/* The column holding the posts takes the whole width */
:is(.home, .blog) .row:has(> * .grid-card) > :has(.grid-card):not(:has(.bs-sidebar)) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* …but keep the sidebar layout if it really has widgets */
:is(.home, .blog) .row:has(> * > .bs-sidebar .bs-widget) > :has(.grid-card):not(:has(.bs-sidebar)) {
  flex: 0 0 66.666% !important;
  max-width: 66.666% !important;
}
@media (max-width: 991.98px) {
  :is(.home, .blog) .row:has(> * > .bs-sidebar .bs-widget) > :has(.grid-card):not(:has(.bs-sidebar)) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}