 /* General Body Style */
 body {
    /* font-family: Arial, sans-serif; */
    margin: 0;
}

/* Color Palette from Image */
:root {
    --bg-purple:rgb(220, 53, 109);
    --text-white: #ffffff;
    --accent-beige: #e0d0a4;
    --ribbon-red: #e52e2d;
    --nav-bg-pink: #ff7daf;
    --nav-text-purple: #fff;
    --bg-color: #fff9fc;
    --border-top-color: #d9d2f0;
    --heading-color: #3f3264;
    --text-color: #4a4a4a;
    --primary-button-color: #e83e8c;
    --light-pink-bg: #ffd7ec;
    --pink-line-color: #f0e6f2;
}



/* --- CSS Cho Banner Ghim Bên Trái (Bản tối ưu) --- */

/* Container chính của banner */
.left-side-banner-container {
    /* QUAN TRỌNG: Giúp banner đứng yên khi cuộn trang */
    position: fixed; 
    
    /* Vị trí của banner trên màn hình */
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    
    /* QUAN TRỌNG: Đảm bảo banner nổi lên trên tất cả */
    z-index: 9999; 
    
    /* Hiệu ứng khi ẩn/hiện */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Class để ẩn banner đi */
.left-side-banner-container.is-hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    pointer-events: none;
}

/* Link chứa ảnh banner */
.left-side-banner {
    /* BẮT BUỘC: Giúp container cha nhận đúng kích thước và layout không bị vỡ */
    display: block; 
    position: relative; /* Giúp tạo ngữ cảnh định vị */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.left-side-banner img {
    /* BẮT BUỘC: Đảm bảo ảnh hiển thị đúng và loại bỏ khoảng trống thừa */
    display: block; 
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

.left-side-banner:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Nút đóng 'X' */
.close-left-banner-btn {
    /* Định vị nút 'X' so với container cha */
    position: absolute;
    
    /* Vị trí của nút 'X' */
    top: -12px;
    right: -12px;
    
    /* Đảm bảo nút 'X' nằm trên cả ảnh banner */
    z-index: 10;

    /* Các thuộc tính trang trí cho nút */
    width: 28px;
    height: 28px;
    background-color: #d9534f;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    padding: 0;
}

.close-left-banner-btn:hover {
    background-color: #c9302c;
    transform: scale(1.1) rotate(90deg);
}

/* Ẩn banner trên màn hình nhỏ (mobile và tablet) */
@media (max-width: 991.98px) {
    .left-side-banner-container {
        /* Xóa thuộc tính 'left' cũ */
        left: auto;
        
        /* Đặt thuộc tính 'right' để đẩy sang phải */
        right: 20px;
    }
    .left-side-banner img {
        display: block;
        max-width: 130px;
        height: auto;
        border-radius: 8px;
    }
    .left-side-banner-container {
        left: auto;
        right: 10px;
    }
}


/* CSS cho thanh thông báo Messenger - Phiên bản cải thiện */
.messenger-notification-bar {
    /* Vị trí và kích thước - CẢI THIỆN */
    position: fixed;
    top: 15px;
    left: 10px;
    right: 10px;
    width: auto;
    z-index: 99999; /* Tăng z-index cao hơn */
    
    /* Giao diện */
    background-color: rgba(25, 25, 25, 0.95); /* Tăng độ đậm */
    color: white;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4); /* Tăng shadow */
    backdrop-filter: blur(8px); /* Tăng blur */
    -webkit-backdrop-filter: blur(8px);
    
    /* Layout */
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    
    /* Animation Ẩn/Hiện - CẢI THIỆN */
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: hidden;
    pointer-events: none;
    
    /* Thêm cho touch interaction */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Lớp .is-visible */
  .messenger-notification-bar.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Hiệu ứng khi đang được kéo */
  .messenger-notification-bar.dragging {
    transition: none;
  }
  
  /* Icon Wrapper */
  .messenger-icon-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .messenger-icon-wrapper img {
    width: 40px;
    height: 40px;
    display: block;
  }
  
  /* Text Content */
  .messenger-text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  .messenger-text-line1 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
  }
  
  .messenger-text-line1 strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
  }
  
  .messenger-text-line1 span {
    font-size: 0.85rem;
    color: #b0b3b8;
  }
  
  .messenger-text-line2 {
    font-size: 0.9rem;
    color: #e4e6eb;
  }
  
  /* Close button - THÊM MỚI */
  .messenger-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
  }
  
  .messenger-close-btn:hover {
    background: rgba(255,255,255,0.3);
  }
  




/* Container cho ảnh nhạy cảm */
.sensitive-image-container {
    position: relative; /* Quan trọng: để các phần tử con (overlay, text) định vị tuyệt đối theo nó */
    display: inline-block; /* Hoặc block, tùy layout mong muốn */
    overflow: hidden; /* Đảm bảo không có gì tràn ra ngoài container */
    /* Có thể đặt width/height nếu cần, hoặc để ảnh tự định kích thước */
  }
  
  /* Ảnh gốc */
  .sensitive-image-container img {
    display: block; /* Loại bỏ khoảng trắng dưới ảnh */
    width: 100%; /* Ảnh lấp đầy chiều rộng của container */
    height: 500px; /* Duy trì tỷ lệ khung hình */
  }
  
  /* Lớp phủ tối */
  .sensitive-image-container .overlay-1 {
    position: absolute; /* Định vị tuyệt đối */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* Lấp đầy toàn bộ container */
    background-color: rgba(
      0,
      0,
      0,
      0.7
     ); /* Màu đen với độ mờ 70% (có thể điều chỉnh 0.5 - 0.8 tùy ý) */
    z-index: 2; /* Đảm bảo nó nằm trên ảnh */
    transition: opacity 0.3s ease; /* Tạo hiệu ứng mờ dần khi hover */
  }
  
  /* Chữ cảnh báo */
  .sensitive-image-container .warning-text {
    position: absolute; /* Định vị tuyệt đối */
    top: 50%; /* Đưa tâm chữ về giữa container theo chiều dọc */
    left: 50%; /* Đưa tâm chữ về giữa container theo chiều ngang */
    transform: translate(
      -50%,
      -50%
    ); /* Dịch chuyển chữ ngược lại 50% chiều rộng và chiều cao của nó để căn giữa hoàn hảo */
    color: white; /* Màu chữ */
    font-size: 1.2em; /* Kích thước chữ */
    font-weight: bold;
    text-align: center;
    z-index: 3; /* Đảm bảo nó nằm trên lớp phủ */
    pointer-events: none; /* Quan trọng: cho phép click/hover xuyên qua lớp chữ để tương tác với container */
    transition: opacity 0.3s ease; /* Tạo hiệu ứng mờ dần khi hover */
  }
  
  /* Hiệu ứng khi hover vào container */
  .sensitive-image-container:hover .overlay-1 {
    opacity: 0; /* Lớp phủ trở nên trong suốt */
  }
  
  .sensitive-image-container:hover .warning-text {
    opacity: 0; /* Chữ cảnh báo trở nên trong suốt */
  }
  
  /* Tùy chọn: Ảnh cũng có thể có transition nếu muốn */
  .sensitive-image-container:hover img {
    /* Ví dụ: có thể bỏ filter nếu bạn dùng filter thay cho overlay */
    /* filter: brightness(1); */
  }
  /* CSS cho khối cha */
  .parent-container {
    text-align: center; /* Điều này sẽ căn giữa nội dung kiểu inline, inline-block, và text bên trong nó */
    /* Các thuộc tính khác của khối cha (ví dụ: padding, background, border...) */
  }
  
  /* Giữ nguyên các CSS đã có cho .sensitive-image-container và các phần tử bên trong */
  .sensitive-image-container {
    position: relative;
    display: inline-block; /* GIỮ NGUYÊN thuộc tính này */
    overflow: hidden;
    /* ... các thuộc tính khác của container ... */
  }
  
  
  


