/* ================================================================
   BoardZone UI Redesign — Design System
   Layered on top of Bootstrap 4 / style.min.css
   ================================================================ */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bz-primary:    #10beed;
  --bz-primary-dk: #0d9fd0;
  --bz-primary-bg: rgba(16,190,237,.1);
  --bz-dark:       #0f172a;
  --bz-text:       #374151;
  --bz-muted:      #6b7280;
  --bz-border:     #e5e7eb;
  --bz-bg:         #f9fafb;
  --bz-white:      #fff;
  --bz-radius:     12px;
  --bz-radius-sm:  8px;
  --bz-shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --bz-shadow:     0 4px 16px rgba(0,0,0,.08);
  --bz-shadow-lg:  0 10px 32px rgba(0,0,0,.12);
}

/* ─── BASE TYPOGRAPHY ─────────────────────────────────────────── */
body {
  font-family: 'Inter','Roboto',-apple-system,BlinkMacSystemFont,sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--bz-text);
  background: var(--bz-bg);
}

h1,h2,h3,h4,h5,h6 { color: var(--bz-dark); font-weight: 700; line-height: 1.35; }

a { color: var(--bz-primary); }
a:hover { color: var(--bz-primary-dk); }

/* ─── SITE HEADER ─────────────────────────────────────────────── */
.bz-site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--bz-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ── Single unified row ───────────────────────────────────────── */
.bz-header__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 84px;
}

/* ── Brand ────────────────────────────────────────────────────── */
.bz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.bz-brand__logo { width: 50px; height: auto; flex-shrink: 0; border-radius: 10px; }

.bz-brand__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--bz-dark);
  letter-spacing: -.5px;
  white-space: nowrap;
  line-height: 1;
}

.bz-brand__name em { color: #10beed; font-style: normal; }

/* ── Desktop nav (flex:1 so it centres between brand & actions) ─ */
.bz-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Header actions ───────────────────────────────────────────── */
.bz-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;   /* pushes to right when nav is hidden on mobile */
}

.bz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--bz-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-text) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--bz-border);
  transition: border-color .18s, color .18s, background .18s;
  white-space: nowrap;
  line-height: 1.3;
}

.bz-action-btn i { font-size: 16px; line-height: 1; }
.bz-action-btn__label { font-size: 13px; font-weight: 600; }

.bz-action-btn:hover {
  border-color: var(--bz-primary);
  color: var(--bz-primary) !important;
  background: var(--bz-primary-bg);
}

.bz-action-btn.is-active {
  color: var(--bz-primary) !important;
  border-color: var(--bz-primary);
  background: var(--bz-primary-bg);
}

.bz-action-btn--primary {
  background: var(--bz-primary);
  border-color: var(--bz-primary);
  color: #fff !important;
}

.bz-action-btn--primary:hover {
  background: var(--bz-primary-dk);
  border-color: var(--bz-primary-dk);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,190,237,.35);
  transform: translateY(-1px);
}

/* ── Icon-only buttons (new clean design) ─────────────────────── */
.bz-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f9fafb;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  color: #6b7280 !important;
  text-decoration: none !important;
  font-size: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Cart item count badge ─────────────────────────────────────── */
.bz-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
}

.bz-icon-btn:hover {
  background: #667eea;
  border-color: #667eea;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.bz-icon-btn.is-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ── Hamburger ────────────────────────────────────────────────── */
.bz-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  border: 1.5px solid var(--bz-border);
  border-radius: var(--bz-radius-sm);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s;
}

.bz-hamburger span {
  display: block;
  height: 2px;
  background: var(--bz-dark);
  border-radius: 2px;
  transition: all .25s;
}

.bz-hamburger:hover,
.bz-hamburger:focus { background: var(--bz-bg); outline: none; }

/* ── Nav list ─────────────────────────────────────────────────── */
.bz-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.bz-nav__item { position: relative; }

.bz-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-text) !important;
  text-decoration: none !important;
  border-radius: var(--bz-radius-sm);
  transition: color .18s, background .18s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1.4;
}

.bz-nav__link:hover,
.bz-nav__link.is-active {
  color: var(--bz-primary) !important;
  background: var(--bz-primary-bg);
}

