/**
* Theme Name: HiBricks
* Theme URI: https://namncn.com/hibricks/
* Description: A nice child theme for bricksbuilder theme.
* Author: Nam Truong
* Author URI: https://namncn.com
* Version: 1.0.0
* Tags: bricks, bricksbuilder, childtheme.
* Text Domain: hibricks
* License: GNU General Public License v3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Template: bricks
*/

#bricks-preloader .title,
#bricks-preloader .sub-title,
#bricks-preloader .logo {
	display: none !important;
}

body.bricks-is-frontend :focus {
	outline: none !important;
}

.bricks-search-overlay .close {
	font-size: 30px !important;
}

.backtotop {
	width: 40px;
	height: 40px;
	background-color: #222;
	text-align: center;
	padding: 10px;
	line-height: 20px;
	position: fixed;
	bottom: 100px;
	right: 1.9%;
	cursor: pointer;
	color: #fff;
	font-size: 20px;
	z-index: 99;
	border-radius: 50%;
	transition: all .3s ease-in-out;
	align-items: center;
	justify-content: center;
	display: flex;
	opacity: 0;
	visibility: hidden;
}

.backtotop.active {
	opacity: 1;
	visibility: visible;
}

:where(.brxe-search) button {
	width: auto;
	height: auto;
}

.bricks-nav-menu .sub-menu a {
	width: 100%;
}

.brxe-nav-menu.show-mobile-menu .bricks-mobile-menu-toggle {
	z-index: 998;
}

.brxe-form .form-group li {
    position: relative;
}

.bricks-mobile-menu-toggle,
:where(.brxe-search) button{
	color: black;
}

.bricks-search-overlay {
	padding: 20px
}
.ldp-ctf {
	background: #fff;
	padding: 36px;
	border-radius: 9px;
}
.ldp-ctf .c7-title h4 {
	font-size: 23px;
	padding-bottom: 20px;
}
.ldp-ctf .c7-title h4 strong {
	color: #dc1f27;
	font-weight: 600;
}
.ldp-ctf .c7-title h5 {
	font-size: 16px;
	font-weight: 500;
	padding-bottom: 6px;
}
.c7-label {
	padding-bottom: 15px;
}
.ldp-c7-2r {
	display: grid;
	grid-template-columns: auto auto;
	column-gap: 15px;
}
.c7-label input {
	line-height: 38px;
	font-size: 14px;
	border-radius: 5px;
}
/* Container bao bọc ô upload */
.custom-file-upload {
    display: block;
    position: relative;
    width: 100%;
    cursor: pointer;
	margin-bottom: 0;
}

/* Ẩn input file mặc định của Contact Form 7 */
.custom-file-upload input[type="file"] {
    display: none !important;
}

/* Khung hiển thị giống ảnh mẫu */
.custom-file-upload .upload-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: #fff8f6; /* Nền hồng/cam rất nhạt */
    border: 1.5px dashed #f5a999; /* Viền nét đứt màu cam/đỏ nhạt */
    border-radius: 4px;
    transition: all 0.25s ease;
    user-select: none;
}

/* Hiệu ứng khi rê chuột vào */
.custom-file-upload:hover .upload-content {
    background-color: #fff3f0;
    border-color: #e04b2b;
}

/* Icon đám mây tải lên */
.custom-file-upload .upload-icon {
    width: 24px;
    height: 24px;
    stroke: #e03b24; /* Màu đỏ của icon */
    flex-shrink: 0;
}

/* Chữ gợi ý */
.custom-file-upload .upload-text {
    font-size: 15px;
    color: #737373; /* Màu xám chữ */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-file-upload br {
	display: none;
}

.wpcf7 form {
    position: relative;
}
.wpcf7-submit.custom-submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 14px 24px !important;
    background-color: #d81a21 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 4px !important; /* Bo góc nhẹ */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-align: center;
    line-height: 1.4;
    outline: none;
}

/* Hiệu ứng khi rê chuột vào nút */
.wpcf7-submit.custom-submit-btn:hover {
    background-color: #b7151b !important; /* Đỏ đậm hơn một chút khi hover */
    box-shadow: 0 4px 12px rgba(216, 26, 33, 0.25);
    transform: translateY(-1px);
}

.c7-btn {
	position: relative;
}
.wpcf7 .c7-btn .wpcf7-spinner {
    /* margin: 0;
    display: block;
	position: absolute; */
	margin: 10px auto 0 auto;
    display: block;
}

