/*
Theme Name: First Bangladesh
Theme URI: https://firstbangladesh.com
Author: First Bangladesh
Author URI: https://firstbangladesh.com
Description: Professional multilingual (English/Bangla) foundation theme for the First Bangladesh digital ecosystem — IT services, AI solutions, Academy, and corporate portals. Built to scale as a hub connecting the Academy, marketplace, job portal, and CRM.
Version: 2.7.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: firstbd
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-menu, custom-logo, translation-ready, e-commerce, education

First Bangladesh WordPress Theme
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Color: named tokens derived from brand direction */
  --fbd-forest:        #0B4F3F; /* primary — trust, growth */
  --fbd-forest-dark:    #073527;
  --fbd-emerald:        #12805F; /* secondary green — links, CTA hover */
  --fbd-red:            #B3272D; /* primary accent — energy, urgency, national identity paired with forest green */
  --fbd-red-dark:        #8C1E23;
  --fbd-red-light:       #D96A6E;
  --fbd-gold:           #C9992C; /* tertiary accent — reserved for certificates/achievement only */
  --fbd-gold-light:      #E5C878;
  --fbd-navy:           #0E1C2B; /* dark sections, footer */
  --fbd-navy-deep:       #08121C;
  --fbd-paper:          #F7F6F1; /* warm off-white background */
  --fbd-surface:         #FFFFFF;
  --fbd-ink:            #14201D; /* primary text, warm near-black */
  --fbd-slate:          #4B5955; /* secondary text */
  --fbd-slate-light:     #7C8985;
  --fbd-line:           #DFE0D9; /* hairline borders */
  --fbd-line-dark:       rgba(255,255,255,0.12);

  /* Semantic */
  --fbd-success: #1E8E5A;
  --fbd-warning: #C9992C;
  --fbd-danger:  #B4432E;

  /* Typography — English + Bangla stacks paired throughout */
  --fbd-font-display: 'Fraunces', 'Noto Serif Bengali', Georgia, serif;
  --fbd-font-body:    'IBM Plex Sans', 'Hind Siliguri', -apple-system, sans-serif;
  --fbd-font-mono:    'IBM Plex Mono', 'Noto Sans Bengali', monospace;

  /* Type scale */
  --fbd-fs-xs:   0.8125rem;
  --fbd-fs-sm:   0.9375rem;
  --fbd-fs-base: 1.0625rem;
  --fbd-fs-lg:   1.25rem;
  --fbd-fs-xl:   1.75rem;
  --fbd-fs-2xl:  2.5rem;
  --fbd-fs-3xl:  3.5rem;
  --fbd-fs-4xl:  5rem;

  /* Spacing scale */
  --fbd-space-xs:  0.5rem;
  --fbd-space-sm:  1rem;
  --fbd-space-md:  1.5rem;
  --fbd-space-lg:  2.5rem;
  --fbd-space-xl:  4rem;
  --fbd-space-2xl: 6rem;
  --fbd-space-3xl: 9rem;

  /* Layout */
  --fbd-container: 1200px;
  --fbd-container-narrow: 780px;
  --fbd-radius-sm: 4px;
  --fbd-radius: 8px;
  --fbd-radius-lg: 16px;

  /* Motion */
  --fbd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fbd-speed: 200ms;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--fbd-font-body);
  font-size: var(--fbd-fs-base);
  line-height: 1.65;
  color: var(--fbd-ink);
  background: var(--fbd-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fbd-forest); text-decoration: none; transition: color var(--fbd-speed) var(--fbd-ease); }
a:hover { color: var(--fbd-emerald); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--fbd-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fbd-font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fbd-ink);
  margin: 0 0 var(--fbd-space-sm);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fbd-fs-3xl); }
h2 { font-size: var(--fbd-fs-2xl); }
h3 { font-size: var(--fbd-fs-xl); }
p { margin: 0 0 var(--fbd-space-sm); color: var(--fbd-slate); }
p:last-child { margin-bottom: 0; }

/* Bangla-language weight correction: Bangla script reads heavier at same weight */
html[lang^="bn"] body,
.lang-bn { font-weight: 400; }
html[lang^="bn"] h1, html[lang^="bn"] h2, html[lang^="bn"] h3 { font-weight: 500; letter-spacing: 0; }