/* modal */


/* ========== CSS CHO MODAL FORM ĐẶT HẸN ========== */
.svs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: svs-fadeIn 0.3s;
}
.svs-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: svs-slideIn 0.4s;
}
@keyframes svs-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes svs-slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.svs-modal__close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.svs-modal__close-btn:hover {
    color: #333;
}
.svs-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #e57ab3;
}
.svs-form__group {
    margin-bottom: 15px;
}
.svs-form__group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}
.svs-form__group input,
.svs-form__group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.svs-form__group textarea {
    resize: vertical;
    min-height: 80px;
}
.svs-form__submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #e56faf;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.svs-form__submit-btn:hover {
    background-color: #005a4f;
}
/* end modal */
/* //menumobi */





/* menu */

/* Định dạng dropdown mở rộng */
.mega-dropdown {
    width: 30vw;
    /* Chiếm toàn bộ chiều rộng màn hình */
    left: 0;
    right: 0;
    padding: 20px;
    background: #fff;
    /* Đảm bảo màu nền */
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Căn chỉnh các cột trong dropdown */
  .mega-dropdown .row {
    display: flex;
    flex-wrap: nowrap;
  }
  
  /* Định dạng từng cột */
  .mega-dropdown .dropdown-column {
    /* padding: 10px; */
    border-right: 1px solid #ddd;
    /* Viền phân cách cột */
  }
  /* Xóa viền của cột cuối */
  .mega-dropdown .dropdown-column:last-child {
    border-right: none;
  }
  
  /* Căn chỉnh tiêu đề chuyên khoa */
  .mega-dropdown h6 {
    font-weight: bold;
    border-bottom: 2px solid #2f6d56;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #2f6d56;
  }
  /* Định dạng mục dropdown */
  .mega-dropdown .dropdown-item {
    padding: 5px 0;
    color: #333;
    display: block;
  }
  
  .mega-dropdown .dropdown-item:hover {
    background: #2f6d56;
    color: white;
  }
  /* Tùy chỉnh Offcanvas */
  .offcanvas {
    background: #e0fff4;
  }
  
  .offcanvas-title {
    font-size: 22px;
    font-weight: bold;
    /* color: #007bff; */
  }
  /* Style cho danh sách menu */
  .offcanvas-body .nav-item {
    padding: 10px;
  }
  
  .offcanvas-body .nav-link {
    font-size: 15px;
    font-weight: bold;
    color: #026356;
    border-bottom: 1px solid #026356;
  }


  
  
  .offcanvas-body .nav-link:hover {
    /* color: #007bff; */
  }
  /* Nút đóng */
  .btn-close {
    background: none;
    font-size: 20px;
  }
  
  /* Style cho hotline */
  .hotline-box {
    background: red;
    color: white;
    padding: 0px;
    border-radius: 10px;
  }
  
  .hotline-title {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
  }
  
  .hotline-number {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
  }
  .nav-item {
    display: block;
  }
  
  .submenu {
    display: none;
    /* Ẩn menu con ban đầu */
    padding-left: 20px;
  }
  
  .submenu.show {
    display: block;
    /* Hiển thị khi có class .show */
  }
  
  .header-1 {
    background-color: rgb(238 176 196);
    color: #ffd700;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 62px;
  }
  .header-1.show {
    width: 100%;
    position: fixed;
    transition: top 0.3s;
    z-index: 1000;
  }
  .menu-group-1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #026356;
    padding: 0 8px;
  }
  
  .menu-icon-1 {
    font-size: 38px;
    color: #ffffff;
  }
  
  .menu-text-1 {
    color: #ffd700;
    font-size: 14px;
  }
  
  .brand-group-1 {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
  }
  
  .brand-logo-1 {
    width: 90px;
    height: 90px;
    margin-right: -20px;
  }
  
  .brand-text-1 {
    color: #403939;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  .brand-subtext-1 {
    color: #ffffff;
    font-size: 16px;
    text-align: center;
  }
  
  /* menu-mobi */


  
   /* Dropdown toggle styles */
   .menu-group-1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: rgb(229 156 180);
    padding: 5px 12px;
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
}

.menu-group-1:hover {
    background: rgb(195 121 145);
    /* transform: translateX(5px); */
}

.menu-icon-1 {
    font-size: 28px;
    color: #403939;
    transition: transform 0.3s ease;
}

.menu-icon-1:hover {
    transform: rotate(90deg);
}

.menu-text-1 {
    color: #403939;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.brand-group-1 {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    gap: 15px;
}

.brand-logo-1 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* border: 3px solid #ffd700; */
    transition: transform 0.3s ease;
}

.brand-logo-1:hover {
    transform: scale(1.1) rotate(5deg);
}

