/*
Theme Name: TDA Architects
Theme URI: https://tdaarch.vn/
Description: Designed for TDA. Powered by nguyentrungkhuong.com
Author: nguyentrungkhuong.com
Author URL: https://nguyentrungkhuong.com/
Version: 1.0
*/
/* Ba dòng @import (Google Fonts, animate.css, owl.css) đã được chuyển sang wp_enqueue_style
   trong functions.php. @import nằm trong CSS tạo chuỗi tải nối tiếp: trình duyệt phải tải xong
   style.css rồi mới biết còn ba file nữa. Enqueue cho phép tải song song. */
:root {
    --app-height: 100svh;
    --app-height40: 40svh;
    --font-primary: "Roboto", sans-serif;
    --tda-red: rgba(175, 30, 35, 1);
    --tda-red-hex: #AF1E23;
    --tda-red2: rgba(211, 143, 156, 1);
    --tda-black: rgba(0, 0, 0, 1);
    --tda-white: rgba(255, 255, 255, 1);
    --tda-grey: rgba(217, 217, 217, 1);
    --tda-grey2: rgba(117, 117, 117, 1);
}
b, strong {
    font-weight: 400;
}
*:focus-visible, *:focus, *:active {
    outline: none !important;
    box-shadow: none !important;
}
.text-red {
    color: var(--tda-red);
}
body {
    font-size: 16px;
    color: var(--tda-black);
    line-height: 1.6em;
    font-weight: 300;
    background: var(--tda-white);
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    font-family: var(--font-primary);
}
img {
    max-width: 100%;
    height: auto;
    pointer-events: none;
}
a {
    text-decoration: none;
    color: var(--tda-red);
    transition: all 0.25s;
}
a:hover {
    color: var(--tda-black);
}
ul {
    margin: 0;
    padding: 0;
}
.offcanvas ul li,
#header ul li,
#sidebar ul li,
#footer ul li {
    list-style-type: none;
    list-style-position: inside;
}
.fs-366 {
    font-size: 36px;
}
.fs-36 {
    font-size: 34px;
}
.fs-34 {
    font-size: 34px;
}
.fs-24 {
    font-size: 24px;
}
.fs-30 {
    font-size: 30px;
}
.fs-26 {
    font-size: 26px;
}
.fs-20 {
    font-size: 20px;
}
.fs-18 {
    font-size: 18px;
}
.fs-16 {
    font-size: 16px;
}
.fs-14 {
    font-size: 14px;
}
.fs-13 {
    font-size: 13px;
}
.fs-12 {
    font-size: 12px;
}
.fs-11 {
    font-size: 11px;
}
.fs-10 {
    font-size: 10px;
}
.fw-500 {
    font-weight: 500;
}
.fw-300 {
    font-weight: 300;
}
.fw-100 {
    font-weight: 100;
}
/* slider */
.main-slider {
    position: relative;
    background: #FFFFFF;
    height: 300px;
    transition: height 0.5s, min-height 0.5s;
    overflow: hidden;
}
.main-slider .slide-inner {
    display: none;
    opacity: 0;
    transition: all 0.75s;
}
.main-slider .slide-item {
    height: 300px;
    transition: height 0.5s, min-height 0.5s;
}
.full-slider {
    height: var(--app-height);
    min-height: 300px;
}
.full-slider .slide-item {
    height: var(--app-height);
    min-height: 300px;
}
.full-slider .slide-inner {
    display: block;
    opacity: 1;
}
.main-slider .slide-item {
    width: 100%;
    position: relative;
}
/* Slider dùng <img> thay background-image để có srcset + lazy-load.
   object-fit: cover tái tạo đúng background-size: cover + background-position: center trước đây.
   z-index 0 để nằm dưới lớp phủ :after (z-index 1) và .slide-inner (z-index 99). */
