/*
Theme Name: Michael Ball Fan Club Theme
Theme URI: https://mbfc.uk
Author: Chris Oakley
Author URI: https://mbfc.uk
Description: Official custom WordPress theme for the Michael Ball Fan Club, featuring the signature sky-blue header gradient, carded layouts, tour hero banners, protected members area, and newsletter publishing engine.
Version: 1.6.9.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbfc-theme
Tags: custom-header, custom-logo, featured-images, full-width-template, theme-options, translation-ready, one-column, right-sidebar
*/

/* -------------------------------------------------------------
   1. CSS Reset & Variables
-------------------------------------------------------------- */
:root {
  --mbfc-primary: #2563eb;
  --mbfc-primary-dark: #1e4fbc;
  --mbfc-primary-light: rgba(37, 99, 235, 0.08);
  --mbfc-primary-rgb: 37, 99, 235;
  --mbfc-sky-start: #99ccff;
  --mbfc-sky-end: #ffffff;
  --mbfc-header-gradient: linear-gradient(to bottom, var(--mbfc-sky-start) 0%, var(--mbfc-sky-end) 100%);
  --mbfc-bg: #f4f6f9;
  --mbfc-card-bg: #ffffff;
  --mbfc-border: #dce4ec;
  --mbfc-text-main: #1e293b;
  --mbfc-text-muted: #475569;
  --mbfc-text-light: #64748b;
  --mbfc-footer-bg: #1e293b;
  --mbfc-footer-text: #94a3b8;
  --mbfc-radius: 12px;
  --mbfc-container-width: 1040px;
  --mbfc-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--mbfc-bg);
  color: var(--mbfc-text-main);
  font-family: var(--mbfc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accommodate WordPress Admin Bar */
body.admin-bar .mbfc-wrapper {
  margin-top: 16px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .mbfc-wrapper {
    margin-top: 8px;
  }
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a {
  color: var(--mbfc-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--mbfc-primary-dark);
}

/* -------------------------------------------------------------
   2. Main Layout Container (Wider, modern responsive layout)
-------------------------------------------------------------- */
.mbfc-wrapper {
  width: 100%;
  max-width: var(--mbfc-container-width);
  margin: 30px auto;
  padding: 0 20px;
  transition: max-width 0.3s ease;
}

.mbfc-sheet {
  background: var(--mbfc-card-bg);
  border: 1px solid var(--mbfc-border);
  border-radius: var(--mbfc-radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* -------------------------------------------------------------
   3. Header & Sky Hero Gradient
-------------------------------------------------------------- */
.mbfc-header-hero {
  background: linear-gradient(to bottom, var(--mbfc-sky-start) 0%, var(--mbfc-sky-end) 100%);
  padding: 32px 30px 24px 30px;
  border-bottom: 1px solid var(--mbfc-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mbfc-header-left {
  flex: 1 1 65%;
}

.mbfc-header-right {
  flex: 0 0 200px;
  text-align: right;
}

.mbfc-header-logo {
  max-width: 250px;
  margin-bottom: 12px;
  display: block;
}

.mbfc-header-mascot {
  max-width: 100%;
  display: inline-block;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mbfc-site-title {
  margin: 0 0 4px 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--mbfc-text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.mbfc-site-tagline {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mbfc-text-muted);
}

.mbfc-meta-pills {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--mbfc-text-muted);
}

.mbfc-meta-pills li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mbfc-date-badge {
  color: #000000;
  font-weight: 600;
  font-size: 13px;
}

.mbfc-organisers-tag {
  font-size: 13px;
  color: var(--mbfc-text-light);
  font-style: italic;
}

/* -------------------------------------------------------------
   4. Navigation Bar (Accommodates Full WordPress Menus & Submenus)
-------------------------------------------------------------- */
.mbfc-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--mbfc-border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 52px;
  gap: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 40;
}

.mbfc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.mbfc-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.mbfc-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.mbfc-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mbfc-text-main);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mbfc-menu a:hover,
.mbfc-menu .current-menu-item > a,
.mbfc-menu .current-menu-ancestor > a {
  color: var(--mbfc-primary);
  border-bottom-color: var(--mbfc-primary);
  text-decoration: none;
}

/* WordPress Submenu Dropdown Support */
.mbfc-menu .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 11px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.mbfc-menu li:hover > a::after,
.mbfc-menu li.is-open > a::after {
  transform: rotate(180deg);
}

.mbfc-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 230px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--mbfc-border);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 1000;
  pointer-events: auto;
}

/* Invisible hover bridge to prevent mouse gap dropouts */
.mbfc-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.mbfc-menu li:hover > .sub-menu,
.mbfc-menu li:focus-within > .sub-menu,
.mbfc-menu li.is-open > .sub-menu {
  display: block;
  animation: mbfcDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mbfcDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mbfc-menu .sub-menu li {
  width: 100%;
}

.mbfc-menu .sub-menu a {
  padding: 9px 16px;
  border-bottom: none;
  width: 100%;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mbfc-text-main);
}

.mbfc-menu .sub-menu a:hover {
  background: var(--mbfc-primary-light);
  color: var(--mbfc-primary);
}

/* Auxiliary Nav Link (Mascot URL Button on far right) */
.mbfc-nav-aux {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* -------------------------------------------------------------
   4b. Secondary Navigation Bar (Underneath Primary Navigation)
--------------------------------------------------------------- */
.mbfc-secondary-nav-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--mbfc-border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 44px;
  gap: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 35;
}

.secondary-menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.mbfc-secondary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.mbfc-secondary-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.mbfc-secondary-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--mbfc-text-main);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mbfc-secondary-menu a:hover,
.mbfc-secondary-menu .current-menu-item > a,
.mbfc-secondary-menu .current-menu-ancestor > a {
  color: var(--mbfc-primary);
  border-bottom-color: var(--mbfc-primary);
  text-decoration: none;
}

.mbfc-secondary-menu .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.mbfc-secondary-menu li:hover > a::after,
.mbfc-secondary-menu li.is-open > a::after {
  transform: rotate(180deg);
}

.mbfc-secondary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 210px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--mbfc-border);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 1000;
  pointer-events: auto;
}

