/* Tùy chỉnh CSS để phù hợp với thương hiệu SOII */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F0E6; /* Màu nền be nhạt */
    color: #2C333E; /* Màu chữ xám đậm */
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.highlight-text {
    color: #E4C8A3; /* Màu vàng be nhấn mạnh */
}

/* --- Menu di động --- */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* --- Hiệu ứng hình ảnh --- */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 51, 62, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- Chatbot --- */
#chatbot-container {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* --- Hiệu ứng cuộn trang --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Bong bóng Chat --- */
#chat-bubble {
    transition: transform 0.3s ease-in-out;
}

#chat-bubble:hover {
    transform: scale(1.1);
}
/* Điều chỉnh chatbot container cho di động */
#chatbot-container {
    bottom: 10px; /* Giảm khoảng cách trên di động */
    right: 10px;
    width: 100%; /* Đảm bảo chiếm toàn bộ chiều rộng */
    max-width: 100%; /* Loại bỏ giới hạn chiều rộng */
    height: auto; /* Tự động điều chỉnh chiều cao */
    max-height: 90vh; /* Giới hạn chiều cao trên di động */
    transform: translateY(100%); /* Ẩn ban đầu */
}

#chatbot-container.opacity-100 {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Đảm bảo #chat-messages hiển thị trên di động */
#chat-messages {
    max-height: calc(70vh - 100px); /* Điều chỉnh dựa trên chiều cao input và header */
    overflow-y: auto;
}

/* Media query cho màn hình nhỏ */
@media (max-width: 767px) {
    #chatbot-container {
        padding: 8px;
    }
    #chat-messages {
        padding: 8px;
    }
    #chat-input {
        font-size: 14px; /* Giảm kích thước font trên di động */
        padding: 6px;
    }
}
/* Đảm bảo kích thước hợp lý trên máy tính */
@media (min-width: 768px) {
    #chatbot-container {
        max-width: 400px; /* Giới hạn chiều rộng hợp lý */
        max-height: 70vh; /* Giới hạn chiều cao */
        overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
    }
}
/* Đảm bảo chiều cao giới hạn và cuộn mượt */
#chat-messages {
    flex: 1;
    max-height: calc(70vh - 120px); /* Điều chỉnh dựa trên chiều cao header/footer của chatbot */
    overflow-y: auto;
    scrollbar-width: thin; /* Tùy chỉnh thanh cuộn cho Firefox */
    scrollbar-color: #2C333E #F5F0E6; /* Màu thanh cuộn */
}

/* Tùy chỉnh thanh cuộn cho Chrome, Safari */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}
#chat-messages::-webkit-scrollbar-track {
    background: #F5F0E6;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: #2C333E;
    border-radius: 4px;
    border: 2px solid #F5F0E6;
}