.bz-nav__chevron {
  font-size: 9px;
  opacity: .55;
  transition: transform .2s;
}

.bz-nav__item--has-dropdown:hover .bz-nav__chevron { transform: rotate(180deg); }

/* CSS-powered desktop dropdowns */
.bz-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow-lg);
  min-width: 210px;
  z-index: 200;
}

.bz-nav__item--has-dropdown:hover .bz-dropdown { display: block; }

.bz-dropdown__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bz-text) !important;
  text-decoration: none !important;
  border-radius: var(--bz-radius-sm);
  transition: background .15s;
}

.bz-dropdown__item:hover {
  background: var(--bz-primary-bg);
  color: var(--bz-primary) !important;
}

/* ── Backdrop overlay ─────────────────────────────────────────── */
.bz-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.52);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, visibility .32s ease;
  cursor: pointer;
}

.bz-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when drawer is open */
body.bz-drawer-open { overflow: hidden; }

/* ── Right-side slide-in drawer ───────────────────────────────── */
.bz-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;           /* dynamic viewport height — handles mobile browser chrome */
  height: 100vh;            /* fallback */
  background: #fff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 48px rgba(0,0,0,.14);
  overflow: hidden;
}

.bz-mobile-drawer.is-open { transform: translateX(0); }

/* ── Drawer: top bar ──────────────────────────────────────────── */
.bz-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bz-border);
  flex-shrink: 0;
}

.bz-drawer-close {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--bz-border);
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--bz-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
}

.bz-drawer-close:hover {
  background: var(--bz-bg);
  border-color: var(--bz-dark);
}

/* ── Drawer: scrollable nav body ──────────────────────────────── */
.bz-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bz-drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bz-drawer-nav__item {
  border-bottom: 1px solid var(--bz-border);
}

.bz-drawer-nav__item:last-child { border-bottom: none; }

.bz-drawer-nav__link,
.bz-drawer-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bz-dark) !important;
  text-decoration: none !important;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color .18s, background .18s;
}

.bz-drawer-nav__link:hover,
.bz-drawer-nav__toggle:hover {
  color: var(--bz-primary) !important;
  background: var(--bz-primary-bg);
}

/* Chevron rotates when sub-menu expands */
.bz-drawer-chevron {
  font-size: 11px;
  opacity: .5;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.bz-drawer-nav__toggle[aria-expanded="true"] .bz-drawer-chevron {
  transform: rotate(180deg);
}

/* Sub-menu panel */
.bz-drawer-nav__sub { background: var(--bz-bg); }

.bz-drawer-nav__sub-link {
  display: block;
  padding: 13px 20px 13px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bz-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--bz-border);
  transition: color .15s, background .15s;
}

.bz-drawer-nav__sub-link:last-child { border-bottom: none; }

.bz-drawer-nav__sub-link:hover {
  color: var(--bz-primary) !important;
  background: rgba(16,190,237,.07);
}

/* ── Drawer: sticky footer CTA buttons ───────────────────────── */
.bz-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bz-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
}

.bz-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--bz-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s;
  width: 100%;
}

.bz-drawer-cta--outline {
  border: 1.5px solid var(--bz-border);
  color: var(--bz-text) !important;
}

.bz-drawer-cta--outline:hover {
  border-color: var(--bz-primary);
  color: var(--bz-primary) !important;
  background: var(--bz-primary-bg);
}

.bz-drawer-cta--primary {
  background: var(--bz-primary);
  color: #fff !important;
  border: 1.5px solid var(--bz-primary);
}

.bz-drawer-cta--primary:hover {
  background: var(--bz-primary-dk);
  border-color: var(--bz-primary-dk);
  color: #fff !important;
}

.bz-drawer-cart-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────── */

/* Tablet: shrink action button labels */
@media (max-width: 1199px) {
  .bz-action-btn__label { display: none; }
  .bz-action-btn { padding: 10px 13px; }
}

