﻿:root {
    --theme-color: rgb(152, 16, 250);
    --theme-color-rgb: 152, 16, 250;
}

body {
    font-family: var(--title-font);
}

.header-logo img {
    height: 90px;
}

.header-logo {
    position: relative;
    z-index: 3;
}

.header-layout2 .th-btn {
    padding: 16px 24px;
    font-weight: bold;
}

.header-logo a {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
}

    .header-logo a::before {
        content: "";
        position: absolute;
        inset: 10% 8%;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(168, 85, 247, 0.12) 45%, rgba(168, 85, 247, 0) 75%);
        filter: blur(14px);
        opacity: .65;
        pointer-events: none;
        z-index: -1;
        animation: logoAura 3.2s ease-in-out infinite;
    }


.header-logo img {
    display: block;
    filter: brightness(1.12) contrast(1.12) drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
    transform-origin: center center;
    animation: logoFloat 4.5s ease-in-out infinite, logoGlow 3.8s ease-in-out infinite;
    transition: transform .28s ease, filter .28s ease;
}

.header-logo:hover img {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.18) contrast(1.15) drop-shadow(0 6px 14px rgba(0, 0, 0, .42)) drop-shadow(0 0 18px rgba(168, 85, 247, .45));
}

.header-logo:hover a::before {
    opacity: .95;
    filter: blur(18px);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: brightness(1.1) contrast(1.1) drop-shadow(0 2px 6px rgba(0, 0, 0, .40));
    }

    50% {
        filter: brightness(1.16) contrast(1.14) drop-shadow(0 4px 10px rgba(160, 32, 240, .30));
    }
}

@keyframes logoAura {
    0%, 100% {
        transform: scale(0.96);
        opacity: .55;
    }

    50% {
        transform: scale(1.06);
        opacity: .9;
    }
}

