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

/*************** ADD CUSTOM CSS HERE.   ***************/

.icon-home .icon {
	color: #4a3728;
	background-color: #fff;
	border: none;
}
.icon-home i {
	margin-top: 5px !important;
}
.header-inner {
  position: relative;
}

.header-inner .hide-for-medium.flex-left.flex-grow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  flex: unset;
}

.header-inner .header-nav-main.nav-left {
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
}
/* Container chính */
.contact-form-container-IMTA {
    padding: 20px;
}

/* Định dạng các ô input và textarea */
.contact-form-container-IMTA .input-field-IMTA,
.contact-form-container-IMTA .textarea-field-IMTA {
    width: 100%;
    background: transparent;
    border: 1px solid #4a3728; /* Màu border theo yêu cầu */
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #4a3728;
    box-sizing: border-box;
	height: 40px;
}

/* Chiều cao riêng cho ô Message */
.contact-form-container-IMTA .textarea-field-IMTA {
    height: 150px;
}

/* Màu chữ Placeholder */
.contact-form-container-IMTA .input-field-IMTA::placeholder,
.contact-form-container-IMTA .textarea-field-IMTA::placeholder {
    color: #4a3728;
    opacity: 0.8;
}

/* Định dạng nút Submit */
.contact-form-container-IMTA .submit-button-IMTA {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Kích thước và khoảng cách */
    min-width: 250px; /* Điều chỉnh tùy theo độ dài bạn muốn */
    padding: 5px 30px;  
    /* Hiệu ứng bo góc (Pill shape) */
    border-radius: 50px;
    background: linear-gradient(to right, #c29958 0%, #d8c094 50%, #b89050 100%);
    /* Phông chữ */
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.contact-form-container-IMTA .submit-button-IMTA:hover {
    background-color: #c6a981;
    opacity: 0.9;
}

/* Loại bỏ viền xanh khi click vào ô nhập liệu */
.contact-form-container-IMTA .input-field-IMTA:focus,
.contact-form-container-IMTA .textarea-field-IMTA:focus {
    outline: none;
    border-color: #4a3728;
}
/* 1. Xóa bỏ mọi border mặc định của khung accordion */
.accordion {
    border: none !important;
}

/* 2. Thiết lập border cho từng item */
.accordion-item {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    /* Chỉ giữ lại border dưới để các item ngăn cách nhau bằng 1 đường duy nhất */
    border-bottom: 1px solid #4a3728 !important; 
    margin-bottom: 0 !important;
}

/* 3. Tùy chọn: Nếu bạn muốn đường kẻ cuối cùng biến mất để giống ảnh mẫu */
/* .accordion-item:last-child {
    border-bottom: none !important;
} */

/* 4. CSS cho phần tiêu đề */
.accordion-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 !important;
    color: #4a3728 !important;
    text-decoration: none !important;
    background: transparent !important;
}

    
/* 5. Ẩn icon mặc định và thay bằng dấu + */
.accordion-title .toggle, 
.accordion-title i {
    display: none !important;
}

.accordion-title::after {
    content: '+';
    font-size: 30px;
    font-weight: 300;
    color: #4a3728;
}

/* 6. Nội dung bên trong khi mở ra */
.accordion-inner {
    padding: 10px 0 20px 0 !important;
    color: #4a3728 !important;
    background: transparent !important;
}
.class-popup {
	z-index: 2;
}
.services-container {
    display: flex;
    height: 800px;
    width: 100%;
    gap: 2px;
    background-color: #fff;
}

.service-card {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    text-decoration: none;
}

/* lớp link phủ toàn bộ card */
.service-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

/* lớp phủ tối ảnh */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    flex: 1.5;
}

.service-title {
    position: relative;
    z-index: 2;
    color: #fff;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: lowercase;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1;
    align-self: flex-start;
    pointer-events: none;
}

.shop-btn {
    position: relative;
    z-index: 2;
    background: #fff;
    color: #333;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: lowercase;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    pointer-events: none;
}

.service-card:hover .shop-btn {
    background: #000;
    color: #fff;
}

/* mobile */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        height: auto;
    }

    .service-card {
        height: 400px;
        flex: none;
    }

    .service-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.8rem;
    }

    .service-card:hover {
        flex: none;
    }
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* Container bài viết liên quan */
.related-posts-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.related-title {
    font-size: 28px;
    font-family: "Playfair Display", serif; /* Hoặc font chữ sang trọng bạn đang dùng */
    margin-bottom: 30px;
    font-weight: 400;
}

/* Grid hiển thị 4 cột */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Từng item bài viết */
.related-item {
    text-align: left;
}

.related-thumbnail img {
    width: 100%;
    height: 300px; /* Điều chỉnh chiều cao cho phù hợp với ảnh dọc của bạn */
    object-fit: cover;
    margin-bottom: 15px;
}

.related-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.related-post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.related-post-title a:hover {
    color: #c4a47c; /* Màu nhấn khi hover */
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}