/*
Theme Name: Business Library
Theme URI: https://businesslibrary.com.au
Author: Business Library
Author URI: https://businesslibrary.com.au
Description: Business Library site theme
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: 
License URI: 
Text Domain: businesslibrary
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

/* ==========================================================================
   BUSINESS LIBRARY - PHASE 1 UI UPGRADES (DROPBOX STYLE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bl-primary: #0061FE;
  /* Dropbox blue */
  --bl-primary-hover: #004ecc;
  --bl-text-main: #1e1e24;
  --bl-text-muted: #64646b;
  --bl-bg-light: #f7f9fa;
  --bl-border: #e6e8eb;
  --bl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --bl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --bl-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
  --bl-radius: 8px;
}

/* 1. Header Tightening (Add class 'bl-tight-header' to your header section or wrapper) */
.bl-tight-header,
.site-header {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 60px !important;
  background-color: #ffffff;
  border-bottom: 1px solid var(--bl-border);
}

.bl-tight-header img,
.custom-logo {
  max-width: 180px !important;
  height: auto;
}

/* 2. Typography & Hierarchy Setup */
body,
.bl-body-text {
  font-family: 'DM Sans', sans-serif !important;
  color: var(--bl-text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.bl-heading {
  font-family: 'Inter', serif !important;
  font-weight: 400;
  color: var(--bl-text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

/* (Removed) DM Serif overrides — React-matching UI uses Inter */

/* ==========================================================================
   LIBRARY LAYOUT — Sidebar + Right Pane
   ========================================================================== */

:root {
  --lib-sidebar-w: 256px;
  --lib-nav-h: 64px;
  /* matches bl-navbar height */
}

/* ── Shell ── */
.lib-shell {
  display: flex;
  min-height: calc(100vh - var(--lib-nav-h));
  background: #f0f2f5;
}

/* ── Sidebar ── */
.lib-sidebar {
  width: var(--lib-sidebar-w);
  min-height: calc(100vh - var(--lib-nav-h));
  background: #ffffff;
  border-right: 1px solid #e8eaed;
  position: sticky;
  top: var(--lib-nav-h);
  align-self: flex-start;
  height: calc(100vh - var(--lib-nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.lib-sidebar::-webkit-scrollbar {
  width: 4px;
}

.lib-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.lib-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 20px 18px 8px;
}

.lib-cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  cursor: pointer;
  color: #374151;
  border-left: 3px solid transparent;
  margin: 1px 0;
  transition: background .12s, color .12s;
  text-decoration: none;
}

.lib-cat-item:hover {
  background: #f8f9fb;
  color: #0d0f12;
}

.lib-cat-item.active {
  background: #eff6ff;
  border-left-color: #1D5FE8;
  color: #1e40af;
}

.lib-cat-item.active .lib-cat-icon {
  background: #1D5FE8;
  border-color: #1D5FE8;
}

.lib-cat-item.active .lib-cat-icon svg {
  stroke: #fff;
}

.lib-cat-item.active .lib-cat-name {
  font-weight: 700;
}

.lib-cat-item.active .lib-cat-count {
  background: rgba(29, 95, 232, .12);
  color: #1D5FE8;
}

.lib-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f3f6;
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.lib-cat-icon svg {
  width: 15px;
  height: 15px;
  stroke: #6b7280;
  transition: stroke .15s;
  fill: none;
}

.lib-cat-item:hover .lib-cat-icon {
  background: #e8eaed;
}

/* Keep active icon blue even on hover */
.lib-cat-item.active:hover .lib-cat-icon {
  background: #1D5FE8;
  border-color: #1D5FE8;
}

.lib-cat-item.active:hover .lib-cat-icon svg {
  stroke: #fff;
}

.lib-cat-name {
  font-size: 13.5px;
  font-weight: 500;
  flex: 1;
}

.lib-cat-count {
  font-size: 11px;
  font-weight: 600;
  background: #f1f3f6;
  color: #9ca3af;
  padding: 2px 8px;
  border-radius: 20px;
}

.lib-sidebar-divider {
  height: 1px;
  background: #e8eaed;
  margin: 10px 18px;
}

.lib-sidebar-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid #e8eaed;
}

.lib-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 0;
  transition: color .12s;
}

.lib-sidebar-footer a:hover {
  color: #1D5FE8;
}

.lib-sidebar-footer a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Main Pane ── */
.lib-main {
  flex: 1;
  min-width: 0;
  padding: 0;
  min-height: calc(100vh - var(--lib-nav-h));
  display: flex;
  flex-direction: column;
}

.lib-main--full {
  width: 100%;
}

#libPane {
  padding: 32px 32px 64px;
  padding-top: 0px;
  flex: 1;
}

.lib-main-search {
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
  border-bottom: none;
  background: #f0f2f5;
  position: sticky;
  top: var(--lib-nav-h);
  z-index: 10;
}

.lib-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 288px; /* React md:w-72 */
}

.lib-search-wrapper .lib-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.lib-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lib-search-input::placeholder {
  color: #9ca3af;
}

.lib-search-input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ── Welcome State ── */
.lib-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--lib-nav-h) - 96px);
  text-align: center;
  padding: 40px 20px;
}