.mbfc-secondary-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.mbfc-secondary-menu li:hover > .sub-menu,
.mbfc-secondary-menu li:focus-within > .sub-menu,
.mbfc-secondary-menu li.is-open > .sub-menu {
  display: block;
  animation: mbfcDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mbfc-secondary-menu .sub-menu li {
  width: 100%;
}

.mbfc-secondary-menu .sub-menu a {
  padding: 8px 14px;
  border-bottom: none;
  width: 100%;
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mbfc-text-main);
}

.mbfc-secondary-menu .sub-menu a:hover {
  background: var(--mbfc-primary-light);
  color: var(--mbfc-primary);
}

.mbfc-mascot-pill,
.mbfc-charlie-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 0;
  background-color: var(--mbfc-primary-light);
  color: var(--mbfc-primary) !important;
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mbfc-mascot-pill:hover,
.mbfc-charlie-pill:hover {
  background-color: #dbeafe;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mbfc-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--mbfc-border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--mbfc-text-main);
}

/* -------------------------------------------------------------
   5. Content Body & Post Typography
-------------------------------------------------------------- */
.mbfc-content-area {
  padding: 32px 30px;
}

.mbfc-salutation {
  font-size: 22px;
  font-weight: 700;
  color: var(--mbfc-text-main);
  margin: 0 0 16px 0;
}

.mbfc-entry-content {
  font-size: 16px;
  color: var(--mbfc-text-main);
  line-height: 1.7;
}

.mbfc-entry-content p {
  margin: 0 0 18px 0;
}

