/* BunPilot CSS Framework - Core Runtime Styles */
/* This file contains only the essential base styles needed for BunPilot pages */
/* Note: bb- class prefixes are kept for backward compatibility */

/* ========================================
   Reset & Base
   ======================================== */
* {
    box-sizing: border-box;
}

/* Reset heading defaults */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

/* Reset paragraph and other text elements */
p {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    /* Global body font is set via --bp-body-font on :root (Styles → Text → Body in editor).
       Falls back to Inter when no global font is configured. */
    font-family: var(--bp-body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bb-page {
    min-height: 100vh;
    position: relative;
}

/* ========================================
   Section Styles
   ======================================== */
.bb-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Allow overflow for sections containing menus and ensure dropdowns appear above other sections */
.bb-section:has(.bb-menu) {
    overflow: visible;
    z-index: 10;
}

/* Fallback for browsers without :has() support */
.bb-section-with-menu {
    overflow: visible !important;
    z-index: 10;
}

/* Allow search dropdown to overflow section boundaries */
.bb-section:has(.bb-blog-search-container:focus-within) {
    overflow: visible !important;
}

/* Fallback class for sections with search */
.bb-section-with-search {
    overflow: visible !important;
}

/* Remove overflow hidden when section uses sticky positioning */
.bb-section[style*="position: sticky"],
.bb-section[style*="position:sticky"] {
    overflow: visible !important;
}

/* Ensure sections-container allows sticky positioning */
.sections-container {
    overflow: visible !important;
}

/* ========================================
   Absolute/Fixed Positioned Widget Support
   Allows widgets to escape their container bounds (Elementor-style)
   ======================================== */

/* Allow overflow for sections containing overflow carousels */
.bb-section:has(.bb-ic-overflow-viewport) {
    overflow: visible !important;
}

/* Prevent horizontal scrollbar from overflow carousels */
body:has(.bb-ic-overflow-viewport) {
    overflow-x: clip;
}

/* Allow overflow for sections containing absolute/fixed positioned widgets */
.bb-section:has([data-widget-position="absolute"]),
.bb-section:has([data-widget-position="fixed"]) {
    overflow: visible !important;
}

/* Fallback class for browsers without :has() support */
.bb-section-with-absolute {
    overflow: visible !important;
}

/* ========================================
   Text Animations
   ======================================== */
/* Hide text animation elements until JS initializes */
[data-text-animation] {
    visibility: hidden;
}

/* Typewriter cursor blink */
@keyframes bb-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.bb-typewriter-cursor {
    animation: bb-cursor-blink 0.7s step-end infinite;
    font-weight: 100;
}

/* Allow overflow for columns containing absolute/fixed positioned widgets */
.bb-column:has([data-widget-position="absolute"]),
.bb-column:has([data-widget-position="fixed"]) {
    overflow: visible !important;
}

.bb-column:has([data-widget-position="absolute"]) .column-content,
.bb-column:has([data-widget-position="fixed"]) .column-content {
    overflow: visible !important;
}

/* Same for container columns */
.bb-container-col:has([data-widget-position="absolute"]),
.bb-container-col:has([data-widget-position="fixed"]) {
    overflow: visible !important;
}

.bb-container-col:has([data-widget-position="absolute"]) .cc-content,
.bb-container-col:has([data-widget-position="fixed"]) .cc-content {
    overflow: visible !important;
}

/* For absolute positioned widgets, position relative to section instead of column */
/* This allows widgets to escape column bounds and overlay other sections */
.bb-element-wrap[data-widget-position="absolute"] {
    position: absolute;
    z-index: 10;
}

.bb-element-wrap[data-widget-position="fixed"] {
    position: fixed;
    z-index: 1000;
}

.bb-element-wrap[data-widget-position="sticky"] {
    position: sticky;
}

/* Ensure proper stacking context for absolute positioned widgets */
.bb-section:has([data-widget-position="absolute"]) {
    z-index: 1;
}

/* Higher z-index sections when their absolute widgets need to overlay others */
.bb-section:has([data-widget-position="absolute"]) .bb-container {
    overflow: visible;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.section-blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.column-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.column-blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* ========================================
   Slideshow Background Styles
   ======================================== */
.bb-slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bb-slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-timing-function: ease-in-out;
    will-change: opacity, transform, filter;
}

.bb-slideshow-slide.active {
    opacity: 1;
    z-index: 1;
}

/* ========================================
   Container Styles
   ======================================== */
.bb-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: nowrap; /* Columns stay side by side on desktop/tablet */
}

/* Mobile: Stack columns vertically by default (can be overridden by user styles) */
@media (max-width: 767px) {
    .bb-container {
        flex-direction: column;
        flex-wrap: wrap;
    }

    /* Default mobile stacking - higher specificity to compete with dynamic desktop rules */
    .bb-section .bb-container .bb-column {
        width: 100%;
        max-width: 100%;
    }
}

.bb-container-full {
    max-width: 100%;
}

/* ========================================
   Column Styles
   ======================================== */
.bb-column {
    position: relative;
    min-height: 1px;
    display: flex;
    box-sizing: border-box;
    flex-shrink: 1; /* Allow slight shrinking to prevent wrapping */
    min-width: 0; /* Prevent flex items from overflowing */
    z-index: 2; /* Ensure columns are above video/slideshow backgrounds (z-index: 1) */
}

/* Allow search dropdown to overflow column boundaries */
.bb-column:has(.bb-blog-search-container:focus-within) {
    overflow: visible !important;
    z-index: 100;
}

.bb-column:has(.bb-blog-search-container:focus-within) .column-content {
    overflow: visible !important;
}

/* Column selection state (used in editor) */
.bb-column-selected {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

/* ========================================
   Container Widget Column Styles
   ======================================== */
.bb-container-col {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Container column selection state - hover/selected styles moved to editor-only (bunpilotStyles.js) */

/* Container column content wrapper */
.bb-container-col > .cc-content {
    display: flex;
    flex-direction: row; /* Default to row (horizontal) */
    align-items: flex-start; /* Prevent stretching so width: auto works */
    width: 100%;
    min-height: 20px;
    flex: 1;
    position: relative;
}


/* ========================================
   Video Background Styles
   ======================================== */
.bb-video-background,
.bb-column-video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bb-video-background video,
.bb-column-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.bb-video-background iframe,
.bb-video-background .video-background,
.bb-column-video-background iframe,
.bb-column-video-background .video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.2);
    border: none;
    pointer-events: none;
}

.bb-video-background img,
.bb-column-video-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Mobile Video Background Fix */
@media (max-width: 767px) {
    .bb-video-background iframe,
    .bb-video-background .video-background,
    .bb-column-video-background iframe,
    .bb-column-video-background .video-background {
        width: 300%;
        height: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%) scale(1);
    }

    .bb-video-background video,
    .bb-column-video-background video {
        width: 300%;
        min-width: 300%;
    }
}

@media (max-width: 480px) {
    .bb-video-background iframe,
    .bb-video-background .video-background,
    .bb-column-video-background iframe,
    .bb-column-video-background .video-background {
        width: 400%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1);
    }

    .bb-video-background video,
    .bb-column-video-background video {
        width: 400%;
        min-width: 400%;
    }
}

/* ========================================
   Widget Video Fill (Flex/Layer)
   ======================================== */
.bb-widget-video-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bb-widget-video-fill video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   Texture Fill (Flex/Layer/Section/Column)
   ======================================== */
.bb-texture-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

.column-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    height: 100%;
    gap: 5px;
}

/* ========================================
   Widget Wrapper Styles
   ======================================== */
.bb-element-wrap {
    position: relative;
    width: 100%;
    transition: outline 0.2s ease;
}

.bb-element-wrap.widget-focused {
    outline: 1px solid #14b8a6;
    outline-offset: 0;
}

/* Remove browser default focus outline on editable elements */
.bb-element-wrap [contenteditable]:focus,
.bb-element-wrap [contenteditable]:focus-visible,
.bb-element-wrap h1:focus,
.bb-element-wrap h2:focus,
.bb-element-wrap h3:focus,
.bb-element-wrap h4:focus,
.bb-element-wrap h5:focus,
.bb-element-wrap h6:focus,
.bb-element-wrap p:focus,
.bb-element-wrap span:focus,
.bb-element-wrap div:focus,
.bb-heading:focus,
.bb-heading:focus-visible,
.bb-text:focus,
.bb-text:focus-visible {
    outline: none !important;
    border: none !important;
}

.bb-text {
    margin: 0;
    padding: 0;
    word-break: break-word;
}

/* Interaction system: initially hidden widgets */
.bb-interaction-hidden {
    display: none !important;
}

/* Overlay system */
.bb-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    transition: opacity 0.3s ease;
}
.bb-overlay-active {
    position: fixed !important;
    z-index: 10001 !important;
    display: block !important;
    margin: 0 !important;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}
.bb-overlay-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bb-overlay-top { top: 20px; left: 50%; transform: translateX(-50%); }
.bb-overlay-bottom { bottom: 20px; left: 50%; transform: translateX(-50%); }
.bb-overlay-left { top: 50%; left: 20px; transform: translateY(-50%); }
.bb-overlay-right { top: 50%; right: 20px; transform: translateY(-50%); }
.bb-overlay-top-left { top: 20px; left: 20px; }
.bb-overlay-top-right { top: 20px; right: 20px; }
.bb-overlay-bottom-left { bottom: 20px; left: 20px; }
.bb-overlay-bottom-right { bottom: 20px; right: 20px; }
/* ========================================
   Gallery Widget Styles
   ======================================== */
.bb-gallery {
    width: 100%;
}

.bb-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.bb-gallery-justified {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bb-gallery-masonry {
    display: block;
    column-count: 4;
    column-gap: 10px;
}

.bb-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.bb-gallery-grid .bb-gallery-item {
    aspect-ratio: 1 / 1;
}

.bb-gallery-masonry .bb-gallery-item {
    break-inside: avoid;
    margin-bottom: 10px;
}

.bb-gallery-justified .bb-gallery-item {
    flex: 1;
    min-width: calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
}

.bb-gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.bb-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bb-gallery-masonry .bb-gallery-image {
    height: auto;
    object-fit: contain;
}

.bb-gallery-item:hover .bb-gallery-image {
    transform: scale(1.05);
}

.bb-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bb-gallery-item:hover .bb-gallery-overlay {
    opacity: 1;
}

.bb-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bb-gallery-item:hover .bb-gallery-caption {
    transform: translateY(0);
}

/* 3D Carousel Gallery Layout */
.bb-gallery-carousel {
    width: 100%;
    height: 500px;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background-color: transparent;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0,0,0,1) 11%, rgba(0,0,0,1) 89%, rgba(0,0,0,0.15) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, rgba(0,0,0,1) 11%, rgba(0,0,0,1) 89%, rgba(0,0,0,0.15) 100%);
}

.bb-gallery-carousel:active {
    cursor: grabbing !important;
}

.bb-gallery-carousel:active .bb-carousel-rotator {
    cursor: grabbing !important;
}

.bb-carousel-viewport {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}

.bb-carousel-center {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

.bb-carousel-scene {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1800px;
    -webkit-perspective: 1800px;
}

.bb-carousel-3d-container {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.bb-carousel-rotator {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    cursor: grab;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bb-carousel-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    pointer-events: none;
}

.bb-carousel-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    --rotate-y: 0deg;
    --border-radius: 0px;
    transform: translate(-50%, -50%) rotateY(var(--rotate-y)) translateZ(-967px) translateZ(0.1px);
    -webkit-transform: translate(-50%, -50%) rotateY(var(--rotate-y)) translateZ(-967px) translateZ(0.1px);
}

.bb-carousel-slide .bb-carousel-card {
    width: 303px;
    height: 405px;
    overflow: hidden;
    background-color: #fff;
    border-radius: var(--border-radius);
}

.bb-carousel-slide .bb-carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive 3D Carousel */
@media (max-width: 1023px) {
    .bb-carousel-slide .bb-carousel-card {
        width: 250px;
        height: 333px;
    }
}

@media (max-width: 767px) {
    .bb-gallery-carousel {
        height: 350px;
    }

    .bb-carousel-slide .bb-carousel-card {
        width: 200px;
        height: 267px;
    }
}

/* ========================================
   Tabbed Gallery Widget Styles
   ======================================== */
.bb-tabbed-gallery {
    width: 100%;
}

.bb-tabbed-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.bb-tabbed-gallery-tabs[data-alignment="center"] {
    justify-content: center;
}

.bb-tabbed-gallery-tabs[data-alignment="right"] {
    justify-content: flex-end;
}

.bb-tabbed-gallery-tabs[data-alignment="left"] {
    justify-content: flex-start;
}

/* Tab Button Base */
.bb-tabbed-gallery .bb-tab-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: #6b7280;
}

