/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================
   Box tiêu đề
========================== */
.box-tt{
    position:relative;
    overflow:hidden;
    padding:12px 16px 18px;
    background:linear-gradient(
        90deg,
        rgba(65,164,255,.12) 0%,
        rgba(65,164,255,.06) 45%,
        rgba(255,255,255,0) 100%
    );
}

/* ==========================
   Line SVG
========================== */
.box-tt::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:10px;

    background-image:url("https://kiemnghiemgialai.vn/wp-content/uploads/2026/07/Asset-1@216x.svg");
    background-repeat:no-repeat;
    background-position:left bottom;

    /* KHÔNG dùng 100% 100% */
    background-size:auto 10px;

    pointer-events:none;
}

/* ==========================
   Tiêu đề
========================== */
.css-tieu-de{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    font-weight:700;
}

/* ==========================
   Icon
========================== */
.css-tieu-de::before{
    content:"";
    width:18px;
    height:18px;
    flex:0 0 18px;

    background:url("https://kiemnghiemgialai.vn/wp-content/uploads/2026/07/Layer-1icon.png") center center / contain no-repeat;
}

/* ==========================
   Tablet
========================== */
@media (max-width:1024px){

    .box-tt{
        padding:10px 14px 16px;
    }

    .css-tieu-de{
        gap:7px;
    }

    .css-tieu-de::before{
        width:16px;
        height:16px;
        flex-basis:16px;
    }

    .box-tt::after{
        height:9px;
        background-size:auto 9px;
    }
}

/* ==========================
   Mobile
========================== */
@media (max-width:767px){

    .box-tt{
        padding:8px 12px 14px;
    }

    .css-tieu-de{
        gap:6px;
        line-height:1.35;
    }

    .css-tieu-de::before{
        width:14px;
        height:14px;
        flex-basis:14px;
    }

    .box-tt::after{
        height:8px;
        background-size:auto 8px;
    }
}


/* POSTS */
.css-posts-style-1 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px 24px !important;
}

/* ITEM */
.css-posts-style-1 .repeater-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0.25rem !important;
    background: #fff !important;
    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s cubic-bezier(.2,.8,.2,1);
}

/* BOX IMAGE */
.css-posts-style-1 .repeater-item .box-image {
    position: relative !important;
    width: 100% !important;
    height: 190px !important;
    overflow: hidden !important;
    border-radius: 0.25rem !important;
    line-height: 0 !important;
}

.css-posts-style-1 .repeater-item .box-image > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* IMAGE */
.css-posts-style-1 .repeater-item .box-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform .6s cubic-bezier(.22,.61,.36,1) !important;
}

/* CATEGORY */


.css-posts-style-1 .post-meta .item a {
    display: inline-block !important;
    padding: 6px 12px !important;
    margin-right: 4px !important;
    background: rgb(175 16 26) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

/* CONTENT */
.css-posts-style-1 .repeater-item .box-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 24px !important;
    gap: 12px !important;
}

/* FIRST POST */
.css-posts-style-1 .repeater-item:first-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 288px !important;
    background: rgb(243 250 255) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
}

/* FIRST POST IMAGE */
.css-posts-style-1 .repeater-item:first-child .box-image {
    flex: 0 0 50% !important;
    width: 50% !important;
    min-height: 100% !important;
    align-self: stretch !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
}

.css-posts-style-1 .repeater-item:first-child .box-image > a,
.css-posts-style-1 .repeater-item:first-child .box-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* FIRST POST CONTENT */
.css-posts-style-1 .repeater-item:first-child .box-content {
    width: 50% !important;
    padding: 40px !important;
    justify-content: center !important;
}

/* DATE */
.css-posts-style-1 .brxe-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.css-posts-style-1 .brxe-list li {
    list-style: none !important;
}

.css-posts-style-1 .brxe-list .content {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #777 !important;
    font-size: 12px !important;
}

/* TITLE */
.css-posts-style-1 .repeater-item .brxe-post-title {
    margin: 0 !important;
}

.css-posts-style-1 .repeater-item:first-child .brxe-post-title {
    font-size: 18px !important;
}

.css-posts-style-1 .repeater-item .brxe-post-title a {
    color: var(--color-4) !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color .3s ease !important;
}

/* EXCERPT */
.css-posts-style-1 .repeater-item .brxe-post-excerpt p {
    margin: 0 !important;
    color: #4d5761 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* READ MORE */
.css-posts-style-1 .repeater-item .brxe-text-link {
    text-decoration: none !important;
    transition: color .3s ease !important;
}

.css-posts-style-1 .repeater-item .brxe-text-link .icon {
    display: inline-flex !important;
    transition: transform .3s ease !important;
}

/* HOVER */
.css-posts-style-1 .repeater-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.1) !important;
}

.css-posts-style-1 .repeater-item:hover .box-image img {
    transform: scale(1.08) !important;
}

.css-posts-style-1 .repeater-item:hover .brxe-post-title a,
.css-posts-style-1 .repeater-item:hover .brxe-text-link {
    color: rgb(175 16 26) !important;
    text-decoration: none !important;
}

.css-posts-style-1 .repeater-item:hover .brxe-text-link .icon {
    transform: translateX(5px) !important;
}

