


.quangcao {
    position: fixed;
    top: 120px;
    left: -200px; /* Bắt đầu từ ngoài màn hình */
    z-index: 1000;
    animation: slideIn 1.5s ease-out 0.5s forwards;
}

.quangcao-active {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quangcao-active::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.6s;
    z-index: 2;
}

.quangcao-active:hover::before {
    left: 100%;
}

.quangcao-active img {
    width: 160px;
    height: auto;
    border-radius: 12px;
    box-shadow:
            0 10px 25px rgba(0,0,0,0.3),
            0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.quangcao-active:hover img {
    transform: scale(1.05) translateY(-5px);
    box-shadow:
            0 20px 40px rgba(0,0,0,0.4),
            0 0 0 1px rgba(255,255,255,0.2),
            0 0 20px rgba(255,255,255,0.1);
}

/* Hiệu ứng slide in từ trái */
@keyframes slideIn {
    to {
        left: 0;
    }
}

/* Hiệu ứng nhấp nháy nhẹ */
.quangcao-active {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255,255,255,0.4);
    }
}

/* Hiệu ứng floating */
.quangcao {
    animation: slideIn 1.5s ease-out 0.5s forwards, float 4s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hiệu ứng khi click */
.quangcao-active:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .quangcao {
        top: 80px;
    }

    .quangcao-active img {
        width: 120px;
    }
}

/* Thêm hiệu ứng glow */
.quangcao-active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.quangcao-active:hover::after {
    opacity: 1;
}


/*////////////////////////////////////////////////////////////*/



 .social-buttons {
     position: fixed;
     top: 15%;
     right: 10px;
     display: flex;
     flex-direction: column;
     gap: 20px;
     z-index: 9999;
 }

.social-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-button::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.2); /* màu sóng */
    animation: pulse-wave 2s infinite;
    z-index: 0;
}

.social-button img {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
}

/* Tùy chỉnh màu sóng riêng cho từng nút */
.fb::before {
    background-color: rgba(59, 89, 152, 0.25); /* màu sóng Facebook */
}

.zalo::before {
    background-color: rgba(0, 180, 255, 0.25); /* màu sóng Zalo */
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/*////////////////////////////////////////////////////////////*/


 .messenger-notification-bar {
     position: fixed;
     top: 15px;
     left: 10px;
     right: 10px;
     background: rgba(25, 25, 25, 0.95);
     color: #ffffff;
     padding: 12px;
     border-radius: 16px;
     display: flex;
     align-items: center;
     gap: 12px;
     transform: translateY(-100px);
     opacity: 0;
     visibility: hidden;
     transition: all 0.4s ease;
     z-index: 9999;
 }
.messenger-notification-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.messenger-icon-wrapper img {
    width: 36px;
    height: 36px;
}
.messenger-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: system-ui, sans-serif;
}
.messenger-text-line1 {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.messenger-text-line2 {
    font-size: 0.85rem;
    color: #e4e6eb;
}
@media (min-width: 769px) {
    .messenger-notification-bar {
        display: none !important;
    }
}
/*////////////////////////////////////////////////////////////*/



     /* Reset & Base */
 * { box-sizing: border-box; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Header */
.clinic-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-info {
    display: flex;
    gap: 60px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.phone-number {
    font-weight: bold;
    color: #009688;
    font-size: 16px;
}

/* Desktop Navigation */
.main-nav {
    background: #009688;
    position: relative;
    z-index: 1000;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 45px;
    align-items: center;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffeb3b;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #009688;
    min-width: 250px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 2000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    position: relative;
}

.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px !important;
    color: white !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px !important;
}

.service-link:hover {
    background: #009688 !important;
    color: #ffeb3b !important;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sub-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: #009688;
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 3000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 0 8px 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item:hover .sub-dropdown {
    display: block;
}

.dropdown-item:hover .arrow {
    transform: rotate(90deg);
}

.sub-dropdown a {
    display: block;
    color: #e0e0e0 !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.sub-dropdown a:hover {
    background: #009688 !important;
    color: #ffeb3b !important;
    transform: translateX(5px);
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #f8f8f8;
    padding: 15px 20px;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Menu Toggle Button - Màu xanh như ảnh */
.menu-toggle {
    background: #00703c;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 60px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: #005c2b;
    transform: translateY(-1px);
}

.menu-toggle.active {
    background: #005c2b;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    display: none;
}

.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-list > li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-nav-list a {
    color: #00703c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
    padding: 8px 0;
}

.mobile-nav-list a:hover {
    color: #005c2b;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #00703c;
    font-weight: 500;
    cursor: pointer;
    font-size: 18px;
}

.toggle-icon {
    transition: transform 0.3s;
}

.mobile-services {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 8px 0 0 0;
    background: #f8f8f8;
    border-radius: 5px;
    display: none;
}

.mobile-service {
    border-bottom: 1px solid #e0e0e0;
}

.service-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    color: #333;
    cursor: pointer;
    font-size: 16px;
}

.service-icon {
    transition: transform 0.3s;
}

/* Loại bỏ nền trắng ô rỗng */
.dropdown-submenu > a:after {
    content: " ▸";
    float: right;
}
.mobile-categories {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
    background: #eaf6ff;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.mobile-categories a {
    display: block;
    padding: 10px;
    color: #333 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #ddd;
}

/* Mobile Actions */
.mobile-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-btn {
    background: #00703c;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    padding: 12px 25px;
    display: block;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.booking-btn:hover {
    background: #005c2b;
}

.hotline {
    background: red;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    animation: pulse 2s infinite;
    font-size: 14px;
}

.hotline-number {
    margin-top: 8px;
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 991px) {
    .clinic-header,
    .main-nav {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 12px 15px;
    }

    .mobile-logo-img {
        height: 90px;
    }

    .menu-toggle {
        padding: 6px 12px;
        font-size: 15px;
        min-width: 55px;
        height: 45px;
    }

    .mobile-nav-list {
        padding: 15px;
    }

    .mobile-nav-list a {
        font-size: 16px;
    }

    .mobile-dropdown-toggle {
        font-size: 16px;
    }




}

