/*
Theme Name: Broke Curated
Theme URI: https://example.com/broke-curated
Author: Custom Build
Description: A clean, responsive curated affiliate product grid WordPress theme inspired by ThisIsWhyImBroke. Includes Products CPT, Image from URL, configurable Grid Ads, Pagination modes (Numbers, Prev/Next, Load More), Contact Form (CMS + Email), Product Social Share, and full Customizer controls.
Version: 3.3.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: broke-curated
*/

:root {
    --bc-bg: #f4f5f7;
    --bc-surface: #ffffff;
    --bc-header-bg: #111827;
    --bc-header-text: #f9fafb;
    --bc-footer-bg: #111827;
    --bc-footer-text: #9ca3af;
    --bc-text: #1f2937;
    --bc-muted: #6b7280;
    --bc-border: #e5e7eb;
    --bc-accent: #10b981;
    --bc-btn-bg: #10b981;
    --bc-btn-text: #ffffff;
    --bc-sp-btn-bg: #10b981;
    --bc-sp-btn-text: #ffffff;
    --bc-sp-btn-border: #10b981;
    --bc-sp-btn-border-w: 0px;
    --bc-sp-btn-pad-y: 12px;
    --bc-sp-btn-font-size: 15px;
    --bc-sp-btn-radius: 8px;
    --bc-sp-btn-w-mobile: 100%;
    --bc-sp-btn-w-tablet: 100%;
    --bc-sp-btn-w-desktop: 100%;
    --bc-desc-lines-mobile: 3;
    --bc-desc-lines-tablet: 3;
    --bc-desc-lines-desktop: 3;
    --bc-title-lines-mobile: 2;
    --bc-title-lines-tablet: 2;
    --bc-title-lines-desktop: 2;
    --bc-title-align-mobile: left;
    --bc-title-align-tablet: left;
    --bc-title-align-desktop: left;
    --bc-sp-title-align-mobile: left;
    --bc-radius: 10px;
    --bc-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --bc-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.10);
    --bc-container-width: 1240px;
    --bc-grid-gap: 24px;
    --bc-cols-desktop: 3;
    --bc-cols-tablet: 2;
    --bc-cols-mobile: 1;
    --bc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --bc-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --bc-body-size: 15px;
    --bc-heading-size: 17px;
    --bc-logo-mobile: 34px;
    --bc-logo-tablet: 42px;
    --bc-logo-desktop: 48px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    font-family: var(--bc-font-body);
    font-size: var(--bc-body-size);
    background-color: var(--bc-bg);
    color: var(--bc-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .bc-card-title, .bc-single-title, .bc-section-title, .bc-brand {
    font-family: var(--bc-font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bc-container {
    width: 100%;
    max-width: var(--bc-container-width);
    margin: 0 auto;
    padding: 0 14px;
}

@media (min-width: 640px) {
    .bc-container {
        padding: 0 20px;
    }
}

/* Header */
.bc-header {
    background-color: var(--bc-header-bg);
    color: var(--bc-header-text);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.bc-header.is-sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .bc-header.is-sticky {
    top: 46px;
}

@media (min-width: 783px) {
    body.admin-bar .bc-header.is-sticky {
        top: 32px;
    }
}

.bc-header .bc-container {
    padding-left: 18px;
    padding-right: 18px;
}

@media (min-width: 600px) {
    .bc-header .bc-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.bc-header-inner {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 0;
}

.bc-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 0;
}

.bc-brand a {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.bc-brand img {
    margin: 0 auto;
    height: var(--bc-logo-mobile);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 600px) {
    .bc-brand img {
        height: var(--bc-logo-tablet);
    }
}

@media (min-width: 960px) {
    .bc-brand img {
        height: var(--bc-logo-desktop);
    }
}

@media (min-width: 768px) {
    .bc-brand {
        font-size: 1.45rem;
    }
}

.bc-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bc-header-search {
    display: none;
}

@media (min-width: 960px) {
    .bc-header-search {
        display: flex;
        width: 100%;
        max-width: 290px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        padding: 4px 5px 4px 14px;
        border: 1px solid rgba(255, 255, 255, 0.16);
    }
}

.bc-header-search input[type="search"],
.bc-pop-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--bc-header-text);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
    padding: 4px 0;
}

.bc-header-search input[type="search"]::placeholder,
.bc-pop-search input[type="search"]::placeholder {
    color: #9ca3af;
}

.bc-header-search button,
.bc-pop-search button {
    background: var(--bc-btn-bg);
    color: var(--bc-btn-text);
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.bc-header-search button:hover,
.bc-pop-search button:hover {
    opacity: 0.9;
}

.bc-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--bc-header-text);
    border-radius: 8px;
    width: 40px;
    height: 38px;
    cursor: pointer;
    padding: 0;
}

@media (min-width: 960px) {
    .bc-search-toggle {
        display: none;
    }
}

.bc-pop-search {
    display: none;
    background: #1f2937;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bc-pop-search.is-open {
    display: block;
}

@media (min-width: 960px) {
    .bc-pop-search.is-open {
        display: none;
    }
}

.bc-pop-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 5px 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.bc-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--bc-header-text);
    border-radius: 8px;
    min-width: 40px;
    min-height: 38px;
    padding: 6px 11px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.bc-menu-toggle-label {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .bc-menu-toggle-label {
        display: inline;
    }
}

/* Left Slide-out Drawer */
.bc-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.bc-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bc-header-bg);
    color: var(--bc-header-text);
    z-index: 99999;
    padding: 18px 18px 28px;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
}

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

