/* Rustica Font Face */
@font-face {
    font-family: 'Rustica';
    src: url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Light.woff2') format('woff2'),
         url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rustica';
    src: url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Regular.woff2') format('woff2'),
         url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rustica';
    src: url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Medium.woff2') format('woff2'),
         url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rustica';
    src: url('../../../../themes/_sanmita-child/assets/fonts/Rustica-SemiBold.woff2') format('woff2'),
         url('../../../../themes/_sanmita-child/assets/fonts/Rustica-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rustica';
    src: url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Bold.woff2') format('woff2'),
         url('../../../../themes/_sanmita-child/assets/fonts/Rustica-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.cbl-wrap { margin: 20px 0; font-family: Arial, sans-serif; }
.cbl-filter-bar { margin-bottom: 56px; display:flex; align-items:center; gap:8px; }
.cbl-term-pills { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.cbl-term-pill {
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 10px 15px;
    border-radius: 999px;
    cursor: pointer;
    color: #4B5563;
    line-height: 16px;
    font-family: 'Rustica', sans-serif;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}
.cbl-term-pill:hover { transform:scale(1.05); box-shadow:0 12px 30px rgba(0,0,0,0.2); }
.cbl-term-pill.active { background:#EA6852; color:#fff; border-color:transparent; }
.cbl-search-wrap { margin-left:auto; display:flex; gap:8px; align-items:center; position:relative; }
.cbl-search-wrap::before { content:''; position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:contain; pointer-events:none; z-index:1; }
.cbl-search { padding:10px 10px 10px 36px; border:1px solid #E5E7EB; border-radius:8px; min-width:280px; outline:none; font-family:'Inter',sans-serif; font-weight:400; font-size:14px; line-height:20px; }
.cbl-search::placeholder { color:#CCCCCC; font-family:'Inter',sans-serif; font-weight:400; font-size:14px; line-height:20px; }
.cbl-search:focus { border-color:#E5E7EB; box-shadow:none; outline:none; }
.cbl-search-toggle { background:transparent; border:0; cursor:pointer; font-size:16px; }
.cbl-term-select { padding:6px 8px; }
.cbl-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:40px; }
.cbl-card { width:100%; background:#fff; border:1px solid #eee; box-shadow:0 1px 2px rgba(0,0,0,0.03); overflow:hidden; border-radius:15px; transition:transform 0.4s ease, box-shadow 0.4s ease; will-change:transform; }
.cbl-card:hover { transform:scale(1.05); box-shadow:0 12px 30px rgba(0,0,0,0.2); }
.cbl-thumb { display:block; aspect-ratio:16/9; overflow:hidden; }
.cbl-thumb img { width:100%; height:100%; display:block; object-fit:cover; }
.cbl-meta { padding:20px 14px; }
.cbl-date-author { font-size:12px; color:#666; margin-bottom:6px; display:flex; gap:8px; }
.cbl-card-terms { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:11px; }
.cbl-card-term { display:inline-block; background:#E5F4EB; color:#008C44; padding:4px 10px; border-radius:999px; font-size:12px; line-height:16px; }
.cbl-title { font-size:16px !important; margin:6px 0 10px; color:#111827; font-weight:600; font-family:'Inter',sans-serif; }
.cbl-title a:hover { text-decoration:underline !important; }
.cbl-excerpt { font-family:'Inter',sans-serif; font-weight:400; font-size:12px; line-height:16px; vertical-align:middle; color:#6B7280; margin-bottom:8px; }
.cbl-card-footer { display:flex; justify-content:space-between; align-items:center; margin-top:34px; }
.cbl-card-date { color:#6B7280; font-size:14px; font-weight:400; font-family:'Rustica',sans-serif; line-height:100%; }
.cbl-card-readmore { line-height:100%; }
.cbl-watch { color:#008C44 !important; text-decoration:none; font-weight:400; font-family:'Rustica',sans-serif; display:inline-flex; align-items:center; gap:6px; transition:transform 0.4s ease, box-shadow 0.4s ease; will-change:transform; }
.cbl-watch::after { content:''; display:inline-block; width:14px; height:14px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008C44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:contain; }
.cbl-watch:hover { text-decoration:underline; transform:scale(1.05); }

/* single post header */
.cbl-single-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.cbl-single-meta-left { max-width:75%; }
.cbl-single-term { display:inline-block; background:#e6f6ee; color:#1b8a45; padding:6px 12px; border-radius:999px; font-size:13px; margin-bottom:8px; }
.cbl-single-title { font-size:28px; margin:6px 0 8px; color:#18323a; }
.cbl-single-byline { font-size:14px; color:#6b6b6b; }
.cbl-single-meta-right { display:flex; align-items:center; gap:12px; }
.cbl-share-btn { background:transparent; border:1px solid #ddd; padding:8px 12px; border-radius:6px; cursor:pointer; }
.cbl-share-btn:active { transform:translateY(1px); }

/* floating share button above single article */
.cbl-single-topbar { position:relative; }
.cbl-share-float { position:absolute; right:0; top:0; background:#fff; border:1px solid #ddd; padding:8px 12px; border-radius:6px; cursor:pointer; }
.cbl-share-float:active { transform:translateY(1px); }
.cbl-readmore { display:inline-flex; align-items:center; gap:5px; padding:0; background:transparent; color:#008C44 !important; text-decoration:underline !important; border-radius:0; font-family:'Rustica',sans-serif; font-weight:400; font-size:14px; line-height:14px; letter-spacing:0; vertical-align:middle; transition:opacity 0.2s ease; }
.cbl-readmore::after { content:''; display:inline-block; width:13px; height:13px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008C44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:contain; flex-shrink:0; }
.cbl-readmore:hover { opacity:0.8; text-decoration:underline !important; }
/* remove underline from all links inside card and ensure color inheritance */
.cbl-card a { text-decoration:none; color:inherit; }
.cbl-card a:hover { text-decoration:none; }
.cbl-no-thumb { background:#f3f3f3; height:150px; }
.cbl-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.cbl-loading, .cbl-empty, .cbl-error { padding:16px; color:#666; }
.cbl-loadmore-wrap { text-align:center; margin-top:40px; }
.cbl-loadmore { padding:10px 15px; background:#EA6852; color:#fff; border:0; border-radius:99px; cursor:pointer; transition:transform 0.4s ease, box-shadow 0.4s ease; will-change:transform; font-size:16px; line-height:16px; font-family:'Rustica',sans-serif; }
.cbl-loadmore:hover { transform:scale(1.05); box-shadow:0 12px 30px rgba(0,0,0,0.2); }
.cbl-loadmore[disabled] { opacity:0.6; cursor:default; }

.cbl-loader { position:relative; min-height:40px; }
.cbl-spinner {
	width:36px; height:36px; border-radius:50%; border:4px solid rgba(0,0,0,0.08); border-top-color:#0073aa; animation:cbl-spin 1s linear infinite; margin:14px auto; }
@keyframes cbl-spin { to { transform: rotate(360deg);} }

/* Single post meta bar */
.cbl-single-metabar { display:flex; justify-content:space-between; align-items:center; padding:12px 0;margin-bottom:24px; }
.cbl-single-metabar-left { display:flex; align-items:center; gap:20px; }
.cbl-single-metabar-date,
.cbl-single-metabar-author { display:inline-flex; align-items:center; gap:6px; font-family:'rustica',sans-serif; font-size:16px; font-weight:400; color:#4B5563; }
.cbl-single-metabar-date svg,
.cbl-single-metabar-author svg { flex-shrink:0; }
.cbl-single-metabar-right { display:flex; align-items:center; }
.cbl-single-share-btn { display:inline-flex; align-items:center; gap:6px; background:transparent; border:none; cursor:pointer; font-family:'Inter',sans-serif; font-size:14px; font-weight:400; color:#4B5563; padding:4px 0; }
.cbl-single-share-btn:hover { color:#111827; }
.cbl-single-share-btn svg { flex-shrink:0; }

/* Single post featured image */
.cbl-single-featured {
    width: 100%;
    height: 600px;
    border: 2px solid #E5E7EB;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.cbl-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Tablet: 768px – 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
    .cbl-cards { grid-template-columns:repeat(2, 1fr); gap:30px; }
    .cbl-filter-bar { flex-wrap:wrap; gap:12px; margin-bottom:40px; }
    .cbl-search-wrap { margin-left:auto; }
    .cbl-search { min-width:220px; }
    .cbl-title { font-size:15px !important; min-height:36px; }
    .cbl-meta { padding:16px 12px; }
    .cbl-card-footer { margin-top:24px; }
    .cbl-single-title { font-size:24px; }
    .cbl-single-featured {
        height: 400px;
    }
}

/* Mobile: below 768px */
@media (max-width: 767px) {
    .cbl-cards { grid-template-columns:1fr; gap:24px; }
    .cbl-filter-bar { flex-direction:column; align-items:stretch; gap:12px; margin-bottom:30px; }
    .cbl-term-pills { justify-content:flex-start; gap:8px; }
    .cbl-term-pill { padding:8px 12px; font-size:13px; }
    .cbl-search-wrap { margin-left:0; width:100%; }
    .cbl-search { width:100%; min-width:unset; box-sizing:border-box; }
    .cbl-title { font-size:15px !important; min-height:auto; }
    .cbl-meta { padding:16px 12px; }
    .cbl-excerpt { font-size:13px; }
    .cbl-card-footer { margin-top:20px; flex-wrap:wrap; gap:8px; }
    .cbl-card-date { font-size:13px; }
    .cbl-watch { font-size:13px; }
    .cbl-single-header { flex-direction:column; }
    .cbl-single-meta-left { max-width:100%; }
    .cbl-single-title { font-size:22px; }
    .cbl-card:hover { transform:none; box-shadow:0 1px 2px rgba(0,0,0,0.03); }
    .cbl-term-pill:hover { transform:none; box-shadow:none; }
    .cbl-single-metabar { flex-wrap:wrap; gap:10px; }
    .cbl-single-metabar-left { gap:12px; }
    .cbl-single-metabar-date,
    .cbl-single-metabar-author { font-size:16px; }
    .cbl-single-share-btn { font-size:13px; }
    .cbl-single-featured {
        height: 280px;
    }
}