ul, ol { padding-left: 1.25em; color: var(--fbd-slate); }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.fbd-container {
  max-width: var(--fbd-container);
  margin: 0 auto;
  padding: 0 var(--fbd-space-md);
}
.fbd-container--narrow { max-width: var(--fbd-container-narrow); }

.fbd-section { padding: var(--fbd-space-2xl) 0; }
.fbd-section--tight { padding: var(--fbd-space-xl) 0; }
.fbd-section--dark { background: var(--fbd-navy); color: #E9EEEC; }
.fbd-section--dark h2, .fbd-section--dark h3 { color: #FFFFFF; }
.fbd-section--dark p { color: #AEB9B5; }
.fbd-section--paper { background: var(--fbd-paper); }
.fbd-section--surface { background: var(--fbd-surface); }

.fbd-grid { display: grid; gap: var(--fbd-space-md); }
.fbd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fbd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fbd-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Content + sidebar layout (single course/service/post, dashboard) — collapses to one column on mobile, unlike an inline style would. */
.fbd-layout-sidebar { grid-template-columns: 2fr 1fr; }
.fbd-donate-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--fbd-space-xl); align-items: center; }
@media (max-width: 900px) {
  .fbd-grid--3, .fbd-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .fbd-layout-sidebar { grid-template-columns: 1fr; }
  .fbd-donate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fbd-grid--2, .fbd-grid--3, .fbd-grid--4 { grid-template-columns: 1fr; }
}

.fbd-eyebrow {
  display: inline-block;
  font-family: var(--fbd-font-mono);
  font-size: var(--fbd-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fbd-red);
  margin-bottom: var(--fbd-space-xs);
}
.fbd-eyebrow--light { color: var(--fbd-red-light); }

/* =========================================================
   BUTTONS
   ========================================================= */
.fbd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--fbd-font-body);
  font-size: var(--fbd-fs-sm);
  font-weight: 600;
  padding: 0.85em 1.6em;
  border-radius: var(--fbd-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--fbd-speed) var(--fbd-ease);
  line-height: 1.2;
}
.fbd-btn--primary { background: var(--fbd-forest); color: #fff; }
.fbd-btn--primary:hover { background: var(--fbd-forest-dark); color: #fff; transform: translateY(-1px); }
.fbd-btn--red { background: var(--fbd-red); color: #fff; }
.fbd-btn--red:hover { background: var(--fbd-red-dark); color: #fff; transform: translateY(-1px); }
.fbd-btn--gold { background: var(--fbd-gold); color: var(--fbd-navy-deep); }
.fbd-btn--gold:hover { background: var(--fbd-gold-light); color: var(--fbd-navy-deep); }
.fbd-btn--outline { background: transparent; border-color: var(--fbd-line); color: var(--fbd-ink); }
.fbd-btn--outline:hover { border-color: var(--fbd-forest); color: var(--fbd-forest); }
.fbd-btn--outline-light { background: transparent; border-color: var(--fbd-line-dark); color: #fff; }
.fbd-btn--outline-light:hover { border-color: var(--fbd-gold); color: var(--fbd-gold); }

/* =========================================================
   CARDS
   ========================================================= */
.fbd-card {
  background: var(--fbd-surface);
  border: 1px solid var(--fbd-line);
  border-radius: var(--fbd-radius-lg);
  padding: var(--fbd-space-md);
  transition: border-color var(--fbd-speed) var(--fbd-ease), transform var(--fbd-speed) var(--fbd-ease);
}
.fbd-card:hover { border-color: var(--fbd-forest); transform: translateY(-2px); }
.fbd-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,79,63,0.08);
  color: var(--fbd-forest);
  border-radius: var(--fbd-radius);
  margin-bottom: var(--fbd-space-sm);
  font-size: 1.25rem;
}
.fbd-card h3 { font-size: var(--fbd-fs-lg); margin-bottom: 0.4em; }
.fbd-card p { font-size: var(--fbd-fs-sm); }

/* =========================================================
   HEADER
   ========================================================= */
.fbd-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--fbd-line);
}
.fbd-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--fbd-forest) 0%, var(--fbd-forest) 60%, var(--fbd-red) 60%, var(--fbd-red) 100%);
}
.fbd-topbar { background: var(--fbd-navy-deep); color: #C9D4D0; font-size: var(--fbd-fs-xs); }
.fbd-topbar__inner {
  max-width: var(--fbd-container); margin: 0 auto;
  padding: 0.45em var(--fbd-space-md);
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
}
.fbd-topbar__meta { display: flex; align-items: center; gap: 0.6em; }
.fbd-topbar__meta a { color: #C9D4D0; }
.fbd-topbar__meta a:hover { color: var(--fbd-gold-light); }
.fbd-topbar__divider { color: rgba(255,255,255,0.25); }
@media (max-width: 700px) { .fbd-topbar__contact { display: none; } .fbd-topbar__inner { justify-content: center; } }

.fbd-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--fbd-space-xs) 0;
  max-width: var(--fbd-container);
  margin: 0 auto;
  padding-left: var(--fbd-space-md);
  padding-right: var(--fbd-space-md);
  background: rgba(247,246,241,0.92);
  backdrop-filter: blur(8px);
}
.fbd-logo { display: flex; align-items: center; gap: 0.7em; color: var(--fbd-ink); }
.fbd-logo img { height: 36px; width: auto; }
.fbd-logo .fbd-logo__mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fbd-forest), var(--fbd-forest-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fbd-font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(11,79,63,0.25);
}
.fbd-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.fbd-logo__name { font-family: var(--fbd-font-display); font-weight: 600; font-size: 1.2rem; }
.fbd-logo__tagline { font-family: var(--fbd-font-mono); font-size: 0.65rem; letter-spacing: 0.05em; color: var(--fbd-slate-light); text-transform: uppercase; }
@media (max-width: 480px) { .fbd-logo__tagline { display: none; } }