/* Pills Style */
.bb-tabbed-gallery-tabs[data-style="pills"] .bb-tab-button {
    border-radius: 20px;
    background: #f3f4f6;
}

.bb-tabbed-gallery-tabs[data-style="pills"] .bb-tab-button:hover {
    background: #e5e7eb;
    color: #111827;
}

.bb-tabbed-gallery-tabs[data-style="pills"] .bb-tab-button.active {
    background: #111827;
    color: #ffffff;
}

/* Underline Style */
.bb-tabbed-gallery-tabs[data-style="underline"] .bb-tab-button {
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding-bottom: 10px;
}

.bb-tabbed-gallery-tabs[data-style="underline"] .bb-tab-button:hover {
    border-bottom-color: #9ca3af;
    color: #111827;
}

.bb-tabbed-gallery-tabs[data-style="underline"] .bb-tab-button.active {
    border-bottom-color: #111827;
    color: #111827;
}

/* Buttons Style */
.bb-tabbed-gallery-tabs[data-style="buttons"] .bb-tab-button {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.bb-tabbed-gallery-tabs[data-style="buttons"] .bb-tab-button:hover {
    background: #f9fafb;
    color: #111827;
}

.bb-tabbed-gallery-tabs[data-style="buttons"] .bb-tab-button.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

/* Gallery Grid */
.bb-tabbed-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.bb-tabbed-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.bb-tabbed-gallery-item.hidden {
    display: none;
}

.bb-tabbed-gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bb-tabbed-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.bb-tabbed-gallery[data-hover="zoom"] .bb-tabbed-gallery-item:hover .bb-tabbed-gallery-image {
    transform: scale(1.1);
}

.bb-tabbed-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bb-tabbed-gallery[data-hover="fade"] .bb-tabbed-gallery-item:hover .bb-tabbed-gallery-overlay {
    opacity: 1;
}

/* Placeholder */
.bb-tabbed-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 1023px) {
    .bb-tabbed-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .bb-tabbed-gallery-tabs {
        justify-content: center;
    }
}


/* ========================================
   Gallery Placeholder Styles
   ======================================== */
.bb-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    color: #9ca3af;
    min-height: 200px;
}

.bb-gallery-placeholder svg {
    margin-bottom: 10px;
}

.bb-gallery-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   Responsive Gallery
   ======================================== */
@media (max-width: 1023px) {
    .bb-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bb-gallery-justified .bb-gallery-item {
        min-width: calc(33.333% - 6.67px);
        max-width: calc(33.333% - 6.67px);
    }
}

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

    .bb-gallery-justified .bb-gallery-item {
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

/* ========================================
   Button Widget Styles
   ======================================== */
.bb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #6b7280;
    color: #ffffff;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    width: fit-content;
}

.bb-button:hover {
    background-color: #4b5563;
}

.bb-button-icon {
    display: inline-flex;
    align-items: center;
}

.bb-lucide-icon {
    display: inline-flex;
    align-items: center;
}

/* Button Animation Elements */
.bb-button-content {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bb-button-text-wrapper {
    display: inline-flex;
    position: relative;
}

.bb-button-bg-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* ========================================
   Text Widget Styles
   ======================================== */
.bb-heading {
    margin: 0;
    padding: 0;
    font-weight: inherit; /* Override browser default */
    outline: none;
}

/* Reset all heading elements to inherit font-weight */
.bb-heading h1,
.bb-heading h2,
.bb-heading h3,
.bb-heading h4,
.bb-heading h5,
.bb-heading h6 {
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

.bb-paragraph {
    margin: 0;
    padding: 0;
}


/* ========================================
   Heading Widget - Multi-Style Headings
   ======================================== */

/* Base heading styles */
.bb-heading {
    display: block;
    margin: 0;
    padding: 0;
}

.bb-heading-linked {
    cursor: pointer;
}

.bb-heading-linked a {
    pointer-events: none;
}

/* Highlighted heading parts */
.bb-heading-highlighted {
    display: block;
}

.bb-heading-primary {
    display: inline;
}

.bb-heading-accent {
    display: inline;
    /* Reset transparent text fill from parent gradient text so accent text is visible */
    -webkit-text-fill-color: currentColor !important;
}

/* Mixed heading (text + images inline) */
.bb-heading-mixed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.bb-mixed-text {
    display: inline;
}

.bb-mixed-image {
    display: inline-block;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
}

.bb-mixed-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   Heading Widget - Highlight Effects
   ======================================== */

/* Background highlight */
.bb-highlight-background {
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    /* Override the accent reset - allow background to show */
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

/* Underline effect */
.bb-highlight-underline {
    position: relative;
    display: inline;
}

.bb-highlight-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    animation: bb-underline-draw 0.6s ease-out forwards;
}

/* Gradient text */
.bb-highlight-gradient {
    display: inline;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow effect */
.bb-highlight-glow {
    animation: bb-glow-pulse 2s ease-in-out infinite;
}

/* Marker stroke effect */
.bb-highlight-marker {
    position: relative;
    display: inline;
    isolation: isolate; /* Creates stacking context so ::before with z-index:-1 stays behind text */
}

.bb-highlight-marker::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 0;
    bottom: 0;
    background: linear-gradient(104deg, rgba(255,220,100,0) 0.9%, rgba(255,220,100,1) 2.4%, rgba(255,220,100,0.5) 5.8%, rgba(255,220,100,0.1) 93%, rgba(255,220,100,0.7) 96%, rgba(255,220,100,0) 98%);
    transform: rotate(-2deg);
    border-radius: 20% 25% 20% 24%;
    z-index: -1;
    animation: bb-marker-draw 0.8s ease-out forwards;
    transform-origin: left;
}

/* Wave animation effect */
.bb-highlight-wave {
    display: inline-block;
    animation: bb-wave 2s ease-in-out infinite;
}

/* Shake on hover effect */
.bb-highlight-shake {
    display: inline-block;
    transition: transform 0.1s;
}

.bb-highlight-shake:hover {
    animation: bb-shake 0.5s ease-in-out;
}

/* Blur reveal effect */
.bb-highlight-blur-reveal {
    display: inline-block;
    animation: bb-blur-reveal 1s ease-out forwards;
}

/* Scale bounce effect */
.bb-highlight-scale-bounce {
    display: inline-block;
    animation: bb-scale-bounce 0.6s ease-out;
}

/* Color cycle effect */
.bb-highlight-color-cycle {
    display: inline-block;
    animation: bb-color-cycle 3s linear infinite;
}

/* Strikethrough reveal effect */
.bb-highlight-strikethrough {
    position: relative;
    display: inline;
}

.bb-highlight-strikethrough::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    animation: bb-strikethrough-draw 0.6s ease-out 0.3s forwards;
}

/* Typewriter effect */
.bb-highlight-typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    animation: bb-typewriter 2s steps(20) forwards, bb-cursor-blink 0.7s step-end infinite;
}

/* ========================================
   Heading Widget - Animation Keyframes
   ======================================== */

/* Marker draw animation */
@keyframes bb-marker-draw {
    0% {
        transform: rotate(-2deg) scaleX(0);
    }
    100% {
        transform: rotate(-2deg) scaleX(1);
    }
}

/* Wave animation */
@keyframes bb-wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

