/*
Theme Name: Salient Child
Theme URI: https://metabull.ai/
Description: Custom Child Theme for MetaBull.ai built on Salient Parent Theme - Instant Transparent Header on Load + Fixed Sticky Dark Slate Header on Scroll (.small-nav).
Author: MetaBull Engineering
Author URI: https://metabull.ai/
Template: salient
Version: 3.1.0
Text Domain: salient-child
*/

/* ==========================================================================
   MetaBull Design System Tokens & Global Styles
   ========================================================================== */

:root {
  --mb-slate-950: #020617;
  --mb-slate-900: #0f172a;
  --mb-slate-800: #1e293b;
  --mb-slate-700: #334155;
  --mb-slate-600: #475569;
  --mb-slate-500: #64748b;
  --mb-slate-400: #94a3b8;
  --mb-slate-200: #e2e8f0;
  --mb-bg-page: #f9f9f9;
  --mb-bg-labs: #f4f7f6;
  --mb-bg-grey-box: #eef1f5;
  --mb-cyan-400: #22d3ee;
  --mb-cyan-300: #67e8f9;
  --mb-blue-600: #2563eb;
  --mb-blue-700: #1d4ed8;
  --mb-blue-50: #eff6ff;
  --mb-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Body Styling */
body {
  background-color: var(--mb-bg-page) !important;
  color: var(--mb-slate-900) !important;
  font-family: var(--mb-font-family) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid responsive typography */
h1 {
  font-size: clamp(32px, 4.5vw, 60px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
}

h2 {
  font-size: clamp(26px, 3.5vw, 44px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
  font-weight: 800 !important;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   Header Mechanics: Transparent on Load + Fixed Sticky Dark Slate (#0f172a) on Scroll (.small-nav)
   ========================================================================== */

/* 1. Force Header to ALWAYS be fixed at the top of the viewport */
#header-outer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* 2. On Home Page Before Scroll -> 100% Transparent Header */
body.home #header-outer:not(.small-nav):not(.attached) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.home #header-outer:not(.small-nav):not(.attached) #header-bg,
body.home #header-outer:not(.small-nav):not(.attached) header#top {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.home #header-outer:not(.small-nav):not(.attached) header#top nav>ul>li>a,
body.home #header-outer:not(.small-nav):not(.attached) #logo {
  color: #ffffff !important;
}

/* 3. On Scroll Down (.small-nav / .attached) -> Fixed Solid Dark Slate (#0f172a) Sticky Header */
#header-outer.small-nav,
#header-outer.attached,
body.home #header-outer.small-nav,
body.home #header-outer.attached {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #0f172a !important;
  background-image: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid #1e293b !important;
}

#header-outer.small-nav #header-bg,
#header-outer.attached #header-bg {
  background-color: #0f172a !important;
}

#header-outer.small-nav header#top nav>ul>li>a,
#header-outer.attached header#top nav>ul>li>a {
  color: #ffffff !important;
}

/* 4. Remove Header Gap Above Hero Video & Custom News Templates */
body.home #ajax-content-wrap,
body.single #ajax-content-wrap,
body.single-post #ajax-content-wrap,
body.page-template-template-news-listing #ajax-content-wrap {
  padding-top: 0 !important;
}

body.home #header-space,
body.single #header-space,
body.single-post #header-space,
body.page-template-template-news-listing #header-space {
  display: none !important;
}

/* ==========================================================================
   Buttons (Cyan CTA & Blue Accent)
   ========================================================================== */

/* Primary Cyan CTA Button (.mb-btn-cyan & Salient nectar_btn override) */
.mb-btn-cyan,
.mb-btn-cyan a,
a.mb-btn-cyan,
button.mb-btn-cyan,
.nectar-button[data-color-override="#22D3EE"],
.nectar-button[data-color-override="#22d3ee"] {
  display: inline-block !important;
  background-color: #22d3ee !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 14px 32px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.3) !important;
}

.mb-btn-cyan:hover,
.mb-btn-cyan a:hover,
a.mb-btn-cyan:hover,
button.mb-btn-cyan:hover,
.nectar-button[data-color-override="#22D3EE"]:hover,
.nectar-button[data-color-override="#22d3ee"]:hover {
  background-color: #67e8f9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5) !important;
}

/* Blue Accent Button */
.mb-btn-blue,
.mb-btn-blue a,
a.mb-btn-blue,
button.mb-btn-blue {
  display: inline-block !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease-in-out !important;
}