/* ---- Nav: inline flex item on desktop, becomes a fixed off-canvas drawer on mobile ---- */
.fbd-nav { display: flex; align-items: center; gap: var(--fbd-space-lg); }
.fbd-nav ul { display: flex; gap: var(--fbd-space-md); list-style: none; margin: 0; padding: 0; }
.fbd-nav-caret { display: inline-block; font-size: 0.7em; margin-left: 0.15em; transition: transform var(--fbd-speed) var(--fbd-ease); }

/* Desktop dropdown submenus */
@media (min-width: 901px) {
  .fbd-nav li { position: relative; }
  .fbd-nav .sub-menu {
    display: none;
    position: absolute; top: 100%; left: 0; z-index: 50;
    flex-direction: column; gap: 0;
    min-width: 200px;
    background: var(--fbd-surface);
    border: 1px solid var(--fbd-line);
    border-radius: var(--fbd-radius);
    box-shadow: 0 12px 32px rgba(8,18,28,0.12);
    padding: 0.5em 0;
    margin-top: 0.6em;
  }
  .fbd-nav li:hover > .sub-menu,
  .fbd-nav li:focus-within > .sub-menu { display: flex; }
  .fbd-nav li:hover > a .fbd-nav-caret { transform: rotate(180deg); }
  .fbd-nav .sub-menu li { width: 100%; }
  .fbd-nav .sub-menu a {
    display: block; padding: 0.6em 1.1em; font-size: var(--fbd-fs-sm);
    white-space: nowrap;
  }
  .fbd-nav .sub-menu a::after { display: none; }
  .fbd-nav .sub-menu a:hover { background: var(--fbd-paper); color: var(--fbd-forest); }
}
.fbd-nav li { position: relative; }
.fbd-nav a { color: var(--fbd-ink); font-size: var(--fbd-fs-sm); font-weight: 500; position: relative; padding-bottom: 2px; }
.fbd-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--fbd-red); transition: right var(--fbd-speed) var(--fbd-ease);
}
.fbd-nav a:hover { color: var(--fbd-forest); }
.fbd-nav a:hover::after { right: 0; }
.fbd-nav .current-menu-item > a { color: var(--fbd-forest); }
.fbd-nav .current-menu-item > a::after { right: 0; background: var(--fbd-forest); }

.fbd-nav__header, .fbd-nav__mobile-actions { display: none; }

.fbd-header__actions { display: flex; align-items: center; gap: var(--fbd-space-sm); }
.fbd-lang-switch { display: flex; gap: 0.4em; font-family: var(--fbd-font-mono); font-size: var(--fbd-fs-xs); }
.fbd-lang-switch a { padding: 0.3em 0.6em; border: 1px solid var(--fbd-line); border-radius: var(--fbd-radius-sm); color: var(--fbd-slate); }
.fbd-lang-switch a.active { border-color: var(--fbd-forest); color: var(--fbd-forest); }

