/*
Theme Name: Inspiro Child
Theme URI: https://biorevitsignal.com
Description: BioRevit Signal — custom child theme for Inspiro
Author: Aria
Author URI: https://biorevitsignal.com
Template: inspiro
Version: 2.0.0
Text Domain: inspiro-child
*/

/* ============================================================
   BIOREVIT SIGNAL — Child Theme Overrides
   Parent CSS provides: layout, nav structure, JS interactions
   This file adds: colors, fonts, content-specific overrides
   ============================================================ */

/* ── Body font ── */
body, .site, .site-content {
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

/* ── Nav: white background, black text ── */
.navbar {
    --bs-r: 255;
    --bs-g: 255;
    --bs-b: 255;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.1s ease, box-shadow 0.1s ease;
}

.navbar-nav > li > a {
    color: #333 !important;
    font-family: "Onest", sans-serif;
}
.navbar-nav > li > a:hover {
    color: #005fbe !important;
    border-bottom-color: #005fbe !important;
}
.navbar-nav > li.current-menu-item > a {
    border-bottom-color: #005fbe !important;
}

/* ── Dropdown arrow ── */
.navbar-nav .menu-item-has-children > a .svg-icon {
    fill: #333 !important;
}

/* ── Submenu ── */
.navbar-nav ul.sub-menu {
    background: #ffffff !important;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.navbar-nav ul.sub-menu a {
    color: #444 !important;
}
.navbar-nav ul.sub-menu a:hover {
    color: #005fbe !important;
    background: #f5f5f5;
}

/* ── Hamburger icon bars ── */
.navbar-toggle .icon-bar {
    background: #333;
}

/* ── Sticky header background (headroom.js adds this class) ── */
.headroom--not-top .navbar,
.has-header-image.home.blog .headroom--not-top .navbar,
.has-header-image.inspiro-front-page .headroom--not-top .navbar,
.has-header-video.home.blog .headroom--not-top .navbar,
.has-header-video.inspiro-front-page .headroom--not-top .navbar {
    background: transparent !important;
    box-shadow: none !important;
}

/* ── Search icon ── */
.sb-search-button-open .svg-icon-search svg {
    fill: #333;
}
.sb-search-button-close .svg-icon-cross svg {
    fill: #999;
}

/* ── Side nav (mobile) ── */
.side-nav {
    background: #ffffff;
}
.side-nav .navbar-nav a {
    color: #333;
}

/* ============================================================
   CONTENT OVERRIDES
   ============================================================ */

/* ── Homepage: hide default entry header ── */
.home .entry-header {
    display: none !important;
}

/* ── Cards section full-width ── */
.home .biosignal-cards-section {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.home .biosignal-cards-section .content-slider {
    max-width: 100% !important;
}

/* ── Top bar language switcher ── */
.inspiro-topbar .topbar-col--right a {
    color: inherit;
    text-decoration: none;
}
.inspiro-topbar .topbar-col--right a:hover {
    text-decoration: underline;
}
.inspiro-topbar .topbar-col--right a.current-lang {
    font-weight: 600;
}
.inspiro-topbar .topbar-col--right a img {
    margin-right: 3px;
}

/* ============================================================
   CAROUSEL SECTION
   ============================================================ */
.biosignal-cards-section {
    background: #fff;
    padding: 0 0 60px 0;
    margin-top: -2px;
}
.biosignal-cards-section .double-heading {
    text-align: center;
    padding: 40px 0 20px;
}
.biosignal-cards-section .double-heading p {
    margin: 0 10px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.biosignal-cards-section .double-heading h4 {
    margin: 0 10px 8px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}
.biosignal-cards-section .content-slider {
    position: relative;
    overflow: visible;
}
.biosignal-cards-section .content-slider a,
.biosignal-cards-section .content-slider .cat-filter-btn {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.biosignal-cards-section .content-slider a::after,
.biosignal-cards-section .content-slider .cat-filter-btn::after {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 100%;
    z-index: 1;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 30% 75%, rgba(0,0,0,0.3));
}
.biosignal-cards-section .content-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s all ease;
    transform: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
.biosignal-cards-section .content-slider a:hover img,
.biosignal-cards-section .content-slider a:focus img,
.biosignal-cards-section .content-slider .cat-filter-btn:hover img,
.biosignal-cards-section .content-slider .cat-filter-btn:focus img {
    opacity: 0.9;
    transform: scale(1.1);
}
.biosignal-cards-section .content-slider h3 {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    color: #fff;
    font-size: clamp(22px, 1.6vw, 32px);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    text-align: center;
    padding: 4px 12px;
    margin: 0 16px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
/* Trapezoid background under title */
.biosignal-cards-section .content-slider .cat-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 90px;
    z-index: 2;
    background: rgba(19, 92, 169, 0.79);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        calc(100% - 30px) 100%,
        30px 100%
    );
    pointer-events: none;
}
.biosignal-cards-section .content-slider__cta {
    position: absolute;
    bottom: 20px;
    left: 15%;
    width: 70%;
    z-index: 12;
    background: #005fbe;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    padding: 12px 18px 10px;
    line-height: 18px;
    letter-spacing: 0.1em;
    border-radius: 20px;
    text-transform: uppercase;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: background-color 0.3s ease;
}
.biosignal-cards-section .content-slider__cta:hover {
    background: #004a8c;
}
.biosignal-cards-section .splide__arrows {
    display: none !important;
}
.biosignal-cards-section .custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s, box-shadow 0.3s;
    font-size: 28px;
    line-height: 1;
    color: #333;
    font-weight: 300;
}
.biosignal-cards-section .custom-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.biosignal-cards-section .custom-arrow svg {
    display: none;
}
.biosignal-cards-section .custom-arrow--prev {
    left: 12px;
}
.biosignal-cards-section .custom-arrow--next {
    right: 12px;
}
.biosignal-cards-section .cat-filter-btn.active {
    outline: 3px solid #0bb4aa;
    outline-offset: -3px;
}
.js-splide-biosignal .splide__list,
.js-splide-biosignal .splide__slide {
    visibility: hidden;
}
.js-splide-biosignal.splide-ready .splide__list,
.js-splide-biosignal.splide-ready .splide__slide {
    visibility: visible;
}

/* ============================================================
   HORIZONTAL POSTS CARDS
   ============================================================ */
.biosignal-posts-section {
    background: #f4f6fa;
    padding: 20px 0 60px;
    scroll-margin-top: 110px;
}
.posts-filter-bar {
    text-align: center;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
}
.posts-filter-bar .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #e0e3e8;
    color: #333;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
}
.posts-filter-bar .filter-btn:hover {
    background: #cdd0d6;
}
.posts-filter-bar .filter-btn.active {
    background: #005fbe;
    color: #fff;
}
.posts-search-input {
    width: 100%;
    max-width: 340px;
    padding: 4px 14px !important;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #d0d3d8;
    border-radius: 20px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    margin: 0 !important;
    height: 34px;
    min-height: 34px;
    line-height: normal;
    vertical-align: middle;
}
.posts-search-input:focus {
    border-color: #005fbe;
    box-shadow: 0 0 0 3px rgba(0,95,190,0.15);
    background: #fff !important;
    color: #222 !important;
}
.posts-search-input::placeholder {
    color: #999 !important;
    opacity: 1;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.post-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover img {
    transform: scale(1.08);
}
.post-card .card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background-image: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 50% 70%, rgba(0,0,0,0.3) 100%);
}
.post-card .card-anim-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.post-card .card-anim-overlay.active {
    opacity: 1;
}
.post-card .card-anim-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ── Carousel category hover animation ── */
.cat-filter-btn .card-anim-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.cat-filter-btn .card-anim-overlay.active {
    opacity: 1;
}
.cat-filter-btn .card-anim-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(16, 16, 16, 0.78);
    z-index: 1;
    pointer-events: none;
}
.post-card .card-title {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    font-size: clamp(14px, 1.1vw, 20px);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    padding-right: 20px;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 0.03em;
}
.post-card .card-excerpt {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    max-width: calc(100% - 130px);
    font-size: 14px;
    line-height: 1.35;
    color: #ddd;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-right: 20px;
    pointer-events: none;
}
.post-card .card-watch-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    background: #005fbe;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: inherit;
}
.post-card:hover .card-watch-btn {
    background: #004a8c;
}
.posts-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 14px;
}
@media (max-width: 1100px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .posts-grid { grid-template-columns: 1fr; padding: 0 15px; }
    .posts-filter-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }
    .posts-filter-bar .filter-btn { font-size: 10px; padding: 0 10px; }
    .posts-search-input { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE CAROUSEL
   ============================================================ */
@media (max-width: 768px) {
    .biosignal-cards-section .content-slider h3 {
        font-size: clamp(16px, 3vw, 22px);
        top: 12px;
        margin: 0 12px;
    }
}
@media (max-width: 480px) {
    .biosignal-cards-section .content-slider h3 {
        position: static;
        text-align: center;
        color: #000;
        font-size: 15px;
        font-weight: 700;
        padding: 8px 10px 0;
        margin: 0;
    }
    .biosignal-cards-section .content-slider .cat-filter-btn::before {
        display: none;
    }
    .biosignal-cards-section .content-slider__cta {
        display: none !important;
    }
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
#posts-grid.bs-video-layout {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 30px;
    background: transparent;
}
#posts-grid.bs-video-layout .bs-player-col {
    flex: 1;
    min-width: 0;
    max-width: 1200px;
}
#posts-grid.bs-video-layout .bs-sidebar-col {
    width: 420px;
    flex-shrink: 0;
}
.bs-player-wrapper video,
.bs-player-wrapper .protected-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
.bs-player-wrapper .video-js {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}
.bs-player-wrapper .vjs-fluid {
    aspect-ratio: 16 / 9;
}
.bs-player-wrapper .vjs-control-bar {
    bottom: 0 !important;
    top: auto !important;
}
.bs-player-loading { text-align: center; padding: 120px 20px; color: #666; font-size: 16px; }
.bs-player-loading-spinner {
    width: 40px; height: 40px; margin: 0 auto 16px;
    border: 3px solid #e0e0e0; border-top-color: #005fbe;
    animation: bs-spin 0.8s linear infinite;
}
@keyframes bs-spin { to { transform: rotate(360deg); } }
.bs-player-switching { opacity: 0.4; transition: opacity 0.2s ease; }
.bs-player-error { text-align: center; padding: 80px 20px; color: #c00; font-size: 15px; }
.bs-player-info { padding: 20px 0 8px; border-bottom: 1px solid #e0e3e8; margin-bottom: 16px; }
.bs-player-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; line-height: 1.2; }
.bs-player-excerpt { font-size: 15px; color: #555; margin: 0 0 8px; line-height: 1.5; }
.bs-player-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bs-player-cat { display: inline-block; background: #e8ecf0; color: #444; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; }
.bs-player-content { font-size: 16px; line-height: 1.7; color: #333; }
.bs-player-content p { margin-bottom: 1em; }
.bs-player-content h2, .bs-player-content h3 { color: #1a1a1a; margin-top: 1.4em; margin-bottom: 0.4em; }
.bs-player-content img { max-width: 100%; height: auto; }
.bs-sidebar-empty { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.bs-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 13px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    box-sizing: border-box;
    margin-right: 6px;
    flex-shrink: 0;
    background: #e0e3e8;
    color: #333;
}
.bs-theme-toggle:hover {
    background: #cdd0d6;
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-bs-theme="dark"] {
    --bs-bg-body: #0f0f0f;
    --bs-bg-surface: #1a1a1a;
    --bs-bg-elevated: #272727;
    --bs-bg-player: #141414;
    --bs-text-primary: #f1f1f1;
    --bs-text-secondary: #aaa;
    --bs-text-muted: #888;
    --bs-border: #303030;
    --bs-accent: #0bb4aa;
    --bs-btn-bg: #333;
    --bs-btn-hover: #444;
    --bs-input-bg: #272727;
    --bs-input-border: #444;
    --bs-input-text: #eee;
    --bs-input-placeholder: #777;
}
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .site,
[data-bs-theme="dark"] .site-content,
[data-bs-theme="dark"] .content-area,
[data-bs-theme="dark"] .site-main {
    background: #0f0f0f !important;
}
[data-bs-theme="dark"] .biosignal-posts-section {
    background: #0f0f0f !important;
}
[data-bs-theme="dark"] .biosignal-cards-section {
    background: #0f0f0f !important;
}
[data-bs-theme="dark"] .biosignal-cards-section .double-heading h4 {
    color: #f1f1f1 !important;
}
[data-bs-theme="dark"] .biosignal-cards-section .double-heading p {
    color: #999 !important;
}
#posts-grid.bs-video-layout {
    background: #1a1a1a;
    transition: background 0.3s ease;
}
.bs-player-col {
    background: #141414 !important;
    border-radius: 12px;
    padding: 28px;
}
.bs-player-wrapper .video-js {
    border-radius: 10px;
    overflow: hidden;
}
.bs-player-info {
    padding: 20px 0 12px !important;
    border-bottom: 1px solid #2a2a2a !important;
}
.bs-player-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.bs-player-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.bs-player-cat {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #ccc;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}
.bs-player-cat:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.bs-player-content {
    color: #ccc !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    transition: max-height 0.4s ease, -webkit-mask-image 0.4s ease;
}
.bs-player-content.collapsed {
    max-height: 250px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.bs-player-content h2, .bs-player-content h3 {
    color: #fff !important;
}
.bs-player-content img {
    border-radius: 8px;
}
.bs-player-content-toggle {
    display: block;
    background: none;
    border: none;
    color: #8ab4f8;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 0 4px;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.bs-player-content-toggle:hover {
    color: #a8c7fa;
    text-decoration: underline;
}
.bs-player-switching {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bs-player-col {
    transition: opacity 0.25s ease;
}
[data-bs-theme="dark"] .posts-filter-bar .filter-btn {
    background: #333;
    color: #ccc;
    border: 1px solid #555;
}
[data-bs-theme="dark"] .posts-filter-bar .filter-btn:hover {
    background: #444;
    color: #fff;
}
[data-bs-theme="dark"] .posts-filter-bar .filter-btn.active {
    background: #005fbe;
    color: #fff;
    border-color: #005fbe;
}
[data-bs-theme="dark"] .posts-search-input {
    background: #272727 !important;
    color: #eee !important;
    border-color: #444 !important;
}
[data-bs-theme="dark"] .posts-search-input:focus {
    border-color: #0bb4aa !important;
    box-shadow: 0 0 0 3px rgba(11,180,170,0.2) !important;
}
[data-bs-theme="dark"] .posts-search-input::placeholder {
    color: #777 !important;
    opacity: 1 !important;
}
[data-bs-theme="dark"] .cat-filter-btn h3 {
    color: #fff !important;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-bs-theme="light"] {
    --bs-bg-body: #f7f7f7;
    --bs-bg-surface: #f1f1f1;
    --bs-bg-elevated: #fff;
    --bs-bg-player: #ffffff;
    --bs-text-primary: #0f0f0f;
    --bs-text-secondary: #555;
    --bs-text-muted: #888;
    --bs-border: #ddd;
    --bs-accent: #0bb4aa;
    --bs-input-bg: #fff;
    --bs-input-border: #d0d3d8;
    --bs-input-text: #222;
    --bs-input-placeholder: #999;
}
[data-bs-theme="light"] #posts-grid.bs-video-layout {
    background: #f1f1f1 !important;
}
[data-bs-theme="light"] .bs-player-col {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-bs-theme="light"] .bs-player-title {
    color: #0f0f0f !important;
}
[data-bs-theme="light"] .bs-player-info {
    border-bottom-color: #e8e8e8 !important;
}
[data-bs-theme="light"] .bs-player-content {
    color: #333 !important;
}
[data-bs-theme="light"] .bs-player-content h2,
[data-bs-theme="light"] .bs-player-content h3 {
    color: #0f0f0f !important;
}
[data-bs-theme="light"] .bs-player-content-toggle {
    color: #005fbe !important;
}
[data-bs-theme="light"] .bs-player-content-toggle:hover {
    color: #003d80 !important;
}
[data-bs-theme="light"] .bs-player-cat {
    background: rgba(0,0,0,0.06);
    color: #555;
}
[data-bs-theme="light"] .bs-player-cat:hover {
    background: rgba(0,0,0,0.12);
    color: #222;
}
[data-bs-theme="light"] .bs-sidebar-col .post-card {
    background: #f0f0f0 !important;
}
[data-bs-theme="light"] .bs-sidebar-col .post-card .card-title {
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}
[data-bs-theme="light"] .posts-search-input {
    background: #fff !important;
    color: #222 !important;
    border-color: #d0d3d8 !important;
}
[data-bs-theme="light"] .posts-search-input:focus {
    border-color: #0bb4aa !important;
    box-shadow: 0 0 0 3px rgba(11,180,170,0.15) !important;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    #posts-grid.bs-video-layout { background: #1a1a1a; flex-direction: column; padding: 16px; }
    .bs-player-col { max-width: 100%; }
    .bs-sidebar-col { width: 100%; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 500px) {
    .bs-player-title { font-size: 18px; }
}

/* ============================================================
   SIDEBAR — inherits main card styles
   ============================================================ */
.bs-sidebar-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* ── Black search button ── */
.sb-search-button-open,
.sb-search-button-open .sb-icon-search {
    color: #000 !important;
}
.sb-search-button-open svg {
    fill: #000 !important;
}
/* ── Theme toggle pill switcher ── */
.bs-theme-toggle {
    display: inline-flex !important;
    align-items: center;
    background: #e8ecf0 !important;
    border-radius: 24px !important;
    padding: 3px !important;
    cursor: pointer !important;
    border: none !important;
    gap: 0;
    height: 34px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}
.bs-theme-toggle .mode-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
    height: 28px;
}
.bs-theme-toggle .mode-option.mode-light {
    color: #666;
}
.bs-theme-toggle .mode-option.mode-dark {
    color: #666;
}
.bs-theme-toggle.mode-is-light .mode-option.mode-light {
    background: #005fbe;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,95,190,0.3);
}
.bs-theme-toggle.mode-is-dark .mode-option.mode-dark {
    background: #005fbe;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,95,190,0.3);
}
.bs-theme-toggle .mode-icon {
    font-size: 14px;
    line-height: 1;
}
/* ── Back to Top button — restyle theme's button to blue ── */
.inspiro-back-to-top {
    --inspiro-btt-bg: #005fbe !important;
    --inspiro-btt-icon: #ffffff !important;
}
.inspiro-back-to-top:hover {
    --inspiro-btt-bg: #004a9c !important;
}

/* ── Dark mode pill — match filter button look ── */
[data-bs-theme="dark"] .bs-theme-toggle {
    background: #333 !important;
    border: 1px solid #555 !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .bs-theme-toggle .mode-option.mode-light {
    color: #ccc;
}
[data-bs-theme="dark"] .bs-theme-toggle .mode-option.mode-dark {
    color: #ccc;
}
[data-bs-theme="dark"] .bs-theme-toggle.mode-is-light .mode-option.mode-light {
    background: #005fbe;
    color: #fff;
    border-color: #005fbe;
}
[data-bs-theme="dark"] .bs-theme-toggle.mode-is-dark .mode-option.mode-dark {
    background: #005fbe;
    color: #fff;
    border-color: #005fbe;
}
/* Hide theme search overlay — we use posts-filter-bar instead */
#sb-search .sb-search-input,
#sb-search .sb-search-button-close,
#sb-search label {
    display: none !important;
}
#sb-search {
    display: block !important;
}
#sb-search .sb-search-button-open {
    display: inline-block !important;
    cursor: pointer;
}
