/*
Theme Name: WildMagPro Premium Redesign
Description: Modern, vibrant, premium newspaper theme styles.
Author: Wild Cats Media
*/

/* =============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================= */
:root {
  /* Brand Colors - Deep & Vibrant */
  --wmp-primary: #e63946;       /* Vibrant Red - main accent */
  --wmp-primary-dark: #c1121f;
  --wmp-primary-light: #ff6b6b;
  --wmp-secondary: #1d3557;     /* Deep Navy */
  --wmp-accent: #457b9d;        /* Steel Blue */
  --wmp-accent-light: #a8dadc;
  --wmp-highlight: #f4a261;     /* Warm Orange */

  /* Backgrounds */
  --wmp-bg: #f1f5f9;
  --wmp-bg-alt: #e2e8f0;
  --wmp-card-bg: #ffffff;
  --wmp-dark-bg: #0f172a;
  --wmp-dark-card: #1e293b;

  /* Text */
  --wmp-text-primary: #0f172a;
  --wmp-text-secondary: #475569;
  --wmp-text-muted: #94a3b8;
  --wmp-text-on-dark: #f8fafc;

  /* Borders & Shadows */
  --wmp-border: #e2e8f0;
  --wmp-border-light: #f1f5f9;
  --wmp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --wmp-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --wmp-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --wmp-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --wmp-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  /* Radii */
  --wmp-radius-xs: 4px;
  --wmp-radius-sm: 8px;
  --wmp-radius: 12px;
  --wmp-radius-lg: 16px;
  --wmp-radius-xl: 20px;
  --wmp-radius-full: 9999px;

  /* Transitions */
  --wmp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wmp-transition: all 0.3s var(--wmp-ease);
  --wmp-transition-fast: all 0.15s var(--wmp-ease);

  /* Layout */
  --wmp-container: 1280px;
  --wmp-sidebar-width: 180px;
  --wmp-right-sidebar: 320px;
}


/* =============================================
   GLOBAL RESETS & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body.wildmagpro-theme {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--wmp-bg) !important;
  color: var(--wmp-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--wmp-transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}


/* =============================================
   CONTAINER
   ============================================= */
.wmp-container {
  width: 100%;
  max-width: var(--wmp-container);
  margin: 0 auto;
  padding: 0 20px;
}


/* =============================================
   TOP BAR
   ============================================= */
.wmp-topbar {
  background: var(--wmp-secondary);
  color: var(--wmp-text-on-dark);
  font-size: 12px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wmp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.wmp-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wmp-topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.wmp-topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
}

.wmp-topbar-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--wmp-text-on-dark) !important;
  opacity: 0.85;
}
.wmp-topbar-link:hover {
  opacity: 1;
  color: var(--wmp-highlight) !important;
}

.wmp-topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wmp-topbar-social a {
  color: rgba(255,255,255,0.7) !important;
  display: flex;
  align-items: center;
  transition: var(--wmp-transition-fast);
}
.wmp-topbar-social a:hover {
  color: var(--wmp-highlight) !important;
  transform: scale(1.15);
}


/* =============================================
   HEADER AD ZONE
   ============================================= */
.wmp-header-ad-zone {
  background: var(--wmp-bg);
  padding: 12px 0;
}


/* =============================================
   AD BANNERS (all)
   ============================================= */
.wmp-ad-banner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wmp-ad-placeholder {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e1;
  border-radius: var(--wmp-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 12px;
  transition: var(--wmp-transition);
  width: 100%;
  max-width: 728px;
  height: 90px;
}

.wmp-ad-placeholder:hover {
  border-color: var(--wmp-accent);
  background: linear-gradient(135deg, #e0f2fe 0%, #e2e8f0 100%);
}

.wmp-ad-placeholder.wmp-ad-vertical {
  max-width: 160px;
  height: 600px;
}

.wmp-ad-placeholder.wmp-ad-medium {
  max-width: 300px;
  height: 250px;
}

.wmp-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #94a3b8;
}

.wmp-ad-size {
  font-size: 11px;
  color: #b0bec5;
}

.wmp-ad-mid {
  margin: 30px 0;
}
.wmp-ad-mid .wmp-ad-placeholder {
  max-width: 970px;
}

.wmp-ad-bottom {
  margin: 40px 0 30px;
}

.wmp-ad-sidebar,
.wmp-ad-sidebar-right {
  margin-bottom: 20px;
}


/* =============================================
   HEADER BRAND / LOGO
   ============================================= */
.wmp-header-brand {
  background: var(--wmp-card-bg);
  padding: 20px 0;
  border-bottom: 1px solid var(--wmp-border);
}

.wmp-brand-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmp-logo-area {
  text-align: center;
}

.wmp-logo-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

.wmp-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wmp-text-primary) !important;
}

.wmp-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--wmp-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  border-radius: var(--wmp-radius-sm);
  transition: var(--wmp-transition);
}

.wmp-logo-link:hover .wmp-logo-icon {
  transform: rotate(-5deg) scale(1.05);
  background: var(--wmp-primary-dark);
}

.wmp-logo-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--wmp-secondary), var(--wmp-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wmp-tagline {
  display: block;
  font-size: 12px;
  color: var(--wmp-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}


/* =============================================
   MAIN NAVIGATION
   ============================================= */
.wmp-main-nav {
  background: var(--wmp-secondary);
  position: relative;
  z-index: 1000;
  transition: var(--wmp-transition);
}

.wmp-main-nav.wmp-nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--wmp-shadow-lg);
  animation: slideDown 0.3s var(--wmp-ease);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.wmp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* STEP 1: anchor left, no centering */
  gap: 0;
}

.wmp-nav-menu {
  flex: none; /* STEP 3: prevent flex stretch */
  margin-left: auto; /* push menu to right, keeping burger pinned left */
}

.wmp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.wmp-menu li {
  position: relative;
}

.wmp-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--wmp-transition-fast);
}

.wmp-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--wmp-primary);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s var(--wmp-ease);
}

.wmp-menu > li:hover > a,
.wmp-menu > li.current-menu-item > a {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.wmp-menu > li:hover > a::after,
.wmp-menu > li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown submenu */
.wmp-menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wmp-card-bg);
  border-radius: 0 0 var(--wmp-radius-sm) var(--wmp-radius-sm);
  box-shadow: var(--wmp-shadow-lg);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--wmp-transition);
  z-index: 1100;
}

.wmp-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wmp-menu li .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--wmp-text-primary) !important;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--wmp-transition-fast);
}

.wmp-menu li .sub-menu a:hover {
  background: var(--wmp-bg);
  border-left-color: var(--wmp-primary);
  color: var(--wmp-primary) !important;
}

/* Mobile Toggle */
.wmp-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  order: -1;          /* STEP 1: always first in flex row */
  margin-right: auto; /* STEP 1: push everything else right */
  flex-shrink: 0;     /* never compress */
}

.wmp-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--wmp-transition);
}

.wmp-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.wmp-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.wmp-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search */
.wmp-nav-search {
  position: relative;
}

.wmp-search-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  transition: var(--wmp-transition-fast);
}
.wmp-search-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.wmp-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--wmp-card-bg);
  border-radius: 0 0 var(--wmp-radius-sm) var(--wmp-radius-sm);
  box-shadow: var(--wmp-shadow-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--wmp-transition);
  z-index: 1100;
}
.wmp-search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wmp-search-form {
  display: flex;
  gap: 8px;
}
.wmp-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--wmp-border);
  border-radius: var(--wmp-radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--wmp-transition-fast);
}
.wmp-search-form input:focus {
  border-color: var(--wmp-primary);
}
.wmp-search-form button {
  padding: 10px 14px;
  background: var(--wmp-primary);
  color: #fff;
  border: none;
  border-radius: var(--wmp-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--wmp-transition-fast);
}
.wmp-search-form button:hover {
  background: var(--wmp-primary-dark);
}


/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
.wmp-breaking-bar {
  background: var(--wmp-card-bg);
  border-bottom: 1px solid var(--wmp-border);
  overflow: hidden;
}

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

.wmp-breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wmp-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--wmp-radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.wmp-breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.wmp-ticker-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--wmp-text-primary) !important;
  transition: opacity 0.3s ease;
  display: inline;
}
.wmp-ticker-item:hover {
  color: var(--wmp-primary) !important;
}


/* =============================================
   HERO / CAROUSEL SECTION
   ============================================= */
.wmp-hero-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  margin: 25px 0;
}

.wmp-hero-carousel {
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow-lg);
}

.wmp-hero-carousel .swiper-container {
  width: 100%;
  height: 500px;
}

.wmp-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.wmp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s linear;
}

.swiper-slide-active .wmp-hero-bg {
  transform: scale(1.08);
}

.wmp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.2) 40%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.wmp-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: #fff;
  max-width: 700px;
}

