/**
 * Blog Cards — 4SIX Smart Design v3
 */

/* ── Hide old Elementor hero widgets (button, heading, description) ── */
.elementor-element-4b3c715,
.elementor-element-3fb736b,
.elementor-element-f869e49,
.elementor-element-8a9661f { display: none !important; }

/* ── Global link fix inside the blog section ── */
.fbc-wrap a,
.fbc-wrap a:hover,
.fbc-wrap a:visited,
.fbc-wrap a:focus {
    text-decoration: none;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.fbc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #020d18 0%, #041624 50%, #071e30 100%);
    border-radius: 20px;
    padding: 64px 40px 56px;
    margin-bottom: 36px;
    text-align: center;
    border: 1px solid rgba(16,185,129,0.1);
}
.fbc-hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.fbc-hero-glow--l {
    background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 70%);
    top: -120px; left: -100px;
}
.fbc-hero-glow--r {
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    bottom: -120px; right: -80px;
}
.fbc-hero-inner { position: relative; z-index: 2; }
.fbc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.fbc-hero-dot {
    width: 7px; height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: fbc-pulse 1.6s ease-in-out infinite;
}
@keyframes fbc-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(0.7); }
}
.fbc-hero-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.fbc-hero-brand {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fbc-hero-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.fbc-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 28px;
    gap: 24px;
}
.fbc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.fbc-hero-stat strong {
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
}
.fbc-hero-stat span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.fbc-hero-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* ══════════════════════════════
   CATEGORY FILTER
══════════════════════════════ */
.fbc-filter-wrap { margin-bottom: 28px; }
.fbc-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.fbc-filter-scroll::-webkit-scrollbar { display: none; }
.fbc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
}
.fbc-tab:hover {
    background: rgba(16,185,129,0.1);
    color: #10b981;
    border-color: rgba(16,185,129,0.3);
}
.fbc-tab--active {
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16,185,129,0.32);
}
.fbc-tab-n {
    font-size: 11px;
    background: rgba(0,0,0,0.2);
    border-radius: 999px;
    padding: 1px 7px;
}

/* ══════════════════════════════
   FEATURED POST
══════════════════════════════ */
.fbc-featured {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.fbc-featured-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 360px;
    text-decoration: none !important;
    color: inherit;
    background: #0a1929;
}
.fbc-feat-img {
    position: relative;
    background: #0a1929 center/cover no-repeat;
    min-height: 300px;
}
.fbc-feat-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
}
.fbc-feat-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.15;
}
.fbc-feat-cat-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 2;
}
.fbc-feat-star {
    position: absolute;
    bottom: 16px; left: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #fbbf24;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    z-index: 2;
}
.fbc-feat-body {
    padding: 36px 36px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(160deg,#0d1f30,#0a1829);
}
.fbc-feat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    flex-wrap: wrap;
}
.fbc-dot { opacity: 0.5; }
.fbc-feat-title {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.fbc-featured-inner:hover .fbc-feat-title { color: #10b981; }
.fbc-feat-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fbc-feat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    margin-top: 4px;
    transition: gap 0.2s;
}
.fbc-featured-inner:hover .fbc-feat-btn { gap: 14px; }
.fbc-arrow { display: inline-block; transition: transform 0.2s; }
.fbc-featured-inner:hover .fbc-arrow { transform: translateX(4px); }

/* ══════════════════════════════
   CARDS GRID
══════════════════════════════ */
.fbc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.fbc-card {
    background: #0a1929;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    animation: fbcFadeUp 0.55s ease-out both;
    opacity: 0;
}
.fbc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    border-color: rgba(16,185,129,0.22);
}
.fbc-card--wide { grid-column: span 2; }
@keyframes fbcFadeUp {
    from { opacity:0; transform:translateY(26px); }
    to   { opacity:1; transform:translateY(0); }
}

.fbc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

