/* Custom CSS For Newslooks By Mahfuz */

.section-title h2{
  font-size: 24px;
}

.author-img {
  width: 45px !important;
  height: auto;
}

.feature-img--wrap .feature-img--meta img {
  width: 30px;
  height: auto;
}

.img-80 {
  width: 80px !important;
  height: auto;
}

.img-100 {
  width: 100px !important;
  height: 65px;
}

.comments-area .comment ul.children {
  margin-left: 0px;
}

a:hover {
  text-decoration: none;
}

.h-80vh {
  height: 80vh;
}

.aside .widget_newsletter {
  background-image: url("../img/icon/newsletter-bg-two.svg");
}

.gdpr-box {
  background-color: #400f00;
  border-radius: 5px;
  bottom: 20px;
  color: #fff;
  padding: 25px;
  position: fixed;
  width: 300px;
  z-index: 9999;
}

.position-left {
  left: 20px;
}

.position-right {
  right: 20px;
}

.font-14 {
  font-size: 14px;
}

.font-18 {
  font-size: 18px;
}

.modal-close {
  position: absolute;
  font-size: 19px;
  background-color: #f64a1d;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  top: -18px;
  right: -17px;
  color: rgb(255, 255, 255);
  opacity: 1;
  font-weight: normal;
  z-index: 9999;
}

.widget.widget_post_categories ul li span {
  display: block;
  width: 46px;
  background-color: #f64a1d;
  color: #fff;
  border-radius: 50%;
}

.widget.widget_tags .tags a {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid;
  font-size: 12px;
  display: inline-block;
}

.widget.widget_tags .tags a:hover {
  color: white;
  background-color: #f64a1d;
}

/* .small-sidebar-post-image{
  width: 85px;
  height: 85px;
} */

.widget-voting .voting-label {
  position: relative;
  height: 100%;
  padding: 0.2rem 2rem 0.2rem 1.5rem;
  display: block;
  cursor: pointer;
}

.widget-voting .voting-label:hover {
  color: #f64a1d;
}

.widget-voting .voting-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 15px;
  height: 15px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  border: 1px solid #f64a1d;
  border-radius: 50%;
}

.voting-input:checked ~ .voting-label::before {
  background-color: #f64a1d;
}

.voting-input:checked ~ .voting-label {
  color: #f64a1d;
}

.percentage {
  position: absolute;
  right: 0px;
  height: 100%;
  border-radius: 0px 8px 8px 0px;
  background: #fff;
  text-align: right;
  transition: width 0.3s;
}

.footer #footer_1_widget .percentage {
  background: var(--color-title-two);
}