.mb-btn-blue:hover,
.mb-btn-blue a:hover,
a.mb-btn-blue:hover,
button.mb-btn-blue:hover {
  background-color: #1d4ed8 !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   Card System & Background Section Overrides
   ========================================================================== */

/* Feature & Metric Card Styles */
.mb-card-shadow {
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.mb-card-shadow:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Soft Grey Container Card (Integrations Box #eef1f5) */
.mb-grey-card {
  background-color: #eef1f5 !important;
  border-radius: 20px !important;
  padding: 40px !important;
}

/* MetaBull Labs Section Background (#f4f7f6) */
.mb-labs-section {
  background-color: #f4f7f6 !important;
}

/* News Section Background (#f9f9f9) */
.mb-news-section {
  background-color: #f9f9f9 !important;
}

/* Circular Blue Metric Badges */
.mb-metric-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

/* 12 Hours Callout Pill */
.mb-callout-pill {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 12px;
  margin: 32px auto 0 auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Contact Section Radial Gradient & White Inputs */
.mb-contact-section {
  background: #0f172a !important;
  background: radial-gradient(circle at top right, #1e293b, #0f172a) !important;
  color: #ffffff !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  background-color: #ffffff !important;
  border: 2px solid transparent !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-size: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
  color: #94a3b8 !important;
}

.wpcf7 input[type="submit"] {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  width: 100% !important;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #1d4ed8 !important;
}

/* Mobile Responsive Breakpoints */
@media only screen and (max-width: 1024px) {
  .mb-hero-row {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
  }

  .mb-grey-card {
    padding: 30px !important;
    margin-top: 24px !important;
  }
}

@media only screen and (max-width: 768px) {
  .mb-hero-row {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }

  .mb-btn-cyan,
  .mb-btn-cyan a,
  a.mb-btn-cyan,
  button.mb-btn-cyan {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
  }

  .mb-callout-pill {
    flex-direction: column !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mb-grey-card {
    padding: 24px !important;
  }

  .mb-card-shadow {
    margin-bottom: 16px !important;
  }

  #labs div[style*="padding: 48px"] {
    padding: 24px !important;
  }

  #news div[style*="padding: 24px"] {
    padding: 16px !important;
  }
}

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  .mb-hero-row p {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   MetaBull News Listing & Single News Article Styles
   ========================================================================== */

/* News Hero Section */
.mb-news-hero {
  background: #0f172a !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  padding: 140px 0 60px 0 !important;
  color: #ffffff !important;
  text-align: center;
}

.mb-news-hero-title {
  color: #ffffff !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em !important;
}

.mb-news-hero-subtitle {
  color: #94a3b8 !important;
  font-size: clamp(16px, 2vw, 20px) !important;
  max-width: 720px;
  margin: 0 auto 32px auto !important;
  line-height: 1.6 !important;
}

/* Category Filter Pills */
.mb-news-filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.mb-news-filter-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.mb-news-filter-btn:hover,
.mb-news-filter-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* News Grid Layout */
.mb-news-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 90px 24px;
}

.mb-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mb-news-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mb-news-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* News Card */
.mb-news-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mb-news-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08) !important;
}

.mb-news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background-color: #0f172a;
}

.mb-news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mb-news-card:hover .mb-news-card-img {
  transform: scale(1.06);
}

.mb-news-badge {
  display: none !important;
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mb-news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mb-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 12px;
}

.mb-news-dot {
  color: #cbd5e1;
}

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

.mb-news-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.mb-news-card-title a:hover {
  color: #2563eb !important;
}

.mb-news-card-excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 20px !important;
  flex-grow: 1;
}

.mb-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2563eb !important;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.mb-news-read-more:hover {
  gap: 10px;
  color: #1d4ed8 !important;
}

/* Featured Hero Announcement Card */
.mb-news-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 48px;
}

.mb-news-featured-img-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.mb-news-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-news-featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Single News Article Page Layout (`single.php`) */
.mb-single-news-wrap {
  background-color: #f9f9f9;
  min-height: 80vh;
  padding-bottom: 90px;
}

.mb-single-news-header-bg {
  background: #0f172a;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 140px 24px 70px 24px;
}

.mb-single-news-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.mb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.mb-back-link:hover {
  color: #ffffff !important;
}

.mb-single-cat-badge {
  display: none !important;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.mb-single-title {
  color: #ffffff !important;
  font-size: clamp(28px, 3.8vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 24px !important;
}

.mb-single-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #cbd5e1;
  font-size: 14px;
}

.mb-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2563eb;
}

