/* INH - Đồng bộ nút cuộn lên đầu trang toàn website */

:root {
    --inh-top-bg: #08265B;
    --inh-top-bg-hover: #061A42;
}

/* Nút Scroll to Top của GeneratePress + nút dự phòng ở trang FAQ */
.generate-back-to-top,
a.generate-back-to-top,
#generate-back-to-top,
.inh-faq-top {
    background-color: var(--inh-top-bg) !important;
    color: #ffffff !important;
    border-color: var(--inh-top-bg) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(8, 38, 91, 0.22) !important;
    transition: background-color 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.3s ease-in-out,
                transform 0.3s ease-in-out !important;
}

/* Trạng thái rê chuột */
.generate-back-to-top:hover,
.generate-back-to-top:focus,
#generate-back-to-top:hover,
#generate-back-to-top:focus,
.inh-faq-top:hover,
.inh-faq-top:focus {
    background-color: var(--inh-top-bg-hover) !important;
    color: #ffffff !important;
    border-color: var(--inh-top-bg-hover) !important;
}

/* Icon bên trong nút */
.generate-back-to-top svg,
#generate-back-to-top svg,
.inh-faq-top svg {
    fill: none;
    color: #ffffff !important;
}

.generate-back-to-top svg,
#generate-back-to-top svg {
    fill: currentColor !important;
}

/* Nút dự phòng (chỉ xuất hiện khi trang không có nút của GeneratePress) */
.inh-faq-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-width: 0 !important;
    cursor: pointer;
}

.inh-faq-top.is-visible {
    display: flex;
}