/*
 Theme Name:   Neve Child - Beyond Volatility
 Author:       Jules for Beyond Volatility
 Template:     neve
 Version:      1.0.0
 Text Domain:  neve-child-bv
*/

/*
 * Universal Box-Sizing and Overflow Fix
 * Add this to the TOP of your Additional CSS
 */
html, body {
  overflow-x: hidden; /* Prevent horizontal scroll on the entire page */
}

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


/* General Responsive Images and Figures */
img,
figure {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Navigation Dropdowns - Neve Compatible */
.header-menu-sidebar .nav-ul .sub-menu,
.primary-menu-ul .sub-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin-top: 8px;
}

/* Parent menu items - Bold */
.header-menu-sidebar .nav-ul > li > a,
.primary-menu-ul > li > a {
  font-weight: 600;
}

/* Submenu items styling */
.header-menu-sidebar .nav-ul .sub-menu a,
.primary-menu-ul .sub-menu a {
  padding: 12px 20px;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  margin: 2px 8px;
  transition: all 0.2s ease;
}

.header-menu-sidebar .nav-ul .sub-menu a:hover,
.primary-menu-ul .sub-menu a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transform: translateX(4px);
}

/* Enhanced Post Content - Mobile First */
.single-post-container .nv-content-wrap,
.nv-single-post-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* Beautiful Headers with Colors */
.single-post-container h1,
.entry-content h1 {
  color: #1e40af;
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  line-height: 1.2;
  border-bottom: 3px solid #e0f2fe;
  padding-bottom: 0.5rem;
}

.single-post-container h2,
.entry-content h2 {
  color: #3b82f6;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

.single-post-container h3,
.entry-content h3 {
  color: #1d4ed8;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem 0;
}

.single-post-container h4,
.entry-content h4 {
  color: #2563eb;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

/* Beautiful Links */
.entry-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.entry-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  background: rgba(59, 130, 246, 0.05);
  padding: 2px 4px;
  border-radius: 4px;
  margin: -2px -4px;
}

/* Enhanced Lists - REVISED for default bullets for UL, custom numbers for OL */
.entry-content ul {
  margin: 1.5rem 0;
  padding-left: 0; /* Set to 0 because individual li will handle padding for bullet */
  list-style: none; /* Hide default bullets so we can use ::before */
  /* Remove any 'color' property from here if it exists */
}

.entry-content ul li {
  position: relative; /* Needed for positioning the ::before bullet */
  padding-left: 1.5rem; /* Creates space for the custom bullet */
  margin: 0.75rem 0;
  line-height: 1.6;
  list-style: none; /* Ensure no default bullet shows on the li */
  color: #374151; /* Explicitly set the text color to your desired dark gray */
}

.entry-content ul li::before {
  content: '•'; /* This is a standard Unicode bullet character */
  position: absolute;
  left: 0; /* Position at the start of the padding-left of the li */
  top: 0; /* Adjust vertical alignment if needed, e.g., 0.1em */
  color: #3b82f6; /* This is your theme blue color for the bullet */
  font-size: 1rem; /* Adjust size of the bullet if necessary */
  line-height: inherit; /* Helps with vertical alignment */
}

.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem; /* Ensure enough space for the custom numbers */
  counter-reset: custom-counter;
  list-style: none; /* Keep this to prevent default numbering alongside custom */
}

.entry-content ol li {
  margin: 0.75rem 0;
  line-height: 1.6;
  position: relative;
  list-style: none; /* Important to keep this to use the custom counter */
  counter-increment: custom-counter;
  padding-left: 0; /* Text starts right after the absolute positioned number */
}

.entry-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: -2rem; /* Position the number outside the li, but within the ol's padding */
  top: 0;
  background: #3b82f6;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Beautiful Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.entry-content table th {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

.entry-content table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.entry-content table tr:hover {
  background: #f8fafc;
}


/* Responsive Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.entry-content .table-container table {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Enhanced Paragraphs */
.entry-content p {
  margin: 1.25rem 0;
  line-height: 1.7;
  color: #374151;
}

/* Bold text styling */
.entry-content strong,
.entry-content b {
  color: #1f2937;
  font-weight: 600;
}