.wmp-hero-badge {
  display: inline-block;
  background: var(--wmp-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--wmp-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.wmp-hero-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wmp-hero-title a {
  color: #fff !important;
}
.wmp-hero-title a:hover {
  color: var(--wmp-highlight) !important;
}

.wmp-hero-excerpt {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.wmp-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.wmp-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wmp-hero-readmore {
  display: inline-block;
  background: var(--wmp-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--wmp-radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--wmp-transition);
}
.wmp-hero-readmore:hover {
  background: var(--wmp-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* Hero Nav Buttons */
.wmp-nav-btn {
  width: 44px !important;
  height: 44px !important;
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(10px);
  border-radius: 50% !important;
  transition: var(--wmp-transition) !important;
}
.wmp-nav-btn::after {
  font-size: 16px !important;
  color: #fff !important;
}
.wmp-nav-btn:hover {
  background: var(--wmp-primary) !important;
}

/* Hero Pagination */
.wmp-hero-pagination {
  bottom: 16px !important;
}
.wmp-hero-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.4) !important;
  width: 10px !important;
  height: 10px !important;
  transition: var(--wmp-transition) !important;
  opacity: 1 !important;
}
.wmp-hero-pagination .swiper-pagination-bullet-active {
  background: var(--wmp-primary) !important;
  width: 28px !important;
  border-radius: 5px !important;
}

/* Hero Side Cards */
.wmp-hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wmp-hero-side-card {
  position: relative;
  flex: 1;
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow-md);
  cursor: pointer;
  transition: var(--wmp-transition);
}

.wmp-hero-side-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wmp-shadow-xl);
}

.wmp-side-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--wmp-ease);
}

.wmp-hero-side-card:hover .wmp-side-card-bg {
  transform: scale(1.08);
}

.wmp-side-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.85) 100%);
}

.wmp-side-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  color: #fff;
}

.wmp-side-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--wmp-primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--wmp-radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.wmp-side-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px 0 !important;
}
.wmp-side-title a {
  color: #fff !important;
}
.wmp-side-title a:hover {
  color: var(--wmp-highlight) !important;
}

.wmp-side-date {
  font-size: 12px;
  opacity: 0.7;
}


/* =============================================
   MAIN CONTENT AREA (3-COLUMN)
   ============================================= */
.wmp-main-wrap {
  padding-top: 0;
}

.wmp-content-area {
  display: grid;
  grid-template-columns: var(--wmp-sidebar-width) 1fr var(--wmp-right-sidebar);
  gap: 24px;
  margin-top: 10px;
}

.wmp-sidebar {
  position: relative;
}

.wmp-sidebar-sticky {
  position: sticky;
  top: 80px;
}

/* Section Headers */
.wmp-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.wmp-section-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--wmp-text-primary);
  margin: 0 !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wmp-title-accent {
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--wmp-primary);
  border-radius: 3px;
}

.wmp-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--wmp-primary), transparent);
  border-radius: 2px;
}


/* =============================================
   POST CARDS (GRID)
   ============================================= */
.wmp-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.wmp-post-card {
  background: var(--wmp-card-bg);
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow);
  border: 1px solid var(--wmp-border);
  transition: var(--wmp-transition);
  display: flex;
  flex-direction: row;
}

.wmp-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wmp-shadow-lg);
  border-color: var(--wmp-primary);
}

/* Card Image */
.wmp-card-image {
  position: relative;
  width: 300px;
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.wmp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--wmp-ease);
}

.wmp-post-card:hover .wmp-card-image img {
  transform: scale(1.08);
}

.wmp-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.wmp-card-category a {
  display: inline-block;
  background: var(--wmp-primary);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: var(--wmp-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--wmp-transition-fast);
}
.wmp-card-category a:hover {
  background: var(--wmp-primary-dark) !important;
  color: #fff !important;
}

/* Card Body */
.wmp-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.wmp-card-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
}

.wmp-card-title a {
  color: var(--wmp-text-primary) !important;
  transition: var(--wmp-transition-fast);
}
.wmp-card-title a:hover {
  color: var(--wmp-primary) !important;
}

.wmp-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--wmp-text-muted);
}

.wmp-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wmp-card-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.wmp-card-author a {
  font-weight: 600;
  color: var(--wmp-text-secondary) !important;
}
.wmp-card-author a:hover {
  color: var(--wmp-primary) !important;
}

.wmp-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wmp-card-excerpt {
  color: var(--wmp-text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px 0;
  flex: 1;
}

.wmp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--wmp-border-light);
}

.wmp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wmp-primary) !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--wmp-transition-fast);
}
.wmp-read-more:hover {
  gap: 10px;
  color: var(--wmp-primary-dark) !important;
}

.wmp-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wmp-card-comments,
.wmp-card-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--wmp-text-muted);
}

/* Avatar Placeholder for demo */
.wmp-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wmp-primary), var(--wmp-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}


/* =============================================
   SIDEBAR WIDGETS (RIGHT)
   ============================================= */
.wmp-widget {
  background: var(--wmp-card-bg);
  border-radius: var(--wmp-radius-lg);
  box-shadow: var(--wmp-shadow);
  border: 1px solid var(--wmp-border);
  overflow: hidden;
  margin-bottom: 20px;
}

.wmp-widget-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--wmp-primary);
  background: linear-gradient(135deg, rgba(230,57,70,0.04), transparent);
}

.wmp-widget-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wmp-text-primary);
}

.wmp-widget-body {
  padding: 16px 20px;
}

.wmp-widget-empty {
  color: var(--wmp-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

/* Popular Posts */
.wmp-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wmp-border-light);
  transition: var(--wmp-transition-fast);
}

.wmp-popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wmp-popular-item:first-child {
  padding-top: 0;
}

.wmp-popular-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--wmp-bg-alt);
  line-height: 1;
  min-width: 36px;
  font-style: italic;
}

.wmp-popular-item:hover .wmp-popular-num {
  color: var(--wmp-primary);
}

.wmp-popular-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--wmp-radius-sm);
  overflow: hidden;
}

.wmp-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--wmp-ease);
}

.wmp-popular-item:hover .wmp-popular-thumb img {
  transform: scale(1.1);
}

.wmp-popular-info {
  flex: 1;
  min-width: 0;
}

.wmp-popular-info h4 {
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.4 !important;
}

.wmp-popular-info h4 a {
  color: var(--wmp-text-primary) !important;
}
.wmp-popular-info h4 a:hover {
  color: var(--wmp-primary) !important;
}

.wmp-popular-date {
  font-size: 11px;
  color: var(--wmp-text-muted);
}

/* Categories Widget */
.wmp-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wmp-category-list li {
  border-bottom: 1px solid var(--wmp-border-light);
}
.wmp-category-list li:last-child {
  border-bottom: none;
}

.wmp-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--wmp-text-secondary) !important;
  font-size: 13px;
  font-weight: 500;
  transition: var(--wmp-transition-fast);
}

.wmp-category-list a:hover {
  color: var(--wmp-primary) !important;
  padding-left: 8px;
}

.wmp-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  background: var(--wmp-bg);
  color: var(--wmp-text-muted);
  border-radius: var(--wmp-radius-full);
  font-size: 11px;
  font-weight: 700;
}

.wmp-category-list a:hover .wmp-cat-count {
  background: var(--wmp-primary);
  color: #fff;
}

/* Newsletter Widget */
.wmp-widget-newsletter {
  background: linear-gradient(135deg, var(--wmp-secondary) 0%, #2d4a6f 100%);
  border: none;
}

.wmp-newsletter-inner {
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.wmp-newsletter-icon {
  margin-bottom: 12px;
  opacity: 0.8;
}

.wmp-newsletter-inner h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
  color: #fff !important;
}

.wmp-newsletter-inner p {
  font-size: 13px;
  opacity: 0.75;
  margin: 0 0 18px 0;
}

.wmp-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wmp-newsletter-form input {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--wmp-radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--wmp-transition-fast);
}
.wmp-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}
.wmp-newsletter-form input:focus {
  border-color: var(--wmp-highlight);
  background: rgba(255,255,255,0.12);
}

.wmp-newsletter-form button {
  padding: 12px 20px;
  background: var(--wmp-primary);
  color: #fff;
  border: none;
  border-radius: var(--wmp-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--wmp-transition);
}
.wmp-newsletter-form button:hover {
  background: var(--wmp-highlight);
  transform: translateY(-2px);
}


/* =============================================
   PAGINATION
   ============================================= */
.wmp-pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--wmp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--wmp-transition-fast);
  border: 1px solid var(--wmp-border);
  background: var(--wmp-card-bg);
  color: var(--wmp-text-secondary);
}

.nav-links a:hover {
  background: var(--wmp-primary);
  color: #fff !important;
  border-color: var(--wmp-primary);
}

.nav-links .current {
  background: var(--wmp-primary);
  color: #fff;
  border-color: var(--wmp-primary);
}

.wmp-no-posts {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}
.wmp-no-posts h2, .wmp-no-posts h3 {
  font-size: 22px !important;
  color: var(--wmp-text-secondary);
  margin: 16px 0 8px !important;
}
.wmp-no-posts p {
  color: var(--wmp-text-muted);
}


/* =============================================
   FOOTER
   ============================================= */
.wmp-footer {
  margin-top: 40px;
}

.wmp-footer-top {
  background: var(--wmp-dark-bg);
  padding: 50px 0 40px;
  color: var(--wmp-text-on-dark);
}

