/*
Theme Name:   Visarzo Child
Description:  this child theme of visarzo
Author:       smartdatasoft
Author URL:   http://smartdatasoft.com
Template:     visarzo
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  visarzo-child
*/
/* Write here your own personal stylesheet */
.auto-container {
max-width: 1270px;
}
.navigation  .menu-text-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Icon home */
.navigation .menu-item-home > a::before {
content: "\f015";
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 16px;
}
/* ===== TOP BAR MENU ===== */
.top-bar {
font-size: 14px;
}
.top-bar-inner {
max-width: 1200px;
margin: 0 auto;
padding: 6px 15px;
}
/* ===== MAIN MENU ===== */
.top-menu {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 14px;
}
.top-menu > li {
position: relative;
}
/* ===== LINK ===== */
.top-menu > li > a {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
color: #fff;
font-weight: 500;
text-decoration: none;
border-radius: 20px;
transition: all 0.25s ease;
}
/* Hover & Active */
.top-menu > li > a:hover,
.top-menu  > li.current-menu-item > a {
color: #fff;
}
/* ===== HOME ICON ===== */
.top-menu  > li.menu-item-home > a::before {
content: "\f015";
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 15px;
}
/* ===== SUB MENU ===== */
.top-menu  .sub-menu {
list-style: none;
position: absolute;
top: 100%;
left: 0;
min-width: 200px;
margin: 8px 0 0;
padding: 8px 0;
background: #fff;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0,0,0,0.12);
opacity: 0;
visibility: hidden;
transform: translateY(8px);
transition: all 0.25s ease;
z-index: 999;
}
/* Show submenu */
.top-menu  > li:hover > .sub-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
/* Submenu item */
.top-menu  .sub-menu li a {
display: block;
padding: 8px 16px;
color: #333;
white-space: nowrap;
text-decoration: none;
transition: all 0.2s ease;
}
/* Submenu hover */
.top-menu  .sub-menu li a:hover {
color: #e60000;
}
/* ===== ACCESSIBILITY ===== */
.menu-text-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 768px) {
/* Menu ngang */
.top-menu  {
display: flex;
gap: 6px;
position: relative;
}
/* Menu cha */
.top-menu  > li {
position: relative;
}
.top-menu  > li > a {
padding: 4px 8px;
font-size: 12px;
border-radius: 14px;
display: inline-flex;
align-items:left;
justify-content: flex-start;
}
.top-menu  > li:last-child .sub-menu {
left: auto !important;
right: 0 !important;
}
/* ===== SUB MENU ===== */
.top-menu  .sub-menu {
display: none;
position: absolute;
top: 110%;
left: 0!important;          /* ⭐ canh trái */
right: auto!important;      /* ⭐ bỏ canh phải */
min-width: 120px;
border-radius: 10px;
padding: 6px 0;
z-index: 999;
transition: all .2s ease;
}
/* Hover / Tap show */
.top-menu  > li:hover > .sub-menu,
.top-menu  > li:focus-within > .sub-menu {
display: block;
}
/* Item submenu */
.top-menu  .sub-menu li a {
margin-left: 0px;
text-align: left;
padding: 7px 14px;
font-size: 12px;
white-space: nowrap;
display: block;
color: #333;
}
.top-menu  .sub-menu li a:hover {
background: #f2f2f2;
color: #c40000;
}
}