/* Quote styling */
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid #3b82f6;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1e40af;
  position: relative;
}

.entry-content blockquote::before {
  /* SYNTAX FIX: Corrected from """ to "“" for valid CSS */
  content: "“";
  font-size: 3rem;
  color: #3b82f6;
  position: absolute;
  top: 0;
  left: 1rem;
  line-height: 1;
  opacity: 0.3;
}

/*
 * Responsive fix for WordPress block content
 */

/* Target the container of the blocks to prevent overflow */
.entry-content,
.post-content,
.page-content {
  overflow-x: hidden;
}

/* More specific rule for all images within the content area */
.entry-content img,
.post-content img,
.page-content img {

  max-width: 100% !important; /* Using !important as a stronger measure */
  height: auto !important;

  box-sizing: border-box;
}

/* Target the figure element used by WordPress for images */
.entry-content .wp-block-image,
.post-content .wp-block-image,
.page-content .wp-block-image {
  max-width: 100%;
}

/* Target blockquotes specifically */
.entry-content .wp-block-quote,
.post-content .wp-block-quote,
.page-content .wp-block-quote {
  max-width: 100%;
  box-sizing: border-box;
}

/* Enhanced Featured Post Grid with Hero Layout */
.bv-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Base post card styling */
.bv-featured-post {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.bv-featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #3b82f6;
  text-decoration: none;
}

/* Hero post (first post) styling */
.bv-featured-post--hero {
  grid-column: 1 / -1;
}

.bv-featured-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.bv-featured-post--hero .bv-featured-image {
  height: 250px;
}

/* Category badges */
.bv-featured-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.category-badge--travel {
  background: rgba(59, 130, 246, 0.9);
}

.category-badge--finance {
  background: rgba(16, 185, 129, 0.9);
}

.category-badge--wellness {
  background: rgba(245, 158, 11, 0.9);
}

.category-badge--tech {
  background: rgba(139, 92, 246, 0.9);
}

.category-badge--default {
  background: rgba(107, 114, 128, 0.9);
}

/* Content area */
.bv-featured-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bv-featured-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  color: #1f2937;
  transition: color 0.3s ease;
}

.bv-featured-post--hero .bv-featured-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.bv-featured-post:hover .bv-featured-title {
  color: #3b82f6;
}

.bv-featured-excerpt {
  color: #4b5563; /* Improved contrast ratio */
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex-grow: 1;
  font-size: 0.9rem;
}

.bv-featured-post--hero .bv-featured-excerpt {
  font-size: 1rem;
}

.bv-featured-meta {
  color: #6b7280; /* Improved contrast ratio */
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: auto;
}

/* Responsive grid layouts */
@media (min-width: 640px) {
  .bv-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .bv-featured-post--hero {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    min-height: 280px;
  }

  .bv-featured-post--hero .bv-featured-image {
    height: auto;
    min-height: 280px;
    flex: 1.2;
  }

  .bv-featured-post--hero .bv-featured-content {
    flex: 1;
    padding: 2rem;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .bv-featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .bv-featured-post--hero {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .bv-featured-post--hero .bv-featured-image {
    min-height: 300px;
  }

  .bv-featured-post--hero .bv-featured-content {
    padding: 2.5rem;
  }

  .bv-featured-post--hero .bv-featured-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .bv-featured-post--hero .bv-featured-excerpt {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bv-featured-post--hero .bv-featured-title {
    font-size: 2rem;
  }

  .bv-featured-post--hero .bv-featured-excerpt {
    font-size: 1.1rem;
  }
}

/* Referral Links Container */
.bv-referral-container {
  font-family: 'Inter', sans-serif;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  line-height: 1.6;
  color: #374151;
}

.bv-referral-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed #e5e7eb;
}

.bv-referral-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.bv-referral-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
}

/* Category Section */
.bv-referral-category {
  margin-bottom: 3rem;
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.bv-referral-category-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid;
}

/* Referral Grid */
.bv-referral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Referral Card */
.bv-referral-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

.bv-referral-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #a7d0ff;
}