/* Shake animation */
@keyframes bb-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Blur reveal animation */
@keyframes bb-blur-reveal {
    0% {
        filter: blur(10px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

/* Scale bounce animation */
@keyframes bb-scale-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Color cycle animation */
@keyframes bb-color-cycle {
    0% { color: #ff6b6b; }
    16% { color: #feca57; }
    33% { color: #48dbfb; }
    50% { color: #ff9ff3; }
    66% { color: #54a0ff; }
    83% { color: #5f27cd; }
    100% { color: #ff6b6b; }
}

/* Strikethrough draw animation */
@keyframes bb-strikethrough-draw {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Typewriter animation */
@keyframes bb-typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Underline draw animation */
@keyframes bb-underline-draw {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Glow pulse animation */
@keyframes bb-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 15px currentColor) drop-shadow(0 0 30px currentColor);
    }
}


/* ========================================
   Spacer Widget Styles
   ======================================== */
.bb-spacer {
    width: 100%;
}

/* ========================================
   Container Widget Styles
   ======================================== */
.bb-container-widget {
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

/* Mobile-specific container styles */
@media (max-width: 767px) {
    .bb-container-widget {
        flex-direction: column;
    }
}

/* ========================================
   Image Widget Styles
   ======================================== */
.bb-image {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Allow parent wrapper to capture events for drag/context menu */
}

/* Image resize handles */
.bb-element-wrap[data-widget-type="image"].resizing {
    outline: 2px solid #0057A5;
    outline-offset: 2px;
}

.bb-element-wrap[data-widget-type="image"].resizing * {
    pointer-events: none !important;
}

/* ========================================
   Video Widget Styles
   ======================================== */
.bb-video-wrapper {
    width: 100%;
    border-radius: inherit;
    overflow: hidden;
}

/* Responsive aspect ratio container */
.bb-video-aspect-ratio {
    position: relative;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: inherit;
}

/* Default 16:9 aspect ratio */
.bb-video-aspect-ratio {
    padding-bottom: 56.25%;
}

/* 4:3 aspect ratio */
.bb-video-aspect-ratio[data-aspect="4:3"] {
    padding-bottom: 75%;
}

/* 1:1 aspect ratio */
.bb-video-aspect-ratio[data-aspect="1:1"] {
    padding-bottom: 100%;
}

/* 21:9 aspect ratio */
.bb-video-aspect-ratio[data-aspect="21:9"] {
    padding-bottom: 42.857%;
}

/* Video/iframe absolute positioning */
.bb-video-aspect-ratio iframe,
.bb-video-aspect-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ========================================
   Video Preview Image & Play Button Styles
   ======================================== */

/* Hide video/iframe when preview is active */
.bb-video-wrapper.has-preview .bb-video-element,
.bb-video-wrapper.has-preview iframe,
.bb-video-wrapper.has-preview video {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show video when playing */
.bb-video-wrapper.has-preview.bb-video-started .bb-video-element,
.bb-video-wrapper.has-preview.bb-video-started iframe,
.bb-video-wrapper.has-preview.bb-video-started video {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Preview Overlay */
.bb-video-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background-color: #000;
}

.bb-video-preview-overlay.bb-video-playing {
    opacity: 0;
    pointer-events: none;
}

.bb-video-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no image selected */
.bb-video-preview-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.bb-video-preview-placeholder-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bb-video-preview-placeholder-bg svg {
    opacity: 0.5;
}

.bb-video-preview-placeholder-bg p {
    margin: 8px 0 0 0;
    font-size: 12px;
    opacity: 0.7;
}

/* Play Button Base */
.bb-video-play-btn {
    position: absolute;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
    aspect-ratio: 1;
    padding: 0;
    min-width: 40px;
    min-height: 40px;
}

.bb-video-play-btn:hover {
    transform: scale(1.1);
}

.bb-video-play-btn:active {
    transform: scale(0.95);
}

/* Play Icon */
.bb-play-icon {
    width: 40%;
    height: 40%;
    margin-left: 8%;
}

/* Play Button Positions */
.bb-play-btn-top-left {
    top: 16px;
    left: 16px;
}

.bb-play-btn-top-center {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.bb-play-btn-top-center:hover {
    transform: translateX(-50%) scale(1.1);
}

.bb-play-btn-top-right {
    top: 16px;
    right: 16px;
}

.bb-play-btn-center-left {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.bb-play-btn-center-left:hover {
    transform: translateY(-50%) scale(1.1);
}

.bb-play-btn-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bb-play-btn-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.bb-play-btn-center-right {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.bb-play-btn-center-right:hover {
    transform: translateY(-50%) scale(1.1);
}

.bb-play-btn-bottom-left {
    bottom: 16px;
    left: 16px;
}

.bb-play-btn-bottom-center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.bb-play-btn-bottom-center:hover {
    transform: translateX(-50%) scale(1.1);
}

.bb-play-btn-bottom-right {
    bottom: 16px;
    right: 16px;
}

/* Play Button Styles */

/* Glassy Style */
.bb-play-btn-glassy {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bb-play-btn-glassy:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Solid Style */
.bb-play-btn-solid {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bb-play-btn-solid:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Outline Style */
.bb-play-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bb-play-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Minimal Style */
.bb-play-btn-minimal {
    background: transparent;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bb-play-btn-minimal .bb-play-icon {
    width: 50%;
    height: 50%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.bb-play-btn-minimal:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Gradient Style */
.bb-play-btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.bb-play-btn-gradient:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.7);
}

/* ========================================
   Google Map Widget Styles
   ======================================== */
.bb-google-map {
    width: 100%;
    height: 400px;
    position: relative;
}

.bb-google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Menu Styles */
.bb-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    display: none;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.bb-mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bb-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.bb-mobile-menu-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.bb-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.bb-mobile-menu-list li {
    border-bottom: 1px solid #e5e7eb;
}

.bb-mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.bb-mobile-menu-list a:hover {
    background-color: #f3f4f6;
}

/* Mobile Menu Button - Hidden by default on desktop */
.bb-menu-mobile-button {
    display: none;
}

.bb-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-mobile-menu.bb-mobile-menu-slide {
    left: 0;
}

.bb-mobile-menu.bb-mobile-menu-slide[data-position="right"] {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.bb-mobile-menu.bb-mobile-menu-modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: none;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content {
    background: transparent;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-header {
    border-bottom: none;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-header span {
    color: white;
    font-weight: 300;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-header button svg {
    color: white;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-list {
    width: 100%;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-list li {
    border-bottom: none;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-list a {
    color: white;
    font-weight: 300;
    border-bottom: none;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-list a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content::-webkit-scrollbar {
    width: 8px;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.bb-mobile-menu.bb-mobile-menu-modal .bb-mobile-menu-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.bb-mobile-menu.bb-mobile-menu-modal.bb-mobile-menu-open {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.bb-mobile-menu.bb-mobile-menu-modal.bb-mobile-menu-open .bb-mobile-menu-content {
    transform: translateY(0);
}

.bb-mobile-menu.bb-mobile-menu-slide.bb-mobile-menu-open {
    transform: translateX(0);
    display: block;
}

.bb-mobile-menu.bb-mobile-menu-slide[data-position="right"].bb-mobile-menu-open {
    transform: translateX(0);
    display: block;
}

/* Mobile Menu Dropdown Styles */
.bb-mobile-menu-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bb-mobile-menu-list ul.bb-submenu-open {
    max-height: 1000px;
}

.bb-mobile-menu-list ul li {
    padding-left: 20px;
}

.bb-mobile-menu-list a.has-children {
    display: flex;
    align-items: center;
}

.bb-mobile-menu-list a.has-children::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    margin-left: auto;
    padding-left: 10px;
}

.bb-mobile-menu-list a.has-children.bb-dropdown-active::after {
    content: '−';
}

/* Mobile Menu Overlay */
.bb-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Base Styles */
.bb-menu {
    width: 100%;
    position: relative;
}

.bb-menu-desktop {
    display: flex;
    gap: 32px;
    position: relative;
    flex-wrap: wrap;
    align-items: center;
}

.bb-menu-item {
    position: relative;
}

.bb-menu-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
}

.bb-menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.bb-menu-toggle svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.bb-menu-mobile-button {
    display: none;
}

/* Vertical Menu Styles */
.bb-menu-vertical .bb-menu-desktop {
    flex-direction: column;
}

/* Desktop Menu Dropdown Styles */
.bb-menu-dropdown {
    position: relative;
}

.bb-menu-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10000;
}

.bb-menu-dropdown:hover .bb-menu-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bb-menu-dropdown-item {
    list-style: none;
}

.bb-menu-dropdown-item > a:not(.bb-nested-dropdown-link) {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.bb-menu-dropdown-item > a:not(.bb-nested-dropdown-link):hover {
    background-color: #f3f4f6;
}

.bb-menu-link .bb-lucide-icon,
.bb-menu-dropdown-item .bb-lucide-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.bb-menu-dropdown .bb-menu-link .bb-lucide-icon {
    margin-left: 4px;
    margin-right: 0;
}

.bb-menu-dropdown-item .bb-dropdown-chevron {
    margin-right: 0;
}

/* Menu Item Icons */
.bb-menu-item-icon {
    flex-shrink: 0;
    margin-right: 6px;
}

.bb-menu-item-icon svg {
    width: 16px;
    height: 16px;
}

/* Menu Item Text Container (for items with descriptions) */
.bb-menu-item-text {
    display: flex;
    flex-direction: column;
}

.bb-menu-item-description {
    display: block;
    font-size: 11px;
    color: #999999;
    font-weight: 300;
    line-height: 1.3;
    margin-top: 2px;
}

/* Nested Dropdown Styles */
.bb-menu-dropdown-list {
    overflow: visible;
}

.bb-menu-nested-dropdown {
    position: relative;
}

.bb-nested-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
}

.bb-menu-nested-dropdown .bb-nested-dropdown-list {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 150px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0;
    padding: 0;
    z-index: 1001;
    list-style: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bb-menu-nested-dropdown:hover > .bb-nested-dropdown-list {
    display: block;
}

.bb-nested-dropdown-link .bb-dropdown-chevron {
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* ========================================
   Counter Widget Styles
   ======================================== */
.bb-counter {
    width: 100%;
    display: flex;
}

.bb-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-counter-value {
    font-weight: 700;
    line-height: 1.2;
}

.bb-counter-label {
    line-height: 1.4;
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomInUp {
    from { opacity: 0; transform: scale(0.3) translateY(100%); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes zoomInDown {
    from { opacity: 0; transform: scale(0.3) translateY(-100%); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bounceInUp {
    0% { opacity: 0; transform: translateY(100%); }
    60% { opacity: 1; transform: translateY(-20px); }
    80% { transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceInDown {
    0% { opacity: 0; transform: translateY(-100%); }
    60% { opacity: 1; transform: translateY(20px); }
    80% { transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-200deg); }
    to { opacity: 1; transform: rotate(0); }
}

@keyframes flipInX {
    from { opacity: 0; transform: perspective(400px) rotateX(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateX(0); }
}

@keyframes flipInY {
    from { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    40% { transform: perspective(400px) rotateY(170deg); }
    50% { transform: perspective(400px) rotateY(190deg); }
    80% { transform: perspective(400px) rotateY(360deg); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

@keyframes rubberBand {
    0% { transform: scale(1); }
    30% { transform: scaleX(1.25) scaleY(0.75); }
    40% { transform: scaleX(0.75) scaleY(1.25); }
    50% { transform: scaleX(1.15) scaleY(0.85); }
    65% { transform: scaleX(0.95) scaleY(1.05); }
    75% { transform: scaleX(1.05) scaleY(0.95); }
    100% { transform: scale(1); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* ========================================
   Animation Classes
   ======================================== */
.animate-fadeIn { animation: fadeIn 1s ease-out forwards; }
.animate-fadeInUp { animation: fadeInUp 1s ease-out forwards; }
.animate-fadeInDown { animation: fadeInDown 1s ease-out forwards; }
.animate-fadeInLeft { animation: fadeInLeft 1s ease-out forwards; }
.animate-fadeInRight { animation: fadeInRight 1s ease-out forwards; }
.animate-slideInUp { animation: slideInUp 1s ease-out forwards; }
.animate-slideInDown { animation: slideInDown 1s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 1s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 1s ease-out forwards; }
.animate-zoomIn { animation: zoomIn 1s ease-out forwards; }
.animate-zoomInUp { animation: zoomInUp 1s ease-out forwards; }
.animate-zoomInDown { animation: zoomInDown 1s ease-out forwards; }
.animate-bounceIn { animation: bounceIn 1s ease-out forwards; }
.animate-bounceInUp { animation: bounceInUp 1s ease-out forwards; }
.animate-bounceInDown { animation: bounceInDown 1s ease-out forwards; }
.animate-rotateIn { animation: rotateIn 1s ease-out forwards; }
.animate-flipInX { animation: flipInX 1s ease-out forwards; }
.animate-flipInY { animation: flipInY 1s ease-out forwards; }
.animate-shake { animation: shake 0.8s ease-in-out; }
.animate-swing { animation: swing 1s ease-in-out; }
.animate-flip { animation: flip 1s ease-in-out; }
.animate-rubberBand { animation: rubberBand 1s ease-in-out; }
.animate-heartBeat { animation: heartBeat 1.3s ease-in-out; }

/* Animation duration modifiers */
.animate-fast { animation-duration: 0.5s !important; }
.animate-slow { animation-duration: 2s !important; }

/* ========================================
   Quick Actions Toolbar Font Dropdown
   ======================================== */
.bb-toolbar-font-dropdown {
    position: fixed;
    width: 320px;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10006;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bb-toolbar-font-dropdown-title {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #e0e0e0;
    border-bottom: 1px solid #404040;
    background: #2d2d2d;
}

.bb-toolbar-font-search {
    position: relative;
    padding: 8px;
    border-bottom: 1px solid #404040;
    background: #2d2d2d;
}

.bb-toolbar-font-search input {
    width: 100%;
    padding: 6px 6px 6px 28px;
    background: #1a1a1a;
    border: 0;
    border-bottom: 1px solid #404040;
    color: #e0e0e0;
    font-size: 11px;
    outline: none;
}

.bb-toolbar-font-search input::placeholder {
    color: #666;
}

.bb-toolbar-font-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.bb-toolbar-font-list {
    overflow-y: auto;
    max-height: 280px;
    background: #2d2d2d;
}

.bb-toolbar-font-category {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    background: #3a3a3a;
    border-bottom: 1px solid #404040;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bb-toolbar-font-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #e0e0e0;
    cursor: pointer;
    border-bottom: 1px solid #353535;
    transition: background-color 0.15s ease;
}

.bb-toolbar-font-item:hover {
    background: #353535;
}

.bb-toolbar-font-item.selected {
    background: #404040;
    color: #fff;
    font-weight: 500;
}

/* ========================================
   Lightbox Styles
   ======================================== */
.bb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

/* Show lightbox - supports both class names */
.bb-lightbox.bb-lightbox-open,
.bb-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 1;
}

.bb-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

.bb-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

.bb-lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.bb-lightbox-caption {
    margin-top: 15px;
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    max-width: 80%;
}

.bb-lightbox-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    z-index: 100001;
}

.bb-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 100001;
    pointer-events: auto;
}

.bb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bb-lightbox-prev,
.bb-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 100000;
    pointer-events: auto;
}

.bb-lightbox-prev svg,
.bb-lightbox-next svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.bb-lightbox-prev:hover,
.bb-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bb-lightbox-prev:disabled,
.bb-lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bb-lightbox-prev {
    left: 20px;
}

.bb-lightbox-next {
    right: 20px;
}

.bb-lightbox-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 90%;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100002;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px 8px 0 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    pointer-events: auto;
}

.bb-lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.bb-lightbox-thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.bb-lightbox-thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.bb-lightbox-thumbnail.active {
    opacity: 1;
    border-color: white;
}

/* Lightbox Animation Styles */
.bb-lightbox .bb-lightbox-content {
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade Animation (default) */
.bb-lightbox.animation-fade:not(.bb-lightbox-open):not(.active) .bb-lightbox-content {
    opacity: 0;
}
.bb-lightbox.animation-fade.bb-lightbox-open .bb-lightbox-content,
.bb-lightbox.animation-fade.active .bb-lightbox-content {
    opacity: 1;
}

/* Slide Animation */
.bb-lightbox.animation-slide:not(.bb-lightbox-open):not(.active) .bb-lightbox-content {
    opacity: 0;
    transform: translateY(50px);
}
.bb-lightbox.animation-slide.bb-lightbox-open .bb-lightbox-content,
.bb-lightbox.animation-slide.active .bb-lightbox-content {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom Animation */
.bb-lightbox.animation-zoom:not(.bb-lightbox-open):not(.active) .bb-lightbox-content {
    opacity: 0;
    transform: scale(0.8);
}
.bb-lightbox.animation-zoom.bb-lightbox-open .bb-lightbox-content,
.bb-lightbox.animation-zoom.active .bb-lightbox-content {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .bb-lightbox-container {
        padding: 10px;
    }

    .bb-lightbox-prev,
    .bb-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .bb-lightbox-prev {
        left: 10px;
    }

    .bb-lightbox-next {
        right: 10px;
    }

    .bb-lightbox-prev svg,
    .bb-lightbox-next svg {
        width: 20px;
        height: 20px;
    }

    .bb-lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .bb-lightbox-counter {
        top: 15px;
        font-size: 12px;
    }

    .bb-lightbox-thumbnail {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .bb-lightbox-thumbnails {
        max-width: 95%;
        padding: 10px 15px;
        gap: 8px;
    }
}

/* ========================================
   Rich Text Table Styles
   ======================================== */
.bb-richtext-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background-color: transparent;
}

.bb-richtext-content table th,
.bb-richtext-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.bb-richtext-content table th {
    background-color: #f9fafb;
    font-weight: 600;
    border-bottom: 2px solid #d1d5db;
}

.bb-richtext-content table tbody tr:hover {
    background-color: #f9fafb;
}

.bb-richtext-content table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Responsive table wrapper */
.bb-richtext-content table {
    display: table;
    overflow-x: auto;
}

@media (max-width: 767px) {
    .bb-richtext-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .bb-richtext-content table th,
    .bb-richtext-content table td {
        padding: 8px;
        font-size: 14px;
    }
}

/* ========================================
   Testimonial Widget Styles
   ======================================== */
.bb-testimonial-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bb-testimonial-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bb-testimonial-star {
    color: #fbbf24;
    font-size: 17px;
    width: 17px;
    height: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bb-testimonial-star.empty {
    color: #d1d5db;
}

.bb-testimonial-star.half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-testimonial-verified-tick {
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #10b981;
    margin-left: 4px;
}

.bb-testimonial-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-testimonial-text {
    font-size: 15px;
    line-height: 20px;
}

.bb-testimonial-text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-testimonial-read-more-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    padding: 0;
    text-decoration: none;
}

.bb-testimonial-read-more-btn:hover {
    color: #666666;
}

.bb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-testimonial-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.bb-testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-testimonial-name {
    font-weight: 600;
    font-size: 15px;
}

.bb-testimonial-role {
    color: #666666;
    font-size: 13px;
}

/* Review Header Styles */
.bb-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-platform-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.bb-profile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-profile-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.bb-profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.bb-profile-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.bb-profile-date {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

/* ========================================
   Testimonial Slider Widget Styles (Grid)
   ======================================== */
.bb-testimonial-slider-wrapper {
    position: relative;
    width: 100%;
}

.bb-testimonial-slider-container {
    position: relative;
    width: 100%;
}

.bb-testimonial-grid {
    display: grid;
    gap: 20px;
}

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

.bb-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Responsive grid - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .bb-grid-cols-2,
    .bb-grid-cols-3,
    .bb-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive grid - Mobile */
@media (max-width: 480px) {
    .bb-grid-cols-2,
    .bb-grid-cols-3,
    .bb-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Carousel mode (overflow horizontal scroll) */
.bb-testimonial-carousel-container {
    width: 100%;
    overflow: visible;
    position: relative;
    padding-top: 10px;
    padding-bottom: 80px;
}

.bb-testimonial-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.6s ease-in-out;
    margin-left: -6%;
    padding-left: 6%;
    padding-right: 100px;
}

.bb-testimonial-carousel-track .bb-testimonial-card {
    flex: 0 0 calc(33.33% - 17px);
    min-width: 300px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.bb-testimonial-carousel-track .bb-testimonial-card:hover {
    transform: translateY(-5px);
}

/* Preset-specific heights for carousel */
.bb-testimonial-carousel-track .bb-testimonial-card:not(.bb-preset-4) {
    min-height: 250px;
}

.bb-testimonial-carousel-track .bb-preset-3 {
    min-height: 380px;
}

/* Carousel navigation */
.bb-carousel-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bb-carousel-nav-button {
    background-color: transparent;
    border: 2px solid #333333;
    color: #333333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.bb-carousel-nav-button:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.1);
}

.bb-carousel-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive carousel - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .bb-testimonial-carousel-track {
        margin-left: -4%;
        padding-left: 4%;
        padding-right: 75px;
    }

    .bb-testimonial-carousel-track .bb-testimonial-card {
        flex: 0 0 calc(33.33% - 17px);
    }
}

/* Responsive carousel - Mobile */
@media (max-width: 600px) {
    .bb-testimonial-carousel-track {
        gap: 20px;
        margin-left: -6%;
        padding-left: 6%;
        padding-right: 50px;
    }

    .bb-testimonial-carousel-track .bb-testimonial-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 100%;
        min-height: 400px;
    }

    .bb-testimonial-carousel-track .bb-testimonial-card:not(.bb-preset-4) {
        min-height: 320px;
    }

    .bb-testimonial-carousel-track .bb-preset-3 {
        min-height: 350px;
    }
}



/* Carousel card specific styles */
.bb-carousel-card,
.bb-preset-4 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    height: 100%;
}

.bb-carousel-rating {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
}

.bb-carousel-quote-icon {
    color: #9ca3af;
    display: flex;
    justify-content: flex-start;
}

.bb-carousel-quote-icon svg {
    width: 40px;
    height: 40px;
}

.bb-carousel-card .bb-testimonial-text-wrapper,
.bb-preset-4 .bb-testimonial-text-wrapper {
    text-align: left;
    flex: 1;
}

.bb-carousel-card .bb-testimonial-text,
.bb-preset-4 .bb-testimonial-text {
    text-align: left;
}

.bb-carousel-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

.bb-carousel-reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    text-align: left;
}

.bb-carousel-reviewer-info .bb-profile-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.bb-carousel-reviewer-info .bb-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-carousel-reviewer-info .bb-profile-details {
    flex: 1;
    text-align: left;
}

.bb-carousel-reviewer-info .bb-profile-name {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    line-height: 1.4;
    text-align: left;
}

.bb-carousel-reviewer-info .bb-profile-date {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    text-align: left;
}

.bb-carousel-reviewer-info .bb-platform-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.bb-carousel-reviewer-info .bb-platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* List mode styles */
.bb-testimonial-list-container {
    width: 100%;
}

.bb-testimonial-list-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

a.bb-testimonial-list-badge.bb-badge-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

a.bb-testimonial-list-badge.bb-badge-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bb-badge-label {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 0.5px;
}

.bb-badge-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bb-badge-stars {
    display: flex;
    gap: 2px;
}

.bb-badge-stars .bb-testimonial-star {
    color: #fbbf24;
    font-size: 18px;
}

.bb-badge-stars .bb-testimonial-star.empty {
    color: #d1d5db;
}

.bb-badge-text {
    font-size: 13px;
    color: #6b7280;
}

/* Slider Badge Styles */
.bb-slider-with-badge {
    display: flex;
    gap: 30px;
    align-items: center;
}

.bb-slider-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    text-align: center;
    min-width: 150px;
}

a.bb-slider-badge.bb-badge-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

a.bb-slider-badge.bb-badge-link:hover {
    opacity: 0.8;
}

.bb-slider-badge .bb-badge-stars .bb-testimonial-star {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.bb-slider-badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bb-slider-content {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: visible;
}

.bb-testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.bb-testimonial-list .bb-testimonial-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: left !important;
}

/* Load More Button */
.bb-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.bb-load-more-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.bb-load-more-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.bb-testimonial-list .bb-testimonial-card * {
    text-align: left !important;
}

.bb-testimonial-list .bb-review-header,
.bb-testimonial-list .bb-profile-details,
.bb-testimonial-list .bb-profile-name,
.bb-testimonial-list .bb-profile-date,
.bb-testimonial-list .bb-testimonial-text,
.bb-testimonial-list .bb-testimonial-rating {
    text-align: left !important;
    justify-content: flex-start !important;
}

.bb-testimonial-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
}

.bb-testimonial-slider-container .bb-profile-details {
    text-align: left;
}

.bb-testimonial-slider-container .bb-testimonial-text {
    text-align: left;
}

.bb-testimonial-slider-container .bb-testimonial-rating {
    justify-content: flex-start;
}

.bb-testimonial-slider-container .bb-platform-icon {
    width: 30px;
    height: 30px;
}

.bb-testimonial-slider-container .bb-platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Slider Mode Styles */
.bb-testimonial-slider-container:has(.bb-testimonial-slides) {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.bb-testimonial-slides {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    overflow: visible;
    padding: 10px 0px;
}

.bb-testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.bb-testimonial-slide.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.bb-slider-nav {
    position: absolute;
    top: calc(50% - 15px);
    transform: translateY(-50%);
    background-color: white;
    color: #333333;
    border: 1px solid #e5e7eb;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bb-slider-nav:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bb-slider-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.bb-slider-next {
    right: 0;
    transform: translate(50%, -50%);
}

.bb-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.bb-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.bb-slider-dot.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ========================================
   Reviews Widget - Card Presets
   ======================================== */

/* Preset 2: Light Grey Background */
.bb-testimonial-card.bb-preset-2 {
    background-color: #f9fafb;
}

/* Preset 3: Center Aligned with Large Image */
.bb-testimonial-card.bb-preset-3 {
    text-align: center;
}

.bb-testimonial-card.bb-preset-3 .bb-testimonial-text {
    text-align: center;
}

.bb-testimonial-card.bb-preset-3 .bb-profile-details-center {
    text-align: center;
}

.bb-review-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bb-profile-img-container {
    position: relative;
    display: inline-block;
}

.bb-profile-img-large {
    width: 60px;
    height: 60px;
}

.bb-profile-img-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bb-platform-icon-overlap {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bb-platform-icon-overlap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bb-profile-details-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bb-rating-center {
    justify-content: center !important;
}

/* Read More Functionality */
.bb-testimonial-text-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    max-height: 6em; /* Approximately 4 lines at default line-height */
}

.bb-testimonial-text-collapsed.expanded {
    display: block;
    -webkit-line-clamp: unset;
    max-height: 1000px; /* Large enough for any content */
}

.bb-testimonial-read-more {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 8px 0 0 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
}

.bb-testimonial-read-more:hover {
    color: #2563eb;
    transform: translateX(2px);
}

.bb-testimonial-read-more:focus {
    outline: none;
}

.bb-testimonial-read-more .read-more-text,
.bb-testimonial-read-more .read-less-text {
    display: inline-block;
    transition: opacity 0.2s ease;
}

/* Center aligned read more for preset 3 */
.bb-preset-3 .bb-testimonial-read-more {
    text-align: center;
}

/* Slider mode - cards flex in a row */
.bb-testimonial-slides .bb-testimonial-card {
    display: flex;
    flex-direction: column;
}

/* Slider cards per view - 1 card */
.bb-slider-cards-1 .bb-testimonial-card {
    min-width: 100%;
    flex: 0 0 100%;
}

/* Slider cards per view - 2 cards */
.bb-slider-cards-2 .bb-testimonial-card {
    min-width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
}

/* Slider cards per view - 3 cards */
.bb-slider-cards-3 .bb-testimonial-card {
    min-width: calc(33.333% - 14px);
    flex: 0 0 calc(33.333% - 14px);
}

/* Slider cards per view - 4 cards */
.bb-slider-cards-4 .bb-testimonial-card {
    min-width: calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
}

.bb-testimonial-slides .bb-preset-4 {
    min-height: 450px;
}

/* Responsive slider - tablet shows 2 cards */
@media (max-width: 1023px) {
    .bb-testimonial-slides .bb-testimonial-card {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

/* Responsive slider - mobile shows 1 card */
@media (max-width: 767px) {
    .bb-testimonial-slides .bb-testimonial-card {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .bb-testimonial-slides .bb-preset-4 {
        min-height: 400px;
    }

    .bb-testimonial-slides {
        gap: 15px;
    }
}


   Testimonials Slider Widget Styles
   ======================================== */
.bb-testimonials {
    width: 100%;
}

.bb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bb-testimonials-slider .bb-testimonials-slider-container {
    position: relative;
    overflow: hidden;
}

.bb-testimonials-slider .bb-testimonials-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.bb-testimonials-slider .bb-testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
}

.bb-testimonials-placeholder {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

.bb-star {
    font-size: 16px;
}

.bb-star-filled {
    color: #fbbf24;
}

.bb-star-empty {
    color: #d1d5db;
}

.bb-verified-tick {
    color: #3b82f6;
    font-weight: bold;
}

.bb-testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.bb-testimonial-nav:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.bb-testimonial-prev {
    left: -20px;
}

.bb-testimonial-next {
    right: -20px;
}

.bb-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bb-testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-testimonial-dot.bb-dot-active,
.bb-testimonial-dot:hover {
    background: #3b82f6;
}

.bb-testimonial-platform {
    margin-top: 12px;
}

@media (max-width: 1023px) {
    .bb-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bb-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .bb-testimonial-prev {
        left: 0;
    }

    .bb-testimonial-next {
        right: 0;
    }
}

/* ========================================
   Accordion Widget Styles
   ======================================== */
.bb-accordion-container {
    width: 100%;
    overflow: hidden;
}

.bb-accordion-item {
    transition: background-color 0.2s ease;
}

.bb-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.bb-accordion-title {
    margin: 0;
    flex: 1;
}

.bb-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.bb-accordion-icon .bb-lucide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-accordion-item.is-open .bb-accordion-icon {
    transform: rotate(180deg);
}

.bb-accordion-content {
    line-height: 1.6;
}

/* ========================================
   Form Widget Styles
   ======================================== */

/* Form Container */
.bb-form {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Form Fields Container */
.bb-form-fields {
    display: flex;
    flex-wrap: wrap;
    --form-gap: 16px;
    gap: var(--form-gap);
}

/* Inline Form Layout */
.bb-form-layout-inline .bb-form-inline-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.bb-form-layout-inline .bb-form-fields {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    --form-gap: 16px;
    gap: var(--form-gap);
}

.bb-form-layout-inline .bb-form-submit {
    margin-top: 0;
    flex-shrink: 0;
}

.bb-form-layout-inline .bb-form-submit .bb-form-button {
    width: 100%;
    white-space: nowrap;
}

/* Individual Field */
.bb-form-field {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Labels */
.bb-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.bb-form-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input Base Styles */
.bb-form-input,
.bb-form-select,
.bb-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.bb-form-input:focus,
.bb-form-select:focus,
.bb-form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bb-form-input::placeholder,
.bb-form-textarea::placeholder {
    color: #9ca3af;
}

/* Textarea */
.bb-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select */
.bb-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Input with Icon */
.bb-form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bb-form-input-with-icon {
    position: relative;
}

.bb-form-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textarea icon positioning (top aligned) */
.bb-form-field-textarea .bb-form-field-icon {
    top: 12px;
    transform: none;
}

.bb-form-input.has-icon,
.bb-form-select.has-icon,
.bb-form-textarea.has-icon {
    padding-left: 40px;
}

/* HTML Content Field */
.bb-form-html-content {
    margin: 0;
    color: inherit;
    font-family: inherit;
    line-height: 1.5;
}

/* Checkbox & Radio */
.bb-form-checkbox-wrapper,
.bb-form-radio-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.bb-form-checkbox,
.bb-form-radio {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.bb-form-checkbox-label,
.bb-form-radio-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.bb-form-radio-group {
    display: flex;
    gap: 12px;
}

.bb-form-radio-vertical {
    flex-direction: column;
}

.bb-form-radio-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

/* File Upload */
.bb-form-file-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bb-form-file {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.bb-form-file-text {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #6b7280;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bb-form-file-wrapper:hover .bb-form-file-text {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

/* File Upload Info and Progress */
.bb-form-file-info {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.bb-form-file-info.success {
    color: #059669;
}

.bb-form-file-progress {
    margin-top: 8px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.bb-form-file-progress-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.bb-form-file-wrapper.has-error .bb-form-file-text {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.bb-form-file-wrapper .bb-form-field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Range Slider */
.bb-form-range {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.bb-form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.bb-form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.bb-form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.bb-form-range-value {
    font-weight: 600;
    color: #3b82f6;
}

/* Color Picker */
.bb-form-color {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background-color: #ffffff;
}

.bb-form-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.bb-form-color::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* Error States */
.bb-form-field.has-error .bb-form-input,
.bb-form-field.has-error .bb-form-select,
.bb-form-field.has-error .bb-form-textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.bb-form-field.has-error .bb-form-checkbox-wrapper,
.bb-form-field.has-error .bb-form-radio-group {
    color: #ef4444;
}

.bb-form-error,
.bb-form-field-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.bb-form-field.has-error .bb-form-error,
.bb-form-field.has-error .bb-form-field-error {
    display: block;
}

/* Captcha Container */
.bb-captcha-container {
    margin-top: 20px;
}

/* Submit Button Container (inside flex bb-form-fields) */
.bb-form-submit {
    width: 100%;
}

/* Submit Button */
.bb-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.bb-form-button:hover {
    background-color: #2563eb;
}

.bb-form-button:active {
    transform: scale(0.98);
}

.bb-form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bb-form-button-full {
    width: 100%;
}

.bb-form-button-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bb-form-button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bb-form-button-icon {
    display: inline-flex;
    align-items: center;
}

/* Loading Spinner */
.bb-form-spinner {
    width: 18px;
    height: 18px;
    animation: bb-form-spin 1s linear infinite;
}

@keyframes bb-form-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.bb-form-message {
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.5;
}

.bb-form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.bb-form-error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Toast Notifications */
.bb-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.bb-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    pointer-events: auto;
    animation: bb-toast-slide-in 0.3s ease-out;
    backdrop-filter: blur(8px);
}

.bb-toast.bb-toast-hiding {
    animation: bb-toast-slide-out 0.3s ease-in forwards;
}

.bb-toast-success {
    background-color: rgba(209, 250, 229, 0.95);
    color: #065f46;
    border: 1px solid #10b981;
}

.bb-toast-error {
    background-color: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.bb-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.bb-toast-success .bb-toast-icon {
    color: #10b981;
}

.bb-toast-error .bb-toast-icon {
    color: #ef4444;
}

.bb-toast-content {
    flex: 1;
}

.bb-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.bb-toast-close:hover {
    opacity: 1;
}

@keyframes bb-toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bb-toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .bb-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .bb-toast {
        max-width: none;
    }
}

/* Honeypot (Hidden from users) */
.bb-form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Date/Time inputs */
.bb-form-field-date .bb-form-input,
.bb-form-field-time .bb-form-input {
    cursor: pointer;
}

/* Responsive Form */
@media (max-width: 767px) {
    .bb-form-fields {
        --form-gap: 12px;
    }

    .bb-form-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bb-form-input,
    .bb-form-select,
    .bb-form-textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .bb-form-label {
        font-size: 13px;
    }
}

/* Form Button Wrapper */
.bb-form-button-wrapper {
    display: flex;
    margin-top: 16px;
}

.bb-form-button-left {
    justify-content: flex-start;
}

.bb-form-button-center {
    justify-content: center;
}

.bb-form-button-right {
    justify-content: flex-end;
}

.bb-form-message.bb-form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ========================================
/* ========================================
   Text Slider Widget Styles
   ======================================== */
/* New container structure */
.bb-text-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.bb-text-slider-wrapper {
    display: flex;
    width: 100%;
}

/* Legacy support */
.bb-text-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.bb-text-slider-track {
    display: flex;
    align-items: center;
    animation: bb-text-scroll 20s linear infinite;
    white-space: nowrap;
}

.bb-text-slider-track:hover {
    animation-play-state: paused;
}

.bb-text-slider-item {
    flex-shrink: 0;
}

.bb-text-slider-separator {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bb-text-slider-separator .bb-preset-icon {
    display: block;
}

.bb-text-slider-separator .bb-lucide-icon {
    display: inline-flex;
}

.bb-text-slider-separator .bb-separator-image {
    display: block;
    object-fit: contain;
}

.bb-text-slider-placeholder {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

@keyframes bb-text-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Logo Slider Widget Styles
   ======================================== */
.bb-logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.bb-logo-slider[data-faded="true"] {
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

.bb-logo-slider[data-direction="vertical"][data-faded="true"] {
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 100px, black calc(100% - 100px), transparent);
    mask-image: linear-gradient(to bottom, transparent, black 100px, black calc(100% - 100px), transparent);
}

.bb-logo-slider-track {
    display: flex;
    align-items: center;
    animation: bb-logo-scroll 25s linear infinite;
}

.bb-logo-slider[data-direction="vertical"] .bb-logo-slider-track {
    flex-direction: column;
}

.bb-logo-slider-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.bb-logo-slider-item img {
    object-fit: contain;
}

.bb-logo-slider-divider {
    flex-shrink: 0;
}

.bb-logo-placeholder {
    border-radius: 4px;
    font-size: 12px;
}

.bb-logo-slider-placeholder {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

@keyframes bb-logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Team Carousel Widget Styles
   ======================================== */
.bb-team {
    width: 100%;
}

.bb-team-grid {
    display: grid;
}

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

.bb-team-slider .bb-team-slider-container {
    position: relative;
    overflow: hidden;
}

.bb-team-slider .bb-team-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.bb-team-cards-1 .bb-team-card { flex: 0 0 100%; }
.bb-team-cards-2 .bb-team-card { flex: 0 0 50%; }
.bb-team-cards-3 .bb-team-card { flex: 0 0 33.333%; }
.bb-team-cards-4 .bb-team-card { flex: 0 0 25%; }

.bb-team-card {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.bb-team-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bb-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-team-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #9ca3af;
}

.bb-team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.bb-team-info-hover {
    opacity: 0;
    transform: translateY(10px);
}

.bb-team-card:hover .bb-team-info-hover {
    opacity: 1;
    transform: translateY(0);
}

.bb-team-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.bb-team-designation {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
}

.bb-team-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.bb-team-social-icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: opacity 0.2s ease;
}

.bb-team-social-icon:hover {
    opacity: 0.8;
}

.bb-team-social-icon svg {
    width: 100%;
    height: 100%;
}

.bb-team-button {
    display: inline-block;
    padding: 8px 16px;
    background: #0057A5;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 12px;
    transition: background 0.2s ease;
}

.bb-team-button:hover {
    background: #004080;
}

.bb-team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.bb-team-nav:hover {
    background: #f3f4f6;
}

.bb-team-prev { left: -20px; }
.bb-team-next { right: -20px; }

.bb-team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bb-team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-team-dot.bb-dot-active,
.bb-team-dot:hover {
    background: #0057A5;
}

.bb-team-placeholder {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

@media (max-width: 1023px) {
    .bb-team-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .bb-team-cards-4 .bb-team-card { flex: 0 0 33.333%; }
}

@media (max-width: 767px) {
    .bb-team-cols-3,
    .bb-team-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bb-team-cards-3 .bb-team-card,
    .bb-team-cards-4 .bb-team-card { flex: 0 0 50%; }

    .bb-team-prev { left: 0; }
    .bb-team-next { right: 0; }
}

@media (max-width: 640px) {
    .bb-team-cols-2,
    .bb-team-cols-3,
    .bb-team-cols-4 { grid-template-columns: 1fr; }
    .bb-team-cards-2 .bb-team-card,
    .bb-team-cards-3 .bb-team-card,
    .bb-team-cards-4 .bb-team-card { flex: 0 0 100%; }
}


/* Team Carousel Overflow Mode - Matches Reviews Carousel */
.bb-team-carousel-overflow-container {
    width: 100%;
    overflow: visible;
    position: relative;
    /* Padding is applied dynamically by widget based on navigation position */
}

.bb-team-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.6s ease-in-out;
    margin-left: -6%;
    padding-left: 6%;
    padding-right: 100px;
}

.bb-team-carousel-track .bb-team-card {
    flex: 0 0 calc(33.33% - 17px);
    min-width: 300px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.bb-team-carousel-track .bb-team-card:hover {
    transform: translateY(-5px);
}

/* Team Carousel Navigation - Reuses carousel navigation styles */
.bb-team-carousel-overflow-container .bb-carousel-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation Position Variants */
.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-bottom-left {
    bottom: 20px; /* Positioned in the padding-bottom space */
    left: 0;
}

.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-bottom-right {
    bottom: 20px; /* Positioned in the padding-bottom space */
    left: auto;
    right: 0;
}

.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-top-left {
    top: 20px;
    bottom: auto;
    left: 0;
}

.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-top-right {
    top: 20px;
    bottom: auto;
    left: auto;
    right: 0;
}

.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-middle-sides {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
}

.bb-team-carousel-overflow-container .bb-carousel-navigation.bb-nav-middle-sides .bb-carousel-nav-button {
    pointer-events: all;
}

.bb-team-carousel-overflow-container .bb-carousel-nav-button {
    background-color: transparent;
    border: 2px solid #333333;
    color: #333333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.bb-team-carousel-overflow-container .bb-carousel-nav-button:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.1);
}

.bb-team-carousel-overflow-container .bb-carousel-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive Team Carousel - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .bb-team-carousel-track {
        margin-left: -4%;
        padding-left: 4%;
        padding-right: 75px;
    }

    .bb-team-carousel-track .bb-team-card {
        flex: 0 0 calc(33.33% - 17px);
        min-width: 280px;
    }
}

/* Responsive Team Carousel - Mobile */
@media (max-width: 767px) {
    .bb-team-carousel-track {
        margin-left: -6%;
        padding-left: 6%;
        padding-right: 50px;
        gap: 20px;
    }

    .bb-team-carousel-track .bb-team-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 100%;
        min-height: 350px;
    }
}
/* ========================================
   Posts Widget Styles
   ======================================== */

/* Posts Container */
.bb-posts-container {
    width: 100%;
    position: relative;
}

/* Posts Grid */
.bb-posts-grid {
    display: grid;
    gap: 24px;
}

.bb-posts-cols-1 {
    grid-template-columns: 1fr;
}

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

.bb-posts-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Posts List */
.bb-posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Posts Card */
.bb-posts-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bb-posts-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Horizontal Card Layout */
.bb-posts-card-horizontal {
    flex-direction: row;
}

.bb-posts-card-horizontal .bb-posts-image-wrapper {
    width: 40%;
    flex-shrink: 0;
}

.bb-posts-card-horizontal .bb-posts-content {
    flex: 1;
}

.bb-posts-card-image-right {
    flex-direction: row-reverse;
}

/* Background Image Card */
.bb-posts-card-background {
    position: relative;
    min-height: 300px;
}

.bb-posts-card-background .bb-posts-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bb-posts-card-background .bb-posts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    z-index: 1;
}

.bb-posts-card-background .bb-posts-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #ffffff;
}

.bb-posts-card-background .bb-posts-title a,
.bb-posts-card-background .bb-posts-excerpt,
.bb-posts-card-background .bb-posts-meta {
    color: #ffffff;
}

.bb-posts-card-background .bb-posts-category {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Image Wrapper */
.bb-posts-image-wrapper {
    position: relative;
    overflow: hidden;
}

.bb-posts-image-top .bb-posts-image-wrapper {
    padding-bottom: 56.25%; /* 16:9 default */
}

.bb-posts-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bb-posts-image-top .bb-posts-image {
    position: absolute;
    top: 0;
    left: 0;
}

.bb-posts-card:hover .bb-posts-image {
    transform: scale(1.05);
}

/* Image Placeholder */
.bb-posts-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
}

.bb-posts-image-top .bb-posts-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
}

/* Content Area */
.bb-posts-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Category Badge */
.bb-posts-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background-color: #eff6ff;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.bb-posts-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.bb-posts-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bb-posts-title a:hover {
    color: #3b82f6;
}

/* Excerpt */
.bb-posts-excerpt {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Meta (Author, Date) */
.bb-posts-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.bb-posts-author {
    color: #374151;
    font-weight: 500;
}

.bb-posts-meta-separator {
    color: #9ca3af;
}

/* Read More Link */
.bb-posts-read-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.bb-posts-read-more:hover {
    color: #2563eb;
}

/* Empty State */
.bb-posts-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* Slider Wrapper */
.bb-posts-slider-wrapper {
    position: relative;
    width: 100%;
}

.bb-posts-slider-container {
    overflow-x: hidden;
    overflow-y: visible;
}

.bb-posts-slides {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
    padding: 10px 0;
}

/* Slider Cards Per View */
.bb-posts-slider-cards-1 .bb-posts-card {
    min-width: 100%;
    flex: 0 0 100%;
}

.bb-posts-slider-cards-2 .bb-posts-card {
    min-width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
}

.bb-posts-slider-cards-3 .bb-posts-card {
    min-width: calc(33.333% - 16px);
    flex: 0 0 calc(33.333% - 16px);
}

.bb-posts-slider-cards-4 .bb-posts-card {
    min-width: calc(25% - 18px);
    flex: 0 0 calc(25% - 18px);
}

/* Slider Navigation */
.bb-posts-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bb-posts-slider-nav:hover {
    background-color: #2563eb;
}

.bb-posts-slider-prev {
    left: -20px;
}

.bb-posts-slider-next {
    right: -20px;
}

/* Slider Dots */
.bb-posts-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.bb-posts-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.bb-posts-slider-dot.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

/* Slider Navigation Container */
.bb-posts-slider-navigation {
    display: flex;
    gap: 8px;
}

/* Navigation Position: Sides (Default) */
.bb-posts-nav-sides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.bb-posts-nav-sides .bb-posts-slider-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    pointer-events: auto;
}

.bb-posts-nav-sides .bb-posts-slider-prev {
    margin-left: -20px;
}

.bb-posts-nav-sides .bb-posts-slider-next {
    margin-right: -20px;
}

/* Navigation Position: Top Right */
.bb-posts-nav-top-right {
    position: absolute;
    top: -50px;
    right: 0;
}

.bb-posts-nav-top-right .bb-posts-slider-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* Navigation Position: Bottom Left */
.bb-posts-nav-bottom-left {
    position: absolute;
    bottom: -50px;
    left: 0;
}

.bb-posts-nav-bottom-left .bb-posts-slider-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* Navigation Position: Bottom Right */
.bb-posts-nav-bottom-right {
    position: absolute;
    bottom: -50px;
    right: 0;
}

.bb-posts-nav-bottom-right .bb-posts-slider-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* Navigation Position: Bottom Center */
.bb-posts-nav-bottom-center {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.bb-posts-nav-bottom-center .bb-posts-slider-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* Overflow Styles for Modern Edge-to-Edge Designs */
.bb-posts-overflow {
    overflow: visible;
}

.bb-posts-overflow .bb-posts-slider-container {
    overflow: visible;
}

.bb-posts-overflow-right {
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
}

.bb-posts-overflow-left {
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
}

.bb-posts-overflow-both {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Responsive Posts - Tablet */
@media (max-width: 1023px) {
    .bb-posts-cols-3,
    .bb-posts-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bb-posts-slider-cards-3 .bb-posts-card,
    .bb-posts-slider-cards-4 .bb-posts-card {
        min-width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
    }
}

/* Responsive Posts - Mobile */
@media (max-width: 767px) {
    .bb-posts-cols-2,
    .bb-posts-cols-3,
    .bb-posts-cols-4 {
        grid-template-columns: 1fr;
    }

    .bb-posts-card-horizontal {
        flex-direction: column;
    }

    .bb-posts-card-horizontal .bb-posts-image-wrapper {
        width: 100%;
    }

    .bb-posts-slider-cards-2 .bb-posts-card,
    .bb-posts-slider-cards-3 .bb-posts-card,
    .bb-posts-slider-cards-4 .bb-posts-card {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .bb-posts-slider-prev {
        left: 10px;
    }

    .bb-posts-slider-next {
        right: 10px;
    }

    .bb-posts-content {
        padding: 16px;
    }

    .bb-posts-title {
        font-size: 16px;
    }
}

/* ==========================================
   Blog Search Widget Styles
   ========================================== */

.bb-blog-search-container {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.bb-blog-search-container:focus-within {
    z-index: 9999;
}

.bb-blog-search-form {
    position: relative;
    width: 100%;
}

.bb-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bb-blog-search-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #c2c2c2;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.bb-blog-search-input::placeholder {
    color: #636363;
}

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

/* Hide browser native clear button */
.bb-blog-search-input::-webkit-search-cancel-button,
.bb-blog-search-input::-webkit-search-decoration,
.bb-blog-search-input::-webkit-search-results-button,
.bb-blog-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

/* Search Icon */
.bb-search-icon-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.bb-blog-search-icon {
    width: 20px;
    height: 20px;
    color: #636363;
    transition: color 0.2s ease;
}

.bb-search-icon-left .bb-search-icon-wrapper {
    left: 14px;
}

.bb-search-icon-left .bb-blog-search-input {
    padding-left: 44px;
}

.bb-search-icon-right .bb-search-icon-wrapper {
    right: 14px;
}

.bb-search-icon-right .bb-blog-search-input {
    padding-right: 44px;
}

/* Clear Button */
.bb-search-clear-btn {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.bb-search-clear-btn:hover {
    background-color: #f3f4f6;
}

.bb-search-clear-icon {
    width: 16px;
    height: 16px;
    color: #636363;
}

/* Submit Button */
.bb-search-submit-btn {
    position: absolute;
    right: 4px;
    padding: 10px 20px;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-search-submit-btn:hover {
    background-color: #2563eb;
}

/* Dropdown */
.bb-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #c2c2c2;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
}

.bb-search-dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
    color: #6b7280;
}

.bb-search-results-list {
    padding: 8px 0;
}

/* Result Item */
.bb-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.bb-search-result-item:hover,
.bb-search-result-item.focused {
    background-color: #f3f4f6;
}

.bb-search-result-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
}

.bb-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-search-result-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
}

.bb-search-result-content {
    flex: 1;
    min-width: 0;
}

.bb-search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bb-search-result-category {
    font-size: 11px;
    font-weight: 500;
    color: #3b82f6;
    background-color: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.bb-search-result-date {
    font-size: 11px;
    color: #9ca3af;
}

.bb-search-result-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.bb-search-result-excerpt {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Loading State */
.bb-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #6b7280;
    font-size: 13px;
}

.bb-search-loader,
.bb-blog-search-loader {
    width: 20px;
    height: 20px;
    animation: bb-search-spin 1s linear infinite;
}

@keyframes bb-search-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Results */
.bb-search-no-results {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* Variant: Minimal */
.bb-blog-search-minimal .bb-blog-search-input {
    border-width: 0;
    border-bottom-width: 1px;
    border-radius: 0;
    background-color: transparent;
}

.bb-blog-search-minimal .bb-blog-search-input:focus {
    box-shadow: none;
    border-bottom-width: 2px;
}

/* Variant: Rounded */
.bb-blog-search-rounded .bb-blog-search-input {
    border-radius: 50px;
    padding-left: 48px;
    padding-right: 24px;
}

.bb-blog-search-rounded .bb-search-submit-btn {
    border-radius: 50px;
}

/* Variant: Underline */
.bb-blog-search-underline .bb-blog-search-input {
    border-width: 0;
    border-bottom-width: 2px;
    border-radius: 0;
    background-color: transparent;
    padding-left: 32px;
    padding-right: 0;
}

.bb-blog-search-underline .bb-blog-search-input:focus {
    box-shadow: none;
}

.bb-blog-search-underline .bb-search-icon-wrapper {
    left: 0;
}

/* Variant: Icon Only (Expandable) */
.bb-blog-search-icon-only {
    width: auto;
    max-width: none;
}

.bb-blog-search-icon-only .bb-search-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-blog-search-icon-only .bb-search-expand-btn:hover {
    background-color: #f3f4f6;
}

.bb-blog-search-icon-only .bb-search-expand-btn .bb-blog-search-icon {
    width: 26px;
    height: 26px;
    color: #6b7280;
}

.bb-blog-search-icon-only .bb-search-expandable-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.bb-blog-search-icon-only.expanded .bb-search-expand-btn {
    opacity: 0;
    pointer-events: none;
}

.bb-blog-search-icon-only.expanded .bb-search-expandable-wrapper {
    width: 300px;
}

/* Variant: Modal */
.bb-blog-search-modal {
    width: auto;
}

.bb-search-modal-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-search-modal-trigger:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.bb-search-modal-trigger .bb-blog-search-icon {
    width: 22px;
    height: 22px;
    color: #6b7280;
}

.bb-search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bb-search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bb-search-modal {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.bb-search-modal-overlay.active .bb-search-modal {
    transform: translateY(0) scale(1);
}

.bb-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.bb-search-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.bb-search-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-search-modal-close:hover {
    background-color: #f3f4f6;
}

.bb-search-close-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.bb-search-modal .bb-blog-search-form {
    padding: 20px;
}

.bb-search-modal .bb-blog-search-input {
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
}

.bb-search-modal .bb-search-dropdown {
    position: relative;
    top: auto;
    margin-top: 16px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    max-height: 50vh;
}

/* Responsive */
@media (max-width: 767px) {
    .bb-blog-search-input {
        height: 44px;
        font-size: 14px;
    }

    .bb-blog-search-icon-only.expanded .bb-search-expandable-wrapper {
        width: 250px;
    }
}

/* ========================================
   bp- Class Aliases for Forward Compatibility
   ======================================== */
/* Core container aliases */
.bp-page { min-height: 100vh; position: relative; }
.bp-section { position: relative !important; width: 100%; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.bp-container { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; }
.bp-column { display: flex; flex-direction: column; position: relative; }
.bp-element-wrap { position: relative; }

/* Icon alias */
.bp-lucide-icon svg { display: block; }

/* ========================================
   Global Header/Footer Locked States (Editor)
   ======================================== */

/* Locked global container - when viewing header/footer in page mode */
.global-header-container.locked,
.global-footer-container.locked {
    position: relative;
    pointer-events: none;
}

/* Click to edit overlay */
.global-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.global-header-container:hover .global-locked-overlay,
.global-footer-container:hover .global-locked-overlay {
    opacity: 1;
}

.global-locked-overlay:hover {
    background: rgba(0, 87, 165, 0.1);
}

.global-locked-overlay-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: #0057A5;
    pointer-events: none;
}

.global-locked-overlay-content svg {
    width: 16px;
    height: 16px;
}

/* Dark mode locked overlay */
.dark-mode .global-locked-overlay:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .global-locked-overlay-content {
    background: #282828;
    color: #60a5fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Global region separators */
.global-region-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    margin: 0;
}

.dark-mode .global-region-divider {
    background: linear-gradient(90deg, transparent, #333 20%, #333 80%, transparent);
}

/* ========================================
   Blog Template Widgets (Dynamic)
   ======================================== */

/* Post Title Widget */
.bb-post-title {
    margin: 0;
    padding: 0;
}

.bb-post-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Post Featured Image Widget */
.bb-post-featured-image {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.bb-post-featured-image-img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.bb-post-featured-image-link {
    display: block;
    overflow: hidden;
}

.bb-post-featured-image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
}

/* Post Meta Widget */
.bb-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.bb-post-meta-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.bb-post-meta-align-center {
    justify-content: center;
}

.bb-post-meta-align-right {
    justify-content: flex-end;
}

.bb-post-meta-stacked.bb-post-meta-align-center {
    align-items: center;
}

.bb-post-meta-stacked.bb-post-meta-align-right {
    align-items: flex-end;
}

.bb-post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bb-post-meta-separator {
    opacity: 0.5;
}

.bb-post-meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.bb-post-meta a,
.bb-post-meta-category-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bb-post-meta a:hover,
.bb-post-meta-category-link:hover {
    color: #2563eb;
}

/* Post Content Widget */
.bb-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.bb-post-content p {
    margin-bottom: 24px;
}

.bb-post-content p:last-child {
    margin-bottom: 0;
}

.bb-post-content h2,
.bb-post-content h3,
.bb-post-content h4,
.bb-post-content h5,
.bb-post-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.bb-post-content h2 {
    font-size: 1.75em;
}

.bb-post-content h3 {
    font-size: 1.5em;
}

.bb-post-content h4 {
    font-size: 1.25em;
}

.bb-post-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.bb-post-content a:hover {
    color: #2563eb;
}

.bb-post-content ul,
.bb-post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.bb-post-content li {
    margin-bottom: 0.5em;
}

.bb-post-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #e2e8f0;
    background: #f8fafc;
    font-style: italic;
    color: #475569;
}

.bb-post-content code {
    padding: 0.2em 0.4em;
    background: #f1f5f9;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.bb-post-content pre {
    margin: 1.5em 0;
    padding: 1em;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
}

.bb-post-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.bb-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Post Content Drop Cap */
.bb-post-content-dropcap > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 1;
    margin-right: 0.1em;
    font-weight: 700;
}

/* Post Tags Widget */
.bb-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.bb-post-tags-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.bb-post-tags-icon {
    width: 1em;
    height: 1em;
}

.bb-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bb-post-tag {
    color: #3b82f6;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bb-post-tag:hover {
    color: #2563eb;
    background: #eff6ff;
}

/* Pills layout */
.bb-post-tags-pills .bb-post-tag {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.bb-post-tags-pills .bb-post-tag:hover {
    background: #e2e8f0;
}

/* Bordered layout */
.bb-post-tags-bordered .bb-post-tag {
    border: 1px solid #3b82f6;
    padding: 4px 10px;
}

.bb-post-tags-bordered .bb-post-tag:hover {
    background: #3b82f6;
    color: white;
}

/* Blog Template Editor Mode Indicator */
.bb-blog-template-indicator {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.bb-blog-template-indicator svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Icon Box Widget
   ======================================== */
.bb-icon-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bb-icon-box[data-position="top"] {
    align-items: center;
    text-align: center;
}

.bb-icon-box[data-position="left"],
.bb-icon-box[data-position="right"] {
    flex-direction: row;
}

.bb-icon-box .bb-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.bb-icon-box[data-position="right"] .bb-wrapper {
    flex-direction: row-reverse;
}

.bb-icon-box .bb-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-icon-box .bb-content {
    flex: 1;
}

.bb-icon-box .bb-title {
    margin: 0 0 8px;
}

.bb-icon-box .bb-description {
    margin: 0;
    line-height: 1.6;
}

.bb-icon-box .bb-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bb-icon-box .bb-link:hover {
    text-decoration: none;
}

.bb-icon-box .bb-icon-emoji {
    display: block;
    line-height: 1;
}

.bb-icon-box .bb-icon-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Icon Box Alignment */
.bb-icon-box[data-align="left"] {
    text-align: left;
}

.bb-icon-box[data-align="center"] {
    text-align: center;
}

.bb-icon-box[data-align="right"] {
    text-align: right;
}

.bb-icon-box[data-align="left"][data-position="top"] {
    align-items: flex-start;
}

.bb-icon-box[data-align="right"][data-position="top"] {
    align-items: flex-end;
}

/* ========================================
   Icon Widget
   ======================================== */
.bb-icon {
    display: flex;
    width: 100%;
}

.bb-icon[data-align="left"] {
    justify-content: flex-start;
}

.bb-icon[data-align="center"] {
    justify-content: center;
}

.bb-icon[data-align="right"] {
    justify-content: flex-end;
}

.bb-icon .bb-icon-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.bb-icon .bb-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.bb-icon .bb-icon-emoji {
    display: block;
    line-height: 1;
}

.bb-icon .bb-icon-image {
    display: block;
    object-fit: contain;
}

/* Icon Hover Effects */
.bb-icon[data-hover="lift"]:hover .bb-icon-wrapper {
    transform: translateY(-5px);
}

.bb-icon[data-hover="scale"]:hover .bb-icon-wrapper {
    transform: scale(1.1);
}

.bb-icon[data-hover="rotate"]:hover .bb-icon-wrapper {
    transform: rotate(15deg);
}

.bb-icon[data-hover="glow"]:hover .bb-icon-wrapper {
    filter: drop-shadow(0 0 8px currentColor);
}

/* =========================================================================
   POPUP STYLES
   ========================================================================= */

/* Popup Base Styles */
/* Uses flexbox centering instead of transform-based positioning.
   This prevents entrance/exit animations (which use transform) from
   overriding the centering transform and breaking popup position. */
.bb-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.bb-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.bb-popup-container {
    position: relative;
    background: white;
    width: 60%;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Position Classes — use margin-based positioning with flex parent.
   No transform needed, so animations can freely use transform. */
.bb-popup-position-center {
    /* Centered by flex parent — no extra styles needed */
}

.bb-popup-position-top {
    margin-top: 20px;
    margin-bottom: auto;
}

.bb-popup-position-bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

.bb-popup-position-top-left {
    margin: 20px auto auto 20px;
}

.bb-popup-position-top-right {
    margin: 20px 20px auto auto;
}

.bb-popup-position-bottom-left {
    margin: auto auto 20px 20px;
}

.bb-popup-position-bottom-right {
    margin: auto 20px 20px auto;
}

.bb-popup-position-left {
    margin-right: auto;
    margin-left: 20px;
}

.bb-popup-position-right {
    margin-left: auto;
    margin-right: 20px;
}

.bb-popup-position-fullscreen {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    margin: 0;
}

/* Close Button */
.bb-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    color: #666666;
    border: none;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.bb-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

/* Close button outside position */
.bb-popup-close.outside {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    z-index: 11;
}

/* Container must not clip when close button is outside */
.bb-popup-container:has(.bb-popup-close.outside) {
    overflow: visible;
}

.bb-popup-container:has(.bb-popup-close.outside) > .bb-popup-content {
    max-height: inherit;
    overflow: auto;
}

/* Popup Content */
.bb-popup-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Popup Header Bar */
.bb-popup-header {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.bb-popup-header-title {
    font-weight: 600;
    word-break: break-word;
}

.bb-popup-header-description {
    word-break: break-word;
}

/* Editor: contenteditable focus styles for header */
.bb-popup-header-title[contenteditable="true"]:focus,
.bb-popup-header-description[contenteditable="true"]:focus {
    outline: 2px solid #2966E0;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   POPUP ANIMATIONS (Frontend/Published)
   Applied to .bb-popup-container
   ======================================== */

/* Animation Classes - Entrance (apply to container) */
.bb-popup-container.bb-popup-fade-in {
    animation: bbPopupFadeIn var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-slide-in-top {
    animation: bbPopupSlideInTop var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-slide-in-bottom {
    animation: bbPopupSlideInBottom var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-slide-in-left {
    animation: bbPopupSlideInLeft var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-slide-in-right {
    animation: bbPopupSlideInRight var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-zoom-in {
    animation: bbPopupZoomIn var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bb-popup-container.bb-popup-bounce {
    animation: bbPopupBounce var(--popup-duration, 500ms) cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

/* Animation Classes - Exit (apply to container) */
.bb-popup-container.bb-popup-fade-out {
    animation: bbPopupFadeOut var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bb-popup-container.bb-popup-slide-out-top {
    animation: bbPopupSlideOutTop var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bb-popup-container.bb-popup-slide-out-bottom {
    animation: bbPopupSlideOutBottom var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bb-popup-container.bb-popup-slide-out-left {
    animation: bbPopupSlideOutLeft var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bb-popup-container.bb-popup-slide-out-right {
    animation: bbPopupSlideOutRight var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bb-popup-container.bb-popup-zoom-out {
    animation: bbPopupZoomOut var(--popup-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframes - Entrance (100px distance for visible effect) */
@keyframes bbPopupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes bbPopupSlideInBottom {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bbPopupSlideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bbPopupSlideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bbPopupZoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bbPopupBounce {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.08); }
    70% { transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* Keyframes - Exit (100px distance for visible effect) */
@keyframes bbPopupFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

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

@keyframes bbPopupSlideOutBottom {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(100px); }
}

@keyframes bbPopupSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-100px); }
}

@keyframes bbPopupSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

@keyframes bbPopupZoomOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.5); }
}

/* Overlay animation */
.bb-popup .bb-popup-overlay {
    animation: bbPopupOverlayFadeIn var(--popup-duration, 300ms) ease-out;
}

@keyframes bbPopupOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Body scroll lock when popup is open */
body.bb-popup-open {
    overflow: hidden;
}

/* =========================================================================
   POPUP EDITOR PREVIEW STYLES
   Uses CSS custom properties for dynamic styling from PopupSettingsPanel
   ========================================================================= */

/* Editor popup preview backdrop */
.bb-popup-editor-backdrop {
    position: fixed;
    inset: 0;
    background: var(--popup-overlay-bg, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: var(--popup-v-align, center);
    justify-content: var(--popup-h-align, center);
    padding: 20px;
    overflow: auto;
    /* Subtle checkered pattern for editor visibility */
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-blend-mode: overlay;
}

/* Editor popup wrapper - for positioning outside close button */
.bb-popup-editor-wrapper {
    position: relative;
    width: var(--popup-width, 700px);
    max-width: 100%;
}

/* Editor popup container - editable area */
.bb-popup-editor-container {
    width: 100%;
    height: var(--popup-height, auto);
    min-height: var(--popup-min-height, 100px);
    max-height: var(--popup-max-height, none);
    margin: 0 auto;
    background: var(--popup-bg, #ffffff);
    border: var(--popup-border, none);
    border-radius: var(--popup-radius, 8px);
    box-shadow: var(--popup-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
    overflow: visible; /* Keep visible so outside close button isn't clipped */
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bb-popup-editor-container:hover {
    box-shadow: var(--popup-shadow, 0 4px 20px rgba(0, 0, 0, 0.15)), 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Editor popup close button preview */
.bb-popup-close-preview {
    position: absolute;
    top: var(--popup-close-top, 15px);
    right: var(--popup-close-right, 15px);
    width: var(--popup-close-size, 20px);
    height: var(--popup-close-size, 20px);
    padding: 0;
    background: var(--popup-close-bg, transparent);
    color: var(--popup-close-color, #666666);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.bb-popup-close-preview:hover {
    background: var(--popup-close-hover-bg, rgba(0, 0, 0, 0.1));
    color: var(--popup-close-hover-color, #000000);
    opacity: 1;
}

/* Close button outside position - positions button on the edge of the container
   Button is centered on the corner, half inside half outside */
.bb-popup-close-preview.outside {
    top: 0 !important;
    right: 0 !important;
    transform: translate(50%, -50%);
}

/* Popup content area in editor - handles overflow for scrollable content */
.bb-popup-content.sections-container {
    padding: var(--popup-padding, 0);
    min-height: 50px;
    max-height: var(--popup-max-height, none);
    overflow: var(--popup-overflow, visible);
    flex: 1;
}

/* End section within popup */
.bb-popup-content .end-section-wrapper {
    min-height: 80px;
    background: transparent;
}

.bb-popup-content .end-section-content {
    padding: 20px;
}

/* ========================================
   POPUP ANIMATIONS (Editor Preview)
   Applied to .bb-popup-editor-container
   ======================================== */

/* Base animation class - apply to container */
.bb-popup-editor-container.bb-popup-animated {
    animation-duration: var(--popup-animation-duration, 300ms);
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- ENTRANCE ANIMATIONS ---- */

/* Fade In */
.bb-popup-editor-container.bb-popup-fade-in {
    animation-name: bb-popup-fade-in;
}

@keyframes bb-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide from Top */
.bb-popup-editor-container.bb-popup-slide-in-top {
    animation-name: bb-popup-slide-in-top;
}

@keyframes bb-popup-slide-in-top {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide from Bottom */
.bb-popup-editor-container.bb-popup-slide-in-bottom {
    animation-name: bb-popup-slide-in-bottom;
}

@keyframes bb-popup-slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide from Left */
.bb-popup-editor-container.bb-popup-slide-in-left {
    animation-name: bb-popup-slide-in-left;
}

@keyframes bb-popup-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide from Right */
.bb-popup-editor-container.bb-popup-slide-in-right {
    animation-name: bb-popup-slide-in-right;
}

@keyframes bb-popup-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In */
.bb-popup-editor-container.bb-popup-zoom-in {
    animation-name: bb-popup-zoom-in;
}

@keyframes bb-popup-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce */
.bb-popup-editor-container.bb-popup-bounce {
    animation-name: bb-popup-bounce;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bb-popup-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    70% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}

/* ---- EXIT ANIMATIONS ---- */

/* Fade Out */
.bb-popup-editor-container.bb-popup-fade-out {
    animation-name: bb-popup-fade-out;
}

@keyframes bb-popup-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Slide Out Top */
.bb-popup-editor-container.bb-popup-slide-out-top {
    animation-name: bb-popup-slide-out-top;
}

@keyframes bb-popup-slide-out-top {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/* Slide Out Bottom */
.bb-popup-editor-container.bb-popup-slide-out-bottom {
    animation-name: bb-popup-slide-out-bottom;
}

@keyframes bb-popup-slide-out-bottom {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* Slide Out Left */
.bb-popup-editor-container.bb-popup-slide-out-left {
    animation-name: bb-popup-slide-out-left;
}

@keyframes bb-popup-slide-out-left {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

/* Slide Out Right */
.bb-popup-editor-container.bb-popup-slide-out-right {
    animation-name: bb-popup-slide-out-right;
}

@keyframes bb-popup-slide-out-right {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Zoom Out */
.bb-popup-editor-container.bb-popup-zoom-out {
    animation-name: bb-popup-zoom-out;
}

@keyframes bb-popup-zoom-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Close button delayed appearance */
.bb-popup-close-delayed {
    opacity: 0;
    animation-name: bb-popup-close-fade-in;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

@keyframes bb-popup-close-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

/* =============================================
   Featured Showcase Widget
   ============================================= */

.bb-featured-showcase {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.bb-fs-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bb-fs-tab {
    cursor: pointer;
    user-select: none;
}

.bb-fs-tab-inner {
    display: flex;
    align-items: flex-start;
}

.bb-fs-tab-content {
    flex: 1;
    min-width: 0;
}

.bb-fs-title {
    margin: 0;
}

.bb-fs-content {
    overflow: hidden;
}

.bb-fs-description {
    margin: 0;
    line-height: 1.6;
}

.bb-fs-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
}

.bb-fs-link svg {
    flex-shrink: 0;
}

/* Indicator */
.bb-fs-indicator-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.bb-fs-indicator-dot {
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-sizing: content-box;
}

.bb-fs-indicator-segment {
    flex: 1;
    min-height: 8px;
}

.bb-fs-indicator-number {
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Images */
.bb-fs-images {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.bb-fs-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-fs-image.active {
    opacity: 1;
    position: relative;
}

.bb-fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-fs-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
}

/* Image animations */
.bb-featured-showcase[data-image-animation="slide"] .bb-fs-image {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.bb-featured-showcase[data-image-animation="slide-up"] .bb-fs-image {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 767px) {
    .bb-featured-showcase {
        flex-direction: column;
    }

    .bb-fs-images {
        min-height: 200px;
    }
}

/* ==========================================
   Image Carousel Widget
   ========================================== */

.bb-image-carousel {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.bb-ic-viewport {
    overflow: hidden;
    position: relative;
}

.bb-ic-track {
    display: flex;
    will-change: transform;
}

.bb-ic-overflow-viewport {
    overflow: visible;
    position: relative;
}

.bb-ic-overflow-track {
    display: flex;
    will-change: transform;
}

.bb-ic-slide {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.bb-ic-slide img {
    display: block;
    width: 100%;
    pointer-events: none;
}

.bb-ic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.bb-ic-content {
    position: absolute;
    bottom: 0;
    z-index: 1;
    box-sizing: border-box;
}

.bb-ic-title {
    margin: 0;
}

.bb-ic-description {
    margin: 0;
}

.bb-ic-button {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.bb-ic-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-ic-arrow {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    line-height: 1;
}

.bb-ic-arrow svg {
    pointer-events: none;
}

.bb-ic-dots {
    display: flex;
    justify-content: center;
}

.bb-ic-dot {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* Lightbox */
.bb-ic-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-ic-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.bb-ic-lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-ic-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.bb-ic-lb-caption {
    color: #fff;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    max-width: 600px;
}

.bb-ic-lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bb-ic-lb-close:hover {
    opacity: 1;
}

.bb-ic-lb-prev,
.bb-ic-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.bb-ic-lb-prev:hover,
.bb-ic-lb-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bb-ic-lb-prev {
    left: -60px;
}

.bb-ic-lb-next {
    right: -60px;
}

.bb-ic-lb-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .bb-ic-lb-prev {
        left: 8px;
    }

    .bb-ic-lb-next {
        right: 8px;
    }

    .bb-ic-lb-close {
        top: -36px;
        right: 4px;
    }
}
/* ==========================================
   Content Slider Widget
   ========================================== */

.bb-content-slider {
    position: relative;
}

.bb-cs-viewport {
    overflow: hidden;
    position: relative;
}

.bb-cs-track {
    display: flex;
}

.bb-cs-slide {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.bb-cs-slide .cc-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: inherit;
}

.bb-cs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bb-cs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.bb-cs-dot.active {
    transform: scale(1.2);
}

/* Content Slider Editor Indicator Badge */
.bb-cs-editor-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   Scroll Reveal Heading
   ======================================== */
.bb-heading-scroll-reveal {
    display: block;
}

.bb-scroll-word {
    display: inline-block;
}

/* ========================================
   Before & After Widget
   ======================================== */
.bb-before-after {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}
.bb-before-after img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.bb-ba-before {
    width: 100%;
    height: 100%;
}
.bb-ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.bb-ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    cursor: ew-resize;
    z-index: 2;
    transform: translateX(-50%);
}
.bb-ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-ba-slider-handle::before,
.bb-ba-slider-handle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
}
.bb-ba-slider-handle::before {
    border-width: 6px 8px 6px 0;
    border-color: transparent #333 transparent transparent;
    left: 6px;
}
.bb-ba-slider-handle::after {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #333;
    right: 6px;
}
.bb-ba-label {
    position: absolute;
    top: 12px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}
.bb-ba-label-before {
    left: 12px;
}
.bb-ba-label-after {
    right: 12px;
}

/* ========================================
   Avatars Widget
   ======================================== */
.bb-avatars { display: flex; flex-direction: column; gap: 8px; }
.bb-avatars-images { display: flex; }
.bb-avatar-item { border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; }
.bb-avatar-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.bb-avatars-text { margin: 0; line-height: 1.5; }

/* ========================================
   Scroll Effects (Flex/Layer widgets)
   ======================================== */
[data-scroll-effect] {
    opacity: 0;
    transform: translateY(40px);
}
[data-scroll-effect].bb-scroll-visible {
    opacity: 1;
    transform: none;
}

