/* Trang công cụ (tien-ich) + strip trang chủ */
.fe-tools-page {
    background: var(--cream);
    padding-bottom: 2.5rem;
}
.fe-tools-hero {
    background: #fff;
    border-bottom: 1px solid rgba(26, 92, 58, 0.1);
    padding: 1.5rem 0 1.75rem;
}
.fe-tools-hero__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(13, 51, 33, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f2 100%);
}
.fe-tools-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.fe-tools-hero__back:hover,
.fe-tools-hero__back:focus-visible {
    background: rgba(13, 51, 33, 0.08);
    color: var(--primary-dark);
}
.fe-tools-hero__step {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    background: rgba(26, 92, 58, 0.09);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.68rem;
    font-weight: 800;
}
.fe-tool-quick {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(13, 51, 33, 0.1);
    border-radius: 0.65rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 3px 14px rgba(13, 51, 33, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    min-height: 4.4rem;
}
@media (min-width: 768px) {
    .fe-tool-quick {
        min-height: 4.75rem;
    }
}
.fe-tool-quick:hover,
.fe-tool-quick:focus-visible {
    border-color: rgba(200, 151, 60, 0.45);
    box-shadow: 0 6px 22px rgba(13, 51, 33, 0.1);
    transform: translateY(-1px);
    color: var(--text);
    outline: none;
}
.fe-tool-ico {
    position: relative;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: linear-gradient(145deg, #f0e4c8 0%, #e0cf9e 100%);
    color: #2d1f0a;
    font-size: 1.15rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.fe-tool-ico__sub {
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #0d3321;
    color: #e6bc72;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    border: 1px solid #fff;
}
.fe-tool-ico--build {
    background: linear-gradient(145deg, #c8d9e3 0%, #9ab8c9 100%);
    color: #0d1f2a;
}
.fe-tool-ico--draw {
    background: linear-gradient(145deg, #d8e0f2 0%, #a7b4d4 100%);
    color: #0d1f2a;
    font-size: 1.05rem;
}
.fe-tool-quick h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.1rem 0;
    line-height: 1.2;
    color: var(--primary-dark);
}
.fe-tool-quick p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}
.fe-tool-panel {
    background: #fff;
    border: 1px solid rgba(13, 51, 33, 0.1);
    border-radius: 0.65rem;
    padding: 1.5rem 1.35rem;
    margin-top: 1.25rem;
    box-shadow: 0 2px 12px rgba(13, 51, 33, 0.04);
}
.fe-tool-panel h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 0.2rem 0;
}
.fe-tool-disclaimer {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}
.fe-tool-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(13, 51, 33, 0.08);
    gap: 0.5rem;
}
.fe-tool-kv strong {
    color: var(--primary);
    text-align: right;
}
/* Hub: thẻ mục lục công cụ */
.fe-tool-hub-card {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.fe-tool-hub-card:hover {
    box-shadow: 0 0.4rem 1.1rem rgba(13, 51, 33, 0.1) !important;
}
.fe-tool-hub-card--text .card-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

/* Thương hiệu giống thanh menu (dùng trên nền sáng — không màu chữ trắng như #mainNav) */
a.fe-home-tools__brand {
    text-decoration: none;
}
a.fe-home-tools__brand .navbar-brand-name,
a.fe-home-tools__brand:hover .navbar-brand-name,
a.fe-home-tools__brand:focus .navbar-brand-name {
    color: var(--primary-dark) !important;
    max-width: 14rem;
}
a.fe-home-tools__brand .navbar-brand-sub {
    color: var(--muted) !important;
    max-width: 14rem;
}
.fe-home-tool-card--text {
    min-height: 0;
    padding: 1.05rem 1.1rem 1.1rem;
    text-align: left;
}
.fe-home-tool-card--text .fe-home-tool-title {
    color: var(--primary-dark);
}

/* Strip trang chủ */
.fe-home-tools {
    border-top: 1px solid rgba(26, 92, 58, 0.1);
    padding: 2rem 0 2.25rem;
    background: var(--cream);
}
.fe-home-tools__shell {
    background: #fff;
    border: 1px solid rgba(13, 51, 33, 0.12);
    border-radius: 0.9rem;
    padding: 1.05rem 1.05rem 1.15rem;
    box-shadow: 0 8px 24px rgba(13, 51, 33, 0.06);
}
.fe-home-tools__brandmark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, #f7f1df, #ece2c4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 51, 33, 0.08);
}
.fe-home-tools__brandmark img {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}
.fe-home-tools__intro {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}
.fe-home-tools__cta {
    border: 1px solid rgba(13, 51, 33, 0.4);
    color: var(--primary);
    border-radius: 999px;
    background: #fff;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-weight: 600;
}
.fe-home-tools__cta:hover,
.fe-home-tools__cta:focus-visible {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.fe-home-tool-card {
    min-height: 4.2rem;
    background: #fff;
    border: 1px solid rgba(13, 51, 33, 0.1);
    border-radius: 0.65rem;
    padding: 0.9rem 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}
.fe-home-tool-card:hover,
.fe-home-tool-card:focus-visible {
    border-color: rgba(200, 151, 60, 0.45);
    box-shadow: 0 8px 22px rgba(13, 51, 33, 0.08);
    transform: translateY(-1px);
    color: var(--text);
    outline: none;
}
.fe-home-tool-ico {
    position: relative;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: linear-gradient(145deg, #f0e4c8, #d9c58a);
    color: #2a1a08;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
.fe-home-tool-ico__badge {
    position: absolute;
    right: -4px;
    bottom: -1px;
    width: 1.1rem;
    height: 1.1rem;
    background: #0d3321;
    color: #e6bc72;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    border: 1px solid #fff;
    line-height: 1;
}
.fe-home-tool-ico--a2 {
    background: linear-gradient(145deg, #c8d9e3, #8fa9bb);
    color: #0d1a22;
}
.fe-home-tool-ico--a3 {
    background: linear-gradient(145deg, #d8e0f2, #9caed1);
    color: #0d1a22;
    font-size: 1.05rem;
}
.fe-home-tool-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--primary-dark);
    line-height: 1.25;
}
.fe-home-tool-sub {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
    line-height: 1.35;
}
@media (max-width: 576px) {
    .fe-home-tools__shell {
        padding: 0.9rem 0.85rem 1rem;
    }
    .fe-home-tools__brandmark {
        width: 2.5rem;
        height: 2.5rem;
    }
    .fe-home-tools__brandmark img {
        width: 1.7rem;
        height: 1.7rem;
    }
}