.bv-referral-card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.bv-referral-card-description {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* REVISED .bv-referral-card-button for fun outline style */
.bv-referral-card-button {
  display: inline-block;
  background-color: transparent; /* Makes the inside clear */
  color: #3b82f6; /* Text color that pops */
  border: 3px solid #3b82f6; /* A slightly thicker, noticeable border all around */
  padding: 1rem 1.75rem; /* A little more horizontal padding for a relaxed feel */
  border-radius: 9999px; /* Makes it super rounded, like a pill! */
  text-decoration: none;
  font-size: 1rem; /* Slightly larger text for impact */
  font-weight: 700; /* Bolder text! */
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* A more playful bounce in transition */
  margin: 0.75rem 0; /* A bit more breathing room */
  cursor: pointer;
  min-height: 52px; /* A touch taller */
  line-height: 1.2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.bv-referral-card-button:hover {
  background-color: #3b82f6; /* Fills with that vibrant blue on hover */
  color: #ffffff; /* Text turns crisp white */
  transform: translateY(-3px) scale(1.02); /* A more pronounced "lift" and slight growth */
  text-decoration: none;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Deeper shadow for a playful pop */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bv-referral-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .bv-referral-header h2 {
    font-size: 1.75rem;
  }

  .bv-referral-header p {
    font-size: 1rem;
  }

  .bv-referral-category-title {
    font-size: 1.5rem;
  }

  .bv-referral-grid {
    grid-template-columns: 1fr;
  }

  .bv-referral-category {
    padding: 1.5rem;
  }
}

/* Fix for small screens */
@media (max-width: 480px) {
  .bv-referral-container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .bv-referral-card {
    padding: 1.5rem;
  }

  .bv-referral-card-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ===================================================================
BEYOND VOLATILITY - NEVE THEME OPTIMIZED HOMEPAGE
Mobile-First, Instagram-Ready Design
=================================================================== */

:root {
    /* Neve-compatible color system */
    --bv-primary: #0073aa;
    --bv-primary-hover: #005a87;
    --bv-accent: #00a4d6;
    --bv-success: #10b981;
    --bv-warning: #f59e0b;
    --bv-error: #ef4444;

    /* Light theme optimized */
    --bv-white: #ffffff;
    --bv-gray-50: #f9fafb;
    --bv-gray-100: #f3f4f6;
    --bv-gray-200: #e5e7eb;
    --bv-gray-300: #d1d5db;
    --bv-gray-400: #9ca3af;
    --bv-gray-500: #6b7280;
    --bv-gray-600: #4b5563;
    --bv-gray-700: #374151;
    --bv-gray-800: #1f2937;
    --bv-gray-900: #111827;

    /* Effects */
    --bv-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --bv-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --bv-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --bv-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --bv-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

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

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--bv-gray-800);
    background-color: var(--bv-white);
}

/* ===================================================================
CONTAINER SYSTEM
=================================================================== */
.bv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .bv-container {
        padding: 0 24px;
    }
}

/* ===================================================================
HERO SECTION - WITH BACKGROUND IMAGE
=================================================================== */
.bv-hero {
background: linear-gradient(135deg, rgba(0, 115, 170, 0.25), rgba(0, 164, 214, 0.15)),
            url('https://beyondvolatility.com/wp-content/uploads/2025/06/Gemini_Generated_Image_261n3d261n3d261n.png');
background-size: 110% auto;
background-position: center;
background-repeat: no-repeat;
background-attachment: scroll;
padding: 80px 0 60px;
position: relative;
overflow: hidden;
color: white;
will-change: transform;
}

.bv-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(0, 115, 170, 0.15), rgba(0, 164, 214, 0.05));
pointer-events: none;
}

.bv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bv-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.bv-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .bv-hero {
        padding: 120px 0 80px;
        background-attachment: fixed;
    }
    .bv-hero-title {
        font-size: 3.5rem;
    }
    .bv-hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ===================================================================
CATEGORY PILLS - ENHANCED FOR OVERLAY
=================================================================== */
.bv-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 48px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.bv-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: var(--bv-gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--bv-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.bv-category-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bv-primary), var(--bv-accent));
    opacity: 0;
    transition: var(--bv-transition);
}

