/*
Theme Name: Trần Hiệp Web
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Trần Hiệp Web
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: tranhiepweb
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


body {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-rendering: optimizeSpeed;
}

.max_line_1 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_2,
.max_line_2 a,
.max_line_2 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_3,
.max_line_3 a,
.max_line_3 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}


.cta .elementor-button-icon svg {
    width: 20px;
    height: 20px;
}


.cta .elementor-button-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-hover.elementor-button-icon {
    transition: transform 0.3s ease;
}

.cta-hover .elementor-button:hover .elementor-button-icon {
    transform: translateX(6px);
}



.my_img_animation {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.my_img_animation img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tạo vệt sáng nghiêng */
.my_img_animation::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-20deg);
    pointer-events: none;
}


.my_img_animation:hover::after {
    animation: shine-once 0.8s forwards;
}

@keyframes shine-once {
    from {
        left: -75%;
    }

    to {
        left: 125%;
    }
}


.vertical-menu .has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vertical-menu .elementor-nav-menu--dropdown {
    min-width: 250px !important;
    width: max-content !important;
}

.rank-math-breadcrumb span,
.rank-math-breadcrumb a {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.3em;
}

.rank-math-breadcrumb a {
    color: #272727;
}

.rank-math-breadcrumb .separator {
    color: #272727;
    margin: 0 8px;
}

.rank-math-breadcrumb span.last {
    color: #BC832C;
}





.devvn-subcat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.devvn-subcat-item {
    text-align: center;
    border: 1px solid #fff;
    padding: 16px;
    transition: 0.3s;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.devvn-subcat-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #D9A748;
}

.devvn-subcat-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
}

.devvn-subcat-item h3 {
    margin: 0;

    font-family: "Be Vietnam Pro", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3em;
    color: #272727;
}

.devvn-subcat-item:hover h3 {
    color: #D9A748;
}



.desc-danh-muc {
    position: relative;
}


.desc-danh-muc .desc-content {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}


.desc-danh-muc .desc-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}


.desc-danh-muc.active .desc-content {
    max-height: 5000px;
}

.desc-danh-muc.active .desc-content::after {
    display: none;
}


.btn-toggle-desc {
    display: block;
    margin: 20px auto 0;
    padding: 10px 25px;
    border: 1px solid #D9A748;
    background: #fff;
    color: #D9A748;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;

    font-family: "Be Vietnam Pro", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3em;
}

.btn-toggle-desc:hover,
.btn-toggle-desc:focus {
    background: #D9A748;
    color: #fff;
}


.desc-danh-muc.active .arrow {
    transform: rotate(180deg);
    display: inline-block;
}


.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    content: '';
    position: absolute;
    background-image: url("assets/images/arrow_bottom.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    color: #f29200;
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
    transform: rotate(180deg);
}

.progress-wrap:hover::before {
    opacity: 1;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: #f29200;
    /* --- Lijn progres kleur --- */
    stroke-width: 4;
    box-sizing: border-box;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}
.custom-gallery {
    max-width: 700px;
}

.main-swiper img {
    width: 100%;
}

.thumb-swiper {
    margin-top: 10px;
}

.thumb-swiper img {
    cursor: pointer;
}


.play-button {
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color:#fff;
}

.custom-gallery .swiper-slide {
    aspect-ratio: 1/1;
    width: 100%;
    overflow: hidden;
}
.main-swiper {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}



.custom-gallery img,
.custom-gallery iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1/1;
}


.img-wrapper{
    width: 100%;
    height: 100%;
    position: relative;
}
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    font-size: 50px;
    color: #fff;
    pointer-events: none;
}
.custom-gallery .swiper-button-next svg, .custom-gallery .swiper-button-prev svg {
    width: 20px;
    height: 20px;
}
/* ===== NAV ARROWS ===== */
.custom-gallery .swiper-button-next,
.custom-gallery .swiper-button-prev {
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-gallery .main-swiper:hover .swiper-button-next,
.custom-gallery .main-swiper:hover .swiper-button-prev {
    opacity: 1;
}


.custom-gallery .swiper-button-next,
.custom-gallery .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.custom-gallery .swiper-button-next:after,
.custom-gallery .swiper-button-prev:after {
    font-size: 16px;
}

/* hover arrow */
.custom-gallery .swiper-button-next:hover,
.custom-gallery .swiper-button-prev:hover {
    background: #000;
    color: #fff;
}



@media screen and (max-width: 1550px) {

    .rank-math-breadcrumb span,
    .rank-math-breadcrumb a {
        font-size: 18px;
    }

    .devvn-subcat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}



@media screen and (max-width: 1110px) {

    .rank-math-breadcrumb span,
    .rank-math-breadcrumb a {
        font-size: 14px;
    }

    .devvn-subcat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-toggle-desc {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .devvn-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .devvn-subcat-item {
        padding: 10px;
    }

    .devvn-subcat-item h3 {
        font-size: 14px;
    }

    .devvn-subcat-grid {
        gap: 16px;
    }
}