
/* Responsive */

@media (max-width: 1200px) {
    .health-news-slide {
        width: 340px;
    }
}

@media (max-width: 992px) {
    .facility-showcase-nav {
        top: 35%;
        background-color: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .facility-showcase-nav.prev-btn { left: 15px; }
    .facility-showcase-nav.next-btn { right: 15px; }

    .doctor-section {
        height: auto;
        min-height: 800px;
        padding: 30px 15px;
    }
    
    .doctor-layout {
        flex-direction: column;
        gap: 25px;
    }
    
    .avatars-column {
        flex-direction: row;
        gap: 20px;
        padding: 10px;
    }
    
    .avatar-bg {
        width: 70px;
        height: 70px;
    }
    
    .avatar-frame {
        width: 60px;
        height: 60px;
    }
    
    .main-doctor-image {
        width: 200px;
        height: 270px;
    }
    
    .info-panel {
        max-width: 100%;
    }
}


@media (min-width: 992px) {
    /* Thêm position và padding cho thẻ <li> cha */
    .custom-navbar .nav-item.dropdown {
        position: relative; /* Cần thiết để định vị menu con */
        padding-bottom: 10px; /* Tạo vùng đệm 10px ở dưới, đây là "cây cầu" */
        margin-bottom: -10px; /* Bù lại khoảng padding vừa thêm để không làm navbar bị cao lên */
    }

    .custom-navbar .dropdown-menu {
        /* Hiệu ứng chuyển động */
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

        /* Loại bỏ margin-top vì đã có padding-bottom ở thẻ cha */
        margin-top: 0 !important;

        /* Trạng thái ẩn ban đầu */
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .custom-navbar .dropdown:hover>.dropdown-menu {
        /* Trạng thái hiện khi hover */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
}
@media (max-width: 990px){
    .header-1 {
        display: flex;
      }
      .navbar-toggler {
        display: block !important;
      }
      .contact-bar-content {
        flex-wrap: wrap; /* Cho phép các item xuống hàng */
        gap: 15px;
        padding: 0 15px;
    }
    .contact-item {
         font-size: 1rem;
    }
      
}

@media (max-width: 768px) {
    .facility-showcase-main-title { font-size: 2rem; }
    .facility-carousel-item-title { font-size: 1.8rem; }
    .facility-carousel-item-desc { font-size: 1rem; }
    .facility-showcase-section { padding: 40px 0; }
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .main-doctor-image {
        width: 180px;
        height: 240px;
    }

    .fixed-contact-bar {
        padding: 15px 0;
   }
   .contact-bar-content {
       flex-direction: column; /* Xếp chồng lên nhau */
       gap: 12px;
   }
   /* Trên mobile, ẩn số điện thoại đầu tiên để gọn hơn */
   .hide-on-mobile {
       display: none;
   }
   .custom-footer {
    text-align: center;
}
.footer-col {
    margin-bottom: 30px;
}
.footer-links li {
    padding-left: 0;
    text-align: center;
}
.footer-links li::before {
    display: none; /* Ẩn chấm tròn trên mobile */
}
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.health-news-slide {
    width: 300px;
    height: 350px;
}

.health-news-slide-image {
    height: 200px;
}

.health-news-slide-content {
    height: 120px;
    padding: 15px;
}

.health-news-slide-date {
    bottom: 135px;
}

.health-news-slide-title {
    font-size: 1rem;
}

.health-news-slide-description {
    font-size: 0.85rem;
}

.health-news-title {
    font-size: 2rem;
}


.messenger-notification-bar {
    display: flex; /* Hiện thanh thông báo */
}

}

@media (max-width: 480px) {
  .header-main{
    display: none;
  }
  .custom-navbar{
    display: none;
  }

  .desktop-banner {
    display: none !important;
}

.mobile-banner {
    display: block !important;
    width: 100%;
    height: 200px;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mobile-banner .carousel {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.mobile-banner .carousel-inner {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.mobile-banner .carousel-item {
    width: 100%;
    height: 280px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
}

.mobile-banner .carousel-item.active {
    opacity: 1;
    position: relative;
}

.mobile-banner .carousel-item img {
    width: 100%;
    height: 200px;
    /* object-fit: cover; */
    object-position: center;
    display: block;
}

/* Mobile controls with enhanced animations */
.mobile-carousel-control {
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: #333;
  opacity: 0.5;
  display: flex
;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mobile-carousel-control:hover,
.mobile-carousel-control:active {
    background: rgba(255,255,255,1);
    color: #333;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mobile-carousel-control i {
    font-size: 20px;
    color: #333;
    transition: transform 0.2s ease;
}

.mobile-carousel-control:hover i {
    transform: scale(1.1);
}

.mobile-carousel-control-prev {
    left: 20px;
}

.mobile-carousel-control-next {
    right: 20px;
}

/* Mobile indicators with glow effect */
.mobile-indicators {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex
;
opacity: 0.5
;
  margin: 0;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  list-style: none;
  justify-content: center;
}

.mobile-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-indent: -999px;
    overflow: hidden;
}

.mobile-indicators .active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
}

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile content overlay */
.mobile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

.health-news-slide {
    width: 280px;
    height: 330px;
}

.health-news-slide-image {
    height: 180px;
}

.health-news-title {
    font-size: 2rem;
}


.action-bar {
    display: none;
    padding: 10px 0;
    margin: 0 auto 30px auto;
}
.action-item.active a {
    background-color: #9474b2;
    color: white;
    padding: 13px 20px;
}

.action-item a {
    font-size: 10px;
    padding: 8px 5px !important;
}

.register-side-panel {
    right: -360px;
}


.register-side-tab {
    letter-spacing: 0.5px;
    font-size: 12px;
}
.service-section {
    padding: 16px 10px;
    text-align: center;
}

.main-heading {
    
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 15px;
}
.description-text {
   
    font-size: 14px;
}
.hero-image-simple {
    width: 350px;
}
.fixed-contact-bar {
   display: none;
}
.facility-showcase-main-title {
    font-size: 20px;
}
.facility-carousel-image-wrapper img {
    width: 385px;
    height: 250px;
   
}
.facility-carousel-item-title {
    font-size: 22px;
}
.facility-carousel-item-desc {
    font-size: 12px;
}
.facility-showcase-nav.next-btn {
    right: 12px;
}
.facility-showcase-nav.prev-btn {
    left: 12px;
}
.banner-home-1{
    height: 100px !important;
}
.doctor-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.doctor-specialty {
    font-size: 12px;
    opacity: 0.95;
}
.fullscreen-banner-content img {
    width: 100%;
    height: 300px;
}
.footer-open{
    display: none;
}

.footer-logo img {
    max-width: 80%;
    height: auto;
}
.custom-footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-top: 5px solid var(--border-top-color);
    padding: 15px 0;
    font-size: 15px;
   
}

.info-panel {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Quan trọng để bo góc hoạt động khi nội dung trượt */
    min-height: 0px;
}

/* Style cho tiêu đề/nút bấm trên di động */
.info-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background-color: #f7f7f7;
    cursor: pointer;
    user-select: none; /* Ngăn người dùng chọn text khi click */
}

.info-panel-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.info-panel-header i {
    font-size: 0.9rem;
    color: #555;
    transition: transform 0.3s ease-in-out;
}

/* Style cho phần nội dung có thể thu gọn */
.info-details-wrapper {
    max-height: 0; /* Thu gọn hoàn toàn theo mặc định */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    /* Thêm padding khi mở ra */
    padding: 0 16px;
    background-color: white;
}

/* KHI MỞ RỘNG (có class .expanded) */
.info-panel.expanded .info-details-wrapper {
    max-height: 1500px; /* Một giá trị lớn để đảm bảo chứa hết nội dung */
    /* Thêm padding khi mở ra */
    padding: 16px;
}

.info-panel.expanded .info-panel-header i {
    transform: rotate(180deg); /* Xoay icon mũi tên */
}


.app-container{
    /* padding: 20px 0; */
    display: block;
}

.hero-image-simple{
    display: none;
}
.hero-image-simple-mobi{
    display: block;
}
.banner-mobi-home{
    display: none;
}
.banner-home-mobi-1{
    display: none;
}
.banner-home-2-mobi{
    display: block;
}
.fullscreen-banner-content{
    display: none;
}
.fullscreen-banner-content-mobi{
    display: block;
}
.mobile-toolbar {
    display: block;
}



.floating-icons {
    display: flex; /* Chỉ hiển thị khi màn hình dưới 480px */
    left: 15px;
}

.floating-icon {
    width: 50px;
    height: 50px;
}

.floating-icon svg {
    width: 50px;
    height: 35px;
}

.floating-icon::after,
.floating-icon::before,
.floating-icon .wave-effect {
    width: 50px;
    height: 50px;
}

.chat-icon {
    background: linear-gradient(135deg, #4834d4, #686de0);
    animation: shake 2s infinite 0.5s, glow-blue 3s infinite 1s;
    margin-top: 40px;
}
.fullscreen-banner {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.fullscreen-banner{
    display: none;
}
.banner-mobi-3{
    width: 100%;
}
.sensitive-image-container img {
    display: block;
    width: 100%;
    height: 400px ;
}

.img-1, .img-2 {
    display: block;
    max-width: 100%;
    height: 300px;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#notificationContainer-1 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    padding: 19px 0px;
    border-radius: 11px;
    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: 300px;
}
#notificationContainer-1 button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
#notificationContainer-1 p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 14px;
}
.experience-badge {
    position: absolute;
    top: unset;
    bottom: 2px;
    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;
}
}
@media (max-width: 414px) {
    .facility-carousel-image-wrapper img {
        width: 371px;
        height: 250px;
    }
    #notificationContainer-1 p {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-top: 0;
        margin-bottom: 25px;
    }
}
@media (max-width:390px) {
   
    #notificationContainer-1 p {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        margin-top: 0;
        margin-bottom: 14px;
    }
}



@media (min-width: 481px) {
  .mobile-banner {
      display: none;
  }

  .desktop-banner {
      display: block;
  }
}

@media (max-width: 375px) {
  .slide-title {
      font-size: 2.2rem;
  }
  
  .slide-subtitle {
      font-size: 1.1rem;
  }

  .mobile-carousel-control {
      width: 45px;
      height: 45px;
  }

  .mobile-carousel-control i {
      font-size: 18px;
  }
  .facility-carousel-image-wrapper img {
    width: 330px;
    height: 250px;
}

.health-news-header{
    width: 110%;
}
.health-news-slider-container{
    width: 110%;
}
.custom-footer{
    width: 110%;
}
.fullscreen-banner{
    width: 110%;
}
.header-1 {
    width: 110%;
}
.mobile-banner{
    width: 110%;
}
.service-section{
    width: 110%;
}
.hero-section-simple{
    width: 110%;
}
.facility-showcase-section{
    width: 110%;
}
.banner-mobi-3{
    width: 110%;
}
.doctor-section{
    width: 110%;
}
#notificationContainer-1 p {
    font-size: 16px;
   
}
#notificationContainer-1 {
    padding: 20px 20px;
    width: 74%;
    max-width: 370px;
}
}