/* Mobile: shorter header, icon-only action buttons */
@media (max-width: 991px) {
  .bz-header__row { min-height: 70px; gap: 6px; }
  .bz-brand__logo { width: 44px; }
  .bz-brand__name { font-size: 18px; letter-spacing: -.4px; }
  .bz-brand { gap: 9px; }
  .bz-header-actions { gap: 7px; }
  
  /* Icon buttons on mobile */
  .bz-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Legacy action buttons */
  .bz-action-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .bz-action-btn i { font-size: 18px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .bz-brand__name { font-size: 16px; }
  .bz-brand__logo { width: 34px; }
  .bz-brand { gap: 8px; }
  
  .bz-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.bz-footer {
  background: var(--bz-dark);
  margin-top: 64px;
  color: rgba(255,255,255,.65);
}

/* Cyan accent stripe at the very top */
.bz-footer__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--bz-primary) 0%, #0d9fd0 50%, transparent 100%);
}

.bz-footer__body {
  padding: 56px 0 48px;
}

/* ── Brand ── */
.bz-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none !important;
}

.bz-footer__brand img { width: 42px; flex-shrink: 0; border-radius: 10px; }

.bz-footer__brand span {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.bz-footer__brand em { color: var(--bz-primary); font-style: normal; }

.bz-footer__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.45);
  max-width: 310px;
  margin-bottom: 24px;
}

/* ── Social icons ── */
.bz-footer__social { display: flex; gap: 10px; }

.bz-footer__social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 15px;
  text-decoration: none !important;
  transition: border-color .2s, color .2s, background .2s;
}

.bz-footer__social a:hover {
  border-color: var(--bz-primary);
  color: #fff;
  background: var(--bz-primary);
}

/* ── Column headings ── */
.bz-footer__heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff !important;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── Links ── */
.bz-footer__links { list-style: none; padding: 0; margin: 0; }
.bz-footer__links li { margin-bottom: 11px; }

.bz-footer__links a {
  color: rgba(255,255,255,.45);
  font-size: 13.5px;
  text-decoration: none !important;
  transition: color .18s, padding-left .18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bz-footer__links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--bz-primary);
  transition: width .2s;
  display: inline-block;
}

.bz-footer__links a:hover { color: var(--bz-primary); }
.bz-footer__links a:hover::before { width: 12px; }

/* ── Contact items ── */
.bz-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
}

.bz-footer__contact-item i {
  color: var(--bz-primary);
  font-size: 15px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.bz-footer__contact-item a {
  color: rgba(255,255,255,.45);
  text-decoration: none !important;
  transition: color .18s;
}

.bz-footer__contact-item a:hover { color: var(--bz-primary); }

/* ── Bottom bar ── */
.bz-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  background: rgba(0,0,0,.2);
}

.bz-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bz-footer__bottom p {
  color: rgba(255,255,255,.3);
  font-size: 12.5px;
  margin: 0;
}

.bz-footer__bottom-links {
  display: flex;
  gap: 20px;
}

.bz-footer__bottom-links a {
  color: rgba(255,255,255,.3);
  font-size: 12.5px;
  text-decoration: none !important;
  transition: color .18s;
}

.bz-footer__bottom-links a:hover { color: var(--bz-primary); }

@media (max-width: 576px) {
  .bz-footer__body { padding: 40px 0 36px; }
  .bz-footer__bottom-row { justify-content: center; text-align: center; }
  .bz-footer__bottom-links { justify-content: center; }
}

/* ─── SECTION PATTERNS ────────────────────────────────────────── */
.bz-section { padding: 56px 0; }
.bz-section--bg { background: var(--bz-bg); }

.bz-section-header { text-align: center; margin-bottom: 40px; }

.bz-pill-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bz-primary);
  background: var(--bz-primary-bg);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.bz-section-title {
  font-size: clamp(22px,4vw,34px);
  font-weight: 800;
  color: var(--bz-dark);
  margin-bottom: 8px;
}

.bz-section-subtitle {
  font-size: 15px;
  color: var(--bz-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── POST CARDS ──────────────────────────────────────────────── */
.bz-post-card {
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  overflow: hidden;
  box-shadow: var(--bz-shadow-xs);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bz-post-card:hover { box-shadow: var(--bz-shadow-lg); transform: translateY(-4px); }

.bz-post-card__img-wrap {
  overflow: hidden;
  background: #f3f4f6;
  width: 100%;
  aspect-ratio: 800 / 599;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bz-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  cursor: pointer;
  display: block;
  transition: transform .35s ease;
}

.bz-post-card:hover .bz-post-card__img { transform: scale(1.01); }

.bz-post-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bz-post-card__tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

.bz-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bz-primary-bg);
  color: #0094c4;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

.bz-post-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bz-dark);
  margin-bottom: 8px;
  line-height: 1.45;
  text-decoration: none !important;
  display: block;
  transition: color .18s;
}