.percentage-text {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  font-size: 14px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.vote-content .form-check {
  border-radius: 8px;
  padding: 0px 10px 0px 10px;
  background-color: #57eae961;
}

.widget-voting .vote-result .voting-label::before {
  border: none;
}

.footer
  #footer_1_widget
  .widget.widget_recent_comments
  .single-comment
  .quote-icon {
  background-color: var(--color-title);
}

.post-advance-layout-6 .layout-6-small-post .post--img {
  max-height: 230px !important;
}

.post-advance-layout-6 .layout-6-big-post {
  max-height: 450px !important;
}

.post-advance-layout-5 .layout-5-small-post .post--img {
  max-height: 165px !important;
}

.post-advance-layout-4 .layout-4-small-post .post--img {
  width: 100%;
  max-height: 100px;
}

.col-sm-6 .post-advance-layout-4 .layout-4-small-post .post--img {
  max-height: 120px;
}

.col-sm-8 .post-advance-layout-4 .layout-4-small-post .post--img {
  max-height: 180px;
}

.col-sm-12 .post-advance-layout-4 .layout-4-small-post .post--img {
  max-height: 200px;
}

.post-advance-layout-4 .layout-4-big-post {
  max-height: 300px;
}

.post-advance-layout-3 .layout-3-small-post .post--img {
  width: 100px;
  height: 100px;
}

.post-advance-layout-3 .layout-3-big-post {
  max-height: 300px;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Title Show Only Two Lines */
h3.post--title,
h4.post--title,
h5.post--title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Display only 2 lines of text */
  -webkit-box-orient: vertical;
  max-height: 2.6em; /* Adjust this value to control the line height and the number of lines */
}

.post--item.post-white .post--title {
  color: var(--color-white);
}

.banner-grid > ul > li:nth-child(2) {
  max-height: 260px;
}

@media (max-width: 768px) {
  .banner-grid > ul > li:nth-child(2) {
    max-height: 350px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1200px) {
  .banner-grid > ul > li:nth-child(2) {
    max-height: 473px;
  }
}

.banner-grid > ul > li:nth-child(3),
.banner-grid > ul > li:nth-child(4) {
  max-height: 300px;
}

.post-style-two .post--img img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.post-style-four {
  max-height: 350px;
}

.post-style-five .post--img {
  width: 100%;
  max-height: 360px;
}

.video-post-big {
  max-height: 462px !important;
}

#post_recent_widget .post--img {
  width: 100px;
  height: 80px;
}

.widget_post_tab .post--img {
  width: 75px;
  height: 75px;
}

.post-filters li a {
  color: #555;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

.post-filters li a i {
  font-size: 24px;
  line-height: 30px;
}

.post-filters li a:hover {
  color: var(--color-one);
}

.post-details-most-recent .post--img,
.post-details-most-popular .post--img {
  max-height: 160px;
}

.auth-card .login-btn {
  margin-right: 20px;
}

.auth-card .register-btn {
  margin-right: 20px;
}

.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

.post-navigation .nav-previous .nav-title h5 {
  margin-left: 10px;
}

.post-navigation .nav-next .nav-title h5 {
  margin-right: 10px;
}

.footer .widget_menu ul {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.footer .widget_menu ul li {
  -webkit-box-flex: 0;
  flex: 0 50%;
  max-width: 50%;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.footer .section-title.has-bg-shape.shape--two h2:after {
  background-color: #ffffff;
}

@media (max-width: 575px) {
  .modal-dialog {
    margin: 1rem 2.6rem 1rem 1rem;
  }
}

.post-filters li {
  border-bottom: 1px solid #ddd;
}

.post-filters li:not(:first-child) {
  border-left: 1px solid #ddd;
}

.layout-6-small-post a {
  width: 100%;
}

.layout-6-small-post a img {
  width: 100%;
  height: auto;
}

.vote-content img {
  width: 100%;
  height: auto;
}

main {
  overflow: hidden;
}

.video--playlist--header span {
  margin-right: 10px;
}

#post-list-content .post--item.style--two .play-button{
  right: unset;
  left: 50%;
  top: 50%;
}

.post-style-one.post--item.media .post--meta {
  margin-top: 10px;
  margin-bottom: 10px;
}

.post-style-one.post--item .post--excerpt {
  margin-bottom: 20px;
}

.main--content .post--category.cat-btn:after {
  content: unset;
}

.user-auth-form {
  background-color: #f2f4f7;
  padding: 50px;
}

.aside {
  padding-left: 20px;
}

/* ============================================================================
   AFRIDEVMONITOR — BOLD MAGAZINE REDESIGN
   "AfriPulse" — a modern, high-impact African news magazine aesthetic
   ============================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --ap-bg:            #f0f2f5;
  --ap-card:          #ffffff;
  --ap-card-hover:    #fafbff;
  --ap-border:        #e2e6ed;
  --ap-border-soft:   #edf0f5;

  /* Brand */
  --ap-red:           #dc2626;
  --ap-red-dark:      #b91c1c;
  --ap-red-glow:      rgba(220, 38, 38, 0.15);
  --ap-gold:          #d97706;
  --ap-gold-light:    #fbbf24;

  /* Typography */
  --ap-ink:           #0f172a;
  --ap-ink-mid:       #1e293b;
  --ap-ink-soft:      #475569;
  --ap-ink-muted:     #94a3b8;

  /* Header */
  --ap-header-bg:     #0b0f19;
  --ap-header-border: rgba(255,255,255,0.06);
  --ap-nav-bg:        #111827;

  /* Shadows */
  --ap-shadow-xs:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --ap-shadow-sm:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --ap-shadow-md:  0 8px 24px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.05);
  --ap-shadow-lg:  0 20px 48px rgba(0,0,0,0.13), 0 6px 16px rgba(0,0,0,0.07);
  --ap-shadow-xl:  0 32px 64px rgba(0,0,0,0.17);

  /* Radius */
  --ap-r-sm:  6px;
  --ap-r-md:  12px;
  --ap-r-lg:  16px;
  --ap-r-xl:  20px;
  --ap-r-pill: 999px;
}

/* ── Global Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--ap-bg);
  color: var(--ap-ink-soft);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: hidden;
  background: transparent;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ap-ink);
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-weight: 800;
}

a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--ap-red);
  text-decoration: none;
}

img {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Header Top Bar ──────────────────────────────────────────────────────── */
.header .header-top,
[id^="header_top_"] {
  background: var(--ap-header-bg) !important;
  border-bottom: 1px solid var(--ap-header-border) !important;
  padding: 10px 0 !important;
}

.header .header-top *,
[id^="header_top_"] * {
  color: rgba(255,255,255,0.75) !important;
}

.header .header-top a:hover,
[id^="header_top_"] a:hover {
  color: #ffffff !important;
}

.header .header-top .current--date,
.current--date {
  color: rgba(255,255,255,0.65) !important;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.header .header-top .current--date img.svg,
.current--date img.svg {
  filter: invert(1) !important;
}

/* ── Main Nav / Logo Bar ─────────────────────────────────────────────────── */
.header .header-bottom,
.header .header-main,
.header-1 .header-main,
.header-2 .header-main,
.header-3 .header-main {
  background: var(--ap-nav-bg) !important;
  border-bottom: 3px solid var(--ap-red) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
  backdrop-filter: none !important;
}

/* Logo */
.logo img,
.site-logo img {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Nav Links */
.horizontal-menu > .nav > li > a,
.header .header-bottom .nav > li > a,
.header .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 18px 14px !important;
  position: relative;
}

.horizontal-menu > .nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--ap-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px 2px 0 0;
}

.horizontal-menu > .nav > li:hover > a::after,
.horizontal-menu > .nav > li.current-menu-item > a::after,
.horizontal-menu > .nav > li.current-menu-parent > a::after {
  transform: scaleX(1);
}

.horizontal-menu > .nav > li:hover > a,
.horizontal-menu > .nav > li.current-menu-item > a,
.horizontal-menu > .nav > li.current-menu-parent > a {
  color: #ffffff !important;
}

/* Dropdown */
.horizontal-menu > .nav li .submenu,
.horizontal-menu > .nav li .megamenu {
  background: var(--ap-nav-bg) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 0 0 var(--ap-r-md) var(--ap-r-md) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45) !important;
  margin-top: 0 !important;
  z-index: 9999 !important;
}

.horizontal-menu > .nav li .submenu li a,
.horizontal-menu > .nav li .megamenu a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
}

.horizontal-menu > .nav li .submenu li a:hover,
.horizontal-menu > .nav li .megamenu a:hover {
  color: #ffffff !important;
  background: rgba(220,38,38,0.12) !important;
}

/* Search icon in nav */
.header .header-search .search-btn,
.header-search-toggle {
  color: rgba(255,255,255,0.7) !important;
}

.header .header-search .search-btn:hover,
.header-search-toggle:hover {
  color: #ffffff !important;
}

/* ── Breaking News Bar ───────────────────────────────────────────────────── */
.breaking--news,
[id^="header_breaking_"] {
  background: var(--ap-red) !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(220,38,38,0.4) !important;
  position: relative !important;
  z-index: 1 !important;
}

.breaking-title,
.breaking--news .breaking-title {
  background: var(--ap-red-dark) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 10px 18px !important;
  border-right: 1px solid rgba(255,255,255,0.15) !important;
  flex-shrink: 0;
}