.brand-text-menu-1 {
    color: #403939;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtext-1 {
    color: #403939;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}

.btn-large-close {
    background: rgba(255, 255, 255, 0.1);
    /* border: 2px solid #ffd700; */
    color: #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-large-close:hover {
    background: #ffd700;
    color: #026356;
    transform: rotate(90deg);
}

/* Offcanvas body */
.offcanvas-body {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

/* Navigation styles */
/* .navbar-nav {
    width: 100%;
} */

.nav-item-1 {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-item-1:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link-mobi {
    font-size: 16px;
    font-weight: 600;
    color: #026356;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 99, 86, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-mobi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link-mobi:hover::before {
    left: 100%;
}

.nav-link-mobi:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #026356 0%, #007c70 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 99, 86, 0.3);
}


   .dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none;
    font-size: 14px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenu styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-top: 8px;
    padding: 0 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 99, 86, 0.1);
}

.submenu.show {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding: 15px;
}

.submenu .nav-item-1 {
    margin-bottom: 5px;
}

.submenu .nav-link-1 {
    padding: 12px 15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.submenu .nav-link-1:hover {
    background: linear-gradient(135deg, #5bc863 0%, #4a9c4a 100%);
    border-left-color: #ffd700;
    color: #ffffff;
    transform: translateX(5px);
}

/* Hotline box */
.hotline-box {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hotline-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.hotline-box:hover {
    transform: scale(1.05);
}

.hotline-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hotline-number {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* Scrollbar styling */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #026356 0%, #007c70 100%);
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #007c70 0%, #026356 100%);
}

/* Animation for menu items */
.nav-item-1 {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.nav-item-1:nth-child(1) { animation-delay: 0.1s; }
.nav-item-1:nth-child(2) { animation-delay: 0.2s; }
.nav-item-1:nth-child(3) { animation-delay: 0.3s; }
.nav-item-1:nth-child(4) { animation-delay: 0.4s; }
.nav-item-1:nth-child(5) { animation-delay: 0.5s; }
.nav-item-1:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .brand-text-menu-1 {
        font-size: 12px;
    }
    
    .brand-subtext-1 {
        font-size: 10px;
    }
    
    .nav-link-mobi {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .hotline-box {
        padding: 15px;
    }
}
  /* endmenumobi */

/* ----- PHẦN HEADER ----- */
.header-main {
    background-color: var(--bg-purple);
    padding: 25px 0;
    color: var(--text-white);
}

/* Các class con bên trong header vẫn được giữ lại để style không thay đổi */
.clinic-logo {
    height: 65px;
    margin-right: 15px;
}

.clinic-name {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.clinic-name span {
    font-size: 16px;
}

.clinic-name strong {
    font-size: 20px;
    font-weight: bold;
}

.consultation-box {
    position: relative;
    border: 2px solid var(--accent-beige);
    border-radius: 10px;
    padding: 11px;
    padding-top: 11px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.consultation-box:hover {
    transform: scale(1.05);
}

.online-ribbon {
    position: absolute;
    top: -15px;
    right: -10px;
    background: var(--ribbon-red);
    color: var(--text-white);
    padding: 6px 20px 6px 15px;
    font-weight: bold;
    font-size: 14px;
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
}

.consultation-content {
    display: flex;
    align-items: center;
}

.consultation-icon {
    height: 45px;
    margin-right: 10px;
}

.consultation-text {
    color: #e0d0a4;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hotline-icon {
    height: 35px;
    margin-right: 10px;
}

.hotline-text {
    display: flex;
    flex-direction: column;
}

.hotline-text span {
    color: var(--accent-beige);
    font-size: 14px;
    font-weight: bold;
}

.hotline-text a {
    color: var(--text-white);
    font-size: 23px;
    font-weight: bold;
    text-decoration: none;
}

.appointment-icon {
    height: 35px;
    margin-right: 15px;
}

.appointment-text {
    display: flex;
    flex-direction: column;
    color: var(--accent-beige);
    line-height: 1.3;
}

.appointment-text strong {
    font-size: 16px;
    font-weight: bold;
}

.appointment-text span {
    font-size: 14px;
    color: white;
    text-align: center;
    font-weight: 700;
}

/* ----- PHẦN MENU (GIỮ NGUYÊN) ----- */
.custom-navbar {
    background-color: var(--nav-bg-pink);
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.custom-navbar .navbar-nav {
    margin: 0 auto;
}

.custom-navbar .nav-link {
    color: var(--nav-text-purple);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: #8A2BE2;
}

.custom-navbar .dropdown-toggle::after {
    vertical-align: middle;
    margin-right: -10px;
}

.custom-navbar .dropdown-menu {
    background-color: var(--bg-purple);
    border: none;
    margin-top: 10px !important;
    min-width: 240px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.custom-navbar .dropdown-item {
    color: white;
    font-size: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
    background-color: #8762a3;
    color: white;
}

/* banner */
  /* Base performance optimizations */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 0;
}

.slide-item {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slide-item img {
    width: 100%;
    height: 550px;
    /* object-fit: cover; */
    object-position: center;
    transform: scale(1.02);
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Ken Burns effect on active slide */
.carousel-item.active .slide-item img {
    transform: scale(1.08);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    animation: slideContentIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@keyframes slideContentIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(60px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
        filter: blur(0px);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.slide-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-btn {
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
    position: relative;
    overflow: hidden;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.slide-btn:hover::before {
    left: 100%;
}

.slide-btn:hover {
    background: rgba(255,255,255,0.95);
    color: #333;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 22px;
    color: white;
    transition: color 0.3s ease;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: #333;
}

/* Enhanced indicators */
.carousel-indicators {
    bottom: 40px;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 3px solid rgba(255,255,255,0.8);
    margin: 0 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    cursor: pointer;
}

.carousel-indicators .active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* Mobile Responsive - Enhanced animations */




/* Enhanced transition animations - fade for mobile */
.mobile-banner.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: none;
}

.mobile-banner.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-item {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-inner {
    overflow: hidden;
}

/* Preload optimization */
.carousel-item img {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Touch gestures enhancement */
.carousel {
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading states */
.carousel-item img {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item img.loaded {
    opacity: 1;
}

/* Fade transition option */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Enhanced hover effects */
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.mobile-banner:hover .mobile-carousel-control {
    opacity: 1;
}
/* end banner */

/* home */

.banner-home-2-mobi{
    display: none;
}
.fullscreen-banner-content-mobi{
    display: none;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.app-icon:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    /* pointer-events: none; */
}

.icon-dathen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-tuvan {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-bacsi {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.icon-zalo {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.app-icon i {
    font-size: 28px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.app-label {
    color: #9f75b9;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}
.app-container{
    padding: 20px 0;
    display: none;
}









 /* Vùng chứa toàn bộ section */
 .service-section {
    padding: 20px 15px;
    text-align: center; /* Căn giữa các thành phần con */
}

/* Thanh hành động (trước đây là sticky-nav-bar) */
.action-bar {
    background-color: var(--nav-bg-pink); /* Màu hồng nhạt */
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Căn giữa và đặt khoảng cách với phần tử bên dưới */
    margin: 0 auto 40px auto; 
    max-width: 900px; /* Giới hạn chiều rộng */
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.action-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff; /* Màu chữ tím mặc định */
    padding: 8px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.action-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 20px;
}

/* --- Kiểu cho các mục không active --- */
.action-item:not(.active) .icon-circle-white {
    background-color: white;
    color: #6a528c;
}

.action-item:not(.active) .icon-circle-purple {
    background-color: rgb(220, 53, 109);
    color: white;
}

/* --- Kiểu cho mục đang active --- */
.action-item.active a {
    background-color: rgb(220, 53, 109); /* Nền tím */
    color: white; /* Chữ trắng */
    padding: 20px 25px;
}

.action-item.active .icon {
    color: white;
    width: auto; height: auto; /* Reset kích thước icon */
}

/* -- Phần nội dung bên dưới -- */
.subtitle-badge {
    display: inline-block; /* Để bo tròn và padding hoạt động đúng */
    background-color: #fdecf2;
    color: #6a528c;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.main-heading {
    color: #4d2f6b; /* Màu tím đậm hơn cho tiêu đề */
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.description-text {
    color: #333;
    max-width: 800px;
    margin: 0 auto; /* Căn giữa đoạn văn bản */
    line-height: 1.7;
    font-weight: 600;
    font-size: 16px;
}




 /* Vùng chứa chính */
 .hero-section-simple {
    position: relative;
    width: 100%;
    
    background-image: url('../img/bannerhome.jpg'); 
    background-size: cover;
    background-position: center;
}

/* Thẻ link bao bọc ảnh */
.hero-image-link {
    display: flex; /* Để margin auto hoạt động */
    max-width: 1000px; /* Giới hạn chiều rộng tối đa của ảnh */
    margin: 0 auto; /* Căn giữa thẻ link */
    text-decoration: none;
    justify-content: center;
}

/* Ảnh chính */
.hero-image-simple {
    width: 700px; /* Giúp ảnh co giãn theo chiều rộng của thẻ link */
    height: auto; /* Giữ đúng tỷ lệ ảnh */
    display: block; /* Loại bỏ khoảng trống thừa bên dưới ảnh */

    /* Đổ bóng cho cả khối ảnh */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    
    /* Hiệu ứng khi di chuột vào */
    transition: transform 0.3s ease-in-out;
}

/* Hiệu ứng phóng to nhẹ khi di chuột */
.hero-image-link:hover .hero-image-simple {
    transform: scale(1.02);
}

.hero-image-simple-mobi{
    display: none;
}






/* Container chính của cả section */
.facility-showcase-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(251, 238, 249, 1) 35%, rgba(251, 238, 249, 1) 65%, rgba(255, 255, 255, 1) 100%);
    overflow: hidden;
    position: relative;
}

/* Hiệu ứng nền lục giác (giữ nguyên) */
.facility-showcase-section::before,
.facility-showcase-section::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200px;
    /* background-image: url(""); */
    background-repeat: repeat-x;
    background-size: 150px;
    z-index: 0;
    opacity: 0.5;
    animation: slide-anim 40s linear infinite;
}
.facility-showcase-section::before { top: 25%; left: -50%; }
.facility-showcase-section::after { bottom: 25%; right: -50%; animation-direction: reverse; }
@keyframes slide-anim { from { transform: translateX(0); } to { transform: translateX(-25%); } }


/* --- Phần Tiêu Đề Tĩnh --- */
.facility-showcase-static-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.facility-showcase-top-label {
    display: inline-block;
    background-color: #fdd8ee;
    color: #582c83;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.facility-showcase-main-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    color: #582c83;
    font-size: 25px;
    margin-bottom: 20px;
}

/* --- Phần Slider --- */
.facility-carousel-container {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.facility-carousel-viewport {
    overflow: hidden; /* Đây là phần quan trọng nhất để tạo hiệu ứng trượt */
}

.facility-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.facility-carousel-item {
    flex: 0 0 100%; /* Mỗi slide chiếm 100% chiều rộng của viewport */
    box-sizing: border-box;
    padding: 0 10px; /* Khoảng cách nhỏ giữa các slide nếu cần */
    text-align: center;
}

.facility-carousel-image-wrapper {
    margin-bottom: 25px;
}

.facility-carousel-image-wrapper img {
    width: 600px;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.facility-carousel-item-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    color: #582c83;
    font-size: 25px;
    margin-bottom: 0px;
}

.facility-carousel-item-desc {
    font-size: 15px;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Nút và Dấu chấm Điều hướng --- */
.facility-showcase-nav {
    position: absolute;
    top: 40%; /* Chỉnh vị trí nút theo chiều dọc, tương đối với ảnh */
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: #582c83;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 15px;
    z-index: 10;
}
.facility-showcase-nav:hover { transform: translateY(-50%) scale(1.1); }
.facility-showcase-nav.prev-btn { left: -30px; }
.facility-showcase-nav.next-btn { right: -30px; }

.facility-showcase-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.facility-showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1bce3;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.facility-showcase-dot.active {
    background-color: #582c83;
    width: 30px;
    border-radius: 6px;
}







.fullscreen-banner {
   
    position: relative; /* Cần thiết để các phần tử con được định vị */
    overflow: hidden; /* Ẩn bất cứ thứ gì tràn ra ngoài section */
}

.fullscreen-banner img {
    /* Kích thước của ảnh sẽ lấp đầy section cha */
    width: 100%;

  
}

/* Bạn có thể bỏ qua thẻ div nếu không dùng nó cho mục đích khác */
.fullscreen-banner div {
    width: 100%;
    height: 100%;
}

.fullscreen-banner-content {
   
    position: relative; /* Cần thiết để các phần tử con được định vị */
    overflow: hidden; /* Ẩn bất cứ thứ gì tràn ra ngoài section */
}

.fullscreen-banner-content img {
    /* Kích thước của ảnh sẽ lấp đầy section cha */
    width: 100%;
    height: 700px;
  
}

/* Bạn có thể bỏ qua thẻ div nếu không dùng nó cho mục đích khác */
.fullscreen-banner-content div {
    width: 100%;
    height: 100%;
}











.doctor-section {
    height: 800px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0e8f8 50%, #f8e8f0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
}

/* Background wavy decoration top */
.doctor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    
    background-size: 200px 100px;
    opacity: 0.6;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    color: #8B4A9C;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.sub-title {
    color: #6A4C93;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.description {
    color: #666;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Layout */
.doctor-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Left Side - Avatars Column */
.avatars-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 20px;
}

.avatar-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-container.active .avatar-bg {
    background: linear-gradient(45deg, #FF6B9D, #8B4A9C);
    transform: scale(1.1);
}

.avatar-bg {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFB6C1, #DDA0DD);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.doctor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-container:hover .avatar-bg {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 74, 156, 0.3);
}

/* Center - Main Doctor */
.main-doctor {
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.main-doctor-container {
    position: relative;
    display: inline-block;
}

.main-doctor-image {
    width: 240px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    object-fit: cover;
    border: 4px solid #fff;
}

.experience-badge {
    position: absolute;
    top: 15px;
    right: -20px;
    background: linear-gradient(135deg, #FF6B9D, #C44CAE);
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(196, 76, 174, 0.4);
    text-align: center;
    min-width: 85px;
    z-index: 2;
}

.years-text {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px;
}

.experience-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.doctor-name-card {
    background: linear-gradient(135deg, #8B4A9C, #C44CAE);
    color: white;
    padding: 18px 25px;
    border-radius: 25px;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(139, 74, 156, 0.3);
    position: relative;
}

.doctor-name-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 10px solid #8B4A9C;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.doctor-specialty {
    font-size: 1rem;
    opacity: 0.95;
}

/* Right Side - Information - Compact & Minimal */
.info-panel {
    flex: 1;
    max-width: 350px;
    min-height: 400px;
}

.info-category {
    margin-bottom: 18px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8B4A9C, #FF6B9D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(139, 74, 156, 0.2);
}

.category-title {
    color: #8B4A9C;
    font-size: 1.1rem;
    font-weight: bold;
    font-style: italic;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.info-list.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.info-list.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.info-item {
    background: white;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid #FF6B9D;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
}

.info-item::before {
    content: "●";
    color: #FF6B9D;
    margin-right: 8px;
    font-size: 0.9rem;
}

.info-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #fff, #fef7ff);
}




/* Các kiểu dáng chung */
.health-news-header {
    text-align: center;
    padding: 30px 0 20px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f8e6ff 100%);
}

.health-news-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #7B2CBF;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Wrapper chung cho phần grid/slider */
.health-news-section-wrapper {
    background: linear-gradient(135deg, #ffeef8 0%, #f8e6ff 100%);
    padding-bottom: 40px; /* Padding dưới cho cả hai bố cục */
}

/* GRID LAYOUT (Default for larger screens) */
.health-news-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid; /* Hiển thị theo grid mặc định */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Các kiểu dáng cho item trong grid (chung với slide item nếu cần) */
.health-news-grid-item,
.health-news-slide-mobile { /* Áp dụng các kiểu dáng chung cho cả grid và slide items */
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.health-news-grid-item:hover,
.health-news-slide-mobile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.health-news-grid-item a,
.health-news-slide-mobile a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.health-news-item-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.health-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.health-news-grid-item:hover .health-news-item-image img,
.health-news-slide-mobile:hover .health-news-item-image img {
    transform: scale(1.05);
}

.health-news-item-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.health-news-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.health-news-item-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #7B2CBF;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.health-news-item-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.health-news-item-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* Fallback nếu không có bài viết (Áp dụng cho cả grid và slider) */
.health-news-empty-state {
    grid-column: 1 / -1; /* Chiếm toàn bộ chiều rộng của grid */
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.8rem;
    color: #7B2CBF;
    margin-bottom: 10px;
}

.empty-state-description {
    font-size: 1rem;
    color: #666;
}

/* MOBILE SLIDER LAYOUT (Hidden by default) */
.health-news-slider-mobile-container {
    display: none; /* Ẩn slider trên desktop/tablet */
    position: relative;
    overflow: hidden;
    padding: 0 20px; /* Padding cho phép item nhỏ hơn và có khoảng trống */
}

.health-news-slider-wrapper-mobile {
    position: relative;
    overflow: hidden;
    height: 400px; /* Chiều cao cố định cho slider mobile */
}

.health-news-slides-track-mobile {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%;
    gap: 20px; /* Khoảng cách giữa các slide */
    width: fit-content; /* Quan trọng để flex items không bị co lại */
}

.health-news-slide-mobile {
    flex: 0 0 300px; /* Kích thước cố định cho mỗi slide trên mobile */
    max-width: calc(100% - 40px); /* Đảm bảo không tràn màn hình */
    margin: 0 10px; /* Khoảng cách giữa các slide */
    height: 100%; /* Lấy chiều cao từ wrapper */
}
.health-news-slide-mobile .health-news-item-image {
    height: 180px; /* Chiều cao ảnh cho mobile slider */
}
.health-news-slide-mobile .health-news-item-content {
    padding: 15px;
}
.health-news-slide-mobile .health-news-item-title {
    font-size: 1rem;
}
.health-news-slide-mobile .health-news-item-description {
    font-size: 0.85rem;
}
.health-news-slide-mobile .health-news-item-date {
    bottom: 10px;
    left: 10px;
    padding: 5px 8px;
    font-size: 0.75rem;
}


/* Dots indicator for mobile slider */
.health-news-dots-container-mobile {
    text-align: center;
    padding: 20px 0 0px 0;
}

.health-news-dot-mobile {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(123, 44, 191, 0.3);
    margin: 0 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.health-news-dot-mobile.active {
    background: #7B2CBF;
    transform: scale(1.2);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 992px) {
    .health-news-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
        gap: 20px;
    }
    .health-news-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .health-news-grid-container {
        display: none; /* Ẩn grid trên mobile */
    }
    .health-news-slider-mobile-container {
        display: block; /* Hiển thị slider trên mobile */
    }
    .health-news-title {
        font-size: 1.8rem;
    }
    /* Các điều chỉnh khác cho mobile slider */
    .health-news-slider-wrapper-mobile {
        height: 380px;
    }
    .health-news-slide-mobile {
        flex: 0 0 280px; /* Kích thước slide nhỏ hơn trên màn hình rất nhỏ */
        max-width: calc(100% - 30px);
        margin: 0 5px;
    }
}
/* Ẩn tiêu đề di động trên màn hình lớn */
.info-panel-header {
    display: none;
}

/* Các hiệu ứng chuyển động có sẵn của bạn */
.info-list { transition: opacity 0.4s ease-in-out; }
.info-list.fade-out { opacity: 0; }
.info-list.fade-in { opacity: 1; }
.main-doctor-image, .doctor-name-card { transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out; }
.main-doctor-image.changing, .doctor-name-card.changing { opacity: 0; transform: translateY(10px); }
/* end home */






/* footer */

.custom-footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-top: 5px solid var(--border-top-color);
    padding: 50px 0;
    font-size: 15px;
}

.custom-footer h4 {
    color: var(--heading-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pink-line-color);
    position: relative;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-logo-address {
    font-weight: 500;
    color: var(--heading-color);
    margin-top: 10px;
}

.working-hours-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 5px 0;
}

.working-hours-note {
    font-size: 14px;
}

.qr-box {
    background-color: var(--light-pink-bg);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.qr-box img {
    max-width: 80px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px; /* Tạo không gian cho chấm tròn */
}

/* Dấu chấm tròn trước mỗi link */
.footer-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px; /* Căn chỉnh theo chiều dọc */
    width: 8px;
    height: 8px;
    background-color: var(--light-pink-bg);
    border-radius: 50%;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-button-color);
}

.partner-logos img {
    max-width: 140px;
    margin: 5px;
    vertical-align: middle;
}

.subscription-form .form-control {
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid #ddd;
}

.subscription-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(232, 62, 140, 0.25);
    border-color: var(--primary-button-color);
}

.btn-submit {
    background-color: var(--primary-button-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 25px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #d63384;
    color: white;
}

.input-group {
     border-radius: 50px;
     overflow: hidden;
}

.privacy-text {
    font-size: 13px;
    margin-top: 15px;
}






.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(220, 53, 109); /* Màu nền tím nhạt giống ảnh */
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 100px;
    display: flex
;
    justify-content: center;
    align-items: center;
}

.contact-bar-content {
    display: flex;
    justify-content: center; /* Căn giữa các phần tử */
    align-items: center;
    gap: 25px; /* Khoảng cách giữa các phần tử */
}

/* Các phần tử bên trong */
.contact-item {
    display: flex;
    font-size: 25px;
    align-items: center;
    color: #fff; /* Màu chữ tím đậm */
    font-weight: 800;
    /* font-size: 1.1rem; */
    text-decoration: none;
}

.contact-item .icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

/* Nút tùy chỉnh */
.btn-custom {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid #f2c4ce; /* Viền màu hồng nhạt */
    border-radius: 50px; /* Bo tròn */
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-custom:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #42355e;
}

/* Icon nằm đè lên viền nút */
.btn-icon-overlap {
    width: 48px; /* Kích thước icon lớn hơn */
    height: 48px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#callback-btn {
    font-size: 20px;
    margin-left: 50px;
    padding-left: 35px; /* Tạo khoảng trống cho icon */
}

#callback-btn .btn-icon-overlap {
    left: -15px; /* Đẩy icon ra ngoài bên trái */
}

#zalo-btn {
    font-size: 20px;
    padding-right: 35px; /* Tạo khoảng trống cho icon */
}

#zalo-btn .btn-icon-overlap {
    right: -15px; /* Đẩy icon ra ngoài bên phải */
}



   /* === CSS CHO FORM YÊU CẦU GỌI LẠI (BẮT ĐẦU BẰNG sdt-) === */
   .sdt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: none; /* Ẩn ban đầu */
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Phải cao hơn z-index của contact bar */
    animation: sdt-fadeIn 0.3s;
}
.sdt-modal-content {
    background-color: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: sdt-slideIn 0.4s;
}
@keyframes sdt-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sdt-slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sdt-modal__close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.sdt-modal__close-btn:hover {
    color: #333;
}
.sdt-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #d1639f;
    font-size: 22px;
}
.sdt-form__group {
    margin-bottom: 15px;
}
.sdt-form__group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}
.sdt-form__group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Quan trọng */
}
.sdt-form__submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #d967a6; /* Màu xanh lá */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.sdt-form__submit-btn:hover {
    background-color: #218838;
}

/* end footer */



.register-page-content {
    padding: 20px;
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
}

/* --- BẮT ĐẦU PHẦN CODE CHÍNH --- */

/* Container chính cho panel bên phải */
.register-side-panel {
    position: fixed;
    top: 50%; /* Căn giữa theo chiều dọc */
    right: -360px; /* Ẩn panel ra ngoài màn hình (chiều rộng form + chiều rộng tab) */
    transform: translateY(-50%);
    z-index: 1500;
    display: flex;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Hiệu ứng trượt mượt mà */
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Lớp được thêm vào khi panel mở ra */
.register-side-panel.register-is-open {
    right: 0; /* Di chuyển panel vào trong màn hình */
}

/* Tab bấm để mở panel */
.register-side-tab {
    background-color: #4a2f4d;
    color: white;
    cursor: pointer;
    writing-mode: vertical-rl; /* Xoay chữ dọc */
    transform: rotate(180deg);
    padding: 20px 10px;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
    user-select: none; /* Ngăn người dùng bôi đen chữ */
    transition: background-color 0.2s;
}

.register-side-tab:hover {
     background-color: #603a64;
}

/* Khi panel mở, tab này sẽ bị ẩn đi */
.register-side-panel.register-is-open .register-side-tab {
    display: none;
}

.register-side-tab .register-tab-highlight {
    color: #f9516f;
    margin-top: 10px;
}

/* Form container */
.register-form-container {
    width: 360px; /* Chiều rộng của form */
    background-color: #fff;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden; /* Đảm bảo nội dung không tràn ra ngoài */
}

.register-form-header {
    background-color: #4a2f4d;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.register-form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.register-form-header p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.register-form-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6e4672;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.register-form-close:hover {
    background-color: #8c5a90;
}

.register-form-body {
    padding: 25px 30px;
    max-height: calc(80vh - 150px); /* Giới hạn chiều cao và cho phép cuộn */
    overflow-y: auto;
}

.register-form-group {
    margin-bottom: 20px;
}

.register-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.register-form-group label span {
    color: red;
}

.register-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.register-form-group input:focus {
    outline: none;
    border-color: #4a2f4d;
    box-shadow: 0 0 0 2px rgba(74, 47, 77, 0.2);
}

.register-date-input-wrapper {
    position: relative;
}

.register-calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="%236c757d"><path d="M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64V24c0-13.3-10.7-24-24-24S16 10.7 16 24V64H0V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V64H352V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v80H48V192zm112 0h80v80H160V192zm112 0h80v80H272V192zm-160 96h80v80H112V288zm112 0h80v80H224V288z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.register-privacy-note {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.register-privacy-note span {
    color: #f9516f;
    font-weight: bold;
}

.register-submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #a755c3, #8141b8);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(130, 65, 184, 0.4);
}

.register-submit-arrow {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-left: 15px;
    position: relative;
}

.register-submit-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-40%, -50%);
}





 /* Thanh công cụ cố định */
 
      
 .mobile-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px;
    background: transparent;
    display: none;
}


.toolbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Giảm khoảng cách giữa các nút */
}

.toolbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.toolbar-item:hover {
    opacity: 0.9;
}

/* Nút Đặt hẹn (màu xanh) */
.dat-hen-btn {
    flex: 1;
    background: #1E9D4C;
    flex-direction: column;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 12px; /* Bo góc */
}

/* --- CSS MỚI CHO FONT CHỮ --- */
.dat-hen-btn .line-1 {
    font-size: 14px; /* Font chữ to hơn */
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.dat-hen-btn .line-2 {
    font-size: 11px; /* Font chữ nhỏ hơn */
    font-weight: 500;
    display: block;
    text-transform: uppercase; /* Viết hoa giống ảnh */
}
/* --- KẾT THÚC CSS MỚI --- */

/* Nút Icon Chat (dạng ảnh) */
.chat-icon-btn {
    flex-shrink: 0;
    background: none;
    padding: 0;
    /* Thêm hiệu ứng nổi */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.chat-icon-btn img {
    width: 50px;  /* Điều chỉnh kích thước icon */
    height: 50px;
    display: block;
}

/* Nút Hotline (màu cam) */
.hotline-btn {
    flex: 1;
    background: #F58320;
    padding: 8px 12px;
    border-radius: 12px; /* Bo góc */
}

.hotline-btn .icon {
    width: 25px;
    height: 25px;
    fill: white;
    margin-right: 8px;
}

.hotline-btn .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
}

.hotline-btn .text span {
    font-size: 14px;
    font-weight: 700;
}

/* Modal số điện thoại */
.phone-modal {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    margin: 0 8px;
    border-radius: 12px 12px 0 0;
}

.phone-modal.show {
    transform: translateY(0);
}

.phone-modal .header {
    background: #F58320; /* Đồng bộ màu cam */
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.phone-numbers {
    padding: 20px;
}

.phone-number {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid #F58320;
    border-radius: 8px;
    text-decoration: none;
    color: #F58320;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-number:last-child {
    margin-bottom: 0;
}

.phone-number:hover {
    background: #F58320;
    color: white;
}

.close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}
/* end thanh công cụ cố định */

 /* Floating Icons */
 .floating-icons {
    width: 50px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none; /* Ẩn mặc định */
    flex-direction: column;
    gap: 15px;
}

.floating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.floating-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.floating-icon:hover::before {
    width: 100px;
    height: 100px;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.phone-icon {
    background: linear-gradient(135deg, #41b9ff, #477bff);
    animation: shake 2s infinite, glow-red 3s infinite;
}

.chat-icon {
    background: linear-gradient(135deg, #4834d4, #686de0);
    animation: shake 2s infinite 0.5s, glow-blue 3s infinite 1s;
}

/* Hiệu ứng phát sáng cho icon */
@keyframes glow-red {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(65, 154, 255, 0.8), 0 0 20px rgba(71, 166, 255, 0.6);
    }
}

@keyframes glow-blue {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(72, 52, 212, 0.8), 0 0 20px rgba(104, 109, 224, 0.6);
    }
}

.floating-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
    z-index: 1;
    position: relative;
}

/* Shake Animation với tỏa màu */
@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    15%, 35%, 55%, 75%, 95% {
        transform: translateX(4px);
    }
}

/* Hiệu ứng tỏa màu - tạo nhiều lớp */
.floating-icon::after,
.floating-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Lớp tỏa màu thứ nhất */
.phone-icon::after {
    background: radial-gradient(circle, rgba(255, 65, 108, 0.6) 0%, rgba(255, 65, 108, 0.3) 40%, rgba(255, 65, 108, 0) 70%);
    animation: colorWave1 3s infinite;
}

.phone-icon::before {
    background: radial-gradient(circle, rgba(255, 71, 87, 0.4) 0%, rgba(255, 71, 87, 0.2) 50%, rgba(255, 71, 87, 0) 80%);
    animation: colorWave2 3s infinite 0.5s;
}

.chat-icon::after {
    background: radial-gradient(circle, rgba(72, 52, 212, 0.6) 0%, rgba(72, 52, 212, 0.3) 40%, rgba(72, 52, 212, 0) 70%);
    animation: colorWave1 3s infinite 1s;
}

.chat-icon::before {
    background: radial-gradient(circle, rgba(104, 109, 224, 0.4) 0%, rgba(104, 109, 224, 0.2) 50%, rgba(104, 109, 224, 0) 80%);
    animation: colorWave2 3s infinite 1.5s;
}

/* Animation tỏa màu sóng 1 */
@keyframes colorWave1 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Animation tỏa màu sóng 2 */
@keyframes colorWave2 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    40% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.desktop-notice {
    display: none;
}

/* Tooltip */
.floating-icon .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.floating-icon .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Thêm lớp tỏa màu thứ ba cho hiệu ứng đẹp hơn */
.floating-icon {
    position: relative;
}

.floating-icon .wave-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
    pointer-events: none;
}

.phone-icon .wave-effect {
    background: radial-gradient(circle, rgba(255, 65, 108, 0.3) 0%, rgba(255, 71, 87, 0.15) 60%, rgba(255, 65, 108, 0) 100%);
    animation: megaWave 4s infinite;
}

.chat-icon .wave-effect {
    background: radial-gradient(circle, rgba(72, 52, 212, 0.3) 0%, rgba(104, 109, 224, 0.15) 60%, rgba(72, 52, 212, 0) 100%);
    animation: megaWave 4s infinite 2s;
}

@keyframes megaWave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    70% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* Click effect */
.floating-icon:active {
    transform: scale(0.95);
}


 /* Hiệu ứng ghim - sử dụng class khác để tránh xung đột */
 .nav-pinned {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    background: #ff7daf !important;
    backdrop-filter: blur(10px);
    animation: navSlideIn 0.3s ease;
    z-index: 9999;
}

@keyframes navSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}





/* yêu cầu nói chuyện */

/* Lớp phủ mờ phía sau */
/* Lớp phủ mờ phía sau */
/* CSS cho Popup */
#notificationContainer-1 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    padding: 25px 16px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
    width: 90%;
    max-width: 400px;
}

/* Các lớp để ẩn/hiện popup */
#notificationContainer-1.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
}

#notificationContainer-1:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Các style còn lại cho nội dung bên trong popup (giữ nguyên) */
#notificationContainer-1 p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}
#notificationContainer-1 button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
#notificationContainer-1 button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
#acceptButton-1 {
    background-color: #f39c12;
}
#rejectButton-1 {
    background-color: #008080;
}
/* yêu cầu nói chuyện end */








 /* Modal Background */
 /* Animated background particles */
 .bg-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-particle 8s infinite ease-in-out;
    backdrop-filter: blur(1px);
}