.lib-welcome-graphic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 36px;
  max-width: 240px;
}

.lib-welcome-folder {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8eaed;
  animation: libFloatIn .5s ease both;
  transition: transform .2s;
  cursor: default;
}

.lib-welcome-folder:hover {
  transform: translateY(-3px) scale(1.04);
}

.lib-welcome-folder svg {
  width: 22px;
  height: 22px;
}

@keyframes libFloatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lib-welcome-folder:nth-child(1) {
  animation-delay: .05s
}

.lib-welcome-folder:nth-child(2) {
  animation-delay: .10s
}

.lib-welcome-folder:nth-child(3) {
  animation-delay: .15s
}

.lib-welcome-folder:nth-child(4) {
  animation-delay: .20s
}

.lib-welcome-folder:nth-child(5) {
  animation-delay: .25s
}

.lib-welcome-folder:nth-child(6) {
  animation-delay: .30s
}

.lib-welcome h2 {
  font-family: 'DM Serif Display', serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #0d0f12;
  margin-bottom: 10px;
  letter-spacing: -.3px;
  animation: libFloatIn .5s .3s ease both;
}

.lib-welcome p {
  font-size: 14.5px;
  color: #6b7280;
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 28px;
  animation: libFloatIn .5s .4s ease both;
}

.lib-welcome-stats {
  display: flex;
  gap: 16px;
  animation: libFloatIn .5s .5s ease both;
}

.lib-stat {
  text-align: center;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
}

.lib-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #0d0f12;
  display: block;
}

.lib-stat-label {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 500;
}

/* ── Pane header ── */
.lib-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: libFloatIn .3s ease both;
}

.lib-pane-header--center {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;
}

@media (max-width: 768px) {
  .lib-main-search {
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .lib-search-wrapper {
    max-width: 100%;
  }
}

.lib-pane-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 6px;
}

.lib-pane-breadcrumb button {
  background: none;
  border: none;
  cursor: pointer;
  color: #1D5FE8;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0;
  transition: opacity .15s;
}

.lib-pane-breadcrumb button:hover {
  opacity: .7;
}

.lib-bc-sep {
  color: #d1d5db;
}

.lib-pane-title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0d0f12;
  letter-spacing: -0.02em;
}

.lib-pane-subtitle {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.lib-pane-header .lib-pane-breadcrumb,
.lib-pane-header .lib-pane-breadcrumb button,
.lib-pane-header .lib-pane-breadcrumb span {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.bl-catcard--interactive {
  appearance: none;
  text-align: left;
  border: 1px solid #e2e8f0;
  width: 100%;
  cursor: pointer;
}

/* ── Folder Grid (right pane) ── */
.lib-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  animation: libFloatIn .35s ease both;
}

.lib-folder-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 20px 18px 18px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
  overflow: hidden;
}

.lib-folder-card:hover {
  border-color: #1D5FE8;
  box-shadow: 0 4px 20px rgba(29, 95, 232, .1);
  transform: translateY(-2px);
}

.lib-folder-card:hover .lib-folder-card-name {
  color: #1e40af;
}

.lib-folder-card:hover .lib-folder-card-icon {
  background: #eff6ff;
  border-color: rgba(29, 95, 232, .2);
}

.lib-folder-card:hover .lib-folder-card-icon svg {
  stroke: #1D5FE8;
}

.lib-folder-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f3f6;
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background .15s, border-color .15s;
}

.lib-folder-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #6b7280;
  fill: none;
  transition: stroke .15s;
}