.fbd-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5em; margin: -0.5em -0.5em -0.5em 0; }
.fbd-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--fbd-ink); margin: 5px 0; transition: transform var(--fbd-speed) var(--fbd-ease), opacity var(--fbd-speed) var(--fbd-ease); }
.fbd-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fbd-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fbd-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fbd-nav-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(8,18,28,0.5);
  opacity: 0; transition: opacity var(--fbd-speed) var(--fbd-ease);
  pointer-events: none;
}
.fbd-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .fbd-header__actions { display: none; }
  .fbd-menu-toggle { display: block; }

  .fbd-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(360px, 86vw);
    background: var(--fbd-surface);
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform 280ms var(--fbd-ease);
    overflow-y: auto;
  }
  .fbd-nav.is-open { transform: translateX(0); }

  .fbd-nav__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--fbd-space-sm) var(--fbd-space-md);
    border-bottom: 1px solid var(--fbd-line);
  }
  .fbd-nav__title { font-family: var(--fbd-font-display); font-weight: 600; font-size: var(--fbd-fs-lg); }
  .fbd-nav__close { background: none; border: none; font-size: 1.75rem; line-height: 1; color: var(--fbd-slate); cursor: pointer; padding: 0.2em 0.4em; }
  .fbd-nav__close:hover { color: var(--fbd-red); }

  .fbd-nav ul { flex-direction: column; gap: 0; width: 100%; padding: var(--fbd-space-sm) 0; }
  .fbd-nav ul li { width: 100%; }
  .fbd-nav ul a {
    display: block; width: 100%; padding: 0.9em var(--fbd-space-md);
    font-size: var(--fbd-fs-base); border-bottom: 1px solid var(--fbd-line);
  }
  .fbd-nav ul a::after { display: none; }
  .fbd-nav .sub-menu { padding-left: var(--fbd-space-md); background: var(--fbd-paper); }
  .fbd-nav-caret { display: none; }

  .fbd-nav__mobile-actions {
    display: flex; flex-direction: column; gap: var(--fbd-space-sm);
    padding: var(--fbd-space-md);
    margin-top: auto;
    border-top: 1px solid var(--fbd-line);
  }
  .fbd-nav__mobile-actions .fbd-lang-switch { justify-content: center; }
  .fbd-nav__mobile-actions .fbd-btn { width: 100%; justify-content: center; }
}

@media (min-width: 901px) {
  body.fbd-nav-lock { overflow: visible !important; }
}


/* =========================================================
   HERO — signature element: the "1,000,000" growth stat
   ========================================================= */
.fbd-hero { position: relative; padding: var(--fbd-space-3xl) 0 var(--fbd-space-2xl); overflow: hidden; }
.fbd-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--fbd-space-xl); align-items: center; }
@media (max-width: 900px) {
  .fbd-hero__grid { grid-template-columns: 1fr; }
  .fbd-hero__stat { padding: var(--fbd-space-md); }
}

.fbd-hero h1 { font-size: var(--fbd-fs-3xl); margin-bottom: var(--fbd-space-sm); }
.fbd-hero h1 em { font-style: italic; color: var(--fbd-forest); }
.fbd-hero__lede { font-size: var(--fbd-fs-lg); color: var(--fbd-slate); max-width: 32em; margin-bottom: var(--fbd-space-md); }
.fbd-hero__actions { display: flex; gap: var(--fbd-space-sm); flex-wrap: wrap; }

.fbd-hero__stat {
  position: relative;
  background: var(--fbd-navy);
  border-radius: var(--fbd-radius-lg);
  padding: var(--fbd-space-lg);
  color: #fff;
  overflow: hidden;
}
.fbd-hero__stat-label { font-family: var(--fbd-font-mono); font-size: var(--fbd-fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fbd-red-light); }
.fbd-hero__stat-number {
  font-family: var(--fbd-font-display);
  font-size: clamp(2.1rem, 8vw, 5rem);
  line-height: 1;
  margin: 0.2em 0;
  color: #fff;
  overflow-wrap: break-word;
}
.fbd-hero__stat-sub { font-size: var(--fbd-fs-sm); color: #AEB9B5; }
.fbd-hero__stat svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; opacity: 0.9; }

/* =========================================================
   FOOTER
   ========================================================= */
