.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.toc-h4 {
    margin-left: 0;
    font-weight: bold;
}

.toc-h5 {
    margin-left: 20px;
}

.table-of-contents a {
    text-decoration: none;
    color: #007bff;
    line-height: 2;
}

.table-of-contents {
    border: 1px dashed;
    padding-left: 15px;
}

h4,
h5 {
    font-size: medium;
}

:root {
    --text-color: rgb(28, 83, 121);
    --bs-body-bg: white;
}

/* ===== Modern Accordion Look ===== */
.modern-accordion .accordion-item {
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
}

/* Hàng tiêu đề phẳng, hover rõ ràng */
.menu-row {
    background: var(--bs-body-bg);
    transition: background .2s ease, transform .08s ease, box-shadow .15s ease;
}

.menu-row:hover {
    background: rgba(0, 0, 0, .03);
}

.menu-row:active {
    transform: translateY(1px);
}

/* Link cấp 0 */
.menu-link {
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* text-transform: uppercase; */
}

.menu-link:hover {
    color: var(--bs-success);
}

/* Nút chevron */
.chevron-btn {
    z-index: 2;
    /* nằm trên stretched-link */
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.chevron {
    transition: transform .2s ease;
    color: var(--text-color);
}

/* Khi mở collapse → xoay chevron */
.chevron-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Body con nhẹ nhàng */
.accordion-body {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .02), transparent);
    border-top: 1px dashed rgba(0, 0, 0, .06);
    border-radius: 0 0 .75rem .75rem;
}

/* ===== Submenu cấp > 0 ===== */
.submenu-link {
    color: var(--bs-body-color);
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}

.submenu-link:hover {
    background: rgba(0, 0, 0, .04);
    color: var(--bs-success);
    padding-left: .75rem;
}

/* Focus ring đẹp cho a & button (accessibility) */
.menu-link:focus-visible,
.submenu-link:focus-visible,
.chevron-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: .5rem;
}

/* Khoảng cách dọc hợp lý */
.menu-level-0 .accordion-item+.accordion-item {
    margin-top: .5rem;
}

.menu-level-1>.subitem+.subitem {
    margin-top: .25rem;
}

@media (max-width: 576px) {
    .offcanvas-fullscreen-mobile {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .post-content img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* Cho stage là flex để các item kéo giãn đều chiều cao */
.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
    /* để item cao theo nội dung/card */
}

.owl-carousel .item {
    display: flex;
    width: 100%;
}

.owl-carousel .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .card-img-top {
        aspect-ratio: 1 / 1;
    }
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 1px dashed #28a745;
    color: #28a745;
    background: #28a745;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.15);
}

.btn-contact:hover {
    color: #fff;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(32, 201, 151, 0.4);
    transform: translateY(-2px);
}

.phone-icon {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 50px;
    height: 50px;
    background: #e60000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: ring 1.5s infinite;
    transition: all 0.3s ease;
}

.phone-icon:hover {
    background: #ff3333;
    transform: scale(1.1);
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70%,
    100% {
        transform: rotate(0);
    }
}
/* Sóng xung kích */
.phone-icon .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(230, 0, 0, 0.5);
    animation: pulseAnim 2s infinite;
    z-index: 1;
}

.phone-icon .pulse:nth-child(2) {
    animation-delay: 1s;
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