.lib-folder-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0d0f12;
  margin-bottom: 4px;
  transition: color .15s;
}

.lib-folder-card-count {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 500;
}

.lib-folder-free {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9.5px;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Doc table wrap in pane */
.doc-table-wrap {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  animation: libFloatIn .3s ease both;
}

/* Row stagger for doc table */
@keyframes libRowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table.doc-table tbody tr {
  animation: libRowIn .25s ease both;
}

table.doc-table tbody tr:nth-child(1) {
  animation-delay: .03s
}

table.doc-table tbody tr:nth-child(2) {
  animation-delay: .06s
}

table.doc-table tbody tr:nth-child(3) {
  animation-delay: .09s
}

table.doc-table tbody tr:nth-child(4) {
  animation-delay: .12s
}

table.doc-table tbody tr:nth-child(5) {
  animation-delay: .15s
}

table.doc-table tbody tr:nth-child(6) {
  animation-delay: .18s
}

/* ── Mobile Header ── */
.lib-mobile-header {
  display: none;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: var(--lib-nav-h);
  z-index: 10;
}
.lib-sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.lib-sidebar-toggle svg { width: 16px; height: 16px; stroke: #374151; }
.lib-sidebar-toggle:hover { background: #f8f9fb; }

/* Mobile */
@media (max-width: 768px) {
  .lib-mobile-header { display: block; }
  .lib-shell { flex-direction: column; }

  .lib-sidebar {
    position: fixed;
    top: var(--lib-nav-h);
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .25s;
  }

  .lib-sidebar.open {
    transform: translateX(0);
  }

  .lib-main {
    padding: 0;
  }

  .lib-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  /* Minimise all side padding on small screens */
  #libPane {
    padding: 0 4px 32px;
  }

  .lib-main-search {
    padding: 10px 8px;
  }

  .lib-search-wrapper {
    max-width: 100%;
  }
}



/* 3. Category Cards (User Provided) */

/* ── SECTION HEADING ── */
.bl-section-head {
  max-width: 1100px;
  margin: 0 auto 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bl-section-head h2 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.bl-section-subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #6b7280;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.bl-section-head--center {
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  text-align: center;
  margin-bottom: 28px;
}

.bl-section-head--center a {
  margin-top: 10px;
}

.bl-section-head--center a svg {
  margin-left: 2px;
}

/* ==========================================================================
   REACT-LIKE CATEGORY CARDS (FolderCard)
   ========================================================================== */

.bl-catgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .bl-catgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .bl-catgrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.bl-catcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bl-catcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
}

.bl-catcard:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 12px 24px -8px rgba(37, 99, 235, 0.18);
}

.bl-catcard__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  transition: transform 0.3s ease;
}

.bl-catcard:hover .bl-catcard__icon {
  transform: scale(1.1);
}

.bl-catcard__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-catcard__title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.bl-catcard__desc {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-catcard__badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   VALUE PROPS (React: Certified/AU/Ready)
   ========================================================================== */

.bl-valueprops {
  border-top: 1px solid #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
}

.bl-valueprops .container {
  padding-top: 56px;
  padding-bottom: 56px;
}

.bl-valueprops__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bl-valueprops__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.bl-valueprops__item {
  text-align: center;
}

.bl-valueprops__icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
}

.bl-valueprops__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-valueprops__title {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
}

.bl-valueprops__desc {
  margin: 8px auto 0;
  max-width: 340px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

/* ==========================================================================
   CTA FORM (React-like CTA banner but keeps fields)
   ========================================================================== */

.bl-ctaform .container {
  padding-top: 56px;
  padding-bottom: 56px;
}

.bl-ctaform__card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: rgba(37, 99, 235, 0.06);
  padding: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .bl-ctaform__card {
    padding: 48px;
  }
}

