/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme của Astra
Author: Webtop
Template: astra
Version: 1.0
*/

#ast-scroll-top {
    background-color: green !important;
}

.wt-whitespace-nowrap>*:first-child {
    white-space: nowrap !important;
}

/* section hình ảnh trang chủ */
.wt-padding-left-1212px {
    padding-left: max(12px, calc((100vw - 1212px) / 2)) !important;
}


.wt-h-full {
    height: 100% !important;
}

/* Form Năng Lực */
.wt-form-nang-luc form,
.wt-form-nang-luc .uagb-forms-main-form {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

.wt-form-nang-luc .uagb-forms-field-set {
    margin-bottom: 0 !important;
    min-width: 0 !important;
}

.wt-form-nang-luc .uagb-forms-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wt-form-nang-luc .uagb-forms-input::placeholder,
.wt-form-nang-luc .uagb-forms-input::-webkit-input-placeholder {
    font-size: 14px;
    text-overflow: ellipsis;
}

.wt-form-nang-luc .wp-block-uagb-forms-textarea,
.wt-form-nang-luc .uagb-forms-main-submit-button-wrap,
.wt-form-nang-luc .uagb-forms-form-hidden-data,
.wt-form-nang-luc [class*="uagb-form-reacaptcha"] {
    grid-column: 1 / -1 !important;
}

.wt-form-nang-luc .uagb-forms-main-submit-button-wrap {
    margin-top: 14px !important;
    /* 16px (gap) + 14px = 30px */
    margin-bottom: 0 !important;
}

.wt-form-nang-luc .uagb-forms-main-submit-button {
    width: 100% !important;
    justify-content: center !important;
}

@media (max-width: 991px) {

    .wt-form-nang-luc form,
    .wt-form-nang-luc .uagb-forms-main-form {
        grid-template-columns: 1fr !important;
    }
}

.wt-h-button-full,
.wt-h-button-full div,
.wt-h-button-full a {
    height: 100% !important;
}

@media (max-width: 1199px) {

    .wt-h-button-full,
    .wt-h-button-full div,
    .wt-h-button-full a {
        height: auto !important;
    }
}


/* form trang liên hệ */
.wt-form-lien-he form.uagb-forms-main-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.wt-form-lien-he .uagb-forms-form-hidden-data,
.wt-form-lien-he [class*="uagb-form-reacaptcha-error"] {
    display: none !important;
}

.wt-form-lien-he .wp-block-button {
    margin-top: 10px !important;
    /* Cộng thêm 10px với 30px gap của grid để thành 40px */
}

.wt-form-lien-he button {
    justify-content: center !important;
}

/* Google Map Full Height */
.wp-block-uagb-container:has(> .wt-google-map),
.wt-google-map {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.wt-google-map embed,
.wt-google-map iframe {
    width: 100% !important;
    height: 100% !important;
    flex-grow: 1 !important;
    border-radius: 40px !important;
    min-height: 300px !important;
}

.wt-google-map-contact.wt-google-map embed,
.wt-google-map-contact.wt-google-map iframe {
    border-radius: 0 30px 30px 0 !important;
}


@media (max-width: 767px) {

    .wt-google-map embed,
    .wt-google-map iframe {
        border-radius: 30px !important;
    }

    .wt-form-gg-map.wt-google-map embed,
    .wt-form-gg-map.wt-google-map iframe {
        border-radius: 0 0 30px 30px !important;
    }
}

@media (min-width: 768px) {
    .wt-form-lien-he form.uagb-forms-main-form {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Dòng đầu (Họ và tên) chiếm hết 2 cột */
    .wt-form-lien-he .wp-block-uagb-forms-name {
        grid-column: span 2;
    }

    /* Dòng cuối (Nội dung) chiếm hết 2 cột */
    .wt-form-lien-he .wp-block-uagb-forms-textarea {
        grid-column: span 2;
    }

    /* Button chiếm hết 2 cột */
    .wt-form-lien-he .uagb-forms-main-submit-button-wrap {
        grid-column: span 2;
    }
}

.wt-img-thong-diep {
    width: 78% !important;
}

.wt-img-thong-diep img {
    height: 100% !important;
}

@media (max-width: 977px) {
    .wt-img-thong-diep {
        width: 100% !important;
    }
}



.wt-h-img-full img {
    height: 100% !important;
}


.wt-streach-button-h .uagb-buttons__wrap {
    display: flex;
    align-items: stretch;
}

.wt-streach-button-h .wp-block-button,
.wt-streach-button-h .uagb-button__wrapper {
    display: flex;
    height: auto;
}

.wt-streach-button-h .uagb-buttons-repeater.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
}

@media (max-width: 1115px) {

    .wt-streach-button-h .wp-block-button,
    .wt-streach-button-h .uagb-button__wrapper {
        width: 100%;
    }
}

.wt-w-img-full figure,
.wt-w-img-full img{
	width:100% !important;
}

.wt-img-h-center figure{
	justify-content:center !important;
}


.wt-aspect-16-9 img {
    aspect-ratio: 16 / 6;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 977px) {
    .wt-aspect-16-9 img {
        aspect-ratio: 16 / 11;
    }
	.wt-button-about .uagb-buttons__wrap.uagb-buttons-layout-wrap 
	.wp-block-uagb-buttons-child:first-child {
		display: none;
	}
	
	.wt-button-about .uagb-buttons__wrap > .wp-block-uagb-buttons-child:nth-child(2) {
		width: 100%;
	}
}

@media (max-width: 767px) {
    .wt-tab-button-service div.uagb-buttons__wrap {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

.wt-title-home-img{
	max-width:1212px !important;
}

@media (max-width: 430px) {
    .wt-title-home-img{
		max-width:295px !important;
		margin-left:auto !important;
		margin-right:auto !important;
	}

}

.wt-img-16-9 img{
	width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
}

.wt-img-5-3 img{
	width: 100% !important;
    aspect-ratio: 5 / 3 !important;
    object-fit: cover !important;
    display: block !important;
}

.wt-img-707-353 img{
	width: 100% !important;
    aspect-ratio: 707 / 353 !important;
    object-fit: cover !important;
    display: block !important;
}

.wt-img-6-5 img{
	width: 100% !important;
    aspect-ratio: 6 / 5 !important;
    object-fit: cover !important;
    display: block !important;
}