/*
Theme Name:   Ẩm Thực Ba Miên
Theme URI:    https://ttq.io.vn/
Description:  Giao diện con cho theme TTQ.
Author:       TTQ
Author URI:   https://ttq.io.vn/
Template:     blocksy
Version:      1.0.0
Text Domain:  
*/

/* Bắt đầu các kiểu CSS riêng cho child theme */
@font-face {
    font-family: "iCielBC Downtown";
    src: url("../fonts/icielbc-downtown/iCielBCDowntown.woff2") format("woff2"), url("../fonts/icielbc-downtown/iCielBCDowntown.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Regular 400 */
@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/sf-pro-display/SFProDisplay-Regular.woff2") format("woff2"), url("../fonts/sf-pro-display/SFProDisplay-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium 500 */
@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/sf-pro-display/SFProDisplay-Medium.woff2") format("woff2"), url("../fonts/sf-pro-display/SFProDisplay-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Semibold 600 */
@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/sf-pro-display/SFProDisplay-Semibold.woff2") format("woff2"), url("../fonts/sf-pro-display/SFProDisplay-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold 700 */
@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/sf-pro-display/SFProDisplay-Bold.woff2") format("woff2"), url("../fonts/sf-pro-display/SFProDisplay-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

#main:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/noise-black.png');
    background-size: 500px;
    opacity: 0.5;
    z-index: -1;
}

.heading-title {
    position: relative;
}

.heading-title h2 {
    position: relative;
    z-index: 12;
    color: var(--theme-palette-color-1);
}

.heading-title:after {
    content: '';
    width: 320px;
    height: 100%;
    left: 50%;
    bottom: -38%;
    background-image: url('../images/bottom-title.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    position: absolute;
    transform: translate(-50%, 0);
    z-index: 1;
}

.section-about {
    position: relative;
    z-index: 2;
}

.section-about:before {
    content: '' !important;
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/noise-black.png') !important;
    background-size: 500px !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
}

.section-about:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-about.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-text h2 {
    color: var(--theme-palette-color-1);
    font-size: 2rem;
}

.about-text h3 {
    color: var(--theme-palette-color-1);
    font-size: 1.2rem;
}

.about-text p {
    margin-bottom: 5px;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
}

.section-about {
    position: relative;
    z-index: 2;
}

.am-thuc-item {
    padding-left: 20px;
    padding-right: 20px;
}

.am-thuc-item .elementor-image-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.am-thuc-item .elementor-image-box-wrapper .elementor-image-box-img {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 15px !important;
}

.am-thuc-item:nth-child(even) .elementor-image-box-wrapper {
    flex-direction: column-reverse;
}

.am-thuc-item:nth-child(even) .elementor-image-box-wrapper .elementor-image-box-img {
    padding-bottom: 0 !important;
    padding-top: 15px !important;
}

.am-thuc-item .elementor-image-box-content h3 {
    font-size: 28px;
    color: var(--theme-palette-color-1);
    margin-bottom: 0;
    line-height: 1.2;
}

.section-khong-gian {
    position: relative;
    z-index: 2;
}

.section-khong-gian:before {
    content: '' !important;
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/noise-black.png') !important;
    background-size: 500px !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
}

.section-khong-gian:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-khong-gian.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
}

.section-khong-gian .swiper-wrapper {
    align-items: flex-end;
}

.kg-img img {
    width: 90%;
}

.kg-img.kg-img-100 img {
    width: 100%;
}

.form-dat-ban input.btn-more,
.form-dat-ban .form-dat-ban-submit input.btn-more,
.btn-more a {
    background-color: transparent !important;
    background-image: url('../images/btn-submit.png') !important;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 2rem;
    padding: 15px 40px 15px 30px;
    color: #e4ccac !important;
    transition: all 0.25s;
    margin: auto;
    display: block;
    font-family: iCielBC Downtown;
    width: fit-content;
}

.e-con.e-parent:nth-of-type(n+2) .form-dat-ban input.btn-more {
    background-image: url('../images/btn-submit.png') !important;
}

.xdsoft_datetimepicker {
    z-index: 99999999;
}

.truyen-thong-item .ekit-video-gallery-wrapper {
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
}

.section-review {
    position: relative;
    z-index: 2;
}

.section-review:before {
    content: '' !important;
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/noise-black.png') !important;
    background-size: 500px !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
}

.section-review:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-khong-gian.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
}