.wmp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.wmp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wmp-footer-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--wmp-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: var(--wmp-radius-xs);
}

.wmp-footer-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.wmp-footer-about {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 0 0 18px 0;
}

.wmp-footer-social {
  display: flex;
  gap: 10px;
}

.wmp-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--wmp-radius-sm);
  color: rgba(255,255,255,0.6) !important;
  transition: var(--wmp-transition);
}

.wmp-footer-social a:hover {
  background: var(--wmp-primary);
  color: #fff !important;
  transform: translateY(-3px);
}

.wmp-footer-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

.wmp-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--wmp-primary);
  border-radius: 3px;
}

.wmp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wmp-footer-links li {
  margin-bottom: 10px;
}

.wmp-footer-links a {
  color: rgba(255,255,255,0.55) !important;
  font-size: 13px;
  transition: var(--wmp-transition-fast);
  display: inline-block;
}

.wmp-footer-links a:hover {
  color: var(--wmp-highlight) !important;
  padding-left: 6px;
}

.wmp-footer-newsletter-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px 0;
}

.wmp-footer-newsletter {
  display: flex;
  gap: 0;
  border-radius: var(--wmp-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.wmp-footer-newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.wmp-footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.4);
}

.wmp-footer-newsletter button {
  padding: 12px 16px;
  background: var(--wmp-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--wmp-transition-fast);
}
.wmp-footer-newsletter button:hover {
  background: var(--wmp-highlight);
}

.wmp-footer-contact {
  margin-top: 10px;
}

.wmp-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.wmp-footer-bottom {
  background: #0a0f1f;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.wmp-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wmp-footer-bottom-inner p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.wmp-footer-bottom-inner strong {
  color: var(--wmp-primary);
}

.wmp-footer-bottom-links {
  display: flex;
  gap: 18px;
}

.wmp-footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4) !important;
}
.wmp-footer-bottom-links a:hover {
  color: var(--wmp-primary) !important;
}


/* =============================================
   BACK TO TOP
   ============================================= */
.wmp-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--wmp-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wmp-shadow-md);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--wmp-transition);
}

.wmp-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wmp-back-to-top:hover {
  background: var(--wmp-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}


/* =============================================
   SINGLE POST STYLES
   ============================================= */
.td-post-header {
  margin-bottom: 24px;
}

.td-post-title .entry-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--wmp-text-primary) !important;
}

.td-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--wmp-text-secondary);
}

.td-post-featured-image {
  border-radius: var(--wmp-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.td-post-featured-image img {
  width: 100%;
  border-radius: var(--wmp-radius);
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
  .wmp-hero-section {
    grid-template-columns: 1fr 280px;
  }
  .wmp-content-area {
    grid-template-columns: 1fr var(--wmp-right-sidebar);
  }
  .wmp-sidebar-left {
    display: none;
  }
}

@media (max-width: 1024px) {
  .wmp-hero-section {
    grid-template-columns: 1fr;
  }
  .wmp-hero-side {
    flex-direction: row;
  }
  .wmp-hero-carousel .swiper-container {
    height: 400px;
  }
  .wmp-hero-side-card {
    min-height: 200px;
  }
  .wmp-content-area {
    grid-template-columns: 1fr 280px;
  }
  .wmp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .wmp-topbar-left .wmp-topbar-date {
    display: none;
  }
  .wmp-topbar-divider {
    display: none;
  }
  .wmp-logo-text {
    font-size: 24px;
  }
  .wmp-logo-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .wmp-mobile-toggle {
    display: flex;
  }
  .wmp-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: fit-content;         /* STEP 2 */
    min-width: 200px;
    max-width: 85vw;
    height: 100vh;
    background: var(--wmp-secondary);
    z-index: 10000;
    padding-top: 60px;
    transition: left 0.35s var(--wmp-ease);
    overflow-y: auto;
    display: block;             /* STEP 4: block, not stretched flex */
    box-sizing: border-box;
  }
  .wmp-menu {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;    /* STEP 4: items start at left edge */
    width: auto;                /* STEP 6: no forced 100% */
  }
  .wmp-menu > li > a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .wmp-menu > li > a::after {
    display: none;
  }
  .wmp-menu li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.15);
    border-radius: 0;
    padding: 0;
  }
  .wmp-menu li .sub-menu a {
    color: rgba(255,255,255,0.7) !important;
    padding-left: 40px;
    border-left: none;
  }
  .wmp-hero-carousel .swiper-container {
    height: 300px;
  }
  .wmp-hero-title {
    font-size: 22px !important;
  }
  .wmp-hero-content {
    padding: 24px;
  }
  .wmp-hero-excerpt {
    display: none;
  }
  .wmp-hero-side {
    flex-direction: column;
  }
  .wmp-hero-side-card {
    min-height: 180px;
  }
  .wmp-content-area {
    grid-template-columns: 1fr;
  }
  .wmp-sidebar-left {
    display: none;
  }
  .wmp-sidebar-right {
    order: 2;
  }
  .wmp-post-card {
    flex-direction: column;
  }
  .wmp-card-image {
    width: 100%;
    min-height: 200px;
    max-height: 240px;
  }
  .wmp-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .wmp-footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .wmp-ad-placeholder {
    max-width: 100%;
    height: 70px;
  }
  .wmp-ad-mid .wmp-ad-placeholder {
    max-width: 100%;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .wmp-container {
    padding: 0 14px;
  }
  .wmp-hero-carousel .swiper-container {
    height: 250px;
  }
  .wmp-hero-title {
    font-size: 18px !important;
  }
  .wmp-hero-badge {
    font-size: 10px;
    padding: 3px 10px;
  }
  .wmp-hero-readmore {
    display: none;
  }
  .wmp-card-body {
    padding: 16px;
  }
  .wmp-card-title {
    font-size: 16px !important;
  }
  .wmp-section-title {
    font-size: 18px !important;
  }
}


/* =============================================
   HIDE/OVERRIDE OLD THEME ELEMENTS
   ============================================= */
.td-header-wrap,
.td-banner-wrap-full,
.td-header-menu-wrap-full,
.td-search-background,
.td-search-wrap-mob,
.td-menu-background,
#td-mobile-nav,
.td-crumb-container,
.td-sub-footer-container,
.td-header-sp-logo,
.td-footer-page {
  display: none !important;
}

.td-main-content-wrap {
  padding: 0 !important;
  background: transparent !important;
}

.td-blog-index {
  width: 100% !important;
  padding: 0 !important;
}

.td-pb-row {
  margin: 0 !important;
}

/* Override any old styles that conflict */
.td-ss-main-content,
.td-main-content,
.td-main-sidebar {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}


/* =============================================
   LOADING ANIMATION
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wmp-post-card {
  animation: fadeInUp 0.5s var(--wmp-ease) both;
}

.wmp-post-card:nth-child(1) { animation-delay: 0.05s; }
.wmp-post-card:nth-child(2) { animation-delay: 0.1s; }
.wmp-post-card:nth-child(3) { animation-delay: 0.15s; }
.wmp-post-card:nth-child(4) { animation-delay: 0.2s; }
.wmp-post-card:nth-child(5) { animation-delay: 0.25s; }

.wmp-widget {
  animation: fadeInUp 0.5s var(--wmp-ease) both;
  animation-delay: 0.3s;
}


/* =============================================
   AUTONEXIS LOGO STYLES
   ============================================= */
.autonexis-header-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.autonexis-header-logo:hover {
  opacity: 0.88;
}

.autonexis-footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.autonexis-footer-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Slightly brighten the logo on dark footer for better visibility */
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(0,200,180,0.25));
}

/* Keep old .wmp-logo-icon hidden now that we use image logo */
.wmp-logo-icon { display: none !important; }
.wmp-logo-text { display: none !important; }
.wmp-footer-logo-icon { display: none !important; }
.wmp-footer-logo-text { display: none !important; }

/* Fix logo link alignment */
.wmp-logo-link {
  display: inline-flex;
  align-items: center;
}


/* =============================================
   EQUAL HEIGHT HERO SIDE CARDS FIX
   ============================================= */
.wmp-hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.wmp-hero-side-card {
  position: relative;
  flex: 1 1 0;          /* Equal flex growth — both cards same height */
  min-height: 220px;    /* Minimum so small-screen still looks good */
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow-md);
  cursor: pointer;
  transition: var(--wmp-transition);
  display: flex;
  flex-direction: column;
}

.wmp-hero-side-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wmp-shadow-xl);
}

/* Fix: image fills entire card without cutting */
.wmp-side-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s var(--wmp-ease);
}

.wmp-hero-side-card:hover .wmp-side-card-bg {
  transform: scale(1.06);
}

.wmp-side-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(15,23,42,0.88) 100%);
}

.wmp-side-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  color: #fff;
}

/* Hero carousel same height as side cards combined */
.wmp-hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin: 25px 0;
  align-items: stretch;
}

.wmp-hero-carousel {
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow-lg);
  min-height: 480px;
}

.wmp-hero-carousel .swiper-container,
.wmp-hero-carousel .swiper {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.wmp-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}


