.white{
    color:#000;
    background-color:#fff;
}


.navbar .brand {
    color:#51a351;
}
.fb-comments, .fb-comments iframe[style] {width: 100% !important;}
 .itemx {
    text-align: center !important;
  }
.placeholder {color: #BFBFBF;}
::-webkit-input-placeholder {color: #BFBFBF;}
:-moz-placeholder {color: #BFBFBF;}


 .tab_header {
     font-size: 16px;
     color: #6e6d6d;
 }
 .nav-tabs>.active>a {
     background: #0089ff !important;
     color: #fff !important;
 }
 .active .tab_header {
     color: #fff!important;
     font-weight: normal;
 }


/*NEW UPDATE*/

@media (min-width: 1200px) { .container { width: 1024px; } }
  @media (max-width: 1024px) { 
    .xhide {
       display: none;
    }
  }

  body .container,body .span12,body .row {
    max-width: 1200px !important;
  }

  @media screen and (max-width: 769px) {
    /* STYLES HERE */
    .btn-lg
    btn-lg {
          padding: 0px 8px;
          font-size: 20px;
          height: 35px;
        }
        .btn-lg
    btn-lg [class^="glyphicon glyphicon-"], .btn-lg
    btn-lg [class*=" glyphicon glyphicon-"] {
          margin: 0px;
        }
      }

  .thumbnail.selected {
     background-color: #D1142A;
     color: white;
  }


  #currentPage { border: 1px solid #eee; height: 25px; padding: 0 5px; width: 50px; -webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px; }

.mlink::-webkit-input-placeholder::after {
    display:block;
    content:"Link 1\A Link 2\A Link 3\A ...";
}

.photo-item {
  border: solid thin #333;
  padding: 2px;
}

.item_photo {
  position: relative;
}
.item_photo_link {
  position: absolute;
  bottom: 25px;
  right: 20px;
  display: none;
}
.item_photo:hover .item_photo_link {
  display: inline-block;
}

.imgvector {
  position: absolute;
  bottom: 27px;
  left: 30px;
  font-size: 11px;
  background-color: rgba(90, 90, 90, 0.03);
  padding: 5px;
  color: rgba(148, 148, 148, 0.67);
}
.selected .imgvector {
  color:white;
  background-color: rgba(253, 253, 253, 0.22);
}

.search-loading { background: none repeat scroll 0 0 rgba(255, 255, 255, 0.75); height: 100%; left: 0; position: absolute; text-align: center; top: 0px; width: 100%; z-index: 100; line-height: 100px; padding-top:50px; }
.removeline {white-space: nowrap;}

.navbar-default .navbar-nav>li>a,.form-group label { 
  white-space: nowrap;
}
.well {
  margin-top: 15px;
}
.modal-overflow .modal-body {
  overflow: hidden;
}

.serverStatus{
    margin-bottom: 5px;
}
.serverStatus ul{
    margin:  0;
    list-style-type: none;
    padding: 0;
}

.serverStatus ul li{
    margin:  0 20px 0 0;
    float: left;
    border: 1px #ccc solid;
    padding: 3px 10px;
    border-radius: 3px;
}

.serverStatus ul li i{
    margin-left: 5px;
}



/* Photo */
.searchBox{

    margin: 0 auto;
    position: absolute;
    z-index: 99;
    width: 100%;
    top: 51px;
    left: 0;
    height: 100px;
    background: #fff;
    padding: 15px 0;


}

.searchBox .wrapper{
    width: 70%;
    margin: 20px auto;
}

.searchBox .search-group{
    display: flex;
}

.searchBox .search-group button{
    width: 120px;
    margin-left: 30px;
}

.photo-content{
    margin-top: 110px;
}


.photoList {
  display: flex;
  flex-wrap: wrap; /* Cho phép các item xu?ng dòng khi c?n */
}

.photoList .photos{
    margin: 0 -15px;
}
.photoList .item{
    display: flex;
    flex-direction: column; 
    background: #fff;
    box-shadow: 0px 3px 5px #e0e0e0;
    margin-bottom: 15px;
}
.photoList .item .image-wrap{
    overflow: hidden;
}

.photoList .item .borderImage{
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
}
.photoList .item .borderImage img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.photoList .item .info{
    flex: 1; 
    position: relative;
    min-height: 60px;
    padding: 10px;
    min-height: 100px;
}
.photoList .item .info .photo-name{
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0px;
    max-height: 100px;
    overflow: hidden;
}
.photoList .item .info .cat-name{
    font-size: 12px;
    margin: 0;
    min-height: 17px;
}

.photoList .item .info a{
    color: #333;
}

.photoList .item .info a:hover{
    color: #428bca;
    text-decoration: none;
}

.photoList .item .info .file-type{
    position: absolute;
    top: 9px;
    right: 3px;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0px 0px 5px #ccc;
    text-align: center;
    line-height: 40px;
}

.photoList .item .info .file-pdf{
    background: #ff4d4d;
    color: #fff;
}

.photoList .item .info .file-png{
    background: #479ee2;
    color: #fff;
}

.photoList .item .info .file-eps{
    background: #6947e2;
    color: #fff;
}

.photoList .item .info .file-jpg{
    background: #2f2f2f;
    color: #fff;
}

.video-container {
  position: relative;
  width: 100%; /* Chi?u r?ng b?ng 100% ph?n t? cha */
  padding-bottom: 56.25%; /* T? l? khung hình 16:9 (height / width * 100%) */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.searchHeader{
    margin-bottom: 20px;
    font-size: 25px;
}
.searchHeader span{
    font-weight: bold;
}

.paging{
    text-align: center;
}

.paging .pagination{
    text-align: center;
}

.photoDetails{}
.photoDetails .content{}

.photo-intro{
    background: #fff;
}

.photo-intro .toolbar{

}

.photo-intro .breadcrumb{
    background: #fff;
}

.photo-intro .thumb{
    width: 50%;
    text-align: center;
    margin: 0 auto;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 20px;
    margin-left: auto;
}

.photo-intro .thumb .border-image{
    width: 100%;
    margin: 0 auto;
    height: 300px;
    overflow: hidden;
}

.photo-intro .thumb img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-intro .thumb span{
    display: block;
    margin-top: 10px;
}

.file-info{
    padding: 25px 15px 15px;
}

.file-info .line{
    margin-bottom: 10px;
}

.file-info .line .label{
    color: #000;
    width: 120px;
    display: inline-block;
    text-align: left;
    font-size: 14px;
}

.photo-desc{
    margin-top: 20px;
    background: #fff;
    padding: 15px;
}

.photo-desc .box-header,
.photoRelate .box-header
{
    margin-bottom: 20px;
}

.photo-desc img{
    max-width: 100%;
}


.box-tags{
    background: #fff;
    padding: 15px;
}
.box-tags .box-heading{
    margin-bottom: 20px;
}
.box-tags .box-content{}
.box-tags .box-content .tag{
    background: #f3f2f2;
    border: 1px #ccc solid;
    padding: 3px 7px;
    display: inline-block;
    border-radius: 3px;
    color: #333;
}


.box-tags .box-content .tag:hover{
    text-decoration: none;
    background: #e0e0e0;
}

.noresult{
    text-align: center;
    font-size: 30px;
    margin-top: 50px;
    color: #aaa;
}

.noresult i{
    font-size: 70px;
}

.photoRelate{
    margin-top: 20px;

}

.aspect-ratio{}
.aspect-ratio > div{
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;

}
.v3-4{
    width: 100%;
    padding-bottom: 75%;
    position: relative;
}

.v3-2{
    width: 100%;
    padding-bottom: 66.66%;
    position: relative;
}

.v16-9{
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

.download-button{
    text-align: center;
    background: #fff;
    padding: 15px;
    border-bottom: 1px #ccc solid;
}

.nav-photo{
    position: relative;
}

.nav-cat{
    display: none;
    position: absolute;
    top: 46px;
    left: 20px;
    width: 150px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px #ccc solid;
    border-radius: 3px;
    z-index: 999;

}
.nav-cat li{
    list-style-type: none;

}

.nav-cat li a{
    display: block;
    padding: 5px 10px;
}

.nav-cat li a:hover{
    text-decoration: none;
    background: #efefef;
}
.nav-photo:hover .nav-cat{
    display: block;
}

.block{
    margin-top: 20px
}

.block .block-content{
    background: #fff;
    padding: 10px;
}

.quality_box{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}
.quality_box span{}
.quality_box .quality{
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    margin: 0;
    padding: 0 0 0 10px;
    flex-wrap: wrap;
}
.quality_box .quality li{
    list-style-type: none;
    margin: 0 10px;
}

.quality_box .quality li label{
    margin: 0;
}

.nav>li>a{padding: 15px 10px}
.tabbable .nav>li>a{padding: 10px}

.tag-item {
    background: #eee;
    border-radius: 30px 0 0 30px;
    color: #999;
    display: inline-block;
    height: 26px;
    line-height: 26px;
    padding: 0 20px 0 23px;
    position: relative;
    margin: 0 10px 10px 0;
    text-decoration: none;
    -webkit-transition: color 0.2s;
}

.tag-item::before {
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 1px rgb(0 0 0 / 25%);
    content: '';
    height: 6px;
    left: 10px;
    position: absolute;
    width: 6px;
    top: 10px;
}

.tag-item::after {
    background: #fff;
    border-bottom: 13px solid transparent;
    border-left: 10px solid #eee;
    border-top: 13px solid transparent;
    content: '';
    position: absolute;
    right: 0;
    top: 0;
}

.blog-intro{
    background: #fff
}
.blog-content{
    padding: 0 15px 15px;
    font-size: 16px;
    font-family: 'Inter', sans-serif; /* Áp d?ng cho n?i dung blog */
}

.blog-content h1{
    margin: 0;
    font-size: 22px;
    font-family: 'Inter', sans-serif; /* Áp d?ng cho H1 */
    font-weight: 700; /* Thu?ng thì tiêu d? H1 s? d?m */
    line-height: 23px; /* Đặt khoảng cách dòng cố định là 26 pixel */
}

.blog-content h3{
    font-size: 20px;
    font-family: 'Inter', sans-serif; /* Áp d?ng cho H3 */
    font-weight: 500; /* Ví d?, H3 có th? ít d?m hon */
}

.blog-content .publish-at{
    font-size: 14px;
    font-family: 'Inter', sans-serif; /* Có th? gi? nguyên ho?c thay d?i */
}

.blog-content .thumb{
    width: 70%;
    font-size: 15px;
    text-align: center;
    margin: 0 auto 20px auto;
    font-family: 'Inter', sans-serif; /* Có th? gi? nguyên ho?c thay d?i */
}

.blog-content .border-image {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.blog-content .border-image img{
     width: 60%;
     height: 100%;
     object-fit: contain;
}
.d-flex{
    display: flex;
}
.blog-list{
    background: #fff;
    padding: 10px;
}

.blog-list .item{
    justify-content: left;
    align-items: flex-start;
    background: #fff;
    margin-bottom: 10px;
    border-bottom: 1px #ccc dashed;
    padding-bottom: 10px;
}
.blog-list .item:last-child{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.blog-list .item .image-wrap{
    width: 120px;

}

.blog-list .item .borderImage{
    justify-content: center;
    align-items: center;
    border: 1px #ccc solid;
    padding: 3px;
    display: flex;
    width: 100%;
    height: 100%;
}

.blog-list .item .image-wrap img{
    width: 100%;
}

.blog-list .item .info{
    margin-left: 15px;
}

.blog-list .item a{
    color: #000;
    font-weight: bold;
}



.blog-relate .box-header{
    margin-bottom: 10px;
}

.removebg-content .inner{
    margin: 70px 0;
}

#drop-region {
    background-color: #fff;
    border-radius:20px;
    box-shadow:0 0 35px rgba(0,0,0,0.05);
    text-align: center;
    cursor:pointer;
    transition:.3s;
    border: 2px dashed #ccc;
    width: 80%;
    height: 332px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#drop-region:hover {
    box-shadow:0 0 45px rgba(0,0,0,0.1);
}

.intro-content{
    width: 80%;
}

.intro-content .tabs{
    margin: 0 0 15px;
    padding: 0;
}
.intro-content .tabs li{
    list-style-type: none;
    display: inline-block;
    margin-right: 20px;
}
.intro-content .tabs li a{
    color: #777;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}
.intro-content .tabs li a:hover{
    text-decoration: none;
}
.intro-content .tabs li.active{
    border-bottom: 2px #428bca solid;
}
.intro-content .tabs li.active a{
    color: #428bca;
}
.intro-content .tab-content{}
.intro-content .tab-content .tab-item{
    display: none;
}
.intro-content .tab-content .active{
    display: block;
}

.wrapper-form{
    justify-content: center;
    align-items: end;
}

.mt-20{
    margin-top: 20px;
}

.uploadForm .message span{
    display: block;
    padding: 15px 10px;
    margin-top: 30px;
    background: #ffe39c;
    border: 1px #e6bb4e solid;
    border-radius: 5px;
}

.list-download{
    width: 80%;
}

.list-item{
    margin-top: 25px;
}

.list-download .list-item:first-child{
    margin-top: 35px;
}

.preview-box{
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0px 3px 1px #e7e7e7;
    position: relative;
}

.preview-box .tab{
    font-size: 16px;
    font-weight: bold;
    color: #868686;
    margin-bottom: 10px;
}

.preview-box .tab .tab-item{
    margin-right: 30px;
    cursor: pointer;
}

.preview-box .tab .active{
    color: #1667d0;
    text-decoration: underline;
}


.preview-box img{
    max-width: 100%;
    height: auto;
    max-height: 50vh;
}

.preview-box .remove-list{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    display: inline-block;
    line-height: 100%;
    padding: 5px;
}

.image-preview, .rmbg-preview{
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: flex;
}

.image-preview .image-view, .rmbg-preview .image-view{

}

.box-download .download,
.box-download .download-full{
    display: inline-block;
    width: 170px;
}

.box-download .download{

}

.box-download .download-full{
    margin-top: 20px;
    outline: none;
}

.box-download .info,
.box-download .info-full{
    display: block;
    margin-top: 3px;
}

.dl-link{
    margin: 10px 0 0;
    display: inline-block;
    font-size: 12px;
    text-decoration: underline;
}

.transparency-grid {
    background-color: #fff;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3LjkzNyA3LjkzOCIgaGVpZ2h0PSIzMCIgd2lkdGg9IjMwIj48cGF0aCBwYWludC1vcmRlcj0ic3Ryb2tlIGZpbGwgbWFya2VycyIgZD0iTS4wMTQuMDE0SDMuOTdWMy45N0guMDE0ek0zLjk3IDMuOTY4aDMuOTU0djMuOTU1SDMuOTd6IiBmaWxsPSIjZWVlZmYwIi8+PC9zdmc+);
    background-size: 25px;
}

.box-desc{
    margin: 30px 0;
}


.removebg-content .intro,
.removebg-content .uploadForm{
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: end;
}

.box-slim{
    height: 150px !important;
}

.box-download .msg, .showimg .msg{
    margin-top: 30px;
    font-size: 12px;
    color: #ff3131;
}

.preview-box .showimg{
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-box .retry{
    width: 100px;
}

.tab-item img{
    width: 100%;
}


@media (min-width: 1200px) { .container { width: 1440px; } }
@media (max-width: 1200px) {
    #drop-region {
        height: 240px;
    }
}



@media (max-width: 1024px) {
    .xhide {
        display: none;
    }
}

@media (max-width: 992px) {
    #drop-region {
        height: 184px;
    }
}

@media screen and (max-width: 769px) {
    /* STYLES HERE */
    .btn-lg
    btn-lg {
        padding: 0px 8px;
        font-size: 12px;
        height: 35px;
    }

    .btn-lg
    btn-lg [class*=" glyphicon glyphicon-"] {
        margin: 0px;
    }

    #drop-region {
        height: 182px;
    }
}

@media (max-width: 640px) {
    .intro-content, #drop-region{
        width: 100%;
    }
    .wrapper-form{
        align-items: center;
        flex-direction: column;
    }

    .removebg-content .intro{
        margin-bottom: 20px;
    }

    .removebg-content .intro, .removebg-content .uploadForm{
        width: 100%;
    }
}

@media (max-width: 768px) { /* Áp d?ng cho màn hình có chi?u r?ng t?i da 768px (di?n tho?i) */
  .blog-content {
    font-size: 20px; /* Thay d?i kích thu?c font ch? theo ý mu?n */
  }

  .blog-content h1 {
    font-size: 24px; /* Ði?u ch?nh kích thu?c font ch? cho tiêu d? */
  }

  .blog-content p {
    font-size: 20px; /* Ði?u ch?nh kích thu?c font ch? cho do?n van */
  }

  .description {
    font-size: 18px; /* Thay d?i kích thu?c font ch? theo ý mu?n */
  }

  .description p {
    font-size: 18px; /* Thay d?i kích thu?c font ch? theo ý mu?n */
  }
}


h1, .h1 {
    font-size: 25px !important;
    font-family: sans-serif !important;
}


.alert-warning {
    background: linear-gradient(135deg, #fffdf5 0%, #fff7de 100%) !important;
    border-color: #fff !important;
    border-left: 4px solid #ffc107 !important;
    /*border-radius: 15px !important;*/
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
}

.form-control {
border-radius: 1px !important;
}



h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: #bb4a4a !important;
}

/* Nav tabs container - Không có nền */
.nav-tabs {
  background: transparent !important;
  border: none !important;
  padding: 1px 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

/* Mỗi tab item (li) */
.nav-tabs > li {
  flex: 1 1 auto;
  min-width: 100px;
}

/* Liên kết trong tab (a) */
.nav-tabs > li > a {
  background: transparent !important;
  color: #093366 !important;
  /*border-radius: 8px !important;*/
  margin: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 1rem !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%) !important;
  /*border-radius: 30px !important;*/
}

/* Hover */
.nav-tabs > li > a:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
  background: #f8f9fa !important;
  color: #000 !important;
  transform: translateY(-2px);
  border-color: #81bfff !important;
}

/* Active tab */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: linear-gradient(135deg, #00cfff 0%, #0643fb 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4) !important;
    padding: 8px 13px !important;
    border-radius: 1px !important;
}

/* Loại bỏ viền mặc định của bootstrap3 ở container */
.nav-tabs > li > a,
.nav-tabs {
  border-bottom: none !important;
}

/* Đảm bảo khoảng cách đều khi dùng flex */
.nav-tabs > li {
  margin: 3px !important;
}


/* SỬA MÀU NỀN NAV BAR */

.navbar-default {
    background: linear-gradient(135deg, #f56d39 0%, #891313 100%);
    border: none;
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
}

.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-brand {
  color: #fff !important;
  transition: all 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-brand:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.3);
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}


/* Nội dung chính tự động chiếm hết không gian còn lại */
body > *:not(.footer) {
    flex: 1 0 auto;
}

/* Footer luôn ở cuối */
.footer {
    flex-shrink: 0;
}

/* Download Button - Customized for Bootstrap 3 */

.btn-download {
    background: linear-gradient(35deg, #ff8a46 0%, #d33100 100%);
    border: 0;
    color: white !important;
    /*font-weight: 600;*/
    /*font-size: 20px;*/
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 30px;
    /*box-shadow: 0 4px 15px rgba(93, 93, 93, 0.4);*/
    transition: all 0.3s ease;
    /*white-space: normal;*/
    line-height: 1.4;
    display: block;
    margin: 0 auto; /* 👈 CANH GIỮA */
    width: 250px;
    margin-top: 20px;
}

/* Hiệu ứng khi di chuột vào Download Button */
.btn-download:hover, 
.btn-download:focus, 
.btn-download:active {
    background: linear-gradient(135deg, #ffc01f 0%, #ff4700 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 93, 93, 0.6);
    color: white !important;
    outline: none;
}


/* --- FIX STICKY FOOTER (CODE ĐÃ SỬA CHUẨN) --- */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Phần nội dung chính sẽ tự giãn ra để đẩy footer xuống */
/* Loại bỏ các dòng thừa thãi, chỉ cần dòng này là đủ */
body > .container, 
body > .wrapper,
body > div[class^="container"] {
   flex: 1 0 auto; 
}

.footer {
    flex-shrink: 0;
    margin-top: auto !important; /* Quan trọng nhất */
    width: 100%;
    z-index: 999;
}

.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
  background-color: #ffff !important;
}


.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 0px solid #ddd !important;
}

.jumbotron {
    /*padding: 30px;*/
    margin-bottom: 30px;
    color: #816635 !important;
    border-color: #df8031 !important;
    background-color: #fffaedba !important; 
    margin-top: 30px !important;
    
}