.bv-category-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 1);
}

.bv-category-pill:hover::before {
    opacity: 0.05;
}

.bv-category-pill svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: var(--bv-transition);
}

.bv-category-pill span {
    position: relative;
    z-index: 1;
}

.bv-category-pill:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ===================================================================
WORDPRESS DYNAMIC POSTS STYLING
=================================================================== */
.bv-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .bv-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .bv-featured-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.bv-featured-post {
    background: var(--bv-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--bv-shadow);
    transition: var(--bv-transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bv-gray-200);
    display: flex;
    flex-direction: column;
}

.bv-featured-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--bv-shadow-xl);
    border-color: var(--bv-primary);
}

.bv-featured-post--hero {
    grid-row: span 2;
}

.bv-featured-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bv-gray-100), var(--bv-gray-200));
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.bv-featured-post--hero .bv-featured-image {
    height: 280px;
}

@media (min-width: 768px) {
    .bv-featured-post--hero {
        grid-column: 1 / 3;
        display: flex;
        flex-direction: row;
        min-height: 280px;
    }
    .bv-featured-post--hero .bv-featured-image {
        height: auto;
        min-height: 280px;
        flex: 1.2;
    }
    .bv-featured-post--hero .bv-featured-content {
        flex: 1;
        padding: 2rem;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .bv-featured-post--hero {
        grid-column: 1 / -1;
        min-height: 300px;
    }
    .bv-featured-post--hero .bv-featured-image {
        min-height: 300px;
    }
    .bv-featured-post--hero .bv-featured-content {
        padding: 2.5rem;
    }
    .bv-featured-post--hero .bv-featured-title {
        font-size: 2rem;
    }
    .bv-featured-post--hero .bv-featured-excerpt {
        font-size: 1.2rem;
    }
}

.bv-featured-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.category-badge--travel { background: linear-gradient(135deg, #3b82f6, #1e40af) !important; }
.category-badge--finance { background: linear-gradient(135deg, #10b981, #047857) !important; }
.category-badge--wellness { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.category-badge--tech { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; }

.bv-featured-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bv-featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--bv-gray-900);
    transition: var(--bv-transition);
}

.bv-featured-post--hero .bv-featured-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.bv-featured-post:hover .bv-featured-title {
    color: var(--bv-primary);
}

.bv-featured-excerpt {
    color: var(--bv-gray-600);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.bv-featured-post--hero .bv-featured-excerpt {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.bv-featured-meta {
    color: var(--bv-gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: auto;
}

/* ===================================================================
POSTS GRID - OPTIMIZED
=================================================================== */
.bv-posts-section {
    padding: 48px 0;
}

.bv-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px 0;
    color: var(--bv-gray-900);
}

.bv-section-subtitle {
    text-align: center;
    color: var(--bv-gray-600);
    margin: 0 0 48px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bv-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .bv-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .bv-posts-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.bv-post-card {
    background: var(--bv-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--bv-shadow);
    transition: var(--bv-transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bv-gray-200);
}

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

.bv-post-featured {
    grid-row: span 2;
}

.bv-post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bv-gray-100), var(--bv-gray-200));
    background-size: cover;
    background-position: center;
    position: relative;
}

.bv-post-featured .bv-post-image {
    height: 280px;
}

.bv-post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.bv-post-content {
    padding: 24px;
}

.bv-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--bv-gray-900);
}

.bv-post-featured .bv-post-title {
    font-size: 1.5rem;
}

.bv-post-excerpt {
    color: var(--bv-gray-600);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.bv-post-meta {
    color: var(--bv-gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================================================
TOOLS SHOWCASE
=================================================================== */
.bv-tools-section {
    background: var(--bv-gray-50);
    padding: 48px 0;
}

.bv-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .bv-tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.bv-tool-card {
    background: var(--bv-white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--bv-shadow-sm);
    transition: var(--bv-transition);
    border: 1px solid var(--bv-gray-200);
}

.bv-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bv-shadow-md);
    border-color: var(--bv-primary);
}

.bv-tool-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bv-primary), var(--bv-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--bv-transition);
}

.bv-tool-card:hover .bv-tool-icon {
    transform: scale(1.1);
}

.bv-tool-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.bv-tool-title {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--bv-gray-900);
}