.mb-author-name {
  color: #ffffff;
  font-weight: 700;
}

.mb-single-featured-image-box {
  max-width: 960px;
  margin: -50px auto 48px auto;
  padding: 0 24px;
}

.mb-single-featured-image-box img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* Article Body Content */
.mb-article-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.mb-article-container.mb-no-featured-img {
  margin-top: 48px;
}

.mb-article-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
}

.mb-article-content h2 {
  font-size: 28px !important;
  color: #0f172a !important;
  margin: 36px 0 16px 0 !important;
}

.mb-article-content h3 {
  font-size: 22px !important;
  color: #0f172a !important;
  margin: 28px 0 12px 0 !important;
}

.mb-article-content p {
  margin-bottom: 24px !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.mb-article-content blockquote {
  border-left: 4px solid #2563eb !important;
  background-color: #f8fafc !important;
  padding: 24px 28px !important;
  margin: 32px 0 !important;
  border-radius: 0 12px 12px 0 !important;
  font-size: 20px !important;
  font-style: italic !important;
  color: #0f172a !important;
}

.mb-article-content ul,
.mb-article-content ol {
  margin: 0 0 24px 24px !important;
  color: #334155 !important;
}

.mb-article-content li {
  margin-bottom: 8px !important;
}

.mb-article-content img,
.mb-article-content figure img,
.mb-article-content .wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

.mb-article-content figure {
  margin: 24px 0 !important;
  max-width: 100% !important;
}

.mb-article-content figcaption {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
}

/* Responsive Content Safeguards */
.mb-article-content table {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mb-article-content pre,
.mb-article-content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Author Bio Box */
.mb-author-bio-card {
  margin-top: 40px;
  padding: 28px;
  background-color: #f1f5f9;
  border-radius: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.mb-author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.mb-author-bio-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.mb-author-bio-desc {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

/* Related News Section */
.mb-related-news-section {
  max-width: 1200px;
  margin: 80px auto 0 auto;
  padding: 0 24px;
}

.mb-related-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 32px !important;
  text-align: center;
}

/* ==========================================================================
   Comprehensive Device Compatibility & Mobile Responsiveness
   ========================================================================== */

@media only screen and (max-width: 1024px) {
  .mb-news-grid-container {
    padding: 48px 20px 70px 20px;
  }

  .mb-news-grid {
    gap: 24px;
  }
}

@media only screen and (max-width: 900px) {
  .mb-news-hero {
    padding: 120px 0 50px 0 !important;
  }

  .mb-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mb-news-featured-card {
    grid-template-columns: 1fr;
  }

  .mb-news-featured-img-wrap {
    min-height: 260px;
  }

  .mb-news-featured-content {
    padding: 32px 28px;
  }

  .mb-single-news-header-bg {
    padding: 120px 20px 50px 20px;
  }

  .mb-article-container {
    padding: 0 16px;
  }

  .mb-article-content {
    padding: 36px 28px;
  }
}

@media only screen and (max-width: 640px) {
  .mb-news-hero {
    padding: 110px 16px 40px 16px !important;
  }

  .mb-news-hero-title {
    font-size: 28px !important;
  }

  .mb-news-hero-subtitle {
    font-size: 15px !important;
    margin-bottom: 24px !important;
  }

  .mb-news-filter-wrap {
    gap: 8px;
  }

  .mb-news-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .mb-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mb-news-card-body {
    padding: 18px;
  }

  .mb-author-bio-card {
    flex-direction: column;
    text-align: center;
  }

  .mb-single-news-header-bg {
    padding: 105px 16px 40px 16px;
  }

  .mb-single-title {
    font-size: 26px !important;
  }

  .mb-single-meta-row {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  .mb-article-content {
    padding: 24px 18px;
    border-radius: 14px;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .mb-article-content p {
    font-size: 16px !important;
    margin-bottom: 18px !important;
  }

  .mb-article-content blockquote {
    padding: 18px 20px !important;
    font-size: 17px !important;
    margin: 24px 0 !important;
  }

  .mb-single-featured-image-box {
    margin: -30px auto 28px auto;
    padding: 0 16px;
  }

  .mb-single-featured-image-box img {
    max-height: 260px;
    border-radius: 12px;
  }

  .mb-related-news-section {
    margin-top: 50px;
    padding: 0 16px;
  }
}

@media only screen and (max-width: 400px) {
  .mb-news-hero {
    padding: 100px 12px 32px 12px !important;
  }

  .mb-news-hero-title {
    font-size: 24px !important;
  }

  .mb-single-news-header-bg {
    padding: 98px 12px 32px 12px;
  }

  .mb-single-title {
    font-size: 22px !important;
  }

  .mb-article-content {
    padding: 20px 14px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   MetaBull Team Grid & Bio Modal Popups
   ========================================================================== */

.mb-team-section-wrap {
  width: 100%;
  padding: 40px 0;
}

.mb-team-header {
  text-align: center;
  margin-bottom: 48px;
}

.mb-team-title {
  font-size: clamp(28px, 4vw, 36px) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

.mb-team-subtitle {
  font-size: clamp(16px, 2vw, 20px) !important;
  color: #475569 !important;
  max-width: 700px;
  margin: 0 auto !important;
}

.mb-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mb-team-grid>p,
.mb-team-grid>br {
  display: none !important;
}

.mb-team-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mb-team-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mb-team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mb-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.mb-team-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #f1f5f9;
}

.mb-team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.mb-team-card:hover .mb-team-card-img {
  transform: scale(1.05);
}

.mb-team-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 8px !important;
  margin-bottom: 2px !important;
}

.mb-team-member-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  min-width: 0;
}

.mb-team-bio-btn {
  background: transparent !important;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  color: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mb-team-bio-btn:hover {
  color: #2563eb !important;
  background-color: transparent !important;
  transform: scale(1.15);
}

.mb-team-bio-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.mb-team-member-role {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  display: block !important;
}

.mb-team-member-subrole {
  font-size: 13px !important;
  color: #334155 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* WPBakery Paragraph Clearance inside Team Cards */
#team .vc_column_text p,
#team .equal-card p,
#team .mb-card-shadow p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tokyo Badge Overlay for Team Member Card */
.mb-team-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.mb-team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-team-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Modal Popup Styles */

.mb-team-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mb-team-modal.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mb-team-modal-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  touch-action: none !important;
}

.mb-team-modal-dialog {
  position: relative !important;
  width: 90% !important;
  max-width: 620px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  z-index: 2 !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

.mb-team-modal.is-active .mb-team-modal-dialog {
  transform: translateY(0) scale(1) !important;
}

html body .mb-team-modal .mb-team-modal-dialog button.mb-team-modal-close,
html body button.mb-team-modal-close,
body #ajax-content-wrap button.mb-team-modal-close,
.mb-team-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  background: #155dfc !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(21, 93, 252, 0.3) !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  overflow: hidden !important;
}

html body .mb-team-modal .mb-team-modal-dialog button.mb-team-modal-close::before,
html body .mb-team-modal .mb-team-modal-dialog button.mb-team-modal-close::after {
  display: none !important;
  content: none !important;
}

.mb-team-modal-close:hover {
  background: #0e4dd4 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.4) !important;
}

.mb-team-modal-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #155dfc !important;
  text-align: center;
  margin: 0 0 6px 0 !important;
}

.mb-team-modal p,
.mb-team-modal-dialog p {
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.mb-team-modal-role {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-align: center;
  margin-bottom: 20px !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.mb-team-modal-bio {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #1e293b !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

@media only screen and (max-width: 992px) {
  .mb-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media only screen and (max-width: 600px) {
  .mb-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mb-team-modal-dialog {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   WPBakery & Customizer Migrated CSS Rules
   ========================================================================== */

/* Layout & Overflow Safeguards */
html,
body {
  overflow-x: hidden;
}

/* Hero Section Full-Width Video Fixes */
#hero .nectar-video-wrap {
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  margin-left: -50vw !important;
}

#hero .nectar-video-inner,
#hero video.nectar-video-bg {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
}

#hero .video-color-overlay {
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  margin-left: -50vw !important;
}

/* Base Equal-Height Card Styles (Enhanced to match Next.js metabull.ai UI) */
.equal-card,
.mb-card-shadow {
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-sizing: border-box !important;
}

@media (hover: hover) {

  .equal-card:hover,
  .mb-card-shadow:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Symmetrical Negative Margin Flexbox Grid System for WPBakery */
#integrations-cards,
#integrations-cards .vc_row,
#integrations-cards .vc_row-fluid,
#team .vc_row_inner,
#performance .vc_row_inner {
  display: flex !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}

/* 1. Desktop Breakpoints (>= 1024px) */
@media (min-width: 1024px) {

  /* 3-Column Grids: Integrations & Team */
  #integrations-cards .equal-card,
  #integrations-cards .mb-card-shadow,
  #team .equal-card,
  #team .mb-card-shadow {
    width: calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
    flex: 0 0 calc(33.333% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }

  /* 4-Column Grid: Performance */
  #performance .equal-card,
  #performance .mb-card-shadow {
    width: calc(25% - 24px) !important;
    max-width: calc(25% - 24px) !important;
    flex: 0 0 calc(25% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }
}

/* 2. Tablet Breakpoints (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

  /* Integrations: 1 Column Centered */
  #integrations-cards .equal-card,
  #integrations-cards .mb-card-shadow {
    width: calc(100% - 24px) !important;
    max-width: 720px !important;
    flex: 0 0 calc(100% - 24px) !important;
    margin: 0 auto 24px auto !important;
  }

  /* Team & Performance: 2 Columns */
  #team .equal-card,
  #team .mb-card-shadow,
  #performance .equal-card,
  #performance .mb-card-shadow {
    width: calc(50% - 24px) !important;
    max-width: calc(50% - 24px) !important;
    flex: 0 0 calc(50% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }
}

/* 3. Mobile Breakpoints (< 768px) */
@media (max-width: 767px) {

  #integrations-cards .equal-card,
  #integrations-cards .mb-card-shadow,
  #team .equal-card,
  #team .mb-card-shadow,
  #performance .equal-card,
  #performance .mb-card-shadow {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    flex: 0 0 calc(100% - 24px) !important;
    margin: 0 12px 20px 12px !important;
  }
}

/* ==========================================================================
   WPBakery Page Builder Editor & Compose Mode Compatibility Overrides
   ========================================================================== */
.equal-card,
.mb-card-shadow,
.vc_editor .equal-card,
.compose-mode .equal-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.mb-team-member-role,
.vc_editor .mb-team-member-role,
.compose-mode .mb-team-member-role {
  color: #2563eb !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 0 !important;
  display: block !important;
}

.mb-team-member-subrole,
.vc_editor .mb-team-member-subrole,
.compose-mode .mb-team-member-subrole {
  color: #64748b !important;
  font-size: 13px !important;
  padding: 0 !important;
  display: block !important;
}

.mb-team-bio-btn,
.vc_editor .mb-team-bio-btn,
.compose-mode .mb-team-bio-btn {
  color: #000000 !important;
}

/* WPBakery Paragraph Clearance inside Editor Canvas */
.vc_editor .vc_column_text p,
.compose-mode .vc_column_text p,
.vc_column_text .mb-team-card-inner p {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   MetaBull Performance & Proof Card Component Styles
   ========================================================================== */
.mb-performance-section {
  width: 100%;
  box-sizing: border-box;
}

.mb-performance-header {
  text-align: center;
  margin-bottom: 40px;
}

.mb-performance-title {
  font-size: 36px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

.mb-performance-subtitle {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 16px !important;
}

.mb-performance-description {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #334155 !important;
  max-width: 760px;
  margin: 0 auto !important;
}

.mb-performance-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
  box-sizing: border-box !important;
}

.mb-performance-card {
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Light Blue Icon Circle Badge */
.mb-metric-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background-color: #e0f2fe !important;
  color: #2563eb !important;
  margin: 0 auto 16px auto !important;
  transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.mb-performance-card:hover .mb-metric-badge {
  transform: scale(1.1) !important;
}

.mb-performance-card-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.mb-performance-card-text {
  font-size: 15px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive Columns */
@media (min-width: 1024px) {
  .mb-performance-grid.cols-4 .mb-performance-card {
    width: calc(25% - 24px) !important;
    max-width: calc(25% - 24px) !important;
    flex: 0 0 calc(25% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }

  .mb-performance-grid.cols-3 .mb-performance-card {
    width: calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
    flex: 0 0 calc(33.333% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }

  .mb-performance-grid.cols-2 .mb-performance-card {
    width: calc(50% - 24px) !important;
    max-width: calc(50% - 24px) !important;
    flex: 0 0 calc(50% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mb-performance-grid .mb-performance-card {
    width: calc(50% - 24px) !important;
    max-width: calc(50% - 24px) !important;
    flex: 0 0 calc(50% - 24px) !important;
    margin: 0 12px 24px 12px !important;
  }
}

@media (max-width: 767px) {
  .mb-performance-grid .mb-performance-card {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    flex: 0 0 calc(100% - 24px) !important;
    margin: 0 12px 20px 12px !important;
  }
}

/* WPBakery Editor Overrides for Performance Component */
.vc_editor .mb-performance-card p,
.compose-mode .mb-performance-card p,
.mb-performance-card p {
  margin: 0 !important;
  padding: 0 !important;
}