.bc-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bc-drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.bc-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin: 16px 0 8px;
}

.bc-drawer-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.bc-drawer-pill {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e7eb;
    transition: background 0.15s ease, color 0.15s ease;
}

.bc-drawer-pill:hover,
.bc-drawer-pill.is-active,
.bc-drawer-top-menu li.current-menu-item > a,
.bc-drawer-top-menu li.current-menu-ancestor > a {
    background: var(--bc-accent);
    color: #fff;
}

.bc-drawer-top-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e7eb;
    transition: background 0.15s ease, color 0.15s ease;
}

.bc-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-mobile-drawer li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #e5e7eb;
}

.bc-mobile-drawer li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Main Content */
.bc-main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 48px;
}

.bc-archive-header {
    margin-bottom: 18px;
}

.bc-archive-title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .bc-archive-title {
        font-size: 1.65rem;
    }
}

.bc-archive-desc {
    margin: 0;
    color: var(--bc-muted);
    font-size: 0.95rem;
}

/* Product Grid */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(var(--bc-cols-mobile), minmax(0, 1fr));
    gap: var(--bc-grid-gap);
}

@media (min-width: 600px) {
    .bc-grid {
        grid-template-columns: repeat(var(--bc-cols-tablet), minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .bc-grid {
        grid-template-columns: repeat(var(--bc-cols-desktop), minmax(0, 1fr));
    }
}

/* Product Card */
.bc-card {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
    .bc-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--bc-shadow-hover);
    }

}

.bc-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-bottom: 1px solid var(--bc-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-card-media > a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bc-card-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    margin: auto;
    display: block;
}

.bc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.9rem;
}

.bc-card-body {
    padding: 15px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bc-card-body {
        padding: 18px 18px 14px;
    }
}

.bc-card-head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--bc-border);
}

@media (min-width: 768px) {
    .bc-card-head {
        padding: 16px 18px 12px;
    }
}

.bc-card-head .bc-card-title {
    margin: 0;
}