.btn-contact, .price-box.active .th-btn {
    background: linear-gradient(45deg, #4a00e0, var(--theme-color), #c026d3, #4a00e0);
    background-size: 300% 300%;
    animation: purpleFlow 3s ease infinite;
    box-shadow: 0 4px 15px var(--theme-color);
    transition: transform 0.3s ease;
}

.price-box .offer-tag {
    background: linear-gradient(45deg, #4a00e0, var(--theme-color), #c026d3, #4a00e0);
    background-size: 300% 300%;
    animation: purpleFlow 3s ease infinite;
    transition: transform 0.3s ease;
}

.header-logo img {
    background-size: 300% 300%;
    animation: purpleFlow 3s ease infinite;
    transition: transform 0.3s ease;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.icon-phone {
    animation: shake 2s infinite;
}



@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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

@keyframes zoom {
    0% {
        transform: scale(0.9);
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
        background-position: 0% 50%;
    }

    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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

@-webkit-keyframes zoom {
    0% {
        transform: scale(0.9);
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
        background-position: 0% 50%;
    }

    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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


@keyframes purpleFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.language_header {
    position: relative;
    margin-right: 12px;
}

.language_dropdown_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16,16,22,0.1);
    border-radius: 999px;
    background: rgba(16,16,22,0.3);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 12px;
    min-height: 40px;
}

    .language_dropdown_button img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .language_dropdown_button i {
        font-size: 12px;
    }

.language_header.is-open .language_dropdown_button i {
    transform: rotate(180deg);
}

.h3-intro-home {
    font-size: 40px;
}

.language_menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 6px;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 50;
}

.language_header.is-open .language_menu {
    display: block;
}

.language_option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
}

    .language_option img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .language_option:hover, .language_option.is-active {
        background: #f3f4f6;
    }

.language_dropdown_button_mobile {
    min-height: 38px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
}

    .language_dropdown_button_mobile img {
        width: 40px;
        height: 40px;
    }

.language_menu_mobile {
    right: 0;
    min-width: 155px;
    z-index: 1200;
}

@media (max-width: 575.98px) {
    .language_dropdown_button_mobile span {
        /*display: none;*/
    }

    .language_dropdown_button_mobile {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header-layout2 .menu-area {
        padding: 0;
    }
}

.social-links {
}

    .social-links .icon_social_banner img {
        /* Bình thường: icon màu đen */
        object-fit: contain;
        /*filter: grayscale(100%) contrast(1) opacity(0.85);*/
        transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .social-links .icon_social_banner:hover {
        border: none;
        background: transparent;
        border-color: none;
    }

        .social-links .icon_social_banner:hover img {
            /* Hover: hiện màu mặc định */
            filter: none;
            transform: scale(1.05);
        }

.hero-2 .slider-controller {
    padding: 10px 100px;
    min-width: 890px;
}

.price-box .box-title {
    padding: 50px 28px;
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
    padding-bottom: 25px;
}

.price-box h5.box-subtitle {
    text-align: center;
    font-weight: bold;
}

.price-box .offer-tag {
    height: 40px;
    line-height: 40px;
}

/* Bang gia trang chu: can bang chieu cao card */
section.bg-smoke2 .row.gy-4.justify-content-center > [class*="col-"] {
    display: flex;
}

section.bg-smoke2 .row.gy-4.justify-content-center .price-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    section.bg-smoke2 .row.gy-4.justify-content-center .price-box .box-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    section.bg-smoke2 .row.gy-4.justify-content-center .price-box .available-list {
        flex: 1;
    }

    section.bg-smoke2 .row.gy-4.justify-content-center .price-box .th-btn {
        margin-top: auto;
    }

span.title-img {
    margin-top: 30px;
    display: block;
}

.footer-logo {
}

    .footer-logo img {
    }

.icon_social_banner_footer {
}

.footer-layout2.style2 .th-social a {
    background-color: transparent;
    color: var(--white-color);
}

.th-social a {
    display: inline-block;
    width: var(--icon-size, 40px);
    height: var(--icon-size, 40px);
    line-height: var(--icon-size, 0px);
    background-color: transparent;
    color: var(--title-color);
    font-size: 16px;
    text-align: center;
    margin-right: 8px;
    border-radius: 50%;
}

.icon_social_banner_footer img {
    height: 40px;
}

.hero-style2 .sub-title {
    font-weight: bold;
    font-size: 30px;
}

.hero-style2 .hero-title {
    text-transform: capitalize;
    margin-bottom: 20px;
    font-size: 70px;
    font-weight: bold;
}

.hero-style2 .hero-text {
    font-size: 23px;
}

#about-sec h3.h5 {
    font-weight: bold;
}

.text-white_ {
    font-size: 23px;
}

.blog-single.single-grid .blog-img {
    border-radius: 16px;
    margin-bottom: 32px;
}

/* Equal-height news cards + balanced thumbnails */
.th-blog-wrapper .row > [class*="col-"] {
    display: flex;
}
.th-blog-wrapper-service .row > [class*="col-"] {
    display: block;
}

.th-blog-wrapper .th-blog.blog-single.single-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.th-blog-wrapper .blog-single.single-grid .blog-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    height: 330px;
    margin-bottom: 24px;
}

.th-blog-wrapper .blog-single.single-grid .blog-img img {
    width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Home news section: enforce same image frame across all cards */
#blog-sec .blog-single.single-grid .blog-img,
#blog-sec .th-blog.blog-single.single-grid .blog-img,
#blog-sec .blog-grid .blog-img {
    height: 330px;
    overflow: hidden;
    border-radius: 16px;
}

#blog-sec .blog-single.single-grid .blog-img img,
#blog-sec .th-blog.blog-single.single-grid .blog-img img,
#blog-sec .blog-grid .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.th-blog-wrapper .blog-single.single-grid .blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.th-blog-wrapper .blog-single.single-grid .box-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(1.4em * 2);
}