#brxe-tthl span,
#brxe-tthl1 span,
#brxe-tthl2 span,
#brxe-tthl3 span,
#brxe-tthl4 span,
#brxe-tthl5 span {
	color: #dc1f27;
}
#tt2-small p {
	display: inline-block;
	font-size: 16px;
	font-weight: 300;
}
#brcl-top {
	border-top-color: #dc1f27 !important;
}
#cts-faq2 {
	display: grid;
	grid-template-columns: 50% 50%;
	column-gap: 50px;
}
#cts-faq2 .accordion-item {
	border-bottom: 1px solid #e6e6e6;
}

/* Custom mega menu */
#brxe-kpfyic.brxe-block {
	position: relative;
}
.custom-mega-menu {
    position: static !important;
}

/* 2. Khung Mega Menu nền xám nhạt chia 3 cột giống ảnh mẫu */
.custom-mega-menu > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột bằng nhau */
    gap: 40px;
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    width: 100%;
    max-width: 800px; /* Điều chỉnh theo độ rộng container web của bạn */
    margin: 0 auto;
    background-color: #f3f3f3 !important; /* Nền xám nhạt giống hình */
    padding: 20px !important; /* Khoảng trống rộng phía dưới giống mẫu */
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    list-style: none;
	margin-top: -15px;
    
    /* Ẩn mặc định và tạo hiệu ứng mượt */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 9999;
}

/* 3. Hiển thị khi di chuột vào mục "Dịch vụ" */
.custom-mega-menu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Định dạng Tiêu đề cột (Cấp 2: Đăng ký bản quyền, Đăng ký bảo hộ...) */
.custom-mega-menu > .sub-menu > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.custom-mega-menu > .sub-menu > li > a {
    display: block;
    font-size: 16px !important;
    font-weight: 700 !important; /* Chữ in đậm giống mẫu */
    color: #111111 !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    text-decoration: none;
}

/* 5. Reset và định dạng danh sách con (Cấp 3: Dịch vụ 01, 02, 03...) */
.custom-mega-menu > .sub-menu .sub-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
    padding: 0 0 0 12px !important; /* Thụt lề nhẹ sang phải so với tiêu đề cột giống hình */
    margin: 0 !important;
    list-style: none;
	border: none !important;
	line-height: normal;
}
.custom-mega-menu > .sub-menu button {
	display: none !important;
}
.custom-mega-menu > .sub-menu .sub-menu li {
    margin-bottom: 12px !important; /* Khoảng cách giữa các dòng Dịch vụ 01, 02 */
    border: none !important;
}

.custom-mega-menu > .sub-menu .sub-menu li:last-child {
    margin-bottom: 0 !important;
}

.custom-mega-menu > .sub-menu .sub-menu li a {
    display: inline-block;
    /* font-size: 15px !important; */
    font-weight: 400 !important;
    color: #222222 !important;
    padding: 2px 0 !important;
    background: transparent !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Hiệu ứng khi rê chuột vào từng dịch vụ con */
.custom-mega-menu > .sub-menu .sub-menu li a:hover {
    color: #d81a21 !important; /* Đổi sang màu đỏ đồng bộ với nút submit của web bạn */
    transform: translateX(4px);
}

/* 6. Tắt hiệu ứng Mega Menu trên giao diện điện thoại (Mobile) để tránh vỡ khung */
@media (max-width: 991px) {
    .custom-mega-menu > .sub-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 15px !important;
    }
    .custom-mega-menu.active > .sub-menu {
        display: block !important;
    }
}
.custom-mega-menu > .sub-menu .brx-submenu-toggle a {
	padding-left: 12px !important;
}

/**************Ipad ngang(1024 x 768)****************/
@media screen and (max-width: 1024px) {

}
/**************end Ipad ngang(1024 x 768)****************/



/******************Ipad dọc(768 x 1024)******************/
@media screen and (max-width: 768px) {
    #cts-faq2 {
        column-gap: 30px;
    }
    .brxe-nav-menu .bricks-mobile-menu-wrapper .sub-menu {
        display: none;
    }
    .custom-mega-menu > .sub-menu {
        display: none !important;
    }
    .custom-mega-menu.active > .sub-menu {
        display: block !important;
    }

}
/******************end Ipad dọc(768 x 1024)******************/



/*................ip6-plus...................*/
@media only screen and (max-width: 550px) {
    .ldp-ctf {
        padding: 20px;
    }
    .ldp-ctf .c7-title h4 {
        font-size: 20px;
    }
    .ldp-ctf .c7-title h5,
    .custom-file-upload .upload-text {
        font-size: 13px;
    }
    #cts-faq2 {
        column-gap: 20px;
    }

}
/*................end ip6-plus...................*/



/*................ip6...................*/
@media only screen and (max-width: 375px) {

}
/*................end ip6...................*/



/***********iphone 5 ----**************/
@media only screen and (max-width: 320px) {

}
/***********end iphone 5 ----**************/