#rnm-offcanvas-menu {
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    padding: 5em 1em 3em 1em;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#rnm-offcanvas-menu.active {
    left: 0;
}

#rnm-menu-overlay {
    display: none;
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0,0,0,0.4);
}

#rnm-menu-overlay.active {
    display: block;
}

/* ✅ Thanh tìm kiếm */
.rnm-search-box {
    margin-top: 1.5em;
    margin: 3em 0 1.5em 0;
    position: relative;
}

.rnm-search-box input[type="search"] {
    width: 100%;
    padding: 0.7em 1em;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

.rnm-search-results {
    list-style: none;
    margin: 0.5em 0 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    position: relative;
    z-index: 999;
}

.rnm-search-results li {
    padding: 0.6em 1em;
    border-bottom: 1px solid #eee;
}

.rnm-search-results li:last-child {
    border-bottom: none;
}

.rnm-search-results li a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    display: block;
}

.rnm-search-results li a:hover {
    background-color: #f1f1f1;
    color: #0073aa;
}

/* Menu items */
.rnm-menu-items {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    list-style: none;
    padding: 0;
    margin: 0;
}

.rnm-menu-items li {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    position: relative;
}

.rnm-menu-items li a {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: block;
    padding: 0.75em 1em;
    transition: background 0.3s, color 0.3s;
}

.rnm-menu-items li a:hover {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    background-color: rgba(0, 0, 0, 0.05);
    color: #0073aa;
}

.rnm-menu-items li ul {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    list-style: none;
    padding-left: 1em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rnm-menu-items li.menu-item-has-children > a::after {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    content: '▼';
    float: right;
    font-size: 12px;
    margin-left: 5px;
}

.rnm-menu-items li.menu-item-has-children.open > ul {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    max-height: 1000px;
}

.rnm-menu-items li.menu-item-has-children > ul > li > a {
    font-size: 18px !important;  /* tăng kích thước chữ menu */
    font-size: 15px;
    padding-left: 1.5em;
}

/* ✅ Nút toggle menu */
#rnm-toggle {
    position: fixed;
    top: 0.9em;
    left: 1em;
    z-index: 10000;
    font-size: 24px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

#rnm-toggle:hover {
    background: #005b8f;
}

/* ✅ Nút đóng menu */
#rnm-close {
    background: none;
    border: none;
    font-size: 30px;
    position: absolute;
    top: 0.5em;
    right: 1em;
    cursor: pointer;
    color: #333;
}

.rnm-search-box {
    margin-top: 1em;
    padding: 0 1em;
}
.rnm-search-box form {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}
.rnm-search-box input[type="search"] {
    flex: 1;
    padding: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.rnm-search-box input[type="submit"] {
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.rnm-search-results {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5em;
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.rnm-search-results li {
    padding: 0.5em;
    border-bottom: 1px solid #eee;
}
.rnm-search-results li a {
    text-decoration: none;
    color: #333;
}


/* Khung tìm kiếm nổi bật hơn, đồng bộ màu với nút */
.rnm-search-box form {
    background: #e0f2ff;
    border: 1.5px solid #0073aa;
    border-radius: 8px;
    padding: 0.6em;
    display: flex;
    gap: 0.5em;
    box-shadow: 0 0 6px rgba(0, 115, 170, 0.3);
}
.rnm-search-box input[type="search"] {
    background: #ffffff;
    border: none;
    color: #333;
    padding: 0.5em;
    border-radius: 6px;
    flex: 1;
}
.rnm-search-box input[type="search"]::placeholder {
    color: #777;
}
.rnm-search-box input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Nút đóng menu lớn hơn và rõ hơn */
#rnm-close {
    font-size: 1.5em;
    padding: 0.5em 0.7em;
    background-color: #f2f2f2;
    border-radius: 8px;
    color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Đường kẻ phân mục cho menu */
.rnm-menu-items > li {
    border-bottom: 1px solid #eee;
    padding: 0.4em 0;
}

.rnm-menu-items > li:last-child {
    border-bottom: none;
}

/* Gọn lại menu nhưng giữ nguyên nút mở */
.rnm-menu-items > li {
    border-bottom: 1px solid #ccc;
    padding: 0.3em 0;
    margin: 0;
    line-height: 1.3;
}

.rnm-menu-items > li:last-child {
    border-bottom: none;
}