.bz-post-card__title:hover { color: var(--bz-primary); }

.bz-post-card__excerpt {
  font-size: 13px;
  color: var(--bz-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .bz-post-card__img-wrap {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
  
  .bz-post-card__img {
    object-fit: cover;
    object-position: center center;
  }
  
  .bz-post-card__body { 
    padding: 14px 16px 16px; 
  }
}
.bz-feature-card {
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  padding: 24px;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}

.bz-feature-card:hover { box-shadow: var(--bz-shadow); transform: translateY(-2px); }

.bz-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bz-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--bz-primary);
  margin-bottom: 16px;
}

.bz-feature-card h4 { font-size: 16px; font-weight: 700; color: var(--bz-dark); margin-bottom: 8px; }
.bz-feature-card p { font-size: 14px; color: var(--bz-text); margin: 0; line-height: 1.7; }

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.bz-sidebar-block {
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.bz-sidebar-block__header {
  padding: 14px 18px;
  background: var(--bz-bg);
  border-bottom: 1px solid var(--bz-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--bz-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bz-sidebar-block__header i { color: var(--bz-primary); }
.bz-sidebar-block__body { padding: 4px 0; }

.bz-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bz-border);
  transition: background .15s;
}

.bz-recent-item:last-child { border-bottom: none; }
.bz-recent-item:hover { background: var(--bz-bg); }

.bz-recent-item img {
  width: 70px !important;      /* beats #detailContent img{width:100%} in style.min.css */
  height: 52px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bz-border);
}

.bz-recent-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bz-dark);
  line-height: 1.45;
  text-decoration: none !important;
  flex: 1;
  min-width: 0;                /* allow text to shrink in flex */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}

.bz-recent-item:hover .bz-recent-item__title { color: var(--bz-primary); }

/* ─── FORMS ───────────────────────────────────────────────────── */
.form-control {
  border-radius: var(--bz-radius-sm) !important;
  border: 1.5px solid var(--bz-border) !important;
  font-size: 14px;
  padding: 10px 14px !important;
  color: var(--bz-dark);
  transition: border-color .18s, box-shadow .18s;
}

.form-control:focus {
  border-color: var(--bz-primary) !important;
  box-shadow: 0 0 0 3px rgba(16,190,237,.15) !important;
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn { border-radius: var(--bz-radius-sm); font-weight: 600; transition: all .18s; }

.btn-primary {
  background: var(--bz-primary) !important;
  border-color: var(--bz-primary) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--bz-primary-dk) !important;
  border-color: var(--bz-primary-dk) !important;
}

.btn-outline-primary {
  border-color: var(--bz-primary) !important;
  color: var(--bz-primary) !important;
}

.btn-outline-primary:hover {
  background: var(--bz-primary) !important;
  color: #fff !important;
}

/* ─── PAGINATION ──────────────────────────────────────────────── */
.pagination .page-link {
  border-radius: var(--bz-radius-sm) !important;
  margin: 0 3px;
  border: 1.5px solid var(--bz-border);
  color: var(--bz-text);
  font-weight: 600;
  padding: 8px 20px;
  transition: all .18s;
  font-size: 14px;
}

.pagination .page-link:hover {
  color: var(--bz-primary);
  border-color: var(--bz-primary);
  background: var(--bz-primary-bg);
}

.pagination .page-item.active .page-link {
  background: var(--bz-primary) !important;
  border-color: var(--bz-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(16,190,237,.3);
}

.pagination .page-item.disabled .page-link {
  color: #c0cad8;
  border-color: var(--bz-border);
  background: #f8fafc;
  pointer-events: none;
}

/* ─── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--bz-primary) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(16,190,237,.35);
  transition: all .2s !important;
}

.back-to-top:hover {
  background: var(--bz-primary-dk) !important;
  transform: translateY(-2px);
  color: #fff !important;
}

/* ─── TABLE ───────────────────────────────────────────────────── */
#chaperDiv table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  overflow: hidden;
  box-shadow: var(--bz-shadow-xs);
  font-size: 14px;
}