.th-blog-wrapper .blog-single.single-grid .blog-content p {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

    .th-blog-wrapper .blog-single.single-grid .blog-content .th-btn {
        margin-top: auto;
        align-self: flex-start;
    }

.box-title {
    font-size: 25px;
    line-height: 1.4;
    text-transform: none;
    margin-top: -0.32em;
}

.th-btn {
    text-transform: none;
}

.th-pagination span, .th-pagination a {
    display: inline-block;
    text-align: center;
    position: relative;
    color: var(--white-color);
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #525252;
    border-radius: 50%;
    padding: 0 10px;
    z-index: 1;
    font-size: 15px;
    font-weight: normal;
}

#toc {
    /* background-color: #fdfdfd; */
    border-left: none;
    border-radius: 6px;
    /*font-family: 'Segoe UI', sans-serif;*/
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    #toc > h3 {
        font-size: 18px;
        margin-bottom: 12px;
        color: #fff;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    #toc ul {
        list-style: none;
        margin: 0;
        padding-left: 0;
    }

    #toc li {
        margin-bottom: 0px;
    }

        #toc li a {
            text-decoration: none;
            color: #fff;
            font-size: 15px;
            transition: all 0.2s ease-in-out;
            display: block;
            padding: 3px 8px;
            border-radius: 4px;
        }

    /* Cấp con lùi vào */
    #toc ul.toc-sub {
        margin-top: 2px;
        margin-left: 16px;
        border-left: 3px solid var(--theme-color);
        padding-left: 12px;
        border-radius: 6px;
    }

    #toc a:hover {
        color: #0056b3;
    }

/* Responsive */
@media (max-width: 768px) {
    #toc {
        padding: 12px 16px;
    }

        #toc > h3 {
            font-size: 16px;
        }

        #toc a {
            font-size: 14px;
        }
}

#article-content h1, #article-content h2, #article-content h3, #article-content h4, #article-content h5, #article-content h6 {
    color: inherit;
}

#article-content h1 {
    font-size: 30px;
    line-height: 1.35;
}

#article-content h2 {
    font-size: 26px;
    line-height: 1.35;
}

#article-content h3 {
    font-size: 22px;
    line-height: 1.4;
}

#article-content h4 {
    font-size: 20px;
    line-height: 1.4;
}

#article-content h5 {
    font-size: 18px;
    line-height: 1.45;
}

#article-content h6 {
    font-size: 16px;
    line-height: 1.45;
}

.breadcumb-menu li:after {
    color: #fff;
}

.color_white {
    color: #fff;
    text-transform: none;
}

wow-image {
    display: none;
}

div[data-hook] {
    display: none;
}

#article-content p, #article-content p span {
    color: #fff !important;
}

.breadcumb-title {
    font-weight: 500;
}

.contact-info a.icon_social_banner_footer {
    margin: 15px;
}

/* Mobile menu contact box */
.th-menu-wrapper .mobile-contact-box {
    margin: 16px 24px 28px;
    padding: 16px 14px;
    border: 1px solid rgba(148, 12, 232, 0.22);
    border-radius: 12px;
    background: #f9f7fb;
}

.th-menu-wrapper .mobile-contact-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #1f1f1f;
}

.th-menu-wrapper .mobile-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
}

.th-menu-wrapper .mobile-contact-item i {
    color: var(--theme-color);
    margin-top: 3px;
}

.th-menu-wrapper .mobile-contact-item a {
    color: #222;
}

.th-menu-wrapper .mobile-contact-actions {
    margin-top: 10px;
}

.th-menu-wrapper .mobile-contact-actions .th-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
}

.th-menu-wrapper .mobile-contact-socials {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.th-menu-wrapper .mobile-contact-social-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(148, 12, 232, 0.2);
}

.th-menu-wrapper .mobile-contact-social-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
}

.floating-contact-left {
    position: fixed;
    left: 20px !important;
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.floating-contact-item {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
    position: relative;
    z-index: 1;
    animation: floatingIconWiggle 4.2s ease-in-out infinite;
    transform-origin: center center;
}

/*.floating-contact-item::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.95), rgba(168, 85, 247, 0.95));
    z-index: -1;
    opacity: .95;
    animation: floatingRingPulse 2.8s ease-in-out infinite;
}*/

.floating-contact-item img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .floating-contact-left {
        left: 6px !important;
        top: auto !important;
        bottom: 6px !important;
        transform: none !important;
        gap: 8px;
    }

    .floating-contact-item,
    .floating-contact-item img {
        width: 50px;
        height: 50px;
    }

    .floating-contact-item::before {
        inset: -4px;
    }
}