/* Image */
.fbc-card-img {
    position: relative;
    height: 195px;
    background: #071522;
    overflow: hidden;
    flex-shrink: 0;
}
.fbc-card--wide .fbc-card-img { height: 235px; }
.fbc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.fbc-card:hover .fbc-card-img img { transform: scale(1.06); }
.fbc-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    opacity: 0.18;
    background: linear-gradient(135deg,#0a2a1e,#071522);
}
.fbc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,25,41,0.9) 0%, transparent 55%);
    pointer-events: none;
}
.fbc-card-cat {
    position: absolute;
    top: 11px; left: 11px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 2;
}
.fbc-card-time {
    position: absolute;
    bottom: 9px; right: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(0,0,0,0.55);
    padding: 2px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Body */
.fbc-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 7px;
}
.fbc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #475569;
}
.fbc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.fbc-card--wide .fbc-card-title { font-size: 18px; }
.fbc-card:hover .fbc-card-title { color: #10b981; }
.fbc-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.fbc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}
.fbc-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
    text-decoration: none !important;
}
.fbc-card:hover .fbc-read-more { gap: 9px; }
.fbc-comments { font-size: 12px; color: #334155; }

/* ══════════════════════════════
   LOAD MORE
══════════════════════════════ */
.fbc-loadmore-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}
.fbc-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 38px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 18px rgba(16,185,129,0.32);
    text-decoration: none !important;
}
.fbc-loadmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,185,129,0.48);
}
.fbc-loadmore-btn:disabled { opacity: 0.6; cursor: not-allowed; }
@keyframes fbc-spin { to { transform: rotate(360deg); } }
.fbc-lm-status { font-size: 13px; color: #334155; }
.fbc-lm-status strong { color: #64748b; }

/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.fbc-empty { text-align: center; padding: 80px 24px; }
.fbc-empty-icon { font-size: 56px; margin-bottom: 16px; }
.fbc-empty h3 { font-size: 22px; color: #f1f5f9; margin: 0 0 8px; }
.fbc-empty p { color: #475569; font-size: 14px; margin: 0 0 24px; }
.fbc-empty-btn {
    display: inline-block;
    padding: 11px 28px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fbc-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.4); }

/* ══════════════════════════════
   CTA STRIP
══════════════════════════════ */
.fbc-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg,#071e12,#0a2a1c);
    border: 1px solid rgba(16,185,129,0.18);
    border-radius: 16px;
    padding: 24px 30px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.fbc-cta-left { display: flex; align-items: center; gap: 16px; }
.fbc-cta-icon { font-size: 30px; }
.fbc-cta-title { font-size: 16px; font-weight: 800; color: #f1f5f9; margin-bottom: 3px; }
.fbc-cta-sub { font-size: 13px; color: #475569; }
.fbc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    background: linear-gradient(135deg,#10b981,#059669);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(16,185,129,0.32);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fbc-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,0.48); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
    .fbc-grid { grid-template-columns: repeat(2,1fr); }
    .fbc-card--wide { grid-column: span 2; }
}
@media (max-width: 768px) {
    .fbc-hero { padding: 48px 24px 40px; border-radius: 16px; }
    .fbc-hero-title { font-size: 28px; }
    .fbc-hero-stats { gap: 16px; padding: 12px 20px; }
    .fbc-featured-inner { grid-template-columns: 1fr; }
    .fbc-feat-img { min-height: 210px; }
    .fbc-feat-body { padding: 24px 20px; }
    .fbc-grid { grid-template-columns: 1fr; gap: 14px; }
    .fbc-card--wide { grid-column: span 1; }
    .fbc-cta-strip { flex-direction: column; align-items: center; }
    .fbc-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .fbc-wrap { padding: 0 12px 40px; }
    .fbc-hero { padding: 40px 16px 32px; }
    .fbc-hero-stats { flex-direction: row; flex-wrap: nowrap; gap: 8px; padding: 10px 14px; width: 100%; justify-content: space-between; }
    .fbc-hero-stat strong { font-size: 16px; }
    .fbc-hero-stat span { font-size: 10px; }
    .fbc-hero-divider { width: 1px; height: 24px; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .fbc-card { animation: none; opacity: 1; }
    .fbc-hero-dot { animation: none; }
}