.fbd-footer { background: var(--fbd-navy-deep); color: #AEB9B5; padding: var(--fbd-space-2xl) 0 var(--fbd-space-md); position: relative; }
.fbd-footer__accent { height: 3px; background: linear-gradient(90deg, var(--fbd-forest) 0%, var(--fbd-forest) 60%, var(--fbd-red) 60%, var(--fbd-red) 100%); }
.fbd-footer a { color: #C9D4D0; }
.fbd-footer a:hover { color: var(--fbd-gold-light); }
.fbd-footer h4 { color: #fff; font-family: var(--fbd-font-body); font-size: var(--fbd-fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--fbd-space-sm); }
.fbd-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6em; font-size: var(--fbd-fs-sm); }
.fbd-footer__brand { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--fbd-space-sm); }
.fbd-footer__brand-name { font-family: var(--fbd-font-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.fbd-footer__flag-note { font-size: var(--fbd-fs-xs); color: var(--fbd-gold-light); margin-top: var(--fbd-space-sm); }
.fbd-footer__social { display: flex; gap: 0.6em; margin-top: var(--fbd-space-md); }
.fbd-footer__social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fbd-line-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fbd-fs-xs); font-weight: 700; color: #C9D4D0;
  transition: all var(--fbd-speed) var(--fbd-ease);
}
.fbd-footer__social a:hover { border-color: var(--fbd-red); color: var(--fbd-red-light); background: rgba(179,39,45,0.12); }
.fbd-footer__payments { display: flex; gap: 0.5em; }
.fbd-footer__bottom {
  border-top: 1px solid var(--fbd-line-dark); margin-top: var(--fbd-space-xl); padding-top: var(--fbd-space-md);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1em; font-size: var(--fbd-fs-xs);
}

/* =========================================================
   MISC COMPONENTS
   ========================================================= */
.fbd-cta-banner {
  background: linear-gradient(135deg, var(--fbd-forest), var(--fbd-forest-dark));
  color: #fff;
  border-radius: var(--fbd-radius-lg);
  padding: var(--fbd-space-xl);
  text-align: center;
}
.fbd-cta-banner h2 { color: #fff; }
.fbd-cta-banner p { color: rgba(255,255,255,0.8); max-width: 36em; margin-left: auto; margin-right: auto; }

.fbd-badge { display: inline-block; font-size: var(--fbd-fs-xs); font-family: var(--fbd-font-mono); padding: 0.3em 0.7em; border-radius: 99px; background: rgba(179,39,45,0.12); color: var(--fbd-red); }
.fbd-badge--gold { background: rgba(201,153,44,0.14); color: var(--fbd-gold); }
.fbd-badge--green { background: rgba(11,79,63,0.1); color: var(--fbd-forest); }
.fbd-section--dark .fbd-badge { background: rgba(217,106,110,0.18); color: var(--fbd-red-light); }

/* Course-pill list — used inside Academy track cards to list every course without a card-per-course grid */
.fbd-pills { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: var(--fbd-space-sm); }
.fbd-pill {
  font-size: var(--fbd-fs-xs);
  padding: 0.4em 0.85em;
  border-radius: 99px;
  border: 1px solid var(--fbd-line-dark);
  color: #C9D4D0;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}
.fbd-pill:hover { border-color: var(--fbd-red); color: #fff; }
.fbd-section--surface .fbd-pill,
.fbd-section--paper .fbd-pill {
  border-color: var(--fbd-line);
  color: var(--fbd-slate);
  background: var(--fbd-paper);
}
.fbd-section--surface .fbd-pill:hover,
.fbd-section--paper .fbd-pill:hover { border-color: var(--fbd-forest); color: var(--fbd-forest); }

.fbd-breadcrumb { font-size: var(--fbd-fs-xs); color: var(--fbd-slate-light); margin-bottom: var(--fbd-space-sm); }
.fbd-breadcrumb a { color: var(--fbd-slate-light); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--fbd-forest); color: #fff; padding: 0.8em 1.2em; z-index: 1000; }
.skip-link:focus { left: var(--fbd-space-sm); top: var(--fbd-space-sm); }

/* =========================================================
   FORMS — contact, booking, registration, enrollment
   ========================================================= */
.fbd-form { display: flex; flex-direction: column; gap: var(--fbd-space-sm); margin-top: var(--fbd-space-sm); }
.fbd-form label { display: flex; flex-direction: column; gap: 0.4em; font-size: var(--fbd-fs-sm); font-weight: 500; color: var(--fbd-ink); }
.fbd-form input[type="text"],
.fbd-form input[type="email"],
.fbd-form input[type="password"],
.fbd-form input[type="date"],
.fbd-form input[type="time"],
.fbd-form select,
.fbd-form textarea {
  font-family: var(--fbd-font-body);
  font-size: var(--fbd-fs-sm);
  padding: 0.75em 1em;
  border: 1px solid var(--fbd-line);
  border-radius: var(--fbd-radius);
  background: var(--fbd-surface);
  color: var(--fbd-ink);
  font-weight: 400;
}
.fbd-form input:focus, .fbd-form select:focus, .fbd-form textarea:focus {
  outline: none; border-color: var(--fbd-forest);
}
.fbd-form-success {
  background: rgba(30,142,90,0.1);
  border: 1px solid var(--fbd-success);
  color: var(--fbd-success);
  padding: 1em 1.25em;
  border-radius: var(--fbd-radius);
  font-size: var(--fbd-fs-sm);
  font-weight: 500;
}

.fbd-enroll-box .fbd-payment-instructions,
.fbd-donate-instructions {
  background: var(--fbd-paper);
  border-radius: var(--fbd-radius);
  padding: var(--fbd-space-sm);
  margin: var(--fbd-space-sm) 0;
}

.fbd-gov-banner { background: var(--fbd-navy); text-align: center; padding: 0.6em 0; }
.fbd-gov-banner a { color: #E9EEEC; font-size: var(--fbd-fs-sm); font-weight: 500; }
.fbd-gov-banner a:hover { color: var(--fbd-gold-light); }

/* =========================================================
   TESTIMONIALS — card + carousel
   ========================================================= */
.fbd-testimonial-card {
  background: var(--fbd-surface);
  border: 1px solid var(--fbd-line);
  border-radius: var(--fbd-radius-lg);
  padding: var(--fbd-space-lg);
  max-width: 640px;
  margin: 0 auto;
}
.fbd-testimonial-card__stars { color: var(--fbd-gold); letter-spacing: 0.15em; font-size: var(--fbd-fs-lg); margin-bottom: 0.4em; }
.fbd-testimonial-card__quote {
  font-family: var(--fbd-font-display);
  font-size: var(--fbd-fs-lg);
  font-style: italic;
  color: var(--fbd-ink);
  line-height: 1.5;
  margin-bottom: var(--fbd-space-md);
}
.fbd-testimonial-card__person { display: flex; align-items: center; gap: 0.8em; }
.fbd-testimonial-card__photo {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--fbd-forest);
}
.fbd-testimonial-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.fbd-testimonial-card__photo--fallback {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--fbd-font-display); font-weight: 600; font-size: 1.2rem;
}
.fbd-testimonial-card__name { font-weight: 600; font-size: var(--fbd-fs-sm); color: var(--fbd-ink); }
.fbd-testimonial-card__role { font-size: var(--fbd-fs-xs); color: var(--fbd-slate-light); }

/* Grid context (Success Stories wall page) — smaller, no forced centering */
.fbd-grid .fbd-testimonial-card { max-width: none; margin: 0; height: 100%; }

/* Carousel */
.fbd-carousel { position: relative; margin-top: var(--fbd-space-lg); overflow: hidden; }
.fbd-carousel__track { display: flex; transition: transform 400ms var(--fbd-ease); }
.fbd-carousel__slide { flex: 0 0 100%; padding: 0 var(--fbd-space-sm); box-sizing: border-box; }
.fbd-carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--fbd-space-md); margin-top: var(--fbd-space-md); }
.fbd-carousel__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fbd-line);
  background: var(--fbd-surface); font-size: 1.3rem; line-height: 1; color: var(--fbd-forest);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--fbd-speed) var(--fbd-ease);
}
.fbd-carousel__arrow:hover { border-color: var(--fbd-forest); background: var(--fbd-forest); color: #fff; }
.fbd-carousel__dots { display: flex; gap: 0.5em; }
.fbd-carousel__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fbd-line); border: none; cursor: pointer; padding: 0; }
.fbd-carousel__dot.is-active { background: var(--fbd-red); width: 22px; border-radius: 5px; transition: all var(--fbd-speed) var(--fbd-ease); }

