/* =====================================================================
   ONIC.VN – CSS dùng chung mọi trang · assets/onic-global.css (theme con)
   Gộp từ Flatsome > Advanced > Custom CSS (ô All screens) + CSS footer mới.
   Nạp sau flatsome.css (functions/onic-content-css.php, độ ưu tiên 111) nên thứ tự
   giống khi còn nằm trong Custom CSS.
     1. Nút "Check SEO, GEO miễn phí" (menu ngang và menu mobile)
     2. Mô tả trang danh mục (.onic-cat)
     3. Footer (UX Block "Footer", .onf + form đăng ký ưu đãi)
   Không có ở đây (đã có chỗ khác, đừng dán lại vào Custom CSS):
     - Menu mobile: assets/onic-mobile-menu.css
     - Onic Web Doctor (.owd-*): plugin License Server tự nạp, tích "Plugin tự nạp CSS"
   ===================================================================== */

/* ---------- 1. Nút Check SEO ---------- */
.header .nav>li>a.btn-onic-check,
a.btn-onic-check {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 18px !important;
    margin: 0;
    border-radius: 999px;
    background: #4CAF50;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1 !important;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(76, 175, 80, .3);
    transition: background .2s, transform .2s
}

.header .nav>li>a.btn-onic-check:hover,
a.btn-onic-check:hover {
    background: #3E9A42;
    color: #fff !important;
    transform: translateY(-1px)
}

a.btn-onic-check svg {
    flex: none;
    width: 15px;
    height: 15px;
    transition: transform .2s
}

a.btn-onic-check:hover svg {
    transform: translateX(3px)
}

.header .nav>li>a.btn-onic-check {
    margin-left: 24px !important
}

/* ---------- 2. Mô tả trang danh mục (chỉ trong khối .onic-cat) ---------- */
.onic-cat {
    --oc-ink: #0f172a;
    --oc-text: #334155;
    --oc-muted: #64748b;
    --oc-line: #e2e8f0;
    --oc-soft: #f8fafc;
    --oc-accent: #16a34a;
    --oc-accent-ink: #15803d;
    --oc-accent-soft: #f0fdf4;
    --oc-accent-line: #bbf7d0;
    --oc-link: #1268c4;
    --oc-cta: #f28a1a;
    --oc-radius: 14px;
    color: var(--oc-text);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 32px;
}

.onic-cat * {
    box-sizing: border-box;
}

.onic-cat p {
    margin: 0 0 14px;
}

.onic-cat a {
    color: var(--oc-link);
    text-decoration: none;
}

.onic-cat a:hover {
    text-decoration: underline;
}

.onic-cat .oc-intro {
    font-size: 17px;
    color: var(--oc-text);
    max-width: 820px;
}

.onic-cat .oc-intro strong {
    color: var(--oc-ink);
}

.onic-cat .oc-start {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--oc-accent-soft);
    border: 1px solid var(--oc-accent-line);
    border-left: 5px solid var(--oc-accent);
    border-radius: var(--oc-radius);
    padding: 18px 20px;
    margin: 20px 0 24px;
}

.onic-cat .oc-start-text {
    flex: 1 1 320px;
    margin: 0;
}

.onic-cat .oc-start-text strong {
    display: block;
    color: var(--oc-accent-ink);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.onic-cat .oc-start-title {
    display: block;
    color: var(--oc-ink);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
}

.onic-cat .oc-btn {
    display: inline-block;
    background: var(--oc-cta);
    color: #fff !important;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none !important;
}

.onic-cat .oc-btn:hover {
    background: #d9750c;
}

.onic-cat .oc-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.onic-cat .oc-group {
    background: #fff;
    border: 1px solid var(--oc-line);
    border-radius: var(--oc-radius);
    padding: 18px 18px 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.onic-cat .oc-group-title {
    color: var(--oc-ink);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--oc-accent-line);
}

.onic-cat .oc-group-title span {
    display: inline-block;
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: var(--oc-accent);
    color: #fff;
    font-size: 13px;
    margin-right: 8px;
}

.onic-cat ul.oc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.onic-cat ul.oc-list li {
    margin: 0;
    padding: 8px 0 8px 18px;
    border-top: 1px solid var(--oc-soft);
    position: relative;
    line-height: 1.45;
}

.onic-cat ul.oc-list li:first-child {
    border-top: 0;
}

.onic-cat ul.oc-list li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--oc-accent);
}

.onic-cat .oc-help {
    margin: 20px 0 0;
    padding: 14px 18px;
    background: var(--oc-soft);
    border: 1px dashed var(--oc-line);
    border-radius: var(--oc-radius);
    color: var(--oc-muted);
}