/* Action CTA Pill */
.mbfc-cta-button {
  display: inline-block;
  background: var(--mbfc-primary-light);
  color: var(--mbfc-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
  transition: all 0.2s ease;
}

.mbfc-cta-button:hover {
  background: #dbeafe;
  color: var(--mbfc-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   Post Cards, News Feed & Author Removal
-------------------------------------------------------------- */
.mbfc-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mbfc-post-card {
  background: #ffffff;
  border: 1px solid var(--mbfc-border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mbfc-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.mbfc-post-card .entry-title a,
.mbfc-post-card h2 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mbfc-post-card .entry-title a:hover,
.mbfc-post-card h2 a:hover {
  color: var(--mbfc-primary);
  text-decoration: none;
}

/* Strict Rule: Remove any author names from showing up in posts, bylines, cards, and single articles */
.byline,
.author,
.entry-author,
.post-author,
.mbfc-post-author,
.vcard,
.author.vcard,
.author-name,
.entry-meta .author,
.post-meta .author,
.post-meta .byline {
  display: none !important;
}

/* -------------------------------------------------------------
   Post Featured Images: Scale to fit full image on cards & feeds,
   and reduce size by half inside single posts
-------------------------------------------------------------- */
.mbfc-post-card-thumbnail,
.mbfc-post-card .post-thumbnail {
  margin: 14px 0 18px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mbfc-border);
  background-color: #f8fafc;
  text-align: center;
}

.mbfc-post-card-thumbnail img,
.mbfc-card-featured-img,
.mbfc-post-card .post-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain; /* Scale to fit full image without cropping */
  margin: 0 auto;
}

/* Inside single posts: reduce featured image size by half */
.single .post-thumbnail,
.single .mbfc-single-post-thumbnail {
  max-width: 50%;
  width: 50%;
  margin: 20px auto 28px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mbfc-border);
  background-color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.single .post-thumbnail img,
.single .mbfc-featured-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain; /* Scale to fit full image */
  margin: 0 auto;
}

@media (max-width: 640px) {
  .single .post-thumbnail,
  .single .mbfc-single-post-thumbnail {
    max-width: 70%;
    width: 70%;
  }
}

/* Multiple Featured Images on Posts (Retaining Exact Theme Sizes) */
.mbfc-multiple-featured-container {
  max-width: 50%;
  width: 50%;
  margin: 20px auto 28px auto;
}

@media (max-width: 640px) {
  .mbfc-multiple-featured-container {
    max-width: 70%;
    width: 70%;
  }
}

.mbfc-featured-slider {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mbfc-border);
  background-color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: center;
}

.mbfc-featured-slide {
  transition: opacity 0.25s ease-in-out;
}

.mbfc-featured-slide.mbfc-slide-active {
  display: block;
}

.mbfc-featured-slide.mbfc-slide-hidden {
  display: none;
}

.mbfc-slider-prev,
.mbfc-slider-next {
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.mbfc-slider-prev:hover,
.mbfc-slider-next:hover {
  background: rgba(15, 23, 42, 0.85) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.mbfc-featured-thumbnails-nav {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mbfc-featured-thumbnails-nav button:hover {
  opacity: 1 !important;
}

/* Multi-image thumbnail in archive / feed cards (320px max) */
.mbfc-multi-card-thumbnail {
  position: relative;
  margin: 14px 0 18px 0;
  max-width: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mbfc-border);
  background: #f8fafc;
  text-align: center;
}

.mbfc-card-slide {
  transition: opacity 0.2s ease;
}

.mbfc-card-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 2;
}

.mbfc-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mbfc-card-dot:hover {
  background: #ffffff !important;
}

/* Pagination Styling */
.pagination,
.posts-pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--mbfc-border);
  background: #ffffff;
  color: var(--mbfc-text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-numbers:hover {
  background: var(--mbfc-primary-light);
  border-color: var(--mbfc-primary);
  color: var(--mbfc-primary);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--mbfc-primary);
  border-color: var(--mbfc-primary);
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   6. Hero Banners Grid (Charlie, Glow Blue, Community)
-------------------------------------------------------------- */
.mbfc-banners-container {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mbfc-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--mbfc-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mbfc-banner-link:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.mbfc-banner-img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* -------------------------------------------------------------
   7. Signoff Box
-------------------------------------------------------------- */
.mbfc-signoff-box {
  padding: 16px 0 24px 0;
  border-top: 1px solid #f1f5f9;
  margin-top: 24px;
}

.mbfc-signoff-quote {
  font-size: 16px;
  color: var(--mbfc-text-muted);
  margin: 0 0 4px 0;
}

.mbfc-signoff-names {
  font-size: 17px;
  font-weight: 700;
  color: var(--mbfc-text-main);
  margin: 0;
}

/* -------------------------------------------------------------
   8. Members Password Card & Members Area
-------------------------------------------------------------- */
.mbfc-members-card {
  margin: 24px 0;
  background-color: var(--mbfc-primary-light);
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  padding: 18px 24px;
  text-align: center;
  color: #1e3a8a;
}

.mbfc-password-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 6px;
  margin-left: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Members Area Page Elements */
.mbfc-page-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.mbfc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mbfc-page-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.mbfc-page-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Members Locked Gate Box */
.mbfc-members-gate-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  max-width: 512px;
  margin: 24px auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mbfc-gate-icon-circle {
  width: 48px;
  height: 48px;
  background-color: #dbeafe;
  color: #2563eb;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 22px;
}

.mbfc-gate-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.mbfc-gate-desc {
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.mbfc-gate-form-row {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

@media (min-width: 540px) {
  .mbfc-gate-form-row {
    flex-direction: row;
  }
}

.mbfc-gate-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mbfc-gate-input:focus {
  border-color: var(--mbfc-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mbfc-gate-btn {
  background-color: var(--mbfc-primary, #2563eb);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mbfc-gate-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mbfc-gate-error {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 10px;
}

.mbfc-gate-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

/* Members Newsletter Callout Box (Below Passcode Gate) */
.mbfc-members-newsletter-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  max-width: 512px;
  margin: 18px auto 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mbfc-newsletter-box-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 15px;
}

.mbfc-newsletter-box-text {
  font-size: 13px;
  color: #1e40af;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.mbfc-newsletter-box-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--mbfc-primary, #2563eb);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.mbfc-newsletter-box-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Members Unlocked State */
.mbfc-unlocked-banner {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
}

.mbfc-lock-again-btn {
  background: transparent;
  border: 0;
  color: #047857;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.mbfc-members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .mbfc-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mbfc-member-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mbfc-member-card-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
  margin: 0 0 4px 0;
}

.mbfc-member-card-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.mbfc-presale-code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background-color: var(--mbfc-primary-light, #eff6ff);
  color: var(--mbfc-primary, #2563eb);
  text-align: center;
  letter-spacing: 1.5px;
  font-size: 14px;
  cursor: pointer;
  user-select: all;
  transition: background-color 0.15s;
}

.mbfc-presale-code-box:hover {
  filter: brightness(0.97);
}

.mbfc-member-action-btn {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background-color: var(--mbfc-primary-light, #eff6ff);
  color: var(--mbfc-primary, #2563eb);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  display: block;
  transition: opacity 0.15s;
}

.mbfc-member-action-btn:hover {
  opacity: 0.9;
}

.mbfc-member-badge-green {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background-color: #ecfdf5;
  padding: 4px 10px;
  border-radius: 6px;
}

.mbfc-member-btn-secondary {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s;
}

.mbfc-member-btn-secondary:hover {
  background-color: #e2e8f0;
}

/* -------------------------------------------------------------
   9. Donations / PayPal Section & Support Page
-------------------------------------------------------------- */
.mbfc-donate-section {
  margin: 28px auto 16px auto;
  background-color: #f8fafc;
  border: 1px solid var(--mbfc-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  max-width: 480px;
}

.mbfc-donate-heart {
  font-size: 22px;
  margin-bottom: 6px;
}

.mbfc-donate-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--mbfc-text-main);
  margin: 0 0 6px 0;
}

.mbfc-donate-text {
  font-size: 13px;
  color: var(--mbfc-text-muted);
  margin: 0 auto 16px auto;
  line-height: 1.5;
  max-width: 400px;
}

.mbfc-paypal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0070ba;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 112, 186, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
  width: 100%;
  max-width: 320px;
}

.mbfc-paypal-btn:hover {
  background-color: #005ea6;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.mbfc-paypal-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  object-fit: contain;
}

.mbfc-donate-sub {
  font-size: 11px;
  color: var(--mbfc-text-light);
  margin: 10px 0 0 0;
}

/* Support & Donate Dedicated Page Styles */
.mbfc-donate-intro {
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mbfc-donate-intro p {
  margin: 0 0 14px 0;
}

.mbfc-donate-card-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  max-width: 440px;
  margin: 28px auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mbfc-donate-heart-circle {
  width: 48px;
  height: 48px;
  background-color: #dbeafe;
  color: #f43f5e;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-size: 24px;
}

.mbfc-donate-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.mbfc-donate-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px 0;
}

.mbfc-paypal-large-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #0070ba;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 112, 186, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.mbfc-paypal-large-btn:hover {
  background-color: #005ea6;
  transform: translateY(-1px);
}

.mbfc-paypal-button-id {
  font-size: 12px;
  color: #94a3b8;
  margin: 12px 0 0 0;
}

.mbfc-signoff-divider {
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  margin-top: 28px;
}

.mbfc-signoff-text {
  color: #475569;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.mbfc-signoff-names-bold {
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

/* -------------------------------------------------------------
   9b-2. MBFC Info Page (/mbfcinfo & /mbfc-info) Styles
-------------------------------------------------------------- */
.mbfc-info-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px 16px;
}

.mbfc-info-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.mbfc-info-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}

.mbfc-info-breadcrumb a:hover {
  color: var(--mbfc-primary);
  text-decoration: underline;
}

.mbfc-info-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mbfc-info-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mbfc-info-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.mbfc-info-hero-sub {
  font-size: 17px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 28px 0;
  max-width: 780px;
}

.mbfc-info-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.mbfc-info-metric-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mbfc-info-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.mbfc-info-metric-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.mbfc-info-metric-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mbfc-primary);
  margin-top: 2px;
}

.mbfc-info-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .mbfc-info-layout-grid {
    grid-template-columns: 1fr;
  }
}

.mbfc-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mbfc-info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.mbfc-info-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--mbfc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.mbfc-info-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.mbfc-info-card-body {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.mbfc-info-card-body p {
  margin: 0 0 14px 0;
}

.mbfc-info-card-body p:last-child {
  margin-bottom: 0;
}

.mbfc-info-highlight-box {
  padding: 16px 20px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-weight: 500;
  margin: 16px 0;
}

.mbfc-info-event-card {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.mbfc-info-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.mbfc-info-event-title {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.mbfc-info-event-pill {
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #fde047;
  color: #713f12;
}

.mbfc-info-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mbfc-info-team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mbfc-info-team-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
}

.mbfc-info-team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mbfc-info-signoff-banner {
  border-radius: 16px;
  padding: 28px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.mbfc-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.mbfc-info-btn-primary {
  background: var(--mbfc-primary);
  color: #ffffff !important;
}

.mbfc-info-btn-primary:hover {
  filter: brightness(1.1);
}

.mbfc-info-btn-white {
  background: #ffffff;
  color: #0f172a !important;
}

.mbfc-info-btn-white:hover {
  background: #f1f5f9;
}

.mbfc-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mbfc-info-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mbfc-info-sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.mbfc-info-sidebar-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.mbfc-info-country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mbfc-info-country-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mbfc-info-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mbfc-info-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.mbfc-info-shortcut-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
  transform: translateX(2px);
}

.mbfc-info-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mbfc-info-action-card {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mbfc-info-team-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* -------------------------------------------------------------
   9b. Newsletter Sign Up Page & 8px Rounded Corner Box
-------------------------------------------------------------- */
.mbfc-newsletter-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px; /* Required 8px rounded corners */
  padding: 32px 28px;
  max-width: 620px;
  margin: 24px auto;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.mbfc-newsletter-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.mbfc-newsletter-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.mbfc-newsletter-form input[type="text"],
.mbfc-newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mbfc-newsletter-form input[type="text"]:focus,
.mbfc-newsletter-form input[type="email"]:focus {
  border-color: var(--mbfc-primary, #2563eb);
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mbfc-newsletter-gdpr-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  text-align: left;
}

.mbfc-newsletter-gdpr-wrap input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--mbfc-primary, #2563eb);
  cursor: pointer;
}

.mbfc-newsletter-expect-box {
  margin: 18px 0 22px 0;
  padding: 16px 18px;
  background-color: #f8fafc;
  border-left: 3px solid var(--mbfc-primary, #2563eb);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  text-align: left;
}

.mbfc-newsletter-expect-box strong {
  color: #0f172a;
}

.mbfc-newsletter-submit-btn {
  display: inline-block;
  background-color: var(--mbfc-primary, #2563eb);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.mbfc-newsletter-submit-btn:hover {
  background-color: var(--mbfc-primary-dark, #1d4ed8);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   9c. Generic Hidden Template & 3-Wide Table (8px Rounded Corners)
-------------------------------------------------------------- */
.mbfc-table-box-container {
  max-width: 100%;
  margin: 24px 0;
  box-sizing: border-box;
}

.mbfc-rounded-box-8px {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px; /* Required 8px rounded corners */
  overflow: hidden; /* Ensures table corners respect the 8px radius */
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.mbfc-table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mbfc-generic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
  margin: 0;
}

.mbfc-generic-table thead tr {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.mbfc-generic-table th {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-right: 1px solid #f1f5f9;
  white-space: nowrap;
}

.mbfc-generic-table th:last-child {
  border-right: none;
}

.mbfc-generic-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}

.mbfc-generic-table tbody tr:last-child {
  border-bottom: none;
}

.mbfc-generic-table tbody tr:hover {
  background-color: #f8fafc;
}

.mbfc-generic-table td {
  padding: 16px 18px;
  vertical-align: middle;
  border-right: 1px solid #f1f5f9;
}

.mbfc-generic-table td:last-child {
  border-right: none;
}

.mbfc-table-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background-color: #eff6ff;
  color: #1d4ed8;
  white-space: nowrap;
}

.mbfc-table-badge.success {
  background-color: #ecfdf5;
  color: #047857;
}

.mbfc-table-badge.warning {
  background-color: #fffbeb;
  color: #b45309;
}

/* -------------------------------------------------------------
   10. Dark Slate Footer
-------------------------------------------------------------- */
.mbfc-footer {
  background-color: var(--mbfc-footer-bg);
  color: var(--mbfc-footer-text);
  padding: 32px 24px 28px 24px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--mbfc-border);
}

.mbfc-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mbfc-social-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mbfc-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.mbfc-social-icon-img {
  width: 32px;
  height: 32px;
  display: block;
}

.mbfc-footer-copy {
  margin: 0 0 10px 0;
  color: #e2e8f0;
  font-weight: 600;
}

.mbfc-footer-meta {
  color: var(--mbfc-footer-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.mbfc-footer-links {
  margin: 12px 0;
}

.mbfc-footer-links a {
  color: #cbd5e1;
  text-decoration: underline;
  margin: 0 8px;
}

.mbfc-footer-links a:hover {
  color: #ffffff;
}

.mbfc-footer-credit {
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.mbfc-footer-version {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

/* -------------------------------------------------------------
   11. Responsive Media Queries (Mobile & Tablet)
-------------------------------------------------------------- */
@media (max-width: 992px) {
  .mbfc-menu a {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .mbfc-wrapper {
    margin: 10px auto;
    padding: 0 10px;
  }

  .mbfc-header-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .mbfc-header-left {
    text-align: center;
  }

  .mbfc-header-right {
    text-align: center;
    flex: auto;
  }

  .mbfc-header-logo {
    margin: 0 auto 12px auto;
  }

  .mbfc-meta-pills li {
    justify-content: center;
  }

  .mbfc-content-area {
    padding: 24px 18px;
  }

  .mbfc-nav-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .mbfc-nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .mbfc-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
  }

  .mbfc-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid var(--mbfc-border);
    gap: 0;
  }

  .mbfc-menu.is-active {
    display: flex;
  }

  .mbfc-menu > li {
    width: 100%;
  }

  .mbfc-menu a {
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
  }

  .mbfc-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: #f8fafc;
    border-radius: 4px;
    margin-bottom: 4px;
  }

  .mbfc-menu .sub-menu a {
    font-size: 13px;
    padding: 8px 12px;
  }

  .mbfc-secondary-nav-bar {
    padding: 6px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-menu-container {
    flex-direction: column;
    align-items: stretch;
  }

  .mbfc-secondary-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 6px 0;
    border-top: 1px solid var(--mbfc-border);
    gap: 0;
  }

  .mbfc-secondary-menu.is-active,
  .is-active ~ .mbfc-secondary-nav-bar .mbfc-secondary-menu,
  .mbfc-nav-bar.is-active + .mbfc-secondary-nav-bar .mbfc-secondary-menu {
    display: flex;
  }

  .mbfc-secondary-menu > li {
    width: 100%;
  }

  .mbfc-secondary-menu a {
    width: 100%;
    padding: 8px 8px;
    border-bottom: 1px solid #f1f5f9;
  }

  .mbfc-secondary-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 4px;
  }

  .mbfc-secondary-menu .sub-menu a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   Michael's Timeline Styles
   ========================================================================== */
.mbfc-timeline-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.mbfc-timeline-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mbfc-timeline-breadcrumb a:hover {
  color: var(--mbfc-primary, #2563eb);
}

.mbfc-timeline-breadcrumb .sep {
  color: #94a3b8;
}

.mbfc-timeline-breadcrumb .current {
  font-weight: 600;
  color: #0f172a;
}

.mbfc-timeline-hero {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.mbfc-timeline-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.mbfc-timeline-hero-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .mbfc-timeline-hero-title {
    font-size: 34px;
  }
}

.mbfc-timeline-hero-subtitle {
  margin: 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  max-width: 760px;
}

/* Milestone Quick Stats Status Bar (4-Card Grid) */
.mbfc-timeline-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .mbfc-timeline-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mbfc-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mbfc-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.mbfc-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.mbfc-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.mbfc-stat-sub {
  font-size: 11px;
  color: #64748b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline Controls & Search Bar */
.mbfc-timeline-controls {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mbfc-timeline-filter-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mbfc-timeline-filter-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .mbfc-timeline-filter-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mbfc-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mbfc-timeline-search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.mbfc-timeline-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.mbfc-timeline-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 30px 8px 30px;
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.mbfc-timeline-search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mbfc-timeline-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: none;
}

.mbfc-timeline-search-clear:hover {
  color: #475569;
}

.mbfc-era-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mbfc-era-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mbfc-era-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mbfc-era-btn.active {
  background: var(--mbfc-primary, #2563eb);
  color: #ffffff;
  border-color: var(--mbfc-primary, #2563eb);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

/* Timeline Results Summary Status Bar */
.mbfc-timeline-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.mbfc-timeline-clear-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  display: none;
}

.mbfc-timeline-clear-btn:hover {
  color: #1d4ed8;
}

.mbfc-timeline-wrapper {
  margin: 28px 0;
  position: relative;
}

.mbfc-timeline-spine {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e2e8f0;
  z-index: 1;
}

@media (min-width: 768px) {
  .mbfc-timeline-spine {
    left: 110px;
  }
}

.mbfc-timeline-era-header {
  position: relative;
  z-index: 2;
  margin: 32px 0 20px 0;
  padding-left: 50px;
}

@media (min-width: 768px) {
  .mbfc-timeline-era-header {
    padding-left: 140px;
  }
}

.mbfc-timeline-item {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .mbfc-timeline-item {
    flex-direction: row;
    gap: 24px;
  }
}

.mbfc-timeline-badge-col {
  width: 100px;
  flex-shrink: 0;
  padding-top: 6px;
  text-align: right;
  display: none;
}

@media (min-width: 768px) {
  .mbfc-timeline-badge-col {
    display: block;
  }
}

.mbfc-timeline-node {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #93c5fd;
  z-index: 3;
}

@media (min-width: 768px) {
  .mbfc-timeline-node {
    left: 103px;
  }
}

.mbfc-timeline-card {
  margin-left: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  flex-grow: 1;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
  .mbfc-timeline-card {
    margin-left: 36px;
  }
}

.mbfc-timeline-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.mbfc-timeline-card-pic {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mbfc-timeline-card-pic img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.mbfc-timeline-card-pic-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   Lucide & Blade Icons Site-Wide Integration
   Supports Lucide Icons with color options & Blade Icons (Blade UI Kit)
   ========================================================================== */
.lucide,
i[data-lucide],
span[data-lucide],
svg.lucide,
.lucide-icon,
.blade-icon,
i[data-blade],
span[data-blade],
svg.blade-icon {
  display: inline-block;
  vertical-align: -0.125em;
  width: 1em;
  height: 1em;
  box-sizing: content-box;
}

.lucide,
i[data-lucide],
span[data-lucide],
svg.lucide,
.lucide-icon {
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blade-icon,
i[data-blade],
span[data-blade],
svg.blade-icon {
  fill: currentColor;
}

.blade-icon-outline,
svg.blade-icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lucide.lucide-lg, i[data-lucide].lucide-lg, .blade-icon-lg { width: 1.5em; height: 1.5em; }
.lucide.lucide-xl, i[data-lucide].lucide-xl, .blade-icon-xl { width: 2em; height: 2em; }
.lucide.lucide-sm, i[data-lucide].lucide-sm, .blade-icon-sm { width: 0.875em; height: 0.875em; }

/* Strictly ensure no icons or mascots are rounded and emojis stay normal */
svg,
svg *,
.lucide,
.blade-icon,
[data-lucide],
[data-blade],
.mbfc-icon-badge,
.mbfc-header-icon,
.mbfc-member-icon,
.mbfc-gate-icon-circle,
.mbfc-donate-heart-circle,
.mbfc-emoji-icon,
.mbfc-header-mascot,
.emoji,
span.emoji {
  border-radius: 0 !important;
}

/* Mascot pill in navbar has rounded corners again */
.mbfc-mascot-pill,
.mbfc-charlie-pill,
.mbfc-nav-aux a,
.mbfc-navbar-mascot-item a {
  border-radius: 9999px !important;
}

/* Ensure emojis and emoji containers always stay transparent with no background color */
.emoji,
.mbfc-emoji,
.mbfc-emoji-icon,
span.emoji,
img.emoji,
img.wp-smiley,
.wp-smiley,
.mbfc-pill-icon,
[data-emoji] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Ensure emoji font rendering is standard, crisp, and normal across all browsers */
.emoji,
.mbfc-emoji,
span.emoji,
.menu-item span,
.sub-menu span,
.mbfc-menu span,
header span,
nav span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-style: normal;
  font-variant: normal;
  text-decoration: none;
}

/* Sitewide Universal Custom Pills & Badges Shortcode Styling */
.mbfc-custom-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  margin: 0 4px;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
}
.mbfc-custom-pill:hover {
  opacity: 0.9;
}
.mbfc-custom-pill.is-rounded,
.mbfc-custom-pill-rounded {
  border-radius: 9999px !important;
}
.mbfc-custom-pill.is-square,
.mbfc-custom-pill-square {
  border-radius: 0px !important;
}
.mbfc-custom-pill.is-sm-rounded {
  border-radius: 4px !important;
}
.mbfc-custom-pill .mbfc-pill-icon {
  margin-right: 3px;
  font-style: normal;
  text-decoration: none;
  background: transparent !important;
  background-color: transparent !important;
}

/* Responsive Multiple Featured Images Side-by-Side */
@media (max-width: 640px) {
  .mbfc-single-post-thumbnail,
  .mbfc-sidebyside-container {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Callout Boxes & Nested Shortcodes ([box], [inner_box]) - Sitewide */
.mbfc-box {
  margin: 8px 0;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Consecutive [box] shortcodes spacing sitewide */
.mbfc-box + .mbfc-box,
.mbfc-box-parent + .mbfc-box-parent,
.mbfc-box-nested + .mbfc-box-nested,
p + .mbfc-box,
.mbfc-box + p {
  margin-top: 5px !important;
}

.mbfc-box-parent + .mbfc-box-parent {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
}

.mbfc-box:last-child {
  margin-bottom: 0;
}

/* Spacing for inner nested boxes */
.mbfc-box .mbfc-box-nested {
  margin: 4px 0 3px 2px !important;
}

.mbfc-box .mbfc-box-nested + .mbfc-box-nested {
  margin-top: 3px !important;
}

/* Links inside callout boxes */
.mbfc-box a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.mbfc-box a:hover {
  opacity: 0.8;
}

/* Lists inside callout boxes */
.mbfc-box ul,
.mbfc-box ol {
  margin: 4px 0 4px 18px;
  padding: 0;
}

.mbfc-box li {
  margin-bottom: 2px;
}

/* Entry content & Post/Page body box styling */
.mbfc-entry-content .mbfc-box,
.entry-content .mbfc-box,
.mbfc-single-post .mbfc-box {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mbfc-entry-content .mbfc-box + .mbfc-box,
.entry-content .mbfc-box + .mbfc-box {
  margin-top: 5px !important;
}

/* Widgets and Sidebar callout boxes */
.widget .mbfc-box,
.mbfc-info-sidebar .mbfc-box,
.sidebar .mbfc-box {
  font-size: 12px;
  padding: 8px 10px;
}

/* Team bio paragraph spacing */
.mbfc-info-team-bio p {
  margin: 0 0 10px 0;
}

.mbfc-info-team-bio p:last-child {
  margin-bottom: 0;
}

/* Front Page Michael Ball OBE Tribute Card & Floating Image with Text Wrapping */
.mbfc-front-tribute-card {
  overflow: hidden;
}

.mbfc-tribute-body {
  overflow: visible;
}

.mbfc-tribute-figure {
  margin-bottom: 16px;
}

.mbfc-tribute-figure.align-right {
  float: right;
  margin: 0 0 16px 24px;
}

.mbfc-tribute-figure.align-left {
  float: left;
  margin: 0 24px 16px 0;
}

.mbfc-tribute-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .mbfc-tribute-figure,
  .mbfc-tribute-figure.align-right,
  .mbfc-tribute-figure.align-left {
    float: none !important;
    margin: 0 auto 18px auto !important;
    max-width: 100% !important;
    text-align: center;
  }
}