.floating-contact-left .floating-contact-item:nth-child(2) {
    animation-delay: .2s;
}

.floating-contact-left .floating-contact-item:nth-child(3) {
    animation-delay: .35s;
}

.floating-contact-left .floating-contact-item:nth-child(4) {
    animation-delay: .5s;
}

.floating-contact-left .floating-contact-item:nth-child(5) {
    animation-delay: .65s;
}

@keyframes floatingIconWiggle {
    0%, 78%, 100% {
        transform: rotate(0deg) translateY(0);
    }

    82% {
        transform: rotate(-8deg) translateY(-1px);
    }

    86% {
        transform: rotate(8deg) translateY(0);
    }

    90% {
        transform: rotate(-6deg) translateY(-1px);
    }

    94% {
        transform: rotate(6deg) translateY(0);
    }
}

@keyframes floatingRingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .92;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Footer: keep 3 right columns on one row and avoid text overflow */
.footer-layout2.style2 .widget-area .col-lg-8 > .row {
    align-items: flex-start;
}

.footer-layout2.style2 .widget_nav_menu .menu li a {
    display: block;
}

@media (max-width: 1199px) {
    .th-blog-wrapper .blog-single.single-grid .blog-img {
        height: 300px;
    }

    #blog-sec .blog-single.single-grid .blog-img,
    #blog-sec .th-blog.blog-single.single-grid .blog-img,
    #blog-sec .blog-grid .blog-img {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .hero-2 #slider-webgl {
        display: none !important;
    }

    .hero-2 {
        min-height: 100vh;
    }

    .hero-2 .swiper,
    .hero-2 .swiper-wrapper,
    .hero-2 .swiper-slide {
        min-height: 100vh;
    }

    .hero-2 .swiper-slide {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero-2 #slider-webgl canvas {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .th-blog-wrapper .blog-single.single-grid .blog-img {
        height: 220px;
    }

    #blog-sec .blog-single.single-grid .blog-img,
    #blog-sec .th-blog.blog-single.single-grid .blog-img,
    #blog-sec .blog-grid .blog-img {
        height: 220px;
    }
}

.footer-layout2.style2 .widget_nav_menu .menu li {
    width: 100%;
}

    .footer-layout2.style2 .widget_nav_menu .menu li a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.footer-layout2.style2 .col-xl-8 .widget_nav_menu .menu li a {
    max-width: 100%;
}
.mobile-logo img{
    max-width:80%;
}

.float-contact .btn {
    animation-name: zoom;
    -webkit-animation-name: zoom;
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
    animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    cursor: pointer;
    box-shadow: 0 0 0 0 var(--theme-color);
    padding: 0;
    background: linear-gradient(90deg, #4a00e0, var(--theme-color), #c026d3, #4a00e0);
    background-size: 300% 300%;
    transition: transform 1.5s ease;
}

    .float-contact .btn .svg-icon {
        transition: transform 0.3s ease;
    }

    .float-contact .btn:hover > .svg-icon {
        transform: scale(1.2);
    }
/* Floating contact: one toggle button + expandable items */
#floatingContactLeft .floating-contact-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    margin-bottom: 8px;
    /*background: linear-gradient(135deg, #6d28d9, #a855f7);
    box-shadow: 0 8px 18px rgba(0,0,0,.22);*/
}

    #floatingContactLeft .floating-contact-toggle i {
        font-size: 24px;
    }

#floatingContactLeft .floating-contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    pointer-events: none;
}

#floatingContactLeft.is-open .floating-contact-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#floatingContactLeft .floating-contact-hotline {
    color: #fff;
}

    #floatingContactLeft .floating-contact-hotline i {
        font-size: 22px;
    }

@keyframes purpleFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hiệu ứng rung nhẹ cho icon để thu hút chú ý */
@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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

@keyframes zoom {
    0% {
        transform: scale(0.9);
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
        background-position: 0% 50%;
    }

    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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

@-webkit-keyframes zoom {
    0% {
        transform: scale(0.9);
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
        background-position: 0% 50%;
    }

    0%, 100% {
        transform: rotate(0deg);
    }

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

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

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