.bl-ctaform__title {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.bl-ctaform__subtitle {
  margin: 10px auto 0;
  max-width: 560px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

.bl-ctaform__form {
  margin: 24px auto 0;
  max-width: 560px;
}

.bl-ctaform__form .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px;
  padding: 12px 14px;
}

.bl-ctaform__form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ==========================================================================
   FOOTER (match React footer styling; keep links)
   ========================================================================== */

.bl-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.bl-footer .container {
  padding-top: 40px;
  padding-bottom: 24px;
}

.bl-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .bl-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bl-footer__logo {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.bl-footer__logo-primary {
  color: #2563eb;
}

.bl-footer__tagline {
  margin: 8px 0 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  max-width: 320px;
}

.bl-footer__heading {
  margin: 0 0 12px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.bl-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.bl-footer__list a {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bl-footer__list a:hover,
.bl-footer__list a:focus {
  color: #0f172a;
}

.bl-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .bl-footer__bottom {
    flex-direction: row;
  }
}

.bl-footer__copyright {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 12px;
  color: #94a3b8;
}

.bl-footer .social-links a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 12px;
  transition: color 0.15s ease;
}

.bl-footer .social-links a:first-child {
  margin-left: 0;
}

.bl-footer .social-links a:hover,
.bl-footer .social-links a:focus {
  color: #0f172a;
}

/* ==========================================================================
   CONTACT PAGE TYPOGRAPHY OVERRIDES
   Force Inter over global DM Serif rules
   ========================================================================== */

.contact-section.alignfull .wp-block-heading,
.contact-section.alignfull h1,
.contact-section.alignfull h2,
.contact-section.alignfull h3,
.contact-section.alignfull .wp-block-post-title,
.contact-section.alignfull .wp-block-post-title + p,
.contact-section.alignfull .wp-block-post-title ~ h2,
.contact-section.alignfull .wp-block-post-title ~ h3,
.contact-section.alignfull .wp-block-post-title ~ p {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.bl-section-head a {
  font-size: 13.5px;
  font-weight: 500;
  color: #1D5FE8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bl-section-head a:hover {
  text-decoration: underline;
}

.bl-section-head a svg {
  width: 14px;
  height: 14px;
  stroke: #1D5FE8;
  stroke-width: 2;
  fill: none;
}

/* ── CARDS GRID ── */
.bl-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── SINGLE CARD ── */
.bl-card {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bl-card:hover {
  transform: translateY(-6px);
}

.bl-card__tab {
  height: 10px;
  width: 52%;
  border-radius: 6px 6px 0 0;
  background: var(--card-tab);
  margin-left: 14px;
  transition: width 0.2s ease;
}

.bl-card:hover .bl-card__tab {
  width: 62%;
}

.bl-card__body {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 0 10px 10px 10px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 175px;
  transition: border-color 0.2s, box-shadow 0.22s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 3px 0 var(--card-shadow);
}

.bl-card:hover .bl-card__body {
  border-color: var(--card-accent);
  box-shadow: 0 8px 28px rgba(29, 95, 232, 0.12), 0 3px 0 var(--card-shadow);
}

.bl-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.22s;
}

.bl-card:hover .bl-card__icon {
  background: var(--card-accent);
  transform: scale(1.08);
}

.bl-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--card-accent);
  stroke-width: 1.7;
  fill: none;
  transition: stroke 0.2s;
}

.bl-card:hover .bl-card__icon svg {
  stroke: #ffffff;
}

.bl-card__name {
  font-size: 14.5px;
  font-weight: 600;
  color: #0F1A2E;
  line-height: 1.3;
  margin-bottom: 4px;
}

.bl-card__count {
  font-size: 12px;
  color: #7A8CA0;
  font-weight: 400;
}

.bl-card__browse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--card-accent);
  margin-top: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.bl-card:hover .bl-card__browse {
  opacity: 1;
  transform: translateY(0);
}

.bl-card__browse svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* ── CARD COLOUR THEMES — all blue (Accounts theme) ── */
.bl-card--accounts,
.bl-card--admin,
.bl-card--employment,
.bl-card--ohw,
.bl-card--policy {
  --card-tab: #1D5FE8;
  --card-bg: #EEF4FF;
  --card-border: #C7D9FA;
  --card-shadow: #C7D9FA;
  --card-icon-bg: #DDEAFD;
  --card-accent: #1D5FE8;
}

/* ── CARDS RESPONSIVE ── */
@media (max-width: 900px) {
  .bl-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .bl-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .bl-card__body {
    min-height: 150px;
  }
}

@media (max-width: 360px) {
  .bl-cards {
    grid-template-columns: 1fr;
  }
}

/* Larger gap for categories page card grid */
.tab-content .bl-cards {
  gap: 32px;
  padding: 8px 0;
}

/* ==========================================================================
   SUB-FOLDER CARDS (User Provided)
   ========================================================================== */