.main-slider .slide-item .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.main-slider .slide-item:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0,0,0,0.25);
}
.owl-nav {
    position: absolute;
    bottom: 20%;
    right: 0;
}
.slide-nav {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.slide-nav img {
    width: 21px !important;
    height: auto;
    transition: all 0.25s;
}
.slide-nav:hover {
    border: 1px solid var(--tda-white);
    cursor: pointer;
}
.slide-nav:hover img {
    transform: scale(1.05);
}
.partner-carousel .slide-nav:hover, .partner-carousel .slide-nav:focus, .partner-carousel .slide-nav:active {
    outline: none !important;
    border: none !important;
}
.partner-carousel .slide-nav:hover img {
    transform: scale(1) !important;
}
.slide-inner {
    position: absolute;
    z-index: 99;
    left: 50%;
    bottom: 22%;
    transform: translate(-50%, 0);
    display: flex;
    justify-content: end;
}
.banner-carousel .owl-nav .slide-nav-full,
.banner-carousel .owl-nav .owl-next {
    margin-left: 1rem;
}
.banner-carousel .owl-nav {
    right: inherit;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    justify-content: end;
}
.full-slider .banner-carousel .owl-nav {
    transform: translate(-50%, 130%);
}
.slide-title a, .slide-desc, .slide-title strong {
    color: var(--tda-white);
    transition: all 0.25s;
}
.slide-title a:hover strong {
    font-size: 108%;
}
#header {
    padding: 50px 0 0 0;
    transition: all 0.25s;
}
.h-38 {
    height: 38px;
}
.logo img {
    max-height: 38px;
    width: auto;
    display: inline-block;
    transition: all 0.25s;
}
.logo a {
    display: block;
}
.logo:hover img {
    transform: scale(1.1);
}
.nav-box a {
    font-size: 20px;
    text-transform: uppercase;
    color: var(--tda-white);
    margin: 0 10px;
    line-height: 1em;
    font-weight: 100;
}
.nav-box a:hover {
    transform: scale(1.05);
}
/* menu */
.offcanvas {
    z-index: 99999;
}
.navbar-toggler-wrapper {
    height: 38px;
    width: 38px;
    position: absolute;
    left: -55px;
}
.navbar-toggler {
    width: 38px;
    height: 38px;
    background-image: url('images/menu.png?v=1.4');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 11;
    font-size: 0;
    text-indent: -999999px;
    float: left;
}
/* header */
#wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
.social-list a {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    background-size: auto 18px;
    background-repeat: no-repeat;
    background-position: center;
    margin: 10px 5px 0 5px;
    transition: all 0.25s;
}
.social-list a:first-child {
    margin-left: 0;
}
.social-list a:last-child {
    margin-right: 0;
}
.social-list a.social-f {
    background-image: url('images/f.png');
}
.social-list a.social-i {
    background-image: url('images/i.png');
}
.social-list a.social-t {
    background-image: url('images/xcom.png');
}
.social-list a.social-p {
    background-image: url('images/p.png');
}
.social-list a.social-y {
    background-image: url('images/y.png');
}
.social-list a:hover {
    border-color: var(--tda-red);
    background-size: auto 20px;
}
#offcanvasMenu {
    width: 323px;
}
#offcanvasMenu .navbar-nav .dropdown-menu {
    position: static !important;
    transform: translate3d(0,0,0) !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 15px;
}
#offcanvasMenu a {
    font-size: 24px;
    padding: 15px 0;
    display: block;
    color: var(--tda-black);
}
#offcanvasMenu .navbar-nav .dropdown-menu a {
    padding-left: 20px;
    color: rgba(0,0,0,0.6);
    font-size: 22px;
}
#offcanvasMenu a:hover, #offcanvasMenu a.current-menu-item {
    color: var(--tda-red);
}
#offcanvasMenu .dropdown-item {
    font-weight: 300;
}
/* copyright */
#copyright {
    padding: 16px 0;
    background: var(--tda-grey);
}
#copyright a {
    color: var(--tda-grey2);
}
#copyright a:hover {
    color: var(--tda-black);
}
.footer_content {
    color: var(--tda-grey2);
}
.footer_content h3 {
    color: var(--tda-red);
    font-size: 34px;
}
.footer_content a {
    color: var(--tda-grey2);
}
.footer_content a:hover {
    color: var(--tda-red);
}
.footer_content > *:last-child {
    margin-bottom: 0 !important;
}
.footer-top {
    padding: 60px 0;
}
.footer-bottom {
    border-top: 1px solid var(--tda-grey2);
    padding: 12px 0;
    color: var(--tda-grey2);
    font-size: 12px;
}
.footer-bottom a {
    color: var(--tda-grey2);
    font-size: 12px;
}
.footer-bottom a:hover {
    color: var(--tda-red);
}
.gjs-cell input[type="submit"], .custom-btn {
    border: 1px solid var(--tda-grey2);
    font-size: 16px;
    color: var(--tda-grey2) !important;
    padding: 0 20px;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
    height: 46px;
    display: flex;
    align-items: center;
    text-align: center;
    background: transparent;
    float: left;
    text-transform: uppercase;
    font-family: var(--font-primary);
    transition: all 0.3s;
}
.gjs-cell input[type="submit"]:hover, .custom-btn:hover {
    border-color: var(--tda-red);
    color: var(--tda-red) !important;
    padding: 0 24px;
}
.gjs-cell input[type="checkbox"] {
    margin-left: -1.5em !important;
    margin-top: .25em !important;
    width: 1em !important;
}
.subscriber-terms {
    margin: 0.6em 0 1.2em 0;
    color: var(--tda-grey2);
    font-size: 16px;
}
.subscriber-terms a {
    color: var(--tda-grey2);
    font-weight: bold;
}
.subscriber-terms a:hover {
    color: var(--tda-red);
}
.form-check-input:checked {
    background-color: var(--tda-red);
    border-color: var(--tda-red);
}
.es_spinner_image {
    float: left !important;
    width: 100%;
}
.es-form-field-container {
    margin-left: -8px;
    margin-right: -8px;
    float: left;
    position: relative;
    width: calc(100% + 16px);
}
form[data-form-id="2"] .es-form-field-container .gjs-row:nth-child(1) {
    display: inline-block;
    width: 100%;
    float: left;
    padding: 0 8px;
}
form[data-form-id="2"] .es-form-field-container.active .gjs-row:nth-child(1) {
    width: 50%;
}
form[data-form-id="2"] .es-form-field-container .gjs-row:nth-child(2) {
    display: none;
    width: 50%;
    float: left;
    padding: 0 8px;
}
form[data-form-id="2"] .es-form-field-container.active .gjs-row:nth-child(2) {
    display: inline-block;
}
form[data-form-id="2"] .es-form-field-container .gjs-row:nth-child(3) {
    float: left;
    width: 100%;
    display: block;
    padding: 0 8px;
}
form[data-form-id="2"] .es-form-field-container .gjs-row:nth-child(3) .gjs-cell {
    display: none;
}
form[data-form-id="2"] .es-form-field-container.active .gjs-row:nth-child(3) .gjs-cell {
    display: block;
}
.es-name, .es-email {
    font-size: 16px;
    border: none;
    border-bottom: 2px solid var(--tda-grey2);
    color: var(--tda-grey2);
    font-family: var(--font-primary);
    padding: 10px 0;
    width: 100%;
    transition: all 0.25s;
}
.es-name:focus, .es-email:focus {
    outline: none;
    box-shadow: none;
    border: none;
    border-bottom: 2px solid var(--tda-red);
}
.es_subscription_message.error {
    float: left;
    width: 100%;
    font-size: 14px;
}
.social-list-footer {
    float: left;
    width: 100%;
}
.sub-arrow {
    width: 54px;
    position: absolute;
    right: 8px;
    top: 0;
    height: 47px;
    background-image: url('images/right-black.png');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 111;
    transition: all 0.25s;
}
.sub-arrow.active {
    background-image: url('images/left-black.png');
}
.sub-arrow:hover {
    right: 10px;
    cursor: pointer;
}
.subscribers, .emaillist, .emaillist form, .es_subscription_message {
    float: left;
    width: 100%;
}
.es_subscription_message.success {
    color: #008000;
    font-size: 16px;
    border: 1px solid #cafdd7;
    background: #ebfff0;
    padding: 15px;
    border-radius: 10px;
    float: left;
    width: 290px;
    text-align: center;
}
/* home */
.text-justify {
    text-align: justify;
}
.padding-block {
    padding-top: 80px;
    padding-bottom: 80px;
}
.padding-block-top {
    padding-top: 80px;
}
.padding-block-bottom {
    padding-bottom: 80px;
}
.about-content h3, .about-content h2, .about-content h4 {
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
}
.custom-padding-row {
    margin-right: calc(-1* var(--bs-gutter-x));
    margin-left: calc(-1* var(--bs-gutter-x));
}
.custom-padding-row > * {
    padding-right: calc(var(--bs-gutter-x)* 1);
    padding-left: calc(var(--bs-gutter-x)* 1);
}
.about_home_image {
    position: relative;
    display: block;
    overflow: hidden;
}
.about_home_image img {
    transition: all 0.25s;
}
.about_home_image:hover img {
    transform: scale(1.05);
}
.read-more.arrow-red {
    padding-right: 54px;
    background-image: url('images/right-red.png');
    background-size: 39px auto;
    background-position: right center;
    background-repeat: no-repeat;
    transition: all 0.25s;
}
.read-more span {
    left: 0;
    position: relative;
    -webkit-transtition: left .25s ease-in-out, right .25s ease-in-out;
    transition: left .25s ease-in-out, right .25s ease-in-out;
}
.read-more:hover {
    color: var(--tda-red);
}
.read-more:hover span {
    left: 5px;
}
/*#scroll-down {*/
/*    width: 20px;*/
/*    height: 36px;*/
/*    left: 50%;*/
/*    bottom: -100%;*/
/*    transform: translate(-50%, 0);*/
/*    position: absolute;*/
/*    background-image: url('images/down.png');*/
/*    background-repeat: no-repeat;*/
/*    background-size: 20px auto;*/
/*    background-position: center;*/
/*    z-index: 99;*/
/*    transition: all 1.2s ease-in-out;*/
/*    opacity: 0;*/
/*}*/
#scroll-down {
    width: 45px;
    height: 45px;
    left: 50%;
    bottom: -100%;
    transform: translate(-50%, 0);
    position: absolute;
    background-image: url('images/down2.png');
    background-repeat: no-repeat;
    background-size: 20px auto;
    background-position: center 17px;
    z-index: 99;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;

}
.full-slider #scroll-down {
    bottom: 40px;
    opacity: 1;
}
#scroll-down:hover {
    transform: translate(-50%, 0);
    border-color: #FFFFFF;
}
.mw-1920 {
    max-width: 1920px;
}
.owl-dot {
    margin-right: 5px;
}
.owl-dot:last-child {
    margin-right: 0;
}
.owl-dot span {
    width: 15px;
    height: 15px;
    display: block;
    border: 1px solid var(--tda-white);
    border-radius: 50%;
}
.owl-dot.active span {
    background: var(--tda-white);
}
.portfolio-carousel .owl-nav {
    position: static;
    bottom: 0;
    right: inherit;
}
.portfolio-carousel .owl-dots {
    position: absolute;
    right: 40px;
    bottom: 10%;
    z-index: 9;
}
.portfolio-carousel .portfolio-item-slider {
    width: 100%;
    padding-bottom: 164%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: all 0.25s;
}
.portfolio-carousel .portfolio-item-slider .portfolio-item-content {
    position: absolute;
    left: 40px;
    bottom: 10%;
    z-index: 4;
    color: var(--tda-white);
    margin: 0;
    padding-left: 43px;
    background-image: url('images/slash.png');
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: left center;
    text-transform: uppercase;
    line-height: 1.2em;
}
.portfolio-carousel .portfolio-item-slider .portfolio-item-content a {
    color: var(--tda-white) !important;
    font-weight: 300;
}
.ovf_link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.portfolio-carousel .portfolio-item-slider .ovf_link,
.ovf_link.hover-effect {
    transition: all 0.5s;
}
.portfolio-carousel .portfolio-item-slider:hover .ovf_link,
div:hover > .ovf_link.hover-effect {
    background: rgba(0,0,0,0.2);
}
.portfolio-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 111;
}
.portfolio-carousel .owl-nav button.disabled {
    opacity: 0.5 !important;
}
.portfolio-carousel .owl-next {
    right: 15px;
}
.portfolio-carousel .owl-prev {
    left: 15px;
}
/* home */
/* news */
.large-new-image {
    width: 100%;
    height: 510px;
    position: relative;
    overflow: hidden;
}
.large-news-4 .large-new-image {
    height: 0;
    padding-bottom: 67.4731182796%;
}
.ovf_image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.25s ease-in-out;
}
/* Card dùng <img> thay background-image để có srcset + lazy-load.
   object-fit: cover tái tạo đúng background-size: cover + background-position: center. */
