/*
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.   ***************/
@font-face{
    font-family: "Ares-font";
    src: url("font/2414e9e1fff45ccb58f42ca2f2e40e07.eot");
    src: url("font/2414e9e1fff45ccb58f42ca2f2e40e07.eot?#iefix")format("embedded-opentype"),
        url("font/2414e9e1fff45ccb58f42ca2f2e40e07.woff")format("woff"),
        url("font/2414e9e1fff45ccb58f42ca2f2e40e07.woff2")format("woff2"),
        url("font/2414e9e1fff45ccb58f42ca2f2e40e07.ttf")format("truetype"),
        url("font/2414e9e1fff45ccb58f42ca2f2e40e07.svg#Ares-font")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}

body {
    font-family: 'Ares-font', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ares-font', sans-serif;
}

.section-bg :is(img,picture,video) {
    object-fit: inherit !important;
    transform: scaleX(-1);
}

/* === WIDGET BỘ LỌC TIN TỨC === */

.filter-section {
    background-color: #fff;
    border: 2px solid #30a753;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-section h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    background-color: #30a753;
    padding: 8px;
    text-transform: uppercase;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.filter-list {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
}

.filter-item {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-item:hover {
    background-color: #e6f4e6;
}

.filter-item.active {
    font-weight: bold;
    color: #2e7d32;
    background-color: #d9f4dd;
}

.filter-item.filter-parent {
    font-weight: bold;
}

/* === WIDGET MỤC LỤC === */
.toc-list {
    list-style: none;
    padding-left: 0 !important;
    counter-reset: toc-counter;
}

.toc-item {
    margin-left: 0;
    margin-bottom: -5px;
    line-height: 1.5;
}

.toc-level-1 {
    font-weight: bold;
    margin-top: 10px;
}

.toc-level-2 {
    margin-left: 5px;
}

.toc-level-3 {
    margin-left: 20px;
}

.toc-level-4 {
    margin-left: 40px;
}

.toc-widget h3 {
    background: #30a753;
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Căn giữa nội dung */
    gap: 10px; /* tạo khoảng cách với icon */
    user-select: none;
  }

  .toc-widget .toggle-icon {
    font-size: 16px;
    color: #fff;
    line-height: 1;
  }

.toc-placeholder {
    display: none;
}

/* === POST HEADER === */
.custom-post-header {
    background: url('http://localhost/moitruongxanh/wp-content/uploads/2025/03/ttt.png') no-repeat bottom center;
    background-size: cover;
    padding: 60px 20px 100px;
}

.custom-post-header-inner {
    max-width: 900px;
    margin: 0 auto;
}

.custom-post-header .breadcrumbs {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 10px;
}

.social-icon {
    display: inline-block;
    margin: 0 6px;
    font-size: 18px;
    color: #30a753;
    transition: 0.3s;
}
.social-icon:hover {
    color: #1a8f4c;
}

/* === BREADCRUMBS === */
.breadcrumbs-wrap {
    margin-top: 20px;
}

/* Giao diện chung cho breadcrumb */
.breadcrumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center; /* ✅ giúp cân giữa theo chiều cao */
    gap: 5px;
    font-size: 14px;
}

/* Các link breadcrumb (nút xanh) */
.breadcrumbs a {
    background-color: #4285f4;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    line-height: 1.4;
    height: 30px;
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a:hover {
    background-color: #1976D2;
}

/* Dấu phân cách '/' */
.breadcrumbs .delimiter {
    color: #999;
    margin: 0 4px;
    font-weight: normal;
}

/* Mục cuối cùng (không phải link) – căn đều với các nút */
.breadcrumbs span:last-child {
    font-weight: bold;
    color: #222;
    line-height: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
}

/* ===== Single Dự Án ===== */
.du-an-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Phần đầu: Ảnh + thông tin */
.du-an-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch
}

.du-an-thumbnail {
    flex: 1;
    max-width: 500px;
}

.du-an-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.du-an-info {
    flex: 1;
    border: 2px solid #4CAF50;
    padding: 20px;
    border-radius: 10px;
    min-width: 280px;
}

.du-an-title {
    font-size: 25px;
    font-weight: 400;
    color: #000;
}

.du-an-meta {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
}
.du-an-meta li {
    margin-bottom: 6px;
    font-size: 15px;
}

.du-an-social {
    margin-bottom: 15px;
}
.du-an-social a {
    font-size: 20px;
    margin-right: 10px;
    color: #4CAF50;
}

.btn-tu-van {
    display: inline-block;
    background: #4285F4;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.btn-tu-van:hover {
    background: #2e6fd8;
}

/* Tabs */
.du-an-tabs {
    margin: 40px 0;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.tab-buttons li {
    background: #4CAF50 !important;
    color: white;
    padding: 4px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}
.tab-buttons li.active {
    background: #2e7d32;
}
.tab-content .tab-pane {
    display: none;
    font-style: italic;
}
.tab-content .tab-pane.active {
    display: block;
    padding-top: 10px;
    font-style: normal;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
}

.du-an-content {
    line-height: 1.8;
    font-size: 16px;
    margin-top: 30px;
}

/* Dự án liên quan */
.du-an-lien-quan {
    margin-top: 60px;
}
.du-an-lien-quan h2 {
    text-align: center;
    font-size: 22px;
    color: #4285F4;
    margin-bottom: 30px;
}
.du-an-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.du-an-card {
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}
.du-an-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.du-an-card img {
    border-radius: 6px;
    margin-bottom: 10px;
    max-width: 100%;
    height: 160px;
    object-fit: cover;
}
.du-an-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}

/* ===== Header Dự án (breadcrumb + background) ===== */
.custom-post-header {
    padding: 80px 20px;
    position: relative;
    color: #333;
    background: url('/wp-content/themes/flatsome-child/img/bg-header.png') no-repeat center center;
    background-size: cover;
}

.custom-post-header::before {
    content: "";
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.custom-post-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.custom-post-header .post-title {
    font-size: 36px;
    color: #4285F4;
    font-weight: bold;
    margin-bottom: 20px;
}

.breadcrumbs-wrap {
    font-size: 14px;
    color: #000;
    text-align: center;
}

.woocommerce-breadcrumb a {
    background: #4285F4;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 5px;
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
    text-transform: uppercase;
    box-sizing: border-box;
}

.woocommerce-breadcrumb .divider {
    margin: 0 5px;
    color: #333;
}

@media (max-width: 992px) {
    .du-an-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .du-an-grid {
        grid-template-columns: 1fr;
    }
    .text-block-responsive {
        font-size: 15px !important;
    }
    .du-an-top {
        flex-direction: column; 
    }
    .du-an-thumbnail img {
        height: auto;         
        object-fit: contain;  
    }
    .custom-post-header {
        padding: 40px 15px;
    }
    .custom-post-header .post-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .breadcrumbs-wrap {
        font-size: 12px;
    }
    .woocommerce-breadcrumb a {
        display: inline-block;
        padding: 8px 12px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        vertical-align: middle;
        margin: 3px 4px;
    }    
    .woocommerce-breadcrumb .divider {
        display: inline-block;
        margin: 0 4px;
    }
    .tab-buttons li {
        padding: 4px 10px;
    }
}

/* ========================
   Custom Contact Form 7 UI
========================= */
.custom-cf7-box {
    background-color: #4285F4;
    padding: 30px 30px 0 30px;
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
    color: white;
}

.wpcf7 label {
    color: #fff;
}

.custom-cf7-box input[type="text"],
.custom-cf7-box input[type="email"],
.custom-cf7-box input[type="tel"],
.custom-cf7-box select,
.custom-cf7-box textarea {
    width: 100%;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #2f72d3;
    color: white;
    box-sizing: border-box;
    appearance: none;
}

.custom-cf7-box select {
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.custom-cf7-box ::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.custom-cf7-box input[type="submit"] {
    background-color: #ffffff;
    color: #4285F4;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-cf7-box input[type="submit"]:hover {
    background-color: #30a753;
}

.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}
.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== MENU TÙY CHỈNH ========== */
/* === 1. Dropdown tổng thể === */
.header-nav .nav-dropdown {
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  overflow: hidden;
  padding: 0;
  border: none;
  position: absolute;
  z-index: 9999;
}

/* === 2. Mục con mặc định === */
.header-nav .nav-dropdown li a,
.header-nav .nav-dropdown li a:hover,
.header-nav .nav-dropdown li.active > a,
.header-nav .nav-dropdown li.current-menu-item > a,
.header-nav .nav-dropdown li.current_page_item > a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 20px; /* ✅ cố định mọi trạng thái */
  font-size: 15px;
  color: #222;
  border-bottom: 1px solid #eee;
  margin: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

/* === 3. Hover & Active (tràn full) === */
.header-nav .nav-dropdown li a:hover,
.header-nav .nav-dropdown li.active > a,
.header-nav .nav-dropdown li.current-menu-item > a,
.header-nav .nav-dropdown li.current_page_item > a {
  background-color: #30a753;
  color: #fff;
  font-weight: bold;
  border-radius: 0 !important;
}

/* === 4. Xóa border cuối cùng === */
.header-nav .nav-dropdown li:last-child a {
  border-bottom: none;
}

/* === 5. Tam giác chỉ submenu (nếu cần) === */
.header-nav .nav-dropdown:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #30a753;
}

.nav-dropdown-default .nav-column li > a,
.nav-dropdown.nav-dropdown-default > li > a {
  margin: 0 !important;
  padding: 12px 20px !important;
  border-bottom: none !important;
  width: 100%;
  display: block;
  box-sizing: border-box;
  font-size: 15px;
  color: #222;
  transition: background 0.2s ease, color 0.2s ease;
}

.container .row:not(.row-collapse), .lightbox-content .row:not(.row-collapse), .row .gallery, .row .row:not(.row-collapse) {
    margin-top:20px;
}

/* === Chuyên mục dự án === */
.filter-list .child-cat {
    padding-left: 1rem;
  }
  
  .filter-list .child-cat.level-2 {
    padding-left: 1.75rem;
  }
  
  .filter-list .sidebar-filter-item strong {
    font-weight: bold;
  }
  .project-horizontal-card {
    display: flex;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    align-items: flex-start;
    transition: box-shadow 0.2s ease;
  }
  
  .project-horizontal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  }
  
  .card-thumb img {
    width: 150px;
    height: auto;
    border-radius: 5px;
  }
  
  .card-content {
    flex: 1;
  }
  
  .card-title a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007a3d;
    text-decoration: none;
  }
  
  .card-title a:hover {
    text-decoration: underline;
  }
  
  .card-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0 1rem;
  }
  
  .button.outline.small {
    border: 1px solid #007a3d;
    color: #007a3d;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
  }
  
  .button.outline.small:hover {
    background: #007a3d;
    color: #fff;
  }

  .project-card-archive {
    border: 2px dotted #42af46;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .project-card-archive:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-3px);
  }
  
  .project-card-archive .project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .project-card-archive .project-info {
    margin-top: 1rem;
  }
  
  .project-card-archive .project-info h3 {
    font-size: 1.05rem;
    color: #1d3557;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.4;
  }
  
  .project-card-archive .project-info h3 a {
    text-decoration: none;
    color: inherit;
  }
  
  .project-card-archive .project-info p {
    font-size: 0.95rem;
    margin: 0.25rem 0;
    color: #444;
}
.project-card-archive .project-thumb {
    position: relative;
    width: 100%;
    padding-top: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}
  
.project-card-archive .project-thumb a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
  
.project-card-archive .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.my-bg-section {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}
.smes{
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.image-container {
  padding: 10px; /* Tạo khoảng cách bên trong đủ để chứa viền ảnh */
  box-sizing: border-box;
}

.fullwidth-section {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .section-flat {
        background-color: #e9f3ec;
    }
    .col-inner {
        padding: 0 !important;
    }
    .slider-row-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 12px;
    }
    .slider-row-mobile .col {
        flex: 0 0 80%;
        scroll-snap-align: start;
        min-width: 250px;
        max-width: none;
    }
    .slide-stack-class {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .slide-stack-class > * {
        flex: 0 0 80% !important;
        scroll-snap-align: start;
        margin-right: 10px;
    }
    .slider-section {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
    }
}