/* Heading */
.bl-folder-heading,
#site-content h2.bl-folder-heading {
  font-family: 'DM Serif Display', serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #0F1A2E !important;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* ── FOLDER GRID ── */
.bl-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

/* ── FOLDER CARD ── */
.bl-folder {
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bl-folder:hover {
  transform: translateY(-5px);
}

.bl-folder__tab {
  height: 10px;
  width: 48%;
  border-radius: 5px 5px 0 0;
  background: #1D5FE8;
  margin-left: 12px;
  transition: width 0.2s ease;
}

.bl-folder:hover .bl-folder__tab {
  width: 58%;
}

.bl-folder__body {
  background: #EEF4FF;
  border: 1.5px solid #C7D9FA;
  border-radius: 0 10px 10px 10px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 0 #C7D9FA, 0 4px 8px rgba(29, 95, 232, 0.05);
  transition: border-color 0.2s, box-shadow 0.22s, background 0.2s;
  position: relative;
  min-height: 150px;
}

.bl-folder:hover .bl-folder__body {
  background: #E4EDFF;
  border-color: #1D5FE8;
  box-shadow: 0 2px 0 #1D5FE8, 0 10px 28px rgba(29, 95, 232, 0.13);
}

.bl-folder__icon {
  width: 48px;
  height: 48px;
}

.bl-folder__icon svg {
  width: 48px;
  height: 48px;
}

.bl-folder__name {
  font-size: 14px;
  font-weight: 600;
  color: #0F1A2E;
  line-height: 1.3;
  margin-bottom: 5px;
}

.bl-folder__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #1D5FE8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid #C7D9FA;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bl-folder:hover .bl-folder__badge {
  background: #1D5FE8;
  color: #ffffff;
  border-color: #1D5FE8;
}

.bl-folder__badge svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.bl-folder__arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
}

.bl-folder__arrow svg {
  width: 13px;
  height: 13px;
  stroke: #1D5FE8;
  stroke-width: 2.2;
  fill: none;
}

.bl-folder:hover .bl-folder__arrow {
  opacity: 1;
  transform: scale(1);
  background: #1D5FE8;
}

.bl-folder:hover .bl-folder__arrow svg {
  stroke: #ffffff;
}

.bl-folder__free {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #D1FAE5;
  color: #059669;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid #A7E8CC;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .bl-folders {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   PREMIUM DOCUMENT TABLE (User Provided)
   ========================================================================== */

/* Toolbar */
.dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e8eaed;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
}

.dt-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dt-count-pill {
  background: #f1f3f6;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e8eaed;
}

/* Tab strip */
.dt-tab-strip {
  display: flex;
  gap: 2px;
  background: #f1f3f6;
  border: 1px solid #e8eaed;
  padding: 3px;
  border-radius: 10px;
}

.dt-tab-strip button {
  padding: 5px 14px;
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  transition: all .15s;
  white-space: nowrap;
}

.dt-tab-strip button.active {
  background: #ffffff;
  color: #0d0f12;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

/* Search */
.dt-search-wrap {
  position: relative;
}

.dt-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  opacity: .35;
  pointer-events: none;
}

.dt-search-input {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 8px 13px 8px 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #0d0f12;
  background: #f8f9fb;
  width: 210px;
  outline: none;
  transition: border .15s, width .25s, background .15s, box-shadow .15s;
}

.dt-search-input::placeholder {
  color: #9ca3af;
}

.dt-search-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  width: 260px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* Table */
table.doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.doc-table thead tr {
  background: #f8f9fb;
  border-bottom: 1px solid #e8eaed;
}

table.doc-table th {
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px 20px;
  text-align: left;
  white-space: nowrap;
}

table.doc-table th:nth-child(1) {
  width: 62%;
}

table.doc-table th:nth-child(2) {
  width: 12%;
  text-align: center;
}

table.doc-table th:nth-child(3) {
  width: 12%;
  text-align: center;
}

table.doc-table th:nth-child(4) {
  width: 14%;
  text-align: right;
}

table.doc-table tbody tr {
  border-bottom: 1px solid #e8eaed;
  transition: background .1s;
}

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

table.doc-table tbody tr:hover {
  background: #f5f8ff;
}

table.doc-table tbody tr:hover .dt-doc-name {
  color: #2563eb;
}