.onic-cat .oc-help a {
    font-weight: 700;
}

@media (max-width:849px) {
    .onic-cat .oc-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:549px) {
    .onic-cat .oc-groups {
        grid-template-columns: 1fr;
    }

    .onic-cat .oc-start {
        padding: 16px;
    }

    .onic-cat .oc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- 3. Footer ---------- */
.onf {
    --onf-bg: #0f172a;
    --onf-bg2: #1e293b;
    --onf-line: #1e293b;
    --onf-border: #334155;
    --onf-text: #94a3b8;
    --onf-mute: #64748b;
    --onf-white: #fff;
    --onf-blue: #1976d2;
    --onf-orange: #f1821f;
    --onf-orange-d: #e0731a;
    --onf-green: #4caf50;
    --onf-red: #f87171;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.6;
    color: var(--onf-text)
}

.onf *,
.onf *:before,
.onf *:after {
    box-sizing: border-box
}

.onf p {
    margin: 0
}

.onf a {
    text-decoration: none;
    transition: color .15s
}

/* Lưới 4 cột */
.onf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--onf-line)
}

.onf-col {
    flex: 1;
    min-width: 140px
}

.onf-col--brand {
    flex: 1.4;
    min-width: 240px
}

.onf-col--lead {
    flex: 1.2;
    min-width: 240px
}

/* Cột thương hiệu */
.onf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.onf-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--onf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px
}

.onf-name {
    color: var(--onf-white);
    font-size: 18px;
    font-weight: 700
}

.onf-desc {
    line-height: 1.7;
    margin-bottom: 16px !important
}

.onf-social {
    display: flex;
    gap: 8px
}

.onf-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--onf-bg2);
    display: flex;
    align-items: center;
    justify-content: center
}

.onf-social a:hover {
    background: var(--onf-blue)
}

.onf-social img {
    width: 16px;
    height: 16px;
    filter: invert(1);
    opacity: .8
}

.onf-social a:hover img {
    opacity: 1
}

/* Cột liên kết */
.onf-title {
    color: var(--onf-white);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 14px !important
}

.onf-links {
    list-style: none;
    margin: 0;
    padding: 0
}

.onf-links li {
    margin: 0 0 10px;
    padding: 0;
    list-style: none
}

.onf-links li:last-child {
    margin-bottom: 0
}

.onf a.onf-link {
    color: var(--onf-text);
    font-size: 13px
}

.onf a.onf-link:hover {
    color: var(--onf-white)
}

/* Form đăng ký ưu đãi (Onic Email Bridge, data-onic-lead) */
.onf-lead-text {
    line-height: 1.6;
    margin-bottom: 12px !important
}

.onf-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--onf-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s
}

.onf-field:focus-within {
    border-color: var(--onf-blue)
}

.onf .onf-field input[type=email] {
    flex: 1;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: var(--onf-bg2);
    color: #e2e8f0;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none
}

.onf .onf-field input[type=email]::placeholder {
    color: var(--onf-mute)
}

.onf .onf-field button {
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--onf-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 42px;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none
}

.onf .onf-field button:hover {
    background: var(--onf-orange-d)
}

.onf .onf-field button:disabled {
    opacity: .7;
    cursor: wait
}

.onf-error {
    display: none;
    color: var(--onf-red);
    font-size: 12px;
    margin-top: 6px !important
}

.onf-consent {
    color: var(--onf-mute);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px !important
}

.onf-success {
    display: none;
    background: rgba(76, 175, 80, .12);
    border: 1px solid var(--onf-green);
    border-radius: 8px;
    padding: 12px 14px
}

.onf-success strong {
    display: block;
    color: #86efac;
    font-size: 13px
}

.onf-success span {
    display: block;
    color: #bbf7d0;
    font-size: 12px;
    margin-top: 4px
}

/* Dòng bản quyền */
.onf-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0
}

.onf-copy {
    color: var(--onf-mute);
    font-size: 12px
}

.onf-legal {
    display: flex;
    gap: 20px
}

.onf-legal a.onf-link {
    font-size: 12px
}

@media (max-width:849px) {

    .onf-col--brand,
    .onf-col--lead {
        flex-basis: 100%
    }
}

@media (max-width:549px) {
    .onf-grid {
        gap: 24px
    }

    .onf-col {
        flex-basis: calc(50% - 12px)
    }

    .onf-bottom {
        flex-direction: column;
        align-items: flex-start
    }
}