/* =========================================================
   SUPPORTERS (Contributors + Investors)
   ========================================================= */
.fbd-supporter-card { text-align: center; padding: var(--fbd-space-sm); }
.fbd-supporter-card__photo {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 0.6em;
  background: var(--fbd-forest);
}
.fbd-supporter-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.fbd-supporter-card__photo--fallback {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--fbd-font-display); font-weight: 600; font-size: 1.5rem;
}
.fbd-supporter-card__name { font-weight: 600; font-size: var(--fbd-fs-sm); color: var(--fbd-ink); }
.fbd-supporter-card__name a { color: inherit; }
.fbd-supporter-card__name a:hover { color: var(--fbd-forest); }
.fbd-supporter-card__role { font-size: var(--fbd-fs-xs); color: var(--fbd-slate-light); margin-top: 0.2em; }
.fbd-supporter-card__quote { font-size: var(--fbd-fs-xs); font-style: italic; color: var(--fbd-slate); margin-top: 0.5em; }
.fbd-pill--bkash { border-color: #E2136E; color: #E2136E; }
.fbd-pill--nagad { border-color: #EC1D24; color: #EC1D24; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.fbd-faq { margin-top: var(--fbd-space-xl); }
.fbd-faq h2 { margin-bottom: var(--fbd-space-sm); }
.fbd-faq__list { display: flex; flex-direction: column; gap: 0.6em; }
.fbd-faq__item {
  border: 1px solid var(--fbd-line);
  border-radius: var(--fbd-radius);
  padding: 0;
  background: var(--fbd-surface);
}
.fbd-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1em 1.25em;
  font-weight: 500;
  font-size: var(--fbd-fs-sm);
  color: var(--fbd-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.fbd-faq__item summary::-webkit-details-marker { display: none; }
.fbd-faq__item summary::after {
  content: "+";
  font-family: var(--fbd-font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--fbd-red);
  flex-shrink: 0;
  transition: transform var(--fbd-speed) var(--fbd-ease);
}
.fbd-faq__item[open] summary::after { transform: rotate(45deg); }
.fbd-faq__item[open] { border-color: var(--fbd-forest); }
.fbd-faq__answer { padding: 0 1.25em 1.1em; font-size: var(--fbd-fs-sm); color: var(--fbd-slate); }
.fbd-faq__answer p:last-child { margin-bottom: 0; }

.fbd-section--dark .fbd-faq__item { background: rgba(255,255,255,0.04); border-color: var(--fbd-line-dark); }
.fbd-section--dark .fbd-faq__item summary { color: #fff; }
.fbd-section--dark .fbd-faq__answer { color: #AEB9B5; }

/* =========================================================
   WALLET
   ========================================================= */
.fbd-wallet-card { background: linear-gradient(135deg, var(--fbd-navy), var(--fbd-navy-deep)); border: none; }
.fbd-wallet-balance { margin-bottom: var(--fbd-space-md); }
.fbd-wallet-balance__label { display:block; font-family: var(--fbd-font-mono); font-size: var(--fbd-fs-xs); letter-spacing:0.06em; text-transform:uppercase; color: var(--fbd-gold-light); }
.fbd-wallet-balance__amount { display:block; font-family: var(--fbd-font-display); font-size: var(--fbd-fs-3xl); color:#fff; line-height:1.1; margin: 0.15em 0; }
.fbd-wallet-balance__total { display:block; font-size: var(--fbd-fs-sm); color:#AEB9B5; }
.fbd-wallet-card .fbd-form label { color: #E9EEEC; }
.fbd-wallet-card .fbd-form input, .fbd-wallet-card .fbd-form select {
  background: rgba(255,255,255,0.06); border-color: var(--fbd-line-dark); color: #fff;
}
.fbd-wallet-card .fbd-form input::placeholder { color: #8FA09A; }

.fbd-sidebar { display: flex; flex-direction: column; gap: var(--fbd-space-md); }
.fbd-sidebar .fbd-widget { margin: 0; }

/* WooCommerce / LearnDash / Tutor LMS visual alignment (safe generic overrides) */
.woocommerce a.button, .woocommerce button.button, .learndash-wrapper .btn, .tutor-btn {
  background: var(--fbd-forest) !important;
  border-radius: var(--fbd-radius) !important;
  border: none !important;
  font-family: var(--fbd-font-body) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--fbd-forest-dark) !important; }