table.doc-table td {
  padding: 13px 20px;
  font-size: 13.5px;
  color: #0d0f12;
  vertical-align: middle;
}

/* Name cell */
.dt-name-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}

.dt-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.dt-doc-icon.word {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #bfdbfe;
}

.dt-doc-icon.pdf {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #fecaca;
}

.dt-doc-icon svg {
  width: 17px;
  height: 17px;
}

.dt-doc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0d0f12;
  transition: color .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}

/* Price — plain text */
.dt-price-cell {
  text-align: center;
}

.dt-price-plain {
  font-size: 13px;
  font-weight: 600;
}

.dt-price-plain.free {
  color: #15803d;
}

.dt-price-plain.paid {
  color: #0d0f12;
}

/* Type pill */
.dt-type-cell {
  text-align: center;
}

.dt-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .05em;
}

.dt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dt-type-pill.word {
  background: #eff6ff;
  color: #1e40af;
}

.dt-type-pill.word .dt-dot {
  background: #2563eb;
}

.dt-type-pill.pdf {
  background: #fef2f2;
  color: #b91c1c;
}

.dt-type-pill.pdf .dt-dot {
  background: #b91c1c;
}

/* Actions — always visible */
.dt-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.dt-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
}

.dt-icon-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.dt-icon-btn:hover {
  border-color: #d1d5db;
  background: #f1f3f6;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.dt-icon-btn.dt-cart {
  color: #6b7280;
}

.dt-icon-btn.dt-cart svg {
  stroke: currentColor;
}

.dt-icon-btn.dt-cart:hover {
  color: #1D5FE8; /* Turn the icon blue on hover instead of filling the background */
}

.dt-icon-btn.dt-cart:active {
  transform: scale(0.94);
}

/* Cart-added state */
.button-container.added-to-cart .dt-cart {
  display: none !important;
}

.button-container:not(.added-to-cart) .dt-cart-added {
  display: none !important;
}

