/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Child theme cho Hello Elementor
 Author:       369
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

body.single .site-main{
    max-width: 100% !important;
}

body.single .container, body.category .container, .blog .container, .archive .container{
    position: relative;
    z-index: 3;
    width:100%;
	max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.z-hero-section{
    position: relative;
    padding: 48px 0;
}

.z-hero-section .z-hero-section__bg, .z-hero-section .z-hero-section__bg img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.z-hero-section h1{
    max-width: 80%;
    color: #fff;
    line-height: 1.2;
    margin: 24px 0;
    font-size: 30px;
    font-family: var(--e-global-typography-primary-font-family), serif;
    letter-spacing: 0.15em;
}


.hero-breadcrumb{
    display: flex;
    align-items: center;
    gap:10px;
}

.hero-breadcrumb > svg{
    width: 100%;
    height: auto;
    max-width: 18px;
    /* margin-top: -6px; */
}

.z-breadcrumb ul{
    display: flex;
	font-size: 12px;
    align-items: center;
    padding: 0;
    gap: 3px;
    margin: 0;
}

.z-breadcrumb ul li, .z-breadcrumb ul{
    list-style-type: none !important;
    list-style: none !important;
}

.z-breadcrumb ul li, .z-breadcrumb ul li a{
    color:#fff;
    letter-spacing: 0.2em;
}

.z-breadcrumb > ol > li::marker {
  content: "" !important;
}

/* .z-breadcrumb ul li a{
    text-decoration: underline;
} */


.z-hero-section-meta{
    display: flex;
    align-items: center;
    gap: 20px;
}

.z-hero-section-meta > div{
    display: flex;
    align-items: center;
    color:#fff;
    gap: 5px;
    font-size: 12px;
    letter-spacing: 0.15em;
}

.z-hero-section-meta > div svg path{
    fill:#fff;
}

.z-hero-section-meta > div svg{
    width: 100%;
    height: auto;
    max-width: 18px;
    min-width: 18px;
}


.z-content-section-inner{
    display: flex;
    justify-content: space-between;
    gap:48px;
}

.z-content-section__content{
    width: 68%;
}

.z-content-section__sidebar{
    width: 32%;
}

.z-content-section__sidebar .sidebar-item{
    background: #f1f7ff;
    padding: 24px;
    border-radius: 10px;
}

.z-content-section__sidebar .sidebar-item:not(:last-child){
    margin-bottom: 24px;
}

.z-content-section__sidebar .sidebar-item > h3{
    font-size: 18px;
    line-height: 1.1;
    color: #044098;
    margin: 0 0 20px 0;
	font-weight: bold;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 3px;
}

.z-content-section__sidebar .sidebar-item > h3 svg{
    width: 100%;
    height: auto;
    max-width: 21px;
}

.z-posts-related .item-post{
    display: flex;
    align-items: center;
    gap: 10px;
}

.z-content-section .z-post__thumbnail{
    display: flex;
    width: 100%;
    height: auto;
    position: relative;
    padding-bottom: 55.65%;
}

.z-content-section .z-post__thumbnail img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.z-posts-related .item-post:not(:last-child){
    margin-bottom: 24px;
}

.z-posts-related img{
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;    
    object-position: center;
}

.z-posts-related .item-post h4{
    font-size: 14px;
    font-weight: 600;
    color:#044098;
    margin: 0;
    letter-spacing: 0.15em;
}

.z-posts-related .item-post h4 a{
    color: inherit;
}

.z-posts-related .item-post__date{
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    margin: 4px 0 0 0;
    letter-spacing: 0.1em;
}

.z-posts-related .item-post__date svg path{
    fill: #044098;
}

.z-list-posts-time{
    margin: 0;
    padding: 0;
}

.z-list-posts-time li{
    list-style-type: none;
}

.z-list-posts-time li a{
    color:#044098;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.z-list-posts-time li:not(:last-child){
    margin-bottom: 10px;
}

.z-list-posts-time__btn{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.z-list-posts-time__btn > a{
    background-color: var(--e-global-color-accent);
    font-family: var(--e-global-typography-accent-font-family), serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    color: #FFFFFF;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: var(--e-global-color-primary);
    border-radius: 25px 25px 25px 25px;
    padding: 10px 35px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.z-list-posts-time__btn > a:hover{
    background-color: #FFFFFF;
    color: var(--e-global-color-primary);
}

.z-content-section{
    padding-top: 32px;
    padding-bottom: 120px;
}

.archive .z-content-section{
    padding-bottom: 60px;
}

body.single  .z-post__content{
    margin-top: 40px;
}

body.single  .z-post__content p:last-child{
    margin-bottom: 0;
}


.list-post-category .item-post{
    display: flex;
    gap: 24px;
}

.list-post-category .item-post:not(:last-child){
    margin-bottom: 24px;
}


.list-post-category .item-post img{
    width: 250px;
    height: 120px;
    min-width: 250px;
    object-fit: cover;
}

.list-post-category .item-post__content h4{
    color:#044098;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.elementor-widget-cew-post-grid .cew-card .cew-post-title{
    letter-spacing: 0.11em;
}

.list-post-category .item-post__content h4 > a{
    color:inherit
}

.list-post-category .item-post-meta{
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 20px;
}

.list-post-category .item-post-meta > div{
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    gap:2px;
    letter-spacing: 0.1em;
}

.elementor-widget-cew-post-grid .cew-card .cew-meta > span, .elementor-widget-cew-post-grid .cew-card .cew-meta > span > a{
    letter-spacing: 0.1em;
	font-size: 12px;
}

.list-post-category .item-post-meta > div svg path{
    fill:#044098;
}

.z-pagination {
    margin-top: 60px;
    padding-left: 32px;
}

.z-pagination .pagination h2{
    display: none;
}

.z-pagination  .pagination{
    justify-content: start;
    margin: 0;
}

.pagination  .nav-links{
    display: flex;
    align-items: center;
    gap:16px;
}

.pagination .page-numbers {
    background: #f7f7f7;
    width: 40px;
    height: 40px;
    color: var(--e-global-color-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.pagination .page-numbers.current, .pagination .page-numbers:hover{
    background: #f1f7ff;
    color: #044098;
}

.pagination .page-numbers.next, .pagination .page-numbers.prev{
    width: auto;
    padding: 0 40px;
}

.cat-section .section-title{
    font-size: 22px;
    color: #044098;
    margin: 0;
    letter-spacing: 0.2em;
}

.cat-section .section-title a{
    display: flex;
    align-items: center;
    color:inherit;
    gap:2px;
}

.cat-section .section-title  svg path{
    fill:#044098;
}

.cat-section .section-title  svg{
    width: 100%;
    height: auto;
    max-width: 23px;
}

.cat-section .post-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
    margin-top: 24px;
}

.z-content-section .cat-section:not(:last-child){
    margin-bottom: 60px;
}


.cat-section .btn a{
    background-color: var(--e-global-color-accent);
    font-family: var(--e-global-typography-accent-font-family), serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    color: #FFFFFF;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: var(--e-global-color-primary);
    border-radius: 25px 25px 25px 25px;
    padding: 10px 35px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cat-section .btn a:hover{
    background-color: #FFFFFF;
    color: var(--e-global-color-primary);
}

.cat-section .btn{
    display: flex;
    align-items: center;
    margin-top: 32px;
    justify-content: center;
}

.cat-section .post-grid .item-post a.thumb{
    display: flex;
    width: 100%;
    min-height: 150px;
    position: relative;
}

.cat-section .post-grid .item-post a.thumb img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top:0;
    object-fit: cover;
    object-position: center;
}

.cat-section .post-grid .item-post h3{
    font-size: 14px;
    color: #044098;
    margin: 10px 0 0 0;
    letter-spacing: 0.2em;
}

.cat-section .post-grid .item-post h3 a{
    color:inherit;
}

.cat-section .post-grid .item-post-meta{
    display: flex;
    align-items: center;
    gap:10px;
}

.cat-section .post-grid .item-post-meta > span{
    display: flex;
    align-items: center;
    gap:2px;
    color: #a5a5a5;
    font-size: 12px;
    letter-spacing: 0.15em;
    margin-top: 5px;
}

/* .wpcf7-form .cf7-row p{
    display: flex;
    align-items: center;
    gap:30px;
    margin: 0;
}

.wpcf7-form .cf7-row p label{
    color: #000000;
    font-size: 17px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 186px;
}

.wpcf7-form .cf7-row p label .required{
    color:#fff;
    background: #044098;
    padding: 5px;
}

.cf7-form-wrapper .cf7-row:(:last-child){
    margin-bottom: 32px;
} */


.wpcf7-form .cf7-row p{
    display: flex;
    align-items: center;
    gap:30px;
    margin: 0;
}

.wpcf7-form .cf7-row p label{
    color:#000000;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    font-weight: 600;
    min-width: 175px;
	  gap: 5px;
}

.wpcf7-form .cf7-row p label .required{
    color:#fff;
    background: #044098;
    padding: 5px;
}

.cf7-form-wrapper .cf7-row:not(:last-child){
    margin-bottom: 32px;
}

.wpcf7-form .cf7-row input{
    max-width:65%;
}

.wpcf7-form .cf7-row  textarea{
	height: 120px;
}

.wpcf7-form .cf7-row p.note{
    font-size: 15px;
    margin-top: 10px;
    font-weight: 500;
    color: #cccccc;
}

.cf7-submit-row, .wpcf7-form .cf7-row p.note{
    padding-left: 235px;
}
.cf7-submit-row input[type="submit"]{
    padding: 10px 40px;
}

.cf7-row .wpcf7-not-valid-tip{
    font-size: 14px;
}

.z-hero-section .z-hero-section__bg img.d-mb{
    opacity: 0;
    visibility: hidden;
}


.nf-form-cont .nf-before-form-content{
    display: none;
}

.nf-form-content .nf-field .field-wrap{
    align-items: center;
}

.nf-field-label{
    color: #000000;
    font-size: 16px;
    line-height:1.5;
    display: flex;
    align-items: center;
    font-weight: 600;
    min-width: 34%;
    gap: 5px;
    margin: 0;
    letter-spacing: 0.15em;
}

.nf-form-cont .nf-form-layout .nf-field .nf-field-element {
    width: 66%;
}

.nf-field-label > label{
    display: flex;
    align-items: center;
    gap:5px;
}

.nf-field-label .ninja-forms-req-symbol{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #044098;
    padding: 5px;
    min-width: 10px;
    width: 100%;
    max-width: fit-content;
    height: 34px;
    font-size: 0;
}

.nf-field-label .ninja-forms-req-symbol::before{
    content: "必須";
    display: inline-block;
    font-size: 16px;
    line-height:1.5;
    color:#fff;
    letter-spacing: 0.15em;
}

.nf-field .nf-field-element input{
    width: 65%;
    letter-spacing: 0.15em;
}


.nf-field .nf-field-element input:focus-visible, .nf-field .nf-field-element textarea:focus-visible{
    outline:none;
}

.nf-field .nf-field-description{
    order:16
}

.nf-field .nf-field-description span{
    letter-spacing: 0.1em;
}

.nf-form-cont .nf-after-field .nf-error-msg{
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.nf-after-form-content .nf-error-msg{
    text-align: center;
    letter-spacing: 0.15em;
    margin-top: 20px;
}

.nf-form-cont .nf-field-container{
    margin-bottom: 32px;
}

.nf-form-cont  .nf-field-container.submit-container{
    margin-bottom: 0;
}

.nf-form-cont .nf-field-container.submit-container .nf-field-label{
    margin: 0 !important;
}

.nf-form-cont .nf-field-element textarea{
    height: 120px;
}

.nf-form-cont .nf-response-msg{
    text-align: center;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .nf-form-cont .nf-after-field .nf-error-msg, .nf-field .nf-field-description{
        padding-left: 34%;
    }
}


@media (max-width: 1199.98px) {
    .z-hero-section h1{
        font-size: 30px;
    }

    .z-content-section__content{
        width: 60%;
    }

    .z-content-section__sidebar{
        width: 40%;
    }

    .z-content-section{
        padding-bottom: 90px;
    }
}

@media (max-width: 1023.98px) {
    .z-hero-section h1{
        font-size: 30px;
        max-width: 100%;
    }

    .z-content-section__content{
        width: 55%;
    }

    .z-content-section__sidebar{
        width: 45%;
    }

    .z-content-section-inner{
        gap: 32px;
    }

    .z-content-section{
        padding-bottom: 60px;
    }

    .cat-section .post-grid{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 32px;
    }


    .z-content-section .cat-section:not(:last-child), .z-content-section .cat-section:not(:last-child){
        margin-bottom: 48px;
    }

    .wpcf7-form .cf7-row input{
        max-width: 75%;
    }

    .archive  .z-content-section-inner{
        flex-wrap: wrap;
         gap: 48px;
    }

    .archive .z-content-section__content, .archive .z-content-section__sidebar{
        width: 100%;
    }

    .z-pagination{
        padding: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        margin-top: 32px;
    }

    .list-post-category{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 40px;
    }

    .list-post-category .item-post:not(:last-child){
        margin-bottom: 0;
    }

    .list-post-category .item-post{
        flex-wrap: wrap;
    }

    .list-post-category .item-post img,  .list-post-category .item-post__content{
        width: 100%;
    }

    .list-post-category .item-post img{
        height: 16vh;
        min-width: 100px;
    }

}

@media (max-width: 767.98px) {
    .nf-form-cont .nf-response-msg{
        font-size: 13.5px;
    }

    .nf-form-cont .nf-field-container{
        margin-bottom: 24px;
    }

    .nf-form-cont .label-above .nf-field-label{
        margin-bottom: 12px;
    }

    .nf-form-cont .nf-field-element textarea{
        height: 150px;
    }

    .nf-form-cont .nf-field-container.submit-container .nf-field-element{
        text-align: center;
    }

    .list-post-category .item-post__content h4{
        font-size: 17px;
    }
    .z-pagination{
        margin-top: 24px;
    }
    .wpcf7-form .cf7-row textarea{
        height: 150px;
    }

    .wpcf7-form .cf7-row p{
        flex-wrap: wrap;
        gap: 16px !important;
    }


    .wpcf7-form .cf7-row p.note{
        display: none;
    }

    .wpcf7-form .cf7-row input, .wpcf7-form .cf7-row p label,  .wpcf7-form .wpcf7-form-control-wrap{
        width: 100%;
    }

    .cf7-form-wrapper .cf7-row:not(:last-child) {
        margin-bottom: 24px;
    }

    .cf7-submit-row, .wpcf7-form .cf7-row p.note{
        padding-left: 0 !important;
    }

    .wpcf7-form .cf7-row input,  .wpcf7-form .cf7-row textarea{
        width: 100%;
        min-width: 100%;
    }

    .wpcf7-form .cf7-row p br{
        display: none !important;
    }

    .wpcf7-form .cf7-submit-row p .wpcf7-spinner{
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: -1;
        visibility: hidden;
    }

    .wpcf7-form .cf7-submit-row p{
        text-align: center;
        margin: 0;
    }

    .z-breadcrumb ul{
        flex-wrap: wrap;
    }

    .z-breadcrumb ul li, .z-breadcrumb ul li a{
        font-size: 12px;
    }

    .hero-breadcrumb{
        align-items: start;
    }

    .z-hero-section .z-hero-section__bg img{
        opacity: 0;
        visibility: hidden;
    }

    .z-hero-section .z-hero-section__bg img.d-mb{
        opacity: 1;
        visibility: inherit;
    }

    .z-hero-section h1{
        font-size: 20px;
    }

    .z-content-section-inner{
        flex-wrap: wrap;
    }

    .z-content-section__content, .z-content-section__sidebar{
        width: 100%;
    }

    .z-content-section-inner {
        gap: 48px;
    }

    .z-content-section__sidebar .sidebar-item{
        padding: 24px 10px;
    }

    .z-content-section__sidebar .sidebar-item > h3{
        font-size: 17px;
    }

    body.single .z-post__content{
        margin-top: 32px;
    }

    .cat-section .post-grid{
       gap: 24px;
    }

    .cat-section .post-grid .item-post-meta{
        margin-top: 5px;
        flex-wrap: wrap;
        gap: 10px;
    }


    .cat-section .post-grid .item-post-meta > span{
        font-size: 13px;
    }

    .z-content-section .cat-section:not(:last-child), .z-content-section .cat-section:not(:last-child){
        margin-bottom: 32px;
    }

    .cat-section .post-grid .item-post h3{
        font-size: 17px;
    }

    .list-post-category .item-post-meta > div{
        font-size: 12px;
    }

    .list-post-category .item-post__content h4{
        font-size: 15px;
    }

    .list-post-category .item-post{
        gap: 12px;
    }

    .z-hero-section-meta > div{
        font-size: 12px;
    }

    .hero-breadcrumb > svg{
        margin: 0;
    }

    .nf-field .nf-field-element input, .nf-form-cont .nf-form-layout .nf-field .nf-field-element, .nf-field-label{
        width: 100%;
    }
}

@media (max-width: 410.98px) {
    .cat-section .post-grid, .list-post-category{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 32px;
    }

    .list-post-category .item-post img{
        height: 20vh;
    }
}


#masthead{
 position: sticky !important; 
  top: -10px;
  z-index: 1000 !important;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
  will-change: transform;
}

#masthead.is-sticky{
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  backdrop-filter: saturate(180%) blur(8px); /* optional đẹp hơn */
  
}

 body.admin-bar #masthead{
    top: 22px;
 }

@media (max-width: 782px){
    body.admin-bar #masthead{
        top: 36px;
    }
}