/* Custom styles */
@media (max-width: 1200px) {
  .banner-container {
    height: 500px;
  }
}

/* Show dropdown on hover for desktop */
@media (min-width: 768px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }

  /* Also show on click/focus */
  .nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }

  /* Ensure dropdown stays visible when hovering over submenu */
  .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }
  .navbar-nav {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }
  .nav-item {
    padding-right: 70px;
  }

  .navbar-toggler {
    display: none !important;
  }

  .navbar-collapse {
    display: flex !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .top-bar {
    text-align: center;
    font-size: 10px;
  }

  .logo {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .hospital-name h1 {
    font-size: 16px;
  }

  .hospital-name h2 {
    font-size: 12px;
  }

  .contact-info {
    font-size: 10px;
  }

  .phone-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .nav-menu .nav-link {
    font-size: 11px;
    padding: 10px 4px;
  }

  .hospital-header {
    padding: 10px 0;
  }
  .service-card {
    height: 100px;
    padding: 15px 10px;
  }

  .service-card-small {
    height: 85px;
    padding: 12px 8px;
  }

  .service-card i {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .service-card-small i {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .service-title {
    font-size: 14px;
  }

  .service-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .logo-container {
    gap: 10px;
  }

  .hospital-name h1 {
    font-size: 14px;
  }

  .hospital-name h2 {
    font-size: 11px;
  }

  .nav-menu .nav-link {
    font-size: 10px;
    padding: 8px 2px;
  }

  .contact-info .phone {
    font-size: 10px;
  }

  .phone-icon {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .contact-info .service-title {
    font-size: 9px;
  }
  .service-card {
    height: 90px;
    padding: 12px 8px;
  }

  .service-card-small {
    height: 75px;
    padding: 10px 6px;
  }

  .service-card i {
    font-size: 1.5rem;
  }

  .service-card-small i {
    font-size: 1.3rem;
  }

  .service-title {
    font-size: 13px;
  }

  .service-subtitle {
    font-size: 10px;
  }
  .nav-section {
    flex-direction: column;
    gap: 15px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .content-wrapper {
    flex-direction: column;
    padding: 0 10px;
  }

  .left-block {
    flex: none;
    width: 100%;
  }

  .banner-card {
    height: 220px;
  }

  .banner-content {
    padding: 25px 20px 15px;
  }

  .banner-title {
    font-size: 22px;
  }

  .right-block {
    margin-top: 15px;
  }
}

@media (max-width: 414px) {
  .phone-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .phone-icon-new {
    margin-right: 2px;
    border-right: 2px solid #007bff;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .contact-info .phone {
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .phone-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .phone-icon-new {
    margin-right: 2px;
    border-right: 2px solid #007bff;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .contact-info .phone {
    font-size: 9px;
  }
  .contact-info .service-title {
    color: #007bff;
    margin-bottom: 0px;
    
}

  .banner-nav {
    width: 40px;
    height: 40px;
  }

  .banner-nav.prev {
    left: 10px;
  }

  .banner-nav.next {
    right: 10px;
  }

  .banner-dots {
    bottom: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
  .banner-container {
    height: 200px;
    border-radius: 0px;
  }
  .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    object-position: center;
    display: block;
  }
}


/* Image quality optimization */
.banner-slide {
  background-attachment: scroll;
  will-change: transform, opacity;
}

/* Smooth transition effects */
.banner-slide {
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 1400px) {
  .doctor-card {
    flex: 0 0 calc(16.666% - 15px);
    margin-right: 20px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .doctor-card {
    flex: 0 0 calc(20% - 16px);
    margin-right: 20px;
  }
  .footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 35px;
}

.footer-columns {
    gap: 35px;
}

.footer-link {
    font-size: 14px;
}

.logo-text {
    font-size: 32px;
}

.logo-cross {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
  .doctor-card {
    flex: 0 0 calc(25% - 15px);
    margin-right: 20px;
  }

  .doctor-image-container {
    height: 260px;
  }
  .footer-main {
    padding: 0 30px;
    gap: 30px;
}

.footer-columns {
    gap: 30px;
}

.logo-text {
    font-size: 30px;
}
}
@media (min-width: 768px) and (max-width: 991px) {
  .doctor-card {
    flex: 0 0 calc(33.333% - 14px);
    margin-right: 20px;
  }

  .doctor-image-container {
    height: 240px;
  }

  .section-title {
    font-size: 36px;
  }
  .footer-hospital {
    padding: 30px 0 0 0;
}

.footer-main {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
}

.footer-columns {
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 700px;
}

.footer-column {
    text-align: center;
    gap: 10px;
}

.hospital-logo {
    margin: 0;
    order: -1;
}

.logo-text {
    font-size: 26px;
}


}

/* Mobile menu dropdown */
@media (max-width: 767.98px) {
  .navbar-collapse:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important;
}
.package-slider-desktop {
  display: none !important;
}
.package-slider-mobile {
  display: block !important;
}
.navbar-toggler {
  display: block !important;
  border: none;
  padding: 4px 8px;
  margin-left: -17px;
  order: -1;
  position: relative;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}

.navbar-collapse {
  display: none !important; /* Ẩn hoàn toàn ban đầu */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.navbar-collapse.show {
  display: block !important; /* Hiện khi có class show */
  transform: translateX(0);
}

/* Hoặc nếu muốn dùng visibility thay vì display */
.navbar-collapse {
  visibility: hidden; /* Thay vì display: none */
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  z-index: 10000;
  transform: translateX(-100%);
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
}

.navbar-collapse.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

/* Phần còn lại giữ nguyên... */
.navbar-nav {
  flex-direction: column;
  width: 100%;
  padding: 60px 0 20px 0;
}

.navbar-nav .nav-link {
  padding: 15px 25px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
}

.medical-dropdown-menu {
  position: static;
  transform: none;
  width: 100%;
  margin: 0;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  display: none;
  padding: 17px 0px;
}

.medical-dropdown.show .medical-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.specialty-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 0px;
  margin-bottom: 15px;
}

.specialty-tab {
  padding: 12px 10px;
  text-align: center;
  font-size: 14px;
  border-radius: 8px;
}

.disease-grid {
  margin-bottom: 70px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.disease-item {
  padding: 10px 8px;
  font-size: 13px;
}

/* Close button */
.navbar-collapse::after {
  content: '×';
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

body.menu-open {
  overflow: hidden;
}
  .medical-dropdown:hover .medical-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}
  .banner-container {
    height: 250px;
    border-radius: 0px;
  }

  .banner-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    padding: 15px 18px;
  }

  .banner-nav.prev {
    left: 20px;
  }

  .banner-nav.next {
    right: 20px;
  }

  .banner-dots {
    bottom: 20px;
    gap: 10px;
    padding: 12px 16px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .banner-nav {
    opacity: 0.7;
  }

  .banner-nav:hover {
    opacity: 1;
  }
  .doctor-card {
    flex: 0 0 calc(100% - 18px);
    margin-right: 20px;
  }

  .doctor-image-container {
    height: 280px;
  }

  .section-title {
    font-size: 32px;
  }

  .main-container {
    padding: 30px 20px;
    margin: 10px;
    border-radius: 20px;
  }

  .slider-container {
    padding: 20px;
  }

  .nav-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .footer-hospital {
    padding: 20px 0 0 0;
}

.footer-main {
    flex-direction: column;
    padding: 0 15px;
    gap: 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.footer-column {
    text-align: center;
    gap: 8px;
}

.footer-link {
    font-size: 12px;
    line-height: 1.5;
}

.hospital-logo {
    justify-content: center;
    margin: 10px 0 0 0;
    order: -1;
}

.logo-text {
    font-size: 22px;
}

.logo-cross {
    width: 38px;
    height: 38px;
    margin-right: 8px;
}

.logo-cross::before {
    width: 20px;
    height: 3px;
}

.logo-cross::after {
    width: 3px;
    height: 20px;
}

.mobile-toolbar{
  display: block;
}
.mobile-brand img {
  height: 45px;
  margin-right: 10px;
}

.address-mobi{
  display: block;
}
.number-destop{
  display: none;
}
.address-destop{
  display: none;
}
}

@media (max-width: 480px) {

  .home-about-us {
    background-color: #8dc5eb;
    padding-top: 2rem;
    padding-bottom: 1rem;
}
.section-title-home2 h2 {
  font-size: 30px;
  font-weight: 900;
  color: rgb(24, 23, 23) !important;
  text-transform: uppercase;
}

  .about-content-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}
.about-content-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}
.section-title-home3 h2 {
  font-size: 25px;
  font-weight: 900;
  color: rgb(44, 42, 42) !important;
  text-transform: uppercase;
  margin-bottom: 10px;
}


.package-image-card {
 
  margin: 0 22px;
}

.home-process {
  background-color: #3d9ad9;
  padding: 30px 0;
}


  .banner-container {
    height: 300px;
    border-radius: 12px;
  }

  .banner-nav {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    padding: 12px 15px;
  }

  .banner-nav.prev {
    left: 15px;
  }

  .banner-nav.next {
    right: 15px;
  }

  .banner-dots {
    bottom: 15px;
    gap: 8px;
    padding: 10px 14px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
  .logo-header img {
    width: 170px;
  }
  .banner-container {
    height: 200px;
    border-radius: 0px;
  }
  .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    object-position: center;
    display: block;
  }
  .banner-title {
    font-size: 18px;
  }

  .news-item {
    padding: 15px 20px;
  }

  .news-header {
    padding: 15px 20px 10px;
  }
  .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
   
}
.nav-button {
  width: 30px;
  height: 30px;
  font-size: 20px;
}

.footer-hospital {
  padding: 18px 0 0 0;
  padding-bottom: 70px;
}

.footer-main {
  padding: 0 12px;
  gap: 18px;
}

.footer-columns {
  gap: 18px;
}

.footer-column {
  gap: 6px;
}

.footer-link {
  font-size: 11px;
  line-height: 1.4;
}

.logo-text {
  font-size: 20px;
}

.logo-cross {
  width: 35px;
  height: 35px;
  margin-right: 7px;
}

.copyright-section {
  font-size: 11px;
  padding: 10px 5px;
}

.language-button {
  display: flex
;
  align-items: center;
  gap: 0px;
  padding: 1px 4px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
.logo-text img{
  width: 230px;
}
.footer-columns {
  display: grid
;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px !important;
  width: 100%;
}
.service-home{
  margin-top: 15px;
}

.mobile-brand img {
  height: 45px;
  margin-right: 10px;
}


}

@media (max-width: 375px) {
  .phone-icon {
    width: 23px;
    height: 20px;
    font-size: 5px;
  }
  .banner-container {
    height: 200px;
    border-radius: 0px;
  }
  .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    object-position: center;
    display: block;
  }
  .footer-hospital {
    padding: 15px 0 0 0;
    padding-bottom: 70px;
}

.footer-main {
    padding: 0 10px;
    gap: 15px;
}

.footer-columns {
    gap: 15px;
}

.footer-column {
    gap: 5px;
}

.footer-link {
    font-size: 10px;
    line-height: 1.3;
}

.logo-text {
    font-size: 18px;
}
.logo-text img{
  width: 230px;
}

.logo-cross {
    width: 32px;
    height: 32px;
    margin-right: 6px;
}

.logo-cross::before {
    width: 18px;
    height: 3px;
}

.logo-cross::after {
    width: 3px;
    height: 18px;
}

.copyright-section {
    font-size: 10px;
    padding: 8px 5px;
}
.contact-info .phone {
  font-size: 7px;
}

.footer-columns {
  display: grid
;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px !important;
  width: 100%;
}

.service-home{
  margin-top: 15px;
}


.dat-hen-btn .line-1 {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.hotline-btn .text span {
  font-size: 13px;
  font-weight: 700;
}
#notificationContainer-1 p {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}
.mobile-brand img {
  height: 42px;
  margin-right: 10px;
}
}