@keyframes dt-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25) rotate(-8deg);
  }

  70% {
    transform: scale(0.95) rotate(4deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.dt-icon-btn.dt-cart-added {
  background: #059669;
  border-color: #059669;
  animation: dt-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.dt-icon-btn.dt-cart-added svg {
  stroke: #fff;
}

/* Tooltip — hidden */
.dt-tip {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {

  /* ── Tab content full-width, reduced padding ── */
  .tab-content {
    padding: 16px 12px;
    max-width: 100%;
    border-radius: 0 0 8px 8px;
  }

  .tabs-container,
  .unified-tabs,
  .bl-tabbar {
    max-width: 100%;
    padding: 0 12px;
    border-radius: 8px 8px 0 0;
  }

  /* ── Toolbar: stack vertically, left-align search ── */
  .dt-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }

  .dt-toolbar-left {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
  }

  .dt-toolbar-left::-webkit-scrollbar { display: none; }

  /* ── Filter tab strip: scrollable, no wrap ── */
  .dt-tab-strip {
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .dt-tab-strip::-webkit-scrollbar { display: none; }

  .dt-tab-strip button {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 12px;
  }

  /* ── Search full width ── */
  .dt-search-wrap {
    width: 100%;
  }

  .dt-search-input {
    width: 100%;
    box-sizing: border-box;
  }

  .dt-search-input:focus {
    width: 100%;
  }

  /* ── Table: hide Type column, tighten padding ── */
  table.doc-table {
    table-layout: fixed;
    width: 100%;
  }

  table.doc-table th,
  table.doc-table td {
    padding: 10px 8px;
  }

  /* Template name column takes most space */
  table.doc-table th:nth-child(1) {
    width: 55%;
  }

  /* Price column */
  table.doc-table th:nth-child(2) {
    width: 22%;
    text-align: center;
  }

  /* Type column — hidden on mobile */
  table.doc-table th:nth-child(3),
  table.doc-table td:nth-child(3) {
    display: none;
  }

  /* Actions column */
  table.doc-table th:nth-child(4),
  table.doc-table td:nth-child(4) {
    width: 23%;
    text-align: center;
  }

  /* Name cell: smaller icon, tighter gap */
  .dt-name-cell {
    gap: 8px;
  }

  .dt-doc-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .dt-doc-name {
    font-size: 12.5px;
  }

  /* Action buttons: slightly smaller */
  .dt-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .dt-icon-btn svg {
    width: 13px;
    height: 13px;
  }

  .dt-row-actions {
    gap: 4px;
    justify-content: center;
  }

  /* Price plain text */
  .dt-price-plain {
    font-size: 12px;
  }

  /* doc-count pill smaller */
  .dt-count-pill {
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* 4. Clear Site-wide CTA */

.bl-btn-primary {
  background-color: var(--bl-primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: var(--bl-radius) !important;
  padding: 12px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0, 97, 254, 0.3) !important;
}

.bl-btn-primary:hover {
  background-color: var(--bl-primary-hover) !important;
  box-shadow: 0 4px 10px rgba(0, 97, 254, 0.4) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   USER PROVIDED CATEGORY TAB BAR CSS
   ========================================================================== */

/* ── TAB BAR WRAPPER ── */
.bl-tabbar {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 8px 8px 0 0;
  padding: 0 24px;
  max-width: 90%;
  width: 100%;
  box-sizing: border-box;
  margin: 24px auto 0;
}

.bl-tabbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.bl-tabbar__inner::-webkit-scrollbar {
  display: none;
}

/* ── EACH TAB ── */
.bl-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: #5A6478;
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.12s;
  user-select: none;
}

.bl-tab:hover {
  color: #1D5FE8;
  background: #EEF4FF;
  border-color: #C7D9FA;
}

.bl-tab:active {
  transform: scale(0.97);
}

.bl-tab.active {
  color: #ffffff !important;
  background: #1D5FE8;
  border-color: #1D5FE8;
  font-weight: 600;
}

.bl-tab.active:hover {
  background: #1448C0;
  border-color: #1448C0;
}

/* Tab icon */
.bl-tab__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl-tab__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  display: block;
}

/* Badge */
.bl-tab__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(29, 95, 232, 0.1);
  color: #1D5FE8;
  transition: background 0.15s, color 0.15s;
  line-height: 1.6;
}

.bl-tab.active .bl-tab__badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.bl-tab:hover:not(.active) .bl-tab__badge {
  background: rgba(29, 95, 232, 0.15);
}

/* Divider between All and category tabs */
.bl-tab-divider {
  width: 1px;
  height: 22px;
  background: #E2E8F0;
  flex-shrink: 0;
  margin: 0 4px;
}

@media (max-width: 640px) {
  .bl-tabbar {
    padding: 0 12px;
  }

  .bl-tab {
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* ==========================================================================
   USER PROVIDED HEADER / NAVBAR CSS
   ========================================================================== */


:root {
  --blue: #1D5FE8;
  --blue-dark: #1448C0;
  --blue-light: #EEF4FF;
  --text: #0F1A2E;
  --muted: #5A6478;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --nav-h: 64px;
}

/* ── NAV ── */
.bl-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.bl-nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Logo */
.bl-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.bl-logo__mark {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bl-logo__mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-logo__text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
}

.bl-logo__text span {
  color: var(--blue);
}

/* Nav links */
.bl-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.bl-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
  position: relative;
  white-space: nowrap;
}

.bl-nav__link:hover {
  color: var(--text);
  background: var(--blue-light);
}

.bl-nav__link.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

/* Dropdown trigger */
.bl-nav__link--drop {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bl-nav__link--drop svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}

.bl-nav__drop:hover .bl-nav__link--drop svg {
  transform: rotate(180deg);
}

/* Dropdown */
.bl-nav__drop {
  position: relative;
}

.bl-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
}

.bl-nav__drop:hover .bl-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bl-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 7px;
  transition: background 0.12s;
}

.bl-dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.bl-dropdown a .dd-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl-dropdown a .dd-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
  stroke-width: 1.8;
  fill: none;
}

.dd-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Right side */
.bl-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.bl-nav__browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bl-nav__browse svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.bl-nav__search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: text;
  transition: border-color 0.15s;
  width: 190px;
}

.bl-nav__search:hover {
  border-color: var(--blue);
}

.bl-nav__search svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.bl-nav__cart {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.bl-nav__cart:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.bl-nav__cart svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  stroke-width: 1.8;
  fill: none;
}

.bl-nav__cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 2px 3px 0 5px; /* 2px top and extra left padding to visually center */
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-sizing: border-box;
  line-height: 1;
}