.ovf_image .ovf_img,
.portfolio-item-image .ovf_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
div:hover > .ovf_image {
    transform: scale(1.1);
}
.new-title, .new-title a {
    color: var(--tda-black);
    font-weight: bold;
    font-size: 16px;
}
.large-news-1 .large-news-info .new-title, .large-news-1 .large-news-info .new-title a {
    font-size: 20px;
}
.new-info, .new-info a {
    color: var(--tda-grey2);
    font-size: 16px;
}
.new-title a:hover,
.new-info a:hover {
    color: var(--tda-red);
}
.small-new-image {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.small-new-item {
    margin-bottom: 15px;
}
.small-new-item:last-child {
    margin-bottom: 15px;
}
#header.sticky .nav-box {
    align-self: center !important;
}
#header.sticky .nav-box a {
    font-size: 18px !important;
}
#header.sticky {
    padding: 15px 0;
    background: rgba(0,0,0,0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 999;
}
/* news */
.bg-grey {
    background-color: var(--tda-grey);
}
.text-grey {
    color: var(--tda-grey);
}
.text-grey2 {
    color: var(--tda-grey2);
}
.partner-carousel .row {
    margin-right: -15px;
    margin-left: -15px;
}
.partner-carousel .row > * {
    padding-right: 15px;
    padding-left: 15px;
}
.partner-carousel .row > *:nth-child(1), .partner-carousel .row > *:nth-child(2) {
    margin-bottom: 15px;
}
.partner-logo {
    width: 100%;
    padding-bottom: 60%;
    position: relative;
}
.partner-logo img {
    max-width: 80% !important;
    max-height: 70%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    filter: grayscale(100%);
    transition: all 0.25s;
}
.partner-logo:hover img {
    filter: grayscale(0);
    transform: translate(-50%,-50%) scale(1.06);
}
.partner-carousel .owl-nav {
    position: static;
}
.partner-carousel .owl-prev {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
}
.partner-carousel .owl-next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
}
.partner-carousel .slide-nav {
    width: 98px;
    border: none !important;
}
.partner-carousel .slide-nav img {
    width: 100% !important;
    opacity: 0;
    transition: all 0.25s;
}
.partner-carousel .slide-nav-next {
    background-image: url('images/right-white.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.partner-carousel .slide-nav-next:hover {
    background-image: url('images/right-white-dark.png');
}
.partner-carousel .slide-nav-prev {
    background-image: url('images/left-white.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.partner-carousel .slide-nav-prev:hover {
    background-image: url('images/left-white-dark.png');
}
.partner-carousel .slide-nav:hover img {
    opacity: 0;
}
.full-border-black {
    background: var(--tda-black);
    height: 1px;
    width: 100%;
}
/* the_content */
.wp-caption-text {
    background: #eee;
    padding: 12px;
    text-align: center;
    font-style: italic;
    font-size: 15px;
}
.the_content > *:first-child {
    margin-top: 0;
}
.the_content * {
    max-width: 100% !important;
    height: auto !important;
    width: 100%;
}
.the_content > *:last-child {
    margin-bottom: 0;
}
.the_content h2, .the_content h3, .the_content h4 {
    font-weight: bold;
}
.the_content h2 {
    font-size: 19px;
}
.the_content h3 {
    font-size: 18px;
}
.the_content h4 {
    font-size: 17px;
}
.the_content ul {
    padding-left: 15px;
    margin-bottom: 20px;
}
.the_content ul li {
    list-style-position: inside;
}
.the_content ol {
    list-style-type: decimal;
    margin-bottom: 20px;
    padding-left: 15px;
}
.the_content ol li {
    list-style-position: inside;
}
.the_content ul li ul li {
    list-style-type: circle;
}
.the_content ul li p {
    display: inline-block;
}
.the_content a:hover {
    text-decoration: underline !important;
}
/* the_content */
.menu-as-block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 15px;
}
.menu-as-block a {
    font-size: 20px;
    color: var(--tda-grey2);
    padding: 15px 20px;
    border: 1px solid var(--tda-grey2);
    position: relative;
    z-index: 2;
}
.menu-as-block a:hover, .menu-as-block a.active {
    color: var(--tda-black);
    border: 1px solid var(--tda-red);
}
blockquote {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2em;
}
blockquote p {
    margin-bottom: 5px;
}
.box-content-as-quote:after {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 50px 50px 50px;
    border-color: transparent transparent #D38F9C transparent;
    transform: translate(-50%, 100%) rotate(315deg);
    content: '';
    position: absolute;
    left: 15%;
    bottom: 10px;
}
.box-content-as-quote {
    position: relative;
    background: #D38F9C;
    padding: 30px;
    color: var(--tda-white);
    margin-bottom: 100px;
}
.list-item-arrow-red a {
    position: relative;
    padding-left: 40px;
    display: block;
    line-height: 1.5;
}
.list-item-arrow-red a:before {
    content: '';
    width: 25px;
    height: 25px;
    background-image: url("images/circle-right-red.png");
    background-position: center;
    background-size: cover;
    left: 0;
    top: 3px;
    position: absolute;
    transition: all 0.25s;
}
.list-item-arrow-red:hover a:before {
    left: 6px;
}
.aligncenter {
    display: block;
    margin: 0 auto;
}
.alignleft {
    float: left;
    margin-right: 15px;
}
.alignright {
    float: right;
    margin-left: 15px;
}
*:has(> .alignleft) {
    float: left;
}
*:has(> .alignright) {
    float: right;
}
.breadcrumb {
    margin: 0;
}
.breadcrumb, .breadcrumb a {
    color: var(--tda-grey2);
}
.breadcrumb a:hover {
    color: var(--tda-red);
}
.breadcrumb_last {
    color: #999999;
    font-weight: bold;
}
.border-bottom-red {
    border-bottom: 2px solid var(--tda-red);
}
.map_embed {
    width: 100%;
    padding-bottom: 100px;
    position: relative;
}
.map_embed iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}
.contact-form .ntk-form-error {
    display: none !important;
}
.contact-form .ntk-form-status {
    border-width: 1px;
    border-radius: 0;
    padding: 12px 15px;
    margin: 15px 0 0 0;
}
.contact-form .form-control.is-invalid {
    border: 1px solid var(--tda-red);
    background-image: none;
}
.form-control {
    border-radius: 0 !important;
    padding: .575rem .75rem;
}
.btn {
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding: 11px 15px;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--tda-red) !important;
    color: var(--tda-white) !important;
}
.btn:hover {
    background: var(--tda-black) !important;
}
.grecaptcha-badge {
    opacity: 0;
    z-index: -1;
}
.as-border-1-black {
    width: 100%;
    height: 1px;
    background: var(--tda-black);
}
.the_content .img-wrap {
    position: relative;
    overflow: hidden;
}
.pin-btn-wrap {
    position: absolute;
    left: 0;
    top: 10px;
    z-index: 2;
    transition: all 0.25s;
    transform: translate(-100%, 0);
}
.the_content .img-wrap:hover .pin-btn-wrap {
    left: 10px;
    transform: translate(0, 0);
}
.dropdown-menu.active {
    display: block !important;
}
.dropdown-item.active, .dropdown-item:active {
    background: transparent !important;
    color: var(--tda-red) !important;
}
.hai {
    z-index: -9999;
    position: relative;
    opacity: 0;
    width: 0;
    height: 0;
}
.form-control, .form-select, textarea, select, input, button, .btn {
    border-radius: 0 !important;
}
.alert {
    border-radius: 0 !important;
}
/* album */
.back-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.the_album {

}
.album-large {
    width: 100%;
    position: relative;
    padding-bottom: 67.4054758801%;
    height: 0;
    transition: all 0.3s;
}
.album-item, .album-last {
    width: calc(20% - 8px);
    margin-right: 10px;
    position: relative;
    padding-bottom: calc(20% - 8px);
    height: 0;
    display: inline-block;
    font-size: 0;
    float: left;
    transition: all 0.3s;
}
/* 5 ô × (20% - 8px) + 5 × 10px margin = 100% + 10px, tức thừa đúng một margin.
   Bỏ margin-right ở ô thứ 5 để hàng thumb vừa khít .thumb-wrap.
   Nhắm vào :nth-child(5) chứ không riêng .album-last, vì .album-last chỉ xuất hiện khi
   album có hơn 6 ảnh — album ít ảnh hơn thì ô thứ 5 vẫn là .album-item và cũng thừa margin. */