.breaking-title img.svg {
  filter: brightness(0) invert(1) !important;
  width: 14px !important;
  height: 14px !important;
}

.news-updates--list a,
.breaking--news a {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.news-updates--list a:hover,
.breaking--news a:hover {
  color: #fde68a !important;
}

.breaking--news .current--date,
[id^="header_breaking_"] .current--date {
  background: rgba(0,0,0,0.2) !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
  border-left: 1px solid rgba(255,255,255,0.15) !important;
}

.breaking--news .current--date img.svg {
  filter: brightness(0) invert(1) !important;
}

/* ── Category Badges ─────────────────────────────────────────────────────── */
.post--category,
.cat-btn,
.category-badge,
.post--item .post--category {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 12px !important;
  border-radius: var(--ap-r-pill) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: var(--ap-red) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(220,38,38,0.35) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
  line-height: 1.6 !important;
}

.post--category:hover,
.cat-btn:hover {
  background: var(--ap-red-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.45) !important;
}

/* ── Section Headers ─────────────────────────────────────────────────────── */
.section-title,
.widget-title-wrap {
  position: relative;
  margin-bottom: 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid var(--ap-border) !important;
}

.section-title::before,
.section-title.has-left-shape::before {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 48px !important;
  height: 2px !important;
  background: var(--ap-red) !important;
  border-radius: 2px !important;
  display: block !important;
}

.section-title h2,
.section-title h3,
.section-title h4,
.section-title h5,
.widget .widget-title,
.widget .widget-title h4,
.widget .widget-title h5 {
  color: var(--ap-ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.section-title h2::before,
.section-title h3::before {
  content: '' !important;
  display: inline-block !important;
  width: 4px !important;
  height: 18px !important;
  background: var(--ap-red) !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

/* Navigation arrows on section headers */
.section-title-next,
.section-title .btn-arrow,
.section-title + a,
.section-title-wrapper .btn {
  background: var(--ap-ink) !important;
  color: #fff !important;
  border-radius: var(--ap-r-sm) !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
}

.section-title-next:hover,
.section-title-wrapper .btn:hover {
  background: var(--ap-red) !important;
}

/* ── Post Cards ──────────────────────────────────────────────────────────── */
.post--item {
  background: var(--ap-card) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-r-lg) !important;
  box-shadow: var(--ap-shadow-sm) !important;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease !important;
}

.post--item:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--ap-shadow-lg) !important;
  border-color: transparent !important;
}

/* Card images — zoom on hover */
.post--item:hover .post--img img,
.post--item:hover .feature-img img {
  transform: scale(1.06);
}

.post--img img,
.feature-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Image overlay cards */
.post--item.bg-img-style,
.post--item.image-overlay,
.post--item.content-overlay {
  border: none !important;
}

.post--item.bg-img-style::after,
.post--item.image-overlay::after,
.post--item.content-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,8,20,0.95) 0%,
    rgba(5,8,20,0.5) 50%,
    rgba(0,0,0,0) 100%
  ) !important;
  border-radius: inherit;
  z-index: 1;
}

.post--item.bg-img-style .post--content,
.post--item.image-overlay .post--content,
.post--item.content-overlay .post--content {
  position: relative;
  z-index: 2;
}

/* Post title */
.post--title a,
.post--item .post--title a {
  color: var(--ap-ink) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.post--title a:hover,
.post--item .post--title a:hover {
  color: var(--ap-red) !important;
}

/* Overlay card title */
.post--item.bg-img-style .post--title a,
.post--item.image-overlay .post--title a,
.post--item.content-overlay .post--title a {
  color: #ffffff !important;
}

.post--item.bg-img-style .post--title a:hover,
.post--item.image-overlay .post--title a:hover,
.post--item.content-overlay .post--title a:hover {
  color: #fde68a !important;
}

/* Post meta */
.post--meta,
.post--item .post--meta {
  color: var(--ap-ink-muted) !important;
  font-size: 12px !important;
  gap: 12px !important;
}

.post--meta a,
.post--item .post--meta a {
  color: var(--ap-ink-soft) !important;
}

/* Card content padding */
.post--item .post--content,
.post--item .post-body {
  padding: 16px 18px 18px !important;
}

/* ── Banner / Hero Section ───────────────────────────────────────────────── */
.banner-section,
.banner--area,
.hero-section {
  margin-bottom: 32px;
}

.banner-grid > ul > li .post--item {
  border-radius: var(--ap-r-xl) !important;
  overflow: hidden;
  box-shadow: var(--ap-shadow-md) !important;
}

.banner-grid > ul > li:first-child .post--item {
  box-shadow: var(--ap-shadow-lg) !important;
}

/* ── Widgets ─────────────────────────────────────────────────────────────── */
.widget {
  background: var(--ap-card) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-r-lg) !important;
  box-shadow: var(--ap-shadow-xs) !important;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}

.widget:hover {
  box-shadow: var(--ap-shadow-md) !important;
  transform: translateY(-2px) !important;
}

/* Fix: widget containing the site header must NOT clip nav dropdowns or create
   a new stacking context via transform — both break the hover submenu */
.widget:has(header.header) {
  overflow: visible !important;
  transform: none !important;
}
.widget:has(header.header):hover {
  transform: none !important;
}

/* Fix: mobile offcanvas menu must appear above EVERYTHING including the header
   (header z-index was raised to 999999 to fix breaking news overlap, so the
   offcanvas needs to be even higher) */
#offcanvasMenu {
  z-index: 99999999 !important;
}

/* NOTE: opacity/visibility/transition overrides for #offcanvasMenu.open
   are in the inline <style id="afridev-override"> in style.blade.php
   to ensure they load fresh every request (no browser cache issues) */

.widget .widget-title,
.widget .widget-title h4,
.widget .widget-title h5 {
  background: var(--ap-bg) !important;
  padding: 14px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--ap-border) !important;
}

/* Recent posts in sidebar */
#post_recent_widget .post--item,
.widget .post--item {
  border-radius: var(--ap-r-sm) !important;
  box-shadow: none !important;
  border-color: var(--ap-border-soft) !important;
}