.bc-card-title {
    margin: 0 0 8px;
    font-size: var(--bc-heading-size);
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-product-card .bc-card-title {
    -webkit-line-clamp: var(--bc-title-lines-mobile);
    text-align: var(--bc-title-align-mobile);
}

@media (min-width: 600px) {
    .bc-product-card .bc-card-title {
        -webkit-line-clamp: var(--bc-title-lines-tablet);
        text-align: var(--bc-title-align-tablet);
    }
}

@media (min-width: 960px) {
    .bc-product-card .bc-card-title {
        -webkit-line-clamp: var(--bc-title-lines-desktop);
        text-align: var(--bc-title-align-desktop);
    }
}

.bc-card-actions {
    padding: 12px 16px 0;
}

@media (min-width: 768px) {
    .bc-card-actions {
        padding: 14px 18px 0;
    }
}

.bc-card-actions .bc-cta-btn {
    width: 100%;
}

.bc-card-title a:hover {
    color: var(--bc-accent);
}

.bc-card-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--bc-muted);
    text-align: justify;
    text-justify: inter-word;
    display: -webkit-box;
    -webkit-line-clamp: var(--bc-desc-lines-mobile);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 600px) {
    .bc-card-excerpt {
        -webkit-line-clamp: var(--bc-desc-lines-tablet);
    }
}

@media (min-width: 960px) {
    .bc-card-excerpt {
        -webkit-line-clamp: var(--bc-desc-lines-desktop);
    }
}

.bc-card-footer {
    padding: 12px 16px 15px;
    border-top: 1px solid var(--bc-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .bc-card-footer {
        padding: 14px 18px 18px;
    }
}

.bc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bc-btn-bg);
    color: var(--bc-btn-text);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 16px;
    min-height: 42px;
    border-radius: 8px;
    transition: opacity 0.15s ease, transform 0.12s ease;
    white-space: nowrap;
}

.bc-card-footer .bc-cta-btn {
    width: 100%;
}

.bc-single-actions .bc-cta-large {
    background: var(--bc-sp-btn-bg);
    color: var(--bc-sp-btn-text);
    border: var(--bc-sp-btn-border-w) solid var(--bc-sp-btn-border);
    font-size: var(--bc-sp-btn-font-size);
    padding: var(--bc-sp-btn-pad-y) 24px;
    border-radius: var(--bc-sp-btn-radius);
    width: var(--bc-sp-btn-w-mobile);
    max-width: 100%;
    transition: opacity 0.15s ease, transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

@media (min-width: 600px) {
    .bc-single-actions .bc-cta-large {
        width: var(--bc-sp-btn-w-tablet);
    }
}

@media (min-width: 960px) {
    .bc-single-actions .bc-cta-large {
        width: var(--bc-sp-btn-w-desktop);
    }
}

.bc-single-actions {
    align-items: flex-start;
}

.bc-card-cta-desktop {
    display: none;
    width: 100%;
}

.bc-card-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

@media (min-width: 600px) {
    .bc-card-cta-desktop {
        display: block;
    }
    .bc-card-cta-mobile {
        display: none;
    }
}

.bc-cta-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Single Product */
.bc-single-wrap {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 18px;
    box-shadow: var(--bc-shadow);
    margin-top: 10px;
}

@media (min-width: 768px) {
    .bc-single-wrap {
        padding: 28px;
    }
}

.bc-breadcrumbs {
    font-size: 0.84rem;
    color: var(--bc-muted);
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.bc-breadcrumbs a:hover {
    text-decoration: underline;
}

.bc-single-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bc-single-info {
    display: contents;
}

@media (max-width: 767px) {
    .bc-single-wrap { padding: 12px; margin-top: 8px; }
    .bc-single-grid { gap: 8px; }
    .bc-single-title { order: 1; margin: 0; line-height: 1.15; text-align: var(--bc-sp-title-align-mobile); }
    .bc-single-image { order: 2; padding: 6px; }
    .bc-single-actions { order: 3; }
    .bc-single-content { order: 4; margin-bottom: 0; text-align: justify; text-justify: inter-word; }
    .bc-single-content p { margin-top: 0; margin-bottom: 8px; text-align: justify; text-justify: inter-word; }
    .bc-single-content p:empty, .bc-single-content br:last-child { display: none; }
    .bc-single-content p:last-of-type { margin-bottom: 0; }
    .bc-share-box { order: 5; margin-top: 4px; padding-top: 10px; }
}

@media (min-width: 768px) {
    .bc-single-grid {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 32px;
        align-items: start;
    }
    .bc-single-info {
        display: block;
    }
}

.bc-single-image {
    aspect-ratio: 1 / 1;
    border-radius: var(--bc-radius);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--bc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bc-single-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    margin: auto;
    display: block;
}

.bc-single-title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.22;
}

@media (min-width: 768px) {
    .bc-single-title {
        font-size: 1.85rem;
    }
}

.bc-single-content {
    margin-bottom: 22px;
    font-size: 1rem;
}

.bc-single-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}