.bg-particle:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; animation-delay: 0s; }
.bg-particle:nth-child(2) { width: 60px; height: 60px; top: 20%; right: 15%; animation-delay: 1s; }
.bg-particle:nth-child(3) { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 2s; }
.bg-particle:nth-child(4) { width: 40px; height: 40px; top: 60%; right: 30%; animation-delay: 3s; }
.bg-particle:nth-child(5) { width: 70px; height: 70px; bottom: 30%; right: 10%; animation-delay: 4s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 0.5; }
    50% { transform: translateY(-40px) translateX(-10px) scale(0.9); opacity: 0.7; }
    75% { transform: translateY(-20px) translateX(15px) scale(1.05); opacity: 0.4; }
}

.modal-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: 
        radial-gradient(circle at 30% 70%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 200, 81, 0.1) 0%, transparent 50%),
        rgba(0, 0, 0, 0.75); */
    backdrop-filter: blur(20px) saturate(1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-success.show {
    opacity: 1;
    visibility: visible;
}

.modal-content-success {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)),
        linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 40px;
    padding: 60px 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(-60px) scale(0.7) rotateX(10deg);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-success.show .modal-content-success {
    transform: translateY(0) scale(1) rotateX(0deg);
}

/* Glass morphism effect */
.modal-content-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #98d8c8);
    background-size: 400% 100%;
    animation: rainbow-flow 4s ease-in-out infinite;
    border-radius: 40px 40px 0 0;
    filter: blur(0.5px);
}