#post_recent_widget .post--item:hover,
.widget .post--item:hover {
  transform: translateX(3px) !important;
  box-shadow: none !important;
  border-color: var(--ap-red) !important;
}

/* ── Newsletter Widget ───────────────────────────────────────────────────── */
.widget.widget_newsletter,
.widget_newsletter {
  background: linear-gradient(135deg, #0b0f19 0%, #1c2840 100%) !important;
  border: none !important;
  color: #ffffff;
}

.widget.widget_newsletter .widget-title,
.widget.widget_newsletter .widget-title h4,
.widget.widget_newsletter .widget-title h5 {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
}

.widget.widget_newsletter h3,
.widget.widget_newsletter h4,
.widget.widget_newsletter p {
  color: rgba(255,255,255,0.85) !important;
}

.widget.widget_newsletter .theme-input-style input,
.widget_newsletter .newsletter-form input[type="email"],
.widget_newsletter input {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
  border-radius: var(--ap-r-md) !important;
}

.widget.widget_newsletter .theme-input-style input::placeholder,
.widget_newsletter input::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

.widget.widget_newsletter .theme-btn,
.widget_newsletter .newsletter-form button,
.widget_newsletter button {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.widget.widget_newsletter .theme-btn:hover,
.widget_newsletter button:hover {
  background: var(--ap-red-dark) !important;
}

/* ── Ad / Placeholder Areas ──────────────────────────────────────────────── */
.ad-space,
.advertisement,
.banner-ad,
[class*="ad-"],
.ads--area {
  background: linear-gradient(135deg, #f8f9fc 0%, #edf0f7 100%) !important;
  border: 2px dashed #d1d9e6 !important;
  border-radius: var(--ap-r-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
}

/* ── Popular / Hot Topics Sidebar ───────────────────────────────────────── */
.widget_recent_entries ol li,
.widget_recent_entries ul li,
.popular-post-item {
  border-bottom: 1px solid var(--ap-border-soft) !important;
  padding: 12px 0 !important;
  transition: padding-left 0.2s ease !important;
}

.widget_recent_entries li:hover,
.popular-post-item:hover {
  padding-left: 6px !important;
  border-bottom-color: var(--ap-red) !important;
}

/* Numbered hot-topics */
.widget_recent_entries ol {
  counter-reset: hot-list !important;
  padding: 0 !important;
  list-style: none !important;
}

.widget_recent_entries ol li {
  counter-increment: hot-list !important;
  padding-left: 36px !important;
  position: relative !important;
}

.widget_recent_entries ol li::before {
  content: counter(hot-list, decimal-leading-zero) !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--ap-red) !important;
  min-width: 28px !important;
}

/* ── Tags Widget ─────────────────────────────────────────────────────────── */
.widget.widget_tags .tags a {
  background: var(--ap-bg) !important;
  border: 1px solid var(--ap-border) !important;
  color: var(--ap-ink-soft) !important;
  border-radius: var(--ap-r-sm) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  margin-right: 6px !important;
  margin-bottom: 6px !important;
}

.widget.widget_tags .tags a:hover {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(220,38,38,0.35) !important;
}

/* ── Follow Us / Social Widget ───────────────────────────────────────────── */
.widget_social_media_info ul li {
  transition: transform 0.2s ease !important;
}

.widget_social_media_info ul li:hover {
  transform: scale(1.03) !important;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination .page-link {
  background: var(--ap-card) !important;
  border: 1px solid var(--ap-border) !important;
  color: var(--ap-ink-soft) !important;
  border-radius: var(--ap-r-sm) !important;
  font-weight: 700 !important;
  min-width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.pagination .page-link:hover {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.35) !important;
}

.pagination .page-item.active .page-link {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.35) !important;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: #080c17 !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: 3px solid var(--ap-red) !important;
}

.footer h1, .footer h2, .footer h3,
.footer h4, .footer h5, .footer h6,
.footer .widget-title,
.footer .section-title {
  color: #ffffff !important;
}

.footer a {
  color: rgba(255,255,255,0.65) !important;
}

.footer a:hover {
  color: var(--ap-gold-light) !important;
}

.footer .section-title::before {
  background: var(--ap-gold) !important;
}

.footer .section-title h2::before,
.footer .section-title h3::before {
  background: var(--ap-gold) !important;
}

.footer .widget-title {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.footer .widget {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.footer .post--title a {
  color: rgba(255,255,255,0.85) !important;
}

.footer .post--title a:hover {
  color: var(--ap-gold-light) !important;
}

.footer .post--meta a,
.footer .post--meta {
  color: rgba(255,255,255,0.4) !important;
}

.footer-bottom,
.copyright-area {
  background: rgba(0,0,0,0.4) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 16px 0 !important;
}

.footer-bottom p,
.copyright-area p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 13px !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.theme-btn,
.btn-theme,
.view-more-btn,
.btn.btn-primary {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: var(--ap-r-md) !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 14px rgba(220,38,38,0.3) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

.theme-btn:hover,
.btn-theme:hover,
.view-more-btn:hover,
.btn.btn-primary:hover {
  background: var(--ap-red-dark) !important;
  border-color: var(--ap-red-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(220,38,38,0.4) !important;
  color: #ffffff !important;
}

.view-more-btn.outline,
.btn-outline-theme {
  background: transparent !important;
  border: 2px solid var(--ap-red) !important;
  color: var(--ap-red) !important;
  box-shadow: none !important;
}

.view-more-btn.outline:hover,
.btn-outline-theme:hover {
  background: var(--ap-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220,38,38,0.3) !important;
}

/* ── Forms & Inputs ──────────────────────────────────────────────────────── */
.theme-input-style input,
.theme-input-style select,
.theme-input-style textarea,
.form-control {
  background: var(--ap-card) !important;
  border: 1.5px solid var(--ap-border) !important;
  border-radius: var(--ap-r-md) !important;
  color: var(--ap-ink) !important;
  font-size: 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.theme-input-style input:focus,
.theme-input-style select:focus,
.theme-input-style textarea:focus,
.form-control:focus {
  border-color: var(--ap-red) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
  outline: none !important;
}

/* ── Auth / Login Card ───────────────────────────────────────────────────── */
.auth-card,
.user-auth-form {
  background: var(--ap-card) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-r-xl) !important;
  box-shadow: var(--ap-shadow-lg) !important;
  padding: 40px !important;
}

/* ── Page Header / Breadcrumb ────────────────────────────────────────────── */
.breadcrumb--section,
.page-header {
  background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%) !important;
  border-radius: var(--ap-r-lg) !important;
  padding: 40px 32px !important;
  position: relative;
  overflow: hidden;
}

.breadcrumb--section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(220,38,38,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb--section .page-title,
.breadcrumb--section h1,
.breadcrumb--section h2 {
  color: #ffffff !important;
}

.breadcrumb--section .breadcrumb-item,
.breadcrumb--section .breadcrumb-item a {
  color: rgba(255,255,255,0.6) !important;
}

.breadcrumb--section .breadcrumb-item.active {
  color: rgba(255,255,255,0.9) !important;
}

/* ── Article / Single Post ───────────────────────────────────────────────── */
.post-details-image img {
  border-radius: var(--ap-r-xl) !important;
  box-shadow: var(--ap-shadow-lg) !important;
}

.post-details-content h1,
.post-details-content h2,
.post-details-content h3 {
  color: var(--ap-ink) !important;
}

.post-details-content p {
  color: var(--ap-ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

blockquote {
  border-left: 4px solid var(--ap-red) !important;
  background: var(--ap-bg) !important;
  border-radius: 0 var(--ap-r-md) var(--ap-r-md) 0 !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
}

/* ── Comments ────────────────────────────────────────────────────────────── */
.comment-respond,
.comments-area .comment-body {
  background: var(--ap-card) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-r-lg) !important;
  box-shadow: var(--ap-shadow-xs) !important;
}

/* ── Scroll to Top ───────────────────────────────────────────────────────── */
#back-to-top,
.back-to-top,
.scrollToTop {
  background: var(--ap-red) !important;
  color: #ffffff !important;
  border-radius: var(--ap-r-md) !important;
  box-shadow: 0 4px 16px rgba(220,38,38,0.45) !important;
  width: 42px !important;
  height: 42px !important;
  border: none !important;
}

#back-to-top:hover,
.back-to-top:hover,
.scrollToTop:hover {
  background: var(--ap-red-dark) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(220,38,38,0.55) !important;
}

/* ── Preloader ───────────────────────────────────────────────────────────── */
#preloader,
.preloader {
  background: var(--ap-header-bg) !important;
}

/* ── Voting Widget ───────────────────────────────────────────────────────── */
.widget-voting .voting-label::before {
  border-color: var(--ap-red) !important;
}

.voting-input:checked ~ .voting-label::before {
  background-color: var(--ap-red) !important;
}

.voting-input:checked ~ .voting-label {
  color: var(--ap-red) !important;
}

.widget-voting .voting-label:hover {
  color: var(--ap-red) !important;
}

/* ── Mobile Menu ─────────────────────────────────────────────────────────── */
.mobile-menu,
.offcanvas-menu,
#mobile-nav {
  background: var(--ap-header-bg) !important;
}

.mobile-menu li a,
.offcanvas-menu li a {
  color: rgba(255,255,255,0.8) !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

.mobile-menu li a:hover,
.offcanvas-menu li a:hover {
  color: var(--ap-gold-light) !important;
}

.hamburger-icon span,
.navbar-toggle span,
.hamburger span {
  background: rgba(255,255,255,0.9) !important;
}

/* ── GDPR Cookie Bar ─────────────────────────────────────────────────────── */
.gdpr-box {
  background: var(--ap-header-bg) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--ap-r-lg) !important;
  box-shadow: var(--ap-shadow-xl) !important;
}

/* ── Focus States ────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ap-red) !important;
  outline-offset: 2px !important;
  border-radius: var(--ap-r-sm) !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .horizontal-menu > .nav > li > a {
    padding: 18px 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 991px) {
  .post--item:hover,
  .widget:hover {
    transform: none !important;
  }

  .banner-section {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .breadcrumb--section,
  .page-header {
    padding: 28px 20px !important;
    border-radius: var(--ap-r-md) !important;
  }

  .auth-card,
  .user-auth-form {
    padding: 24px 20px !important;
    border-radius: var(--ap-r-lg) !important;
  }

  .section-title h2,
  .section-title h3 {
    font-size: 13px !important;
  }

  .post--item {
    border-radius: var(--ap-r-md) !important;
  }

  .widget {
    border-radius: var(--ap-r-md) !important;
  }
}

    border-radius: var(--ap-r-md) !important;
  }
}

@media (max-width: 575px) {
  body {
    font-size: 14px;
  }

  .pagination .page-link {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}

/* ============================================================================
   AFRIDEVMONITOR — CONTENT LAYOUT REDESIGN
   Homepage sections: hero, hot topics, cards, list articles, sidebar
   ============================================================================ */

/* ── 1. PAGE BODY & BACKGROUND ───────────────────────────────────────────── */
body {
  background: #eef1f6 !important;
}

.main--content--section,
main > .container,
main > section,
main > div > .container {
  background: transparent !important;
}

/* ── 2. HERO / BANNER SECTION ────────────────────────────────────────────── */

/* Banner grid items — set explicit heights so images show */
.banner-grid--five > ul > li:nth-child(1),
.banner-grid--five > ul > li:nth-child(3),
.banner-grid--five > ul > li:nth-child(4),
.banner-grid--five > ul > li:nth-child(5) {
  min-height: 260px !important;
}

.banner-grid--five > ul > li:nth-child(2) {
  min-height: 540px !important;
}

/* All banner grid post images must cover their cell */
.banner-grid--five .post--item.bg-img-style .post--img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.banner-grid--five .post--item.bg-img-style .post--img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Overlay for all banner-grid cards */
.banner-grid--five .post--item.bg-img-style,
.banner-grid--five .post--item.image-overlay {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

/* Hero banner overlay gradient — strong bottom-up */
.banner-grid--five .post--item::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to top,
    rgba(4, 6, 15, 0.92) 0%,
    rgba(4, 6, 15, 0.45) 50%,
    rgba(4, 6, 15, 0.05) 100%
  ) !important;
  z-index: 2 !important;
  border-radius: inherit !important;
}

/* Banner text on top of overlay */
.banner-grid--five .post--item .post--content {
  z-index: 3 !important;
  padding: 16px 18px 20px !important;
  justify-content: flex-end !important;
}

/* Banner post title */
.banner-grid--five .post--item .post--title a,
.banner-grid--five .post--item.post-white .post--title a {
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

/* Lead card (span 2 rows) larger title */
.banner-grid--five > ul > li:nth-child(2) .post--title a {
  font-size: 22px !important;
  line-height: 1.25 !important;
}

/* Smaller cells title */
.banner-grid--five > ul > li:nth-child(1) .post--title a,
.banner-grid--five > ul > li:nth-child(3) .post--title a,
.banner-grid--five > ul > li:nth-child(4) .post--title a,
.banner-grid--five > ul > li:nth-child(5) .post--title a {
  font-size: 15px !important;
}

.banner-grid--five .post--item .post--meta {
  color: rgba(255,255,255,0.72) !important;
  font-size: 11px !important;
}

/* Other banner-grid variants (if any) */
.banner-grid > ul > li .post--item {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* ── 3. SECTION WRAPPING & SPACING ──────────────────────────────────────── */
[id^="section_"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.main--content--section > section,
.main--content--section > [id^="section_"] {
  padding: 20px 0 !important;
}

/* Sections with background = dividers */
[id^="section_"]:nth-child(even) {
  background: transparent !important;
}

/* ── 4. SECTION TITLE BAR ────────────────────────────────────────────────── */
.section-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 2px solid #e2e6ed !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
}

.section-title h2,
.section-title h3,
.section-title h4,
.section-title h5 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  margin: 0 !important;
}

/* Red left bar accent */
.section-title h2::before,
.section-title h3::before,
.section-title h4::before,
.section-title h5::before {
  content: '' !important;
  display: inline-block !important;
  width: 4px !important;
  height: 17px !important;
  background: #dc2626 !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

/* Section header arrow button */
.section-title a,
.section-title button,
.section-title .btn-next,
.section-title .btn-prev {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  border: none !important;
  flex-shrink: 0 !important;
  transition: background 0.2s !important;
}

.section-title a:hover,
.section-title button:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* ── 5. "WHAT'S NEW" BIG FEATURED CARD FIX ──────────────────────────────── */

/* The big bg-img-style card outside banner grid needs explicit height */
.post--item.bg-img-style.big {
  min-height: 400px !important;
  max-height: 460px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.post--item.bg-img-style.big .post--img {
  display: block !important;
}

.post--item.bg-img-style.big .post--img img {
  width: 100% !important;
  min-height: 400px !important;
  max-height: 460px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.post--item.bg-img-style.big .post--title a {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

/* ── 6. "WHAT'S NEW" SMALL GRID CARDS ───────────────────────────────────── */

/* The post-advance-layout-5 small cards */
.post-advance-layout-5 .layout-5-small-post,
.post--item.top-img-overlay {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.post--item.top-img-overlay .post--img,
.layout-5-small-post .post--img {
  height: 160px !important;
  overflow: hidden !important;
}

.post--item.top-img-overlay .post--img img,
.layout-5-small-post .post--img img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
}

.post--item.top-img-overlay .post--content {
  padding: 10px 14px 14px !important;
}

.post--item.top-img-overlay .post--title a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

/* ── 7. LIST ARTICLE ROWS — REDESIGN ────────────────────────────────────── */

/* Remove VIEW MORE button completely */
.post--item .theme-btn,
.post--item a.theme-btn,
.post--item .view-more-btn,
.view-more-btn,
a.view-more-btn,
.post-style-one .theme-btn,
[class*="post-style"] .theme-btn,
a.btn.btn-borderd,
.btn.btn-borderd.radius-50,
a.btn.btn-borderd.radius-50 {
  display: none !important;
}

/* List card layout */
.post-style-one.post--item.media {
  display: flex !important;
  flex-direction: row !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 0 !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

.post-style-one.post--item.media .post--img {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-height: 130px !important;
  overflow: hidden !important;
  position: relative !important;
}

.post-style-one.post--item.media .post--img img {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.post-style-one.post--item.media .post--content,
.post-style-one.post--item.media .media-body {
  flex: 1 !important;
  padding: 14px 18px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 130px !important;
}

.post-style-one.post--item.media .post--title a {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

.post-style-one.post--item.media .post--excerpt {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 5px 0 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Make the category badge inside list cards crisp */
.post-style-one .post--category,
.post-style-one .cat-btn {
  font-size: 9.5px !important;
  padding: 2px 9px !important;
}

/* The carousel slide items */
.post-layout-2 .post--item,
[class*="post-advance-layout"] .post--item,
.swiper-slide .post--item,
.post-style-four,
.post--item.post-style-four {
  border-radius: 12px !important;
  overflow: hidden !important;
  height: 260px !important;
  border: none !important;
}

.post-layout-2 .post--item .post--img,
.swiper-slide .post--item .post--img,
.post-style-four .post--img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.post-layout-2 .post--item .post--img img,
.swiper-slide .post--item .post--img img,
.post-style-four .post--img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Hot topics card overlay */
.post-layout-2 .post--item::after,
.swiper-slide .post--item::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to top,
    rgba(4, 6, 18, 0.92) 0%,
    rgba(4, 6, 18, 0.35) 60%,
    transparent 100%
  ) !important;
  z-index: 1 !important;
  border-radius: inherit !important;
}

.post-layout-2 .post--content,
.swiper-slide .post--content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 14px 16px 16px !important;
  z-index: 2 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.post-layout-2 .post--title a,
.swiper-slide .post--title a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.post-layout-2 .post--meta,
.swiper-slide .post--meta {
  color: rgba(255,255,255,0.65) !important;
  font-size: 11px !important;
}

/* ── 6. "WHAT'S NEW" — MIXED GRID ────────────────────────────────────────── */

/* The large featured post in What's New */
.post-style-two .post--img,
.post-style-two .post--img img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  border-radius: 12px 12px 0 0 !important;
}

.post-style-two .post--content {
  padding: 16px !important;
}

.post-style-two .post--title a {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
}

/* Smaller cards in What's New grid */
.post-style-five .post--img,
.post-style-five .post--img img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 10px 10px 0 0 !important;
}

.post-style-five .post--title a {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* ── 7. LIST ARTICLE ROWS (Lifestyle / standard list) ─────────────────────── */

/* Remove the clunky "VIEW MORE" button style list cards */
.post-style-one.post--item.media {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 0 !important;
  min-height: 130px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

.post-style-one.post--item.media .post--img {
  flex: 0 0 180px !important;
  width: 180px !important;
  height: 130px !important;
  min-height: 130px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

.post-style-one.post--item.media .post--img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.post-style-one.post--item.media .post--content,
.post-style-one.post--item.media .media-body {
  flex: 1 !important;
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.post-style-one.post--item.media .post--title a {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

.post-style-one.post--item.media .post--excerpt {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 6px 0 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Hide the "VIEW MORE" button — use the card itself as a link */
.post-style-one .post--item .view-more-btn,
.post-style-one .view-more-btn,
[class*="post-style-one"] .theme-btn,
.post--item.media .theme-btn,
.post--item.media a.theme-btn {
  display: none !important;
}

/* ── 8. SIDEBAR WIDGETS ─────────────────────────────────────────────────── */

/* Popular news sidebar cards */
.widget .post--item.media,
.widget .post-style-one.post--item.media,
#post_recent_widget .post--item {
  flex-direction: row !important;
  min-height: 80px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  border: 1px solid #e8ecf2 !important;
  padding: 0 !important;
  overflow: hidden !important;
  margin-bottom: 10px !important;
}

.widget .post--item.media .post--img,
#post_recent_widget .post--item .post--img {
  flex: 0 0 90px !important;
  width: 90px !important;
  height: 80px !important;
  min-height: 80px !important;
  border-radius: 0 !important;
}

.widget .post--item.media .post--img img,
#post_recent_widget .post--item .post--img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.widget .post--item.media .post--content,
.widget .post--item.media .media-body,
#post_recent_widget .post--item .post--content {
  padding: 10px 12px !important;
  font-size: 12px !important;
}

.widget .post--item .post--title a,
#post_recent_widget .post--item .post--title a {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Sidebar widget title */
.widget .widget-title,
.widget .widget-title h4,
.widget .widget-title h5 {
  background: #f8f9fc !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e6ed !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.widget .widget-title::before,
.widget .widget-title h4::before,
.widget .widget-title h5::before {
  content: '' !important;
  display: inline-block !important;
  width: 3px !important;
  height: 14px !important;
  background: #dc2626 !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

/* ── 9. AD BANNER PLACEHOLDERS ───────────────────────────────────────────── */
.ad-space,
[class*="ad-"],
.ads--area,
.advertisement,
.banner-ad {
  background: linear-gradient(135deg, #f1f4f9, #e8ecf3) !important;
  border: 2px dashed #d0d8e8 !important;
  border-radius: 12px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ── 10. POST META STYLING ────────────────────────────────────────────────── */
.post--meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin-top: 6px !important;
}

.post--meta a {
  color: #64748b !important;
}

.post--meta a:hover {
  color: #dc2626 !important;
}

/* Overlay card meta = white */
.post--item.bg-img-style .post--meta a,
.post--item.image-overlay .post--meta a,
.post--item.content-overlay .post--meta a {
  color: rgba(255,255,255,0.7) !important;
}

/* ── 11. POST IMAGE HOVER ZOOM ───────────────────────────────────────────── */
.post--item {
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.28s ease !important;
}

.post--item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
}

.post--item .post--img img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.post--item:hover .post--img img {
  transform: scale(1.05) !important;
}

/* No scale on overlay items (already positioned absolute) */
.post--item.bg-img-style:hover .post--img img,
.post--item.image-overlay:hover .post--img img {
  transform: scale(1.04) !important;
}

/* ── 12. PAGINATION ──────────────────────────────────────────────────────── */
.pagination {
  gap: 6px !important;
}

.pagination .page-link {
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e6ed !important;
  color: #475569 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.pagination .page-link:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3) !important;
}

.pagination .page-item.active .page-link {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

/* ── 13. RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .post--item:hover {
    transform: none !important;
  }

  .post-style-one.post--item.media .post--img {
    flex: 0 0 130px !important;
    width: 130px !important;
  }
}

@media (max-width: 767px) {
  .post-style-one.post--item.media {
    flex-direction: column !important;
  }

  .post-style-one.post--item.media .post--img {
    flex: none !important;
    width: 100% !important;
    height: 180px !important;
  }

  .post-layout-2 .post--item,
  .swiper-slide .post--item {
    height: 220px !important;
  }
}

/* ============================================================================
   NAV ACTION BUTTONS (Login + Search) — in main nav bar right side
   ============================================================================ */

/* Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 4px;
}

/* ── Nav Actions Item wrapper ─── */
.nav-actions-item {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: auto !important;
  padding: 0 4px !important;
  border-left: 1px solid rgba(255,255,255,0.1) !important;
}

/* ── Cancel ALL nav-link styles bleeding into the action buttons ─── */
.nav-actions-item > a.nav-action-btn,
.nav-actions-item > button.nav-action-btn {
  /* Kill nav-link overrides */
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  position: static !important;
}

/* Kill the red underline animation on the login link */
.nav-actions-item > a.nav-action-btn::after,
.nav-actions-item > button.nav-action-btn::after {
  display: none !important;
}

/* ── Individual button style — minimal icon, no boxy border ─── */
.nav-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.72) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  flex-shrink: 0 !important;
}

/* Hide any text labels */
.nav-action-btn span {
  display: none !important;
}

.nav-action-btn svg {
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
}

.nav-action-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
}

/* Active search button — red background */
#nav-search-trigger-desktop[aria-expanded="true"] {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Login button hover — red tint */
a.nav-action-btn:hover {
  background: rgba(220,38,38,0.2) !important;
  color: #ffffff !important;
}

/* ============================================================================
   COMPACT SEARCH PANEL — slides down from nav bar
   ============================================================================ */

.nav-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;          /* flush below header-bottom */
  background: #0f172a;
  border-top: 2px solid #dc2626;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  z-index: 200;
  /* Hidden by default */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              transform 0.25s ease;
  pointer-events: none;
}

.nav-search-panel.is-open {
  max-height: 110px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}

.nav-search-panel__icon {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.nav-search-panel__input {
  flex: 1;
  height: 46px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  /* Remove browser search X */
  -webkit-appearance: none;
  appearance: none;
}

.nav-search-panel__input::placeholder {
  color: rgba(255,255,255,0.38);
}

.nav-search-panel__input:focus {
  border-color: #dc2626;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.18);
}

/* Remove native clear button in search inputs */
.nav-search-panel__input::-webkit-search-cancel-button,
.nav-search-panel__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.nav-search-panel__submit {
  flex-shrink: 0;
  height: 46px;
  padding: 0 22px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.nav-search-panel__submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.nav-search-panel__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.nav-search-panel__close:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.nav-search-panel__hint {
  padding: 0 0 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.nav-search-panel__hint kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-family: monospace;
}

/* ── Override the full-screen offcanvas search overlay ─────────────────────
   We still keep the offcanvas HTML in the DOM (mobile uses it)
   but on desktop we hide it since we have the compact panel instead        */
@media (min-width: 992px) {
  .offcanvas.open {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ── Nav icons override from main style block ───────────────────────────── */
/* Undo the "display:none" on header-right-menu set in the previous override */
body[class*="theme-template-"] [id^="header_bottom_"] .header-right-menu {
  display: flex !important;
}

/* The nav-actions col should have auto width */
body[class*="theme-template-"] [id^="header_bottom_"] .row .col-auto.d-none.d-lg-flex {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* Make header-bottom position:relative so search panel anchors to it */
[id^="header_bottom_"] {
  position: relative !important;
  overflow: visible !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-actions { display: none !important; }
  .nav-search-panel { display: none !important; }
}

/* ============================================================================
   RESPONSIVE HEADER — mobile/tablet layout fixes
   Ensures logo + hamburger + user/search icons are always visible
   ============================================================================ */

/* ── Mobile header row: always show user + search icons ── */
.header-bottom .d-lg-none .header-right-menu {
  display: flex !important;
  align-items: center;
}

.header-bottom .d-lg-none .header-right-menu ul.nav {
  flex-wrap: nowrap !important;
  gap: 4px;
}

.header-bottom .d-lg-none .header-right-menu li {
  flex-shrink: 0;
}

/* Style user/search icons on mobile to match the dark header */
.header-bottom .d-lg-none .header-right-menu a,
.header-bottom .d-lg-none .header-right-menu .menu-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.18s ease;
}

.header-bottom .d-lg-none .header-right-menu a:hover,
.header-bottom .d-lg-none .header-right-menu .menu-trigger-btn:hover {
  background: rgba(255,255,255,0.18);
}

.header-bottom .d-lg-none .header-right-menu img.svg {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ── Mobile row column sizing — never let it collapse ── */
.header-bottom .d-lg-none {
  flex-wrap: nowrap !important;
  min-height: 56px;
  align-items: center;
}

.header-bottom .d-lg-none .col-2 {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 40px;
  padding-right: 4px;
}

.header-bottom .d-lg-none .col-6 {
  flex: 1 1 auto !important;
  width: auto !important;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.header-bottom .d-lg-none .col-6 .logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header-bottom .d-lg-none .col-auto {
  flex: 0 0 auto !important;
  width: auto !important;
  padding-left: 4px;
}

/* Hamburger trigger button must always be visible */
.trigger-button.d-lg-none {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

.trigger-button.d-lg-none span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ── Desktop row (992px+): prevent menu overflow ── */
@media (min-width: 992px) {
  .header-bottom .d-none.d-lg-flex {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
  }

  .header-bottom .d-none.d-lg-flex .col-2 {
    flex: 0 0 140px !important;
    width: 140px !important;
    max-width: 140px;
  }

  .header-bottom .d-none.d-lg-flex .col.position-static {
    flex: 1 1 auto !important;
    min-width: 0;
    overflow: visible;
  }

  .horizontal-menu .nav {
    flex-wrap: nowrap !important;
    overflow: visible;
  }
}

/* ── Tablet viewport 992px-1199px: shrink nav text ── */
@media (min-width: 992px) and (max-width: 1199px) {
  .horizontal-menu > .nav > li > a {
    padding: 18px 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
  }

  .nav-action-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .nav-action-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .nav-actions-item {
    gap: 2px !important;
    padding: 0 2px !important;
  }
}

/* ── Very narrow mobile (<400px): keep all icons accessible ── */
@media (max-width: 400px) {
  .header-bottom .d-lg-none .col-6 .logo img {
    max-height: 32px;
  }

  .header-bottom .d-lg-none .header-right-menu a,
  .header-bottom .d-lg-none .header-right-menu .menu-trigger-btn {
    width: 32px;
    height: 32px;
  }

  .header-bottom .d-lg-none .header-right-menu img.svg {
    width: 15px;
    height: 15px;
  }

  .trigger-button.d-lg-none {
    width: 32px;
    height: 32px;
  }
}

/* ── Page layout: prevent horizontal overflow ── */
body {
  overflow-x: hidden !important;
}

@media (max-width: 575px) {
  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}