/* FindBrief Category Groups – Front-end */
:root {
    --fb: #0352fc; --fb-lt: #e8efff; --fb-border: #e2e8f0;
    --fb-text: #1a1a2e; --fb-muted: #6b7280;
    --fb-r: 14px; --fb-shadow: 0 2px 12px rgba(3,82,252,.06);
    --fb-shadow-h: 0 6px 24px rgba(3,82,252,.12);
}

.fbcg-page-wrap { max-width: 940px; margin: 0 auto; padding: 0 16px 40px; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }

/* ── HERO ── */
.fbcg-hero {
    background: linear-gradient(135deg,#f0f4ff 0%,#e8efff 100%);
    border-radius: 20px; padding: 40px 44px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-bottom: 28px; overflow: hidden;
}
.fbcg-hero-text { flex: 1; }
.fbcg-breadcrumb-nav { font-size: 13px; color: var(--fb-muted); margin-bottom: 10px; }
.fbcg-page-title { font-size: clamp(28px,5vw,42px); font-weight: 800; color: var(--fb-text); margin: 0 0 12px; line-height: 1.15; }
.fbcg-page-subtitle { font-size: 15px; color: var(--fb-muted); margin: 0; line-height: 1.6; max-width: 420px; }
.fbcg-hero-illustration { flex-shrink: 0; width: 140px; }
.fbcg-hero-folder svg { width: 100%; height: auto; }

@media(max-width:580px){
    .fbcg-hero { padding:28px 20px; }
    .fbcg-hero-illustration { display:none; }
}

/* ── SEARCH ── */
.fbcg-search-wrap { margin-bottom: 28px; }
.fbcg-search-box {
    position: relative; max-width: 480px;
    background: #fff; border: 1.5px solid var(--fb-border);
    border-radius: 50px; padding: 12px 20px 12px 44px;
    box-shadow: var(--fb-shadow);
}
.fbcg-search-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; }
.fbcg-search-box input {
    border:none; outline:none; font-size:14px; color:var(--fb-text);
    background:transparent; width:100%; font-family:inherit;
}
.fbcg-search-box input::placeholder { color:#9ca3af; }

/* ── GROUPS WRAP ── */
.fbcg-groups-wrap { display: flex; flex-direction: column; gap: 36px; }

.fbcg-group { }

/* ── GROUP HEADER ── */
.fbcg-group-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.fbcg-group-title-wrap { display:flex; align-items:center; gap:12px; }

.fbcg-group-icon-wrap {
    width: 36px; height: 36px;
    background: var(--fb-lt);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; padding: 5px;
}
.fbcg-group-icon-wrap svg { width: 100%; height: 100%; }
.fbcg-group-icon-img { width: 100%; height: 100%; object-fit: contain; }

.fbcg-group-title {
    font-size: 20px; font-weight: 700; color: var(--fb-text); margin: 0;
}
.fbcg-view-all {
    color: var(--fb); font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.fbcg-view-all:hover { text-decoration: underline; }

/* ── CARDS GRID ── */
.fbcg-cards-grid {
    display: grid; gap: 16px;
}
.fbcg-cols-1 { grid-template-columns: 1fr; }
.fbcg-cols-2 { grid-template-columns: repeat(2,1fr); }
.fbcg-cols-3 { grid-template-columns: repeat(3,1fr); }
.fbcg-cols-4 { grid-template-columns: repeat(4,1fr); }

@media(max-width:860px){
    .fbcg-cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:640px){
    .fbcg-cols-3,.fbcg-cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:420px){
    .fbcg-cols-2,.fbcg-cols-3,.fbcg-cols-4 { grid-template-columns: 1fr; }
}

/* ── CARD ── */
.fbcg-card {
    background: #fff;
    border: 1.5px solid var(--fb-border);
    border-radius: var(--fb-r);
    padding: 18px 18px 14px;
    display: block; text-decoration: none !important; color: var(--fb-text) !important;
    box-shadow: var(--fb-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fbcg-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fb-shadow-h);
    border-color: rgba(3,82,252,.25);
}

.fbcg-card-icon-wrap {
    width: 52px; height: 52px;
    background: var(--fb-lt);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; overflow: hidden; padding: 6px;
    flex-shrink: 0;
}
.fbcg-card-icon-img  { width:100%; height:100%; object-fit:contain; }
.fbcg-card-icon-letter { font-size:22px; font-weight:700; color:var(--fb); line-height:1; }

.fbcg-card-body { }
.fbcg-card-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--fb-text); line-height: 1.3; }
.fbcg-card-desc  { font-size: 13px; color: var(--fb-muted); margin: 0 0 12px; line-height: 1.55; }
.fbcg-card-count { color: var(--fb); font-size: 13px; font-weight: 600; display:block; }

/* ── CTA BANNER ── */
.fbcg-cta-banner {
    margin-top: 40px;
    background: linear-gradient(135deg,#f0f4ff,#e8efff);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.fbcg-cta-icon { width: 70px; flex-shrink:0; }
.fbcg-cta-icon svg { width:100%; height:auto; }
.fbcg-cta-text { flex:1; }
.fbcg-cta-text h3 { font-size:20px; font-weight:700; color:var(--fb-text); margin:0 0 6px; }
.fbcg-cta-text p  { font-size:14px; color:var(--fb-muted); margin:0; }
.fbcg-cta-btn {
    background: var(--fb); color:#fff !important; text-decoration:none !important;
    padding: 13px 28px; border-radius:10px; font-weight:700; font-size:15px;
    white-space:nowrap; transition:background .15s, transform .15s;
    display:inline-block;
}
.fbcg-cta-btn:hover { background:#0241d4; transform:translateY(-1px); }

@media(max-width:580px){
    .fbcg-cta-banner { padding:24px 20px; flex-direction:column; text-align:center; }
    .fbcg-cta-icon { width:60px; margin:0 auto; }
}

/* ── Search filter hidden ── */
.fbcg-group.fbcg-hidden { display:none; }
.fbcg-card.fbcg-hidden  { display:none; }
