/*
Theme Name: remcua-child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.page-loader{
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(45deg, #498b81, #4c4f3b, #23251d, #1d1f12);
    background: url(/wp-content/uploads/2025/05/bg-page-loader.jpg);
    background-size: cover;
    background-position: center;
}

/* Hiệu ứng fade */
.page-leaving {
    animation: fadeOut 0.5s ease-in-out;
}

.item-year{
    border-bottom:1px solid #000;
}
.item-year:after{
    content:'';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    background: #fff;
    height: 20px;
    z-index: 2;
    transform: translate(-50%, 50%);
    border: 1px #000 solid;
    border-radius: 20em;
}
.hnit-tamnhin-sec .icon-box .icon-box-text{
    height:100%;
    border: 1px #000 solid;
    padding: 20px 20px 10px;
    border-radius: 25px;
    position: relative;
}

.hnit-tamnhin-sec .icon-box .icon-box-text{
    border: 1px #000 solid;
    padding: 20px 20px 10px;
    border-radius: 25px;
    position: relative;
}
.hnit-tamnhin-sec .icon-box{
    height: 100%;
	display:flex;
	flex-direction:column;
    position: relative;
}
.slide-lichsu{
	overflow: hidden;
}
.slide-lichsu .owl-stage{
    display: flex;
    flex-direction: row;
}
.slide-lichsu .owl-nav [class*=owl-]{
    top: 50%;
    cursor: pointer;
    transition: all .2s ease 0s;
    position: absolute;
    line-height: 42px;
    margin: -23px 0 0;
    display: block;
    text-align: center;
    z-index: 200;
}
.slide-lichsu .owl-nav [class*=owl-], 
.slide-lichsu:hover .owl-nav [class*=owl-], .slide-lichsu:hover .owl-nav [class*=owl-]:hover
{
    opacity: 1;
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    width: 30px;
    height: 35px;
	display:flex;
	justify-content:center;
	align-items:center;
}
.slide-lichsu .owl-nav .owl-next, 
.slide-lichsu:hover .owl-nav .owl-next{
    right: 0;
}
.slide-lichsu{
    position: relative;
}
.slide-lichsu .owl-nav span{
    font-size:20px;
}
.r-team{
    position: relative;
    height: 100%;
}
.r-team:before{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38%;
    z-index: 1;
    background: linear-gradient(180deg, var(--primary-color), transparent);
}
.r-team:after{
    z-index:1;
    bottom:0;
    position: absolute;
    content:'';
    width: 100%;
    height: 38%;
    background: linear-gradient(180deg, transparent, var(--primary-color));
}
.hnit-tamnhin-sec .icon-box .icon-box-text h3{
    position: relative;
    text-align: center;
    background: var(--primary-color);
    font-size: 28px;
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    padding:0px 30px;
    width: fit-content;
    margin: auto;
    margin-top: -40px;
    margin-bottom:30px;
}
.hnit-tamnhin-sec .icon-box{
    grid-row-gap:30px;
}
.hnit-tamnhin-sec .icon-box .icon-box-text{
    text-align: justify;
}
.linhvuc-sec {
    color:#FFF;
}
.product-categories{
    display:flex;
    flex-direction: row;
    list-style-type: none;
    flex-wrap: wrap;
    grid-column-gap: 20px;
    justify-content: center;
}
.product-categories li a{
    border-radius: 50em;
    padding:5px 10px;
    border:1px solid var(--primary-color);
    font-weight:500;
}
.product-categories li.active a{
    background:#000;
    border-color:#000;
}
.col-contact .wpcf7-text, .col-contact .wpcf7-textarea{
    border: 1px solid #ddd;
    padding: 12px 18px;
    font-size: 18px;
    text-align: left;
    border-radius: 0;
    font-weight:400;
    color: #fff!important; 
    background:transparent!important;
}
.col-contact .wpcf7-submit{
    background: #F1F1F1;
    text-shadow: none !important;
    position: relative;
    border: 1px var(--primary-color) solid;
    border-radius: 13px!important;
    padding: 12px 20px 9px 20px;
    text-transform: none;
    color: var(--primary-color);
    letter-spacing: 0;
}
.title-section{
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
}
.text-white{
    color:#FFF!important;
}
.hnit-lichsu-sec .title-year{
    color:#FFF;
    font-size: 29px;
}
.hnit-lichsu-sec .item-year p{
    line-height: 1.2;
    font-size: 14px;
    text-align: center;
}
aside {
    background: 0 0;
    border: 1px solid #ddd;
    padding: 15px 20px 15px;
    display: block;
    box-sizing: border-box;
}
aside .widget-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    background: #FFFAF0;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    top: -16px;
    left: 0;
    display: table;
    overflow: hidden;
    width: 100%;
    border-bottom: 0;
    text-align: center;
    white-space: nowrap;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    margin-top: 0;
    margin-bottom: -15px;
    line-height: unset;
}
aside .is-divider{
    display: none;
}
aside ul li a{
    font-size:14px;
}
.block-content-item .title-section h2{
    margin: 0;
    font-size: 40px;
    line-height: 1.3;
    position: relative;
    padding-left: 13px;
    max-width: max-content;
    display: inline;
    position: relative;
    z-index:1;
}
.block-content-item .title-section h2:before {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--fs-color-secondary);
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    z-index: -1;
}
.info_project ul, .info_project ul li {
    margin: 0;
    list-style-type: none;
}
.info_project ul li span {
    color: #999999;
    font-weight: 400;
    text-transform: uppercase;
}
.info_project ul li:not(:last-child) {
    margin-bottom: 10px;
}
.block-content-item .title-section {
    margin-bottom: 20px;
}
.block-content-item:not(:last-child) {
    margin-bottom: 30px;
}
.gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 15px;
    }
    
    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      height: 0;
      padding-bottom: 75%; /* Tỉ lệ 4:3 */
    }
    
    .gallery-item a {
      display: block;
      width: 100%;
      height: 100%;
    }
    
    .gallery-item img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    
    .gallery-item:hover img {
      transform: scale(1.05);
    }
    
    /* Ảnh lớn ở góc trái trên */
    .gallery-item.featured {
      grid-column: span 2;
      grid-row: span 2;
    }
    
    /* Overlay cho ảnh cuối cùng hiển thị */
    .more-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 36px;
      font-weight: bold;
    }
    
    /* Ẩn các ảnh không hiển thị trong grid */
    .hidden-images {
      display: none;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .gallery {
        grid-template-columns: 1fr 1fr;
      }
      
      .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 1;
      }
    }
    
    @media (max-width: 480px) {
      .gallery {
        grid-template-columns: 1fr;
      }
      
      .gallery-item.featured {
        grid-column: span 1;
      }
    }
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.barba-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
    

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}