/*
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 9 Fields ACF bài Portfolio */
.acf-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.acf-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 16px;
}

.acf-meta-item i {
  color: #c72528;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.acf-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}

.acf-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

@media (max-width: 768px) {
  .acf-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .acf-project-grid {
    grid-template-columns: 1fr;
  }
}
/*END*/
/* BEGIN CSS Table web BĐS */
table{
    width:100%;
    border-collapse:collapse;
    border-spacing:0;
    margin:20px 0;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:8px;
    overflow:hidden;

    font-size:15px;
    color:#000;

    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

table th{
    background:#aa8943;
    color:#fff;
    padding:14px 16px;
    text-align:left;
    font-weight:700;
    font-size:15px;
    border:1px solid #c29d52;
}

table td{
    padding:10px 12px;
    border:1px solid #e5e5e5;
    vertical-align:middle;
    line-height:1.7;
    font-size:14px;
    color:#000 !important;
}

/* Căn đều cột đầu tiên */
table th:first-child,
table td:first-child{
    padding-left:20px;
}

/* Dòng xen kẽ */
table tbody tr:nth-child(odd){
    background:#ffffff;
}

table tbody tr:nth-child(even){
    background:#f7f5f0;
}

/* Hover */
table tbody tr:hover{
    background:#f8f5ef;
}

/* Link dự án */
table a{
    color:#1f5e37;
    font-weight:600;
    text-decoration:none;
}

table a:hover{
    color:#aa8943;
    text-decoration:underline;
}

/* Viền rõ hơn */
table th,
table td{
    border-color:#ddd;
}

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

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
        -webkit-overflow-scrolling:touch;
    }

    table th,
    table td{
        padding:12px 14px;
        font-size:14px;
    }

    table th:first-child,
    table td:first-child{
        padding-left:16px;
    }

}
/* END */
/*BEGIN Giảm khoảng cách các ô nhập CF7*/
.wpcf7-form input,
.wpcf7-form textarea {
    margin-bottom: 7px !important; /* Hoặc giá trị nhỏ hơn như 5px tùy bạn */
}
/*END*/
/*BEGIN Kích cỡ chữ thẻ H1 H2 H3 H4 H5*/
h1 { font-size: 26px !important; }
h2 { font-size: 25px !important; }
h3 { font-size: 21px !important; }
h4 { font-size: 18px !important; }
h5 { font-size: 15px !important; }
/*END/
/*BEGIN 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 Bài viết liên quan cùng chủ đề*/
/* ===== Form đăng ký ngang ===== */
.dang-ky-ngang {
    margin: 0;
}
.dang-ky-ngang .div-nho {
    padding: 0 4px;
}
.dang-ky-ngang .wpcf7-form-control {
    border-radius: 10px;
}
/* ===== Form đăng ký dọc ===== */
.dang-ky-doc .wpcf7-form-control {
    border-radius: 10px;	
}
/* ===== Nút Submit ===== */
.dang-ky-ngang .wpcf7-submit,
.dang-ky-doc .wpcf7-submit {
    width: 100%;
    padding: 0 10px;
    border-radius: 10px;
    text-transform: initial;
    color: white;
    background: linear-gradient(135deg, #c20c11 30%, #a30836 100%);
}
/* ===== Icon CF7 ===== */
.wpcf7-form-control-wrap .cf7-form-icons {
    left: 7px;
    top: 12px;
    color: black !important;
    z-index: 999;
}

.cf7-icon-field {
    background: white !important;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}