/* =============================================
   NO LEFT SIDEBAR LAYOUT (expand post list)
   ============================================= */
.wmp-content-area {
  display: grid;
  grid-template-columns: var(--wmp-sidebar-width) 1fr var(--wmp-right-sidebar);
  gap: 24px;
  margin-top: 24px;
}

/* When left sidebar is not present: 2-column layout, posts fill space */
.wmp-content-area.autonexis-no-left-sidebar {
  grid-template-columns: 1fr var(--wmp-right-sidebar);
}

/* Single post: no left sidebar */
.wmp-content-area.autonexis-single-layout {
  grid-template-columns: 1fr var(--wmp-right-sidebar);
  margin-top: 20px;
}

/* Post cards get wider image when more space available */
.autonexis-no-left-sidebar .wmp-card-image {
  width: 340px;
}

/* =============================================
   ARTICLE SIDEBAR — RIGHT SIDE OF SINGLE POST
   ============================================= */
.autonexis-article-sidebar {
  min-width: 0;
}

.autonexis-article-sidebar .wmp-sidebar-sticky {
  top: 90px;
}

/* Ad setup link visible to admins */
.autonexis-ad-setup-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--wmp-accent) !important;
  border: 1px solid var(--wmp-accent);
  border-radius: var(--wmp-radius-full);
  padding: 4px 12px;
  transition: var(--wmp-transition-fast);
}
.autonexis-ad-setup-link:hover {
  background: var(--wmp-accent);
  color: #fff !important;
}


/* =============================================
   RELATED POSTS WIDGET
   ============================================= */
.autonexis-related-posts {
  background: var(--wmp-card-bg);
  border-radius: var(--wmp-radius-lg);
  box-shadow: var(--wmp-shadow);
  border: 1px solid var(--wmp-border);
  overflow: hidden;
  margin-bottom: 20px;
}

.autonexis-related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wmp-border-light);
  transition: var(--wmp-transition-fast);
}

.autonexis-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.autonexis-related-item:first-child {
  padding-top: 0;
}

.autonexis-related-thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--wmp-radius-xs);
  overflow: hidden;
  display: block;
}

.autonexis-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--wmp-ease);
}

.autonexis-related-item:hover .autonexis-related-thumb img {
  transform: scale(1.08);
}

.autonexis-related-info h4 {
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 0 4px !important;
  line-height: 1.4 !important;
}

.autonexis-related-info h4 a {
  color: var(--wmp-text-primary) !important;
}
.autonexis-related-info h4 a:hover {
  color: var(--wmp-primary) !important;
}

.autonexis-related-date {
  font-size: 11px;
  color: var(--wmp-text-muted);
}


/* =============================================
   BREADCRUMB
   ============================================= */
.autonexis-breadcrumb {
  margin-bottom: 20px;
}

.autonexis-breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--wmp-text-muted);
}

.autonexis-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.autonexis-breadcrumb li::after {
  content: '›';
  color: var(--wmp-text-muted);
}

.autonexis-breadcrumb li:last-child::after {
  display: none;
}

.autonexis-breadcrumb li a {
  color: var(--wmp-text-secondary) !important;
  transition: color 0.15s;
}
.autonexis-breadcrumb li a:hover {
  color: var(--wmp-primary) !important;
}

.autonexis-breadcrumb li.current {
  color: var(--wmp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}


/* =============================================
   FOOTER FIXES — white text visibility
   ============================================= */
.wmp-footer-top {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.wmp-footer-about {
  color: rgba(255,255,255,0.65) !important;
}

.wmp-footer-heading {
  color: #ffffff !important;
}

.wmp-footer-links a {
  color: rgba(255,255,255,0.60) !important;
}

.wmp-footer-links a:hover {
  color: var(--wmp-highlight) !important;
}

.wmp-footer-newsletter-text {
  color: rgba(255,255,255,0.60) !important;
}

.wmp-contact-item {
  color: rgba(255,255,255,0.55) !important;
}

.wmp-contact-item span {
  color: rgba(255,255,255,0.55) !important;
}

.wmp-footer-bottom {
  background: #070d1a !important;
}

.wmp-footer-bottom-inner p {
  color: rgba(255,255,255,0.45) !important;
}

.wmp-footer-bottom-links a {
  color: rgba(255,255,255,0.45) !important;
}


/* =============================================
   AD ZONE CONTAINERS
   ============================================= */
.autonexis-ad-zone {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.wmp-ad-placeholder {
  position: relative;
}

/* Header ad zone wrapper */
.wmp-ad-header {
  padding: 12px 0;
  background: var(--wmp-bg);
  display: flex;
  justify-content: center;
}

/* Medium rectangle (sidebar) */
.wmp-ad-placeholder.wmp-ad-medium {
  max-width: 300px;
  height: 250px;
}


/* =============================================
   CARD CATEGORY BADGE (fix for span usage)
   ============================================= */
.wmp-card-category span {
  display: inline-block;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: var(--wmp-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* =============================================
   WIDER POST CARDS
   ============================================= */
.wmp-card-image {
  position: relative;
  width: 320px;
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.wmp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--wmp-ease);
}


/* =============================================
   RESPONSIVE UPDATES
   ============================================= */
@media (max-width: 1200px) {
  .wmp-hero-section {
    grid-template-columns: 1fr 300px;
  }
  .wmp-content-area {
    grid-template-columns: 1fr var(--wmp-right-sidebar);
  }
  .wmp-content-area.autonexis-no-left-sidebar {
    grid-template-columns: 1fr var(--wmp-right-sidebar);
  }
  .wmp-sidebar-left {
    display: none;
  }
}

@media (max-width: 1024px) {
  .wmp-hero-section {
    grid-template-columns: 1fr;
  }
  .wmp-hero-side {
    flex-direction: row;
    height: auto;
  }
  .wmp-hero-carousel {
    min-height: 400px;
  }
  .wmp-hero-slide { min-height: 400px; }
  .wmp-hero-carousel .swiper-container,
  .wmp-hero-carousel .swiper { min-height: 400px; }
  .wmp-content-area,
  .wmp-content-area.autonexis-no-left-sidebar,
  .wmp-content-area.autonexis-single-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .wmp-hero-side {
    flex-direction: column;
  }
  .wmp-hero-side-card {
    min-height: 200px;
  }
  .wmp-content-area,
  .wmp-content-area.autonexis-no-left-sidebar,
  .wmp-content-area.autonexis-single-layout {
    grid-template-columns: 1fr;
  }
  .wmp-sidebar-right {
    order: 2;
  }
  .wmp-post-card {
    flex-direction: column;
  }
  .wmp-card-image {
    width: 100%;
    min-height: 200px;
    max-height: 240px;
  }
  .autonexis-no-left-sidebar .wmp-card-image {
    width: 100%;
  }
  .autonexis-header-logo {
    height: 38px;
  }
}

/* =============================================
   NEW: CATEGORY PAGE FULL WIDTH GRID
   ============================================= */
.autonexis-category-content {
  display: block; /* Overrides the grid template inside wmp-content-area */
  padding-bottom: 40px;
}

.autonexis-category-header {
  text-align: center;
  margin: 40px 0;
  padding: 40px 20px;
  background: var(--wmp-dark-card);
  border-radius: var(--wmp-radius-lg);
  border: 1px solid var(--wmp-border);
  box-shadow: var(--wmp-shadow);
}

.autonexis-category-title {
  color: var(--wmp-primary);
  font-size: 36px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.autonexis-category-desc {
  color: var(--wmp-text-secondary);
  font-size: 16px;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.autonexis-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Redesign Cards for 3-col vertical layout */
.autonexis-grid-card {
  flex-direction: column;
  height: 100%;
  background: var(--wmp-card-bg);
  border-radius: var(--wmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--wmp-shadow-md);
  border: 1px solid var(--wmp-border);
  transition: var(--wmp-transition);
}

.autonexis-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wmp-shadow-xl);
  border-color: var(--wmp-primary);
}

.autonexis-grid-card .wmp-card-image {
  width: 100%;
  height: 220px;
}

.autonexis-grid-card .wmp-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.autonexis-grid-card .wmp-card-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.autonexis-grid-card .wmp-card-excerpt {
  margin-bottom: 20px;
  flex: 1;
}

.autonexis-dot-sep {
  color: var(--wmp-primary);
  margin: 0 8px;
}

/* Category Grid Responsive */
@media (max-width: 1024px) {
  .autonexis-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .autonexis-post-grid { grid-template-columns: 1fr; }
}


/* =============================================
   NEW: PAGE.PHP (STATIC PAGE) LAYOUT
   ============================================= */
.autonexis-page-layout {
  display: grid;
  grid-template-columns: 1fr var(--wmp-right-sidebar);
  gap: 30px;
  margin-top: 30px;
}

.autonexis-page-layout.autonexis-no-sidebar {
  display: block; /* Centered content */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.autonexis-page-main {
  background: var(--wmp-card-bg);
  border-radius: var(--wmp-radius-lg);
  border: 1px solid var(--wmp-border);
  box-shadow: var(--wmp-shadow-sm);
  padding: 40px;
}

.autonexis-page-title {
  font-size: 32px;
  color: var(--wmp-text-primary);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--wmp-primary);
  display: inline-block;
}

.autonexis-article-content {
  color: var(--wmp-text-secondary);
  line-height: 1.8;
  font-size: 17px;
}

.autonexis-article-content h1,
.autonexis-article-content h2,
.autonexis-article-content h3 {
  color: var(--wmp-text-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.autonexis-article-content a {
  color: var(--wmp-primary);
  text-decoration: underline;
}

.autonexis-article-content a:hover {
  color: var(--wmp-primary-light);
}

@media (max-width: 768px) {
  .autonexis-page-main { padding: 20px; }
  .autonexis-page-layout { grid-template-columns: 1fr; }
}

/* =============================================
   FIX: HIDE OVERLAPPING CAROUSEL ARROWS
   ============================================= */
.wmp-hero-prev,
.wmp-hero-next,
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* ================================================================
   AUTONEXIS CUSTOMIZER ADDITIONS — auto-generated, do not remove
   ================================================================ */

/* Sticky Nav */
.wmp-nav-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    animation: autonexis-slidedown 0.25s ease;
}
@keyframes autonexis-slidedown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Layout: full width posts */
.autonexis-layout-full-width .wmp-sidebar { display: none !important; }
.autonexis-layout-full-width .wmp-main-content { max-width: 100%; }

/* Layout: left sidebar */
.autonexis-layout-left-sidebar { flex-direction: row-reverse; }

/* Social Share Bar */
.autonexis-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.autonexis-share-label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    margin-right: 4px;
}
.autonexis-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
}
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #1da1f2; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-copy{ background: #475569; color: #fff; }
.autonexis-share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Reading Progress Bar */
#autonexis-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 99999;
    transition: width 0.12s linear;
}

/* Scroll-to-Top */
#autonexis-scroll-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: transform 0.18s, opacity 0.18s;
}
#autonexis-scroll-top:hover { transform: translateY(-3px); opacity: 0.88; }

/* Home grid columns — respects CSS var from customizer */
.wmp-posts-grid {
    display: grid;
    grid-template-columns: repeat(var(--wmp-home-cols, 3), 1fr);
    gap: var(--wmp-card-gap, 24px);
}

/* Sidebar width from CSS var */
.wmp-sidebar {
    width: var(--wmp-sidebar-width, 320px);
    flex: 0 0 var(--wmp-sidebar-width, 320px);
}

/* Article content max-width */
.td-post-content {
    max-width: var(--wmp-post-width, 760px);
}

/* Logo size from CSS vars */
.autonexis-header-logo,
.autonexis-footer-logo {
    max-width: var(--wmp-logo-max-w, 200px);
    max-height: var(--wmp-logo-max-h, 60px);
    width: auto;
    height: auto;
}

/* Ticker speed from CSS var */
@keyframes wmp-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.wmp-breaking-ticker {
    animation-name: wmp-ticker-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--wmp-ticker-speed, 60s);
}