.review-list .elementskit-single-testimonial-slider {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.review-list .elementskit-single-testimonial-slider > * {
    width: 100%;
}

.review-list .elementskit-single-testimonial-slider .elementskit-commentor-content {
    position: relative;
    z-index: 2;
    background-color: transparent;
    text-align: center;
    -webkit-transition-duration: 500ms;
    transition-duration: 500ms;
    max-width: 600px;
    margin: 1rem auto;
}

.review-list .elementskit-single-testimonial-slider .elementskit-commentor-content p {
    margin-bottom: 0px !important;
}

.review-list .elementskit-single-testimonial-slider .elementskit-profile-info {
    order: 3;
}

.review-list .elementskit-single-testimonial-slider .elementskit-profile-info .elementskit-author-name {
    color: var(--theme-palette-color-1);
    font-family: iCielBC Downtown;
    font-size: 24px;
}

/* Footer */
.social-footer [data-icons-type*=":"] .ct-icon-container {
    width: 40px;
    height: 40px;
}

.section-breadcrumb {
    position: relative;
    z-index: 2;
}

.section-breadcrumb:before {
    content: '' !important;
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../images/noise-black.png') !important;
    background-size: 500px !important;
    opacity: 0.5 !important;
    z-index: -1 !important;
}

.section-breadcrumb:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 237, 233, 0.7);
    z-index: 9;
}

.section-breadcrumb .heading-title h2 {
    font-size: 50px;
}

.gallery-nha-hang .elementor-image-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px;
    gap: 12px;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-icon,
.gallery-nha-hang .elementor-image-gallery .gallery .square_thumbnail,
.gallery-nha-hang .elementor-image-gallery .gallery .img_centered {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-nha-hang .elementor-image-gallery .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 5;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 3;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4),
.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 4;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(6),
.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 3;
}

.gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(n+8) {
    grid-column: span 1;
    grid-row: span 1;
}

.form-dat-ban .wpcf7-form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff !important;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-height: 45px;
    padding: .5rem 1rem;
    font-size: 1.2rem;
}

.row-form > *:nth-child(1) {
    padding-right: 0.75rem;
}

.row-form > *:nth-child(2) {
    padding-left: 0.75rem;
}

.form-dat-ban > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.my-2 {
    margin-top: .5rem !important;
    margin-bottom: .5rem !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.form-dat-ban .form-dat-ban-submit,
.form-dat-ban .form-dat-ban-submit p {
    margin: auto;
}

.form-dat-ban .wpcf7-spinner {
    display: none;
}

.form-dat-ban,
.form-dat-ban .row-form {
    display: flex;
    flex-wrap: wrap;
}

.form-dat-ban .title-form {
    width: 100%
}

.form-12 {
    flex: 0 0 auto;
    width: 100%;
}

.form-6 {
    flex: 0 0 auto;
    width: 50%;
}

@media (min-width:768px) {
    .form-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .form-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .form-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .form-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

}

/*Nút Contact*/
.contact-fixed {
    position: fixed;
    bottom: 85px;
    right: 15px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    gap: 25px;
}

.contact-fixed a {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-fixed img {
    width: 40px;
    height: 40px;
}

.contact-fixed a span {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #ff2147;
    color: #fff;
    height: 40px;
    min-width: 120px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-fixed a.zalo-btn span {
    background: #0084ff;
}

.contact-fixed a:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.contact-fixed a span::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ff2147;
}

.contact-fixed a.zalo-btn span::after {
    border-color: transparent transparent transparent #0084ff;
}

.hotline-btn::before,
.hotline-btn::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(229, 57, 53, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: wave 2s infinite;
}

.hotline-btn::after {
    animation-delay: 1s;
}

@keyframes oscillate-rotation {
    0% {
        transform: rotate(0) scale(1) skew(0deg);
    }

    10% {
        transform: rotate(-25deg) scale(1) skew(0deg);
    }

    20% {
        transform: rotate(25deg) scale(1) skew(0deg);
    }

    30% {
        transform: rotate(-25deg) scale(1) skew(0deg);
    }

    40% {
        transform: rotate(25deg) scale(1) skew(0deg);
    }

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

    100% {
        transform: rotate(0) scale(1) skew(0deg);
    }

}

.hotline-btn img {
    box-sizing: border-box;
    animation: oscillate-rotation 1s infinite ease-in-out;
    transform-origin: 50% 50%;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }

}

.contact-fixed a.zalo-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 132, 255, 0.4);
    animation: pulse 1.8s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}

.zalo-btn::before {
    background: rgba(229, 57, 53, 0.4);
}

@media screen and (max-width:992px) {
    .gallery-nha-hang .elementor-image-gallery .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+1),
    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+2) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+3),
    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .section-am-thuc .e-con-inner {
        width: 100%;
    }

    .am-thuc-item {
        padding-left: 0px;
        padding-right: 0px;
    }

    .am-thuc-item .elementor-image-box-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .am-thuc-item .elementor-image-box-content h3 {
        font-size: 24px;
    }

    .am-thuc-item .elementor-image-box-wrapper .elementor-image-box-img {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 15px !important;
    }

}

@media screen and (max-width:767.98px) {
    .am-thuc-item {
        padding-left: 0;
        padding-right: 0;
    }

    .am-thuc-item .elementor-image-box-content h3 {
        font-size: 20px;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 100px; /* base row */
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+1),
    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+2) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+3),
    .gallery-nha-hang .elementor-image-gallery .gallery .wpmf-gallery-item:nth-child(4n+4) {
        grid-column: span 1;
        grid-row: span 1;
    }

}