#chaperDiv table thead th {
  background: var(--bz-bg);
  color: var(--bz-dark);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--bz-border);
}

#chaperDiv table tbody td,
#chaperDiv table tbody th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--bz-border);
  color: var(--bz-text);
  vertical-align: middle;
}

#chaperDiv table tbody tr:last-child td,
#chaperDiv table tbody tr:last-child th { border-bottom: none; }

#chaperDiv table tbody tr:hover { background: rgba(16,190,237,.03); }

/* ─── ALERT ───────────────────────────────────────────────────── */
.alert { border-radius: var(--bz-radius); border: none; font-size: 14px; }

/* ─── LIST GROUP ──────────────────────────────────────────────── */
.list-group-item {
  border-color: var(--bz-border);
  color: var(--bz-text);
  font-size: 14px;
  transition: background .15s;
}

.list-group-item:hover { background: var(--bz-bg); }

/* ─── BADGE ───────────────────────────────────────────────────── */
.badge-primary { background: var(--bz-primary); }

/* ─── LEGACY SECTION-TITLE ────────────────────────────────────── */
.section-title {
  font-size: 12px;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bz-primary) !important;
}

.section-title span {
  background: var(--bz-primary-bg);
  border-radius: 999px;
  padding: 4px 14px;
}

/* ─── LOGIN PAGE ──────────────────────────────────────────────── */
.bz-auth-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: var(--bz-bg);
}

.bz-auth-card {
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--bz-shadow);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.bz-auth-left {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 400px;
}

.bz-auth-left img { max-width: 220px; width: 100%; height: auto; margin-bottom: 24px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }

.bz-auth-left h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.bz-auth-left p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.65; }

.bz-auth-right { padding: 48px 40px; }

.bz-auth-right h3 { font-size: 24px; font-weight: 800; color: var(--bz-dark); margin-bottom: 6px; }
.bz-auth-right p.subtitle { font-size: 14px; color: var(--bz-muted); margin-bottom: 32px; }

.bz-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bz-muted);
  font-size: 13px;
  margin: 24px 0;
}

.bz-divider::before,
.bz-divider::after { content: ''; flex: 1; height: 1px; background: var(--bz-border); }

/* ─── CONTACT PAGE ────────────────────────────────────────────── */
.bz-contact-hero {
  background: linear-gradient(135deg, var(--bz-primary-bg) 0%, rgba(15,23,42,.04) 100%);
  padding: 56px 0 48px;
  text-align: center;
}

.bz-contact-hero h1 { font-size: clamp(26px,4vw,38px); margin-bottom: 10px; }
.bz-contact-hero p { font-size: 16px; color: var(--bz-muted); max-width: 480px; margin: 0 auto; }

.bz-contact-info-card {
  background: #fff;
  border: 1px solid var(--bz-border);
  border-radius: var(--bz-radius);
  padding: 28px;
  height: 100%;
  box-shadow: var(--bz-shadow-xs);
}

.bz-contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bz-primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--bz-primary);
  margin-bottom: 14px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */

/* Tablet: center the lone 3rd feature card when 2-per-row layout orphans it */
@media (min-width: 768px) and (max-width: 991px) {
  .bz-feature-card-row .col-md-6:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}

@media (max-width: 767px) {
  .bz-section { padding: 36px 0; }
  .bz-post-card__img-wrap { height: 180px; }
  .bz-post-card__body { padding: 14px 16px 16px; }
  .bz-feature-card { padding: 18px; }
  .bz-footer { margin-top: 36px; }
  .bz-footer__desc { max-width: 100%; }
  .bz-auth-left { min-height: 220px; padding: 32px 24px; }
  .bz-auth-right { padding: 32px 24px; }
  .bz-contact-hero { padding: 36px 0 32px; }
  .pagination .page-link { padding: 7px 14px; font-size: 13px; }
}