/* Social Share Bar */
.bc-share-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bc-border);
}

.bc-share-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bc-muted);
    margin-bottom: 10px;
}

.bc-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.12s ease;
}

.bc-infinite-sentinel {
    margin-top: 28px;
    text-align: center;
    color: var(--bc-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 0;
}

.bc-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bc-share--wa { background: #25D366; }
.bc-share--sms { background: #3b82f6; }
.bc-share--email { background: #4b5563; }
.bc-share--x { background: #111827; }
.bc-share--fb { background: #1877F2; }
.bc-share--copy { background: #e5e7eb; color: #1f2937; }

.bc-related {
    margin-top: 36px;
}

.bc-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 16px;
}

/* Pagination & Load More */
.bc-pagination {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.bc-pagination .page-numbers,
.bc-prev-next-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    font-weight: 600;
    font-size: 0.9rem;
}

.bc-pagination .page-numbers.current {
    background: var(--bc-header-bg);
    color: #fff;
    border-color: var(--bc-header-bg);
}

.bc-load-more-wrap {
    margin-top: 28px;
    text-align: center;
}

.bc-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bc-header-bg);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.bc-load-more-btn:hover {
    background: var(--bc-accent);
    transform: translateY(-1px);
}

.bc-load-more-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Contact Form */
.bc-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 768px) {
    .bc-contact-grid {
        grid-template-columns: 1.35fr 1fr;
        gap: 36px;
    }
}

.bc-contact-form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}

.bc-contact-aside {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 22px;
}

.bc-contact-aside h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
}

.bc-contact-aside p {
    margin: 0 0 14px;
    font-size: 0.94rem;
    color: var(--bc-muted);
}

.bc-contact-tips {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.bc-contact-tips li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bc-contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--bc-border);
}

.bc-contact-socials a {
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    font-size: 0.82rem;
    font-weight: 600;
}

.bc-contact-socials a:hover {
    border-color: var(--bc-accent);
    color: var(--bc-accent);
}

.bc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-form-group label {
    font-size: 0.88rem;
    font-weight: 700;
}

.bc-form-group input,
.bc-form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1f2937;
}

.bc-form-group input:focus,
.bc-form-group textarea:focus {
    outline: 2px solid var(--bc-accent);
    border-color: transparent;
}

.bc-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.bc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.bc-alert--success {
    background: #d1fae5;
    color: #065f46;
}

.bc-alert--error {
    background: #fee2e2;
    color: #991b1b;
}

/* Empty State */
.bc-empty {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 36px 20px;
    text-align: center;
    color: var(--bc-muted);
}

/* Grid Ads */
.bc-grid-ad {
    background: transparent;
    border-radius: var(--bc-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--bc-shadow);
}

.bc-grid-ad--banner {
    grid-column: 1 / -1;
}

.bc-grid-ad--card {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
}

.bc-ad-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.bc-ad-body > * {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.bc-ad-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Blog & Article Layout */
.bc-blog-media {
    aspect-ratio: 16 / 9;
}

.bc-blog-media > a {
    display: block;
    padding: 0;
}

.bc-blog-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.bc-blog-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
}

.bc-blog-cats-row {
    margin-bottom: 22px;
}