.bv-tool-description {
    font-size: 0.875rem;
    color: var(--bv-gray-600);
    margin: 0;
}

/* ===================================================================
NEWSLETTER SECTION
=================================================================== */
.bv-newsletter {
    background: var(--bv-gray-900);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.bv-newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.bv-newsletter-subtitle {
    color: var(--bv-gray-300);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bv-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .bv-newsletter-form {
        flex-direction: row;
        gap: 12px;
    }
}

.bv-newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--bv-transition);
}

.bv-newsletter-input:focus {
    outline: none;
    border-color: var(--bv-accent);
    background: rgba(255, 255, 255, 0.15);
}

.bv-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.bv-newsletter-button {
    padding: 16px 32px;
    background: var(--bv-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bv-transition);
    white-space: nowrap;
}

.bv-newsletter-button:hover {
    background: var(--bv-primary);
    transform: translateY(-1px);
}

/* ===================================================================
BUTTONS & UTILITIES
=================================================================== */
.bv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bv-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--bv-transition);
    border: none;
    cursor: pointer;
}

.bv-btn:hover {
    background: var(--bv-primary-hover);
    transform: translateY(-1px);
}

.bv-btn-outline {
    background: transparent;
    color: var(--bv-primary);
    border: 2px solid var(--bv-primary);
}

.bv-btn-outline:hover {
    background: var(--bv-primary);
    color: white;
}

.bv-text-center {
    text-align: center;
}

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

.bv-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.bv-fade-in.bv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
RESPONSIVE DESIGN
=================================================================== */
@media (max-width: 767px) {
    .bv-hero {
        padding: 40px 0 32px;
    }

    .bv-hero-title {
        font-size: 2rem;
    }

    .bv-posts-section,
    .bv-tools-section {
        padding: 32px 0;
    }

    .bv-newsletter {
        padding: 32px 0;
    }
}

/* ===================================================================
DARK MODE FIXES FOR NEVE THEME - ENHANCED COMPATIBILITY
=================================================================== */

/* COMPREHENSIVE DARK MODE SELECTORS - Covers multiple dark mode plugins */

/* Primary dark mode selectors (WP Dark Mode plugin) */
html.wp-dark-mode-active .site-header,
html.wp-dark-mode-active header.site-header,
html.wp-dark-mode-active .header-wrapper,
html.wp-dark-mode-active .neve-main .site-header,
/* Alternative dark mode selectors (other plugins) */
html[data-theme="dark"] .site-header,
html.dark-mode .site-header,
body.dark-mode .site-header,
.dark-theme .site-header,
[data-dark-mode="true"] .site-header {
  background-color: #1c1c1e !important;
  background: #1c1c1e !important;
  border-bottom-color: #333 !important;
}

/* NAVIGATION LINKS - Multiple selector approaches */
html.wp-dark-mode-active .header-main a,
html.wp-dark-mode-active .header-main p,
html.wp-dark-mode-active .header-main .nav-menu a,
html.wp-dark-mode-active .neve-main .header-main a,
html.wp-dark-mode-active .site-header a,
html.wp-dark-mode-active .header-wrapper a,
html.wp-dark-mode-active .primary-menu-ul a,
html.wp-dark-mode-active .nav-ul a,
/* Alternative selectors */
html[data-theme="dark"] .header-main a,
html.dark-mode .header-main a,
body.dark-mode .header-main a,
.dark-theme .header-main a,
[data-dark-mode="true"] .header-main a {
  color: #ffffff !important;
}

/* SITE TITLE/LOGO */
html.wp-dark-mode-active .site-title a,
html.wp-dark-mode-active .brand a,
html.wp-dark-mode-active .navbar-brand a,
html[data-theme="dark"] .site-title a,
html.dark-mode .site-title a,
body.dark-mode .site-title a {
  color: #ffffff !important;
}

