/* 豆知識 (page-fun-fact.php) — band teal compact + breadcrumb + danh sách card bài viết + phân trang.
   Breadcrumb base style đến từ page-food-inspection.css (enqueue kèm). CTA + footer do footer.php render. */

:root { --ff-teal: #008b94; --ff-teal-dark: #006b72; }

/* ── Title band (hộp teal compact, căn trái) ── */
.ff-band-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.ff-band {
    display: inline-block;
    background: var(--ff-teal);
    border-radius: 4px;
    padding: 12px 36px;
}
.ff-band-title {
    margin: 0;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ── Breadcrumb ── */
.ff-breadcrumb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 2rem 0;
}

/* ── Main + list ── */
.ff-main { padding-bottom: 8px; }
.ff-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 2rem 40px;
}
.ff-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Card (Figma Frame 1000006710) ── */
.ff-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 24px;
    background: #FFFFFF;
    border: 1px solid #008F8D;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    border-radius: 8px;
}
/* Khối nội dung: head + excerpt (gap 6) */
.ff-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
/* Icon + tiêu đề (gap 16) */
.ff-card-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
/* Hộp icon 44×44 nền teal nhạt, viền teal */
.ff-card-icon {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #E5F8F8;
    border: 1px solid #008F8D;
}
.ff-card-icon img { display: block; width: 24px; height: 24px; }
.ff-card-title {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: #061C3D;
}
.ff-card-excerpt {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #061C3D;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* ── Nút 記事を読む (solid teal, góc phải dưới) ── */
.ff-card-btn {
    align-self: flex-end;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 206px;
    height: 48px;
    background: #008F8D url('../../images/btn_background_blue_v2.png') center/cover no-repeat;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.ff-card-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ff-card-btn-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.02em;
}
.ff-card-btn-arrow { display: inline-flex; }
.ff-card-btn-arrow img { display: block; width: 24px; height: 24px; }

/* ── Pagination (windowed) ── */
.ff-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 26px;
}
.ff-pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    background: transparent;
    box-sizing: border-box;
    transition: background .15s ease, color .15s ease;
}
.ff-pg:hover:not(.active):not(.ellipsis):not(.disabled) { background: #f0f0f0; }
.ff-pg.active {
    background: var(--ff-teal);
    color: #fff;
    box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
}
.ff-pg.prev, .ff-pg.next {
    background: #fff;
    border: 1px solid #ECECED;
    color: #061C3D;
    box-shadow: 0 1px 2px -1px rgba(17, 12, 34, 0.08);
}
.ff-pg.prev { margin-right: 24px; }
.ff-pg.next { margin-left: 24px; }
.ff-pg.prev.disabled, .ff-pg.next.disabled { color: #C3CAD4; cursor: not-allowed; }
.ff-pg.ellipsis { background: transparent; min-width: 24px; width: auto; cursor: default; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ff-band-wrap, .ff-breadcrumb-wrap, .ff-inner { padding-left: 1rem; padding-right: 1rem; }
    .ff-band-title { font-size: 20px; }
    .ff-card { padding: 18px 20px; }
    .ff-card-title { font-size: 16px; }
    .ff-card-btn { width: 100%; justify-content: center; align-self: stretch; }
    .ff-pg.prev { margin-right: 8px; }
    .ff-pg.next { margin-left: 8px; }
}