.bl-btn-cta {
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.bl-btn-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.bl-btn-cta:active {
  transform: translateY(0);
}

/* Hamburger (mobile) */
.bl-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
}

.bl-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer */
.bl-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--white);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bl-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.bl-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.bl-mobile-menu a:last-child {
  border-bottom: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {

  .bl-nav__links,
  .bl-nav__search {
    display: none;
  }

  .bl-hamburger {
    display: flex;
  }

  .bl-nav__right {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .bl-btn-cta {
    display: none;
  }
}

/* ==========================================================================
   USER PROVIDED HERO CSS
   ========================================================================== */

/* ── HERO ── */
.bl-hero {
  background: #f5f7fb;
  padding: 72px 24px 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Very subtle bottom wave shape */
.bl-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 28px;
  background: #f5f7fb;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.bl-hero__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.bl-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.bl-hero__title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: clamp(1.875rem, 4vw, 3rem) !important; /* Tailwind text-3xl md:text-5xl */
  font-weight: 800 !important; /* font-extrabold */
  color: #0f172a !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bl-hero__subtitle {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.125rem !important; /* Tailwind text-lg */
  font-weight: 400 !important;
  color: #64748b !important;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.bl-hero__search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  margin-top: 24px;
}

.bl-hero__search-field {
  position: relative;
  flex: 1;
}

.bl-hero__search-field svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  stroke-width: 2;
  fill: none;
}

.bl-hero__search-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  background: #ffffff;
  box-shadow: none;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bl-hero__search-field input::placeholder {
  color: #94a3b8;
}

.bl-hero__search-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #ffffff;
}

.bl-hero__search-btn {
  height: 40px;
  padding: 0 16px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ── PHOTO STRIP ── */
.bl-photo-strip {
  display: flex;
  gap: 0;
  overflow: hidden;
  height: 160px;
}

.bl-photo-strip__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #d1dce8;
}

.bl-photo-strip__item img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 500%;
  max-width: none;
  object-fit: cover;
}

/* Slice the panorama using absolute left shifts */
.bl-photo-strip__item:nth-child(1) img {
  left: 0%;
}

.bl-photo-strip__item:nth-child(2) img {
  left: -100%;
}

.bl-photo-strip__item:nth-child(3) img {
  left: -200%;
}

.bl-photo-strip__item:nth-child(4) img {
  left: -300%;
}

.bl-photo-strip__item:nth-child(5) img {
  left: -400%;
}

@media (max-width: 600px) {
  .bl-hero {
    padding: 40px 16px 40px;
  }

  .bl-hero__search {
    flex-direction: column;
    align-items: stretch;
  }

  .bl-hero__search-btn {
    width: 100%;
  }

  .bl-photo-strip {
    height: 120px;
  }

  .bl-photo-strip__item:nth-child(n+4) {
    display: none;
  }

  /* Mobile adjusts to 3 items, so image needs 300% width and new slice geometries */
  .bl-photo-strip__item img {
    width: 300%;
  }

  .bl-photo-strip__item:nth-child(1) img {
    left: 0%;
  }

  .bl-photo-strip__item:nth-child(2) img {
    left: -100%;
  }

  .bl-photo-strip__item:nth-child(3) img {
    left: -200%;
  }
}

/* ──────────────────────────────────────────────────────────── 
   Preview Modal System
   ──────────────────────────────────────────────────────────── */
.bl-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 15, 18, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bl-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.bl-modal-window {
  background: #fff;
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bl-modal-overlay.open .bl-modal-window {
  transform: translateY(0) scale(1);
}

.bl-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fb;
}

.bl-modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #0d0f12;
  margin: 0;
}

.bl-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #6b7280;
  transition: color 0.15s, transform 0.15s;
  border-radius: 6px;
}

.bl-modal-close:hover {
  background: #e8eaed;
  color: #111827;
  transform: scale(1.05);
}

.bl-modal-close svg {
  width: 20px;
  height: 20px;
}

.bl-modal-body {
  flex: 1;
  position: relative;
  background: #f1f3f6;
  overflow-y: auto;
  display: block;
  text-align: center;
  padding: 32px 16px;
}

.bl-modal-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Spinner Loader */
.bl-modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.bl-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8eaed;
  border-top-color: #1D5FE8;
  border-radius: 50%;
  animation: bl-spin 1s linear infinite;
}

@keyframes bl-spin {
  to { transform: rotate(360deg); }
}