.thumb-wrap > .album-item:nth-child(5),
.thumb-wrap > .album-last:nth-child(5) {
    margin-right: 0;
}
.album-large:after, .album-item:after, .album-last:after {
    content: '';
    background: rgba(0,0,0,0);
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
}
.album-last:after {
    background: rgba(0,0,0,0.5);
}
.album-item:hover:after, .album-large:hover:after {
    background: rgba(0,0,0,0.3);
}
.album-last:hover:after {
    background: rgba(0,0,0,0.3);
}
.count_album {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #FFFFFF;
    font-weight: bold;
    z-index: 2;
}
.the_album .thumb-wrap > *:last-child {
    margin-right: 0;
}
.hover-cursor-zoom-in {
    cursor: zoom-in;
}
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {
    border-color: var(--tda-red);
}
.partner-item-side {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    padding-bottom: 131.707317073%;
}
.partner-item-side:after {
    content: '';
    background: rgba(0,0,0,0);
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
}
.partner-item-side:hover:after {
    background: rgba(0,0,0,0.2);
}
.partner-item-side-logo {
    position: absolute;
    right: 0;
    bottom: 20px;
    background: #FFFFFF;
    z-index: 2;
}
.partner-item-side-logo img {
    max-height: 30px;
    width: auto;
}
/* album */
.large-news-2 {
    position: relative;
    width: 100%;
    padding-bottom: 67.4157303371%;
    overflow: hidden;
}
.large-news-info-2 {
    position: absolute;
    bottom: 40px;
    left: 0;
    z-index: 5;
    max-width: 60%;
    padding: 18px;
    background: rgba(255,255,255,0.8);
}
.small-new-item-2 {
    position: relative;
    width: 100%;
    padding-bottom: 67.4157303371%;
    overflow: hidden;
}
.small-new-info-2 {
    position: absolute;
    bottom: 20px;
    left: 0;
    z-index: 5;
    max-width: 85%;
    padding: 12px;
    background: rgba(255,255,255,0.8);
}
.pagination {
    display: flex;
    justify-content: end;
}
.wp-pagenavi {
    display: flex;
    align-items: center;
}
.wp-pagenavi .pages {
    display: none;
}
.wp-pagenavi > * {
    margin: 0 10px;
}
.wp-pagenavi .nextpostslink, .wp-pagenavi .previouspostslink {
    font-size: 0;
    width: 32px;
    height: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 100% auto;
}
.wp-pagenavi .nextpostslink {
    background-image: url('images/right-black.png');
}
.wp-pagenavi .previouspostslink {
    background-image: url('images/left-black.png');
    background-position: left center;
}
.wp-pagenavi .current {
    color: var(--tda-red);
    font-weight: bold;
}
.wp-pagenavi a {
    color: var(--tda-black);
}
.wp-pagenavi a:hover {
    color: var(--tda-red);
}
/* share */
.block-title-share {
    position: relative;
    padding-right: 42px;
}
.min-h-32 {
    min-height: 32px;
}
.share-block {
    position: absolute;
    right: 32px;
    top: 0;
    background: #FFFFFF;
    padding: 0 10px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.35s;
    z-index: -1;
}
.share-block.active {
    opacity: 1;
    z-index: 11;
}
.share-block.active .st-btn {
    display: inline-block !important;
}
.share-btn {
    width: 32px;
    height: 32px;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url("images/share.png");
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    transition: all 0.35s;
}
.share-btn:hover {
    opacity: 0.8;
}
/* share */
#offcanvasContact {
    background: rgba(246, 246, 246, 1);
}
.contact-header .tda-icon {
    width: 60px;
}
.contact-item-wrap p {
    margin: 0 !important;
}
.contact-item-wrap {
    margin-bottom: 1rem;
}
.contact-side .contact-form [type="submit"] {
    width: 100%;
}
.contact-side .contact-form .ntk-form-status {
    margin-top: 0;
    margin-bottom: 1rem;
    float: left;
    width: 100%;
}
.contact-side input, .contact-side textarea, .contact-side select {
    background: #FFFFFF;
    border: 1px solid var(--tda-grey2);
    border-radius: 0 !important;
    outline: none;
}
.select-one .select-one-option {
    margin: 5px 0 5px 0;
    padding: 0 5px;
    width: 50%;
    flex: 0 0 auto;
}
#yeucau.select-one-item .select-one-option {
    width: 33.3333333333%;
}
.select-one-item {
    margin: 0 -5px;
    display: flex;
    flex-wrap: wrap;
}
.select-one .select-one-option label {
    width: 100%;
}
.select-one .select-one-option input {
    display: none;
}
.select-one .select-one-label {
    padding: .575rem .75rem;
    width: 100%;
    border: 1px solid var(--tda-grey2);
    text-align: center;
    background: #FFFFFF;
    float: left;
    transition: all 0.25s;
}
.select-one input:checked + span.select-one-label,
.select-one input.is-invalid + span.select-one-label {
    border: 1px solid var(--tda-red);
}
.select-one-label:hover {
    cursor: pointer;
    border: 1px solid var(--tda-red);
}
.portfolio-item-image {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.page-parent .the_content_service {
    height: 66px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}
.light-galley:hover {
    cursor: pointer;
}
.owl-carousel {
    touch-action: manipulation;
}
.portfolio-info > *:last-child {
    margin-bottom: 1rem !important;
}
.lg-outer .lg-object {
    max-width: 90%;
    max-height: 85%;
}
.main-slider .slide-nav:focus {
    border: 1px solid #FFFFFF !important;
}
.main-slider .slide-nav-full:focus {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.portfolio-carousel .slide-nav:hover {
    border: 1px solid #FFFFFF !important;
}
body:not(.home) .main-slider.full-slider .slide-nav-full, body:not(.home) .main-slider.full-slider .slide-nav:hover, body:not(.home) .main-slider.full-slider .slide-nav:focus {
    border: 1px solid #FFFFFF !important;
}
body.home .main-slider.full-slider .slide-nav-full, body.home .main-slider.full-slider .slide-nav-full:hover, body.home .main-slider.full-slider .slide-nav-full:focus {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
body.home .main-slider:not(.full-slider) .slide-nav-full {
    border: 1px solid #FFFFFF !important;
}
.portfolio-carousel .slide-nav:hover, .portfolio-carousel .slide-nav:focus {
    border: 1px solid #FFFFFF !important;
}
td {
    vertical-align: top !important;
}
.tag_cloud {
    margin-top: 2rem;
}
.the_content [style*="padding-left: 40px"] {
    padding-left: 15px !important;
}
/* @media */
@media (min-width: 1200px) {
    .portfolio-carousel .slide-item {
        position: relative;
        overflow: hidden;
    }
    .portfolio-item-image {
        transition: all 0.25s;
    }
    .portfolio-carousel .slide-item:hover .portfolio-item-image {
        transform: scale(1.15);
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: calc(1160px + 1.5rem);
    }
    .slide-nav:hover {
        border: 1px solid #FFFFFF;
    }
}
@media (min-width: 890px) and (max-width: 1024px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: calc(864px + 1.5rem);
    }
    body {
        font-size: 15px;
    }
    .about-content h3, .about-content h2, .about-content h4 {
        font-size: 16px;
    }
    .fs-366 {
        font-size: 30px;
    }
    .fs-36 {
        font-size: 28px;
    }
    .portfolio-item-content.fs-36 {
        font-size: 24px;
        left: 20px !important;
        padding-left: 30px !important;
        bottom: 30px !important;
    }
    .fs-24 {
        font-size: 20px;
    }
    .fs-18 {
        font-size: 16px;
    }
    .large-news-1 .large-news-info .new-title, .large-news-1 .large-news-info .new-title a {
        font-size: 18px;
    }
    .small-new-info .new-info, .small-new-info .new-info a {
        font-size: 14px;
        line-height: 1.2;
    }
    .large-new-image {
        height: 375px;
    }
    .small-new-image {
        width: 110px;
        height: 115px;
        flex-basis: 110px;
        margin-right: 10px !important;
    }
    .mt-5 {
        margin-top: 2rem !important;
    }
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .pt-5 {
        padding-top: 2rem !important;
    }
    .pb-5 {
        padding-bottom: 2rem !important;
    }
    .padding-block {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .padding-block-top {
        padding-top: 4rem;
    }
    .padding-block-bottom {
        padding-bottom: 4rem;
    }
    .footer_content h3 {
        font-size: 24px;
    }
    .footer-top {
        padding: 2.5rem 0;
    }
    .footer-bottom {
        font-size: 13px;
    }
    .partner-carousel .slide-nav {
        width: 50px !important;
    }
    .gjs-cell input[type="submit"], .custom-btn {
        height: 40px;
    }
    .es-name, .es-email {
        font-size: 15px;
    }
    .subscriber-terms {
        font-size: 14px;
    }
    .social-list a {
        width: 40px;
        height: 40px;
        background-size: auto 16px;
    }
    .menu-box {
        display: none !important;
    }
    .menu-toggler-box {
        display: block !important;
    }
    #offcanvasMenu a {
        font-size: 20px;
        padding: 10px 0;
    }
    #offcanvasMenu .navbar-nav .dropdown-menu a {
        font-size: 19px;
        padding-left: 15px;
    }
    .slide-nav {
        width: 52px;
        height: 52px;
    }
    /*  about  */
    blockquote {
        font-size: 20px;
    }
    .menu-as-block a {
        padding: 12px 15px;
        font-size: 18px;
    }
    /*  about  */
    /*  service  */
    .the_content h2 {
        font-size: 18px;
    }
    .the_content h3 {
        font-size: 17px;
    }
    .the_content h3 {
        font-size: 16px;
    }
    .box-content-as-quote {
        font-size: 16px;
    }
    /*  service  */
    .new-info, .new-info a {
        font-size: 15px;
    }
    .share-btn {
        width: 28px;
        height: 28px;
        top: 0;
    }
    .large-news-info-2 .new-title, .large-news-info-2 .new-title a {
        font-size: 14px;
    }
    .small-new-info-2 .new-title, .small-new-info-2 .new-title a {
        font-size: 13px;
    }
    .large-news-info-2 .new-info, .large-news-info-2 .new-info a {
        font-size: 13px;
    }
    .small-new-info-2 .new-info, .small-new-info-2 .new-info a {
        font-size: 12px;
    }
    .other_title {
        font-size: 14px;
    }
    .other_title.list-item-arrow-red a {
        padding-left: 25px;
    }
    .other_title.list-item-arrow-red a:before {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 1199px) {
    /*.large-news {*/
    /*    position: relative;*/
    /*    margin-bottom: 15px;*/
    /*}*/
    /*.large-news-info .new-title, .large-news-info .new-title a {*/
    /*    font-size: 16px;*/
    /*}*/
    /*.large-new-image {*/
    /*    width: 100%;*/
    /*    height: 0;*/
    /*    padding-bottom: 60%;*/
    /*}*/
    /*#news-section .small-new-wrap {*/
    /*    margin-right: calc(-.5* var(--bs-gutter-x));*/
    /*    margin-left: calc(-.5* var(--bs-gutter-x));*/
    /*}*/
    /*#news-section .small-new-item {*/
    /*    width: 33.3333333333%;*/
    /*    float: left;*/
    /*    flex-direction: column !important;*/
    /*    padding-right: calc(var(--bs-gutter-x)* .5);*/
    /*    padding-left: calc(var(--bs-gutter-x)* .5);*/
    /*}*/
    /*#news-section .small-new-image {*/
    /*    margin-right: 0;*/
    /*    margin-bottom: 15px;*/
    /*    width: 100%;*/
    /*    height: 0;*/
    /*    padding-bottom: 60%;*/
    /*}*/
}
@media (max-width: 991px) {
    .navbar-toggler-wrapper {
        position: static;
        left: 0;
    }
    #about-section .read-more {
        float: right;
    }
    .related_project .small-new-wrap {
        margin-right: calc(-.5* var(--bs-gutter-x));
        margin-left: calc(-.5* var(--bs-gutter-x));
    }
    .related_project .small-new-item {
        width: 33.3333333333%;
        float: left;
        flex-direction: column !important;
        padding-right: calc(var(--bs-gutter-x)* .5);
        padding-left: calc(var(--bs-gutter-x)* .5);
    }
    .related_project .small-new-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 0;
        padding-bottom: 60%;
    }
}
@media (max-height: 500px) {
    .portfolio-wrap {
        min-height: calc(var(--app-height) - 52px);
        background: #eeeeee;
    }
    .portfolio-carousel .portfolio-item-slider {
        height: calc(var(--app-height) - 52px);
        padding-bottom: 0;
    }
}
@media (max-width: 799px) {
    .portfolio-wrap {
        min-height: calc(var(--app-height) - 52px);
        background: #eeeeee;
    }
    .portfolio-carousel .portfolio-item-slider {
        height: calc(var(--app-height) - 52px);
        padding-bottom: 0;
    }
    .portfolio-carousel .slide-item:hover .portfolio-item-image {
        transform: scale(1) !important;
    }
}
@media (max-width: 991px) {
    #news-section .col-md-8, #news-section .col-md-4 {
        width: 100%;
    }
    .product-as-news {
        width: 100%;
    }
    .product-as-news .small-new-item:last-child {
        display: none;
    }
    #about-section .col-md-6 {
        width: 100%;
    }
    .large-news-1 .large-news-info .new-title, .large-news-1 .large-news-info .new-title a, .new-title, .new-title a {
        font-size: 14px;
    }
    .new-info, .new-info a {
        font-size: 12px;
    }
    .large-new-image {
        height: 0;
        padding-bottom: 66%;
    }
    .small-new-wrap {
        margin: 0 -0.5rem;
    }
    .small-new-item {
        width: 50% !important;
        display: none !important;
        float: left;
        padding: 0 0.5rem;
        margin: 1rem 0 0 0 !important;
    }
    .small-new-item .small-new-image {
        width: 100%;
        margin: 0 0 0.5rem 0 !important;
        height: 0;
        padding-bottom: 66%;
    }
    .small-new-item:nth-child(1), .small-new-item:nth-child(2) {
        display: block !important;
    }
    .partner-carousel .slide-nav {
        width: 35px;
    }
    .partner-logo {
        padding-bottom: 50%;
    }
    .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        padding-right: calc(var(--bs-gutter-x)* .75);
        padding-left: calc(var(--bs-gutter-x)* .75);
    }
    .list-item-arrow-red {
        font-size: 13px;
    }
    .list-item-arrow-red a {
        padding-left: 25px;
    }
    .list-item-arrow-red a:before {
        width: 15px;
        height: 15px;
    }
    .large-news-info-2 .new-title a {
        font-size: 12px !important;
    }
    .large-news-info-2 .new-info, .large-news-info-2 .new-info a {
        font-size: 12px !important;
    }
    .small-new-info-2 .new-title a {
        font-size: 12px !important;
    }
    .small-new-info-2 .new-info, .small-new-info-2 .new-info a {
        font-size: 10px !important;
    }
    .portfolio-carousel .slide-item:hover .portfolio-item-image {
        transform: scale(1.05);
    }
    .padding-block {
        padding-bottom: 2.5rem !important;
        padding-top: 2.5rem !important;
    }
    .padding-block-top {
        padding-top: 2.5rem !important;
    }
    .padding-block-bottom {
        padding-bottom: 2.5rem !important;
    }
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    .mt-5 {
        margin-top: 2rem !important;
    }
    .pt-5 {
        padding-top: 2rem !important;
    }
    .pb-5 {
        padding-bottom: 2rem !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .mt-4 {
        margin-top: 1rem !important;
    }
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    .pt-4 {
        padding-top: 1rem !important;
    }
    .pb-4 {
        padding-bottom: 1rem !important;
    }
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .footer-top {
        padding-top: 2rem !important;;
        padding-bottom: 2rem !important;
    }
    .gjs-cell input[type="submit"], .custom-btn {
        font-size: 13px;
        height: 35px;
    }
    .footer_content h3 {
        font-size: 16px;
    }
    .fs-30, .fs-32 {
        font-size: 16px;
    }
    .contact-side .fs-30, .contact-side .fs-32 {
        font-size: 18px;
    }
    .fs-18, .fs-20, .fs-24 {
        font-size: 14px;
    }
    .fs-13, .fs-14, .fs-15, .fs-16 {
        font-size: 13px;
    }
    .es-name, .es-email {
        font-size: 13px;
    }
    .social-list a {
        width: 35px;
        height: 35px;
        background-size: auto 15px;
    }
    .subscriber-terms {
        font-size: 13px;
    }
    .subscriber-terms label {
        top: 2px;
        position: relative;
    }
    .social-list-footer {
        margin-top: 10px;
    }
    .slide-nav {
        width: 50px;
        height: 50px;
    }
    .about-content h3, .about-content h2, .about-content h4 {
        font-size: 15px;
    }
    #offcanvasMenu .navbar-nav .dropdown-menu a {
        font-size: 15px;
        padding-left: 10px;
    }
    #offcanvasMenu a {
        font-size: 15px;
        padding: 7px 0;
    }
    .the_content h2 {
        font-size: 15px;
    }
    .the_content h3, .the_content h4, .the_content h5 {
        font-size: 14px;
    }
    .box-content-as-quote {
        padding: 18px;
        margin-bottom: 60px;
    }
    .box-content-as-quote:after {
        border-width: 0 30px 30px 30px;
    }
    /* Nhãn dài (Nhà phố & căn hộ) không vỡ dòng bên trong nút (white-space:nowrap).
       Nút nào không đủ chỗ thì tự xuống hàng nguyên vẹn (flex-wrap:wrap), không scroll ngang. */
    .menu-as-block {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .menu-as-block a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .share-btn {
        width: 28px;
        height: 28px;
        top: 0;
    }
    #header {
        padding: 12px 0;
        top: 1.5rem;
    }
    #header.sticky {
        top: 0;
    }
    .main-slider:not(.full-slider) .owl-nav {
        bottom: 15px !important;
        transform: translate(-50%, 0) !important;
    }
    #category_description_new {
        height: 200px;
        overflow: hidden;
        position: relative;
    }
    .mobile-hide-last-child:last-child {
        display: none;
    }
    .main-slider .slide-nav.slide-nav-full:hover, .main-slider .slide-nav.slide-nav-full:focus {
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .alignleft {
        float: none;
        display: block;
        margin: 10px auto;
    }
    .alignright {
        float: none;
        display: block;
        margin: 10px auto;
    }
    *:has(> .alignleft) {
        float: none;
    }
    *:has(> .alignright) {
        float: none;
    }
}
@media (max-width: 767px), screen and (max-height: 430px) {
    body {
        font-size: 13px;
    }
    #header.sticky {
        padding: 12px 0;
        top: 0;
    }
    blockquote {
        font-size: 15px;
    }
    .menu-as-block {
        gap: 10px;
    }
    .menu-as-block a {
        padding: 7px 10px;
        font-size: 13px;
    }
    .fs-366 {
        font-size: 22px;
    }
    .fs-36 {
        font-size: 20px;
    }
    .partner-carousel .col-6 {
        padding: 0;
    }
    .h-38 {
        height: 28px;
    }
    .navbar-toggler, .navbar-toggler-wrapper {
        width: 28px;
        height: 28px;
    }
    .logo img {
        max-height: 28px;
    }
    #copyright .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    #copyright .col-3 {
        font-size: 12px;
        padding: 0 5px;
        width: auto;
    }
    .select-one .select-one-label {
        padding: .46rem .5rem;
    }
    .form-control {
        padding: .46rem .5rem;
        font-size: 13px;
    }
    .fs-13, .fs-14, .fs-15, .fs-16 {
        font-size: 13px;
    }
    .btn {
        font-size: 13px;
        padding: .53rem .55rem;
    }
    .contact-item-wrap {
        margin-bottom: 10px;
    }
    .main-slider, .main-slider .slide-item {
        height: 141px;
    }
    .main-slider.full-slider, .main-slider.full-slider .slide-item {
        height: var(--app-height);
    }

    .large-news-2, .small-new-item-2 {
        position: relative;
        padding-bottom: 0;
    }
    .large-new-image-2, .small-new-image-2 {
        width: 100%;
        padding-bottom: 67.4157303371%;
        position: relative;
    }
    .large-news-info-2, .small-new-info-2 {
        padding: 15px 0 0 0;
        position: static;
        max-width: 100%;
        background: transparent;
    }
}
@media (max-width: 767px) {
    .portfolio-item-image, .portfolio-carousel .portfolio-item-slider, .portfolio-carousel .portfolio-item-slider .ovf_link,
    .ovf_link.hover-effect {
        transition: all 0s !important;
    }
    .full-slider .slide-inner {
        bottom: 30%;
    }
    .full-slider .banner-carousel .owl-nav {
        bottom: 30%;
    }
}
@media (max-width: 640px) {
    .small-new-item .new-title {

    }
    .partner-carousel {
        padding: 0 40px;
    }
    .partner-carousel .owl-prev {
        transform: translate(0, -50%);
    }
    .partner-carousel .owl-next {
        transform: translate(0, -50%);
    }
    .btn {
        width: 100%;
    }
    .block-title-share.min-h-32 {
        margin-bottom: 0 !important;
    }
    .share-btn {
        width: 20px;
        height: 20px;
        top: -3px;
    }
    #scroll-down {
        width: 38px;
        height: 38px;
        background-size: 15px auto;
    }
}
@media (max-width: 499px) {
    .new-info, .new-info a {
        font-size: 11px;
    }
}
#offcanvasContact .contact-item-wrap.contact-item-wrap-submit > div {
    margin-top: 10px;
}
/* Landscape phones only: an open keyboard also drops a portrait phone below 430px high */
@media (max-height: 430px) and (min-width: 568px) and (max-width: 1280px) {
    #offcanvasContact {
        width: 90%;
        padding-left: 2rem;
    }
    #offcanvasMenu {
        padding-left: 2rem;
    }
    #offcanvasContact .contact-form {
        margin-left: -5px;
        margin-right: -5px;
    }
    #offcanvasContact .contact-form > * {
        padding-left: 5px;
        padding-right: 5px;
    }
    #offcanvasContact .contact-item-wrap {
        margin-bottom: 1rem;
        width: 33.3333333333%;
        float: left;
        padding: 0 5px;
    }
    #offcanvasContact .contact-item-wrap.contact-item-wrap-chinhanh {
        width: 100%;
    }
    #offcanvasContact .contact-item-wrap.contact-item-wrap-yeucau {
        width: 100%;
    }
    #offcanvasContact .contact-item-wrap.contact-item-wrap-message {
        width: 100%;
    }
    #offcanvasContact .contact-item-wrap.contact-item-wrap-submit {
        width: 100%;
    }
    #offcanvasContact .select-one .select-one-option {
        width: 20%;
    }
    .main-slider, .main-slider .slide-item {
        height: 141px;
    }
    .main-slider.full-slider, .main-slider.full-slider .slide-item {
        height: var(--app-height);
    }

    .large-news-2, .small-new-item-2 {
        position: relative;
        padding-bottom: 0;
    }
    .large-new-image-2, .small-new-image-2 {
        width: 100%;
        padding-bottom: 67.4157303371%;
        position: relative;
    }
    .large-news-info-2, .small-new-info-2 {
        padding: 15px 0 0 0;
        position: static;
        max-width: 100%;
        background: transparent;
    }
    .main-slider.full-slider .owl-nav {
        bottom: 50% !important;
        transform: translate(-50%, 150%) !important;
    }
    .main-slider.full-slider .slide-inner {
        bottom: 50% !important;
    }
    #header .container, #copyright .container, .main-slider .container {
        padding-right: calc(var(--bs-gutter-x) * 1.2);
        padding-left: calc(var(--bs-gutter-x) * 1.2);
    }
    #bellow-slider-content .container, #bellow-slider-content .container-sm, #footer .container {
        max-width: 66.6666666667%;
    }
}
@media (max-width: 380px) {
    .menu-as-block a {
        padding: 7px 6px;
    }
}