/* SEARCH ICON - Multiple approaches */
html.wp-dark-mode-active .nv-search-icon-component .nv-icon.nv-search svg path,
html.wp-dark-mode-active .header-search svg path,
html.wp-dark-mode-active .search-icon svg path,
html.wp-dark-mode-active .nv-icon svg path,
html[data-theme="dark"] .nv-search-icon-component svg path,
html.dark-mode .search-icon svg path,
body.dark-mode .search-icon svg path {
  fill: #ffffff !important;
}

/* SEARCH ICON (alternative approach using stroke) */
html.wp-dark-mode-active .nv-search-icon-component svg,
html.wp-dark-mode-active .header-search svg,
html.wp-dark-mode-active .search-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* HAMBURGER MENU ICON */
html.wp-dark-mode-active .navbar-toggle .icon-bar,
html.wp-dark-mode-active .menu-toggle .icon-bar,
html.wp-dark-mode-active .hamburger span,
html.wp-dark-mode-active .mobile-menu-toggle span,
html[data-theme="dark"] .navbar-toggle .icon-bar,
html.dark-mode .navbar-toggle .icon-bar,
body.dark-mode .navbar-toggle .icon-bar {
  background-color: #ffffff !important;
}

/* HAMBURGER MENU (SVG version) */
html.wp-dark-mode-active .navbar-toggle svg path,
html.wp-dark-mode-active .menu-toggle svg path,
html.wp-dark-mode-active .mobile-menu-toggle svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* DROPDOWN MENUS IN DARK MODE */
html.wp-dark-mode-active .sub-menu,
html.wp-dark-mode-active .dropdown-menu,
html[data-theme="dark"] .sub-menu,
html.dark-mode .sub-menu {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
}

html.wp-dark-mode-active .sub-menu a,
html.wp-dark-mode-active .dropdown-menu a,
html[data-theme="dark"] .sub-menu a,
html.dark-mode .sub-menu a {
  color: #ffffff !important;
}

/* ADDITIONAL NEVE-SPECIFIC ELEMENTS */
html.wp-dark-mode-active .header-top,
html.wp-dark-mode-active .header-bottom,
html.wp-dark-mode-active .neve-header {
  background-color: #1c1c1e !important;
}

/* BUTTON STYLES IN HEADER */
html.wp-dark-mode-active .header-main .button,
html.wp-dark-mode-active .header-main .btn,
html.wp-dark-mode-active .header-main .wp-block-button__link {
  color: #1c1c1e !important;
  background-color: #ffffff !important;
}

/* FALLBACK - Nuclear option for stubborn elements */
.wp-dark-mode-active .site-header * {
  color: #ffffff !important;
}

.wp-dark-mode-active .site-header {
  background: #1c1c1e !important;
}

/* ===================================================================
ACCESSIBILITY IMPROVEMENTS
=================================================================== */

/* Focus states for interactive elements */
.bv-category-pill:focus-visible,
.bv-tool-card:focus-visible,
.bv-featured-post:focus-visible,
.bv-referral-card-button:focus-visible {
  outline: 2px solid var(--bv-primary);
  outline-offset: 2px;
}

/* Enhanced focus for form elements */
.bv-newsletter-input:focus-visible,
.bv-newsletter-button:focus-visible {
  outline: 2px solid var(--bv-accent);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bv-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ===================================================================
REDUCED MOTION SUPPORT
=================================================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable animations for those who prefer reduced motion */
  .bv-fade-in,
  .bv-hero-title,
  .bv-hero-subtitle,
  .bv-categories {
    animation: none;
  }

  /* Reduce transitions for interactive elements */
  .bv-featured-post,
  .bv-category-pill,
  .bv-tool-card,
  .bv-referral-card,
  .bv-referral-card-button {
    transition: none;
  }

  /* Keep essential hover states but remove transform animations */
  .bv-featured-post:hover {
    transform: none;
    box-shadow: var(--bv-shadow-lg);
  }

  .bv-category-pill:hover {
    transform: none;
    background: rgba(255, 255, 255, 1);
  }

  .bv-tool-card:hover {
    transform: none;
    box-shadow: var(--bv-shadow-md);
  }
}