.bc-blog-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    flex: 1;
    min-width: 0;
}

.bc-blog-cats::-webkit-scrollbar {
    display: none;
}

.bc-blog-cats li {
    flex-shrink: 0;
}

.bc-pill,
.bc-blog-cats li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    background: var(--bc-surface);
    color: var(--bc-text);
    border: 1px solid var(--bc-border);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.bc-pill:hover,
.bc-pill.is-active,
.bc-blog-cats li a:hover,
.bc-blog-cats li.current-menu-item > a {
    background: var(--bc-header-bg);
    color: #ffffff;
    border-color: var(--bc-header-bg);
}

.bc-blog-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    flex: 1;
    min-width: 0;
}

.bc-blog-cats::-webkit-scrollbar {
    display: none;
}

.bc-blog-cats li {
    flex-shrink: 0;
}

.bc-pill,
.bc-blog-cats li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    background: var(--bc-surface);
    color: var(--bc-text);
    border: 1px solid var(--bc-border);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.bc-pill:hover,
.bc-pill.is-active,
.bc-blog-cats li a:hover,
.bc-blog-cats li.current-menu-item > a {
    background: var(--bc-header-bg);
    color: #ffffff;
    border-color: var(--bc-header-bg);
}

.bc-blog-search {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: 999px;
    padding: 4px 5px 4px 14px;
    box-shadow: var(--bc-shadow);
}

@media (min-width: 768px) {
    .bc-blog-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .bc-blog-search {
        max-width: 320px;
        flex-shrink: 0;
    }
}

.bc-blog-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--bc-text);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.bc-blog-search button {
    background: var(--bc-btn-bg);
    color: var(--bc-btn-text);
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.bc-blog-meta {
    font-size: 0.8rem;
    color: var(--bc-muted);
    margin-bottom: 8px;
}

.bc-article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 960px) {
    .bc-article-layout {
        grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
        gap: 32px;
    }
}

.bc-article-wrap {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 20px;
    box-shadow: var(--bc-shadow);
}

@media (min-width: 768px) {
    .bc-article-wrap {
        padding: 32px 36px;
    }
}

.bc-article-title {
    margin: 0 0 18px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .bc-article-title {
        font-size: 2.05rem;
    }
}

.bc-article-thumb {
    margin: 0 0 24px;
    border-radius: var(--bc-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.bc-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-article-content {
    font-size: 1.03rem;
    line-height: 1.78;
    color: var(--bc-text);
}

.bc-article-content p {
    margin: 0 0 1.2em;
}

.bc-article-content h2,
.bc-article-content h3 {
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
}

.bc-article-content ul,
.bc-article-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.bc-article-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.bc-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-sidebar-box {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 20px;
    box-shadow: var(--bc-shadow);
}

.bc-sidebar-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
}

.bc-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bc-recent-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bc-recent-thumb {
    width: 68px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.bc-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-recent-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-recent-title:hover {
    color: var(--bc-accent);
}

.bc-recent-date {
    font-size: 0.76rem;
    color: var(--bc-muted);
    margin-top: 2px;
}

.bc-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bc-text);
}

.bc-cat-list a:hover {
    background: var(--bc-bg);
    color: var(--bc-accent);
}

/* Footer */
.bc-footer {
    background: var(--bc-footer-bg);
    color: var(--bc-footer-text);
    padding: 28px 0;
    font-size: 0.86rem;
    margin-top: auto;
}

.bc-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.bc-drawer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 14px 0;
}

.bc-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.bc-footer-nav a {
    color: var(--bc-footer-text);
    font-weight: 600;
    transition: color 0.15s ease;
}

.bc-footer-nav a:hover {
    color: #ffffff;
}

.bc-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.bc-footer-socials a {
    color: var(--bc-footer-text);
    font-weight: 600;
    transition: color 0.15s ease;
}

.bc-footer-socials a:hover {
    color: #ffffff;
}
