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

/*************** ADD CUSTOM CSS HERE.   ***************/
/* BEGIN CSS 12 Fields ACF bài Portfolio */
.acf-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.acf-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f2fbfa;
  border: 1px solid #cdeeeb;
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.acf-meta-item:hover {
  border-color: #00a89d;
  box-shadow: 0 4px 12px rgba(0, 168, 157, .12);
  transform: translateY(-2px);
}
.acf-meta-item i {
  color: #00a89d;
  font-size: 19px;
  margin-top: 2px;
  flex-shrink: 0;
}
.acf-label {
  display: block;
  font-size: 12px;
  color: #6b7b7a;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.acf-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #013e3a;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .acf-project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .acf-project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* END */

/* BEGIN CSS Table Web */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 26px 0;
    background: #fff;
    border: 1px solid #d6efec;
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
    color: #0f2a27;
    box-shadow: 0 2px 8px rgba(0, 168, 157, .08);
}
table th {
    background: #00a89d;
    color: #ffffff;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 3px solid #007b73;
}
table th:last-child {
    border-right: none;
}
table td {
    padding: 15px 20px;
    border: none;
    border-right: 1px solid #e9f6f4;
    border-bottom: 1px solid #e9f6f4;
    vertical-align: middle;
    line-height: 1.7;
    font-size: 14px;
    color: #0f2a27 !important;
}
table td:last-child {
    border-right: none;
}
/* Căn đều cột đầu tiên */
table th:first-child,
table td:first-child {
    padding-left: 24px;
}
/* Dòng xen kẽ */
table tbody tr:nth-child(odd) {
    background: #ffffff;
}
table tbody tr:nth-child(even) {
    background: #f0faf9;
}
/* Hover */
table tbody tr:hover {
    background: #dcf3f1;
}
/* Link dự án */
table a {
    color: #00877e;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
table a:hover {
    color: #005e58;
    border-bottom: 1px solid #005e58;
}
/* Dòng cuối không cần viền dưới */
table tbody tr:last-child td {
    border-bottom: none;
}
/* Mobile */
@media (max-width: 849px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    table th,
    table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    table th:first-child,
    table td:first-child {
        padding-left: 18px;
    }
}
/* END CSS Table Web */

/*BEGIN Giảm khoảng cách các ô nhập CF7*/
.wpcf7-form input,
.wpcf7-form textarea {
    margin-bottom: 5px !important; /* Hoặc giá trị nhỏ hơn như 5px tùy bạn */
}
/*END*/
/*BEGIN Giảm khoảng cách thông báo đăng ký CF7*/
.wpcf7-response-output {
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important; /* Khoảng cách giữa form và thông báo */
    width: 100% !important;
    text-align: center; /* Căn giữa nếu cần */
}
/*END Giảm khoảng cách thông báo đăng ký CF7*/
/*BEGIN CSS Contact Form 7*/
.form-flat input[type="text"],
.form-flat input[type="tel"],
.form-flat input[type="email"] {
    border: 2px solid #ccc;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-flat input:focus {
    border-color: #f44336;
    outline: none;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
}

.flex-col.ml-half {
    display: flex;
    justify-content: center; /* Căn giữa nút trong cột */
    flex-grow: 0; /* Ngăn cột tự động mở rộng */
}
/*END CSS Contact Form 7*/
/*BEGIN Kích cỡ chữ thẻ H1 H2 H3 H4 H5*/
h1 { font-size: 24px !important; }
h2 { font-size: 22px !important; }
h3 { font-size: 20px !important; }
h4 { font-size: 18px !important; }
h5 { font-size: 16px !important; }
/*END Kích cỡ chữ thẻ H1 H2 H3 H4 H5*/
/*Code style Bài viết liên quan cùng chủ đề*/
.flatsome_recent_posts li {
    margin-bottom: 0;
    list-style: none;
}
.recent-blog-posts {
    padding: 6px 0;
}
.flatsome_recent_posts li .badge {
    margin-left: 0;
    width: 100px;
    height: 70px;
}
.flatsome_recent_posts li .badge .badge-inner {
    border-radius: 6px;
    border: none !important;
    padding: 0;
}
.recent-blog-posts a{
font-weight: 500;
    margin-bottom: 6px;
font-size: 15px;
    line-height: 18px;
    color: #2C2C2C;
}
.recent-blog-posts a:hover{color:orangered}
/*end code style Bài viết liên quan cùng chủ đề*/
.dang-ky-ngang .wpcf7-text{
    border-radius: 2px
}

.dang-ky-ngang .wpcf7-submit,.div-submit .wpcf7-submit{
      text-transform: initial;
    color: #ffffff;
    background-color: #c20c11;
    background: #c20c11;
    background: -webkit-linear-gradient(135deg,#c20c11 30%,#a30836 100%);
    background: linear-gradient(135deg,#c20c11 30%,#a30836 100%);
    /* border: 1px solid; */
    /* background: transparent; */
    padding: 0px 40px;
    border-radius: 2px;
    width: 100%;
}
.dang-ky-ngang {

    margin: 0px !important;

}
.dang-ky-ngang .div-nho{
    padding: 0px 4px;
 
}

/************/

.section-form-lien-he .div-lien-he{
	text-align: left !important;
}
.section-form-lien-he .div-lien-he .div-submit .wpcf7-submit{
	width: auto !important;
}
.section-lien-he{
      
    background-image: url(images/footer-background.png);
    background-color: rgba(0,77,64,1);
   
    background-attachment: scroll;
    background-position: top left;
    background-repeat: no-repeat;
}
.section-lien-he .wpcf7-form .wpcf7-text ,.section-lien-he .wpcf7-form .wpcf7-textarea{
    background-color: transparent !important; 
    color: white !important
}
.section-lien-he .wpcf7-form .wpcf7-submit{
    background-color:  rgb(238, 158, 10);
}
.section-lien-he .wpcf7-form .div-submit{
    text-align: center;
}
.section-lien-he input.wpcf7-text::-webkit-input-placeholder , .section-lien-he .wpcf7-textarea::-webkit-input-placeholder{
  color: white !important;
}
div.wpcf7-mail-sent-ok{
    color: white;
        border: 2px solid rgb(238, 158, 10);
}
.div-lien-he{
    text-align: center;
}
.div-lien-he h4{
  
}

.wpcf7-form-control-wrap .cf7-form-icons {
    left: 7px;
    top: 10px;
    color: black !important;
    z-index: 999
}
.cf7-icon-field{
    background: white !important
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}