/* =============================================
   MOBILE & RESPONSIVE — COMPLETE REWRITE
   Fixes all layout issues on phones/tablets
   ============================================= */

/* ── 1. Prevent all horizontal overflow ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── 2. Container — safe on all screens ── */
.wmp-container {
  width: 100%;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── 3. Header brand area ── */
.wmp-header-brand {
  background: var(--wmp-card-bg, #fff);
  padding: 16px 0;
  border-bottom: 1px solid var(--wmp-border, #e2e8f0);
}

.wmp-brand-inner {
  display: flex;
  flex-direction: column;   /* stack vertically by default */
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Desktop: side-by-side when logo-ad-row class is present */
@media (min-width: 769px) {
  .wmp-brand-inner.logo-ad-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .wmp-brand-inner.logo-ad-row .wmp-logo-area {
    flex: 0 0 auto;
  }
  .wmp-brand-inner.logo-ad-row .wmp-header-ad-zone {
    flex: 1;
    display: block;
  }
}

/* ── 4. Header Ad Zone ── */
.wmp-header-ad-zone {
  width: 100%;
  display: block;
  text-align: center;
}

/* The ad-wrap div output by autonexis_render_ad() */
.wmp-header-ad-zone .autonexis-ad-wrap,
.wmp-header-ad-zone .ad-header {
  width: 100%;
  display: block;
  text-align: center;
  line-height: 0;
}

/* Ensure ad content inside (script tags, ins tags, iframes) fills zone */
.wmp-header-ad-zone ins,
.wmp-header-ad-zone iframe,
.wmp-header-ad-zone > div > *,
.wmp-header-ad-zone .autonexis-ad-wrap > *,
.wmp-header-ad-zone .autonexis-ad-wrap > * > img,
.wmp-header-ad-zone .autonexis-ad-wrap > a,
.wmp-header-ad-zone .autonexis-ad-wrap > a > img {
  max-width: 100% !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* Desktop alignment must follow Customizer left/center/right settings. */
@media (min-width: 769px) {
  .wmp-header-ad-zone,
  .wmp-header-ad-zone .autonexis-ad-wrap,
  .wmp-header-ad-zone .ad-header {
    text-align: initial;
  }

  .wmp-header-ad-zone ins,
  .wmp-header-ad-zone iframe,
  .wmp-header-ad-zone > div > *,
  .wmp-header-ad-zone .autonexis-ad-wrap > *,
  .wmp-header-ad-zone .autonexis-ad-wrap > * > img,
  .wmp-header-ad-zone .autonexis-ad-wrap > a,
  .wmp-header-ad-zone .autonexis-ad-wrap > a > img {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── 5. Top Banner zone ── */
.wmp-top-banner-zone {
  width: 100%;
  background: var(--wmp-secondary, #1d3557);
  padding: 8px 0;
  text-align: center;
}
.wmp-top-banner-zone .autonexis-ad-wrap {
  display: flex;
  justify-content: center;
}

/* ── 6. Mobile-specific overrides (≤ 768px) ── */
@media (max-width: 768px) {

  .wmp-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Always stack logo + ad vertically on mobile */
  .wmp-brand-inner,
  .wmp-brand-inner.logo-ad-row {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }

  /* Mobile logo size — uses CSS vars set by Customizer */
  .autonexis-header-logo {
    max-width: var(--wmp-mobile-logo-max-w, 180px) !important;
    max-height: var(--wmp-mobile-logo-max-h, 50px) !important;
    width: auto;
    height: auto;
  }

  /* Mobile ad zone — full width, centred, bigger */
   .wmp-header-ad-zone {
    width: 100%;
    display: block;
    text-align: center;
  }

  .wmp-header-ad-zone .autonexis-ad-wrap,
  .wmp-header-ad-zone .ad-header {
    width: 100%;
    max-width: 100% !important;
    display: block;
    text-align: center;
    line-height: 0;
  }

  .wmp-header-ad-zone ins {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Posts grid: always 1 column on phones */
  .wmp-posts-grid {
    grid-template-columns: 1fr !important;
  }

  /* Ticker overflow */
  .wmp-breaking-bar,
  .wmp-breaking-inner,
  .wmp-breaking-ticker {
    max-width: 100%;
    overflow: hidden;
  }

  /* Nav overflow */
  .wmp-main-nav {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .wmp-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .wmp-topbar-inner {
    padding: 6px 0;
  }
  .wmp-logo-text {
    font-size: 22px !important;
  }
}

/* ── 7. Customizer toggles via body classes ── */

/* Hide mobile ad when admin turns it off */
@media (max-width: 768px) {
  .autonexis-hide-mobile-ad .wmp-header-ad-zone {
    display: none !important;
  }
}
/* Never affect desktop */
@media (min-width: 769px) {
  .autonexis-hide-mobile-ad .wmp-header-ad-zone {
    display: flex !important;
  }
}

/* Hide topbar */
.autonexis-hide-topbar .wmp-topbar {
  display: none !important;
}

/* Hide ticker */
.autonexis-hide-ticker .wmp-breaking-bar {
  display: none !important;
}


/* ================================================================
   AUTONEXIS MOBILE / GLOBAL FIXES
   ================================================================ */

/* Keep content from overflowing its grid cell */
.wmp-main-wrap,
.wmp-content-area,
.wmp-main-content,
.wmp-sidebar,
.wmp-posts-grid,
.wmp-post-card,
.wmp-card-image,
.wmp-card-body,
.wmp-card-content,
.wmp-hero-section,
.wmp-hero-carousel,
.wmp-hero-side,
.wmp-hero-content,
.autonexis-page-layout,
.autonexis-page-main,
.autonexis-post-grid,
.autonexis-grid-card,
.autonexis-article-content,
.td-main-content-wrap,
.td-container,
.td-main-content,
.td-main-sidebar {
  min-width: 0;
  max-width: 100%;
}

.wmp-post-card,
.autonexis-grid-card {
  overflow: hidden;
}

.wmp-card-image img,
.wmp-hero-bg,
.wmp-side-card-bg {
  max-width: 100%;
}

.autonexis-ad-wrap {
  max-width: 100%;
  overflow: hidden;
}

.autonexis-ad-wrap iframe,
.autonexis-ad-wrap img,
.autonexis-ad-wrap ins,
.autonexis-ad-wrap object,
.autonexis-ad-wrap embed {
  max-width: 100% !important;
}

.autonexis-ad-wrap.ad-sidebar2 {
  margin-top: 24px;
}

/* Header placement variants */
.wmp-header-brand.autonexis-brand-layout-ad-above-logo .wmp-brand-inner {
  flex-direction: column;
}

.wmp-header-brand.autonexis-brand-layout-ad-above-logo .wmp-header-ad-zone {
  order: 1;
}
.wmp-header-brand.autonexis-brand-layout-ad-above-logo .wmp-logo-area {
  order: 2;
}

.wmp-header-brand.autonexis-brand-layout-logo-above-ad .wmp-logo-area {
  order: 1;
}
.wmp-header-brand.autonexis-brand-layout-logo-above-ad .wmp-header-ad-zone {
  order: 2;
}

.wmp-nav-center-slot {
  display: none;
  min-width: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wmp-nav-center-slot.has-content {
  display: flex;
}


.wmp-nav-center-slot > .autonexis-nav-center-desktop,
.wmp-nav-center-slot > .autonexis-nav-center-mobile {
  display: none;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.wmp-nav-center-slot > .autonexis-nav-center-desktop.has-content,
.wmp-nav-center-slot > .autonexis-nav-center-mobile.has-content {
  display: flex;
}

.autonexis-mobile-slot-text {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.autonexis-mobile-slot-code,
.autonexis-mobile-slot-logo {
  display: flex;
  align-items: center;
  justify-content: center; /* default: center */
  width: 100%;
  min-width: 0;
  transition: justify-content 0.15s ease;
}

/* Logo position modifiers — set via Customizer → Mobile Logo Position */
.autonexis-mobile-logo-pos-left  .autonexis-mobile-slot-logo { justify-content: flex-start !important; }
.autonexis-mobile-logo-pos-center .autonexis-mobile-slot-logo { justify-content: center !important; }
.autonexis-mobile-logo-pos-right  .autonexis-mobile-slot-logo { justify-content: flex-end !important; }

.autonexis-mobile-slot-code > * {
  max-width: 100%;
}

.autonexis-mobile-slot-logo .wmp-logo-link {
  max-width: 100%;
}

.autonexis-mobile-slot-logo .autonexis-header-logo {
  max-width: min(100%, var(--wmp-mobile-nav-slot-max-w, 180px)) !important;
  max-height: var(--wmp-mobile-logo-max-h, 50px) !important;
}

@media (min-width: 769px) {
  .wmp-nav-center-slot {
    display: none !important;
  }

  .wmp-nav-center-slot > .autonexis-nav-center-mobile {
    display: none !important;
  }

  .wmp-nav-center-slot > .autonexis-nav-center-desktop.has-content {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.autonexis-menu-open {
    overflow: hidden;
  }

  .wmp-main-wrap,
  .wmp-footer,
  .wmp-header-brand,
  .wmp-main-nav,
  .wmp-breaking-bar {
    overflow-x: clip;
  }

  .wmp-nav-inner {
    display: flex !important;        /* STEP 4: flex, not grid */
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;     /* STEP 1: strict left anchor */
    gap: 0;
    min-height: var(--wmp-nav-height, 56px);
    width: 100%;
    box-sizing: border-box;
  }

  .wmp-mobile-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    order: -1;                       /* STEP 1: hard-left */
    margin-right: 0;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .wmp-nav-center-slot {
    display: flex;
    width: 100%;
    max-width: var(--wmp-mobile-nav-slot-max-w, 180px);
    margin: 0 auto;
    overflow: hidden;
  }

  .wmp-nav-center-slot > .autonexis-nav-center-desktop {
    display: none !important;
  }

  .wmp-nav-center-slot > .autonexis-nav-center-mobile.has-content {
    display: flex !important;
  }

  .wmp-nav-center-slot.is-empty {
    display: block;
  }

  .wmp-nav-search {
    justify-self: end;
  }

  .wmp-search-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .wmp-search-dropdown {
    width: min(320px, calc(100vw - (var(--wmp-mobile-container-pad, 12px) * 2)));
    max-width: calc(100vw - (var(--wmp-mobile-container-pad, 12px) * 2));
    right: 0;
    left: auto;
  }

  .wmp-nav-menu {
    left: -100%;
    width: fit-content;    /* STEP 2: content-driven width */
    min-width: 200px;      /* STEP 2: never too narrow */
    max-width: 85vw;       /* STEP 2: never full-screen */
  }

  .wmp-nav-menu.active,
  .wmp-nav-menu.wmp-nav-open {
    left: 0;
    box-shadow: var(--wmp-shadow-xl);
  }

  .wmp-header-brand {
    padding: 12px 0;
  }

  .wmp-brand-inner,
  .wmp-brand-inner.logo-ad-row {
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .wmp-logo-area,
  .wmp-header-ad-zone,
  .wmp-top-banner-zone .autonexis-ad-wrap,
  .wmp-footer-ad-row .autonexis-ad-wrap {
    width: 100%;
    max-width: 100%;
  }

  .wmp-header-ad-zone iframe,
  .wmp-header-ad-zone img,
  .wmp-header-ad-zone ins,
  .wmp-top-banner-zone iframe,
  .wmp-top-banner-zone img,
  .wmp-top-banner-zone ins,
  .wmp-footer-ad-row iframe,
  .wmp-footer-ad-row img,
  .wmp-footer-ad-row ins {
    max-width: 100% !important;
    max-height: var(--wmp-mobile-ad-max-h, none);
    height: auto !important;
  }

  .wmp-posts-grid,
  .autonexis-post-grid,
  .wmp-content-area,
  .autonexis-page-layout {
    gap: var(--wmp-mobile-card-gap, 16px) !important;
  }

  .wmp-post-card,
  .autonexis-grid-card,
  .wmp-main-content,
  .wmp-sidebar,
  .wmp-content-area,
  .autonexis-page-layout,
  .autonexis-page-main {
    width: 100%;
    max-width: 100%;
  }

  .wmp-card-body,
  .wmp-card-content,
  .autonexis-grid-card .wmp-card-body,
  .autonexis-page-main,
  .autonexis-article-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .autonexis-category-header {
    margin: 24px 0;
    padding: 24px 16px;
  }

  .autonexis-category-title {
    font-size: 28px;
  }

  .td-container,
  .td-pb-row,
  .td-pb-span8,
  .td-pb-span4,
  .td-main-content,
  .td-main-sidebar {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .wmp-card-body,
  .wmp-card-content,
  .autonexis-grid-card .wmp-card-body,
  .autonexis-page-main,
  .autonexis-article-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .autonexis-mobile-slot-text {
    font-size: 12px;
  }

  .wmp-search-dropdown {
    width: calc(100vw - (var(--wmp-mobile-container-pad, 12px) * 2));
    max-width: calc(100vw - (var(--wmp-mobile-container-pad, 12px) * 2));
  }
}


/* === Autonexis device manager refinements === */

.wmp-header-brand .wmp-logo-area,
.wmp-header-brand .wmp-header-ad-zone,
.wmp-top-banner-zone .autonexis-ad-wrap,
.wmp-footer-ad-row .autonexis-ad-wrap,
.wmp-sidebar .autonexis-ad-wrap {
  min-width: 0;
}

/* ── Brand wrapper visibility: hide entire strip when nothing renders on that device ──
   PHP sets autonexis-desktop-brand-hidden / autonexis-mobile-brand-hidden on the wrapper.
   These rules actually enforce the hide so the padded grey strip never shows empty.     */

/* Desktop: hide brand wrapper when nothing is shown there (e.g. logo_in_nav + no ad) */
.autonexis-desktop-brand-hidden {
  display: none;
}
/* If mobile DOES need it, bring it back on small screens even though desktop hides it */
@media (max-width: 768px) {
  .autonexis-desktop-brand-hidden.autonexis-mobile-brand-visible {
    display: block !important;
  }
}

/* Mobile: hide brand wrapper when nothing is shown on phones */
@media (max-width: 768px) {
  .autonexis-mobile-brand-hidden {
    display: none !important;
  }
  /* If desktop DOES need it, keep it visible on desktop even though mobile hides it —
     handled automatically because the mobile rule only fires at ≤768px */
}

/* ── Empty ad-zone guard: prevent the ad wrapper from adding height when empty ── */
.wmp-header-ad-zone:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Also collapse brand inner gap when only one child is visible */
.wmp-brand-inner:only-child,
.wmp-brand-inner > :only-child {
  flex: 1 1 100%;
}

.wmp-main-nav.autonexis-brand-layout-logo-in-nav .wmp-nav-center-slot .autonexis-mobile-slot-logo,
.wmp-main-nav.autonexis-brand-layout-logo-in-nav .wmp-nav-center-slot .autonexis-mobile-slot-code,
.wmp-main-nav.autonexis-brand-layout-logo-in-nav .wmp-nav-center-slot .autonexis-mobile-slot-text {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-beside-ad .wmp-logo-heading,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-beside-ad .wmp-logo-link,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-beside-ad .autonexis-header-logo {
    max-width: 100%;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-beside-ad .wmp-header-ad-zone .autonexis-device-ad-mobile,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-beside-ad .wmp-header-ad-zone .autonexis-ad-wrap {
    width: 100%;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad {
    padding-bottom: 0;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-brand-inner {
    gap: 4px;
    min-height: 0;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad  .wmp-header-ad-zone {
    width: 100%;
    display: block;
    text-align: center;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-device-ad,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-ad-wrap {
    margin-top: 0;
    margin-bottom: 0;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav .wmp-logo-area,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-logo-area {
    display: none !important;
  }

  .wmp-main-nav.autonexis-mobile-brand-layout-logo-in-nav .wmp-nav-center-slot,
  .wmp-main-nav.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-nav-center-slot {
    display: flex !important;
  }

  .wmp-main-nav .wmp-nav-center-slot.is-empty {
    min-height: 1px;
  }

  .autonexis-mobile-slot-header-ad iframe,
  .autonexis-mobile-slot-header-ad img,
  .autonexis-mobile-slot-header-ad ins {
    max-width: 100% !important;
    height: auto !important;
  }

  .wmp-sidebar,
  .wmp-content-area,
  .wmp-main-content,
  .autonexis-page-layout,
  .autonexis-page-main,
  .td-post-content,
  .entry-content,
  .wmp-post-card {
    overflow-wrap: anywhere;
  }
}


/* === Autonexis stability fixes === */
.wmp-footer-widget-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.wmp-footer-widget-row .widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}
.wmp-footer-widget-row .widget a {
  color: inherit;
}
.wmp-footer-widget-row .wmp-footer-heading,
.wmp-footer-widget-row .widget-title,
.wmp-footer-widget-row h2,
.wmp-footer-widget-row h3,
.wmp-footer-widget-row h4 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .wmp-footer-widget-row {
    grid-template-columns: 1fr;
  }
  .autonexis-category-content > .wmp-main-content,
  .autonexis-category-content > .wmp-sidebar {
    min-width: 0;
  }
}


@media (max-width: 768px) {
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-device-ad,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-ad-wrap {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 0 !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-ad-wrap > a,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-ad-wrap > a > img,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-in-nav-keep-ad .wmp-header-ad-zone .autonexis-ad-wrap > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}


/* === In-feed listing ad blocks === */
.autonexis-infeed-ad-card {
  grid-column: 1 / -1;
  width: 100%;
}

.autonexis-infeed-ad-card,
.autonexis-infeed-ad-row {
  margin: 8px 0 20px;
}

.autonexis-infeed-ad-card .autonexis-ad-wrap,
.autonexis-infeed-ad-row .autonexis-ad-wrap {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.autonexis-infeed-ad-row {
  clear: both;
  width: 100%;
}

@media (max-width: 768px) {
  .autonexis-infeed-ad-card,
  .autonexis-infeed-ad-row {
    margin: 4px 0 16px;
  }
}


/* === v13 mobile header simplification === */
@media (max-width: 768px) {
  .wmp-header-brand.autonexis-mobile-brand-layout-ad-only .wmp-logo-area {
    display: none !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-logo-only .wmp-header-ad-zone {
    display: none !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-only .wmp-brand-inner,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-only .wmp-brand-inner {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-only .wmp-header-ad-zone,
  .wmp-header-brand.autonexis-mobile-brand-layout-ad-only .wmp-header-ad-zone .autonexis-device-ad-mobile,
  .wmp-header-brand.autonexis-mobile-brand-layout-ad-only .wmp-header-ad-zone .autonexis-ad-wrap,
  .wmp-header-brand.autonexis-mobile-brand-layout-logo-only .wmp-logo-area {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-brand-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-header-ad-zone {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
    min-width: 0 !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-logo-area {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 30% !important;
    min-width: 0 !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-logo-heading,
  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-logo-link,
  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .autonexis-header-logo {
    width: 100%;
    max-width: 100% !important;
  }

  .wmp-header-brand.autonexis-mobile-brand-layout-ad-logo-row .wmp-tagline {
    display: none !important;
  }

  .autonexis-mobile-slot-header-ad,
  .autonexis-mobile-slot-header-ad .autonexis-device-ad-mobile,
  .autonexis-mobile-slot-header-ad .autonexis-ad-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}

/* =======================================================================
   VISUAL EDITOR — Block Layout Modifiers (Newspaper-style)
   Applied via data-ave-layout attribute set by the Visual Editor JS.
   Each modifier changes the grid columns of .wmp-posts-grid inside the block.
   ======================================================================= */

/* 1-column list */
[data-ave-layout="grid-1col"] .wmp-posts-grid,
.ave-layout-grid-1col .wmp-posts-grid {
  grid-template-columns: 1fr !important;
}
[data-ave-layout="grid-1col"] .wmp-post-card,
.ave-layout-grid-1col .wmp-post-card {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
}
[data-ave-layout="grid-1col"] .wmp-card-image,
.ave-layout-grid-1col .wmp-card-image {
  flex: 0 0 140px !important;
  width: 140px !important;
  min-height: 100px !important;
}
[data-ave-layout="grid-1col"] .wmp-card-image img,
.ave-layout-grid-1col .wmp-card-image img {
  height: 100% !important;
  object-fit: cover !important;
}
[data-ave-layout="grid-1col"] .wmp-card-body,
.ave-layout-grid-1col .wmp-card-body {
  flex: 1 !important;
  min-width: 0 !important;
}

/* 2-column grid */
[data-ave-layout="grid-2col"] .wmp-posts-grid,
.ave-layout-grid-2col .wmp-posts-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* 3-column grid (default, no override needed but explicit for clarity) */
[data-ave-layout="grid-3col"] .wmp-posts-grid,
.ave-layout-grid-3col .wmp-posts-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* 4-column grid */
[data-ave-layout="grid-4col"] .wmp-posts-grid,
.ave-layout-grid-4col .wmp-posts-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Big feature + 2 small aside */
[data-ave-layout="big-plus-2"] .wmp-posts-grid,
.ave-layout-big-plus-2 .wmp-posts-grid {
  grid-template-columns: 2fr 1fr !important;
  grid-template-rows: auto auto !important;
}
[data-ave-layout="big-plus-2"] .wmp-post-card:first-child,
.ave-layout-big-plus-2 .wmp-post-card:first-child {
  grid-row: span 2 !important;
}

/* Big feature + list of small */
[data-ave-layout="big-plus-list"] .wmp-posts-grid,
.ave-layout-big-plus-list .wmp-posts-grid {
  grid-template-columns: 3fr 2fr !important;
}
[data-ave-layout="big-plus-list"] .wmp-post-card:first-child,
.ave-layout-big-plus-list .wmp-post-card:first-child {
  grid-row: span 3 !important;
}
[data-ave-layout="big-plus-list"] .wmp-post-card:not(:first-child),
.ave-layout-big-plus-list .wmp-post-card:not(:first-child) {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
}
[data-ave-layout="big-plus-list"] .wmp-post-card:not(:first-child) .wmp-card-image,
.ave-layout-big-plus-list .wmp-post-card:not(:first-child) .wmp-card-image {
  flex: 0 0 90px !important;
  width: 90px !important;
}
[data-ave-layout="big-plus-list"] .wmp-post-card:not(:first-child) .wmp-card-image img,
.ave-layout-big-plus-list .wmp-post-card:not(:first-child) .wmp-card-image img {
  height: 70px !important;
  object-fit: cover !important;
}
[data-ave-layout="big-plus-list"] .wmp-post-card:not(:first-child) .wmp-card-excerpt,
.ave-layout-big-plus-list .wmp-post-card:not(:first-child) .wmp-card-excerpt {
  display: none !important;
}

/* Magazine-5: 1 big left + 4 small right 2x2 */
[data-ave-layout="magazine-5"] .wmp-posts-grid,
.ave-layout-magazine-5 .wmp-posts-grid {
  grid-template-columns: 3fr 2fr !important;
  grid-template-rows: auto auto !important;
}
[data-ave-layout="magazine-5"] .wmp-post-card:first-child,
.ave-layout-magazine-5 .wmp-post-card:first-child {
  grid-row: span 2 !important;
}
[data-ave-layout="magazine-5"] .wmp-posts-grid > .wmp-post-card:not(:first-child),
.ave-layout-magazine-5 .wmp-posts-grid > .wmp-post-card:not(:first-child) {
  /* stack into right 2-col sub-grid via parent's 2nd column */
}

/* Masonry-style (CSS-only fallback: alternating sizes) */
[data-ave-layout="masonry"] .wmp-posts-grid,
.ave-layout-masonry .wmp-posts-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
[data-ave-layout="masonry"] .wmp-post-card:nth-child(3n+1),
.ave-layout-masonry .wmp-post-card:nth-child(3n+1) {
  grid-column: span 2 !important;
}

/* Responsive: collapse to 1 col on mobile regardless of chosen layout */
@media (max-width: 768px) {
  [data-ave-layout] .wmp-posts-grid,
  [class*="ave-layout-"] .wmp-posts-grid {
    grid-template-columns: 1fr !important;
  }
  [data-ave-layout] .wmp-post-card:first-child,
  [class*="ave-layout-"] .wmp-post-card:first-child {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
  }
  [data-ave-layout] .wmp-post-card,
  [class*="ave-layout-"] .wmp-post-card {
    grid-column: span 1 !important;
  }
}

/* =======================================================================
   VISUAL EDITOR — Card Dimension Controls
   Applied as inline CSS variables on the article element.
   ======================================================================= */
.wmp-post-card[style*="--ave-card-min-h"] {
  min-height: var(--ave-card-min-h, auto) !important;
}
.wmp-post-card[style*="--ave-card-w"] {
  width: var(--ave-card-w, auto) !important;
  max-width: var(--ave-card-w, 100%) !important;
}
.wmp-post-card[style*="--ave-img-h"] .wmp-card-image {
  height: var(--ave-img-h, auto) !important;
  overflow: hidden !important;
}
.wmp-post-card[style*="--ave-img-h"] .wmp-card-image img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* =======================================================================
   MOBILE BURGER MENU — content-driven drawer, tight premium layout
   Only affects the mobile slide-out menu.
   ======================================================================= */
@media (max-width: 768px) {
  .wmp-nav-menu {
    width: fit-content !important;   /* STEP 2: adapts to content */
    min-width: 200px !important;     /* STEP 2: floor */
    max-width: 85vw !important;      /* STEP 2: ceiling */
    padding-top: 52px !important;
    box-sizing: border-box;
  }

  .wmp-nav-menu .wmp-menu {
    width: auto;                     /* STEP 6: no forced 100% stretch */
    align-items: flex-start;         /* STEP 4: left-align items */
  }

  .wmp-nav-menu .wmp-menu > li {
    width: auto;                     /* STEP 5: content-driven item width */
  }

  .wmp-menu > li > a {
    width: auto;                     /* STEP 5 */
    padding: 12px 16px !important;   /* STEP 5: tight premium padding */
    white-space: nowrap;             /* STEP 6: prevent wrap causing width bloat */
  }

  .wmp-menu li .sub-menu a {
    padding: 10px 16px 10px 28px !important;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .wmp-nav-menu {
    width: fit-content !important;
    min-width: 180px !important;
    max-width: 85vw !important;
  }

  .wmp-menu > li > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .wmp-menu li .sub-menu a {
    padding-left: 24px !important;
    padding-right: 14px !important;
  }
}


/* =============================================
   CLICKABLE POST CARDS
   ============================================= */
.autonexis-clickable-card {
  cursor: pointer;
}

.autonexis-clickable-card:focus-visible {
  outline: 2px solid var(--wmp-primary);
  outline-offset: 3px;
}


/* =======================================================================
   VISUAL EDITOR — Section Taglines / Labels
   ======================================================================= */
.wmp-main-content[data-ave-tagline],
.wmp-section-content[data-ave-tagline],
.wmp-footer[data-ave-tagline],
.wmp-footer-bottom[data-ave-tagline] {
  position: relative;
}
.wmp-main-content[data-ave-tagline]::before,
.wmp-section-content[data-ave-tagline]::before,
.wmp-footer[data-ave-tagline]::before,
.wmp-footer-bottom[data-ave-tagline]::before {
  content: attr(data-ave-tagline);
  display: block;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--wmp-text-muted);
  margin: 0 0 12px;
}
[data-ave-tagline-align="center"]::before { text-align: center; }
[data-ave-tagline-align="right"]::before { text-align: right; }
[data-ave-tagline-align="left"]::before { text-align: left; }

/* =======================================================================
   VISUAL EDITOR — Post Card Style Presets
   Can be applied on a section wrapper OR directly on a single card.
   ======================================================================= */
[data-ave-card-style="classic"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="classic"] {
  border: 1px solid var(--wmp-border-light) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden !important;
}
[data-ave-card-style="compact"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="compact"] {
  display: grid !important;
  grid-template-columns: 140px minmax(0,1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}
[data-ave-card-style="compact"] .wmp-post-card .wmp-card-image,
.wmp-post-card[data-ave-card-style="compact"] .wmp-card-image {
  height: 100% !important;
  min-height: 130px !important;
}
[data-ave-card-style="compact"] .wmp-post-card .wmp-card-body,
.wmp-post-card[data-ave-card-style="compact"] .wmp-card-body {
  padding: 16px 18px !important;
}
[data-ave-card-style="compact"] .wmp-post-card .wmp-card-excerpt,
.wmp-post-card[data-ave-card-style="compact"] .wmp-card-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
[data-ave-card-style="overlay"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="overlay"],
[data-ave-card-style="cover-grid"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="cover-grid"] {
  position: relative !important;
  overflow: hidden !important;
  min-height: 360px !important;
  border-radius: 20px !important;
}
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-image,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-image,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-image,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-image {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
}
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-image::after,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-image::after,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-image::after,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.08) 0%, rgba(2,6,23,0.75) 100%);
}
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-body,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-body,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-body,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-body {
  position: relative !important;
  z-index: 2 !important;
  min-height: 360px !important;
  justify-content: flex-end !important;
  padding: 22px !important;
  background: transparent !important;
}
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-title,
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-title a,
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-meta,
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-meta span,
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-author a,
[data-ave-card-style="overlay"] .wmp-post-card .wmp-read-more,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-title,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-title a,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-meta,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-meta span,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-author a,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-read-more,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-title,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-title a,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-meta,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-meta span,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-author a,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-read-more,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-title,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-title a,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-meta,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-meta span,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-author a,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-read-more {
  color: #fff !important;
}
[data-ave-card-style="overlay"] .wmp-post-card .wmp-card-excerpt,
.wmp-post-card[data-ave-card-style="overlay"] .wmp-card-excerpt,
[data-ave-card-style="cover-grid"] .wmp-post-card .wmp-card-excerpt,
.wmp-post-card[data-ave-card-style="cover-grid"] .wmp-card-excerpt {
  display: none !important;
}
[data-ave-card-style="minimal"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="minimal"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
[data-ave-card-style="minimal"] .wmp-post-card .wmp-card-body,
.wmp-post-card[data-ave-card-style="minimal"] .wmp-card-body {
  padding: 14px 0 0 !important;
}
[data-ave-card-style="minimal"] .wmp-post-card .wmp-card-footer,
.wmp-post-card[data-ave-card-style="minimal"] .wmp-card-footer {
  border-top: 0 !important;
  padding-top: 6px !important;
}
[data-ave-card-style="cover-grid"] .wmp-posts-grid,
.ave-card-style-cover-grid .wmp-posts-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
[data-ave-card-style="cover-grid"] .wmp-post-card,
.wmp-post-card[data-ave-card-style="cover-grid"] {
  min-height: 430px !important;
}

/* =======================================================================
   VISUAL EDITOR — Footer Style Presets
   ======================================================================= */
[data-ave-footer-style="centered"] .wmp-footer-top,
.wmp-footer[data-ave-footer-style="centered"] .wmp-footer-top {
  text-align: center !important;
}
[data-ave-footer-style="centered"] .wmp-footer-grid,
.wmp-footer[data-ave-footer-style="centered"] .wmp-footer-grid {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
[data-ave-footer-style="centered"] .wmp-footer-brand,
[data-ave-footer-style="centered"] .wmp-footer-social,
.wmp-footer[data-ave-footer-style="centered"] .wmp-footer-brand,
.wmp-footer[data-ave-footer-style="centered"] .wmp-footer-social {
  justify-content: center !important;
}
[data-ave-footer-style="compact"] .wmp-footer-top,
.wmp-footer[data-ave-footer-style="compact"] .wmp-footer-top {
  padding: 28px 0 22px !important;
}
[data-ave-footer-style="compact"] .wmp-footer-grid,
.wmp-footer[data-ave-footer-style="compact"] .wmp-footer-grid {
  gap: 22px !important;
}
[data-ave-footer-style="compact"] .wmp-footer-about,
[data-ave-footer-style="compact"] .wmp-footer-newsletter-text,
.wmp-footer[data-ave-footer-style="compact"] .wmp-footer-about,
.wmp-footer[data-ave-footer-style="compact"] .wmp-footer-newsletter-text {
  margin-bottom: 10px !important;
}
[data-ave-footer-style="split"] .wmp-footer-grid,
.wmp-footer[data-ave-footer-style="split"] .wmp-footer-grid {
  grid-template-columns: 1.8fr 1fr 1fr !important;
}
[data-ave-footer-style="split"] .wmp-footer-col:last-child,
.wmp-footer[data-ave-footer-style="split"] .wmp-footer-col:last-child {
  grid-column: span 3 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,0.14) !important;
}

@media (max-width: 768px) {
  [data-ave-card-style="compact"] .wmp-post-card,
  .wmp-post-card[data-ave-card-style="compact"] {
    grid-template-columns: 1fr !important;
  }
  [data-ave-card-style="cover-grid"] .wmp-posts-grid,
  .ave-card-style-cover-grid .wmp-posts-grid,
  [data-ave-footer-style] .wmp-footer-grid {
    grid-template-columns: 1fr !important;
  }
}