/* TABLET */
@media (max-width: 991px) {
    .css-posts-style-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px 20px !important;
    }

    .css-posts-style-1 .repeater-item:first-child .box-content {
        padding: 30px !important;
    }

    .css-posts-style-1 .repeater-item:first-child .brxe-post-title {
        font-size: 20px !important;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .css-posts-style-1 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .css-posts-style-1 .repeater-item,
    .css-posts-style-1 .repeater-item:first-child {
        grid-column: auto !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: unset !important;
        background: #fff !important;
        border: 1px solid #eef1f5 !important;
        border-radius: 0.25rem !important;
        overflow: hidden !important;
    }

    .css-posts-style-1 .repeater-item .box-image,
    .css-posts-style-1 .repeater-item:first-child .box-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        align-self: auto !important;
        border-radius: 0.25rem 0.25rem 0 0 !important;
    }

    .css-posts-style-1 .repeater-item .box-image > a,
    .css-posts-style-1 .repeater-item:first-child .box-image > a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .css-posts-style-1 .repeater-item .box-image img,
    .css-posts-style-1 .repeater-item:first-child .box-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .css-posts-style-1 .repeater-item .box-content,
    .css-posts-style-1 .repeater-item:first-child .box-content {
        width: 100% !important;
        padding: 18px !important;
        gap: 10px !important;
    }

       .css-posts-style-1 .post-meta .item a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .css-posts-style-1 .brxe-list .content {
        font-size: 13px !important;
    }

    .css-posts-style-1 .repeater-item .brxe-post-title,
    .css-posts-style-1 .repeater-item:first-child .brxe-post-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .css-posts-style-1 .repeater-item .brxe-post-excerpt p {
        font-size: 14px !important;
        line-height: 1.55 !important;
        -webkit-line-clamp: 3 !important;
    }

    .css-posts-style-1 .repeater-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .css-posts-style-1 {
        gap: 20px !important;
    }

    .css-posts-style-1 .repeater-item .box-image,
    .css-posts-style-1 .repeater-item:first-child .box-image {
        aspect-ratio: 4 / 3 !important;
    }

    .css-posts-style-1 .repeater-item .box-content,
    .css-posts-style-1 .repeater-item:first-child .box-content {
        padding: 16px !important;
    }

    .css-posts-style-1 .post-meta {
        top: 14px !important;
        left: 14px !important;
        right: 14px !important;
    }

    .css-posts-style-1 .post-meta .item a {
        font-size: 11px !important;
        padding: 5px 9px !important;
    }
}

/*văn bản */

/* ===========================
   TABLET + MOBILE
=========================== */
@media (max-width:1024px){

    /* Khung cuộn */
    #brxe-dhklup{
        display:block !important;
        width:100% !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        -webkit-overflow-scrolling:touch;
        padding-bottom:6px;
    }

    /* Header + body */
    #brxe-dhklup>.css-mo{
        display:grid !important;
        grid-template-columns:
            55px
            320px
            170px
            130px
            130px;

        width:805px !important;
        min-width:805px !important;

        gap:0 !important;
        margin:0 !important;
        padding:0 !important;
    }

    /* Các ô */
    #brxe-dhklup>.css-mo>div{
        width:auto !important;
        max-width:none !important;
        min-width:0 !important;
        flex:none !important;

        display:flex !important;
        align-items:center !important;
        justify-content:flex-start;

        padding:14px 12px !important;
        box-sizing:border-box;

       
    }

   /* #brxe-dhklup>.css-mo>div:first-child{
        border-left:1px solid #577ea5;
    }
*/
    /* Header */
    #brxe-wsiksz{
        align-items:stretch !important;
    }

    #brxe-wsiksz>div{
        display:flex !important;
        align-items:center;
        justify-content:center;
        text-align:center;
        background:#1976d2;
        color:#fff;
        font-weight:700;
    }

    #brxe-wsiksz>div>div{
        width:100%;
        line-height:1.35;
    }

    /* Tên văn bản */
    .brxe-lnnotv{
        line-height:1.6;
        word-break:normal;
        overflow-wrap:break-word;
    }

    /* Số hiệu */
    .brxe-cnzuxa{
        text-align:center;
        line-height:1.45;
        word-break:keep-all;
        overflow-wrap:normal;
    }

    /* Ngày */
    .brxe-jwmagd{
        text-align:center;
        white-space:nowrap;
    }

    /* Căn giữa */
    .brxe-zqwtpb,
    .brxe-iupfvx,
    .brxe-zspqkk,
    .brxe-sdmsmf{
        justify-content:center !important;
        text-align:center;
    }

    /* Nút */
    .brxe-dtfgro{
        display:inline-flex !important;
        align-items:center;
        justify-content:center;

        min-width:80px;
        min-height:42px;

        padding:8px 12px !important;

        border-radius:8px;
        text-align:center;
        line-height:1.3;
    }

}

/*đt */

@media (max-width:767px){

    #brxe-dhklup>.css-mo{

        grid-template-columns:
            48px
            260px
            150px
            120px
            120px;

        width:698px !important;
        min-width:698px !important;
    }

    #brxe-dhklup>.css-mo>div{
        padding:12px 10px !important;
        font-size:14px;
    }

    #brxe-cfstxr{
        white-space:nowrap;
    }

    #brxe-vzmznl{
        white-space:nowrap;
    }

}