.modal-content-success::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, 
        transparent, rgba(76, 175, 80, 0.1), transparent, 
        rgba(0, 200, 81, 0.1), transparent);
    border-radius: 42px;
    z-index: -1;
    animation: rotate-glow 12s linear infinite;
    filter: blur(8px);
}

@keyframes rainbow-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success icon container */
.success-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, #00C851, #4CAF50, #66bb6a, #81C784, #00C851);
    border-radius: 50%;
    animation: icon-rotate 3s linear infinite;
    filter: blur(2px);
}

.success-icon::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, #00C851, #4CAF50);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        0 15px 35px rgba(76, 175, 80, 0.4);
}

.checkmark {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 50px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: checkmark-appear 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards;
}

@keyframes icon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes checkmark-appear {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(-180deg); 
    }
    70% { 
        opacity: 1; 
        transform: scale(1.2) rotate(10deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

.modal-content-success h3 {
    background: linear-gradient(135deg, #00C851, #4CAF50, #2E7D32);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s ease-out 0.8s forwards;
    letter-spacing: -0.5px;
}

.modal-content-success p {
    color: #4a5568;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s ease-out 1s forwards;
    font-weight: 400;
    letter-spacing: 0.2px;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-close-success {
    background: linear-gradient(135deg, #00C851 0%, #4CAF50 50%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(76, 175, 80, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: button-appear 0.8s ease-out 1.2s forwards;
    font-family: 'Inter', sans-serif;
}

@keyframes button-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-close-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.btn-close-success span {
    position: relative;
    z-index: 1;
}

.btn-close-success:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(76, 175, 80, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-close-success:hover::before {
    left: 100%;
}

.btn-close-success:hover::after {
    width: 200px;
    height: 200px;
}

.btn-close-success:active {
    transform: translateY(-2px) scale(1.02);
}

/* Enhanced confetti system */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    animation: confetti-explosion 3s ease-out infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ff6b6b; }
.confetti:nth-child(2) { left: 15%; animation-delay: 0.1s; background: #4ecdc4; }
.confetti:nth-child(3) { left: 20%; animation-delay: 0.2s; background: #45b7d1; }
.confetti:nth-child(4) { left: 25%; animation-delay: 0.3s; background: #96ceb4; }
.confetti:nth-child(5) { left: 30%; animation-delay: 0.4s; background: #ffeaa7; }
.confetti:nth-child(6) { left: 35%; animation-delay: 0.5s; background: #dda0dd; }
.confetti:nth-child(7) { left: 40%; animation-delay: 0.6s; background: #98d8c8; }
.confetti:nth-child(8) { left: 45%; animation-delay: 0.7s; background: #74b9ff; }
.confetti:nth-child(9) { left: 50%; animation-delay: 0.8s; background: #a29bfe; }
.confetti:nth-child(10) { left: 55%; animation-delay: 0.9s; background: #fd79a8; }
.confetti:nth-child(11) { left: 60%; animation-delay: 1s; background: #fdcb6e; }
.confetti:nth-child(12) { left: 65%; animation-delay: 1.1s; background: #e17055; }
.confetti:nth-child(13) { left: 70%; animation-delay: 1.2s; background: #00b894; }
.confetti:nth-child(14) { left: 75%; animation-delay: 1.3s; background: #e84393; }
.confetti:nth-child(15) { left: 80%; animation-delay: 1.4s; background: #0984e3; }

.confetti:nth-child(odd) { 
    border-radius: 50%; 
    transform: rotate(0deg);
}

.confetti:nth-child(even) { 
    border-radius: 2px; 
    transform: rotate(45deg);
}

.confetti:nth-child(3n) {
    width: 6px;
    height: 6px;
    border-radius: 0;
}

@keyframes confetti-explosion {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0);
        opacity: 1;
    }
    10% {
        transform: translateY(-80vh) rotate(36deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.2);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content-success {
        padding: 50px 30px;
        max-width: 400px;
        border-radius: 30px;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .checkmark {
        font-size: 40px;
    }
    
    .modal-content-success h3 {
        font-size: 28px;
    }
    
    .modal-content-success p {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .btn-close-success {
        padding: 15px 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-content-success {
        padding: 40px 25px;
        max-width: 350px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .checkmark {
        font-size: 32px;
    }
    
    .modal-content-success h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .modal-content-success p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .btn-close-success {
        padding: 12px 28px;
        font-size: 13px;
    }
}