/* Custom LightGallery Fullscreen (Height Only for Desktop) */
.lg-outer .lg-img-wrap {
    padding: 0 !important;
}

@media (min-width: 768px) {
    .lg-outer .lg-image {
        height: 100% !important;
        width: auto !important;
        max-height: 100% !important;
        max-width: none !important;
    }

    /* Toolbar & Components overlay show on hover */
    .lg-outer .lg-toolbar,
    .lg-outer .lg-components,
    #lg-toolbar-1,
    #lg-components-1 {
        opacity: 0 !important;
        transition: opacity 0.3s ease-in-out !important;
        pointer-events: none !important;
    }

    .lg-outer:hover .lg-toolbar,
    .lg-outer:hover .lg-components,
    .lg-outer:hover #lg-toolbar-1,
    .lg-outer:hover #lg-components-1 {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 767px) {
    .lg-outer .lg-image {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

/* Toolbar Header Info (Title + Counter on top left) */
.lg-outer .lg-header-info {
    float: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: calc(100% - 150px);
    padding: 15px 0 0 15px;
    box-sizing: border-box;
}

.lg-outer .lg-header-info .lg-sub-html {
    position: static !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: transparent !important;
    margin: 0 !important;
}

.lg-outer .lg-header-info .lg-counter {
    position: static !important;
    margin-top: 5px !important;
    color: #ccc;
    font-size: 14px;
    display: block !important;
    padding: 0 !important;
}
/* Mục lục bài viết (js/toc.js) — trước đây là <style> inline trong footer.php */
#custom-toc {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
#custom-toc h2.toc-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #2d3748;
}
#custom-toc ul { list-style: none; padding-left: 0; margin: 0; }
#custom-toc li { list-style: none; margin: 10px 0; line-height: 1.5; }
#custom-toc li.toc-h3 { margin-left: 25px; }
#custom-toc li.toc-h4 { margin-left: 45px; }
#custom-toc a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s ease;
}
#custom-toc a:hover { color: var(--tda-red); }
.toc-number {
    margin-right: 8px;
    font-weight: 600;
}

/* Newsletter confirm/unsubscribe page (ntk-newsletter mu): .the_content * forces width 100% and height auto, so size the button like the footer one. No slider here: the white logo and menu icon need the dark #header.sticky look, and the content starts below the fixed header. */
body.ntk-newsletter-body #header {
    top: 0;
    padding: 15px 0;
    background: rgba(0,0,0,0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
body.ntk-newsletter-body #bellow-slider-content {
    padding-top: 68px;
}
@media (max-width: 991px) {
    body.ntk-newsletter-body #header { padding: 12px 0; }
    body.ntk-newsletter-body #bellow-slider-content { padding-top: 62px; }
}
.ntk-newsletter-page .the_content .custom-btn {
    display: inline-flex;
    float: none;
    width: auto;
    min-height: 46px;
    margin-top: 0.5rem;
}
@media (min-width: 890px) and (max-width: 1024px) { .ntk-newsletter-page .the_content .custom-btn { min-height: 40px; } }
@media (max-width: 991px) { .ntk-newsletter-page .the_content .custom-btn { min-height: 35px; } }

/* WordPress admin bar for logged-in users: keep the fixed header below it (32px desktop, 46px tablet; under 600px the bar scrolls away). */
body.admin-bar #header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar #header { top: 0; } }
