:root {
    --contact-child-level-2-bg: #F6F6F6;
    --editor-a-color: rgb(46, 117, 181);
}


html,
body {
    font-family: 'Roboto', sans-serif;
}

/* Hover icon red */
.filter-red {
    transition: filter 0.25s ease;
    cursor: pointer;
}

.filter-red:hover,
.menu-trigger.active img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(94%) saturate(5250%) hue-rotate(351deg) brightness(89%) contrast(86%);
}

/* Dấu gạch ngang dưới mỗi header section */
.section-divider {
    height: 1px;
    background-color: #6D6D6D;
}

/* HEADER */
/* dùng chung transition*/
.header,
.menu-panel {
    transition: transform 0.25s ease-out;
    will-change: transform;
}

/* khi header ẩn */
body.header-hidden .header {
    transform: translateY(-100px);
}

/* chỉ panel đang mở mới đi theo */
body.header-hidden .menu-panel.is-open {
    transform: translateY(-515px);
}


/* Overlay khi menu panel mở */

body.sub-header-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 40;
}

body.overlay-sp {
    overflow: hidden;
}

body.overlay-sp::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

@media (max-width: 1023px) {
    .menu-panel {
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.35s ease;
    }

    .menu-panel.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .menu-panel[data-panel="0"].is-open.is-child {
        transform: translateX(-100%);
    }

    a {
        transition: color 0.1s ease;
    }

    li a:hover {
        color: #D52128;
    }

    .add-overlay.active::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 100;
    }

    .related-links .group:hover .related-btn {
        background-color: #D52128;
    }
}

@media (min-width: 1024px) {
    .menu-panel {
        overflow: hidden;
        height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .menu-panel.is-open {
        pointer-events: auto;
        animation: slideDown 0.35s linear 0.05s forwards;
    }

    @keyframes slideDown {
        0% {
            height: 0;
            opacity: 0;
        }

        20% {
            opacity: 1;
        }

        100% {
            height: var(--panel-height);
            opacity: 1;
        }
    }
}


/* CONTACT */

/* Hover label → đổi màu icon */
.group:hover .icon-radio {
    filter: brightness(0) saturate(100%) invert(16%) sepia(94%) saturate(5250%) hue-rotate(351deg) brightness(89%) contrast(86%);
}

/* Radio checked → đổi màu icon */
.peer:checked~img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(94%) saturate(5250%) hue-rotate(351deg) brightness(89%) contrast(86%);
}


.inquiry-radio::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #D52128;
    border-radius: 999px;
    transform: scale(0.6);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.peer:checked+.inquiry-radio::before {
    opacity: 1;
    transform: scale(0.6);
}

.inquiry-panel .inquiry-checkbox::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/icon-checkbox-red.08c64764240b.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}


.inquiry-panel .peer:checked+.inquiry-checkbox::before {
    opacity: 1;
}


.contact-child-lv2 {
    font-weight: 500;
    background-color: var(--contact-child-level-2-bg);
    padding: 5px;
    border-radius: 4px;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
    /* Đảm bảo nội dung không bị trượt */
}

.video-content-wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
        padding-right: 0;
}

@media (min-width: 1024px) {
    .video-content-wrapper{
        padding-left: 108px;
        padding-right: 108px;
    }
}
.video-content {
    position: relative;
}

.video-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-card .product-description>* {
    display: inline;
}

.project-card .project-card-image>.desktop-img {
    filter: grayscale(1);
}

.project-card:hover .project-card-image>.desktop-img {
    filter: grayscale(0);
}


.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.editor-content h2{
    font-size: 1.875rem;
}

.editor-content h3 {
    font-size: 1.5rem;
}

.editor-content h4 {
    font-size: 1.25rem;
}

.editor-content ul {
    list-style-type: disc;
    /* Dấu chấm tròn */
    padding-left: 2.5rem;
    /* Khoảng trống để hiện bullet */
}

.editor-content ul li {
    line-height: 1.6;
    /* Độ cao dòng để dễ đọc */
}

.editor-content ol {
    list-style-type: decimal;
    /* Dấu chấm tròn */
    padding-left: 2.5rem;
    /* Khoảng trống để hiện bullet */
}

.editor-content ol li {
  line-height: 1.6;       /* Độ cao dòng để dễ đọc */
}

.editor-content .responsive-object{
    position: relative;
}

.editor-content iframe {
    padding-left: 0;
    padding-right: 0;
    position: absolute;
    width: 100%;
    aspect-ratio: 16/9;
    top: 0;
    left: 0;
    height: 100%;
}

.editor-content .richtext-image.left{
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.editor-content .richtext-image.right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.editor-content .richtext-image.full-width {
    display: block;
    width: 100%;
}

.editor-content::after{
    content: "";
    display: table;
    clear: both;
}

.editor-content a{
    color: var(--editor-a-color);
}


@media (min-width: 1024px) {
    .editor-content iframe {
        padding-left: 108px;
        padding-right: 108px;
    }
}



.ios #contact-form {
    overflow-x: hidden;

    input {
        height: 47.45px;
    }

    textarea {
        height: 120px;
    }

    div>img+input {
        height: 27px;
        border-color: transparent;
    }

    input,
    textarea {
        width: 133%;
        border-width: 1px;
        font-size: 16px;
        transform: scale(0.75);
        transform-origin: left center;
    }

}

#fab-menu {
    display: none;
    .btn {
        opacity: 0;
        pointer-events: none;
    }

    .btn:nth-child(1) {
        transform: translateY(190px);
    }

    .btn:nth-child(2) {
        transform: translateY(30px);
    }

    .btn:nth-child(3) {
        transform: translateY(40px);
    }

    .btn:nth-child(4) {
        transform: translateY(15px);
        -webkit-transform: translateY(15px);
        -moz-transform: translateY(15px);
        -ms-transform: translateY(15px);
        -o-transform: translateY(15px);
}

    &.open {
        display: flex;

        .btn {
            pointer-events: auto;
        }

        .btn:nth-child(1) {
            animation: fabUp 0.3s ease forwards;
        }

        .btn:nth-child(2) {
            animation: fabUp2 0.18s ease forwards;
            animation-delay: 0.2s;
        }

        .btn:nth-child(3) {
            animation: fabUp2 0.2s ease forwards;
            animation-delay: 0.18s;
        }

        .btn:nth-child(4) {
            animation: fabUp2 0.15s ease forwards;
            animation-delay: 0.15s;
        }
    }
}

@keyframes fabUp {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fabUp2 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#phone-overlay.overlay-show {
    opacity: 1;
    pointer-events: auto;
}

#phone-popup {
    transition: top 0.35s ease;
}

#phone-popup.popup-show {
    top: 50%;
}

#fab-label::after{
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    right: -1px;
    background: black;
}