/*
 * CSS of templates/cong-trinh-thuc-te.php, moved verbatim from its inline <style> blocks, in source order.
 * Loaded by kosmos_page_template_css (functions/actions.php).
 */

/* templates/cong-trinh-thuc-te.php, <style> at line 62 */
.site.grid-container.container.hfeed {
    margin-top: 67px;
}
/* ==============================
   Section 1 – Banner
================================ */
.section.prod_1 {
    position: relative;
}.prod_1 .cont .content p {
    margin-bottom: 0;
    color: #fff;
}
.section.prod_1 .banner-wrap {
    display: block;
    width: 100%;
    line-height: 0;
}
.section.prod_1 .banner-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.section.prod_1 .cont {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
}
.section.prod_1 .cont .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}
.section.prod_1 .cont .content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* ==============================
   Section Filter – Category
================================ */
.section-filter {
    padding: 30px 0 10px;
    background: #eeeeee;
    padding-top: 10px;
}
.section-filter .grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    min-width: 160px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    transition: all .2s ease;
    cursor: pointer;
    text-transform: uppercase;
}
.cat-item span {
    margin-left: 10px;
    font-weight: 500;
}
.cat-item:hover {
    background: #e31937;
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}
.cat-item.active {
    background: #e31937;
    border-color: #fff;
    color: #fff;
}
.cat-item.active span {
    color: #fff;
}

.cat-item a:hover span {
    color: #fff!important;
}

/* ==============================
   Section 2 – Layouts
================================ */
.section_2 {
    padding: 40px 0;
}
.section_2 .grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout chung */
.layout {
    margin-bottom: 60px;
}
.layout:last-child {
    margin-bottom: 0;
}
.layout-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}
.layout-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 800;
}

/* Layout Header - Title and View All button */
.layout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.layout-header .layout-title {
    margin-bottom: 0;
}
.btn-view-all {
    display: inline-block;
    padding: 10px 24px;
    background: #e31937;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-view-all:hover {
    background: #c41230;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .layout-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .layout-header .layout-title {
        text-align: center;
    }
}

/* Gallery – base */
.gallery-grid {
    display: flex;
    flex-wrap: nowrap; /* các layout dùng cấu trúc row/col riêng */
    gap: 15px;
}
.gallery-grid .img-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}
.gallery-grid .img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-grid .img-item:hover img {
    transform: scale(1.05);
}

/* ==============================
   Layout 1: Trên 2 ảnh – Dưới 1 ảnh
================================ */
.gallery-grid.top-2-bottom-1 {
    flex-direction: column;
}
.gallery-grid.top-2-bottom-1 .row-top {
    display: flex;
    gap: 15px;
}
.gallery-grid.top-2-bottom-1 .row-top .img-item {
    flex: 1;
    height: 300px;
}
.gallery-grid.top-2-bottom-1 .row-bottom .img-item {
    width: 100%;
    height: 400px;
}

/* ==============================
   Layout 2: Trái 2 ảnh – Phải 1 ảnh
================================ */
.gallery-grid.left-2-right-1 {
    flex-direction: row;
    align-items: stretch;
}
.gallery-grid.left-2-right-1 .col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.gallery-grid.left-2-right-1 .col-left .img-item {
    flex: 1; /* chia đều chiều cao */
    min-height: 0;
}
.gallery-grid.left-2-right-1 .col-right {
    flex: 1;
    display: flex;
}
.gallery-grid.left-2-right-1 .col-right .img-item {
    flex: 1;
    min-height: 400px;
}

/* ==============================
   Layout 3: Trái 1 ảnh – Phải 2 ảnh
================================ */
.gallery-grid.left-1-right-2 {
    flex-direction: row;
    align-items: stretch;
}
.gallery-grid.left-1-right-2 .col-left {
    flex: 1;
    display: flex;
}
.gallery-grid.left-1-right-2 .col-left .img-item {
    flex: 1;
    min-height: 400px;
}
.gallery-grid.left-1-right-2 .col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.gallery-grid.left-1-right-2 .col-right .img-item {
    flex: 1;
    min-height: 0;
}

/* ==============================
   Layout 4: Trên 1 ảnh – Dưới 2 ảnh
================================ */
.gallery-grid.top-1-bottom-2 {
    flex-direction: column;
}
.gallery-grid.top-1-bottom-2 .row-top .img-item {
    width: 100%;
    height: 400px;
}
.gallery-grid.top-1-bottom-2 .row-bottom {
    display: flex;
    gap: 15px;
}
.gallery-grid.top-1-bottom-2 .row-bottom .img-item {
    flex: 1;
    height: 300px;
}

/* ==============================
   Responsive
================================ */
@media (max-width: 768px) {
    .section.prod_1 .cont .title {
        font-size: 24px;
    }
    .layout-title {
        font-size: 20px;
    }

    /* Layout 1 */
    .gallery-grid.top-2-bottom-1 .row-top {
        flex-direction: column;
    }
    .gallery-grid.top-2-bottom-1 .row-top .img-item {
        height: 220px;
    }
    .gallery-grid.top-2-bottom-1 .row-bottom .img-item {
        height: 260px;
    }

    /* Layout 2 */
    .gallery-grid.left-2-right-1 {
        flex-direction: column;
    }
    .gallery-grid.left-2-right-1 .col-left .img-item {
        min-height: 200px;
    }
    .gallery-grid.left-2-right-1 .col-right .img-item {
        min-height: 220px;
    }

    /* Layout 3 */
    .gallery-grid.left-1-right-2 {
        flex-direction: column;
    }
    .gallery-grid.left-1-right-2 .col-left .img-item {
        min-height: 220px;
    }
    .gallery-grid.left-1-right-2 .col-right .img-item {
        min-height: 200px;
    }

    /* Layout 4 */
    .gallery-grid.top-1-bottom-2 .row-top .img-item {
        height: 260px;
    }
    .gallery-grid.top-1-bottom-2 .row-bottom {
        flex-direction: column;
    }
    .gallery-grid.top-1-bottom-2 .row-bottom .img-item {
        height: 220px;
    }
}
